vxe-table 4.8.5 → 4.8.7
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/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +32 -8
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/src/body.js +14 -8
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +69 -45
- package/es/table/style.css +25 -15
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +25 -15
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.umd.js +117 -54
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +35 -5
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/validator/hook.js +1 -1
- package/lib/table/module/validator/hook.min.js +1 -1
- package/lib/table/src/body.js +5 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/table.js +70 -40
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +25 -15
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -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 +25 -15
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/table/module/custom/panel.ts +35 -8
- package/packages/table/module/validator/hook.ts +1 -1
- package/packages/table/src/body.ts +14 -8
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +69 -45
- package/packages/ui/index.ts +2 -1
- package/styles/components/table-module/custom.scss +2 -1
- package/styles/components/table.scss +36 -26
- /package/es/{iconfont.1730971754265.ttf → iconfont.1731032736115.ttf} +0 -0
- /package/es/{iconfont.1730971754265.woff → iconfont.1731032736115.woff} +0 -0
- /package/es/{iconfont.1730971754265.woff2 → iconfont.1731032736115.woff2} +0 -0
- /package/lib/{iconfont.1730971754265.ttf → iconfont.1731032736115.ttf} +0 -0
- /package/lib/{iconfont.1730971754265.woff → iconfont.1731032736115.woff} +0 -0
- /package/lib/{iconfont.1730971754265.woff2 → iconfont.1731032736115.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1998,7 +1998,7 @@ function eqEmptyValue(cellValue) {
|
|
|
1998
1998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1999
1999
|
|
|
2000
2000
|
|
|
2001
|
-
const version = "4.8.
|
|
2001
|
+
const version = "4.8.7";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
2003
|
core_.VxeUI.tableVersion = version;
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
@@ -2050,7 +2050,8 @@ core_.VxeUI.setConfig({
|
|
|
2050
2050
|
autoClear: true,
|
|
2051
2051
|
autoPos: true,
|
|
2052
2052
|
message: 'inline',
|
|
2053
|
-
msgMode: 'single'
|
|
2053
|
+
msgMode: 'single',
|
|
2054
|
+
theme: 'normal'
|
|
2054
2055
|
},
|
|
2055
2056
|
columnConfig: {
|
|
2056
2057
|
maxFixedSize: 4
|
|
@@ -2388,7 +2389,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2388
2389
|
const {
|
|
2389
2390
|
log: log_log
|
|
2390
2391
|
} = core_.VxeUI;
|
|
2391
|
-
const log_version = `table v${"4.8.
|
|
2392
|
+
const log_version = `table v${"4.8.7"}`;
|
|
2392
2393
|
const warnLog = log_log.create('warn', log_version);
|
|
2393
2394
|
const errLog = log_log.create('error', log_version);
|
|
2394
2395
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5107,13 +5108,15 @@ const lineOffsetSizes = {
|
|
|
5107
5108
|
...errorValidItem
|
|
5108
5109
|
};
|
|
5109
5110
|
tdVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
5110
|
-
class: ['vxe-cell--valid-error-
|
|
5111
|
+
class: ['vxe-cell--valid-error-tip', getPropClass(validOpts.className, validParams)],
|
|
5111
5112
|
style: errRule && errRule.maxWidth ? {
|
|
5112
5113
|
width: `${errRule.maxWidth}px`
|
|
5113
5114
|
} : null
|
|
5114
|
-
},
|
|
5115
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
5116
|
+
class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || 'normal'}`
|
|
5117
|
+
}, [validSlot ? $xeTable.callSlot(validSlot, validParams) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
5115
5118
|
class: 'vxe-cell--valid-error-msg'
|
|
5116
|
-
}, errorValidItem.content)]));
|
|
5119
|
+
}, errorValidItem.content)]])]));
|
|
5117
5120
|
}
|
|
5118
5121
|
}
|
|
5119
5122
|
let cellHeight = '';
|
|
@@ -5892,7 +5895,7 @@ const header_renderType = 'header';
|
|
|
5892
5895
|
tableColumn
|
|
5893
5896
|
} = props;
|
|
5894
5897
|
const {
|
|
5895
|
-
resizable,
|
|
5898
|
+
resizable: allResizable,
|
|
5896
5899
|
border,
|
|
5897
5900
|
columnKey,
|
|
5898
5901
|
headerRowClassName,
|
|
@@ -6054,7 +6057,7 @@ const header_renderType = 'header';
|
|
|
6054
6057
|
/**
|
|
6055
6058
|
* 列宽拖动
|
|
6056
6059
|
*/
|
|
6057
|
-
!fixedHiddenColumn && !isColGroup && (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable ||
|
|
6060
|
+
!fixedHiddenColumn && !isColGroup && (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6058
6061
|
class: ['vxe-resizable', {
|
|
6059
6062
|
'is--line': !border || border === 'none'
|
|
6060
6063
|
}],
|
|
@@ -6720,17 +6723,19 @@ const {
|
|
|
6720
6723
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
6721
6724
|
const VxeUIDrawerComponent = core_.VxeUI.getComponent('VxeDrawer');
|
|
6722
6725
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
6723
|
-
const
|
|
6726
|
+
const VxeUINumberInputComponent = core_.VxeUI.getComponent('VxeNumberInput');
|
|
6724
6727
|
const VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
6725
6728
|
const VxeUIRadioGroupComponent = core_.VxeUI.getComponent('VxeRadioGroup');
|
|
6726
6729
|
const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', {});
|
|
6727
6730
|
const {
|
|
6731
|
+
props: tableProps,
|
|
6728
6732
|
reactData
|
|
6729
6733
|
} = $xeTable;
|
|
6730
6734
|
const {
|
|
6731
6735
|
computeCustomOpts,
|
|
6732
6736
|
computeColumnOpts,
|
|
6733
|
-
computeIsMaxFixedColumn
|
|
6737
|
+
computeIsMaxFixedColumn,
|
|
6738
|
+
computeResizableOpts
|
|
6734
6739
|
} = $xeTable.getComputeMaps();
|
|
6735
6740
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
6736
6741
|
const bodyElemRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -7179,6 +7184,9 @@ const {
|
|
|
7179
7184
|
const {
|
|
7180
7185
|
customStore
|
|
7181
7186
|
} = props;
|
|
7187
|
+
const {
|
|
7188
|
+
resizable: allResizable
|
|
7189
|
+
} = tableProps;
|
|
7182
7190
|
const {
|
|
7183
7191
|
customColumnList
|
|
7184
7192
|
} = reactData;
|
|
@@ -7197,6 +7205,11 @@ const {
|
|
|
7197
7205
|
const {
|
|
7198
7206
|
maxFixedSize
|
|
7199
7207
|
} = columnOpts;
|
|
7208
|
+
const resizableOpts = computeResizableOpts.value;
|
|
7209
|
+
const {
|
|
7210
|
+
minWidth: reMinWidth,
|
|
7211
|
+
maxWidth: reMaxWidth
|
|
7212
|
+
} = resizableOpts;
|
|
7200
7213
|
const {
|
|
7201
7214
|
mode
|
|
7202
7215
|
} = customOpts;
|
|
@@ -7225,6 +7238,24 @@ const {
|
|
|
7225
7238
|
column
|
|
7226
7239
|
}) : true;
|
|
7227
7240
|
if (isVisible) {
|
|
7241
|
+
// 默认继承调整宽度
|
|
7242
|
+
let customMinWidth = 0;
|
|
7243
|
+
let customMaxWidth = 0;
|
|
7244
|
+
if (allowResizable) {
|
|
7245
|
+
const resizeParams = {
|
|
7246
|
+
$table: $xeTable,
|
|
7247
|
+
column,
|
|
7248
|
+
columnIndex: index,
|
|
7249
|
+
$columnIndex: index,
|
|
7250
|
+
$rowIndex: -1
|
|
7251
|
+
};
|
|
7252
|
+
if (reMinWidth) {
|
|
7253
|
+
customMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(reMinWidth) ? reMinWidth(resizeParams) : reMinWidth);
|
|
7254
|
+
}
|
|
7255
|
+
if (reMaxWidth) {
|
|
7256
|
+
customMaxWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(reMaxWidth) ? reMaxWidth(resizeParams) : reMaxWidth);
|
|
7257
|
+
}
|
|
7258
|
+
}
|
|
7228
7259
|
const isChecked = column.renderVisible;
|
|
7229
7260
|
const isIndeterminate = column.halfVisible;
|
|
7230
7261
|
const colTitle = formatText(column.getTitle(), 1);
|
|
@@ -7283,10 +7314,12 @@ const {
|
|
|
7283
7314
|
title: colTitle
|
|
7284
7315
|
}, colTitle)]), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
7285
7316
|
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
7286
|
-
}, [column.children && column.children.length ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') :
|
|
7317
|
+
}, [column.children && column.children.length || !(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : VxeUINumberInputComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUINumberInputComponent, {
|
|
7287
7318
|
type: 'integer',
|
|
7288
7319
|
disabled: isDisabled || isHidden,
|
|
7289
7320
|
modelValue: column.renderResizeWidth,
|
|
7321
|
+
min: customMinWidth || undefined,
|
|
7322
|
+
max: customMaxWidth || undefined,
|
|
7290
7323
|
'onUpdate:modelValue'(value) {
|
|
7291
7324
|
column.renderResizeWidth = Math.max(0, Number(value));
|
|
7292
7325
|
}
|
|
@@ -7457,8 +7490,8 @@ const {
|
|
|
7457
7490
|
if (!VxeUIButtonComponent) {
|
|
7458
7491
|
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
7459
7492
|
}
|
|
7460
|
-
if (!
|
|
7461
|
-
errLog('vxe.error.reqComp', ['vxe-input']);
|
|
7493
|
+
if (!VxeUINumberInputComponent) {
|
|
7494
|
+
errLog('vxe.error.reqComp', ['vxe-number-input']);
|
|
7462
7495
|
}
|
|
7463
7496
|
if (!VxeUITooltipComponent) {
|
|
7464
7497
|
errLog('vxe.error.reqComp', ['vxe-tooltip']);
|
|
@@ -8498,7 +8531,8 @@ const {
|
|
|
8498
8531
|
hooks: table_hooks,
|
|
8499
8532
|
globalEvents: table_globalEvents,
|
|
8500
8533
|
GLOBAL_EVENT_KEYS,
|
|
8501
|
-
useFns
|
|
8534
|
+
useFns,
|
|
8535
|
+
renderEmptyElement: table_renderEmptyElement
|
|
8502
8536
|
} = core_.VxeUI;
|
|
8503
8537
|
const isWebkit = browse['-webkit'] && !browse.edge;
|
|
8504
8538
|
const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
@@ -11112,10 +11146,14 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11112
11146
|
const {
|
|
11113
11147
|
rowExpandedMaps
|
|
11114
11148
|
} = reactData;
|
|
11115
|
-
rowRest
|
|
11149
|
+
if (rowRest) {
|
|
11150
|
+
rowRest.expandLoaded = true;
|
|
11151
|
+
}
|
|
11116
11152
|
rowExpandedMaps[rowid] = row;
|
|
11117
11153
|
}).catch(() => {
|
|
11118
|
-
rowRest
|
|
11154
|
+
if (rowRest) {
|
|
11155
|
+
rowRest.expandLoaded = false;
|
|
11156
|
+
}
|
|
11119
11157
|
}).finally(() => {
|
|
11120
11158
|
const {
|
|
11121
11159
|
rowExpandLazyLoadedMaps
|
|
@@ -11671,13 +11709,15 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
11671
11709
|
const rowid = getRowid($xeTable, row);
|
|
11672
11710
|
if (!treeTempExpandedMaps[rowid]) {
|
|
11673
11711
|
const rowRest = fullAllDataRowIdData[rowid];
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11712
|
+
if (rowRest) {
|
|
11713
|
+
const isLoad = lazy && row[hasChildField] && !rowRest.treeLoaded && !treeExpandLazyLoadedMaps[rowid];
|
|
11714
|
+
// 是否使用懒加载
|
|
11715
|
+
if (isLoad) {
|
|
11716
|
+
result.push(handleAsyncTreeExpandChilds(row));
|
|
11717
|
+
} else {
|
|
11718
|
+
if (row[childrenField] && row[childrenField].length) {
|
|
11719
|
+
treeTempExpandedMaps[rowid] = row;
|
|
11720
|
+
}
|
|
11681
11721
|
}
|
|
11682
11722
|
}
|
|
11683
11723
|
}
|
|
@@ -14805,7 +14845,22 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14805
14845
|
}
|
|
14806
14846
|
};
|
|
14807
14847
|
const updateRowDropTipContent = tdEl => {
|
|
14808
|
-
|
|
14848
|
+
const {
|
|
14849
|
+
dragRow
|
|
14850
|
+
} = reactData;
|
|
14851
|
+
const dragOpts = computeDragOpts.value;
|
|
14852
|
+
const {
|
|
14853
|
+
rowTooltipMethod
|
|
14854
|
+
} = dragOpts;
|
|
14855
|
+
let tipContent = '';
|
|
14856
|
+
if (rowTooltipMethod) {
|
|
14857
|
+
tipContent = `${rowTooltipMethod({
|
|
14858
|
+
row: dragRow
|
|
14859
|
+
}) || ''}`;
|
|
14860
|
+
} else {
|
|
14861
|
+
tipContent = table_getI18n('vxe.table.dragTip', [tdEl.textContent || '']);
|
|
14862
|
+
}
|
|
14863
|
+
reactData.dragTipText = tipContent;
|
|
14809
14864
|
};
|
|
14810
14865
|
/**
|
|
14811
14866
|
* 处理显示 tooltip
|
|
@@ -14846,6 +14901,17 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14846
14901
|
}
|
|
14847
14902
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
14848
14903
|
};
|
|
14904
|
+
const callSlot = (slotFunc, params) => {
|
|
14905
|
+
if (slotFunc) {
|
|
14906
|
+
if ($xeGrid) {
|
|
14907
|
+
return $xeGrid.callSlot(slotFunc, params);
|
|
14908
|
+
}
|
|
14909
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(slotFunc)) {
|
|
14910
|
+
return getSlotVNs(slotFunc(params));
|
|
14911
|
+
}
|
|
14912
|
+
}
|
|
14913
|
+
return [];
|
|
14914
|
+
};
|
|
14849
14915
|
/**
|
|
14850
14916
|
* 内部方法
|
|
14851
14917
|
*/
|
|
@@ -14854,17 +14920,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
14854
14920
|
return table_getConfig();
|
|
14855
14921
|
},
|
|
14856
14922
|
updateAfterDataIndex,
|
|
14857
|
-
callSlot
|
|
14858
|
-
if (slotFunc) {
|
|
14859
|
-
if ($xeGrid) {
|
|
14860
|
-
return $xeGrid.callSlot(slotFunc, params);
|
|
14861
|
-
}
|
|
14862
|
-
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(slotFunc)) {
|
|
14863
|
-
return getSlotVNs(slotFunc(params));
|
|
14864
|
-
}
|
|
14865
|
-
}
|
|
14866
|
-
return [];
|
|
14867
|
-
},
|
|
14923
|
+
callSlot,
|
|
14868
14924
|
/**
|
|
14869
14925
|
* 获取父容器元素
|
|
14870
14926
|
*/
|
|
@@ -16624,7 +16680,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16624
16680
|
tableColumn,
|
|
16625
16681
|
tableGroupColumn,
|
|
16626
16682
|
fixedColumn
|
|
16627
|
-
}) : (
|
|
16683
|
+
}) : table_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(body, {
|
|
16628
16684
|
ref: isFixedLeft ? refTableLeftBody : refTableRightBody,
|
|
16629
16685
|
fixedType,
|
|
16630
16686
|
tableData,
|
|
@@ -16636,7 +16692,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16636
16692
|
tableColumn,
|
|
16637
16693
|
fixedColumn,
|
|
16638
16694
|
fixedType
|
|
16639
|
-
}) : (
|
|
16695
|
+
}) : table_renderEmptyElement($xeTable)]);
|
|
16640
16696
|
};
|
|
16641
16697
|
const renderEmptyBody = () => {
|
|
16642
16698
|
const emptyOpts = computeEmptyOpts.value;
|
|
@@ -16691,7 +16747,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16691
16747
|
columnStore,
|
|
16692
16748
|
filterStore,
|
|
16693
16749
|
customStore,
|
|
16694
|
-
tooltipStore
|
|
16750
|
+
tooltipStore,
|
|
16751
|
+
dragRow,
|
|
16752
|
+
dragTipText
|
|
16695
16753
|
} = reactData;
|
|
16696
16754
|
const {
|
|
16697
16755
|
leftList,
|
|
@@ -16703,6 +16761,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16703
16761
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
16704
16762
|
const treeOpts = computeTreeOpts.value;
|
|
16705
16763
|
const rowOpts = computeRowOpts.value;
|
|
16764
|
+
const dragOpts = computeDragOpts.value;
|
|
16706
16765
|
const columnOpts = computeColumnOpts.value;
|
|
16707
16766
|
const vSize = computeSize.value;
|
|
16708
16767
|
const tableBorder = computeTableBorder.value;
|
|
@@ -16712,6 +16771,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16712
16771
|
const isMenu = computeIsMenu.value;
|
|
16713
16772
|
const currLoading = reactData._isLoading || loading;
|
|
16714
16773
|
const virtualScrollBars = computeVirtualScrollBars.value;
|
|
16774
|
+
const dragSlots = dragOpts.slots || {};
|
|
16775
|
+
const rowTipSlot = dragSlots.rowTip;
|
|
16715
16776
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16716
16777
|
ref: refElem,
|
|
16717
16778
|
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
@@ -16765,7 +16826,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16765
16826
|
tableData,
|
|
16766
16827
|
tableColumn,
|
|
16767
16828
|
tableGroupColumn
|
|
16768
|
-
}) : (
|
|
16829
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16769
16830
|
/**
|
|
16770
16831
|
* 表体
|
|
16771
16832
|
*/
|
|
@@ -16781,9 +16842,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16781
16842
|
ref: refTableFooter,
|
|
16782
16843
|
footerTableData,
|
|
16783
16844
|
tableColumn
|
|
16784
|
-
}) : (
|
|
16845
|
+
}) : table_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16785
16846
|
class: 'vxe-table--fixed-wrapper'
|
|
16786
|
-
}, [leftList && leftList.length && overflowX ? renderFixed('left') : (
|
|
16847
|
+
}, [leftList && leftList.length && overflowX ? renderFixed('left') : table_renderEmptyElement($xeTable), rightList && rightList.length && overflowX ? renderFixed('right') : table_renderEmptyElement($xeTable)])]), virtualScrollBars.x ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16787
16848
|
key: 'vx',
|
|
16788
16849
|
ref: refScrollXVirtualElem,
|
|
16789
16850
|
class: 'vxe-table--scroll-x-virtual'
|
|
@@ -16794,7 +16855,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16794
16855
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16795
16856
|
ref: refScrollXSpaceElem,
|
|
16796
16857
|
class: 'vxe-table--scroll-x-space'
|
|
16797
|
-
})])]) : (
|
|
16858
|
+
})])]) : table_renderEmptyElement($xeTable), virtualScrollBars.y ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16798
16859
|
key: 'vy',
|
|
16799
16860
|
ref: refScrollYVirtualElem,
|
|
16800
16861
|
class: 'vxe-table--scroll-y-virtual'
|
|
@@ -16805,7 +16866,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16805
16866
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16806
16867
|
ref: refScrollYSpaceElem,
|
|
16807
16868
|
class: 'vxe-table--scroll-x-space'
|
|
16808
|
-
})])]) : (
|
|
16869
|
+
})])]) : table_renderEmptyElement($xeTable),
|
|
16809
16870
|
/**
|
|
16810
16871
|
* 空数据
|
|
16811
16872
|
*/
|
|
@@ -16848,7 +16909,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16848
16909
|
$table: $xeTable,
|
|
16849
16910
|
$grid: $xeGrid
|
|
16850
16911
|
})
|
|
16851
|
-
} : {}) : (
|
|
16912
|
+
} : {}) : table_renderEmptyElement($xeTable),
|
|
16852
16913
|
/**
|
|
16853
16914
|
* 自定义列
|
|
16854
16915
|
*/
|
|
@@ -16856,7 +16917,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16856
16917
|
key: 'cs',
|
|
16857
16918
|
ref: refTableCustom,
|
|
16858
16919
|
customStore
|
|
16859
|
-
}) : (
|
|
16920
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16860
16921
|
/**
|
|
16861
16922
|
* 筛选
|
|
16862
16923
|
*/
|
|
@@ -16864,7 +16925,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16864
16925
|
key: 'tf',
|
|
16865
16926
|
ref: refTableFilter,
|
|
16866
16927
|
filterStore
|
|
16867
|
-
}) : (
|
|
16928
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16868
16929
|
/**
|
|
16869
16930
|
* 导入
|
|
16870
16931
|
*/
|
|
@@ -16872,7 +16933,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16872
16933
|
key: 'it',
|
|
16873
16934
|
defaultOptions: reactData.importParams,
|
|
16874
16935
|
storeData: reactData.importStore
|
|
16875
|
-
}) : (
|
|
16936
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16876
16937
|
/**
|
|
16877
16938
|
* 导出
|
|
16878
16939
|
*/
|
|
@@ -16880,21 +16941,23 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16880
16941
|
key: 'et',
|
|
16881
16942
|
defaultOptions: reactData.exportParams,
|
|
16882
16943
|
storeData: reactData.exportStore
|
|
16883
|
-
}) : (
|
|
16944
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16884
16945
|
/**
|
|
16885
16946
|
* 快捷菜单
|
|
16886
16947
|
*/
|
|
16887
16948
|
isMenu ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(menu_panel, {
|
|
16888
16949
|
key: 'tm',
|
|
16889
16950
|
ref: refTableMenu
|
|
16890
|
-
}) : (
|
|
16951
|
+
}) : table_renderEmptyElement($xeTable),
|
|
16891
16952
|
/**
|
|
16892
16953
|
* 拖拽提示
|
|
16893
16954
|
*/
|
|
16894
|
-
rowOpts.drag ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16955
|
+
rowOpts.drag && (dragRow || dragTipText) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16895
16956
|
ref: refRowDragTipElem,
|
|
16896
|
-
class: 'vxe-table--row-drag-
|
|
16897
|
-
},
|
|
16957
|
+
class: 'vxe-table--row-drag-tip'
|
|
16958
|
+
}, rowTipSlot ? dragRow ? callSlot(rowTipSlot, {
|
|
16959
|
+
row: dragRow
|
|
16960
|
+
}) : [table_renderEmptyElement($xeTable)] : dragTipText ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', dragTipText)] : [table_renderEmptyElement($xeTable)]) : table_renderEmptyElement($xeTable),
|
|
16898
16961
|
/**
|
|
16899
16962
|
* 提示相关
|
|
16900
16963
|
*/
|
|
@@ -16925,7 +16988,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16925
16988
|
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
16926
16989
|
}, 'vxe-table--valid-error'],
|
|
16927
16990
|
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
16928
|
-
}) : (
|
|
16991
|
+
}) : table_renderEmptyElement($xeTable)]) : table_renderEmptyElement($xeTable)]);
|
|
16929
16992
|
};
|
|
16930
16993
|
const dataFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
16931
16994
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data ? props.data.length : -1, () => {
|
|
@@ -21516,7 +21579,7 @@ validator_hook_hooks.add('tableValidatorModule', {
|
|
|
21516
21579
|
const validOpts = computeValidOpts.value;
|
|
21517
21580
|
if (validOpts.msgMode === 'single') {
|
|
21518
21581
|
const keys = Object.keys(validErrMaps);
|
|
21519
|
-
const resMaps =
|
|
21582
|
+
const resMaps = {};
|
|
21520
21583
|
if (keys.length) {
|
|
21521
21584
|
const firstKey = keys[0];
|
|
21522
21585
|
resMaps[firstKey] = validErrMaps[firstKey];
|