vxe-table 4.19.14 → 4.19.16
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/dist/all.esm.js +139 -35
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +7 -0
- package/es/locale/lang/de-DE.js +7 -0
- package/es/locale/lang/en-US.js +7 -0
- package/es/locale/lang/es-ES.js +7 -0
- package/es/locale/lang/fr-FR.js +7 -0
- package/es/locale/lang/hu-HU.js +7 -0
- package/es/locale/lang/hy-AM.js +7 -0
- package/es/locale/lang/id-ID.js +7 -0
- package/es/locale/lang/it-IT.js +7 -0
- package/es/locale/lang/ja-JP.js +7 -0
- package/es/locale/lang/ko-KR.js +7 -0
- package/es/locale/lang/ms-MY.js +7 -0
- package/es/locale/lang/nb-NO.js +7 -0
- package/es/locale/lang/pt-BR.js +7 -0
- package/es/locale/lang/ru-RU.js +7 -0
- package/es/locale/lang/th-TH.js +7 -0
- package/es/locale/lang/ug-CN.js +7 -0
- package/es/locale/lang/uk-UA.js +7 -0
- package/es/locale/lang/uz-UZ.js +7 -0
- package/es/locale/lang/vi-VN.js +7 -0
- package/es/locale/lang/zh-CHT.js +7 -0
- package/es/locale/lang/zh-CN.js +7 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/hook.js +22 -3
- package/es/table/render/index.js +46 -18
- package/es/table/src/header.js +6 -3
- package/es/table/src/table.js +56 -9
- package/es/table/style.css +10 -5
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +10 -5
- 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 +113 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +7 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +7 -0
- package/lib/locale/lang/de-DE.js +7 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +7 -0
- package/lib/locale/lang/en-US.js +7 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -0
- package/lib/locale/lang/es-ES.js +7 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +7 -0
- package/lib/locale/lang/fr-FR.js +7 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +7 -0
- package/lib/locale/lang/hu-HU.js +7 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +7 -0
- package/lib/locale/lang/hy-AM.js +7 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +7 -0
- package/lib/locale/lang/id-ID.js +7 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +7 -0
- package/lib/locale/lang/it-IT.js +7 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +7 -0
- package/lib/locale/lang/ja-JP.js +7 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -0
- package/lib/locale/lang/ko-KR.js +7 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +7 -0
- package/lib/locale/lang/ms-MY.js +7 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +7 -0
- package/lib/locale/lang/nb-NO.js +7 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +7 -0
- package/lib/locale/lang/pt-BR.js +7 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +7 -0
- package/lib/locale/lang/ru-RU.js +7 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +7 -0
- package/lib/locale/lang/th-TH.js +7 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +7 -0
- package/lib/locale/lang/ug-CN.js +7 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +7 -0
- package/lib/locale/lang/uk-UA.js +7 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +7 -0
- package/lib/locale/lang/uz-UZ.js +7 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +7 -0
- package/lib/locale/lang/vi-VN.js +7 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +7 -0
- package/lib/locale/lang/zh-CHT.js +7 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +7 -0
- package/lib/locale/lang/zh-CN.js +7 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/hook.js +26 -3
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +62 -18
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/header.js +7 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +9 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +10 -5
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- 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 +10 -5
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +7 -0
- package/packages/locale/lang/de-DE.ts +7 -0
- package/packages/locale/lang/en-US.ts +7 -0
- package/packages/locale/lang/es-ES.ts +7 -0
- package/packages/locale/lang/fr-FR.ts +7 -0
- package/packages/locale/lang/hu-HU.ts +7 -0
- package/packages/locale/lang/hy-AM.ts +7 -0
- package/packages/locale/lang/id-ID.ts +7 -0
- package/packages/locale/lang/it-IT.ts +7 -0
- package/packages/locale/lang/ja-JP.ts +7 -0
- package/packages/locale/lang/ko-KR.ts +7 -0
- package/packages/locale/lang/ms-MY.ts +7 -0
- package/packages/locale/lang/nb-NO.ts +7 -0
- package/packages/locale/lang/pt-BR.ts +7 -0
- package/packages/locale/lang/ru-RU.ts +7 -0
- package/packages/locale/lang/th-TH.ts +7 -0
- package/packages/locale/lang/ug-CN.ts +7 -0
- package/packages/locale/lang/uk-UA.ts +7 -0
- package/packages/locale/lang/uz-UZ.ts +7 -0
- package/packages/locale/lang/vi-VN.ts +7 -0
- package/packages/locale/lang/zh-CHT.ts +7 -0
- package/packages/locale/lang/zh-CN.ts +7 -0
- package/packages/table/module/export/hook.ts +23 -4
- package/packages/table/render/index.ts +46 -18
- package/packages/table/src/header.ts +6 -3
- package/packages/table/src/table.ts +57 -10
- package/styles/components/table.scss +8 -4
- /package/es/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
- /package/es/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
- /package/es/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
- /package/lib/{iconfont.1781257692019.ttf → iconfont.1781753820219.ttf} +0 -0
- /package/lib/{iconfont.1781257692019.woff → iconfont.1781753820219.woff} +0 -0
- /package/lib/{iconfont.1781257692019.woff2 → iconfont.1781753820219.woff2} +0 -0
|
@@ -30,7 +30,7 @@ import '../module/validator/hook'
|
|
|
30
30
|
import '../module/custom/hook'
|
|
31
31
|
import '../render'
|
|
32
32
|
|
|
33
|
-
import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType } from 'vxe-pc-ui'
|
|
33
|
+
import type { VxeTooltipInstance, VxeTabsConstructor, VxeTabsPrivateMethods, ValueOf, VxeComponentSlotType, VxeComponentStyleType, VxeModalConstructor, VxeModalMethods, VxeSplitterConstructor, VxeSplitterMethods } from 'vxe-pc-ui'
|
|
34
34
|
import type { VxeGridConstructor, VxeGridPrivateMethods, VxeTableConstructor, VxeTablePropTypes, VxeToolbarConstructor, TablePrivateMethods, VxeTablePrivateRef, VxeTablePrivateComputed, VxeTablePrivateMethods, TableMethods, VxeTableMethods, VxeTableDefines, VxeTableEmits, VxeTableProps, VxeColumnPropTypes, VxeTableCustomPanelConstructor } from '../../../types'
|
|
35
35
|
|
|
36
36
|
const { getConfig, getIcon, getI18n, renderer, formats, createEvent, globalResize, interceptor, hooks, globalEvents, GLOBAL_EVENT_KEYS, useFns, renderEmptyElement } = VxeUI
|
|
@@ -62,8 +62,10 @@ export default defineVxeComponent({
|
|
|
62
62
|
const VxeUILoadingComponent = VxeUI.getComponent('VxeLoading')
|
|
63
63
|
const VxeUITooltipComponent = VxeUI.getComponent('VxeTooltip')
|
|
64
64
|
|
|
65
|
+
const $xeModal = inject<(VxeModalConstructor & VxeModalMethods) | null>('$xeModal', null)
|
|
65
66
|
const $xeTabs = inject<(VxeTabsConstructor & VxeTabsPrivateMethods) | null>('$xeTabs', null)
|
|
66
67
|
const $xeParentTable = inject<(VxeTableConstructor & VxeTablePrivateMethods) | null>('$xeTable', null)
|
|
68
|
+
const $xeSplitter = inject<(VxeSplitterConstructor & VxeSplitterMethods) | null>('$xeSplitter', null)
|
|
67
69
|
const $xeGrid = inject<(VxeGridConstructor & VxeGridPrivateMethods) | null>('$xeGrid', null)
|
|
68
70
|
const $xeGantt = inject<VxeTableDefines.InjectGanttType | null>('$xeGantt', null)
|
|
69
71
|
const $xeGGWrapper = $xeGrid || $xeGantt
|
|
@@ -786,6 +788,18 @@ export default defineVxeComponent({
|
|
|
786
788
|
return []
|
|
787
789
|
})
|
|
788
790
|
|
|
791
|
+
const combineTabsResizeFlag = computed(() => {
|
|
792
|
+
return $xeTabs ? $xeTabs.reactData.resizeFlag : null
|
|
793
|
+
})
|
|
794
|
+
|
|
795
|
+
const combineModalResizeFlag = computed(() => {
|
|
796
|
+
return $xeModal ? $xeModal.reactData.resizeFlag : null
|
|
797
|
+
})
|
|
798
|
+
|
|
799
|
+
const combineSplitterResizeFlag = computed(() => {
|
|
800
|
+
return $xeSplitter ? $xeSplitter.reactData.resizeFlag : null
|
|
801
|
+
})
|
|
802
|
+
|
|
789
803
|
const refMaps: VxeTablePrivateRef = {
|
|
790
804
|
refElem,
|
|
791
805
|
refTooltip,
|
|
@@ -9249,11 +9263,36 @@ export default defineVxeComponent({
|
|
|
9249
9263
|
const { tooltipStore } = reactData
|
|
9250
9264
|
const { column, row } = params
|
|
9251
9265
|
const { showAll, contentMethod } = tipOpts
|
|
9252
|
-
const
|
|
9253
|
-
const useCustom = contentMethod && !XEUtils.eqNull(customContent)
|
|
9254
|
-
const content = useCustom ? customContent : XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim()
|
|
9266
|
+
const cellText = XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim()
|
|
9255
9267
|
const isOver = tipOverEl.scrollWidth > tipOverEl.clientWidth
|
|
9256
|
-
|
|
9268
|
+
let isShow = false
|
|
9269
|
+
let customContent: any = null
|
|
9270
|
+
let content = ''
|
|
9271
|
+
if (contentMethod) {
|
|
9272
|
+
customContent = contentMethod(params)
|
|
9273
|
+
}
|
|
9274
|
+
// 是否全部展示
|
|
9275
|
+
if (showAll) {
|
|
9276
|
+
// 如果为 null 默认显示
|
|
9277
|
+
if (XEUtils.eqNull(customContent)) {
|
|
9278
|
+
isShow = true
|
|
9279
|
+
content = cellText
|
|
9280
|
+
} else if (customContent !== '' && customContent !== false) {
|
|
9281
|
+
// 如果为 '' | false 则不显示
|
|
9282
|
+
isShow = true
|
|
9283
|
+
content = '' + customContent
|
|
9284
|
+
}
|
|
9285
|
+
} else {
|
|
9286
|
+
// 如果为 null 使用默认逻辑
|
|
9287
|
+
if (XEUtils.eqNull(customContent)) {
|
|
9288
|
+
isShow = isOver
|
|
9289
|
+
} else if (customContent !== '' && customContent !== false) {
|
|
9290
|
+
// 如果为 '' | false 则不显示
|
|
9291
|
+
isShow = true
|
|
9292
|
+
}
|
|
9293
|
+
content = cellText
|
|
9294
|
+
}
|
|
9295
|
+
if (isShow && content) {
|
|
9257
9296
|
const tipContent = formatText(content)
|
|
9258
9297
|
Object.assign(tooltipStore, {
|
|
9259
9298
|
row,
|
|
@@ -14382,11 +14421,19 @@ export default defineVxeComponent({
|
|
|
14382
14421
|
}
|
|
14383
14422
|
})
|
|
14384
14423
|
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14424
|
+
const layoutReFlag = ref(0)
|
|
14425
|
+
watch(combineTabsResizeFlag, () => {
|
|
14426
|
+
layoutReFlag.value++
|
|
14427
|
+
})
|
|
14428
|
+
watch(combineModalResizeFlag, () => {
|
|
14429
|
+
layoutReFlag.value++
|
|
14430
|
+
})
|
|
14431
|
+
watch(combineSplitterResizeFlag, () => {
|
|
14432
|
+
layoutReFlag.value++
|
|
14433
|
+
})
|
|
14434
|
+
watch(layoutReFlag, () => {
|
|
14435
|
+
handleGlobalResizeEvent()
|
|
14436
|
+
})
|
|
14390
14437
|
|
|
14391
14438
|
handleKeyField()
|
|
14392
14439
|
|
|
@@ -213,7 +213,8 @@ $btnThemeList: (
|
|
|
213
213
|
.vxe-date-picker,
|
|
214
214
|
.vxe-date-range-picker,
|
|
215
215
|
.vxe-number-input,
|
|
216
|
-
.vxe-ico-picker
|
|
216
|
+
.vxe-ico-picker,
|
|
217
|
+
.vxe-cascader {
|
|
217
218
|
width: 100%;
|
|
218
219
|
}
|
|
219
220
|
}
|
|
@@ -236,7 +237,8 @@ $btnThemeList: (
|
|
|
236
237
|
& > .vxe-date-picker,
|
|
237
238
|
& > .vxe-date-range-picker,
|
|
238
239
|
& > .vxe-number-input,
|
|
239
|
-
& > .vxe-ico-picker
|
|
240
|
+
& > .vxe-ico-picker,
|
|
241
|
+
.vxe-cascader {
|
|
240
242
|
width: 100%;
|
|
241
243
|
}
|
|
242
244
|
& > .vxe-row-group--tree-node,
|
|
@@ -251,7 +253,8 @@ $btnThemeList: (
|
|
|
251
253
|
.vxe-date-picker,
|
|
252
254
|
.vxe-date-range-picker,
|
|
253
255
|
.vxe-number-input,
|
|
254
|
-
.vxe-ico-picker
|
|
256
|
+
.vxe-ico-picker,
|
|
257
|
+
.vxe-cascader {
|
|
255
258
|
width: 100%;
|
|
256
259
|
}
|
|
257
260
|
}
|
|
@@ -272,7 +275,8 @@ $btnThemeList: (
|
|
|
272
275
|
& > .vxe-date-picker,
|
|
273
276
|
& > .vxe-date-range-picker,
|
|
274
277
|
& > .vxe-number-input,
|
|
275
|
-
& > .vxe-ico-picker
|
|
278
|
+
& > .vxe-ico-picker,
|
|
279
|
+
& > .vxe-cascader {
|
|
276
280
|
width: 100%;
|
|
277
281
|
}
|
|
278
282
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|