adtec-core-package 1.2.6 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,5 +1,4 @@
1
1
 
2
- // ...
3
2
  import {
4
3
  VxeUI,
5
4
  VxeTable,
@@ -19,6 +18,240 @@ import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
19
18
  VxeUI.setI18n('zh-CN', zhCN)
20
19
  VxeUI.setLanguage('zh-CN')
21
20
  VxeUI.use(VxeUIPluginRenderElement)
21
+ VxeUI.setConfig({
22
+ // size: null, // 全局尺寸
23
+ // zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡;新版本可以使用 dom-zindex 共享配置
24
+ // version: 1, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
25
+ table: {
26
+ showHeader: true,
27
+ keepSource:true,
28
+ autoResize: true,
29
+ height: 'auto',
30
+ showOverflow: 'title',
31
+ showHeaderOverflow: 'title',
32
+ showFooterOverflow: 'title',
33
+ cellConfig:{
34
+ height: 40,
35
+ },
36
+ headerCellConfig:{
37
+ height:40
38
+ },
39
+ resizeConfig: {
40
+ refreshDelay: 20
41
+ },
42
+ resizableConfig: {
43
+ dragMode: 'auto',
44
+ showDragTip: true,
45
+ isSyncAutoHeight: true,
46
+ isSyncAutoWidth: true,
47
+ minHeight: 18
48
+ },
49
+ columnDragConfig: {
50
+ showIcon: true,
51
+ showGuidesStatus: true,
52
+ showDragTip: true
53
+ },
54
+ checkboxConfig: {
55
+ // trigger: 'default',
56
+ strict: true
57
+ },
58
+ tooltipConfig: {
59
+ theme: 'light',
60
+ enterable: true
61
+ },
62
+ validConfig: {
63
+ showMessage: true,
64
+ autoClear: true,
65
+ autoPos: true,
66
+ message: 'inline',
67
+ msgMode: 'single',
68
+ theme: 'beautify'
69
+ },
70
+ columnConfig: {
71
+ maxFixedSize: 4
72
+ },
73
+ footerCellConfig: {
74
+ height: 'unset'
75
+ },
76
+ // menuConfig: {
77
+ // visibleMethod () {}
78
+ // },
79
+ customConfig: {
80
+ // enabled: false,
81
+ allowVisible: true,
82
+ allowResizable: true,
83
+ allowFixed: true,
84
+ allowSort: true,
85
+ showFooter: true,
86
+ placement: 'top-right',
87
+ // storage: false,
88
+ // checkMethod () {},
89
+ modalOptions: {
90
+ showMaximize: true,
91
+ mask: true,
92
+ lockView: true,
93
+ resize: true,
94
+ escClosable: true
95
+ },
96
+ drawerOptions: {
97
+ mask: true,
98
+ lockView: true,
99
+ escClosable: true,
100
+ resize: true
101
+ }
102
+ },
103
+ sortConfig: {
104
+ // remote: false,
105
+ // trigger: 'default',
106
+ // orders: ['asc', 'desc', null],
107
+ // sortMethod: null,
108
+ showIcon: true,
109
+ allowClear: true,
110
+ allowBtn: true,
111
+ iconLayout: 'vertical'
112
+ },
113
+ filterConfig: {
114
+ // remote: false,
115
+ // filterMethod: null,
116
+ // destroyOnClose: false,
117
+ // isEvery: false,
118
+ showIcon: true
119
+ },
120
+ treeConfig: {
121
+ rowField: 'id',
122
+ parentField: 'parentId',
123
+ childrenField: 'children',
124
+ hasChildField: 'hasChild',
125
+ mapChildrenField: '_X_ROW_CHILD',
126
+ indent: 20,
127
+ transform: true,
128
+ iconOpen: 'vxe-icon-square-minus',
129
+ iconClose: 'vxe-icon-square-plus',
130
+ showIcon: true
131
+ },
132
+ expandConfig: {
133
+ // trigger: 'default',
134
+ showIcon: true,
135
+ mode: 'fixed'
136
+ },
137
+ editConfig: {
138
+ // mode: 'cell',
139
+ showIcon: true,
140
+ showAsterisk: true,
141
+ autoFocus: true
142
+ },
143
+ importConfig: {
144
+ _typeMaps: {
145
+ csv: 1,
146
+ html: 1,
147
+ xml: 1,
148
+ txt: 1
149
+ }
150
+ },
151
+ exportConfig: {
152
+ _typeMaps: {
153
+ csv: 1,
154
+ html: 1,
155
+ xml: 1,
156
+ txt: 1
157
+ }
158
+ },
159
+ printConfig: {
160
+ },
161
+ mouseConfig: {
162
+ extension: true
163
+ },
164
+ keyboardConfig: {
165
+ isEsc: true
166
+ },
167
+ areaConfig: {
168
+ autoClear: true,
169
+ selectCellByHeader: true,
170
+ selectCellByBody: true,
171
+ extendDirection: {
172
+ top: true,
173
+ left: true,
174
+ bottom: true,
175
+ right: true
176
+ }
177
+ },
178
+ clipConfig: {
179
+ isCopy: true,
180
+ isCut: true,
181
+ isPaste: true
182
+ },
183
+ fnrConfig: {
184
+ isFind: true,
185
+ isReplace: true
186
+ },
187
+ virtualXConfig: {
188
+ enabled: true,
189
+ gt: 60,
190
+ preSize: 0,
191
+ oSize: 1
192
+ },
193
+ virtualYConfig: {
194
+ enabled: true,
195
+ gt: 100,
196
+ preSize: 1,
197
+ oSize: 2
198
+ },
199
+ scrollbarConfig: {
200
+ // width: 0,
201
+ // height: 0
202
+ }
203
+ },
204
+ // export: {
205
+ // types: {}
206
+ // },
207
+ grid: {
208
+ // size: null,
209
+ // zoomConfig: {
210
+ // escRestore: true
211
+ // },
212
+ formConfig: {
213
+ enabled: true
214
+ },
215
+ pagerConfig: {
216
+ enabled: true
217
+ // perfect: false
218
+ },
219
+ toolbarConfig: {
220
+ enabled: true
221
+ // perfect: false
222
+ },
223
+ proxyConfig: {
224
+ enabled: true,
225
+ autoLoad: true,
226
+ showResponseMsg: true,
227
+ showActiveMsg: true,
228
+ props: {
229
+ list: null,
230
+ result: 'result',
231
+ total: 'page.total',
232
+ message: 'message'
233
+ }
234
+ // beforeItem: null,
235
+ // beforeColumn: null,
236
+ // beforeQuery: null,
237
+ // afterQuery: null,
238
+ // beforeDelete: null,
239
+ // afterDelete: null,
240
+ // beforeSave: null,
241
+ // afterSave: null
242
+ }
243
+ },
244
+ toolbar: {
245
+ // size: null,
246
+ // import: {
247
+ // mode: 'covering'
248
+ // },
249
+ // export: {
250
+ // types: ['csv', 'html', 'xml', 'txt']
251
+ // },
252
+ // buttons: []
253
+ }
254
+ })
22
255
  // 可选组件
23
256
  function lazyVxeTable (app:import("vue").App) {
24
257
  app.use(VxeTable)