@weitutech/by-components 1.0.27 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,300 +1,300 @@
1
- import Vue from "vue"
2
- // import XEUtils from "xe-utils"
3
- import {
4
- // 全局实例对象
5
- // VXETable,
6
-
7
- // 可选表格模块
8
- // VxeTableFilterModule,
9
- // VxeTableEditModule,
10
- // VxeTableMenuModule,
11
- // VxeTableExportModule,
12
- // VxeTableKeyboardModule,
13
- // VxeTableValidatorModule,
14
- // VxeTableCustomModule,
15
-
16
- // 可选组件
17
- VxeIcon,
18
- VxeTable,
19
- VxeColumn,
20
- VxeColgroup,
21
- VxeGrid,
22
- VxeTooltip,
23
- VxeToolbar,
24
- VxePager,
25
- // VxeForm,
26
- // VxeFormItem,
27
- // VxeFormGather,
28
- // VxeCheckbox,
29
- // VxeCheckboxGroup,
30
- // VxeRadio,
31
- // VxeRadioGroup,
32
- // VxeRadioButton,
33
- // VxeSwitch,
34
- // VxeInput,
35
- VxeSelect
36
- // VxeOptgroup,
37
- // VxeOption,
38
- // VxeTextarea,
39
- // VxeButton,
40
- // VxeButtonGroup,
41
- // VxeModal,
42
- // VxeList,
43
- // VxePulldown
44
- } from "vxe-table"
45
-
46
- // 旧版本使用 setup({}) 或者 config({})
47
- // VXETable.config({
48
- // // size: null, // 全局尺寸
49
- // // zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡;新版本可以使用 dom-zindex 共享配置
50
- // // version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
51
- // // loadingText: '加载中...', // 全局loading提示内容,如果为null则不显示文本
52
- // table: {
53
- // // showHeader: true,
54
- // // keepSource: false,
55
- // // showOverflow: null,
56
- // // showHeaderOverflow: null,
57
- // // showFooterOverflow: null,
58
- // // size: null,
59
- // // autoResize: false,
60
- // // stripe: false,
61
- // // border: false,
62
- // // round: false,
63
- // // minHeight: 144,
64
- // emptyText: "暂无数据"
65
- // // resizeConfig: {
66
- // // refreshDelay: 250
67
- // // },
68
- // // rowConfig: {
69
- // // keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名
70
- // // },
71
- // // radioConfig: {
72
- // // trigger: 'default'
73
- // // },
74
- // // checkboxConfig: {
75
- // // strict: false,
76
- // // highlight: false,
77
- // // range: false,
78
- // // trigger: 'default'
79
- // // },
80
- // // sortConfig: {
81
- // // remote: false,
82
- // // trigger: 'default',
83
- // // orders: ['asc', 'desc', null],
84
- // // sortMethod: null
85
- // // },
86
- // // filterConfig: {
87
- // // remote: false,
88
- // // filterMethod: null
89
- // // },
90
- // // expandConfig: {
91
- // // trigger: 'default',
92
- // // showIcon: true
93
- // // },
94
- // // treeConfig: {
95
- // // rowField: 'id',
96
- // // parentField: 'parentId',
97
- // // children: 'children',
98
- // // hasChild: 'hasChild',
99
- // // mapChildren: '_X_ROW_CHILD',
100
- // // indent: 20,
101
- // // showIcon: true
102
- // // },
103
- // // tooltipConfig: {
104
- // // enterable: true
105
- // // },
106
- // // menuConfig: {
107
- // // visibleMethod () {}
108
- // // },
109
- // // editConfig: {
110
- // // mode: 'cell',
111
- // // showAsterisk: true
112
- // // },
113
- // // importConfig: {
114
- // // modes: ['insert', 'covering']
115
- // // },
116
- // // exportConfig: {
117
- // // modes: ['current', 'selected']
118
- // // },
119
- // // customConfig: {
120
- // // storage: false,
121
- // // mode: 'simple' // 默认自定义列方式
122
- // // },
123
- // // area-config: {
124
- // // multiple: false
125
- // // },
126
- // // scrollX: {
127
- // // enabled: false, // 是否默认开启横向虚拟滚动
128
- // // gt: 60 // 当列大于指定数量时自动触发启用虚拟滚动
129
- // // },
130
- // // scrollY: {
131
- // // enabled: false, // 是否默认开启纵向虚拟滚动
132
- // // gt: 100 // 当数据大于指定数量时自动触发启用虚拟滚动
133
- // // },
134
- // // loading: {
135
- // // icon: 'vxe-icon-spinner roll',
136
- // // text: '加载中...'
137
- // // }
138
- // }
139
- // // grid: {
140
- // // emptyText: "暂无数据"
141
- // // size: null,
142
- // // zoomConfig: {
143
- // // escRestore: true
144
- // // },
145
- // // pagerConfig: {
146
- // // },
147
- // // toolbarConfig: {
148
- // // },
149
- // // proxyConfig: {
150
- // // autoLoad: true,
151
- // // message: true,
152
- // // props: {
153
- // // list: null, // 用于列表,读取响应数据
154
- // // result: 'result', // 用于分页,读取响应数据
155
- // // total: 'page.total' // 用于分页,读取总条数
156
- // // }
157
- // // beforeItem: null,
158
- // // beforeColumn: null,
159
- // // beforeQuery: null,
160
- // // afterQuery: null,
161
- // // beforeDelete: null,
162
- // // afterDelete: null,
163
- // // beforeSave: null,
164
- // // afterSave: null
165
- // // }
166
- // // }
167
- // // pager: {
168
- // // size: null,
169
- // // autoHidden: false,
170
- // // pageSize: 10,
171
- // // pagerCount: 7,
172
- // // pageSizes: [10, 15, 20, 50, 100],
173
- // // layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
174
- // // },
175
- // // form: {
176
- // // preventSubmit: false
177
- // // size: null,
178
- // // colon: false,
179
- // // validConfig: {
180
- // // autoPos: true
181
- // // },
182
- // // tooltipConfig: {
183
- // // enterable: true
184
- // // },
185
- // // titleAsterisk: true
186
- // // },
187
- // // input: {
188
- // // size: null,
189
- // // transfer: false
190
- // // parseFormat: 'yyyy-MM-dd HH:mm:ss.SSS',
191
- // // labelFormat: '',
192
- // // valueFormat: '',
193
- // // startDay: 1,
194
- // // digits: 2,
195
- // // controls: true
196
- // // },
197
- // // textarea: {
198
- // // size: null
199
- // // autosize: {
200
- // // minRows: 1,
201
- // // maxRows: 10
202
- // // }
203
- // // },
204
- // // select: {
205
- // // size: null,
206
- // // transfer: false,
207
- // // optionConfig: {
208
- // // keyField: '_X_OPTION_KEY' // 选项数据的唯一主键字段名
209
- // // },
210
- // // multiCharOverflow: 8
211
- // // },
212
- // // toolbar: {
213
- // // size: null,
214
- // // import: {
215
- // // mode: 'covering'
216
- // // },
217
- // // export: {
218
- // // types: ['csv', 'html', 'xml', 'txt']
219
- // // },
220
- // // buttons: [],
221
- // // tools: []
222
- // // },
223
- // // button: {
224
- // // size: null,
225
- // // transfer: false
226
- // // },
227
- // // radio: {
228
- // // size: null
229
- // // },
230
- // // checkbox: {
231
- // // size: null
232
- // // },
233
- // // switch: {
234
- // // size: null
235
- // // },
236
- // // modal: {
237
- // // // size: null,
238
- // // minWidth: 340,
239
- // // minHeight: 200,
240
- // // lockView: true,
241
- // // mask: true,
242
- // // duration: 3000,
243
- // // marginSize: 0,
244
- // // dblclickZoom: true,
245
- // // showTitleOverflow: true
246
- // // storage: false
247
- // // },
248
- // // list: {
249
- // // scrollY: {
250
- // // gt: 100
251
- // // }
252
- // // }
253
- // })
254
-
255
- // 导入默认的语言
256
- // import zhCN from "vxe-table/lib/locale/lang/zh-CN"
257
-
258
- // 按需加载的方式默认是不带国际化的,自定义国际化需要自行解析占位符 '{0}',例如:
259
- // VXETable.setConfig({
260
- // i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
261
- // })
262
-
263
- // 可选表格模块
264
- // Vue.use(VxeTableFilterModule)
265
- // Vue.use(VxeTableEditModule)
266
- // Vue.use(VxeTableMenuModule)
267
- // Vue.use(VxeTableExportModule)
268
- // Vue.use(VxeTableKeyboardModule)
269
- // Vue.use(VxeTableValidatorModule)
270
- // Vue.use(VxeTableCustomModule)
271
-
272
- // 可选组件
273
- Vue.use(VxeIcon)
274
- Vue.use(VxeTable)
275
- Vue.use(VxeColumn)
276
- Vue.use(VxeColgroup)
277
- Vue.use(VxeGrid)
278
- Vue.use(VxeTooltip)
279
- Vue.use(VxeToolbar)
280
- Vue.use(VxePager)
281
- // Vue.use(VxeForm)
282
- // Vue.use(VxeFormItem)
283
- // Vue.use(VxeFormGather)
284
- // Vue.use(VxeCheckbox)
285
- // Vue.use(VxeCheckboxGroup)
286
- // Vue.use(VxeRadio)
287
- // Vue.use(VxeRadioGroup)
288
- // Vue.use(VxeRadioButton)
289
- // Vue.use(VxeSwitch)
290
- // Vue.use(VxeInput)
291
- Vue.use(VxeSelect)
292
- // Vue.use(VxeOptgroup)
293
- // Vue.use(VxeOption)
294
- // Vue.use(VxeTextarea)
295
- // Vue.use(VxeButton)
296
- // Vue.use(VxeButtonGroup)
297
- // Vue.use(VxeModal)
298
- // Vue.use(VxeList)
299
- // Vue.use(VxePulldown)
300
- import "./vxeTable.scss"
1
+ import Vue from "vue"
2
+ // import XEUtils from "xe-utils"
3
+ import {
4
+ // 全局实例对象
5
+ // VXETable,
6
+
7
+ // 可选表格模块
8
+ // VxeTableFilterModule,
9
+ // VxeTableEditModule,
10
+ // VxeTableMenuModule,
11
+ // VxeTableExportModule,
12
+ // VxeTableKeyboardModule,
13
+ // VxeTableValidatorModule,
14
+ // VxeTableCustomModule,
15
+
16
+ // 可选组件
17
+ VxeIcon,
18
+ VxeTable,
19
+ VxeColumn,
20
+ VxeColgroup,
21
+ VxeGrid,
22
+ VxeTooltip,
23
+ VxeToolbar,
24
+ VxePager,
25
+ // VxeForm,
26
+ // VxeFormItem,
27
+ // VxeFormGather,
28
+ // VxeCheckbox,
29
+ // VxeCheckboxGroup,
30
+ // VxeRadio,
31
+ // VxeRadioGroup,
32
+ // VxeRadioButton,
33
+ // VxeSwitch,
34
+ // VxeInput,
35
+ VxeSelect
36
+ // VxeOptgroup,
37
+ // VxeOption,
38
+ // VxeTextarea,
39
+ // VxeButton,
40
+ // VxeButtonGroup,
41
+ // VxeModal,
42
+ // VxeList,
43
+ // VxePulldown
44
+ } from "vxe-table"
45
+
46
+ // 旧版本使用 setup({}) 或者 config({})
47
+ // VXETable.config({
48
+ // // size: null, // 全局尺寸
49
+ // // zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡;新版本可以使用 dom-zindex 共享配置
50
+ // // version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
51
+ // // loadingText: '加载中...', // 全局loading提示内容,如果为null则不显示文本
52
+ // table: {
53
+ // // showHeader: true,
54
+ // // keepSource: false,
55
+ // // showOverflow: null,
56
+ // // showHeaderOverflow: null,
57
+ // // showFooterOverflow: null,
58
+ // // size: null,
59
+ // // autoResize: false,
60
+ // // stripe: false,
61
+ // // border: false,
62
+ // // round: false,
63
+ // // minHeight: 144,
64
+ // emptyText: "暂无数据"
65
+ // // resizeConfig: {
66
+ // // refreshDelay: 250
67
+ // // },
68
+ // // rowConfig: {
69
+ // // keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名
70
+ // // },
71
+ // // radioConfig: {
72
+ // // trigger: 'default'
73
+ // // },
74
+ // // checkboxConfig: {
75
+ // // strict: false,
76
+ // // highlight: false,
77
+ // // range: false,
78
+ // // trigger: 'default'
79
+ // // },
80
+ // // sortConfig: {
81
+ // // remote: false,
82
+ // // trigger: 'default',
83
+ // // orders: ['asc', 'desc', null],
84
+ // // sortMethod: null
85
+ // // },
86
+ // // filterConfig: {
87
+ // // remote: false,
88
+ // // filterMethod: null
89
+ // // },
90
+ // // expandConfig: {
91
+ // // trigger: 'default',
92
+ // // showIcon: true
93
+ // // },
94
+ // // treeConfig: {
95
+ // // rowField: 'id',
96
+ // // parentField: 'parentId',
97
+ // // children: 'children',
98
+ // // hasChild: 'hasChild',
99
+ // // mapChildren: '_X_ROW_CHILD',
100
+ // // indent: 20,
101
+ // // showIcon: true
102
+ // // },
103
+ // // tooltipConfig: {
104
+ // // enterable: true
105
+ // // },
106
+ // // menuConfig: {
107
+ // // visibleMethod () {}
108
+ // // },
109
+ // // editConfig: {
110
+ // // mode: 'cell',
111
+ // // showAsterisk: true
112
+ // // },
113
+ // // importConfig: {
114
+ // // modes: ['insert', 'covering']
115
+ // // },
116
+ // // exportConfig: {
117
+ // // modes: ['current', 'selected']
118
+ // // },
119
+ // // customConfig: {
120
+ // // storage: false,
121
+ // // mode: 'simple' // 默认自定义列方式
122
+ // // },
123
+ // // area-config: {
124
+ // // multiple: false
125
+ // // },
126
+ // // scrollX: {
127
+ // // enabled: false, // 是否默认开启横向虚拟滚动
128
+ // // gt: 60 // 当列大于指定数量时自动触发启用虚拟滚动
129
+ // // },
130
+ // // scrollY: {
131
+ // // enabled: false, // 是否默认开启纵向虚拟滚动
132
+ // // gt: 100 // 当数据大于指定数量时自动触发启用虚拟滚动
133
+ // // },
134
+ // // loading: {
135
+ // // icon: 'vxe-icon-spinner roll',
136
+ // // text: '加载中...'
137
+ // // }
138
+ // }
139
+ // // grid: {
140
+ // // emptyText: "暂无数据"
141
+ // // size: null,
142
+ // // zoomConfig: {
143
+ // // escRestore: true
144
+ // // },
145
+ // // pagerConfig: {
146
+ // // },
147
+ // // toolbarConfig: {
148
+ // // },
149
+ // // proxyConfig: {
150
+ // // autoLoad: true,
151
+ // // message: true,
152
+ // // props: {
153
+ // // list: null, // 用于列表,读取响应数据
154
+ // // result: 'result', // 用于分页,读取响应数据
155
+ // // total: 'page.total' // 用于分页,读取总条数
156
+ // // }
157
+ // // beforeItem: null,
158
+ // // beforeColumn: null,
159
+ // // beforeQuery: null,
160
+ // // afterQuery: null,
161
+ // // beforeDelete: null,
162
+ // // afterDelete: null,
163
+ // // beforeSave: null,
164
+ // // afterSave: null
165
+ // // }
166
+ // // }
167
+ // // pager: {
168
+ // // size: null,
169
+ // // autoHidden: false,
170
+ // // pageSize: 10,
171
+ // // pagerCount: 7,
172
+ // // pageSizes: [10, 15, 20, 50, 100],
173
+ // // layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
174
+ // // },
175
+ // // form: {
176
+ // // preventSubmit: false
177
+ // // size: null,
178
+ // // colon: false,
179
+ // // validConfig: {
180
+ // // autoPos: true
181
+ // // },
182
+ // // tooltipConfig: {
183
+ // // enterable: true
184
+ // // },
185
+ // // titleAsterisk: true
186
+ // // },
187
+ // // input: {
188
+ // // size: null,
189
+ // // transfer: false
190
+ // // parseFormat: 'yyyy-MM-dd HH:mm:ss.SSS',
191
+ // // labelFormat: '',
192
+ // // valueFormat: '',
193
+ // // startDay: 1,
194
+ // // digits: 2,
195
+ // // controls: true
196
+ // // },
197
+ // // textarea: {
198
+ // // size: null
199
+ // // autosize: {
200
+ // // minRows: 1,
201
+ // // maxRows: 10
202
+ // // }
203
+ // // },
204
+ // // select: {
205
+ // // size: null,
206
+ // // transfer: false,
207
+ // // optionConfig: {
208
+ // // keyField: '_X_OPTION_KEY' // 选项数据的唯一主键字段名
209
+ // // },
210
+ // // multiCharOverflow: 8
211
+ // // },
212
+ // // toolbar: {
213
+ // // size: null,
214
+ // // import: {
215
+ // // mode: 'covering'
216
+ // // },
217
+ // // export: {
218
+ // // types: ['csv', 'html', 'xml', 'txt']
219
+ // // },
220
+ // // buttons: [],
221
+ // // tools: []
222
+ // // },
223
+ // // button: {
224
+ // // size: null,
225
+ // // transfer: false
226
+ // // },
227
+ // // radio: {
228
+ // // size: null
229
+ // // },
230
+ // // checkbox: {
231
+ // // size: null
232
+ // // },
233
+ // // switch: {
234
+ // // size: null
235
+ // // },
236
+ // // modal: {
237
+ // // // size: null,
238
+ // // minWidth: 340,
239
+ // // minHeight: 200,
240
+ // // lockView: true,
241
+ // // mask: true,
242
+ // // duration: 3000,
243
+ // // marginSize: 0,
244
+ // // dblclickZoom: true,
245
+ // // showTitleOverflow: true
246
+ // // storage: false
247
+ // // },
248
+ // // list: {
249
+ // // scrollY: {
250
+ // // gt: 100
251
+ // // }
252
+ // // }
253
+ // })
254
+
255
+ // 导入默认的语言
256
+ // import zhCN from "vxe-table/lib/locale/lang/zh-CN"
257
+
258
+ // 按需加载的方式默认是不带国际化的,自定义国际化需要自行解析占位符 '{0}',例如:
259
+ // VXETable.setConfig({
260
+ // i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
261
+ // })
262
+
263
+ // 可选表格模块
264
+ // Vue.use(VxeTableFilterModule)
265
+ // Vue.use(VxeTableEditModule)
266
+ // Vue.use(VxeTableMenuModule)
267
+ // Vue.use(VxeTableExportModule)
268
+ // Vue.use(VxeTableKeyboardModule)
269
+ // Vue.use(VxeTableValidatorModule)
270
+ // Vue.use(VxeTableCustomModule)
271
+
272
+ // 可选组件
273
+ Vue.use(VxeIcon)
274
+ Vue.use(VxeTable)
275
+ Vue.use(VxeColumn)
276
+ Vue.use(VxeColgroup)
277
+ Vue.use(VxeGrid)
278
+ Vue.use(VxeTooltip)
279
+ Vue.use(VxeToolbar)
280
+ Vue.use(VxePager)
281
+ // Vue.use(VxeForm)
282
+ // Vue.use(VxeFormItem)
283
+ // Vue.use(VxeFormGather)
284
+ // Vue.use(VxeCheckbox)
285
+ // Vue.use(VxeCheckboxGroup)
286
+ // Vue.use(VxeRadio)
287
+ // Vue.use(VxeRadioGroup)
288
+ // Vue.use(VxeRadioButton)
289
+ // Vue.use(VxeSwitch)
290
+ // Vue.use(VxeInput)
291
+ Vue.use(VxeSelect)
292
+ // Vue.use(VxeOptgroup)
293
+ // Vue.use(VxeOption)
294
+ // Vue.use(VxeTextarea)
295
+ // Vue.use(VxeButton)
296
+ // Vue.use(VxeButtonGroup)
297
+ // Vue.use(VxeModal)
298
+ // Vue.use(VxeList)
299
+ // Vue.use(VxePulldown)
300
+ import "./vxeTable.scss"
@@ -1,14 +1,14 @@
1
- // 修改scss变量
2
- $vxe-font-size: 12px;
3
- $vxe-table-header-font-color: #000;
4
- $vxe-table-header-background-color: #fafafa;
5
- $vxe-font-color: #606266;
6
- // $vxe-primary-color: #409eff;
7
- // $vxe-table-font-color: $vxe-font-color;
8
- $vxe-table-border-color: #ebeef5;
9
- // $vxe-table-border-radius: 4px;
10
- $vxe-table-row-height-default: 41px;
11
- $vxe-table-column-padding-default: 9.5px 0;
12
- // ...
13
-
14
- @import 'vxe-table/styles/index.scss';
1
+ // 修改scss变量
2
+ $vxe-font-size: 12px;
3
+ $vxe-table-header-font-color: #000;
4
+ $vxe-table-header-background-color: #fafafa;
5
+ $vxe-font-color: #606266;
6
+ // $vxe-primary-color: #409eff;
7
+ // $vxe-table-font-color: $vxe-font-color;
8
+ $vxe-table-border-color: #ebeef5;
9
+ // $vxe-table-border-radius: 4px;
10
+ $vxe-table-row-height-default: 41px;
11
+ $vxe-table-column-padding-default: 9.5px 0;
12
+ // ...
13
+
14
+ @import 'vxe-table/styles/index.scss';