@ebiz/designer-components 0.0.58 → 0.0.60
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.
- package/README.md +29 -29
- package/dist/designer-components.css +1 -1
- package/dist/index.mjs +5925 -5923
- package/package.json +1 -1
- package/src/App.vue +26 -26
- package/src/apiService/SIMPLE_DATA_SERVICE.md +284 -284
- package/src/apiService/mockDataService.js +115 -115
- package/src/apiService/simpleDataService.js +297 -297
- package/src/assets/base.css +86 -86
- package/src/assets/logo.svg +1 -1
- package/src/components/Button.vue +149 -149
- package/src/components/DataContainer.vue +40 -40
- package/src/components/EbizApproval.vue +332 -338
- package/src/components/EbizAutoForm.vue +596 -596
- package/src/components/EbizAvatar.vue +115 -115
- package/src/components/EbizCheckbox.vue +93 -93
- package/src/components/EbizCheckboxGroup.vue +69 -69
- package/src/components/EbizDepartmentSelector.vue +144 -144
- package/src/components/EbizDescriptions.vue +340 -340
- package/src/components/EbizDescriptionsItem.vue +47 -47
- package/src/components/EbizDetailBlock.vue +81 -81
- package/src/components/EbizDialog.vue +260 -260
- package/src/components/EbizDiv.vue +32 -32
- package/src/components/EbizDivider.vue +96 -96
- package/src/components/EbizEmployeeInfo.vue +138 -138
- package/src/components/EbizEmployeeSelector.vue +1093 -1086
- package/src/components/EbizFileUpload.vue +238 -238
- package/src/components/EbizMap.vue +541 -541
- package/src/components/EbizOkrTree.vue +99 -99
- package/src/components/EbizPageHeader.vue +95 -95
- package/src/components/EbizPagination.vue +162 -162
- package/src/components/EbizPopconfirm.vue +47 -47
- package/src/components/EbizRadio.vue +86 -86
- package/src/components/EbizRadioGroup.vue +83 -83
- package/src/components/EbizRemoteSelect.vue +232 -232
- package/src/components/EbizRouteBreadcrumb.vue +46 -46
- package/src/components/EbizSelect.vue +85 -85
- package/src/components/EbizSpace.vue +100 -100
- package/src/components/EbizStatistic.vue +149 -149
- package/src/components/EbizStatsCard.vue +113 -113
- package/src/components/EbizSwiper.vue +113 -113
- package/src/components/EbizSwiperItem.vue +13 -13
- package/src/components/EbizSwitch.vue +85 -85
- package/src/components/EbizTabHeader.vue +132 -132
- package/src/components/EbizTabPanel.vue +22 -22
- package/src/components/EbizTable.vue +469 -469
- package/src/components/EbizTableColumn.vue +116 -116
- package/src/components/EbizTableSort.vue +179 -179
- package/src/components/EbizTabs.vue +142 -142
- package/src/components/EbizTdesignButtonDialog.vue +332 -332
- package/src/components/EbizTdesignLoading.vue +107 -107
- package/src/components/EbizTimePicker.vue +143 -143
- package/src/components/EbizTitle.vue +91 -91
- package/src/components/EbizTree.vue +152 -152
- package/src/components/EbizTreeMergeTable.vue +1414 -1414
- package/src/components/EbizTreeSelector.vue +418 -418
- package/src/components/EbizVxeTable.vue +290 -290
- package/src/components/Form.vue +28 -28
- package/src/components/Home.vue +7 -7
- package/src/components/MyComponent.vue +39 -39
- package/src/components/Table.vue +45 -45
- package/src/components/TdesignAlert.vue +115 -115
- package/src/components/TdesignButton.vue +135 -135
- package/src/components/TdesignCalendar/index.vue +145 -145
- package/src/components/TdesignCard.vue +195 -195
- package/src/components/TdesignCol.vue +101 -101
- package/src/components/TdesignCollapse.vue +142 -142
- package/src/components/TdesignCollapsePanel.vue +79 -79
- package/src/components/TdesignDatePicker.vue +124 -124
- package/src/components/TdesignDescriptions.vue +74 -74
- package/src/components/TdesignDescriptionsItem.vue +50 -50
- package/src/components/TdesignDialog.vue +225 -225
- package/src/components/TdesignForm.vue +138 -138
- package/src/components/TdesignFormItem.vue +105 -105
- package/src/components/TdesignGrid.vue +55 -55
- package/src/components/TdesignIcon.vue +67 -67
- package/src/components/TdesignImage.vue +162 -162
- package/src/components/TdesignImageViewer.vue +200 -200
- package/src/components/TdesignInput.vue +242 -242
- package/src/components/TdesignSelect.vue +444 -444
- package/src/components/TdesignTag.vue +117 -117
- package/src/components/TdesignTextarea.vue +142 -142
- package/src/components/TdesignTimeline.vue +58 -58
- package/src/components/TdesignTimelineItem.vue +71 -71
- package/src/components/TdesignUpload.vue +388 -388
- package/src/components/TdesignWatermark.vue +107 -107
- package/src/components/ebiz-form/components/cascader.vue +61 -61
- package/src/components/ebiz-form/components/checkbox.vue +37 -37
- package/src/components/ebiz-form/components/city.vue +137 -137
- package/src/components/ebiz-form/components/date-panel.vue +52 -52
- package/src/components/ebiz-form/components/date-range-panel.vue +52 -52
- package/src/components/ebiz-form/components/date-range.vue +56 -56
- package/src/components/ebiz-form/components/date.vue +52 -52
- package/src/components/ebiz-form/components/editor-multi-language.vue +47 -47
- package/src/components/ebiz-form/components/editor.vue +78 -78
- package/src/components/ebiz-form/components/file-multi-language.vue +52 -52
- package/src/components/ebiz-form/components/file.vue +149 -149
- package/src/components/ebiz-form/components/images-multi-language.vue +52 -52
- package/src/components/ebiz-form/components/images.vue +129 -129
- package/src/components/ebiz-form/components/img-multi-language.vue +51 -51
- package/src/components/ebiz-form/components/img.vue +129 -129
- package/src/components/ebiz-form/components/number.vue +50 -50
- package/src/components/ebiz-form/components/radio.vue +28 -28
- package/src/components/ebiz-form/components/select.vue +119 -119
- package/src/components/ebiz-form/components/switch.vue +23 -23
- package/src/components/ebiz-form/components/text-multi-language.vue +47 -47
- package/src/components/ebiz-form/components/text.vue +52 -52
- package/src/components/ebiz-form/components/textarea-multi-language.vue +48 -48
- package/src/components/ebiz-form/components/textarea.vue +29 -29
- package/src/components/ebiz-form/components/video-multi-language.vue +51 -51
- package/src/components/ebiz-form/components/video.vue +97 -97
- package/src/components/ebiz-form/index.vue +157 -157
- package/src/components/examples/PopconfirmExample.vue +149 -149
- package/src/components/icons/IconCommunity.vue +7 -7
- package/src/components/icons/IconDocumentation.vue +7 -7
- package/src/components/icons/IconEcosystem.vue +7 -7
- package/src/components/icons/IconSupport.vue +7 -7
- package/src/components/icons/IconTooling.vue +19 -19
- package/src/components/senior/EbizSData/index.vue +262 -260
- package/src/components/senior/EbizSDialog/index.vue +713 -713
- package/src/components/senior/EbizSForm/README.md +157 -157
- package/src/components/senior/EbizSForm/index.vue +668 -668
- package/src/components/senior/EbizSForm/item.vue +522 -522
- package/src/components/senior/EbizSForm/mItems/DateTimePicker.vue +51 -51
- package/src/components/senior/EbizSForm/mItems/Picker.vue +63 -63
- package/src/index.js +218 -218
- package/src/main.js +55 -55
- package/src/router/index.js +374 -374
- package/src/utils/formatCode.js +24 -24
- package/src/utils/generateImportStatement.js +52 -52
- package/src/utils/hasJsx.js +25 -25
- package/src/utils/index.js +166 -166
- package/src/utils/mergeOptions.js +29 -29
- package/src/utils/parseRequiredBlocks.js +18 -18
- package/src/utils/upload.ts +126 -126
- package/src/utils/vue-sfc-validator.js +155 -155
- package/src/views/Button.vue +23 -23
- package/src/views/CheckboxDemo.vue +104 -104
- package/src/views/DataContainer.vue +19 -19
- package/src/views/DialogDemo.vue +125 -125
- package/src/views/EbizApprovalDemo.vue +76 -76
- package/src/views/EbizAutoFormDemo.vue +129 -129
- package/src/views/EbizAvatar.vue +223 -223
- package/src/views/EbizDepartmentSelectorDemo.vue +169 -169
- package/src/views/EbizDetailBlockDemo.vue +30 -30
- package/src/views/EbizEmployeeInfo.vue +249 -249
- package/src/views/EbizEmployeeSelector.vue +83 -83
- package/src/views/EbizMap.vue +201 -201
- package/src/views/EbizRadioDemo.vue +151 -151
- package/src/views/EbizSDataDemo.vue +136 -136
- package/src/views/EbizSDialogDemo.vue +301 -301
- package/src/views/EbizSForm/index.vue +359 -359
- package/src/views/EbizSFormDemo.vue +420 -420
- package/src/views/EbizSpace.vue +185 -185
- package/src/views/EbizSwiper.vue +157 -157
- package/src/views/EbizTdesignButtonDialogExample.vue +437 -437
- package/src/views/Form.vue +19 -19
- package/src/views/GridDemo.vue +238 -238
- package/src/views/Home.vue +146 -146
- package/src/views/Mindmap.vue +17 -17
- package/src/views/MyComponent.vue +19 -19
- package/src/views/OkrTree.vue +19 -19
- package/src/views/PageHeaderDemo.vue +104 -104
- package/src/views/PaginationDemo.vue +96 -96
- package/src/views/PermissionBoxDemo.vue +85 -85
- package/src/views/PopconfirmDemo.vue +80 -80
- package/src/views/RemoteSelect.vue +350 -350
- package/src/views/StatisticDemo.vue +190 -190
- package/src/views/SwitchDemo.vue +79 -79
- package/src/views/Table.vue +19 -19
- package/src/views/TableDemo.vue +334 -334
- package/src/views/TableSortDemo.vue +143 -143
- package/src/views/TableView.vue +68 -68
- package/src/views/TabsDemo.vue +282 -282
- package/src/views/TagDemo.vue +101 -101
- package/src/views/TdesignAlert.vue +98 -98
- package/src/views/TdesignButton.vue +190 -190
- package/src/views/TdesignCalendar.vue +94 -94
- package/src/views/TdesignCard.vue +296 -296
- package/src/views/TdesignCollapse.vue +293 -293
- package/src/views/TdesignDatePicker.vue +187 -187
- package/src/views/TdesignDescriptions.vue +101 -101
- package/src/views/TdesignForm.vue +248 -248
- package/src/views/TdesignIcon.vue +203 -203
- package/src/views/TdesignImage.vue +215 -215
- package/src/views/TdesignImageViewer.vue +198 -198
- package/src/views/TdesignInput.vue +252 -252
- package/src/views/TdesignSelect.vue +473 -473
- package/src/views/TdesignSwiper.vue +157 -157
- package/src/views/TextareaDemo.vue +93 -93
- package/src/views/TimePickerDemo.vue +146 -146
- package/src/views/TimelineDemo.vue +160 -160
- package/src/views/Title.vue +19 -19
- package/src/views/TreeDemo.vue +254 -254
- package/src/views/TreeMergeTableDemo.vue +239 -239
- package/src/views/TreeSelectorDemo.vue +245 -245
- package/src/views/UploadDemo.vue +121 -121
- package/src/views/VxeTableDemo.vue +279 -279
- package/src/views/WatermarkDemo.vue +85 -85
package/src/views/Home.vue
CHANGED
@@ -1,147 +1,147 @@
|
|
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
|
-
]
|
97
|
-
|
98
|
-
return {
|
99
|
-
components
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
103
|
-
</script>
|
104
|
-
|
105
|
-
<style scoped>
|
106
|
-
.home {
|
107
|
-
padding: 20px;
|
108
|
-
}
|
109
|
-
|
110
|
-
.component-list {
|
111
|
-
display: grid;
|
112
|
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
113
|
-
gap: 20px;
|
114
|
-
margin-top: 20px;
|
115
|
-
}
|
116
|
-
|
117
|
-
.component-item {
|
118
|
-
background: #f5f5f5;
|
119
|
-
padding: 20px;
|
120
|
-
border-radius: 8px;
|
121
|
-
text-align: center;
|
122
|
-
}
|
123
|
-
|
124
|
-
.component-link {
|
125
|
-
color: #333;
|
126
|
-
text-decoration: none;
|
127
|
-
font-size: 16px;
|
128
|
-
}
|
129
|
-
|
130
|
-
.component-link:hover {
|
131
|
-
color: #1890ff;
|
132
|
-
}
|
133
|
-
|
134
|
-
.component-title {
|
135
|
-
font-size: 16px;
|
136
|
-
font-weight: bold;
|
137
|
-
margin-bottom: 10px;
|
138
|
-
}
|
139
|
-
|
140
|
-
.component-desc {
|
141
|
-
font-size: 14px;
|
142
|
-
}
|
143
|
-
|
144
|
-
.component-item:hover {
|
145
|
-
background-color: #e6e6e6;
|
146
|
-
}
|
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
|
+
]
|
97
|
+
|
98
|
+
return {
|
99
|
+
components
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
</script>
|
104
|
+
|
105
|
+
<style scoped>
|
106
|
+
.home {
|
107
|
+
padding: 20px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.component-list {
|
111
|
+
display: grid;
|
112
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
113
|
+
gap: 20px;
|
114
|
+
margin-top: 20px;
|
115
|
+
}
|
116
|
+
|
117
|
+
.component-item {
|
118
|
+
background: #f5f5f5;
|
119
|
+
padding: 20px;
|
120
|
+
border-radius: 8px;
|
121
|
+
text-align: center;
|
122
|
+
}
|
123
|
+
|
124
|
+
.component-link {
|
125
|
+
color: #333;
|
126
|
+
text-decoration: none;
|
127
|
+
font-size: 16px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.component-link:hover {
|
131
|
+
color: #1890ff;
|
132
|
+
}
|
133
|
+
|
134
|
+
.component-title {
|
135
|
+
font-size: 16px;
|
136
|
+
font-weight: bold;
|
137
|
+
margin-bottom: 10px;
|
138
|
+
}
|
139
|
+
|
140
|
+
.component-desc {
|
141
|
+
font-size: 14px;
|
142
|
+
}
|
143
|
+
|
144
|
+
.component-item:hover {
|
145
|
+
background-color: #e6e6e6;
|
146
|
+
}
|
147
147
|
</style>
|
package/src/views/Mindmap.vue
CHANGED
@@ -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>
|
package/src/views/OkrTree.vue
CHANGED
@@ -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><EbizPageHeader /></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><EbizPageHeader /></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>
|