@ebiz/designer-components 0.0.19-beta.3 → 0.0.19-beta.6
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/dist/designer-components.css +1 -1
- package/dist/index.mjs +20718 -20262
- package/package.json +1 -1
- package/src/components/EbizPopconfirm.vue +48 -0
- package/src/components/EbizTable.vue +5 -1
- package/src/components/TdesignDescriptions.vue +81 -0
- package/src/components/TdesignDescriptionsItem.vue +55 -0
- package/src/components/TdesignForm.vue +5 -0
- package/src/components/examples/PopconfirmExample.vue +150 -0
- package/src/index.js +177 -169
- package/src/router/index.js +18 -19
- package/src/views/Home.vue +4 -4
- package/src/views/PopconfirmDemo.vue +81 -0
- package/src/views/TdesignDescriptions.vue +102 -0
package/src/index.js
CHANGED
@@ -1,169 +1,177 @@
|
|
1
|
-
import MyComponent from "./components/MyComponent.vue";
|
2
|
-
import MyTable from "./components/Table.vue";
|
3
|
-
import EbizFormContainer from "./components/Form.vue";
|
4
|
-
import EbizButton from "./components/Button.vue";
|
5
|
-
import EbizTdesignButton from "./components/TdesignButton.vue";
|
6
|
-
import EbizTdesignIcon from "./components/TdesignIcon.vue";
|
7
|
-
import EbizTdesignInput from "./components/TdesignInput.vue";
|
8
|
-
import EbizTdesignSelect from "./components/TdesignSelect.vue";
|
9
|
-
import EbizTdesignForm from "./components/TdesignForm.vue";
|
10
|
-
import EbizTdesignFormItem from "./components/TdesignFormItem.vue";
|
11
|
-
import EbizTdesignDatePicker from "./components/TdesignDatePicker.vue";
|
12
|
-
import EbizTdesignCard from "./components/TdesignCard.vue";
|
13
|
-
import EbizTdesignImage from "./components/TdesignImage.vue";
|
14
|
-
import EbizTdesignImageViewer from "./components/TdesignImageViewer.vue";
|
15
|
-
import EbizDataContainer from "./components/DataContainer.vue";
|
16
|
-
import EbizTitle from "./components/EbizTitle.vue";
|
17
|
-
import EbizDivider from "./components/EbizDivider.vue";
|
18
|
-
import EbizStatsCard from "./components/EbizStatsCard.vue";
|
19
|
-
import EbizOkrTree from "./components/EbizOkrTree.vue";
|
20
|
-
import EbizRemoteSelect from "./components/EbizRemoteSelect.vue";
|
21
|
-
import EbizMindmap from "./components/EbizMindmap/index.vue";
|
22
|
-
import EbizRouteBreadcrumb from "./components/EbizRouteBreadcrumb.vue";
|
23
|
-
import EbizFileUpload from "./components/EbizFileUpload.vue";
|
24
|
-
import EbizTabHeader from "./components/EbizTabHeader.vue";
|
25
|
-
import EbizPageHeader from "./components/EbizPageHeader.vue";
|
26
|
-
import TdesignCalendar from "./components/TdesignCalendar/index.vue";
|
27
|
-
import TdesignCollapse from "./components/TdesignCollapse.vue";
|
28
|
-
import TdesignCollapsePanel from "./components/TdesignCollapsePanel.vue";
|
29
|
-
import EbizTag from "./components/TdesignTag.vue";
|
30
|
-
import EbizSwiper from "./components/EbizSwiper.vue";
|
31
|
-
import EbizSwiperItem from "./components/EbizSwiperItem.vue";
|
32
|
-
import EbizSpace from "./components/EbizSpace.vue";
|
33
|
-
import EbizPagination from "./components/EbizPagination.vue";
|
34
|
-
import EbizCheckbox from "./components/EbizCheckbox.vue";
|
35
|
-
import EbizCheckboxGroup from "./components/EbizCheckboxGroup.vue";
|
36
|
-
import EbizRadio from "./components/EbizRadio.vue";
|
37
|
-
import EbizRadioGroup from "./components/EbizRadioGroup.vue";
|
38
|
-
import EbizSwitch from "./components/EbizSwitch.vue";
|
39
|
-
import EbizTextarea from "./components/TdesignTextarea.vue";
|
40
|
-
import EbizUpload from "./components/TdesignUpload.vue";
|
41
|
-
import EbizGrid from "./components/TdesignGrid.vue";
|
42
|
-
import EbizCol from "./components/TdesignCol.vue";
|
43
|
-
import EbizTabs from "./components/EbizTabs.vue";
|
44
|
-
import EbizTabPanel from "./components/EbizTabPanel.vue";
|
45
|
-
import EbizStatistic from "./components/EbizStatistic.vue";
|
46
|
-
import EbizWatermark from "./components/TdesignWatermark.vue";
|
47
|
-
import EbizAvatar from "./components/EbizAvatar.vue";
|
48
|
-
import EbizEmployeeInfo from "./components/EbizEmployeeInfo.vue";
|
49
|
-
import EbizAlert from "./components/TdesignAlert.vue";
|
50
|
-
import EbizDialog from "./components/TdesignDialog.vue";
|
51
|
-
import EbizTable from "./components/EbizTable.vue";
|
52
|
-
import EbizTableColumn from './components/EbizTableColumn.vue';
|
53
|
-
import EbizTableSort from './components/EbizTableSort.vue';
|
54
|
-
import EbizDetailBlock from './components/EbizDetailBlock.vue';
|
55
|
-
import EbizTree from './components/EbizTree.vue';
|
56
|
-
import EbizTreeSelector from './components/EbizTreeSelector.vue';
|
57
|
-
import EbizTimePicker from './components/EbizTimePicker.vue';
|
58
|
-
import
|
59
|
-
|
60
|
-
|
61
|
-
import
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
import "
|
67
|
-
|
68
|
-
//
|
69
|
-
import
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
//
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
//
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
//
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
//
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
//
|
168
|
-
|
169
|
-
|
1
|
+
import MyComponent from "./components/MyComponent.vue";
|
2
|
+
import MyTable from "./components/Table.vue";
|
3
|
+
import EbizFormContainer from "./components/Form.vue";
|
4
|
+
import EbizButton from "./components/Button.vue";
|
5
|
+
import EbizTdesignButton from "./components/TdesignButton.vue";
|
6
|
+
import EbizTdesignIcon from "./components/TdesignIcon.vue";
|
7
|
+
import EbizTdesignInput from "./components/TdesignInput.vue";
|
8
|
+
import EbizTdesignSelect from "./components/TdesignSelect.vue";
|
9
|
+
import EbizTdesignForm from "./components/TdesignForm.vue";
|
10
|
+
import EbizTdesignFormItem from "./components/TdesignFormItem.vue";
|
11
|
+
import EbizTdesignDatePicker from "./components/TdesignDatePicker.vue";
|
12
|
+
import EbizTdesignCard from "./components/TdesignCard.vue";
|
13
|
+
import EbizTdesignImage from "./components/TdesignImage.vue";
|
14
|
+
import EbizTdesignImageViewer from "./components/TdesignImageViewer.vue";
|
15
|
+
import EbizDataContainer from "./components/DataContainer.vue";
|
16
|
+
import EbizTitle from "./components/EbizTitle.vue";
|
17
|
+
import EbizDivider from "./components/EbizDivider.vue";
|
18
|
+
import EbizStatsCard from "./components/EbizStatsCard.vue";
|
19
|
+
import EbizOkrTree from "./components/EbizOkrTree.vue";
|
20
|
+
import EbizRemoteSelect from "./components/EbizRemoteSelect.vue";
|
21
|
+
import EbizMindmap from "./components/EbizMindmap/index.vue";
|
22
|
+
import EbizRouteBreadcrumb from "./components/EbizRouteBreadcrumb.vue";
|
23
|
+
import EbizFileUpload from "./components/EbizFileUpload.vue";
|
24
|
+
import EbizTabHeader from "./components/EbizTabHeader.vue";
|
25
|
+
import EbizPageHeader from "./components/EbizPageHeader.vue";
|
26
|
+
import TdesignCalendar from "./components/TdesignCalendar/index.vue";
|
27
|
+
import TdesignCollapse from "./components/TdesignCollapse.vue";
|
28
|
+
import TdesignCollapsePanel from "./components/TdesignCollapsePanel.vue";
|
29
|
+
import EbizTag from "./components/TdesignTag.vue";
|
30
|
+
import EbizSwiper from "./components/EbizSwiper.vue";
|
31
|
+
import EbizSwiperItem from "./components/EbizSwiperItem.vue";
|
32
|
+
import EbizSpace from "./components/EbizSpace.vue";
|
33
|
+
import EbizPagination from "./components/EbizPagination.vue";
|
34
|
+
import EbizCheckbox from "./components/EbizCheckbox.vue";
|
35
|
+
import EbizCheckboxGroup from "./components/EbizCheckboxGroup.vue";
|
36
|
+
import EbizRadio from "./components/EbizRadio.vue";
|
37
|
+
import EbizRadioGroup from "./components/EbizRadioGroup.vue";
|
38
|
+
import EbizSwitch from "./components/EbizSwitch.vue";
|
39
|
+
import EbizTextarea from "./components/TdesignTextarea.vue";
|
40
|
+
import EbizUpload from "./components/TdesignUpload.vue";
|
41
|
+
import EbizGrid from "./components/TdesignGrid.vue";
|
42
|
+
import EbizCol from "./components/TdesignCol.vue";
|
43
|
+
import EbizTabs from "./components/EbizTabs.vue";
|
44
|
+
import EbizTabPanel from "./components/EbizTabPanel.vue";
|
45
|
+
import EbizStatistic from "./components/EbizStatistic.vue";
|
46
|
+
import EbizWatermark from "./components/TdesignWatermark.vue";
|
47
|
+
import EbizAvatar from "./components/EbizAvatar.vue";
|
48
|
+
import EbizEmployeeInfo from "./components/EbizEmployeeInfo.vue";
|
49
|
+
import EbizAlert from "./components/TdesignAlert.vue";
|
50
|
+
import EbizDialog from "./components/TdesignDialog.vue";
|
51
|
+
import EbizTable from "./components/EbizTable.vue";
|
52
|
+
import EbizTableColumn from './components/EbizTableColumn.vue';
|
53
|
+
import EbizTableSort from './components/EbizTableSort.vue';
|
54
|
+
import EbizDetailBlock from './components/EbizDetailBlock.vue';
|
55
|
+
import EbizTree from './components/EbizTree.vue';
|
56
|
+
import EbizTreeSelector from './components/EbizTreeSelector.vue';
|
57
|
+
import EbizTimePicker from './components/EbizTimePicker.vue';
|
58
|
+
import EbizPopconfirm from './components/EbizPopconfirm.vue';
|
59
|
+
import { MessagePlugin as EbizMessage } from 'tdesign-vue-next';
|
60
|
+
|
61
|
+
import { Descriptions as EbizDescriptions, DescriptionsItem as EbizDescriptionsItem } from 'tdesign-vue-next';
|
62
|
+
|
63
|
+
// 导入简洁数据服务
|
64
|
+
import dataService from "./apiService/simpleDataService";
|
65
|
+
|
66
|
+
import "tdesign-vue-next/es/style/index.css";
|
67
|
+
|
68
|
+
// 导入图表样式
|
69
|
+
import "./assets/styles/charts/main.less";
|
70
|
+
|
71
|
+
// 时间轴组件
|
72
|
+
import EbizTimeline from "./components/TdesignTimeline.vue";
|
73
|
+
import {TimelineItem as EbizTimelineItem} from 'tdesign-vue-next';
|
74
|
+
|
75
|
+
// 导出组件
|
76
|
+
export {
|
77
|
+
MyComponent,
|
78
|
+
MyTable,
|
79
|
+
EbizFormContainer,
|
80
|
+
EbizButton,
|
81
|
+
EbizTdesignButton,
|
82
|
+
EbizTdesignIcon,
|
83
|
+
EbizTdesignInput,
|
84
|
+
EbizTdesignSelect,
|
85
|
+
EbizTdesignForm,
|
86
|
+
EbizTdesignFormItem,
|
87
|
+
EbizTdesignDatePicker,
|
88
|
+
EbizTdesignCard,
|
89
|
+
EbizTdesignImage,
|
90
|
+
EbizTdesignImageViewer,
|
91
|
+
EbizDataContainer,
|
92
|
+
EbizTitle,
|
93
|
+
EbizDivider,
|
94
|
+
EbizStatsCard,
|
95
|
+
EbizOkrTree,
|
96
|
+
EbizRemoteSelect,
|
97
|
+
EbizRouteBreadcrumb,
|
98
|
+
EbizTabHeader,
|
99
|
+
// 页面头部组件
|
100
|
+
EbizPageHeader,
|
101
|
+
// 思维导图
|
102
|
+
EbizMindmap,
|
103
|
+
// 文件上传组件
|
104
|
+
EbizFileUpload,
|
105
|
+
// 日历组件
|
106
|
+
TdesignCalendar,
|
107
|
+
// 折叠面板组件
|
108
|
+
TdesignCollapse,
|
109
|
+
TdesignCollapsePanel,
|
110
|
+
// 标签组件
|
111
|
+
EbizTag,
|
112
|
+
// 轮播框组件
|
113
|
+
EbizSwiper,
|
114
|
+
// 轮播框子项组件
|
115
|
+
EbizSwiperItem,
|
116
|
+
// 间距组件
|
117
|
+
EbizSpace,
|
118
|
+
// 分页组件
|
119
|
+
EbizPagination,
|
120
|
+
// 多选框组件
|
121
|
+
EbizCheckbox,
|
122
|
+
// 多选框组组件
|
123
|
+
EbizCheckboxGroup,
|
124
|
+
// 数据服务
|
125
|
+
dataService,
|
126
|
+
// 新增 EbizRadio 和 EbizRadioGroup
|
127
|
+
EbizRadio,
|
128
|
+
EbizRadioGroup,
|
129
|
+
// 开关组件
|
130
|
+
EbizSwitch,
|
131
|
+
// 多行文本框组件
|
132
|
+
EbizTextarea,
|
133
|
+
// TDesign上传组件
|
134
|
+
EbizUpload,
|
135
|
+
// 栅格布局组件
|
136
|
+
EbizGrid,
|
137
|
+
// 栅格列组件
|
138
|
+
EbizCol,
|
139
|
+
// 选项卡组件
|
140
|
+
EbizTabs,
|
141
|
+
// 选项卡面板组件
|
142
|
+
EbizTabPanel,
|
143
|
+
// 统计数值组件
|
144
|
+
EbizStatistic,
|
145
|
+
// 消息插件
|
146
|
+
EbizMessage,
|
147
|
+
// 时间轴组件
|
148
|
+
EbizTimeline,
|
149
|
+
EbizTimelineItem,
|
150
|
+
// 水印组件
|
151
|
+
EbizWatermark,
|
152
|
+
// 头像组件
|
153
|
+
EbizAvatar,
|
154
|
+
// 员工信息组件
|
155
|
+
EbizEmployeeInfo,
|
156
|
+
// 提示组件
|
157
|
+
EbizAlert,
|
158
|
+
// 对话框组件
|
159
|
+
EbizDialog,
|
160
|
+
// 表格组件
|
161
|
+
EbizTable,
|
162
|
+
EbizTableColumn,
|
163
|
+
// 表格排序组件
|
164
|
+
EbizTableSort,
|
165
|
+
// 详情块组件
|
166
|
+
EbizDetailBlock,
|
167
|
+
// 树组件
|
168
|
+
EbizTree,
|
169
|
+
EbizTreeSelector,
|
170
|
+
// 时间选择器组件
|
171
|
+
EbizTimePicker,
|
172
|
+
// 气泡确认框组件
|
173
|
+
EbizPopconfirm,
|
174
|
+
// 新增 EbizDescriptions 和 EbizDescriptionsItem
|
175
|
+
EbizDescriptions,
|
176
|
+
EbizDescriptionsItem
|
177
|
+
};
|
package/src/router/index.js
CHANGED
@@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
|
|
2
2
|
import Home from '../views/Home.vue'
|
3
3
|
import ButtonView from '../views/Button.vue'
|
4
4
|
import TableView from '../views/TableView.vue'
|
5
|
+
import TdesignDescriptions from '../views/TdesignDescriptions.vue'
|
5
6
|
|
6
7
|
const routes = [
|
7
8
|
{
|
@@ -248,7 +249,7 @@ const routes = [
|
|
248
249
|
path: '/page-header',
|
249
250
|
name: 'PageHeader',
|
250
251
|
component: () => import('../views/PageHeaderDemo.vue'),
|
251
|
-
meta: { title: 'Ebiz页面头部组件示例'
|
252
|
+
meta: { title: 'Ebiz页面头部组件示例' }
|
252
253
|
},
|
253
254
|
{
|
254
255
|
path: '/table-demo',
|
@@ -263,17 +264,11 @@ const routes = [
|
|
263
264
|
meta: { title: 'Ebiz表格排序组件示例' }
|
264
265
|
},
|
265
266
|
{
|
266
|
-
path: '/
|
267
|
-
name: '
|
267
|
+
path: '/detail-block',
|
268
|
+
name: 'DetailBlock',
|
268
269
|
component: () => import('../views/EbizDetailBlockDemo.vue'),
|
269
270
|
meta: { title: 'Ebiz详情块组件示例' }
|
270
271
|
},
|
271
|
-
{
|
272
|
-
path: '/tree',
|
273
|
-
name: 'Tree',
|
274
|
-
component: () => import('../views/TreeDemo.vue'),
|
275
|
-
meta: { title: 'Ebiz树组件示例' }
|
276
|
-
},
|
277
272
|
{
|
278
273
|
path: '/tree-demo',
|
279
274
|
name: 'TreeDemo',
|
@@ -284,21 +279,25 @@ const routes = [
|
|
284
279
|
path: '/tree-selector-demo',
|
285
280
|
name: 'TreeSelectorDemo',
|
286
281
|
component: () => import('../views/TreeSelectorDemo.vue'),
|
287
|
-
meta: {
|
288
|
-
title: '树形选择器'
|
289
|
-
}
|
290
|
-
},
|
291
|
-
{
|
292
|
-
path: '/tree-selector',
|
293
|
-
name: 'TreeSelector',
|
294
|
-
component: () => import('../views/TreeSelectorDemo.vue'),
|
295
|
-
meta: { title: '树选择器组件示例' }
|
282
|
+
meta: { title: 'Ebiz树选择器组件示例' }
|
296
283
|
},
|
297
284
|
{
|
298
285
|
path: '/time-picker',
|
299
286
|
name: 'TimePicker',
|
300
287
|
component: () => import('../views/TimePickerDemo.vue'),
|
301
|
-
meta: { title: '时间选择器组件示例' }
|
288
|
+
meta: { title: 'Ebiz时间选择器组件示例' }
|
289
|
+
},
|
290
|
+
{
|
291
|
+
path: '/tdesign-descriptions',
|
292
|
+
name: 'TdesignDescriptions',
|
293
|
+
component: TdesignDescriptions,
|
294
|
+
meta: { title: 'TDesign描述列表组件示例' }
|
295
|
+
},
|
296
|
+
{
|
297
|
+
path: '/popconfirm',
|
298
|
+
name: 'Popconfirm',
|
299
|
+
component: () => import('../views/PopconfirmDemo.vue'),
|
300
|
+
meta: { title: 'Ebiz气泡确认框组件示例' }
|
302
301
|
}
|
303
302
|
]
|
304
303
|
|
package/src/views/Home.vue
CHANGED
@@ -66,12 +66,12 @@ export default {
|
|
66
66
|
{ path: '/tdesign-dialog', title: 'TDesign对话框组件示例' },
|
67
67
|
{ path: '/page-header', title: 'Ebiz页面头部组件示例' },
|
68
68
|
{ path: '/table-demo', title: 'Ebiz表格组件示例' },
|
69
|
-
{ path: '/
|
69
|
+
{ path: '/detail-block', title: 'Ebiz详情块组件示例' },
|
70
70
|
{ path: '/table-column', title: 'Ebiz表格列组件示例' },
|
71
71
|
{ path: '/table-sort', title: 'Ebiz表格排序组件示例' },
|
72
|
-
{ path: '/
|
73
|
-
{ path: '/
|
74
|
-
{ path: '/
|
72
|
+
{ path: '/time-picker', title: 'Ebiz时间选择器组件示例' },
|
73
|
+
{ path: '/tdesign-descriptions', title: 'Ebiz描述列表组件示例' },
|
74
|
+
{ path: '/popconfirm', title: 'Ebiz气泡确认框组件示例' }
|
75
75
|
]
|
76
76
|
|
77
77
|
return {
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="popconfirm-demo">
|
3
|
+
<h1>气泡确认框示例</h1>
|
4
|
+
|
5
|
+
<h2>1. 基础用法</h2>
|
6
|
+
<div class="example-item">
|
7
|
+
<ebiz-popconfirm content="确定要删除这条数据吗?">
|
8
|
+
<ebiz-tdesign-button>删除</ebiz-tdesign-button>
|
9
|
+
</ebiz-popconfirm>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<h2>2. 事件处理</h2>
|
13
|
+
<div class="example-item">
|
14
|
+
<p>操作结果: <span>{{ operationResult }}</span></p>
|
15
|
+
<ebiz-popconfirm
|
16
|
+
content="确定要继续吗?"
|
17
|
+
@confirm="handleConfirm"
|
18
|
+
@cancel="handleCancel"
|
19
|
+
>
|
20
|
+
<ebiz-tdesign-button>点击触发事件</ebiz-tdesign-button>
|
21
|
+
</ebiz-popconfirm>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</template>
|
25
|
+
|
26
|
+
<script setup>
|
27
|
+
import { ref } from 'vue';
|
28
|
+
import { EbizPopconfirm, EbizTdesignButton, EbizMessage } from '../index';
|
29
|
+
|
30
|
+
const operationResult = ref('');
|
31
|
+
|
32
|
+
// 确认事件处理
|
33
|
+
const handleConfirm = () => {
|
34
|
+
operationResult.value = '您点击了确认按钮';
|
35
|
+
EbizMessage.success('操作已确认');
|
36
|
+
};
|
37
|
+
|
38
|
+
// 取消事件处理
|
39
|
+
const handleCancel = () => {
|
40
|
+
operationResult.value = '您点击了取消按钮';
|
41
|
+
EbizMessage.info('操作已取消');
|
42
|
+
};
|
43
|
+
</script>
|
44
|
+
|
45
|
+
<style lang="less" scoped>
|
46
|
+
.popconfirm-demo {
|
47
|
+
padding: 20px;
|
48
|
+
|
49
|
+
h1 {
|
50
|
+
margin-bottom: 30px;
|
51
|
+
font-weight: bold;
|
52
|
+
color: #0052d9;
|
53
|
+
}
|
54
|
+
|
55
|
+
h2 {
|
56
|
+
margin-top: 30px;
|
57
|
+
margin-bottom: 16px;
|
58
|
+
font-weight: bold;
|
59
|
+
font-size: 18px;
|
60
|
+
border-left: 4px solid #0052d9;
|
61
|
+
padding-left: 12px;
|
62
|
+
}
|
63
|
+
|
64
|
+
.example-item {
|
65
|
+
margin-bottom: 24px;
|
66
|
+
padding: 20px;
|
67
|
+
border: 1px solid #eee;
|
68
|
+
border-radius: 6px;
|
69
|
+
background-color: #fafafa;
|
70
|
+
}
|
71
|
+
|
72
|
+
p {
|
73
|
+
margin-bottom: 10px;
|
74
|
+
|
75
|
+
span {
|
76
|
+
color: #0052d9;
|
77
|
+
font-weight: bold;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
</style>
|
@@ -0,0 +1,102 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="container">
|
3
|
+
<h2>描述列表组件演示</h2>
|
4
|
+
|
5
|
+
<div class="demo-section">
|
6
|
+
<h3>基础用法</h3>
|
7
|
+
<EbizDescriptions title="配送信息" :column="2">
|
8
|
+
<EbizDescriptionsItem label="姓名">TDesign</EbizDescriptionsItem>
|
9
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
10
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
11
|
+
<EbizDescriptionsItem label="地址">深圳市南山区深南大道10000号</EbizDescriptionsItem>
|
12
|
+
</EbizDescriptions>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="demo-section">
|
16
|
+
<h3>带边框</h3>
|
17
|
+
<EbizDescriptions title="配送信息" :column="2" border>
|
18
|
+
<EbizDescriptionsItem label="姓名">TDesign</EbizDescriptionsItem>
|
19
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
20
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
21
|
+
<EbizDescriptionsItem label="地址">深圳市南山区深南大道10000号</EbizDescriptionsItem>
|
22
|
+
</EbizDescriptions>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="demo-section">
|
26
|
+
<h3>带冒号</h3>
|
27
|
+
<EbizDescriptions title="配送信息" :column="2" colon>
|
28
|
+
<EbizDescriptionsItem label="姓名">TDesign</EbizDescriptionsItem>
|
29
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
30
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
31
|
+
<EbizDescriptionsItem label="地址">深圳市南山区深南大道10000号</EbizDescriptionsItem>
|
32
|
+
</EbizDescriptions>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="demo-section">
|
36
|
+
<h3>垂直布局</h3>
|
37
|
+
<EbizDescriptions title="配送信息" :column="2" layout="vertical" border>
|
38
|
+
<EbizDescriptionsItem label="姓名">TDesign</EbizDescriptionsItem>
|
39
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
40
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
41
|
+
<EbizDescriptionsItem label="地址">深圳市南山区深南大道10000号</EbizDescriptionsItem>
|
42
|
+
</EbizDescriptions>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class="demo-section">
|
46
|
+
<h3>自定义列数</h3>
|
47
|
+
<EbizDescriptions title="配送信息" :column="3" border>
|
48
|
+
<EbizDescriptionsItem label="姓名">TDesign</EbizDescriptionsItem>
|
49
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
50
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
51
|
+
<EbizDescriptionsItem label="地址" :span="2">深圳市南山区深南大道10000号</EbizDescriptionsItem>
|
52
|
+
</EbizDescriptions>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class="demo-section">
|
56
|
+
<h3>自定义样式</h3>
|
57
|
+
<EbizDescriptions title="配送信息" :column="2" border table-border-color="#E7E7E7">
|
58
|
+
<EbizDescriptionsItem label="姓名" label-class-name="custom-label">TDesign</EbizDescriptionsItem>
|
59
|
+
<EbizDescriptionsItem label="电话号码">139****0609</EbizDescriptionsItem>
|
60
|
+
<EbizDescriptionsItem label="地区">腾讯总部</EbizDescriptionsItem>
|
61
|
+
<EbizDescriptionsItem label="地址" content-class-name="custom-content">
|
62
|
+
<span style="color: #0052d9">深圳市南山区深南大道10000号</span>
|
63
|
+
</EbizDescriptionsItem>
|
64
|
+
</EbizDescriptions>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</template>
|
68
|
+
|
69
|
+
<script setup>
|
70
|
+
import { EbizDescriptions, EbizDescriptionsItem } from '../index.js';
|
71
|
+
</script>
|
72
|
+
|
73
|
+
<style scoped>
|
74
|
+
.container {
|
75
|
+
padding: 24px;
|
76
|
+
max-width: 1000px;
|
77
|
+
margin: 0 auto;
|
78
|
+
}
|
79
|
+
|
80
|
+
.demo-section {
|
81
|
+
margin-bottom: 32px;
|
82
|
+
}
|
83
|
+
|
84
|
+
h2 {
|
85
|
+
font-size: 24px;
|
86
|
+
margin-bottom: 24px;
|
87
|
+
}
|
88
|
+
|
89
|
+
h3 {
|
90
|
+
font-size: 18px;
|
91
|
+
margin-bottom: 16px;
|
92
|
+
}
|
93
|
+
|
94
|
+
.custom-label {
|
95
|
+
font-weight: bold;
|
96
|
+
color: #0052d9;
|
97
|
+
}
|
98
|
+
|
99
|
+
.custom-content {
|
100
|
+
font-style: italic;
|
101
|
+
}
|
102
|
+
</style>
|