adtec-core-package 1.9.1 → 1.9.2

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.9.1",
3
+ "version": "1.9.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,195 +22,6 @@ VxeUI.use(VxeUIPluginExportXLSX, {
22
22
  ExcelJS
23
23
  })
24
24
  VxeUI.setConfig({
25
- // size: null, // 全局尺寸
26
- // zIndex: 999, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡;新版本可以使用 dom-zindex 共享配置
27
- // version: 1, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
28
- table: {
29
- showHeader: true,
30
- keepSource: true,
31
- autoResize: true,
32
- height: '100%',
33
- showOverflow: true,
34
- showHeaderOverflow: true,
35
- showFooterOverflow: true,
36
- cellConfig: {},
37
- headerCellConfig: {
38
- height: 41
39
- },
40
- resizeConfig: {
41
- refreshDelay: 20
42
- },
43
- resizableConfig: {
44
- dragMode: 'auto',
45
- showDragTip: false,
46
- isSyncAutoHeight: true,
47
- isSyncAutoWidth: true,
48
- minHeight: 18
49
- },
50
- columnDragConfig: {
51
- showIcon: true,
52
- showGuidesStatus: false,
53
- showDragTip: false
54
- },
55
- checkboxConfig: {
56
- showHeader:true,
57
- // trigger: 'default',
58
- strict: true,
59
- highlight: false,
60
- range: false,
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
- resizable: true,
73
- },
74
- tooltipConfig: {
75
- enterable: true,
76
- theme: 'light'
77
- },
78
- rowConfig: {
79
- isCurrent: true,
80
- },
81
- footerCellConfig: {
82
- height: 'unset'
83
- },
84
- // menuConfig: {
85
- // visibleMethod () {}
86
- // },
87
- customConfig: {
88
- // enabled: false,
89
- allowVisible: true,
90
- allowResizable: true,
91
- allowFixed: true,
92
- allowSort: true,
93
- showFooter: true,
94
- placement: 'top-right',
95
- // storage: false,
96
- // checkMethod () {},
97
- modalOptions: {
98
- showMaximize: true,
99
- mask: true,
100
- lockView: true,
101
- resize: true,
102
- escClosable: true
103
- },
104
- drawerOptions: {
105
- mask: true,
106
- lockView: true,
107
- escClosable: true,
108
- resize: true
109
- }
110
- },
111
- sortConfig: {
112
- // remote: false,
113
- // trigger: 'default',
114
- // orders: ['asc', 'desc', null],
115
- // sortMethod: null,
116
- showIcon: true,
117
- allowClear: true,
118
- allowBtn: true,
119
- iconLayout: 'vertical'
120
- },
121
- filterConfig: {
122
- // remote: false,
123
- // filterMethod: null,
124
- // destroyOnClose: false,
125
- // isEvery: false,
126
- showIcon: true
127
- },
128
- treeConfig: {
129
- rowField: 'id',
130
- parentField: 'parentId',
131
- childrenField: 'children',
132
- hasChildField: 'hasChild',
133
- mapChildrenField: '_X_ROW_CHILD',
134
- indent: 10,
135
- transform: true,
136
- iconOpen: 'vxe-icon-square-minus',
137
- iconClose: 'vxe-icon-square-plus',
138
- showIcon: true
139
- },
140
- expandConfig: {
141
- // trigger: 'default',
142
- showIcon: true,
143
- mode: 'fixed'
144
- },
145
- editConfig: {
146
- // mode: 'cell',
147
- showIcon: true,
148
- showAsterisk: true,
149
- autoFocus: true
150
- },
151
- importConfig: {
152
- _typeMaps: {
153
- csv: 1,
154
- html: 1,
155
- xml: 1,
156
- txt: 1
157
- }
158
- },
159
- exportConfig: {
160
- _typeMaps: {
161
- csv: 1,
162
- html: 1,
163
- xml: 1,
164
- txt: 1
165
- }
166
- },
167
- printConfig: {},
168
- mouseConfig: {
169
- extension: true
170
- },
171
- keyboardConfig: {
172
- isEsc: true
173
- },
174
- areaConfig: {
175
- autoClear: true,
176
- selectCellByHeader: true,
177
- selectCellByBody: true,
178
- extendDirection: {
179
- top: true,
180
- left: true,
181
- bottom: true,
182
- right: true
183
- }
184
- },
185
- clipConfig: {
186
- isCopy: true,
187
- isCut: true,
188
- isPaste: true
189
- },
190
- fnrConfig: {
191
- isFind: true,
192
- isReplace: true
193
- },
194
- virtualXConfig: {
195
- enabled: true,
196
- gt: 60,
197
- preSize: 0,
198
- oSize: 1
199
- },
200
- virtualYConfig: {
201
- enabled: true,
202
- gt: 100,
203
- preSize: 1,
204
- oSize: 2
205
- },
206
- scrollbarConfig: {
207
- // width: 0,
208
- // height: 0
209
- }
210
- },
211
- // export: {
212
- // types: {}
213
- // },
214
25
  grid: {
215
26
  // size: null,
216
27
  // zoomConfig: {
@@ -0,0 +1,88 @@
1
+ import {
2
+ VxeGrid,
3
+ VxeToolbar
4
+ } from 'vxe-table'
5
+ import {
6
+ VxeUI,
7
+ VxeTooltip
8
+ } from 'vxe-pc-ui'
9
+
10
+ import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element'
11
+ import '@vxe-ui/plugin-render-element/dist/style.css'
12
+ import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx'
13
+ import ExcelJS from 'exceljs'
14
+ import 'vxe-pc-ui/lib/style.css'
15
+ import '../css/vxeTableUI/all.scss'
16
+ // 导入默认的语言
17
+ import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
18
+
19
+ /**
20
+ * 局部初始化 vxe-table 插件与配置
21
+ */
22
+ export function initVxeTableInPage() {
23
+ // 设置语言
24
+ VxeUI.setI18n('zh-CN', zhCN)
25
+ VxeUI.setLanguage('zh-CN')
26
+
27
+ // 局部注册插件
28
+ VxeUI.use(VxeUIPluginRenderElement)
29
+ VxeUI.use(VxeUIPluginExportXLSX, { ExcelJS })
30
+
31
+ // 设置表格配置(可复制你在 VxeTableConfig.ts 中的配置)
32
+ VxeUI.setConfig({
33
+ grid: {
34
+ // size: null,
35
+ // zoomConfig: {
36
+ // escRestore: true
37
+ // },
38
+ formConfig: {
39
+ enabled: true
40
+ },
41
+ pagerConfig: {
42
+ enabled: true
43
+ // perfect: false
44
+ },
45
+ toolbarConfig: {
46
+ enabled: true
47
+ // perfect: false
48
+ },
49
+ proxyConfig: {
50
+ enabled: true,
51
+ autoLoad: true,
52
+ showResponseMsg: true,
53
+ showActiveMsg: true,
54
+ props: {
55
+ list: null,
56
+ result: 'result',
57
+ total: 'page.total',
58
+ message: 'message'
59
+ }
60
+ // beforeItem: null,
61
+ // beforeColumn: null,
62
+ // beforeQuery: null,
63
+ // afterQuery: null,
64
+ // beforeDelete: null,
65
+ // afterDelete: null,
66
+ // beforeSave: null,
67
+ // afterSave: null
68
+ }
69
+ },
70
+ toolbar: {
71
+ // size: null,
72
+ // import: {
73
+ // mode: 'covering'
74
+ // },
75
+ // export: {
76
+ // types: ['csv', 'html', 'xml', 'txt']
77
+ // },
78
+ // buttons: []
79
+ }
80
+ })
81
+ }
82
+
83
+ // 导出组件供子应用局部注册
84
+ export const components = {
85
+ VxeGrid,
86
+ VxeToolbar,
87
+ VxeTooltip
88
+ }