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
package/lib/index.umd.js
CHANGED
|
@@ -1998,9 +1998,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1998
1998
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1999
1999
|
|
|
2000
2000
|
|
|
2001
|
-
const version = "4.7.
|
|
2001
|
+
const version = "4.7.84";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
2003
|
+
core_.VxeUI.tableVersion = "4.7.84";
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
2005
2005
|
emptyCell: ' ',
|
|
2006
2006
|
table: {
|
|
@@ -2384,7 +2384,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2384
2384
|
const {
|
|
2385
2385
|
log: log_log
|
|
2386
2386
|
} = core_.VxeUI;
|
|
2387
|
-
const log_version = `table v${"4.7.
|
|
2387
|
+
const log_version = `table v${"4.7.84"}`;
|
|
2388
2388
|
const warnLog = log_log.create('warn', log_version);
|
|
2389
2389
|
const errLog = log_log.create('error', log_version);
|
|
2390
2390
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -16117,6 +16117,238 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16117
16117
|
tableMethods.recalculate();
|
|
16118
16118
|
}
|
|
16119
16119
|
}
|
|
16120
|
+
const renderVN = () => {
|
|
16121
|
+
const {
|
|
16122
|
+
loading,
|
|
16123
|
+
stripe,
|
|
16124
|
+
showHeader,
|
|
16125
|
+
height,
|
|
16126
|
+
treeConfig,
|
|
16127
|
+
mouseConfig,
|
|
16128
|
+
showFooter,
|
|
16129
|
+
highlightCell,
|
|
16130
|
+
highlightHoverRow,
|
|
16131
|
+
highlightHoverColumn,
|
|
16132
|
+
editConfig,
|
|
16133
|
+
editRules
|
|
16134
|
+
} = props;
|
|
16135
|
+
const {
|
|
16136
|
+
isCalcColumn,
|
|
16137
|
+
isGroup,
|
|
16138
|
+
overflowX,
|
|
16139
|
+
overflowY,
|
|
16140
|
+
scrollXLoad,
|
|
16141
|
+
scrollYLoad,
|
|
16142
|
+
scrollbarHeight,
|
|
16143
|
+
tableData,
|
|
16144
|
+
tableColumn,
|
|
16145
|
+
tableGroupColumn,
|
|
16146
|
+
footerTableData,
|
|
16147
|
+
initStore,
|
|
16148
|
+
columnStore,
|
|
16149
|
+
filterStore,
|
|
16150
|
+
customStore,
|
|
16151
|
+
tooltipStore
|
|
16152
|
+
} = reactData;
|
|
16153
|
+
const {
|
|
16154
|
+
leftList,
|
|
16155
|
+
rightList
|
|
16156
|
+
} = columnStore;
|
|
16157
|
+
const loadingSlot = slots.loading;
|
|
16158
|
+
const tipConfig = computeTipConfig.value;
|
|
16159
|
+
const validOpts = computeValidOpts.value;
|
|
16160
|
+
const checkboxOpts = computeCheckboxOpts.value;
|
|
16161
|
+
const treeOpts = computeTreeOpts.value;
|
|
16162
|
+
const rowOpts = computeRowOpts.value;
|
|
16163
|
+
const columnOpts = computeColumnOpts.value;
|
|
16164
|
+
const vSize = computeSize.value;
|
|
16165
|
+
const tableBorder = computeTableBorder.value;
|
|
16166
|
+
const mouseOpts = computeMouseOpts.value;
|
|
16167
|
+
const validTipOpts = computeValidTipOpts.value;
|
|
16168
|
+
const loadingOpts = computeLoadingOpts.value;
|
|
16169
|
+
const isMenu = computeIsMenu.value;
|
|
16170
|
+
const currLoading = reactData._isLoading || loading;
|
|
16171
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16172
|
+
ref: refElem,
|
|
16173
|
+
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
16174
|
+
[`size--${vSize}`]: vSize,
|
|
16175
|
+
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
16176
|
+
'vxe-editable': !!editConfig,
|
|
16177
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete',
|
|
16178
|
+
'cell--highlight': highlightCell,
|
|
16179
|
+
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
16180
|
+
'cell--area': mouseConfig && mouseOpts.area,
|
|
16181
|
+
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
16182
|
+
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
16183
|
+
'checkbox--range': checkboxOpts.range,
|
|
16184
|
+
'column--calc': isCalcColumn,
|
|
16185
|
+
'is--header': showHeader,
|
|
16186
|
+
'is--footer': showFooter,
|
|
16187
|
+
'is--group': isGroup,
|
|
16188
|
+
'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
16189
|
+
'is--fixed-left': leftList.length,
|
|
16190
|
+
'is--fixed-right': rightList.length,
|
|
16191
|
+
'is--animat': !!props.animat,
|
|
16192
|
+
'is--padding': props.padding,
|
|
16193
|
+
'is--round': props.round,
|
|
16194
|
+
'is--stripe': !treeConfig && stripe,
|
|
16195
|
+
'is--loading': currLoading,
|
|
16196
|
+
'is--empty': !currLoading && !tableData.length,
|
|
16197
|
+
'is--scroll-y': overflowY,
|
|
16198
|
+
'is--scroll-x': overflowX,
|
|
16199
|
+
'is--virtual-x': scrollXLoad,
|
|
16200
|
+
'is--virtual-y': scrollYLoad
|
|
16201
|
+
}],
|
|
16202
|
+
spellcheck: false,
|
|
16203
|
+
onKeydown: keydownEvent
|
|
16204
|
+
}, [
|
|
16205
|
+
/**
|
|
16206
|
+
* 隐藏列
|
|
16207
|
+
*/
|
|
16208
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16209
|
+
class: 'vxe-table-slots'
|
|
16210
|
+
}, slots.default ? slots.default({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16211
|
+
class: 'vxe-table--render-wrapper'
|
|
16212
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16213
|
+
class: 'vxe-table--main-wrapper'
|
|
16214
|
+
}, [
|
|
16215
|
+
/**
|
|
16216
|
+
* 表头
|
|
16217
|
+
*/
|
|
16218
|
+
showHeader ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(header, {
|
|
16219
|
+
ref: refTableHeader,
|
|
16220
|
+
tableData,
|
|
16221
|
+
tableColumn,
|
|
16222
|
+
tableGroupColumn
|
|
16223
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16224
|
+
/**
|
|
16225
|
+
* 表体
|
|
16226
|
+
*/
|
|
16227
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(body, {
|
|
16228
|
+
ref: refTableBody,
|
|
16229
|
+
tableData,
|
|
16230
|
+
tableColumn
|
|
16231
|
+
}),
|
|
16232
|
+
/**
|
|
16233
|
+
* 表尾
|
|
16234
|
+
*/
|
|
16235
|
+
showFooter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(footer, {
|
|
16236
|
+
ref: refTableFooter,
|
|
16237
|
+
footerTableData,
|
|
16238
|
+
tableColumn
|
|
16239
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16240
|
+
class: 'vxe-table--fixed-wrapper'
|
|
16241
|
+
}, [
|
|
16242
|
+
/**
|
|
16243
|
+
* 左侧固定区域
|
|
16244
|
+
*/
|
|
16245
|
+
leftList && leftList.length && overflowX ? renderFixed('left') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16246
|
+
/**
|
|
16247
|
+
* 右侧固定区域
|
|
16248
|
+
*/
|
|
16249
|
+
rightList && rightList.length && overflowX ? renderFixed('right') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]),
|
|
16250
|
+
/**
|
|
16251
|
+
* 空数据
|
|
16252
|
+
*/
|
|
16253
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16254
|
+
ref: refEmptyPlaceholder,
|
|
16255
|
+
class: 'vxe-table--empty-placeholder'
|
|
16256
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16257
|
+
class: 'vxe-table--empty-content'
|
|
16258
|
+
}, renderEmptyContenet())]),
|
|
16259
|
+
/**
|
|
16260
|
+
* 边框线
|
|
16261
|
+
*/
|
|
16262
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16263
|
+
class: 'vxe-table--border-line'
|
|
16264
|
+
}),
|
|
16265
|
+
/**
|
|
16266
|
+
* 列宽线
|
|
16267
|
+
*/
|
|
16268
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16269
|
+
ref: refCellResizeBar,
|
|
16270
|
+
class: 'vxe-table--resizable-bar',
|
|
16271
|
+
style: overflowX ? {
|
|
16272
|
+
'padding-bottom': `${scrollbarHeight}px`
|
|
16273
|
+
} : null
|
|
16274
|
+
}),
|
|
16275
|
+
/**
|
|
16276
|
+
* 加载中
|
|
16277
|
+
*/
|
|
16278
|
+
VxeUILoadingComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUILoadingComponent, {
|
|
16279
|
+
class: 'vxe-table--loading',
|
|
16280
|
+
modelValue: currLoading,
|
|
16281
|
+
icon: loadingOpts.icon,
|
|
16282
|
+
text: loadingOpts.text
|
|
16283
|
+
}, loadingSlot ? {
|
|
16284
|
+
default: () => loadingSlot({
|
|
16285
|
+
$table: $xeTable,
|
|
16286
|
+
$grid: $xeGrid
|
|
16287
|
+
})
|
|
16288
|
+
} : {}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16289
|
+
/**
|
|
16290
|
+
* 自定义列
|
|
16291
|
+
*/
|
|
16292
|
+
initStore.custom ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(panel, {
|
|
16293
|
+
ref: refTableCustom,
|
|
16294
|
+
customStore
|
|
16295
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16296
|
+
/**
|
|
16297
|
+
* 筛选
|
|
16298
|
+
*/
|
|
16299
|
+
initStore.filter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(filter_panel, {
|
|
16300
|
+
ref: refTableFilter,
|
|
16301
|
+
filterStore
|
|
16302
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16303
|
+
/**
|
|
16304
|
+
* 导入
|
|
16305
|
+
*/
|
|
16306
|
+
initStore.import && props.importConfig ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(import_panel, {
|
|
16307
|
+
defaultOptions: reactData.importParams,
|
|
16308
|
+
storeData: reactData.importStore
|
|
16309
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16310
|
+
/**
|
|
16311
|
+
* 导出
|
|
16312
|
+
*/
|
|
16313
|
+
initStore.export && (props.exportConfig || props.printConfig) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(export_panel, {
|
|
16314
|
+
defaultOptions: reactData.exportParams,
|
|
16315
|
+
storeData: reactData.exportStore
|
|
16316
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16317
|
+
/**
|
|
16318
|
+
* 快捷菜单
|
|
16319
|
+
*/
|
|
16320
|
+
isMenu ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(menu_panel, {
|
|
16321
|
+
ref: refTableMenu
|
|
16322
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16323
|
+
/**
|
|
16324
|
+
* 提示相关
|
|
16325
|
+
*/
|
|
16326
|
+
VxeUITooltipComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {}, [
|
|
16327
|
+
/**
|
|
16328
|
+
* 通用提示
|
|
16329
|
+
*/
|
|
16330
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, {
|
|
16331
|
+
ref: refCommTooltip,
|
|
16332
|
+
isArrow: false,
|
|
16333
|
+
enterable: false
|
|
16334
|
+
}),
|
|
16335
|
+
/**
|
|
16336
|
+
* 工具提示
|
|
16337
|
+
*/
|
|
16338
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, Object.assign({
|
|
16339
|
+
ref: refTooltip
|
|
16340
|
+
}, tipConfig, tooltipStore.currOpts)),
|
|
16341
|
+
/**
|
|
16342
|
+
* 校验提示
|
|
16343
|
+
*/
|
|
16344
|
+
props.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, {
|
|
16345
|
+
ref: refValidTooltip,
|
|
16346
|
+
class: [{
|
|
16347
|
+
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
16348
|
+
}, 'vxe-table--valid-error'],
|
|
16349
|
+
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
16350
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
16351
|
+
};
|
|
16120
16352
|
const dataFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
16121
16353
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data ? props.data.length : -1, () => {
|
|
16122
16354
|
dataFlag.value++;
|
|
@@ -16504,239 +16736,6 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16504
16736
|
$table: $xeTable
|
|
16505
16737
|
});
|
|
16506
16738
|
});
|
|
16507
|
-
const renderVN = () => {
|
|
16508
|
-
const {
|
|
16509
|
-
loading,
|
|
16510
|
-
stripe,
|
|
16511
|
-
showHeader,
|
|
16512
|
-
height,
|
|
16513
|
-
treeConfig,
|
|
16514
|
-
mouseConfig,
|
|
16515
|
-
showFooter,
|
|
16516
|
-
highlightCell,
|
|
16517
|
-
highlightHoverRow,
|
|
16518
|
-
highlightHoverColumn,
|
|
16519
|
-
editConfig,
|
|
16520
|
-
editRules
|
|
16521
|
-
} = props;
|
|
16522
|
-
const {
|
|
16523
|
-
isCalcColumn,
|
|
16524
|
-
isGroup,
|
|
16525
|
-
overflowX,
|
|
16526
|
-
overflowY,
|
|
16527
|
-
scrollXLoad,
|
|
16528
|
-
scrollYLoad,
|
|
16529
|
-
scrollbarHeight,
|
|
16530
|
-
tableData,
|
|
16531
|
-
tableColumn,
|
|
16532
|
-
tableGroupColumn,
|
|
16533
|
-
footerTableData,
|
|
16534
|
-
initStore,
|
|
16535
|
-
columnStore,
|
|
16536
|
-
filterStore,
|
|
16537
|
-
customStore,
|
|
16538
|
-
tooltipStore
|
|
16539
|
-
} = reactData;
|
|
16540
|
-
const {
|
|
16541
|
-
leftList,
|
|
16542
|
-
rightList
|
|
16543
|
-
} = columnStore;
|
|
16544
|
-
const loadingSlot = slots.loading;
|
|
16545
|
-
const tipConfig = computeTipConfig.value;
|
|
16546
|
-
const validOpts = computeValidOpts.value;
|
|
16547
|
-
const checkboxOpts = computeCheckboxOpts.value;
|
|
16548
|
-
const treeOpts = computeTreeOpts.value;
|
|
16549
|
-
const rowOpts = computeRowOpts.value;
|
|
16550
|
-
const columnOpts = computeColumnOpts.value;
|
|
16551
|
-
const vSize = computeSize.value;
|
|
16552
|
-
const tableBorder = computeTableBorder.value;
|
|
16553
|
-
const mouseOpts = computeMouseOpts.value;
|
|
16554
|
-
const validTipOpts = computeValidTipOpts.value;
|
|
16555
|
-
const loadingOpts = computeLoadingOpts.value;
|
|
16556
|
-
const isMenu = computeIsMenu.value;
|
|
16557
|
-
const currLoading = reactData._isLoading || loading;
|
|
16558
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16559
|
-
ref: refElem,
|
|
16560
|
-
class: ['vxe-table', 'vxe-table--render-default', `tid_${xID}`, `border--${tableBorder}`, {
|
|
16561
|
-
[`size--${vSize}`]: vSize,
|
|
16562
|
-
[`valid-msg--${validOpts.msgMode}`]: !!editRules,
|
|
16563
|
-
'vxe-editable': !!editConfig,
|
|
16564
|
-
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete',
|
|
16565
|
-
'cell--highlight': highlightCell,
|
|
16566
|
-
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
16567
|
-
'cell--area': mouseConfig && mouseOpts.area,
|
|
16568
|
-
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
16569
|
-
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
16570
|
-
'checkbox--range': checkboxOpts.range,
|
|
16571
|
-
'column--calc': isCalcColumn,
|
|
16572
|
-
'is--header': showHeader,
|
|
16573
|
-
'is--footer': showFooter,
|
|
16574
|
-
'is--group': isGroup,
|
|
16575
|
-
'is--tree-line': treeConfig && (treeOpts.showLine || treeOpts.line),
|
|
16576
|
-
'is--fixed-left': leftList.length,
|
|
16577
|
-
'is--fixed-right': rightList.length,
|
|
16578
|
-
'is--animat': !!props.animat,
|
|
16579
|
-
'is--padding': props.padding,
|
|
16580
|
-
'is--round': props.round,
|
|
16581
|
-
'is--stripe': !treeConfig && stripe,
|
|
16582
|
-
'is--loading': currLoading,
|
|
16583
|
-
'is--empty': !currLoading && !tableData.length,
|
|
16584
|
-
'is--scroll-y': overflowY,
|
|
16585
|
-
'is--scroll-x': overflowX,
|
|
16586
|
-
'is--virtual-x': scrollXLoad,
|
|
16587
|
-
'is--virtual-y': scrollYLoad
|
|
16588
|
-
}],
|
|
16589
|
-
spellcheck: false,
|
|
16590
|
-
onKeydown: keydownEvent
|
|
16591
|
-
}, [
|
|
16592
|
-
/**
|
|
16593
|
-
* 隐藏列
|
|
16594
|
-
*/
|
|
16595
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16596
|
-
class: 'vxe-table-slots'
|
|
16597
|
-
}, slots.default ? slots.default({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16598
|
-
class: 'vxe-table--render-wrapper'
|
|
16599
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16600
|
-
class: 'vxe-table--main-wrapper'
|
|
16601
|
-
}, [
|
|
16602
|
-
/**
|
|
16603
|
-
* 表头
|
|
16604
|
-
*/
|
|
16605
|
-
showHeader ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(header, {
|
|
16606
|
-
ref: refTableHeader,
|
|
16607
|
-
tableData,
|
|
16608
|
-
tableColumn,
|
|
16609
|
-
tableGroupColumn
|
|
16610
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16611
|
-
/**
|
|
16612
|
-
* 表体
|
|
16613
|
-
*/
|
|
16614
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(body, {
|
|
16615
|
-
ref: refTableBody,
|
|
16616
|
-
tableData,
|
|
16617
|
-
tableColumn
|
|
16618
|
-
}),
|
|
16619
|
-
/**
|
|
16620
|
-
* 表尾
|
|
16621
|
-
*/
|
|
16622
|
-
showFooter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(footer, {
|
|
16623
|
-
ref: refTableFooter,
|
|
16624
|
-
footerTableData,
|
|
16625
|
-
tableColumn
|
|
16626
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16627
|
-
class: 'vxe-table--fixed-wrapper'
|
|
16628
|
-
}, [
|
|
16629
|
-
/**
|
|
16630
|
-
* 左侧固定区域
|
|
16631
|
-
*/
|
|
16632
|
-
leftList && leftList.length && overflowX ? renderFixed('left') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16633
|
-
/**
|
|
16634
|
-
* 右侧固定区域
|
|
16635
|
-
*/
|
|
16636
|
-
rightList && rightList.length && overflowX ? renderFixed('right') : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]),
|
|
16637
|
-
/**
|
|
16638
|
-
* 空数据
|
|
16639
|
-
*/
|
|
16640
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16641
|
-
ref: refEmptyPlaceholder,
|
|
16642
|
-
class: 'vxe-table--empty-placeholder'
|
|
16643
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16644
|
-
class: 'vxe-table--empty-content'
|
|
16645
|
-
}, renderEmptyContenet())]),
|
|
16646
|
-
/**
|
|
16647
|
-
* 边框线
|
|
16648
|
-
*/
|
|
16649
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16650
|
-
class: 'vxe-table--border-line'
|
|
16651
|
-
}),
|
|
16652
|
-
/**
|
|
16653
|
-
* 列宽线
|
|
16654
|
-
*/
|
|
16655
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
16656
|
-
ref: refCellResizeBar,
|
|
16657
|
-
class: 'vxe-table--resizable-bar',
|
|
16658
|
-
style: overflowX ? {
|
|
16659
|
-
'padding-bottom': `${scrollbarHeight}px`
|
|
16660
|
-
} : null
|
|
16661
|
-
}),
|
|
16662
|
-
/**
|
|
16663
|
-
* 加载中
|
|
16664
|
-
*/
|
|
16665
|
-
VxeUILoadingComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUILoadingComponent, {
|
|
16666
|
-
class: 'vxe-table--loading',
|
|
16667
|
-
modelValue: currLoading,
|
|
16668
|
-
icon: loadingOpts.icon,
|
|
16669
|
-
text: loadingOpts.text
|
|
16670
|
-
}, loadingSlot ? {
|
|
16671
|
-
default: () => loadingSlot({
|
|
16672
|
-
$table: $xeTable,
|
|
16673
|
-
$grid: $xeGrid
|
|
16674
|
-
})
|
|
16675
|
-
} : {}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16676
|
-
/**
|
|
16677
|
-
* 自定义列
|
|
16678
|
-
*/
|
|
16679
|
-
initStore.custom ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(panel, {
|
|
16680
|
-
ref: refTableCustom,
|
|
16681
|
-
customStore
|
|
16682
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16683
|
-
/**
|
|
16684
|
-
* 筛选
|
|
16685
|
-
*/
|
|
16686
|
-
initStore.filter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(filter_panel, {
|
|
16687
|
-
ref: refTableFilter,
|
|
16688
|
-
filterStore
|
|
16689
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16690
|
-
/**
|
|
16691
|
-
* 导入
|
|
16692
|
-
*/
|
|
16693
|
-
initStore.import && props.importConfig ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(import_panel, {
|
|
16694
|
-
defaultOptions: reactData.importParams,
|
|
16695
|
-
storeData: reactData.importStore
|
|
16696
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16697
|
-
/**
|
|
16698
|
-
* 导出
|
|
16699
|
-
*/
|
|
16700
|
-
initStore.export && (props.exportConfig || props.printConfig) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(export_panel, {
|
|
16701
|
-
defaultOptions: reactData.exportParams,
|
|
16702
|
-
storeData: reactData.exportStore
|
|
16703
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16704
|
-
/**
|
|
16705
|
-
* 快捷菜单
|
|
16706
|
-
*/
|
|
16707
|
-
isMenu ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(menu_panel, {
|
|
16708
|
-
ref: refTableMenu
|
|
16709
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(),
|
|
16710
|
-
/**
|
|
16711
|
-
* 提示相关
|
|
16712
|
-
*/
|
|
16713
|
-
VxeUITooltipComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {}, [
|
|
16714
|
-
/**
|
|
16715
|
-
* 通用提示
|
|
16716
|
-
*/
|
|
16717
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, {
|
|
16718
|
-
ref: refCommTooltip,
|
|
16719
|
-
isArrow: false,
|
|
16720
|
-
enterable: false
|
|
16721
|
-
}),
|
|
16722
|
-
/**
|
|
16723
|
-
* 工具提示
|
|
16724
|
-
*/
|
|
16725
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, Object.assign({
|
|
16726
|
-
ref: refTooltip
|
|
16727
|
-
}, tipConfig, tooltipStore.currOpts)),
|
|
16728
|
-
/**
|
|
16729
|
-
* 校验提示
|
|
16730
|
-
*/
|
|
16731
|
-
props.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUITooltipComponent, {
|
|
16732
|
-
ref: refValidTooltip,
|
|
16733
|
-
class: [{
|
|
16734
|
-
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
16735
|
-
}, 'vxe-table--valid-error'],
|
|
16736
|
-
...(validOpts.message === 'tooltip' || tableData.length === 1 ? validTipOpts : {})
|
|
16737
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
16738
|
-
};
|
|
16739
|
-
$xeTable.renderVN = renderVN;
|
|
16740
16739
|
if (true) {
|
|
16741
16740
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
16742
16741
|
if (props.loading) {
|
|
@@ -16753,6 +16752,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16753
16752
|
}
|
|
16754
16753
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeColgroup', null);
|
|
16755
16754
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTable', $xeTable);
|
|
16755
|
+
$xeTable.renderVN = renderVN;
|
|
16756
16756
|
return $xeTable;
|
|
16757
16757
|
},
|
|
16758
16758
|
render() {
|
|
@@ -22433,6 +22433,23 @@ render_renderer.mixin({
|
|
|
22433
22433
|
})];
|
|
22434
22434
|
}
|
|
22435
22435
|
},
|
|
22436
|
+
VxeTextEllipsis: {
|
|
22437
|
+
renderTableDefault(renderOpts, params) {
|
|
22438
|
+
const {
|
|
22439
|
+
row,
|
|
22440
|
+
column
|
|
22441
|
+
} = params;
|
|
22442
|
+
const {
|
|
22443
|
+
props
|
|
22444
|
+
} = renderOpts;
|
|
22445
|
+
const cellValue = getCellValue(row, column);
|
|
22446
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(getDefaultComponent(renderOpts), {
|
|
22447
|
+
...props,
|
|
22448
|
+
content: cellValue,
|
|
22449
|
+
...getEditOns(renderOpts, params)
|
|
22450
|
+
})];
|
|
22451
|
+
}
|
|
22452
|
+
},
|
|
22436
22453
|
// 以下已废弃
|
|
22437
22454
|
$input: {
|
|
22438
22455
|
tableAutoFocus: '.vxe-input--inner',
|
|
@@ -24918,7 +24935,8 @@ const Grid = VxeGrid;
|
|
|
24918
24935
|
zoomIn: '最大化',
|
|
24919
24936
|
zoomOut: '还原',
|
|
24920
24937
|
close: '关闭',
|
|
24921
|
-
miniMaxSize: '最小化窗口的数量不能超过 {0} 个'
|
|
24938
|
+
miniMaxSize: '最小化窗口的数量不能超过 {0} 个',
|
|
24939
|
+
footPropErr: 'show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用'
|
|
24922
24940
|
},
|
|
24923
24941
|
drawer: {
|
|
24924
24942
|
close: '关闭'
|