adtec-core-package 1.2.9 → 1.3.1

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.9",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -36,6 +36,7 @@
36
36
  "vue-focus-lock": "^3.0.0",
37
37
  "vue-img-viewr": "2.0.11",
38
38
  "vue-router": "^4.5.0",
39
+ "vxe-pc-ui": "4.5.25",
39
40
  "vxe-table": "4.13.5",
40
41
  "wujie-vue3": "^1.0.24",
41
42
  "xlsx-js-style": "^1.2.0"
@@ -1,15 +1,20 @@
1
1
  import {
2
- VxeUI,
3
2
  VxeTable,
4
3
  VxeColumn,
5
4
  VxeColgroup,
6
5
  VxeGrid,
7
6
  VxeToolbar
8
7
  } from 'vxe-table'
8
+ import {
9
+ VxeUI,
10
+ VxeTooltip
11
+ } from 'vxe-pc-ui'
9
12
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element'
10
13
  import '@vxe-ui/plugin-render-element/dist/style.css'
14
+ import 'vxe-pc-ui/styles/cssvar.scss'
11
15
  // 导入主题变量,也可以重写主题变量
12
16
  import 'vxe-table/styles/cssvar.scss'
17
+ import 'vxe-pc-ui/lib/style.css'
13
18
  import '../css/vxeTableUI/all.scss'
14
19
  // 导入默认的语言
15
20
  import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
@@ -23,40 +28,37 @@ VxeUI.setConfig({
23
28
  // version: 1, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
24
29
  table: {
25
30
  showHeader: true,
26
- keepSource:true,
31
+ keepSource: true,
27
32
  autoResize: true,
28
- height: 'auto',
29
- showOverflow: 'title',
30
- showHeaderOverflow: 'title',
31
- showFooterOverflow: 'title',
32
- cellConfig:{
33
- height: 40,
34
- },
35
- headerCellConfig:{
36
- height:40
33
+ height: '100%',
34
+ showOverflow: true,
35
+ showHeaderOverflow: true,
36
+ showFooterOverflow: true,
37
+ cellConfig: {},
38
+ headerCellConfig: {
39
+ height: 41
37
40
  },
38
41
  resizeConfig: {
39
42
  refreshDelay: 20
40
43
  },
41
44
  resizableConfig: {
42
45
  dragMode: 'auto',
43
- showDragTip: true,
46
+ showDragTip: false,
44
47
  isSyncAutoHeight: true,
45
48
  isSyncAutoWidth: true,
46
49
  minHeight: 18
47
50
  },
48
51
  columnDragConfig: {
49
52
  showIcon: true,
50
- showGuidesStatus: true,
51
- showDragTip: true
53
+ showGuidesStatus: false,
54
+ showDragTip: false
52
55
  },
53
56
  checkboxConfig: {
57
+ showHeader:true,
54
58
  // trigger: 'default',
55
- strict: true
56
- },
57
- tooltipConfig: {
58
- theme: 'light',
59
- enterable: true
59
+ strict: true,
60
+ highlight: true,
61
+ range: true,
60
62
  },
61
63
  validConfig: {
62
64
  showMessage: true,
@@ -67,7 +69,15 @@ VxeUI.setConfig({
67
69
  theme: 'beautify'
68
70
  },
69
71
  columnConfig: {
70
- maxFixedSize: 4
72
+ maxFixedSize: 4,
73
+ resizable: true,
74
+ },
75
+ tooltipConfig: {
76
+ enterable: true,
77
+ theme: 'light'
78
+ },
79
+ rowConfig: {
80
+ isCurrent: true,
71
81
  },
72
82
  footerCellConfig: {
73
83
  height: 'unset'
@@ -122,7 +132,7 @@ VxeUI.setConfig({
122
132
  childrenField: 'children',
123
133
  hasChildField: 'hasChild',
124
134
  mapChildrenField: '_X_ROW_CHILD',
125
- indent: 20,
135
+ indent: 10,
126
136
  transform: true,
127
137
  iconOpen: 'vxe-icon-square-minus',
128
138
  iconClose: 'vxe-icon-square-plus',
@@ -155,8 +165,7 @@ VxeUI.setConfig({
155
165
  txt: 1
156
166
  }
157
167
  },
158
- printConfig: {
159
- },
168
+ printConfig: {},
160
169
  mouseConfig: {
161
170
  extension: true
162
171
  },
@@ -251,16 +260,19 @@ VxeUI.setConfig({
251
260
  // buttons: []
252
261
  }
253
262
  })
263
+
254
264
  // 可选组件
255
- function lazyVxeTable (app:import("vue").App) {
265
+ function lazyVxeTable(app: import("vue").App) {
266
+ app.use(VxeTooltip)
256
267
  app.use(VxeTable)
257
268
  app.use(VxeColumn)
258
269
  app.use(VxeColgroup)
259
270
  app.use(VxeGrid)
260
271
  app.use(VxeToolbar)
261
272
  }
273
+
262
274
  export default {
263
- install (app:import("vue").App) {
275
+ install(app: import("vue").App) {
264
276
  // 默认组件
265
277
  lazyVxeTable(app)
266
278
  }
@@ -6,3 +6,4 @@
6
6
  @use './components/grid.scss';
7
7
  @use './components/toolbar.scss';
8
8
  @use './components/icon.scss';
9
+ @use './components/iconTable.scss';