vxe-table 4.7.80 → 4.7.81
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/grid/src/grid.js +17 -10
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +2 -10
- package/es/table/src/table.js +15 -4
- package/es/table/style.css +2 -2
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +5 -0
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +2 -2
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +18 -11
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +42 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +2 -10
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/table.js +14 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +2 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +5 -0
- package/lib/toolbar/src/toolbar.min.js +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 +2 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +3 -3
- package/packages/grid/src/grid.ts +16 -9
- package/packages/table/render/index.ts +2 -10
- package/packages/table/src/table.ts +14 -4
- package/packages/toolbar/src/toolbar.ts +5 -0
- package/styles/components/table.scss +2 -2
- /package/es/{iconfont.1726735367913.ttf → iconfont.1727054403308.ttf} +0 -0
- /package/es/{iconfont.1726735367913.woff → iconfont.1727054403308.woff} +0 -0
- /package/es/{iconfont.1726735367913.woff2 → iconfont.1727054403308.woff2} +0 -0
- /package/lib/{iconfont.1726735367913.ttf → iconfont.1727054403308.ttf} +0 -0
- /package/lib/{iconfont.1726735367913.woff → iconfont.1727054403308.woff} +0 -0
- /package/lib/{iconfont.1726735367913.woff2 → iconfont.1727054403308.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.81";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
2003
|
+
core_.VxeUI.tableVersion = "4.7.81";
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
2005
2005
|
emptyCell: ' ',
|
|
2006
2006
|
table: {
|
|
@@ -2382,7 +2382,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2382
2382
|
const {
|
|
2383
2383
|
log: log_log
|
|
2384
2384
|
} = core_.VxeUI;
|
|
2385
|
-
const log_version = `table v${"4.7.
|
|
2385
|
+
const log_version = `table v${"4.7.81"}`;
|
|
2386
2386
|
const warnLog = log_log.create('warn', log_version);
|
|
2387
2387
|
const errLog = log_log.create('error', log_version);
|
|
2388
2388
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -9575,10 +9575,20 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
9575
9575
|
paddingSize = Math.floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingLeft) + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingRight)) + 2;
|
|
9576
9576
|
}
|
|
9577
9577
|
let colWidth = column.renderAutoWidth - paddingSize;
|
|
9578
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList,
|
|
9579
|
-
const
|
|
9580
|
-
|
|
9581
|
-
|
|
9578
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, itemEl => {
|
|
9579
|
+
const cellEl = itemEl;
|
|
9580
|
+
const thElem = cellEl.parentNode;
|
|
9581
|
+
let titleWidth = 0;
|
|
9582
|
+
if (`${thElem.tagName}`.toLowerCase() === 'th') {
|
|
9583
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellEl.children, btnEl => {
|
|
9584
|
+
titleWidth += btnEl.offsetWidth + 1;
|
|
9585
|
+
});
|
|
9586
|
+
} else {
|
|
9587
|
+
const labelEl = cellEl.firstChild;
|
|
9588
|
+
titleWidth = labelEl.offsetWidth;
|
|
9589
|
+
}
|
|
9590
|
+
if (titleWidth) {
|
|
9591
|
+
colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4);
|
|
9582
9592
|
}
|
|
9583
9593
|
});
|
|
9584
9594
|
column.renderAutoWidth = colWidth + paddingSize;
|
|
@@ -21568,7 +21578,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
21568
21578
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
|
|
21569
21579
|
}
|
|
21570
21580
|
function getLabelFormatDate(value, props) {
|
|
21571
|
-
return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type}`));
|
|
21581
|
+
return getFormatDate(value, props, render_getI18n(`vxe.input.date.labelFormat.${props.type || 'date'}`));
|
|
21572
21582
|
}
|
|
21573
21583
|
/**
|
|
21574
21584
|
* 已废弃
|
|
@@ -22263,15 +22273,7 @@ render_renderer.mixin({
|
|
|
22263
22273
|
} = params;
|
|
22264
22274
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
22265
22275
|
if (cellValue) {
|
|
22266
|
-
|
|
22267
|
-
case 'date':
|
|
22268
|
-
case 'week':
|
|
22269
|
-
case 'month':
|
|
22270
|
-
case 'quarter':
|
|
22271
|
-
case 'year':
|
|
22272
|
-
cellValue = getLabelFormatDate(cellValue, props);
|
|
22273
|
-
break;
|
|
22274
|
-
}
|
|
22276
|
+
cellValue = getLabelFormatDate(cellValue, props);
|
|
22275
22277
|
}
|
|
22276
22278
|
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
22277
22279
|
},
|
|
@@ -22864,6 +22866,8 @@ const {
|
|
|
22864
22866
|
round: child.round,
|
|
22865
22867
|
status: child.status,
|
|
22866
22868
|
content: child.name,
|
|
22869
|
+
routerLink: item.routerLink,
|
|
22870
|
+
permissionCode: item.permissionCode,
|
|
22867
22871
|
onClick: ({
|
|
22868
22872
|
$event
|
|
22869
22873
|
}) => isBtn ? btnEvent($event, child) : tolEvent($event, child)
|
|
@@ -22914,6 +22918,7 @@ const {
|
|
|
22914
22918
|
round: item.round,
|
|
22915
22919
|
status: item.status,
|
|
22916
22920
|
content: item.name,
|
|
22921
|
+
routerLink: item.routerLink,
|
|
22917
22922
|
permissionCode: item.permissionCode,
|
|
22918
22923
|
destroyOnClose: item.destroyOnClose,
|
|
22919
22924
|
placement: item.placement,
|
|
@@ -22976,6 +22981,8 @@ const {
|
|
|
22976
22981
|
round: item.round,
|
|
22977
22982
|
status: item.status,
|
|
22978
22983
|
content: item.name,
|
|
22984
|
+
routerLink: item.routerLink,
|
|
22985
|
+
permissionCode: item.permissionCode,
|
|
22979
22986
|
destroyOnClose: item.destroyOnClose,
|
|
22980
22987
|
placement: item.placement,
|
|
22981
22988
|
transfer: item.transfer,
|
|
@@ -24065,11 +24072,14 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24065
24072
|
}
|
|
24066
24073
|
}
|
|
24067
24074
|
if (isInited) {
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24075
|
+
let defaultSort = null;
|
|
24076
|
+
if ($xeTable) {
|
|
24077
|
+
const {
|
|
24078
|
+
computeSortOpts
|
|
24079
|
+
} = $xeTable.getComputeMaps();
|
|
24080
|
+
const sortOpts = computeSortOpts.value;
|
|
24081
|
+
defaultSort = sortOpts.defaultSort;
|
|
24082
|
+
}
|
|
24073
24083
|
// 如果使用默认排序
|
|
24074
24084
|
if (defaultSort) {
|
|
24075
24085
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(defaultSort)) {
|
|
@@ -24083,14 +24093,18 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24083
24093
|
};
|
|
24084
24094
|
});
|
|
24085
24095
|
}
|
|
24086
|
-
|
|
24087
|
-
} else {
|
|
24088
|
-
if (isReload) {
|
|
24089
|
-
$xeTable.clearAll();
|
|
24090
|
-
} else {
|
|
24091
|
-
sortList = $xeTable.getSortColumns();
|
|
24096
|
+
if ($xeTable) {
|
|
24092
24097
|
filterList = $xeTable.getCheckedFilters();
|
|
24093
24098
|
}
|
|
24099
|
+
} else {
|
|
24100
|
+
if ($xeTable) {
|
|
24101
|
+
if (isReload) {
|
|
24102
|
+
$xeTable.clearAll();
|
|
24103
|
+
} else {
|
|
24104
|
+
sortList = $xeTable.getSortColumns();
|
|
24105
|
+
filterList = $xeTable.getCheckedFilters();
|
|
24106
|
+
}
|
|
24107
|
+
}
|
|
24094
24108
|
}
|
|
24095
24109
|
const commitParams = {
|
|
24096
24110
|
code,
|