@ebiz/designer-components 0.1.0 → 0.1.1

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.
Files changed (205) hide show
  1. package/README.md +29 -29
  2. package/dist/designer-components.css +1 -1
  3. package/dist/index.mjs +264 -264
  4. package/package.json +1 -1
  5. package/src/App.vue +26 -26
  6. package/src/apiService/SIMPLE_DATA_SERVICE.md +284 -284
  7. package/src/apiService/mockDataService.js +115 -115
  8. package/src/apiService/simpleDataService.js +297 -297
  9. package/src/assets/base.css +86 -86
  10. package/src/assets/logo.svg +1 -1
  11. package/src/components/Button.vue +149 -149
  12. package/src/components/DataContainer.vue +40 -40
  13. package/src/components/EbizApproval.vue +332 -332
  14. package/src/components/EbizAutoForm.vue +596 -596
  15. package/src/components/EbizAvatar.vue +115 -115
  16. package/src/components/EbizCheckbox.vue +93 -93
  17. package/src/components/EbizCheckboxGroup.vue +69 -69
  18. package/src/components/EbizDepartmentSelector.vue +144 -144
  19. package/src/components/EbizDescriptions.vue +340 -340
  20. package/src/components/EbizDescriptionsItem.vue +47 -47
  21. package/src/components/EbizDetailBlock.vue +81 -81
  22. package/src/components/EbizDialog.vue +260 -260
  23. package/src/components/EbizDiv.vue +32 -32
  24. package/src/components/EbizDivider.vue +96 -96
  25. package/src/components/EbizDropdown.vue +117 -0
  26. package/src/components/EbizDropdownItem.vue +81 -0
  27. package/src/components/EbizEmployeeInfo.vue +138 -138
  28. package/src/components/EbizEmployeeSelector.vue +1095 -1095
  29. package/src/components/EbizFileUpload.vue +238 -238
  30. package/src/components/EbizMap.vue +541 -541
  31. package/src/components/EbizMeetingRoomSelector.vue +664 -664
  32. package/src/components/EbizMobileMeetingRoomSelector.vue +727 -727
  33. package/src/components/EbizOkrTree.vue +99 -99
  34. package/src/components/EbizPageHeader.vue +95 -95
  35. package/src/components/EbizPagination.vue +162 -162
  36. package/src/components/EbizPopconfirm.vue +47 -47
  37. package/src/components/EbizRadio.vue +86 -86
  38. package/src/components/EbizRadioGroup.vue +83 -83
  39. package/src/components/EbizRemoteSelect.vue +232 -232
  40. package/src/components/EbizRouteBreadcrumb.vue +46 -46
  41. package/src/components/EbizSelect.vue +85 -85
  42. package/src/components/EbizSpace.vue +100 -100
  43. package/src/components/EbizStatistic.vue +149 -149
  44. package/src/components/EbizStatsCard.vue +113 -113
  45. package/src/components/EbizSwiper.vue +113 -113
  46. package/src/components/EbizSwiperItem.vue +13 -13
  47. package/src/components/EbizSwitch.vue +85 -85
  48. package/src/components/EbizTabHeader.vue +132 -132
  49. package/src/components/EbizTabPanel.vue +22 -22
  50. package/src/components/EbizTable.vue +469 -469
  51. package/src/components/EbizTableColumn.vue +116 -116
  52. package/src/components/EbizTableSort.vue +179 -179
  53. package/src/components/EbizTabs.vue +142 -142
  54. package/src/components/EbizTdesignButtonDialog.vue +332 -332
  55. package/src/components/EbizTdesignLoading.vue +107 -107
  56. package/src/components/EbizTimePicker.vue +143 -143
  57. package/src/components/EbizTitle.vue +91 -91
  58. package/src/components/EbizTree.vue +152 -152
  59. package/src/components/EbizTreeMergeTable.vue +1414 -1414
  60. package/src/components/EbizTreeSelector.vue +418 -418
  61. package/src/components/EbizVxeTable.vue +290 -290
  62. package/src/components/Form.vue +28 -28
  63. package/src/components/Home.vue +7 -7
  64. package/src/components/MyComponent.vue +39 -39
  65. package/src/components/Table.vue +45 -45
  66. package/src/components/TdesignAlert.vue +115 -115
  67. package/src/components/TdesignButton.vue +135 -135
  68. package/src/components/TdesignCalendar/index.vue +145 -145
  69. package/src/components/TdesignCard.vue +195 -195
  70. package/src/components/TdesignCol.vue +101 -101
  71. package/src/components/TdesignCollapse.vue +142 -142
  72. package/src/components/TdesignCollapsePanel.vue +79 -79
  73. package/src/components/TdesignDatePicker.vue +124 -124
  74. package/src/components/TdesignDescriptions.vue +74 -74
  75. package/src/components/TdesignDescriptionsItem.vue +50 -50
  76. package/src/components/TdesignDialog.vue +225 -225
  77. package/src/components/TdesignForm.vue +138 -138
  78. package/src/components/TdesignFormItem.vue +105 -105
  79. package/src/components/TdesignGrid.vue +55 -55
  80. package/src/components/TdesignIcon.vue +67 -67
  81. package/src/components/TdesignImage.vue +162 -162
  82. package/src/components/TdesignImageViewer.vue +200 -200
  83. package/src/components/TdesignInput.vue +242 -242
  84. package/src/components/TdesignSelect.vue +444 -444
  85. package/src/components/TdesignTag.vue +117 -117
  86. package/src/components/TdesignTextarea.vue +142 -142
  87. package/src/components/TdesignTimeline.vue +58 -58
  88. package/src/components/TdesignTimelineItem.vue +71 -71
  89. package/src/components/TdesignUpload.vue +392 -392
  90. package/src/components/TdesignWatermark.vue +107 -107
  91. package/src/components/ebiz-form/components/cascader.vue +61 -61
  92. package/src/components/ebiz-form/components/checkbox.vue +37 -37
  93. package/src/components/ebiz-form/components/city.vue +137 -137
  94. package/src/components/ebiz-form/components/date-panel.vue +52 -52
  95. package/src/components/ebiz-form/components/date-range-panel.vue +52 -52
  96. package/src/components/ebiz-form/components/date-range.vue +56 -56
  97. package/src/components/ebiz-form/components/date.vue +52 -52
  98. package/src/components/ebiz-form/components/editor-multi-language.vue +47 -47
  99. package/src/components/ebiz-form/components/editor.vue +78 -78
  100. package/src/components/ebiz-form/components/file-multi-language.vue +52 -52
  101. package/src/components/ebiz-form/components/file.vue +149 -149
  102. package/src/components/ebiz-form/components/images-multi-language.vue +52 -52
  103. package/src/components/ebiz-form/components/images.vue +129 -129
  104. package/src/components/ebiz-form/components/img-multi-language.vue +51 -51
  105. package/src/components/ebiz-form/components/img.vue +129 -129
  106. package/src/components/ebiz-form/components/number.vue +50 -50
  107. package/src/components/ebiz-form/components/radio.vue +28 -28
  108. package/src/components/ebiz-form/components/select.vue +119 -119
  109. package/src/components/ebiz-form/components/switch.vue +23 -23
  110. package/src/components/ebiz-form/components/text-multi-language.vue +47 -47
  111. package/src/components/ebiz-form/components/text.vue +52 -52
  112. package/src/components/ebiz-form/components/textarea-multi-language.vue +48 -48
  113. package/src/components/ebiz-form/components/textarea.vue +29 -29
  114. package/src/components/ebiz-form/components/video-multi-language.vue +51 -51
  115. package/src/components/ebiz-form/components/video.vue +97 -97
  116. package/src/components/ebiz-form/index.vue +157 -157
  117. package/src/components/examples/PopconfirmExample.vue +149 -149
  118. package/src/components/icons/IconCommunity.vue +7 -7
  119. package/src/components/icons/IconDocumentation.vue +7 -7
  120. package/src/components/icons/IconEcosystem.vue +7 -7
  121. package/src/components/icons/IconSupport.vue +7 -7
  122. package/src/components/icons/IconTooling.vue +19 -19
  123. package/src/components/senior/EbizSData/index.vue +262 -262
  124. package/src/components/senior/EbizSDialog/index.vue +715 -715
  125. package/src/components/senior/EbizSForm/README.md +157 -157
  126. package/src/components/senior/EbizSForm/index.vue +668 -668
  127. package/src/components/senior/EbizSForm/item.vue +512 -512
  128. package/src/components/senior/EbizSForm/mItems/DateTimePicker.vue +51 -51
  129. package/src/components/senior/EbizSForm/mItems/Picker.vue +63 -63
  130. package/src/index.js +224 -224
  131. package/src/main.js +55 -55
  132. package/src/router/index.js +386 -386
  133. package/src/utils/formatCode.js +24 -24
  134. package/src/utils/generateImportStatement.js +52 -52
  135. package/src/utils/hasJsx.js +25 -25
  136. package/src/utils/index.js +166 -166
  137. package/src/utils/mergeOptions.js +29 -29
  138. package/src/utils/parseRequiredBlocks.js +18 -18
  139. package/src/utils/upload.ts +126 -126
  140. package/src/utils/vue-sfc-validator.js +155 -155
  141. package/src/views/Button.vue +23 -23
  142. package/src/views/CheckboxDemo.vue +104 -104
  143. package/src/views/DataContainer.vue +19 -19
  144. package/src/views/DialogDemo.vue +125 -125
  145. package/src/views/EbizApprovalDemo.vue +76 -76
  146. package/src/views/EbizAutoFormDemo.vue +129 -129
  147. package/src/views/EbizAvatar.vue +223 -223
  148. package/src/views/EbizDepartmentSelectorDemo.vue +169 -169
  149. package/src/views/EbizDetailBlockDemo.vue +30 -30
  150. package/src/views/EbizEmployeeInfo.vue +249 -249
  151. package/src/views/EbizEmployeeSelector.vue +83 -83
  152. package/src/views/EbizMap.vue +201 -201
  153. package/src/views/EbizMeetingRoomSelectorDemo.vue +293 -293
  154. package/src/views/EbizMobileMeetingRoomSelectorDemo.vue +566 -566
  155. package/src/views/EbizRadioDemo.vue +151 -151
  156. package/src/views/EbizSDataDemo.vue +136 -136
  157. package/src/views/EbizSDialogDemo.vue +301 -301
  158. package/src/views/EbizSForm/index.vue +359 -359
  159. package/src/views/EbizSFormDemo.vue +420 -420
  160. package/src/views/EbizSpace.vue +185 -185
  161. package/src/views/EbizSwiper.vue +157 -157
  162. package/src/views/EbizTdesignButtonDialogExample.vue +437 -437
  163. package/src/views/Form.vue +19 -19
  164. package/src/views/GridDemo.vue +238 -238
  165. package/src/views/Home.vue +148 -148
  166. package/src/views/Mindmap.vue +17 -17
  167. package/src/views/MyComponent.vue +19 -19
  168. package/src/views/OkrTree.vue +19 -19
  169. package/src/views/PageHeaderDemo.vue +104 -104
  170. package/src/views/PaginationDemo.vue +96 -96
  171. package/src/views/PermissionBoxDemo.vue +85 -85
  172. package/src/views/PopconfirmDemo.vue +80 -80
  173. package/src/views/RemoteSelect.vue +350 -350
  174. package/src/views/StatisticDemo.vue +190 -190
  175. package/src/views/SwitchDemo.vue +79 -79
  176. package/src/views/Table.vue +19 -19
  177. package/src/views/TableDemo.vue +334 -334
  178. package/src/views/TableSortDemo.vue +143 -143
  179. package/src/views/TableView.vue +68 -68
  180. package/src/views/TabsDemo.vue +282 -282
  181. package/src/views/TagDemo.vue +101 -101
  182. package/src/views/TdesignAlert.vue +98 -98
  183. package/src/views/TdesignButton.vue +190 -190
  184. package/src/views/TdesignCalendar.vue +94 -94
  185. package/src/views/TdesignCard.vue +296 -296
  186. package/src/views/TdesignCollapse.vue +293 -293
  187. package/src/views/TdesignDatePicker.vue +187 -187
  188. package/src/views/TdesignDescriptions.vue +101 -101
  189. package/src/views/TdesignForm.vue +248 -248
  190. package/src/views/TdesignIcon.vue +203 -203
  191. package/src/views/TdesignImage.vue +215 -215
  192. package/src/views/TdesignImageViewer.vue +198 -198
  193. package/src/views/TdesignInput.vue +252 -252
  194. package/src/views/TdesignSelect.vue +473 -473
  195. package/src/views/TdesignSwiper.vue +157 -157
  196. package/src/views/TextareaDemo.vue +93 -93
  197. package/src/views/TimePickerDemo.vue +146 -146
  198. package/src/views/TimelineDemo.vue +160 -160
  199. package/src/views/Title.vue +19 -19
  200. package/src/views/TreeDemo.vue +254 -254
  201. package/src/views/TreeMergeTableDemo.vue +239 -239
  202. package/src/views/TreeSelectorDemo.vue +245 -245
  203. package/src/views/UploadDemo.vue +121 -121
  204. package/src/views/VxeTableDemo.vue +279 -279
  205. package/src/views/WatermarkDemo.vue +85 -85
@@ -1,149 +1,149 @@
1
- <template>
2
- <div class="home">
3
- <h1>Ebiz 组件库</h1>
4
- <div class="component-list">
5
- <div v-for="(item, index) in components" :key="index" class="component-item">
6
- <router-link :to="item.path" class="component-link">
7
- {{ item.title }}
8
- </router-link>
9
- </div>
10
-
11
- <router-link to="/tree-demo" class="component-item">
12
- <div class="component-title">树组件</div>
13
- <div class="component-desc">用于展示层级结构和操作的组件</div>
14
- </router-link>
15
-
16
- <router-link to="/tree-selector-demo" class="component-item">
17
- <div class="component-title">树形选择器</div>
18
- <div class="component-desc">基于树组件的选择器,支持搜索和多选</div>
19
- </router-link>
20
-
21
- <router-link to="/tree-merge-table-demo" class="component-item">
22
- <div class="component-title">树形合并表格</div>
23
- <div class="component-desc">支持树形展示和单元格合并的表格组件</div>
24
- </router-link>
25
-
26
- <router-link to="/permission-box" class="component-item">
27
- <div class="component-title">权限盒子组件示例</div>
28
- <div class="component-desc">用于展示权限控制的组件示例</div>
29
- </router-link>
30
- </div>
31
- </div>
32
- </template>
33
-
34
- <script>
35
- export default {
36
- name: 'Home',
37
- setup() {
38
- const components = [
39
- { path: '/my-component', title: '基础组件示例' },
40
- { path: '/table', title: '表格组件示例' },
41
- { path: '/form', title: '表单组件示例' },
42
- { path: '/button', title: '按钮组件示例' },
43
- { path: '/tdesign-button', title: 'TDesign按钮组件示例' },
44
- { path: '/tdesign-icon', title: 'TDesign图标组件示例' },
45
- { path: '/tdesign-input', title: 'TDesign输入框组件示例' },
46
- { path: '/tdesign-select', title: 'TDesign选择器组件示例' },
47
- { path: '/tdesign-form', title: 'TDesign表单组件示例' },
48
- { path: '/tdesign-card', title: 'TDesign卡片组件示例' },
49
- { path: '/tdesign-date-picker', title: 'TDesign日期选择器示例' },
50
- { path: '/tdesign-image', title: 'TDesign图片组件示例' },
51
- { path: '/tdesign-image-viewer', title: 'TDesign图片查看器组件示例' },
52
- { path: '/data-container', title: '数据容器示例' },
53
- { path: '/title', title: '标题组件示例' },
54
- { path: '/okr-tree', title: 'OKR树形图示例' },
55
- { path: '/remote-select', title: '远程选择器示例' },
56
- { path: '/mindmap', title: '思维导图示例' },
57
- { path: '/tdesign-calendar', title: 'TDesign日历组件示例' },
58
- { path: '/tdesign-collapse', title: 'TDesign折叠面板组件示例' },
59
- { path: '/tdesign-tag', title: 'TDesign标签组件示例' },
60
- { path: '/ebiz-swiper', title: 'Ebiz轮播框组件示例' },
61
- { path: '/ebiz-space', title: 'Ebiz间距组件示例' },
62
- { path: '/pagination', title: 'EbizPagination分页组件示例' },
63
- { path: '/checkbox', title: 'Ebiz多选框组件示例' },
64
- { path: '/radio', title: 'Ebiz单选框组件示例' },
65
- { path: '/switch', title: 'Ebiz开关组件示例' },
66
- { path: '/textarea', title: 'Ebiz多行文本框组件示例' },
67
- { path: '/upload', title: 'TDesign上传组件示例' },
68
- { path: '/grid', title: 'TDesign栅格组件示例' },
69
- { path: '/tabs', title: 'Ebiz选项卡组件示例' },
70
- { path: '/statistic', title: 'Ebiz统计数值组件示例' },
71
- { path: '/timeline', title: 'Ebiz时间轴组件示例' },
72
- { path: '/watermark', title: 'TDesign水印组件示例' },
73
- { path: '/ebiz-avatar', title: 'Ebiz头像组件示例' },
74
- { path: '/ebiz-employee-info', title: 'Ebiz员工信息组件示例' },
75
- { path: '/ebiz-employee-selector', title: 'Ebiz员工选择器组件示例' },
76
- { path: '/tdesign-alert', title: 'TDesign提示组件示例' },
77
- { path: '/tdesign-dialog', title: 'TDesign对话框组件示例' },
78
- { path: '/page-header', title: 'Ebiz页面头部组件示例' },
79
- { path: '/table-demo', title: 'Ebiz表格组件示例' },
80
- { path: '/detail-block', title: 'Ebiz详情块组件示例' },
81
- { path: '/table-column', title: 'Ebiz表格列组件示例' },
82
- { path: '/table-sort', title: 'Ebiz表格排序组件示例' },
83
- { path: '/time-picker', title: 'Ebiz时间选择器组件示例' },
84
- { path: '/tdesign-descriptions', title: 'Ebiz描述列表组件示例' },
85
- { path: '/popconfirm', title: 'Ebiz气泡确认框组件示例' },
86
- { path: '/tree-merge-table-demo', title: '树形合并表格组件示例' },
87
- { path: '/auto-form-demo', title: 'Ebiz自动表单组件示例' },
88
- { path: '/ebiz-department-selector', title: 'Ebiz部门选择器组件示例' },
89
- { path: '/ebiz-tdesign-button-dialog', title: '弹窗按钮组件示例' },
90
- { path: '/ebiz-s-form', title: 'PC端表单组件示例' },
91
- { path: '/ebiz-map', title: '地图经纬度选择器组件示例' },
92
- { path: '/ebiz-s-data', title: 'Ebiz数据组件示例' },
93
- { path: '/ebiz-s-dialog', title: 'Ebiz高级弹窗组件示例' },
94
- { path: '/approval', title: 'Ebiz审批组件示例' },
95
- { path: '/vxe-table', title: 'EbizVxeTable示例' },
96
- { path: '/meeting-room-selector', title: 'Ebiz会议室选择器组件示例' },
97
- { path: '/mobile-meeting-room-selector', title: 'Ebiz移动端会议室选择器组件示例' }
98
- ]
99
-
100
- return {
101
- components
102
- }
103
- }
104
- }
105
- </script>
106
-
107
- <style scoped>
108
- .home {
109
- padding: 20px;
110
- }
111
-
112
- .component-list {
113
- display: grid;
114
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
115
- gap: 20px;
116
- margin-top: 20px;
117
- }
118
-
119
- .component-item {
120
- background: #f5f5f5;
121
- padding: 20px;
122
- border-radius: 8px;
123
- text-align: center;
124
- }
125
-
126
- .component-link {
127
- color: #333;
128
- text-decoration: none;
129
- font-size: 16px;
130
- }
131
-
132
- .component-link:hover {
133
- color: #1890ff;
134
- }
135
-
136
- .component-title {
137
- font-size: 16px;
138
- font-weight: bold;
139
- margin-bottom: 10px;
140
- }
141
-
142
- .component-desc {
143
- font-size: 14px;
144
- }
145
-
146
- .component-item:hover {
147
- background-color: #e6e6e6;
148
- }
1
+ <template>
2
+ <div class="home">
3
+ <h1>Ebiz 组件库</h1>
4
+ <div class="component-list">
5
+ <div v-for="(item, index) in components" :key="index" class="component-item">
6
+ <router-link :to="item.path" class="component-link">
7
+ {{ item.title }}
8
+ </router-link>
9
+ </div>
10
+
11
+ <router-link to="/tree-demo" class="component-item">
12
+ <div class="component-title">树组件</div>
13
+ <div class="component-desc">用于展示层级结构和操作的组件</div>
14
+ </router-link>
15
+
16
+ <router-link to="/tree-selector-demo" class="component-item">
17
+ <div class="component-title">树形选择器</div>
18
+ <div class="component-desc">基于树组件的选择器,支持搜索和多选</div>
19
+ </router-link>
20
+
21
+ <router-link to="/tree-merge-table-demo" class="component-item">
22
+ <div class="component-title">树形合并表格</div>
23
+ <div class="component-desc">支持树形展示和单元格合并的表格组件</div>
24
+ </router-link>
25
+
26
+ <router-link to="/permission-box" class="component-item">
27
+ <div class="component-title">权限盒子组件示例</div>
28
+ <div class="component-desc">用于展示权限控制的组件示例</div>
29
+ </router-link>
30
+ </div>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ export default {
36
+ name: 'Home',
37
+ setup() {
38
+ const components = [
39
+ { path: '/my-component', title: '基础组件示例' },
40
+ { path: '/table', title: '表格组件示例' },
41
+ { path: '/form', title: '表单组件示例' },
42
+ { path: '/button', title: '按钮组件示例' },
43
+ { path: '/tdesign-button', title: 'TDesign按钮组件示例' },
44
+ { path: '/tdesign-icon', title: 'TDesign图标组件示例' },
45
+ { path: '/tdesign-input', title: 'TDesign输入框组件示例' },
46
+ { path: '/tdesign-select', title: 'TDesign选择器组件示例' },
47
+ { path: '/tdesign-form', title: 'TDesign表单组件示例' },
48
+ { path: '/tdesign-card', title: 'TDesign卡片组件示例' },
49
+ { path: '/tdesign-date-picker', title: 'TDesign日期选择器示例' },
50
+ { path: '/tdesign-image', title: 'TDesign图片组件示例' },
51
+ { path: '/tdesign-image-viewer', title: 'TDesign图片查看器组件示例' },
52
+ { path: '/data-container', title: '数据容器示例' },
53
+ { path: '/title', title: '标题组件示例' },
54
+ { path: '/okr-tree', title: 'OKR树形图示例' },
55
+ { path: '/remote-select', title: '远程选择器示例' },
56
+ { path: '/mindmap', title: '思维导图示例' },
57
+ { path: '/tdesign-calendar', title: 'TDesign日历组件示例' },
58
+ { path: '/tdesign-collapse', title: 'TDesign折叠面板组件示例' },
59
+ { path: '/tdesign-tag', title: 'TDesign标签组件示例' },
60
+ { path: '/ebiz-swiper', title: 'Ebiz轮播框组件示例' },
61
+ { path: '/ebiz-space', title: 'Ebiz间距组件示例' },
62
+ { path: '/pagination', title: 'EbizPagination分页组件示例' },
63
+ { path: '/checkbox', title: 'Ebiz多选框组件示例' },
64
+ { path: '/radio', title: 'Ebiz单选框组件示例' },
65
+ { path: '/switch', title: 'Ebiz开关组件示例' },
66
+ { path: '/textarea', title: 'Ebiz多行文本框组件示例' },
67
+ { path: '/upload', title: 'TDesign上传组件示例' },
68
+ { path: '/grid', title: 'TDesign栅格组件示例' },
69
+ { path: '/tabs', title: 'Ebiz选项卡组件示例' },
70
+ { path: '/statistic', title: 'Ebiz统计数值组件示例' },
71
+ { path: '/timeline', title: 'Ebiz时间轴组件示例' },
72
+ { path: '/watermark', title: 'TDesign水印组件示例' },
73
+ { path: '/ebiz-avatar', title: 'Ebiz头像组件示例' },
74
+ { path: '/ebiz-employee-info', title: 'Ebiz员工信息组件示例' },
75
+ { path: '/ebiz-employee-selector', title: 'Ebiz员工选择器组件示例' },
76
+ { path: '/tdesign-alert', title: 'TDesign提示组件示例' },
77
+ { path: '/tdesign-dialog', title: 'TDesign对话框组件示例' },
78
+ { path: '/page-header', title: 'Ebiz页面头部组件示例' },
79
+ { path: '/table-demo', title: 'Ebiz表格组件示例' },
80
+ { path: '/detail-block', title: 'Ebiz详情块组件示例' },
81
+ { path: '/table-column', title: 'Ebiz表格列组件示例' },
82
+ { path: '/table-sort', title: 'Ebiz表格排序组件示例' },
83
+ { path: '/time-picker', title: 'Ebiz时间选择器组件示例' },
84
+ { path: '/tdesign-descriptions', title: 'Ebiz描述列表组件示例' },
85
+ { path: '/popconfirm', title: 'Ebiz气泡确认框组件示例' },
86
+ { path: '/tree-merge-table-demo', title: '树形合并表格组件示例' },
87
+ { path: '/auto-form-demo', title: 'Ebiz自动表单组件示例' },
88
+ { path: '/ebiz-department-selector', title: 'Ebiz部门选择器组件示例' },
89
+ { path: '/ebiz-tdesign-button-dialog', title: '弹窗按钮组件示例' },
90
+ { path: '/ebiz-s-form', title: 'PC端表单组件示例' },
91
+ { path: '/ebiz-map', title: '地图经纬度选择器组件示例' },
92
+ { path: '/ebiz-s-data', title: 'Ebiz数据组件示例' },
93
+ { path: '/ebiz-s-dialog', title: 'Ebiz高级弹窗组件示例' },
94
+ { path: '/approval', title: 'Ebiz审批组件示例' },
95
+ { path: '/vxe-table', title: 'EbizVxeTable示例' },
96
+ { path: '/meeting-room-selector', title: 'Ebiz会议室选择器组件示例' },
97
+ { path: '/mobile-meeting-room-selector', title: 'Ebiz移动端会议室选择器组件示例' }
98
+ ]
99
+
100
+ return {
101
+ components
102
+ }
103
+ }
104
+ }
105
+ </script>
106
+
107
+ <style scoped>
108
+ .home {
109
+ padding: 20px;
110
+ }
111
+
112
+ .component-list {
113
+ display: grid;
114
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
115
+ gap: 20px;
116
+ margin-top: 20px;
117
+ }
118
+
119
+ .component-item {
120
+ background: #f5f5f5;
121
+ padding: 20px;
122
+ border-radius: 8px;
123
+ text-align: center;
124
+ }
125
+
126
+ .component-link {
127
+ color: #333;
128
+ text-decoration: none;
129
+ font-size: 16px;
130
+ }
131
+
132
+ .component-link:hover {
133
+ color: #1890ff;
134
+ }
135
+
136
+ .component-title {
137
+ font-size: 16px;
138
+ font-weight: bold;
139
+ margin-bottom: 10px;
140
+ }
141
+
142
+ .component-desc {
143
+ font-size: 14px;
144
+ }
145
+
146
+ .component-item:hover {
147
+ background-color: #e6e6e6;
148
+ }
149
149
  </style>
@@ -1,18 +1,18 @@
1
- <template>
2
- <div>
3
- <ebiz-route-breadcrumb />
4
- <!-- <ebiz-mindmap /> -->
5
- </div>
6
- </template>
7
-
8
- <script>
9
-
10
- export default {
11
- name: 'MindmapDemo',
12
- components: {
13
- }
14
- }
15
- </script>
16
-
17
- <style scoped>
1
+ <template>
2
+ <div>
3
+ <ebiz-route-breadcrumb />
4
+ <!-- <ebiz-mindmap /> -->
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+
10
+ export default {
11
+ name: 'MindmapDemo',
12
+ components: {
13
+ }
14
+ }
15
+ </script>
16
+
17
+ <style scoped>
18
18
  </style>
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <ebiz-route-breadcrumb />
4
- <my-component />
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import { MyComponent } from '@/index.js'
10
-
11
- export default {
12
- name: 'MyComponentDemo',
13
- components: {
14
- MyComponent
15
- }
16
- }
17
- </script>
18
-
19
- <style scoped>
1
+ <template>
2
+ <div>
3
+ <ebiz-route-breadcrumb />
4
+ <my-component />
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import { MyComponent } from '@/index.js'
10
+
11
+ export default {
12
+ name: 'MyComponentDemo',
13
+ components: {
14
+ MyComponent
15
+ }
16
+ }
17
+ </script>
18
+
19
+ <style scoped>
20
20
  </style>
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <ebiz-route-breadcrumb />
4
- <ebiz-okr-tree />
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import { EbizOkrTree } from '@/index.js'
10
-
11
- export default {
12
- name: 'OkrTreeDemo',
13
- components: {
14
- EbizOkrTree
15
- }
16
- }
17
- </script>
18
-
19
- <style scoped>
1
+ <template>
2
+ <div>
3
+ <ebiz-route-breadcrumb />
4
+ <ebiz-okr-tree />
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import { EbizOkrTree } from '@/index.js'
10
+
11
+ export default {
12
+ name: 'OkrTreeDemo',
13
+ components: {
14
+ EbizOkrTree
15
+ }
16
+ }
17
+ </script>
18
+
19
+ <style scoped>
20
20
  </style>
@@ -1,105 +1,105 @@
1
- <template>
2
- <div class="demo-container">
3
- <h2>页面头部组件演示</h2>
4
-
5
- <div class="section">
6
- <h3>基础用法</h3>
7
- <div class="example">
8
- <EbizPageHeader />
9
- </div>
10
- <div class="code">
11
- <pre><code>&lt;EbizPageHeader /&gt;</code></pre>
12
- </div>
13
- </div>
14
-
15
- <div class="section">
16
- <h3>功能说明</h3>
17
- <div class="description">
18
- <p>此组件会自动根据当前路由信息生成面包屑导航。确保路由配置中包含以下meta信息:</p>
19
- <pre><code>
20
- // 路由配置示例
21
- {
22
- path: '/hr',
23
- component: HR,
24
- meta: {
25
- title: '人事管理', // 面包屑显示的标题
26
- icon: 'user' // 面包屑的图标名称,使用TDesign图标
27
- },
28
- children: [
29
- {
30
- path: 'employee',
31
- component: Employee,
32
- meta: {
33
- title: '员工管理',
34
- icon: 'user-talk'
35
- }
36
- }
37
- ]
38
- }
39
- </code></pre>
40
- </div>
41
- </div>
42
-
43
- <div class="section">
44
- <h3>帮助文档跳转</h3>
45
- <p>点击帮助文档按钮会自动跳转到 /help 路径,并带上当前路由作为查询参数。</p>
46
- </div>
47
- </div>
48
- </template>
49
-
50
- <script setup>
51
- import { EbizPageHeader } from '../index.js'
52
- </script>
53
-
54
- <style scoped>
55
- .demo-container {
56
- padding: 20px;
57
- max-width: 1200px;
58
- margin: 0 auto;
59
- }
60
-
61
- h2 {
62
- margin-bottom: 24px;
63
- font-weight: 500;
64
- color: #1a1a1a;
65
- }
66
-
67
- .section {
68
- margin-bottom: 32px;
69
- border: 1px solid #e9e9e9;
70
- border-radius: 4px;
71
- overflow: hidden;
72
- }
73
-
74
- h3 {
75
- padding: 16px;
76
- margin: 0;
77
- font-weight: 500;
78
- background-color: #f7f7f7;
79
- border-bottom: 1px solid #e9e9e9;
80
- }
81
-
82
- .example {
83
- padding: 24px;
84
- border-bottom: 1px dashed #e9e9e9;
85
- }
86
-
87
- .code {
88
- padding: 16px;
89
- background-color: #f7f7f7;
90
- }
91
-
92
- pre {
93
- margin: 0;
94
- overflow-x: auto;
95
- }
96
-
97
- code {
98
- font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
99
- font-size: 14px;
100
- }
101
-
102
- .description {
103
- padding: 16px;
104
- }
1
+ <template>
2
+ <div class="demo-container">
3
+ <h2>页面头部组件演示</h2>
4
+
5
+ <div class="section">
6
+ <h3>基础用法</h3>
7
+ <div class="example">
8
+ <EbizPageHeader />
9
+ </div>
10
+ <div class="code">
11
+ <pre><code>&lt;EbizPageHeader /&gt;</code></pre>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="section">
16
+ <h3>功能说明</h3>
17
+ <div class="description">
18
+ <p>此组件会自动根据当前路由信息生成面包屑导航。确保路由配置中包含以下meta信息:</p>
19
+ <pre><code>
20
+ // 路由配置示例
21
+ {
22
+ path: '/hr',
23
+ component: HR,
24
+ meta: {
25
+ title: '人事管理', // 面包屑显示的标题
26
+ icon: 'user' // 面包屑的图标名称,使用TDesign图标
27
+ },
28
+ children: [
29
+ {
30
+ path: 'employee',
31
+ component: Employee,
32
+ meta: {
33
+ title: '员工管理',
34
+ icon: 'user-talk'
35
+ }
36
+ }
37
+ ]
38
+ }
39
+ </code></pre>
40
+ </div>
41
+ </div>
42
+
43
+ <div class="section">
44
+ <h3>帮助文档跳转</h3>
45
+ <p>点击帮助文档按钮会自动跳转到 /help 路径,并带上当前路由作为查询参数。</p>
46
+ </div>
47
+ </div>
48
+ </template>
49
+
50
+ <script setup>
51
+ import { EbizPageHeader } from '../index.js'
52
+ </script>
53
+
54
+ <style scoped>
55
+ .demo-container {
56
+ padding: 20px;
57
+ max-width: 1200px;
58
+ margin: 0 auto;
59
+ }
60
+
61
+ h2 {
62
+ margin-bottom: 24px;
63
+ font-weight: 500;
64
+ color: #1a1a1a;
65
+ }
66
+
67
+ .section {
68
+ margin-bottom: 32px;
69
+ border: 1px solid #e9e9e9;
70
+ border-radius: 4px;
71
+ overflow: hidden;
72
+ }
73
+
74
+ h3 {
75
+ padding: 16px;
76
+ margin: 0;
77
+ font-weight: 500;
78
+ background-color: #f7f7f7;
79
+ border-bottom: 1px solid #e9e9e9;
80
+ }
81
+
82
+ .example {
83
+ padding: 24px;
84
+ border-bottom: 1px dashed #e9e9e9;
85
+ }
86
+
87
+ .code {
88
+ padding: 16px;
89
+ background-color: #f7f7f7;
90
+ }
91
+
92
+ pre {
93
+ margin: 0;
94
+ overflow-x: auto;
95
+ }
96
+
97
+ code {
98
+ font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
99
+ font-size: 14px;
100
+ }
101
+
102
+ .description {
103
+ padding: 16px;
104
+ }
105
105
  </style>