@ebiz/designer-components 0.0.18 → 0.0.19

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 (99) hide show
  1. package/package.json +3 -2
  2. package/src/apiService/mockDataService.js +116 -0
  3. package/src/apiService/simpleDataService.js +186 -80
  4. package/src/components/Button.vue +72 -22
  5. package/src/components/EbizAvatar.vue +116 -0
  6. package/src/components/EbizCheckbox.vue +94 -0
  7. package/src/components/EbizCheckboxGroup.vue +70 -0
  8. package/src/components/EbizDetailBlock.vue +82 -0
  9. package/src/components/EbizDialog.vue +244 -56
  10. package/src/components/EbizEmployeeInfo.vue +139 -0
  11. package/src/components/EbizFileUpload.vue +202 -0
  12. package/src/components/EbizPageHeader.vue +96 -0
  13. package/src/components/EbizPagination.vue +163 -0
  14. package/src/components/EbizRadio.vue +87 -0
  15. package/src/components/EbizRadioGroup.vue +84 -0
  16. package/src/components/EbizRemoteSelect.vue +118 -40
  17. package/src/components/EbizSpace.vue +101 -0
  18. package/src/components/EbizStatistic.vue +150 -0
  19. package/src/components/EbizSwiper.vue +114 -0
  20. package/src/components/EbizSwiperItem.vue +14 -0
  21. package/src/components/EbizSwitch.vue +86 -0
  22. package/src/components/EbizTabHeader.vue +145 -0
  23. package/src/components/EbizTabPanel.vue +23 -0
  24. package/src/components/EbizTable.vue +466 -0
  25. package/src/components/EbizTableColumn.vue +117 -0
  26. package/src/components/EbizTableSort.vue +181 -0
  27. package/src/components/EbizTabs.vue +133 -91
  28. package/src/components/EbizTimePicker.vue +144 -0
  29. package/src/components/EbizTitle.vue +3 -10
  30. package/src/components/EbizTree.vue +153 -0
  31. package/src/components/EbizTreeSelector.vue +423 -0
  32. package/src/components/Home.vue +8 -0
  33. package/src/components/TdesignAlert.vue +116 -0
  34. package/src/components/TdesignButton.vue +130 -0
  35. package/src/components/TdesignCalendar/index.vue +146 -0
  36. package/src/components/TdesignCard.vue +196 -0
  37. package/src/components/TdesignCol.vue +102 -0
  38. package/src/components/TdesignCollapse.vue +143 -0
  39. package/src/components/TdesignCollapsePanel.vue +80 -0
  40. package/src/components/TdesignDatePicker.vue +125 -0
  41. package/src/components/TdesignDialog.vue +226 -0
  42. package/src/components/TdesignForm.vue +134 -0
  43. package/src/components/TdesignFormItem.vue +106 -0
  44. package/src/components/TdesignGrid.vue +56 -0
  45. package/src/components/TdesignIcon.vue +68 -0
  46. package/src/components/TdesignImage.vue +163 -0
  47. package/src/components/TdesignImageViewer.vue +201 -0
  48. package/src/components/TdesignInput.vue +243 -0
  49. package/src/components/TdesignSelect.vue +445 -0
  50. package/src/components/TdesignTag.vue +118 -0
  51. package/src/components/TdesignTextarea.vue +143 -0
  52. package/src/components/TdesignTimeline.vue +58 -0
  53. package/src/components/TdesignTimelineItem.vue +72 -0
  54. package/src/components/TdesignUpload.vue +757 -0
  55. package/src/components/TdesignWatermark.vue +108 -0
  56. package/src/index.js +130 -0
  57. package/src/main.js +20 -4
  58. package/src/router/index.js +244 -5
  59. package/src/views/Button.vue +7 -3
  60. package/src/views/CheckboxDemo.vue +105 -0
  61. package/src/views/DialogDemo.vue +126 -0
  62. package/src/views/EbizAvatar.vue +224 -0
  63. package/src/views/EbizDetailBlockDemo.vue +31 -0
  64. package/src/views/EbizEmployeeInfo.vue +250 -0
  65. package/src/views/EbizRadioDemo.vue +152 -0
  66. package/src/views/EbizSpace.vue +186 -0
  67. package/src/views/EbizSwiper.vue +158 -0
  68. package/src/views/GridDemo.vue +239 -0
  69. package/src/views/Home.vue +63 -2
  70. package/src/views/PageHeaderDemo.vue +105 -0
  71. package/src/views/PaginationDemo.vue +97 -0
  72. package/src/views/RemoteSelect.vue +336 -5
  73. package/src/views/StatisticDemo.vue +191 -0
  74. package/src/views/SwitchDemo.vue +80 -0
  75. package/src/views/TableDemo.vue +335 -0
  76. package/src/views/TableSortDemo.vue +144 -0
  77. package/src/views/TableView.vue +69 -0
  78. package/src/views/TabsDemo.vue +283 -0
  79. package/src/views/TagDemo.vue +102 -0
  80. package/src/views/TdesignAlert.vue +99 -0
  81. package/src/views/TdesignButton.vue +191 -0
  82. package/src/views/TdesignCalendar.vue +95 -0
  83. package/src/views/TdesignCard.vue +297 -0
  84. package/src/views/TdesignCollapse.vue +294 -0
  85. package/src/views/TdesignDatePicker.vue +188 -0
  86. package/src/views/TdesignForm.vue +249 -0
  87. package/src/views/TdesignIcon.vue +204 -0
  88. package/src/views/TdesignImage.vue +216 -0
  89. package/src/views/TdesignImageViewer.vue +199 -0
  90. package/src/views/TdesignInput.vue +253 -0
  91. package/src/views/TdesignSelect.vue +474 -0
  92. package/src/views/TdesignSwiper.vue +158 -0
  93. package/src/views/TextareaDemo.vue +94 -0
  94. package/src/views/TimePickerDemo.vue +147 -0
  95. package/src/views/TimelineDemo.vue +161 -0
  96. package/src/views/TreeDemo.vue +255 -0
  97. package/src/views/TreeSelectorDemo.vue +246 -0
  98. package/src/views/UploadDemo.vue +122 -0
  99. package/src/views/WatermarkDemo.vue +86 -0
@@ -0,0 +1,108 @@
1
+ <template>
2
+ <t-watermark
3
+ :alpha="alpha"
4
+ :watermark-content="watermarkContent"
5
+ :width="width"
6
+ :height="height"
7
+ :x="x"
8
+ :y="y"
9
+ :rotate="rotate"
10
+ :zIndex="zIndex"
11
+ :isRepeat="isRepeat"
12
+ :movable="movable"
13
+ :gapX="gapX"
14
+ :gapY="gapY"
15
+ :offset="offset"
16
+ :lineSpace="lineSpace"
17
+ >
18
+ <slot></slot>
19
+ </t-watermark>
20
+ </template>
21
+
22
+ <script>
23
+ export default {
24
+ name: "EbizWatermark"
25
+ }
26
+ </script>
27
+
28
+ <script setup>
29
+ import { defineProps } from 'vue';
30
+ import { Watermark as TWatermark } from 'tdesign-vue-next';
31
+
32
+ defineProps({
33
+ // 水印透明度
34
+ alpha: {
35
+ type: Number,
36
+ default: 1
37
+ },
38
+ // 水印内容
39
+ watermarkContent: {
40
+ type: [String, Object],
41
+ default: () => ({ text: '' })
42
+ },
43
+ // 水印宽度
44
+ width: {
45
+ type: Number,
46
+ default: 120
47
+ },
48
+ // 水印高度
49
+ height: {
50
+ type: Number,
51
+ default: 64
52
+ },
53
+ // 水印x轴偏移量
54
+ x: {
55
+ type: Number,
56
+ default: 0
57
+ },
58
+ // 水印y轴偏移量
59
+ y: {
60
+ type: Number,
61
+ default: 0
62
+ },
63
+ // 水印旋转角度
64
+ rotate: {
65
+ type: Number,
66
+ default: -22
67
+ },
68
+ // 水印层级
69
+ zIndex: {
70
+ type: Number,
71
+ default: 9
72
+ },
73
+ // 水印是否重复铺满整个页面
74
+ isRepeat: {
75
+ type: Boolean,
76
+ default: true
77
+ },
78
+ // 水印是否可移动
79
+ movable: {
80
+ type: Boolean,
81
+ default: false
82
+ },
83
+ // 水印之间的水平间距
84
+ gapX: {
85
+ type: Number,
86
+ default: 212
87
+ },
88
+ // 水印之间的垂直间距
89
+ gapY: {
90
+ type: Number,
91
+ default: 222
92
+ },
93
+ // 水印整体的偏移量
94
+ offset: {
95
+ type: Array,
96
+ default: () => [0, 0]
97
+ },
98
+ // 多行水印的行间距
99
+ lineSpace: {
100
+ type: Number,
101
+ default: 16
102
+ }
103
+ });
104
+ </script>
105
+
106
+ <style lang="less" scoped>
107
+ /* 自定义样式 */
108
+ </style>
package/src/index.js CHANGED
@@ -2,6 +2,16 @@ import MyComponent from "./components/MyComponent.vue";
2
2
  import MyTable from "./components/Table.vue";
3
3
  import EbizFormContainer from "./components/Form.vue";
4
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";
5
15
  import EbizDataContainer from "./components/DataContainer.vue";
6
16
  import EbizTitle from "./components/EbizTitle.vue";
7
17
  import EbizDivider from "./components/EbizDivider.vue";
@@ -10,6 +20,42 @@ import EbizOkrTree from "./components/EbizOkrTree.vue";
10
20
  import EbizRemoteSelect from "./components/EbizRemoteSelect.vue";
11
21
  import EbizMindmap from "./components/EbizMindmap/index.vue";
12
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 { MessagePlugin as EbizMessage } from 'tdesign-vue-next';
13
59
 
14
60
  // 导入简洁数据服务
15
61
  import dataService from "./apiService/simpleDataService";
@@ -19,12 +65,26 @@ import "tdesign-vue-next/es/style/index.css";
19
65
  // 导入图表样式
20
66
  import "./assets/styles/charts/main.less";
21
67
 
68
+ // 时间轴组件
69
+ import EbizTimeline from "./components/TdesignTimeline.vue";
70
+ import {TimelineItem as EbizTimelineItem} from 'tdesign-vue-next';
71
+
22
72
  // 导出组件
23
73
  export {
24
74
  MyComponent,
25
75
  MyTable,
26
76
  EbizFormContainer,
27
77
  EbizButton,
78
+ EbizTdesignButton,
79
+ EbizTdesignIcon,
80
+ EbizTdesignInput,
81
+ EbizTdesignSelect,
82
+ EbizTdesignForm,
83
+ EbizTdesignFormItem,
84
+ EbizTdesignDatePicker,
85
+ EbizTdesignCard,
86
+ EbizTdesignImage,
87
+ EbizTdesignImageViewer,
28
88
  EbizDataContainer,
29
89
  EbizTitle,
30
90
  EbizDivider,
@@ -32,8 +92,78 @@ export {
32
92
  EbizOkrTree,
33
93
  EbizRemoteSelect,
34
94
  EbizRouteBreadcrumb,
95
+ EbizTabHeader,
96
+ // 页面头部组件
97
+ EbizPageHeader,
35
98
  // 思维导图
36
99
  EbizMindmap,
100
+ // 文件上传组件
101
+ EbizFileUpload,
102
+ // 日历组件
103
+ TdesignCalendar,
104
+ // 折叠面板组件
105
+ TdesignCollapse,
106
+ TdesignCollapsePanel,
107
+ // 标签组件
108
+ EbizTag,
109
+ // 轮播框组件
110
+ EbizSwiper,
111
+ // 轮播框子项组件
112
+ EbizSwiperItem,
113
+ // 间距组件
114
+ EbizSpace,
115
+ // 分页组件
116
+ EbizPagination,
117
+ // 多选框组件
118
+ EbizCheckbox,
119
+ // 多选框组组件
120
+ EbizCheckboxGroup,
37
121
  // 数据服务
38
122
  dataService,
123
+ // 新增 EbizRadio 和 EbizRadioGroup
124
+ EbizRadio,
125
+ EbizRadioGroup,
126
+ // 开关组件
127
+ EbizSwitch,
128
+ // 多行文本框组件
129
+ EbizTextarea,
130
+ // TDesign上传组件
131
+ EbizUpload,
132
+ // 栅格布局组件
133
+ EbizGrid,
134
+ // 栅格列组件
135
+ EbizCol,
136
+ // 选项卡组件
137
+ EbizTabs,
138
+ // 选项卡面板组件
139
+ EbizTabPanel,
140
+ // 统计数值组件
141
+ EbizStatistic,
142
+ // 消息插件
143
+ EbizMessage,
144
+ // 时间轴组件
145
+ EbizTimeline,
146
+ EbizTimelineItem,
147
+ // 水印组件
148
+ EbizWatermark,
149
+ // 头像组件
150
+ EbizAvatar,
151
+ // 员工信息组件
152
+ EbizEmployeeInfo,
153
+ // 提示组件
154
+ EbizAlert,
155
+ // 对话框组件
156
+ EbizDialog,
157
+ // 表格组件
158
+ EbizTable,
159
+ EbizTableColumn,
160
+ // 表格排序组件
161
+ EbizTableSort,
162
+ // 详情块组件
163
+ EbizDetailBlock,
164
+ // 树组件
165
+ EbizTree,
166
+ EbizTreeSelector,
167
+ // 时间选择器组件
168
+ EbizTimePicker
39
169
  };
package/src/main.js CHANGED
@@ -6,17 +6,25 @@ import {
6
6
  MyTable,
7
7
  EbizFormContainer,
8
8
  EbizButton,
9
+ EbizTdesignButton,
10
+ EbizTdesignIcon,
11
+ EbizTdesignInput,
12
+ EbizTdesignSelect,
9
13
  EbizDataContainer,
10
14
  EbizTitle,
15
+ EbizDivider,
16
+ EbizStatsCard,
11
17
  EbizOkrTree,
12
18
  EbizRemoteSelect,
13
- EbizMindmap,
14
19
  EbizRouteBreadcrumb,
20
+ EbizFileUpload,
21
+ EbizTabHeader,
22
+ EbizMindmap,
15
23
  dataService
16
24
  } from './index.js'
17
25
 
18
- import "tdesign-vue-next/es/style/index.css"
19
- import "./assets/styles/charts/main.less"
26
+ import 'tdesign-vue-next/es/style/index.css'
27
+ import './assets/styles/charts/main.less'
20
28
 
21
29
  const app = createApp(App)
22
30
 
@@ -25,12 +33,20 @@ app.component('MyComponent', MyComponent)
25
33
  app.component('MyTable', MyTable)
26
34
  app.component('EbizFormContainer', EbizFormContainer)
27
35
  app.component('EbizButton', EbizButton)
36
+ app.component('EbizTdesignButton', EbizTdesignButton)
37
+ app.component('EbizTdesignIcon', EbizTdesignIcon)
38
+ app.component('EbizTdesignInput', EbizTdesignInput)
39
+ app.component('EbizTdesignSelect', EbizTdesignSelect)
28
40
  app.component('EbizDataContainer', EbizDataContainer)
29
41
  app.component('EbizTitle', EbizTitle)
42
+ app.component('EbizDivider', EbizDivider)
43
+ app.component('EbizStatsCard', EbizStatsCard)
30
44
  app.component('EbizOkrTree', EbizOkrTree)
31
45
  app.component('EbizRemoteSelect', EbizRemoteSelect)
32
- app.component('EbizMindmap', EbizMindmap)
33
46
  app.component('EbizRouteBreadcrumb', EbizRouteBreadcrumb)
47
+ app.component('EbizFileUpload', EbizFileUpload)
48
+ app.component('EbizTabHeader', EbizTabHeader)
49
+ app.component('EbizMindmap', EbizMindmap)
34
50
 
35
51
  // 注册数据服务
36
52
  app.config.globalProperties.$dataService = dataService
@@ -1,10 +1,13 @@
1
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'
2
5
 
3
6
  const routes = [
4
7
  {
5
8
  path: '/',
6
9
  name: 'Home',
7
- component: () => import('../views/Home.vue'),
10
+ component: Home,
8
11
  meta: { title: '首页' }
9
12
  },
10
13
  {
@@ -15,10 +18,16 @@ const routes = [
15
18
  },
16
19
  {
17
20
  path: '/table',
18
- name: 'Table',
19
- component: () => import('../views/Table.vue'),
21
+ name: 'table',
22
+ component: TableView,
20
23
  meta: { title: '表格组件示例' }
21
24
  },
25
+ {
26
+ path: '/table-column',
27
+ name: 'table-column',
28
+ component: TableView,
29
+ meta: { title: '表格列组件示例' }
30
+ },
22
31
  {
23
32
  path: '/form',
24
33
  name: 'Form',
@@ -27,10 +36,64 @@ const routes = [
27
36
  },
28
37
  {
29
38
  path: '/button',
30
- name: 'Button',
31
- component: () => import('../views/Button.vue'),
39
+ name: 'button',
40
+ component: ButtonView,
32
41
  meta: { title: '按钮组件示例' }
33
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
+ },
34
97
  {
35
98
  path: '/data-container',
36
99
  name: 'DataContainer',
@@ -60,6 +123,182 @@ const routes = [
60
123
  name: 'Mindmap',
61
124
  component: () => import('../views/Mindmap.vue'),
62
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: '/page-header',
249
+ name: 'PageHeader',
250
+ component: () => import('../views/PageHeaderDemo.vue'),
251
+ meta: { title: 'Ebiz页面头部组件示例', icon: 'header' }
252
+ },
253
+ {
254
+ path: '/table-demo',
255
+ name: 'TableDemo',
256
+ component: () => import('../views/TableDemo.vue'),
257
+ meta: { title: 'Ebiz表格组件示例' }
258
+ },
259
+ {
260
+ path: '/table-sort',
261
+ name: 'TableSort',
262
+ component: () => import('../views/TableSortDemo.vue'),
263
+ meta: { title: 'Ebiz表格排序组件示例' }
264
+ },
265
+ {
266
+ path: '/ebiz-detail-block',
267
+ name: 'EbizDetailBlock',
268
+ component: () => import('../views/EbizDetailBlockDemo.vue'),
269
+ meta: { title: 'Ebiz详情块组件示例' }
270
+ },
271
+ {
272
+ path: '/tree',
273
+ name: 'Tree',
274
+ component: () => import('../views/TreeDemo.vue'),
275
+ meta: { title: 'Ebiz树组件示例' }
276
+ },
277
+ {
278
+ path: '/tree-demo',
279
+ name: 'TreeDemo',
280
+ component: () => import('../views/TreeDemo.vue'),
281
+ meta: { title: 'Ebiz树组件示例' }
282
+ },
283
+ {
284
+ path: '/tree-selector-demo',
285
+ name: 'TreeSelectorDemo',
286
+ 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: '树选择器组件示例' }
296
+ },
297
+ {
298
+ path: '/time-picker',
299
+ name: 'TimePicker',
300
+ component: () => import('../views/TimePickerDemo.vue'),
301
+ meta: { title: '时间选择器组件示例' }
63
302
  }
64
303
  ]
65
304
 
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <ebiz-route-breadcrumb />
4
- <ebiz-button />
4
+ <ebiz-button :text="测试" :apiConfig="{ apiId: 802, apiType: 5 }" @prepare="onPrepare" />
5
5
  </div>
6
6
  </template>
7
7
 
@@ -12,9 +12,13 @@ export default {
12
12
  name: 'ButtonDemo',
13
13
  components: {
14
14
  EbizButton
15
+ },
16
+ methods: {
17
+ onPrepare() {
18
+
19
+ }
15
20
  }
16
21
  }
17
22
  </script>
18
23
 
19
- <style scoped>
20
- </style>
24
+ <style scoped></style>