vxe-table 4.7.83 → 4.7.84
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/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +10 -0
- package/es/table/src/table.js +227 -227
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.umd.js +255 -237
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +15 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/table.js +232 -232
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -2
- 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 +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/render/index.ts +14 -0
- package/packages/table/src/table.ts +233 -233
- package/styles/components/table.scss +5 -1
- /package/es/{iconfont.1727355554097.ttf → iconfont.1727430214486.ttf} +0 -0
- /package/es/{iconfont.1727355554097.woff → iconfont.1727430214486.woff} +0 -0
- /package/es/{iconfont.1727355554097.woff2 → iconfont.1727430214486.woff2} +0 -0
- /package/lib/{iconfont.1727355554097.ttf → iconfont.1727430214486.ttf} +0 -0
- /package/lib/{iconfont.1727355554097.woff → iconfont.1727430214486.woff} +0 -0
- /package/lib/{iconfont.1727355554097.woff2 → iconfont.1727430214486.woff2} +0 -0
|
@@ -6625,6 +6625,237 @@ export default defineComponent({
|
|
|
6625
6625
|
}
|
|
6626
6626
|
}
|
|
6627
6627
|
|
|
6628
|
+
const renderVN = () => {
|
|
6629
|
+
const { loading, stripe, showHeader, height, treeConfig, mouseConfig, showFooter, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, editRules } = props
|
|
6630
|
+
const { isCalcColumn, isGroup, overflowX, overflowY, scrollXLoad, scrollYLoad, scrollbarHeight, tableData, tableColumn, tableGroupColumn, footerTableData, initStore, columnStore, filterStore, customStore, tooltipStore } = reactData
|
|
6631
|
+
const { leftList, rightList } = columnStore
|
|
6632
|
+
const loadingSlot = slots.loading
|
|
6633
|
+
const tipConfig = computeTipConfig.value
|
|
6634
|
+
const validOpts = computeValidOpts.value
|
|
6635
|
+
const checkboxOpts = computeCheckboxOpts.value
|
|
6636
|
+
const treeOpts = computeTreeOpts.value
|
|
6637
|
+
const rowOpts = computeRowOpts.value
|
|
6638
|
+
const columnOpts = computeColumnOpts.value
|
|
6639
|
+
const vSize = computeSize.value
|
|
6640
|
+
const tableBorder = computeTableBorder.value
|
|
6641
|
+
const mouseOpts = computeMouseOpts.value
|
|
6642
|
+
const validTipOpts = computeValidTipOpts.value
|
|
6643
|
+
const loadingOpts = computeLoadingOpts.value
|
|
6644
|
+
const isMenu = computeIsMenu.value
|
|
6645
|
+
const currLoading = reactData._isLoading || loading
|
|
6646
|
+
return h('div', {
|
|
6647
|
+
ref: refElem,
|
|
6648
|
+
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
6649
|
+
[`size--${vSize}`]: vSize,
|
|
6650
|
+
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
6651
|
+
'vxe-editable': !!editConfig,
|
|
6652
|
+
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete',
|
|
6653
|
+
'cell--highlight': highlightCell,
|
|
6654
|
+
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
6655
|
+
'cell--area': mouseConfig && mouseOpts.area,
|
|
6656
|
+
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
6657
|
+
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
6658
|
+
'checkbox--range': checkboxOpts.range,
|
|
6659
|
+
'column--calc': isCalcColumn,
|
|
6660
|
+
'is--header': showHeader,
|
|
6661
|
+
'is--footer': showFooter,
|
|
6662
|
+
'is--group': isGroup,
|
|
6663
|
+
'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
6664
|
+
'is--fixed-left': leftList.length,
|
|
6665
|
+
'is--fixed-right': rightList.length,
|
|
6666
|
+
'is--animat': !!props.animat,
|
|
6667
|
+
'is--padding': props.padding,
|
|
6668
|
+
'is--round': props.round,
|
|
6669
|
+
'is--stripe': !treeConfig && stripe,
|
|
6670
|
+
'is--loading': currLoading,
|
|
6671
|
+
'is--empty': !currLoading && !tableData.length,
|
|
6672
|
+
'is--scroll-y': overflowY,
|
|
6673
|
+
'is--scroll-x': overflowX,
|
|
6674
|
+
'is--virtual-x': scrollXLoad,
|
|
6675
|
+
'is--virtual-y': scrollYLoad
|
|
6676
|
+
}],
|
|
6677
|
+
spellcheck: false,
|
|
6678
|
+
onKeydown: keydownEvent
|
|
6679
|
+
}, [
|
|
6680
|
+
/**
|
|
6681
|
+
* 隐藏列
|
|
6682
|
+
*/
|
|
6683
|
+
h('div', {
|
|
6684
|
+
class: 'vxe-table-slots'
|
|
6685
|
+
}, slots.default ? slots.default({}) : []),
|
|
6686
|
+
h('div', {
|
|
6687
|
+
class: 'vxe-table--render-wrapper'
|
|
6688
|
+
}, [
|
|
6689
|
+
h('div', {
|
|
6690
|
+
class: 'vxe-table--main-wrapper'
|
|
6691
|
+
}, [
|
|
6692
|
+
/**
|
|
6693
|
+
* 表头
|
|
6694
|
+
*/
|
|
6695
|
+
showHeader
|
|
6696
|
+
? h(TableHeaderComponent, {
|
|
6697
|
+
ref: refTableHeader,
|
|
6698
|
+
tableData,
|
|
6699
|
+
tableColumn,
|
|
6700
|
+
tableGroupColumn
|
|
6701
|
+
})
|
|
6702
|
+
: createCommentVNode(),
|
|
6703
|
+
/**
|
|
6704
|
+
* 表体
|
|
6705
|
+
*/
|
|
6706
|
+
h(TableBodyComponent, {
|
|
6707
|
+
ref: refTableBody,
|
|
6708
|
+
tableData,
|
|
6709
|
+
tableColumn
|
|
6710
|
+
}),
|
|
6711
|
+
/**
|
|
6712
|
+
* 表尾
|
|
6713
|
+
*/
|
|
6714
|
+
showFooter
|
|
6715
|
+
? h(TableFooterComponent, {
|
|
6716
|
+
ref: refTableFooter,
|
|
6717
|
+
footerTableData,
|
|
6718
|
+
tableColumn
|
|
6719
|
+
})
|
|
6720
|
+
: createCommentVNode()
|
|
6721
|
+
]),
|
|
6722
|
+
h('div', {
|
|
6723
|
+
class: 'vxe-table--fixed-wrapper'
|
|
6724
|
+
}, [
|
|
6725
|
+
/**
|
|
6726
|
+
* 左侧固定区域
|
|
6727
|
+
*/
|
|
6728
|
+
leftList && leftList.length && overflowX ? renderFixed('left') : createCommentVNode(),
|
|
6729
|
+
/**
|
|
6730
|
+
* 右侧固定区域
|
|
6731
|
+
*/
|
|
6732
|
+
rightList && rightList.length && overflowX ? renderFixed('right') : createCommentVNode()
|
|
6733
|
+
])
|
|
6734
|
+
]),
|
|
6735
|
+
/**
|
|
6736
|
+
* 空数据
|
|
6737
|
+
*/
|
|
6738
|
+
h('div', {
|
|
6739
|
+
ref: refEmptyPlaceholder,
|
|
6740
|
+
class: 'vxe-table--empty-placeholder'
|
|
6741
|
+
}, [
|
|
6742
|
+
h('div', {
|
|
6743
|
+
class: 'vxe-table--empty-content'
|
|
6744
|
+
}, renderEmptyContenet())
|
|
6745
|
+
]),
|
|
6746
|
+
/**
|
|
6747
|
+
* 边框线
|
|
6748
|
+
*/
|
|
6749
|
+
h('div', {
|
|
6750
|
+
class: 'vxe-table--border-line'
|
|
6751
|
+
}),
|
|
6752
|
+
/**
|
|
6753
|
+
* 列宽线
|
|
6754
|
+
*/
|
|
6755
|
+
h('div', {
|
|
6756
|
+
ref: refCellResizeBar,
|
|
6757
|
+
class: 'vxe-table--resizable-bar',
|
|
6758
|
+
style: overflowX
|
|
6759
|
+
? {
|
|
6760
|
+
'padding-bottom': `${scrollbarHeight}px`
|
|
6761
|
+
}
|
|
6762
|
+
: null
|
|
6763
|
+
}),
|
|
6764
|
+
/**
|
|
6765
|
+
* 加载中
|
|
6766
|
+
*/
|
|
6767
|
+
VxeUILoadingComponent
|
|
6768
|
+
? h(VxeUILoadingComponent, {
|
|
6769
|
+
class: 'vxe-table--loading',
|
|
6770
|
+
modelValue: currLoading,
|
|
6771
|
+
icon: loadingOpts.icon,
|
|
6772
|
+
text: loadingOpts.text
|
|
6773
|
+
}, loadingSlot
|
|
6774
|
+
? {
|
|
6775
|
+
default: () => loadingSlot({ $table: $xeTable, $grid: $xeGrid })
|
|
6776
|
+
}
|
|
6777
|
+
: {})
|
|
6778
|
+
: createCommentVNode(),
|
|
6779
|
+
/**
|
|
6780
|
+
* 自定义列
|
|
6781
|
+
*/
|
|
6782
|
+
initStore.custom
|
|
6783
|
+
? h(TableCustomPanelComponent, {
|
|
6784
|
+
ref: refTableCustom,
|
|
6785
|
+
customStore
|
|
6786
|
+
})
|
|
6787
|
+
: createCommentVNode(),
|
|
6788
|
+
/**
|
|
6789
|
+
* 筛选
|
|
6790
|
+
*/
|
|
6791
|
+
initStore.filter
|
|
6792
|
+
? h(TableFilterPanelComponent, {
|
|
6793
|
+
ref: refTableFilter,
|
|
6794
|
+
filterStore
|
|
6795
|
+
})
|
|
6796
|
+
: createCommentVNode(),
|
|
6797
|
+
/**
|
|
6798
|
+
* 导入
|
|
6799
|
+
*/
|
|
6800
|
+
initStore.import && props.importConfig
|
|
6801
|
+
? h(TableImportPanelComponent, {
|
|
6802
|
+
defaultOptions: reactData.importParams,
|
|
6803
|
+
storeData: reactData.importStore
|
|
6804
|
+
})
|
|
6805
|
+
: createCommentVNode(),
|
|
6806
|
+
/**
|
|
6807
|
+
* 导出
|
|
6808
|
+
*/
|
|
6809
|
+
initStore.export && (props.exportConfig || props.printConfig)
|
|
6810
|
+
? h(TableExportPanelComponent, {
|
|
6811
|
+
defaultOptions: reactData.exportParams,
|
|
6812
|
+
storeData: reactData.exportStore
|
|
6813
|
+
})
|
|
6814
|
+
: createCommentVNode(),
|
|
6815
|
+
/**
|
|
6816
|
+
* 快捷菜单
|
|
6817
|
+
*/
|
|
6818
|
+
isMenu
|
|
6819
|
+
? h(TableMenuPanelComponent, {
|
|
6820
|
+
ref: refTableMenu
|
|
6821
|
+
})
|
|
6822
|
+
: createCommentVNode(),
|
|
6823
|
+
/**
|
|
6824
|
+
* 提示相关
|
|
6825
|
+
*/
|
|
6826
|
+
VxeUITooltipComponent
|
|
6827
|
+
? h('div', {}, [
|
|
6828
|
+
/**
|
|
6829
|
+
* 通用提示
|
|
6830
|
+
*/
|
|
6831
|
+
h(VxeUITooltipComponent, {
|
|
6832
|
+
ref: refCommTooltip,
|
|
6833
|
+
isArrow: false,
|
|
6834
|
+
enterable: false
|
|
6835
|
+
}),
|
|
6836
|
+
/**
|
|
6837
|
+
* 工具提示
|
|
6838
|
+
*/
|
|
6839
|
+
h(VxeUITooltipComponent, Object.assign({
|
|
6840
|
+
ref: refTooltip
|
|
6841
|
+
}, tipConfig, tooltipStore.currOpts)),
|
|
6842
|
+
/**
|
|
6843
|
+
* 校验提示
|
|
6844
|
+
*/
|
|
6845
|
+
props.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip')
|
|
6846
|
+
? h(VxeUITooltipComponent, {
|
|
6847
|
+
ref: refValidTooltip,
|
|
6848
|
+
class: [{
|
|
6849
|
+
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete'
|
|
6850
|
+
}, 'vxe-table--valid-error'],
|
|
6851
|
+
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {}) as any
|
|
6852
|
+
})
|
|
6853
|
+
: createCommentVNode()
|
|
6854
|
+
])
|
|
6855
|
+
: createCommentVNode()
|
|
6856
|
+
])
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6628
6859
|
const dataFlag = ref(0)
|
|
6629
6860
|
watch(() => props.data ? props.data.length : -1, () => {
|
|
6630
6861
|
dataFlag.value++
|
|
@@ -7006,239 +7237,6 @@ export default defineComponent({
|
|
|
7006
7237
|
tablePrivateMethods.preventEvent(null, 'unmounted', { $table: $xeTable })
|
|
7007
7238
|
})
|
|
7008
7239
|
|
|
7009
|
-
const renderVN = () => {
|
|
7010
|
-
const { loading, stripe, showHeader, height, treeConfig, mouseConfig, showFooter, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, editRules } = props
|
|
7011
|
-
const { isCalcColumn, isGroup, overflowX, overflowY, scrollXLoad, scrollYLoad, scrollbarHeight, tableData, tableColumn, tableGroupColumn, footerTableData, initStore, columnStore, filterStore, customStore, tooltipStore } = reactData
|
|
7012
|
-
const { leftList, rightList } = columnStore
|
|
7013
|
-
const loadingSlot = slots.loading
|
|
7014
|
-
const tipConfig = computeTipConfig.value
|
|
7015
|
-
const validOpts = computeValidOpts.value
|
|
7016
|
-
const checkboxOpts = computeCheckboxOpts.value
|
|
7017
|
-
const treeOpts = computeTreeOpts.value
|
|
7018
|
-
const rowOpts = computeRowOpts.value
|
|
7019
|
-
const columnOpts = computeColumnOpts.value
|
|
7020
|
-
const vSize = computeSize.value
|
|
7021
|
-
const tableBorder = computeTableBorder.value
|
|
7022
|
-
const mouseOpts = computeMouseOpts.value
|
|
7023
|
-
const validTipOpts = computeValidTipOpts.value
|
|
7024
|
-
const loadingOpts = computeLoadingOpts.value
|
|
7025
|
-
const isMenu = computeIsMenu.value
|
|
7026
|
-
const currLoading = reactData._isLoading || loading
|
|
7027
|
-
return h('div', {
|
|
7028
|
-
ref: refElem,
|
|
7029
|
-
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
7030
|
-
[`size--${vSize}`]: vSize,
|
|
7031
|
-
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
7032
|
-
'vxe-editable': !!editConfig,
|
|
7033
|
-
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete',
|
|
7034
|
-
'cell--highlight': highlightCell,
|
|
7035
|
-
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
7036
|
-
'cell--area': mouseConfig && mouseOpts.area,
|
|
7037
|
-
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
7038
|
-
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
7039
|
-
'checkbox--range': checkboxOpts.range,
|
|
7040
|
-
'column--calc': isCalcColumn,
|
|
7041
|
-
'is--header': showHeader,
|
|
7042
|
-
'is--footer': showFooter,
|
|
7043
|
-
'is--group': isGroup,
|
|
7044
|
-
'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
7045
|
-
'is--fixed-left': leftList.length,
|
|
7046
|
-
'is--fixed-right': rightList.length,
|
|
7047
|
-
'is--animat': !!props.animat,
|
|
7048
|
-
'is--padding': props.padding,
|
|
7049
|
-
'is--round': props.round,
|
|
7050
|
-
'is--stripe': !treeConfig && stripe,
|
|
7051
|
-
'is--loading': currLoading,
|
|
7052
|
-
'is--empty': !currLoading && !tableData.length,
|
|
7053
|
-
'is--scroll-y': overflowY,
|
|
7054
|
-
'is--scroll-x': overflowX,
|
|
7055
|
-
'is--virtual-x': scrollXLoad,
|
|
7056
|
-
'is--virtual-y': scrollYLoad
|
|
7057
|
-
}],
|
|
7058
|
-
spellcheck: false,
|
|
7059
|
-
onKeydown: keydownEvent
|
|
7060
|
-
}, [
|
|
7061
|
-
/**
|
|
7062
|
-
* 隐藏列
|
|
7063
|
-
*/
|
|
7064
|
-
h('div', {
|
|
7065
|
-
class: 'vxe-table-slots'
|
|
7066
|
-
}, slots.default ? slots.default({}) : []),
|
|
7067
|
-
h('div', {
|
|
7068
|
-
class: 'vxe-table--render-wrapper'
|
|
7069
|
-
}, [
|
|
7070
|
-
h('div', {
|
|
7071
|
-
class: 'vxe-table--main-wrapper'
|
|
7072
|
-
}, [
|
|
7073
|
-
/**
|
|
7074
|
-
* 表头
|
|
7075
|
-
*/
|
|
7076
|
-
showHeader
|
|
7077
|
-
? h(TableHeaderComponent, {
|
|
7078
|
-
ref: refTableHeader,
|
|
7079
|
-
tableData,
|
|
7080
|
-
tableColumn,
|
|
7081
|
-
tableGroupColumn
|
|
7082
|
-
})
|
|
7083
|
-
: createCommentVNode(),
|
|
7084
|
-
/**
|
|
7085
|
-
* 表体
|
|
7086
|
-
*/
|
|
7087
|
-
h(TableBodyComponent, {
|
|
7088
|
-
ref: refTableBody,
|
|
7089
|
-
tableData,
|
|
7090
|
-
tableColumn
|
|
7091
|
-
}),
|
|
7092
|
-
/**
|
|
7093
|
-
* 表尾
|
|
7094
|
-
*/
|
|
7095
|
-
showFooter
|
|
7096
|
-
? h(TableFooterComponent, {
|
|
7097
|
-
ref: refTableFooter,
|
|
7098
|
-
footerTableData,
|
|
7099
|
-
tableColumn
|
|
7100
|
-
})
|
|
7101
|
-
: createCommentVNode()
|
|
7102
|
-
]),
|
|
7103
|
-
h('div', {
|
|
7104
|
-
class: 'vxe-table--fixed-wrapper'
|
|
7105
|
-
}, [
|
|
7106
|
-
/**
|
|
7107
|
-
* 左侧固定区域
|
|
7108
|
-
*/
|
|
7109
|
-
leftList && leftList.length && overflowX ? renderFixed('left') : createCommentVNode(),
|
|
7110
|
-
/**
|
|
7111
|
-
* 右侧固定区域
|
|
7112
|
-
*/
|
|
7113
|
-
rightList && rightList.length && overflowX ? renderFixed('right') : createCommentVNode()
|
|
7114
|
-
])
|
|
7115
|
-
]),
|
|
7116
|
-
/**
|
|
7117
|
-
* 空数据
|
|
7118
|
-
*/
|
|
7119
|
-
h('div', {
|
|
7120
|
-
ref: refEmptyPlaceholder,
|
|
7121
|
-
class: 'vxe-table--empty-placeholder'
|
|
7122
|
-
}, [
|
|
7123
|
-
h('div', {
|
|
7124
|
-
class: 'vxe-table--empty-content'
|
|
7125
|
-
}, renderEmptyContenet())
|
|
7126
|
-
]),
|
|
7127
|
-
/**
|
|
7128
|
-
* 边框线
|
|
7129
|
-
*/
|
|
7130
|
-
h('div', {
|
|
7131
|
-
class: 'vxe-table--border-line'
|
|
7132
|
-
}),
|
|
7133
|
-
/**
|
|
7134
|
-
* 列宽线
|
|
7135
|
-
*/
|
|
7136
|
-
h('div', {
|
|
7137
|
-
ref: refCellResizeBar,
|
|
7138
|
-
class: 'vxe-table--resizable-bar',
|
|
7139
|
-
style: overflowX
|
|
7140
|
-
? {
|
|
7141
|
-
'padding-bottom': `${scrollbarHeight}px`
|
|
7142
|
-
}
|
|
7143
|
-
: null
|
|
7144
|
-
}),
|
|
7145
|
-
/**
|
|
7146
|
-
* 加载中
|
|
7147
|
-
*/
|
|
7148
|
-
VxeUILoadingComponent
|
|
7149
|
-
? h(VxeUILoadingComponent, {
|
|
7150
|
-
class: 'vxe-table--loading',
|
|
7151
|
-
modelValue: currLoading,
|
|
7152
|
-
icon: loadingOpts.icon,
|
|
7153
|
-
text: loadingOpts.text
|
|
7154
|
-
}, loadingSlot
|
|
7155
|
-
? {
|
|
7156
|
-
default: () => loadingSlot({ $table: $xeTable, $grid: $xeGrid })
|
|
7157
|
-
}
|
|
7158
|
-
: {})
|
|
7159
|
-
: createCommentVNode(),
|
|
7160
|
-
/**
|
|
7161
|
-
* 自定义列
|
|
7162
|
-
*/
|
|
7163
|
-
initStore.custom
|
|
7164
|
-
? h(TableCustomPanelComponent, {
|
|
7165
|
-
ref: refTableCustom,
|
|
7166
|
-
customStore
|
|
7167
|
-
})
|
|
7168
|
-
: createCommentVNode(),
|
|
7169
|
-
/**
|
|
7170
|
-
* 筛选
|
|
7171
|
-
*/
|
|
7172
|
-
initStore.filter
|
|
7173
|
-
? h(TableFilterPanelComponent, {
|
|
7174
|
-
ref: refTableFilter,
|
|
7175
|
-
filterStore
|
|
7176
|
-
})
|
|
7177
|
-
: createCommentVNode(),
|
|
7178
|
-
/**
|
|
7179
|
-
* 导入
|
|
7180
|
-
*/
|
|
7181
|
-
initStore.import && props.importConfig
|
|
7182
|
-
? h(TableImportPanelComponent, {
|
|
7183
|
-
defaultOptions: reactData.importParams,
|
|
7184
|
-
storeData: reactData.importStore
|
|
7185
|
-
})
|
|
7186
|
-
: createCommentVNode(),
|
|
7187
|
-
/**
|
|
7188
|
-
* 导出
|
|
7189
|
-
*/
|
|
7190
|
-
initStore.export && (props.exportConfig || props.printConfig)
|
|
7191
|
-
? h(TableExportPanelComponent, {
|
|
7192
|
-
defaultOptions: reactData.exportParams,
|
|
7193
|
-
storeData: reactData.exportStore
|
|
7194
|
-
})
|
|
7195
|
-
: createCommentVNode(),
|
|
7196
|
-
/**
|
|
7197
|
-
* 快捷菜单
|
|
7198
|
-
*/
|
|
7199
|
-
isMenu
|
|
7200
|
-
? h(TableMenuPanelComponent, {
|
|
7201
|
-
ref: refTableMenu
|
|
7202
|
-
})
|
|
7203
|
-
: createCommentVNode(),
|
|
7204
|
-
/**
|
|
7205
|
-
* 提示相关
|
|
7206
|
-
*/
|
|
7207
|
-
VxeUITooltipComponent
|
|
7208
|
-
? h('div', {}, [
|
|
7209
|
-
/**
|
|
7210
|
-
* 通用提示
|
|
7211
|
-
*/
|
|
7212
|
-
h(VxeUITooltipComponent, {
|
|
7213
|
-
ref: refCommTooltip,
|
|
7214
|
-
isArrow: false,
|
|
7215
|
-
enterable: false
|
|
7216
|
-
}),
|
|
7217
|
-
/**
|
|
7218
|
-
* 工具提示
|
|
7219
|
-
*/
|
|
7220
|
-
h(VxeUITooltipComponent, Object.assign({
|
|
7221
|
-
ref: refTooltip
|
|
7222
|
-
}, tipConfig, tooltipStore.currOpts)),
|
|
7223
|
-
/**
|
|
7224
|
-
* 校验提示
|
|
7225
|
-
*/
|
|
7226
|
-
props.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip')
|
|
7227
|
-
? h(VxeUITooltipComponent, {
|
|
7228
|
-
ref: refValidTooltip,
|
|
7229
|
-
class: [{
|
|
7230
|
-
'old-cell-valid': editRules && getConfig().cellVaildMode === 'obsolete'
|
|
7231
|
-
}, 'vxe-table--valid-error'],
|
|
7232
|
-
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {}) as any
|
|
7233
|
-
})
|
|
7234
|
-
: createCommentVNode()
|
|
7235
|
-
])
|
|
7236
|
-
: createCommentVNode()
|
|
7237
|
-
])
|
|
7238
|
-
}
|
|
7239
|
-
|
|
7240
|
-
$xeTable.renderVN = renderVN
|
|
7241
|
-
|
|
7242
7240
|
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
7243
7241
|
nextTick(() => {
|
|
7244
7242
|
if (props.loading) {
|
|
@@ -7260,6 +7258,8 @@ export default defineComponent({
|
|
|
7260
7258
|
provide('$xeColgroup', null)
|
|
7261
7259
|
provide('$xeTable', $xeTable)
|
|
7262
7260
|
|
|
7261
|
+
$xeTable.renderVN = renderVN
|
|
7262
|
+
|
|
7263
7263
|
return $xeTable
|
|
7264
7264
|
},
|
|
7265
7265
|
render () {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|