vxe-table 4.10.8 → 4.10.10
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/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +66 -28
- package/es/table/style.css +23 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +5 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +23 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +48 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +42 -9
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +23 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +5 -3
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +23 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/src/table.ts +68 -28
- package/packages/ui/index.ts +4 -2
- package/styles/components/table.scss +21 -0
- /package/es/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
- /package/es/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
- /package/es/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
- /package/lib/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
- /package/lib/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
- /package/lib/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
|
@@ -255,6 +255,13 @@ export default defineComponent({
|
|
|
255
255
|
isFooter: false
|
|
256
256
|
},
|
|
257
257
|
|
|
258
|
+
rowHeightStore: {
|
|
259
|
+
default: 48,
|
|
260
|
+
medium: 44,
|
|
261
|
+
small: 40,
|
|
262
|
+
mini: 36
|
|
263
|
+
},
|
|
264
|
+
|
|
258
265
|
scrollVMLoading: false,
|
|
259
266
|
|
|
260
267
|
calcCellHeightFlag: 1,
|
|
@@ -357,6 +364,7 @@ export default defineComponent({
|
|
|
357
364
|
let tablePrivateMethods = {} as TablePrivateMethods
|
|
358
365
|
|
|
359
366
|
const refElem = ref() as Ref<HTMLDivElement>
|
|
367
|
+
const refVarElem = ref() as Ref<HTMLDivElement>
|
|
360
368
|
const refTooltip = ref() as Ref<VxeTooltipInstance>
|
|
361
369
|
const refCommTooltip = ref() as Ref<VxeTooltipInstance>
|
|
362
370
|
const refValidTooltip = ref() as Ref<VxeTooltipInstance>
|
|
@@ -473,12 +481,7 @@ export default defineComponent({
|
|
|
473
481
|
})
|
|
474
482
|
|
|
475
483
|
const computeRowHeightMaps = computed(() => {
|
|
476
|
-
return
|
|
477
|
-
default: 48,
|
|
478
|
-
medium: 44,
|
|
479
|
-
small: 40,
|
|
480
|
-
mini: 36
|
|
481
|
-
}
|
|
484
|
+
return reactData.rowHeightStore
|
|
482
485
|
})
|
|
483
486
|
|
|
484
487
|
const computeDefaultRowHeight = computed(() => {
|
|
@@ -9200,7 +9203,7 @@ export default defineComponent({
|
|
|
9200
9203
|
}
|
|
9201
9204
|
|
|
9202
9205
|
const renderDragTip = () => {
|
|
9203
|
-
const { dragRow } = reactData
|
|
9206
|
+
const { dragRow, dragCol } = reactData
|
|
9204
9207
|
const rowOpts = computeRowOpts.value
|
|
9205
9208
|
const columnOpts = computeColumnOpts.value
|
|
9206
9209
|
const rowDragOpts = computeRowDragOpts.value
|
|
@@ -9222,31 +9225,33 @@ export default defineComponent({
|
|
|
9222
9225
|
'is--guides': columnDragOpts.showGuidesStatus
|
|
9223
9226
|
}]
|
|
9224
9227
|
}),
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
h('div', {
|
|
9230
|
-
class: 'vxe-table--drag-sort-tip-wrapper'
|
|
9228
|
+
(dragRow && rowDragOpts.showDragTip) || (dragCol && columnDragOpts.showDragTip)
|
|
9229
|
+
? h('div', {
|
|
9230
|
+
ref: refDragTipElem,
|
|
9231
|
+
class: 'vxe-table--drag-sort-tip'
|
|
9231
9232
|
}, [
|
|
9232
9233
|
h('div', {
|
|
9233
|
-
class: 'vxe-table--drag-sort-tip-
|
|
9234
|
+
class: 'vxe-table--drag-sort-tip-wrapper'
|
|
9234
9235
|
}, [
|
|
9235
|
-
h('
|
|
9236
|
-
class:
|
|
9237
|
-
}
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9236
|
+
h('div', {
|
|
9237
|
+
class: 'vxe-table--drag-sort-tip-status'
|
|
9238
|
+
}, [
|
|
9239
|
+
h('span', {
|
|
9240
|
+
class: ['vxe-table--drag-sort-tip-normal-status', dragRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
|
|
9241
|
+
}),
|
|
9242
|
+
h('span', {
|
|
9243
|
+
class: ['vxe-table--drag-sort-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
|
|
9244
|
+
}),
|
|
9245
|
+
h('span', {
|
|
9246
|
+
class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
|
|
9247
|
+
})
|
|
9248
|
+
]),
|
|
9249
|
+
h('div', {
|
|
9250
|
+
class: 'vxe-table--drag-sort-tip-content'
|
|
9251
|
+
}, renderDragTipContents())
|
|
9252
|
+
])
|
|
9248
9253
|
])
|
|
9249
|
-
|
|
9254
|
+
: renderEmptyElement($xeTable)
|
|
9250
9255
|
])
|
|
9251
9256
|
}
|
|
9252
9257
|
return renderEmptyElement($xeTable)
|
|
@@ -9445,6 +9450,23 @@ export default defineComponent({
|
|
|
9445
9450
|
h('div', {
|
|
9446
9451
|
class: 'vxe-table-slots'
|
|
9447
9452
|
}, slots.default ? slots.default({}) : []),
|
|
9453
|
+
h('div', {
|
|
9454
|
+
ref: refVarElem,
|
|
9455
|
+
class: 'vxe-table-vars'
|
|
9456
|
+
}, [
|
|
9457
|
+
h('div', {
|
|
9458
|
+
class: 'vxe-table-var-default'
|
|
9459
|
+
}),
|
|
9460
|
+
h('div', {
|
|
9461
|
+
class: 'vxe-table-var-medium'
|
|
9462
|
+
}),
|
|
9463
|
+
h('div', {
|
|
9464
|
+
class: 'vxe-table-var-small'
|
|
9465
|
+
}),
|
|
9466
|
+
h('div', {
|
|
9467
|
+
class: 'vxe-table-var-mini'
|
|
9468
|
+
})
|
|
9469
|
+
]),
|
|
9448
9470
|
h('div', {
|
|
9449
9471
|
key: 'tw',
|
|
9450
9472
|
class: 'vxe-table--render-wrapper'
|
|
@@ -9808,10 +9830,28 @@ export default defineComponent({
|
|
|
9808
9830
|
})
|
|
9809
9831
|
|
|
9810
9832
|
onMounted(() => {
|
|
9833
|
+
const { rowHeightStore } = reactData
|
|
9834
|
+
const varEl = refVarElem.value
|
|
9811
9835
|
const columnOpts = computeColumnOpts.value
|
|
9812
9836
|
const rowOpts = computeRowOpts.value
|
|
9813
9837
|
const customOpts = computeCustomOpts.value
|
|
9814
9838
|
|
|
9839
|
+
if (varEl) {
|
|
9840
|
+
const [defEl, mediumEl, smallEl, miniEl] = varEl.children
|
|
9841
|
+
if (defEl) {
|
|
9842
|
+
rowHeightStore.default = defEl.clientHeight
|
|
9843
|
+
}
|
|
9844
|
+
if (mediumEl) {
|
|
9845
|
+
rowHeightStore.medium = mediumEl.clientHeight
|
|
9846
|
+
}
|
|
9847
|
+
if (smallEl) {
|
|
9848
|
+
rowHeightStore.small = smallEl.clientHeight
|
|
9849
|
+
}
|
|
9850
|
+
if (miniEl) {
|
|
9851
|
+
rowHeightStore.mini = miniEl.clientHeight
|
|
9852
|
+
}
|
|
9853
|
+
}
|
|
9854
|
+
|
|
9815
9855
|
if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
|
|
9816
9856
|
initTpImg()
|
|
9817
9857
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -52,12 +52,14 @@ VxeUI.setConfig({
|
|
|
52
52
|
rowDragConfig: {
|
|
53
53
|
showIcon: true,
|
|
54
54
|
animation: true,
|
|
55
|
-
showGuidesStatus: true
|
|
55
|
+
showGuidesStatus: true,
|
|
56
|
+
showDragTip: true
|
|
56
57
|
},
|
|
57
58
|
columnDragConfig: {
|
|
58
59
|
showIcon: true,
|
|
59
60
|
animation: true,
|
|
60
|
-
showGuidesStatus: true
|
|
61
|
+
showGuidesStatus: true,
|
|
62
|
+
showDragTip: true
|
|
61
63
|
},
|
|
62
64
|
checkboxConfig: {
|
|
63
65
|
// trigger: 'default',
|
|
@@ -7,6 +7,27 @@
|
|
|
7
7
|
display: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.vxe-table-vars {
|
|
11
|
+
height: 0;
|
|
12
|
+
width: 0;
|
|
13
|
+
visibility: hidden;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
user-select: none;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
.vxe-table-var-default {
|
|
18
|
+
height: var(--vxe-ui-table-row-height-default);
|
|
19
|
+
}
|
|
20
|
+
.vxe-table-var-medium {
|
|
21
|
+
height: var(--vxe-ui-table-row-height-medium);
|
|
22
|
+
}
|
|
23
|
+
.vxe-table-var-small {
|
|
24
|
+
height: var(--vxe-ui-table-row-height-small);
|
|
25
|
+
}
|
|
26
|
+
.vxe-table-var-mini {
|
|
27
|
+
height: var(--vxe-ui-table-row-height-mini);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
.vxe-table--print-frame {
|
|
11
32
|
position: fixed;
|
|
12
33
|
bottom: -100%;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|