Skip to content

Commit b36c367

Browse files
committed
chore(demo): 更新样式
1 parent 6ac15b4 commit b36c367

File tree

5 files changed

+221
-24
lines changed

5 files changed

+221
-24
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@commitlint/cli": "^8.3.5",
5151
"@commitlint/config-conventional": "^8.3.4",
5252
"@vue/compiler-sfc": "^3.0.0",
53+
"naive-ui": "^2.26.1",
5354
"commitizen": "^4.1.2",
5455
"conventional-changelog-cli": "^2.0.34",
5556
"cz-conventional-changelog": "^3.2.0",

packages/demo/demo-common/components/EditorHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
}
105105
.logo {
106106
display: block;
107-
height: 30px;
107+
height: 25px;
108108
}
109109
}
110110
.menu {

packages/demo/demo-common/components/Menu.vue

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@
1515
:class="$style.menuLink"
1616
href="https://vue-json-schema-form.lljj.me/"
1717
>
18-
<i
19-
class="el-icon-s-home"
20-
:class="$style.menuIcon"
21-
></i>文档
18+
文档
2219
</a>
2320
</el-menu-item>
2421
<el-menu-item index="2">
2522
<a
2623
:class="$style.menuLink"
2724
href="/"
2825
>
29-
<i
30-
class="el-icon-lollipop"
31-
:class="$style.menuIcon"
32-
></i>Playground
26+
Playground
3327
</a>
3428
</el-menu-item>
3529
<el-menu-item
@@ -40,10 +34,7 @@
4034
:class="$style.menuLink"
4135
href="/vue-editor.html#/editor"
4236
>
43-
<i
44-
class="el-icon-ice-cream-round"
45-
:class="$style.menuIcon"
46-
></i>活动编辑器
37+
活动编辑器
4738
</a>
4839
</el-menu-item>
4940
<el-menu-item
@@ -54,10 +45,7 @@
5445
:class="$style.menuLink"
5546
href="/schema-generator.html#/index"
5647
>
57-
<i
58-
class="el-icon-cold-drink"
59-
:class="$style.menuIcon"
60-
></i>Schema 生成器
48+
Schema 生成器
6149
</a>
6250
</el-menu-item>
6351
<el-menu-item index="5">
@@ -66,10 +54,7 @@
6654
href="https://github.com/lljj-x/vue-json-schema-form"
6755
target="_blank"
6856
>
69-
<i
70-
class="el-icon-star-off"
71-
:class="$style.menuIcon"
72-
></i>Github
57+
Github
7358
</a>
7459
</el-menu-item>
7560
</el-menu>
@@ -84,7 +69,6 @@ export default {
8469

8570
<style module>
8671
.box {
87-
margin: 0 auto;
8872
:global {
8973
.el-menu.el-menu--horizontal {
9074
border-bottom: none;
@@ -93,8 +77,8 @@ export default {
9377
border-bottom-width: 3px;
9478
}
9579
.el-menu--horizontal>.el-menu-item {
96-
padding-left: 14px;
97-
padding-right: 0;
80+
padding-left: 8px;
81+
padding-right: 8px;
9882
margin: 0 20px;
9983
height: 54px;
10084
line-height: 54px;

packages/demo/demo-v3/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@lljj/vue3-form-element": "1.11.0",
1515
"ajv-i18n": "^3.5.0",
1616
"ant-design-vue": "^2.0.1",
17+
"naive-ui": "^2.26.1",
1718
"demo-common": "1.2.0",
1819
"vue": "^3.0.0",
1920
"vuedraggable": "2.23.2"

0 commit comments

Comments
 (0)