Skip to content

Commit ede2367

Browse files
authored
[improvement] optimize component registration (youzan#846)
1 parent 5e0a7cb commit ede2367

69 files changed

Lines changed: 114 additions & 249 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

example/app.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,51 @@
4242
"navigationBarTextStyle": "black",
4343
"backgroundTextStyle": "dark",
4444
"backgroundColor": "#f8f8f8"
45+
},
46+
"usingComponents": {
47+
"demo-block": "../../components/demo-block/index",
48+
"van-action-sheet": "../../dist/action-sheet/index",
49+
"van-area": "../../dist/area/index",
50+
"van-badge": "../../dist/badge/index",
51+
"van-badge-group": "../../dist/badge-group/index",
52+
"van-button": "../../dist/button/index",
53+
"van-card": "../../dist/card/index",
54+
"van-cell": "../../dist/cell/index",
55+
"van-cell-group": "../../dist/cell-group/index",
56+
"van-checkbox": "../../dist/checkbox/index",
57+
"van-checkbox-group": "../../dist/checkbox-group/index",
58+
"van-col": "../../dist/col/index",
59+
"van-dialog": "../../dist/dialog/index",
60+
"van-field": "../../dist/field/index",
61+
"van-goods-action": "../../dist/goods-action/index",
62+
"van-goods-action-icon": "../../dist/goods-action-icon/index",
63+
"van-goods-action-button": "../../dist/goods-action-button/index",
64+
"van-icon": "../../dist/icon/index",
65+
"van-loading": "../../dist/loading/index",
66+
"van-nav-bar": "../../dist/nav-bar/index",
67+
"van-notice-bar": "../../dist/notice-bar/index",
68+
"van-notify": "../../dist/notify/index",
69+
"van-panel": "../../dist/panel/index",
70+
"van-popup": "../../dist/popup/index",
71+
"van-progress": "../../dist/progress/index",
72+
"van-radio": "../../dist/radio/index",
73+
"van-radio-group": "../../dist/radio-group/index",
74+
"van-row": "../../dist/row/index",
75+
"van-search": "../../dist/search/index",
76+
"van-slider": "../../dist/slider/index",
77+
"van-stepper": "../../dist/stepper/index",
78+
"van-steps": "../../dist/steps/index",
79+
"van-submit-bar": "../../dist/submit-bar/index",
80+
"van-swipe-cell": "../../dist/swipe-cell/index",
81+
"van-switch": "../../dist/switch/index",
82+
"van-switch-cell": "../../dist/switch-cell/index",
83+
"van-tab": "../../dist/tab/index",
84+
"van-tabs": "../../dist/tabs/index",
85+
"van-tabbar": "../../dist/tabbar/index",
86+
"van-tabbar-item": "../../dist/tabbar-item/index",
87+
"van-tag": "../../dist/tag/index",
88+
"van-toast": "../../dist/toast/index",
89+
"van-transition": "../../dist/transition/index",
90+
"van-tree-select": "../../dist/tree-select/index"
4591
}
4692
}
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"navigationBarTitleText": "ActionSheet 上拉菜单",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-action-sheet": "../../dist/action-sheet/index",
6-
"van-button": "../../dist/button/index"
7-
}
2+
"navigationBarTitleText": "ActionSheet 上拉菜单"
83
}

example/pages/area/index.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"navigationBarTitleText": "Area 省市区选择",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-area": "../../dist/area/index"
6-
}
2+
"navigationBarTitleText": "Area 省市区选择"
73
}

example/pages/badge/index.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"navigationBarTitleText": "Badge 徽章",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-badge": "../../dist/badge/index",
6-
"van-badge-group": "../../dist/badge-group/index"
7-
}
2+
"navigationBarTitleText": "Badge 徽章"
83
}

example/pages/button/index.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"navigationBarTitleText": "Button 按钮",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-button": "../../dist/button/index",
6-
"van-panel": "../../dist/panel/index"
7-
}
2+
"navigationBarTitleText": "Button 按钮"
83
}

example/pages/card/index.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
{
2-
"navigationBarTitleText": "Card 卡片",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-card": "../../dist/card/index",
6-
"van-button": "../../dist/button/index",
7-
"van-tag": "../../dist/tag/index"
8-
}
2+
"navigationBarTitleText": "Card 卡片"
93
}

example/pages/cell/index.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
{
2-
"navigationBarTitleText": "Cell 单元格",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-cell": "../../dist/cell/index",
6-
"van-icon": "../../dist/icon/index",
7-
"van-tag": "../../dist/tag/index",
8-
"van-cell-group": "../../dist/cell-group/index"
9-
}
2+
"navigationBarTitleText": "Cell 单元格"
103
}

example/pages/checkbox/index.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
{
2-
"navigationBarTitleText": "Checkbox 复选框",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-checkbox-group": "../../dist/checkbox-group/index",
6-
"van-checkbox": "../../dist/checkbox/index",
7-
"van-cell": "../../dist/cell/index",
8-
"van-cell-group": "../../dist/cell-group/index"
9-
}
2+
"navigationBarTitleText": "Checkbox 复选框"
103
}

example/pages/col/index.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"navigationBarTitleText": "Layout 布局",
3-
"usingComponents": {
4-
"demo-block": "../../components/demo-block/index",
5-
"van-row": "../../dist/row/index",
6-
"van-col": "../../dist/col/index"
7-
}
2+
"navigationBarTitleText": "Layout 布局"
83
}

example/pages/dashboard/index.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"navigationBarTitleText": "Vant Weapp",
3-
"usingComponents": {
4-
"van-panel": "../../dist/panel/index",
5-
"van-cell": "../../dist/cell/index",
6-
"van-cell-group": "../../dist/cell-group/index"
7-
}
2+
"navigationBarTitleText": "Vant Weapp"
83
}

0 commit comments

Comments
 (0)