@ebiz/designer-components 0.0.18-beta.28 → 0.0.18-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,286 +1,292 @@
1
- import { createRouter, createWebHistory } from 'vue-router'
2
- import Home from '../views/Home.vue'
3
- import ButtonView from '../views/Button.vue'
4
- import TableView from '../views/TableView.vue'
5
-
6
- const routes = [
7
- {
8
- path: '/',
9
- name: 'Home',
10
- component: Home,
11
- meta: { title: '首页' }
12
- },
13
- {
14
- path: '/my-component',
15
- name: 'MyComponent',
16
- component: () => import('../views/MyComponent.vue'),
17
- meta: { title: '基础组件示例' }
18
- },
19
- {
20
- path: '/table',
21
- name: 'table',
22
- component: TableView,
23
- meta: { title: '表格组件示例' }
24
- },
25
- {
26
- path: '/table-column',
27
- name: 'table-column',
28
- component: TableView,
29
- meta: { title: '表格列组件示例' }
30
- },
31
- {
32
- path: '/form',
33
- name: 'Form',
34
- component: () => import('../views/Form.vue'),
35
- meta: { title: '表单组件示例' }
36
- },
37
- {
38
- path: '/button',
39
- name: 'button',
40
- component: ButtonView,
41
- meta: { title: '按钮组件示例' }
42
- },
43
- {
44
- path: '/tdesign-button',
45
- name: 'TdesignButton',
46
- component: () => import('../views/TdesignButton.vue'),
47
- meta: { title: 'TDesign按钮组件示例' }
48
- },
49
- {
50
- path: '/tdesign-icon',
51
- name: 'TdesignIcon',
52
- component: () => import('../views/TdesignIcon.vue'),
53
- meta: { title: 'TDesign图标组件示例' }
54
- },
55
- {
56
- path: '/tdesign-input',
57
- name: 'TdesignInput',
58
- component: () => import('../views/TdesignInput.vue'),
59
- meta: { title: 'TDesign输入框组件示例' }
60
- },
61
- {
62
- path: '/tdesign-select',
63
- name: 'TdesignSelect',
64
- component: () => import('../views/TdesignSelect.vue'),
65
- meta: { title: 'TDesign选择器组件示例' }
66
- },
67
- {
68
- path: '/tdesign-card',
69
- name: 'TdesignCard',
70
- component: () => import('../views/TdesignCard.vue'),
71
- meta: { title: 'TDesign卡片组件示例' }
72
- },
73
- {
74
- path: '/tdesign-form',
75
- name: 'TdesignForm',
76
- component: () => import('../views/TdesignForm.vue'),
77
- meta: { title: 'TDesign表单组件示例' }
78
- },
79
- {
80
- path: '/tdesign-date-picker',
81
- name: 'TdesignDatePicker',
82
- component: () => import('../views/TdesignDatePicker.vue'),
83
- meta: { title: 'TDesign日期选择器组件示例' }
84
- },
85
- {
86
- path: '/tdesign-image',
87
- name: 'TdesignImage',
88
- component: () => import('../views/TdesignImage.vue'),
89
- meta: { title: 'TDesign图片组件示例' }
90
- },
91
- {
92
- path: '/tdesign-image-viewer',
93
- name: 'TdesignImageViewer',
94
- component: () => import('../views/TdesignImageViewer.vue'),
95
- meta: { title: 'TDesign图片查看器组件示例' }
96
- },
97
- {
98
- path: '/data-container',
99
- name: 'DataContainer',
100
- component: () => import('../views/DataContainer.vue'),
101
- meta: { title: '数据容器示例' }
102
- },
103
- {
104
- path: '/title',
105
- name: 'Title',
106
- component: () => import('../views/Title.vue'),
107
- meta: { title: '标题组件示例' }
108
- },
109
- {
110
- path: '/okr-tree',
111
- name: 'OkrTree',
112
- component: () => import('../views/OkrTree.vue'),
113
- meta: { title: 'OKR树形图示例' }
114
- },
115
- {
116
- path: '/remote-select',
117
- name: 'RemoteSelect',
118
- component: () => import('../views/RemoteSelect.vue'),
119
- meta: { title: '远程选择器示例' }
120
- },
121
- {
122
- path: '/mindmap',
123
- name: 'Mindmap',
124
- component: () => import('../views/Mindmap.vue'),
125
- meta: { title: '思维导图示例' }
126
- },
127
- {
128
- path: '/tdesign-calendar',
129
- name: 'TdesignCalendar',
130
- component: () => import('../views/TdesignCalendar.vue'),
131
- meta: { title: 'TDesign日历组件示例' }
132
- },
133
- {
134
- path: '/tdesign-collapse',
135
- name: 'TdesignCollapse',
136
- component: () => import('../views/TdesignCollapse.vue'),
137
- meta: { title: 'TDesign折叠面板组件示例' }
138
- },
139
- {
140
- path: '/tdesign-tag',
141
- name: 'TdesignTag',
142
- component: () => import('../views/TagDemo.vue'),
143
- meta: { title: 'TDesign标签组件示例' }
144
- },
145
- {
146
- path: '/ebiz-swiper',
147
- name: 'EbizSwiper',
148
- component: () => import('../views/EbizSwiper.vue'),
149
- meta: { title: 'Ebiz轮播框组件示例' }
150
- },
151
- {
152
- path: '/ebiz-space',
153
- name: 'EbizSpace',
154
- component: () => import('../views/EbizSpace.vue'),
155
- meta: { title: 'Ebiz间距组件示例' }
156
- },
157
- {
158
- path: '/pagination',
159
- name: 'Pagination',
160
- component: () => import('../views/PaginationDemo.vue'),
161
- meta: { title: 'EbizPagination分页组件示例' }
162
- },
163
- {
164
- path: '/checkbox',
165
- name: 'Checkbox',
166
- component: () => import('../views/CheckboxDemo.vue'),
167
- meta: { title: 'Ebiz多选框组件示例' }
168
- },
169
- {
170
- path: '/radio',
171
- name: 'Radio',
172
- component: () => import('../views/EbizRadioDemo.vue'),
173
- meta: { title: 'Ebiz单选框组件示例' }
174
- },
175
- {
176
- path: '/switch',
177
- name: 'Switch',
178
- component: () => import('../views/SwitchDemo.vue'),
179
- meta: { title: 'Ebiz开关组件示例' }
180
- },
181
- {
182
- path: '/textarea',
183
- name: 'Textarea',
184
- component: () => import('../views/TextareaDemo.vue'),
185
- meta: { title: 'Ebiz多行文本框组件示例' }
186
- },
187
- {
188
- path: '/upload',
189
- name: 'Upload',
190
- component: () => import('../views/UploadDemo.vue'),
191
- meta: { title: 'TDesign上传组件示例' }
192
- },
193
- {
194
- path: '/grid',
195
- name: 'Grid',
196
- component: () => import('../views/GridDemo.vue'),
197
- meta: { title: 'TDesign栅格组件示例' }
198
- },
199
- {
200
- path: '/tabs',
201
- name: 'Tabs',
202
- component: () => import('../views/TabsDemo.vue'),
203
- meta: { title: 'Ebiz选项卡组件示例' }
204
- },
205
- {
206
- path: '/statistic',
207
- name: 'Statistic',
208
- component: () => import('../views/StatisticDemo.vue'),
209
- meta: { title: 'Ebiz统计数值组件示例' }
210
- },
211
- {
212
- path: '/timeline',
213
- name: 'Timeline',
214
- component: () => import('../views/TimelineDemo.vue'),
215
- meta: { title: 'Ebiz时间轴组件示例' }
216
- },
217
- {
218
- path: '/watermark',
219
- name: 'Watermark',
220
- component: () => import('../views/WatermarkDemo.vue'),
221
- meta: { title: 'TDesign水印组件示例' }
222
- },
223
- {
224
- path: '/ebiz-avatar',
225
- name: 'EbizAvatar',
226
- component: () => import('../views/EbizAvatar.vue'),
227
- meta: { title: 'Ebiz头像组件示例' }
228
- },
229
- {
230
- path: '/ebiz-employee-info',
231
- name: 'EbizEmployeeInfo',
232
- component: () => import('../views/EbizEmployeeInfo.vue'),
233
- meta: { title: 'Ebiz员工信息组件示例' }
234
- },
235
- {
236
- path: '/tdesign-alert',
237
- name: 'TdesignAlert',
238
- component: () => import('../views/TdesignAlert.vue'),
239
- meta: { title: 'TDesign提示组件示例' }
240
- },
241
- {
242
- path: '/tdesign-dialog',
243
- name: 'TdesignDialog',
244
- component: () => import('../views/DialogDemo.vue'),
245
- meta: { title: 'TDesign对话框组件示例' }
246
- },
247
- {
248
- path: '/table-demo',
249
- name: 'TableDemo',
250
- component: () => import('../views/TableDemo.vue'),
251
- meta: { title: 'Ebiz表格组件示例' }
252
- },
253
- {
254
- path: '/table-sort',
255
- name: 'TableSort',
256
- component: () => import('../views/TableSortDemo.vue'),
257
- meta: { title: 'Ebiz表格排序组件示例' }
258
- },
259
- {
260
- path: '/tree',
261
- name: 'Tree',
262
- component: () => import('../views/TreeDemo.vue'),
263
- meta: { title: 'Ebiz树组件示例' }
264
- },
265
- {
266
- path: '/tree-demo',
267
- name: 'TreeDemo',
268
- component: () => import('../views/TreeDemo.vue'),
269
- meta: { title: 'Ebiz树组件示例' }
270
- },
271
- {
272
- path: '/tree-selector-demo',
273
- name: 'TreeSelectorDemo',
274
- component: () => import('../views/TreeSelectorDemo.vue'),
275
- meta: {
276
- title: '树形选择器'
277
- }
278
- }
279
- ]
280
-
281
- const router = createRouter({
282
- history: createWebHistory(),
283
- routes
284
- })
285
-
1
+ import { createRouter, createWebHistory } from 'vue-router'
2
+ import Home from '../views/Home.vue'
3
+ import ButtonView from '../views/Button.vue'
4
+ import TableView from '../views/TableView.vue'
5
+
6
+ const routes = [
7
+ {
8
+ path: '/',
9
+ name: 'Home',
10
+ component: Home,
11
+ meta: { title: '首页' }
12
+ },
13
+ {
14
+ path: '/my-component',
15
+ name: 'MyComponent',
16
+ component: () => import('../views/MyComponent.vue'),
17
+ meta: { title: '基础组件示例' }
18
+ },
19
+ {
20
+ path: '/table',
21
+ name: 'table',
22
+ component: TableView,
23
+ meta: { title: '表格组件示例' }
24
+ },
25
+ {
26
+ path: '/table-column',
27
+ name: 'table-column',
28
+ component: TableView,
29
+ meta: { title: '表格列组件示例' }
30
+ },
31
+ {
32
+ path: '/form',
33
+ name: 'Form',
34
+ component: () => import('../views/Form.vue'),
35
+ meta: { title: '表单组件示例' }
36
+ },
37
+ {
38
+ path: '/button',
39
+ name: 'button',
40
+ component: ButtonView,
41
+ meta: { title: '按钮组件示例' }
42
+ },
43
+ {
44
+ path: '/tdesign-button',
45
+ name: 'TdesignButton',
46
+ component: () => import('../views/TdesignButton.vue'),
47
+ meta: { title: 'TDesign按钮组件示例' }
48
+ },
49
+ {
50
+ path: '/tdesign-icon',
51
+ name: 'TdesignIcon',
52
+ component: () => import('../views/TdesignIcon.vue'),
53
+ meta: { title: 'TDesign图标组件示例' }
54
+ },
55
+ {
56
+ path: '/tdesign-input',
57
+ name: 'TdesignInput',
58
+ component: () => import('../views/TdesignInput.vue'),
59
+ meta: { title: 'TDesign输入框组件示例' }
60
+ },
61
+ {
62
+ path: '/tdesign-select',
63
+ name: 'TdesignSelect',
64
+ component: () => import('../views/TdesignSelect.vue'),
65
+ meta: { title: 'TDesign选择器组件示例' }
66
+ },
67
+ {
68
+ path: '/tdesign-card',
69
+ name: 'TdesignCard',
70
+ component: () => import('../views/TdesignCard.vue'),
71
+ meta: { title: 'TDesign卡片组件示例' }
72
+ },
73
+ {
74
+ path: '/tdesign-form',
75
+ name: 'TdesignForm',
76
+ component: () => import('../views/TdesignForm.vue'),
77
+ meta: { title: 'TDesign表单组件示例' }
78
+ },
79
+ {
80
+ path: '/tdesign-date-picker',
81
+ name: 'TdesignDatePicker',
82
+ component: () => import('../views/TdesignDatePicker.vue'),
83
+ meta: { title: 'TDesign日期选择器组件示例' }
84
+ },
85
+ {
86
+ path: '/tdesign-image',
87
+ name: 'TdesignImage',
88
+ component: () => import('../views/TdesignImage.vue'),
89
+ meta: { title: 'TDesign图片组件示例' }
90
+ },
91
+ {
92
+ path: '/tdesign-image-viewer',
93
+ name: 'TdesignImageViewer',
94
+ component: () => import('../views/TdesignImageViewer.vue'),
95
+ meta: { title: 'TDesign图片查看器组件示例' }
96
+ },
97
+ {
98
+ path: '/data-container',
99
+ name: 'DataContainer',
100
+ component: () => import('../views/DataContainer.vue'),
101
+ meta: { title: '数据容器示例' }
102
+ },
103
+ {
104
+ path: '/title',
105
+ name: 'Title',
106
+ component: () => import('../views/Title.vue'),
107
+ meta: { title: '标题组件示例' }
108
+ },
109
+ {
110
+ path: '/okr-tree',
111
+ name: 'OkrTree',
112
+ component: () => import('../views/OkrTree.vue'),
113
+ meta: { title: 'OKR树形图示例' }
114
+ },
115
+ {
116
+ path: '/remote-select',
117
+ name: 'RemoteSelect',
118
+ component: () => import('../views/RemoteSelect.vue'),
119
+ meta: { title: '远程选择器示例' }
120
+ },
121
+ {
122
+ path: '/mindmap',
123
+ name: 'Mindmap',
124
+ component: () => import('../views/Mindmap.vue'),
125
+ meta: { title: '思维导图示例' }
126
+ },
127
+ {
128
+ path: '/tdesign-calendar',
129
+ name: 'TdesignCalendar',
130
+ component: () => import('../views/TdesignCalendar.vue'),
131
+ meta: { title: 'TDesign日历组件示例' }
132
+ },
133
+ {
134
+ path: '/tdesign-collapse',
135
+ name: 'TdesignCollapse',
136
+ component: () => import('../views/TdesignCollapse.vue'),
137
+ meta: { title: 'TDesign折叠面板组件示例' }
138
+ },
139
+ {
140
+ path: '/tdesign-tag',
141
+ name: 'TdesignTag',
142
+ component: () => import('../views/TagDemo.vue'),
143
+ meta: { title: 'TDesign标签组件示例' }
144
+ },
145
+ {
146
+ path: '/ebiz-swiper',
147
+ name: 'EbizSwiper',
148
+ component: () => import('../views/EbizSwiper.vue'),
149
+ meta: { title: 'Ebiz轮播框组件示例' }
150
+ },
151
+ {
152
+ path: '/ebiz-space',
153
+ name: 'EbizSpace',
154
+ component: () => import('../views/EbizSpace.vue'),
155
+ meta: { title: 'Ebiz间距组件示例' }
156
+ },
157
+ {
158
+ path: '/pagination',
159
+ name: 'Pagination',
160
+ component: () => import('../views/PaginationDemo.vue'),
161
+ meta: { title: 'EbizPagination分页组件示例' }
162
+ },
163
+ {
164
+ path: '/checkbox',
165
+ name: 'Checkbox',
166
+ component: () => import('../views/CheckboxDemo.vue'),
167
+ meta: { title: 'Ebiz多选框组件示例' }
168
+ },
169
+ {
170
+ path: '/radio',
171
+ name: 'Radio',
172
+ component: () => import('../views/EbizRadioDemo.vue'),
173
+ meta: { title: 'Ebiz单选框组件示例' }
174
+ },
175
+ {
176
+ path: '/switch',
177
+ name: 'Switch',
178
+ component: () => import('../views/SwitchDemo.vue'),
179
+ meta: { title: 'Ebiz开关组件示例' }
180
+ },
181
+ {
182
+ path: '/textarea',
183
+ name: 'Textarea',
184
+ component: () => import('../views/TextareaDemo.vue'),
185
+ meta: { title: 'Ebiz多行文本框组件示例' }
186
+ },
187
+ {
188
+ path: '/upload',
189
+ name: 'Upload',
190
+ component: () => import('../views/UploadDemo.vue'),
191
+ meta: { title: 'TDesign上传组件示例' }
192
+ },
193
+ {
194
+ path: '/grid',
195
+ name: 'Grid',
196
+ component: () => import('../views/GridDemo.vue'),
197
+ meta: { title: 'TDesign栅格组件示例' }
198
+ },
199
+ {
200
+ path: '/tabs',
201
+ name: 'Tabs',
202
+ component: () => import('../views/TabsDemo.vue'),
203
+ meta: { title: 'Ebiz选项卡组件示例' }
204
+ },
205
+ {
206
+ path: '/statistic',
207
+ name: 'Statistic',
208
+ component: () => import('../views/StatisticDemo.vue'),
209
+ meta: { title: 'Ebiz统计数值组件示例' }
210
+ },
211
+ {
212
+ path: '/timeline',
213
+ name: 'Timeline',
214
+ component: () => import('../views/TimelineDemo.vue'),
215
+ meta: { title: 'Ebiz时间轴组件示例' }
216
+ },
217
+ {
218
+ path: '/watermark',
219
+ name: 'Watermark',
220
+ component: () => import('../views/WatermarkDemo.vue'),
221
+ meta: { title: 'TDesign水印组件示例' }
222
+ },
223
+ {
224
+ path: '/ebiz-avatar',
225
+ name: 'EbizAvatar',
226
+ component: () => import('../views/EbizAvatar.vue'),
227
+ meta: { title: 'Ebiz头像组件示例' }
228
+ },
229
+ {
230
+ path: '/ebiz-employee-info',
231
+ name: 'EbizEmployeeInfo',
232
+ component: () => import('../views/EbizEmployeeInfo.vue'),
233
+ meta: { title: 'Ebiz员工信息组件示例' }
234
+ },
235
+ {
236
+ path: '/tdesign-alert',
237
+ name: 'TdesignAlert',
238
+ component: () => import('../views/TdesignAlert.vue'),
239
+ meta: { title: 'TDesign提示组件示例' }
240
+ },
241
+ {
242
+ path: '/tdesign-dialog',
243
+ name: 'TdesignDialog',
244
+ component: () => import('../views/DialogDemo.vue'),
245
+ meta: { title: 'TDesign对话框组件示例' }
246
+ },
247
+ {
248
+ path: '/table-demo',
249
+ name: 'TableDemo',
250
+ component: () => import('../views/TableDemo.vue'),
251
+ meta: { title: 'Ebiz表格组件示例' }
252
+ },
253
+ {
254
+ path: '/table-sort',
255
+ name: 'TableSort',
256
+ component: () => import('../views/TableSortDemo.vue'),
257
+ meta: { title: 'Ebiz表格排序组件示例' }
258
+ },
259
+ {
260
+ path: '/ebiz-detail-block',
261
+ name: 'EbizDetailBlock',
262
+ component: () => import('../views/EbizDetailBlockDemo.vue'),
263
+ meta: { title: 'Ebiz详情块组件示例' }
264
+ },
265
+ {
266
+ path: '/tree',
267
+ name: 'Tree',
268
+ component: () => import('../views/TreeDemo.vue'),
269
+ meta: { title: 'Ebiz树组件示例' }
270
+ },
271
+ {
272
+ path: '/tree-demo',
273
+ name: 'TreeDemo',
274
+ component: () => import('../views/TreeDemo.vue'),
275
+ meta: { title: 'Ebiz树组件示例' }
276
+ },
277
+ {
278
+ path: '/tree-selector-demo',
279
+ name: 'TreeSelectorDemo',
280
+ component: () => import('../views/TreeSelectorDemo.vue'),
281
+ meta: {
282
+ title: '树形选择器'
283
+ }
284
+ }
285
+ ]
286
+
287
+ const router = createRouter({
288
+ history: createWebHistory(),
289
+ routes
290
+ })
291
+
286
292
  export default router