vxe-table 4.7.81 → 4.7.82
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 +15 -15
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +9 -3
- package/es/table/src/body.js +1 -0
- package/es/table/src/props.js +5 -0
- package/es/table/src/table.js +1 -0
- package/es/table/style.css +33 -19
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +11 -2
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +33 -19
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +15 -15
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +49 -22
- 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 +12 -2
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +1 -0
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/props.js +5 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +1 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +33 -19
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +11 -2
- package/lib/toolbar/src/toolbar.min.js +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 +33 -19
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +16 -17
- package/packages/table/render/index.ts +9 -3
- package/packages/table/src/body.ts +1 -0
- package/packages/table/src/props.ts +5 -0
- package/packages/table/src/table.ts +1 -0
- package/packages/toolbar/src/toolbar.ts +11 -2
- package/packages/ui/index.ts +1 -0
- package/styles/components/table.scss +74 -13
- /package/es/{iconfont.1727054403308.ttf → iconfont.1727228895510.ttf} +0 -0
- /package/es/{iconfont.1727054403308.woff → iconfont.1727228895510.woff} +0 -0
- /package/es/{iconfont.1727054403308.woff2 → iconfont.1727228895510.woff2} +0 -0
- /package/lib/{iconfont.1727054403308.ttf → iconfont.1727228895510.ttf} +0 -0
- /package/lib/{iconfont.1727054403308.woff → iconfont.1727228895510.woff} +0 -0
- /package/lib/{iconfont.1727054403308.woff2 → iconfont.1727228895510.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.82";
|
|
2002
2002
|
core_.VxeUI.version = version;
|
|
2003
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
2003
|
+
core_.VxeUI.tableVersion = "4.7.82";
|
|
2004
2004
|
core_.VxeUI.setConfig({
|
|
2005
2005
|
emptyCell: ' ',
|
|
2006
2006
|
table: {
|
|
@@ -2009,6 +2009,7 @@ core_.VxeUI.setConfig({
|
|
|
2009
2009
|
animat: true,
|
|
2010
2010
|
delayHover: 250,
|
|
2011
2011
|
autoResize: true,
|
|
2012
|
+
padding: true,
|
|
2012
2013
|
minHeight: 144,
|
|
2013
2014
|
// keepSource: false,
|
|
2014
2015
|
// showOverflow: null,
|
|
@@ -2382,7 +2383,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2382
2383
|
const {
|
|
2383
2384
|
log: log_log
|
|
2384
2385
|
} = core_.VxeUI;
|
|
2385
|
-
const log_version = `table v${"4.7.
|
|
2386
|
+
const log_version = `table v${"4.7.82"}`;
|
|
2386
2387
|
const warnLog = log_log.create('warn', log_version);
|
|
2387
2388
|
const errLog = log_log.create('error', log_version);
|
|
2388
2389
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -5003,6 +5004,7 @@ const lineOffsetSizes = {
|
|
|
5003
5004
|
'col--tree-node': treeNode,
|
|
5004
5005
|
'col--edit': isEdit,
|
|
5005
5006
|
'col--ellipsis': hasEllipsis,
|
|
5007
|
+
'col--height': !!rowOpts.height,
|
|
5006
5008
|
'fixed--hidden': fixedHiddenColumn,
|
|
5007
5009
|
'col--dirty': isDirty,
|
|
5008
5010
|
'col--active': editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row'),
|
|
@@ -6422,6 +6424,11 @@ const {
|
|
|
6422
6424
|
type: [Boolean, String],
|
|
6423
6425
|
default: () => props_getConfig().table.border
|
|
6424
6426
|
},
|
|
6427
|
+
// 单元格是否有边距
|
|
6428
|
+
padding: {
|
|
6429
|
+
type: Boolean,
|
|
6430
|
+
default: () => props_getConfig().table.padding
|
|
6431
|
+
},
|
|
6425
6432
|
// 是否圆角边框
|
|
6426
6433
|
round: {
|
|
6427
6434
|
type: Boolean,
|
|
@@ -16568,6 +16575,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
|
|
|
16568
16575
|
'is--fixed-left': leftList.length,
|
|
16569
16576
|
'is--fixed-right': rightList.length,
|
|
16570
16577
|
'is--animat': !!props.animat,
|
|
16578
|
+
'is--padding': props.padding,
|
|
16571
16579
|
'is--round': props.round,
|
|
16572
16580
|
'is--stripe': !treeConfig && stripe,
|
|
16573
16581
|
'is--loading': currLoading,
|
|
@@ -21656,10 +21664,11 @@ function isImmediateCell(renderOpts, params) {
|
|
|
21656
21664
|
}
|
|
21657
21665
|
function getCellLabelVNs(renderOpts, params, cellLabel) {
|
|
21658
21666
|
const {
|
|
21667
|
+
name,
|
|
21659
21668
|
placeholder
|
|
21660
21669
|
} = renderOpts;
|
|
21661
21670
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
21662
|
-
class: 'vxe-cell--label'
|
|
21671
|
+
class: ['vxe-cell--label', ['VxeTextarea', 'textarea'].includes(name) ? 'is--textarea' : '']
|
|
21663
21672
|
}, placeholder && isEmptyValue(cellLabel) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
21664
21673
|
class: 'vxe-cell--placeholder'
|
|
21665
21674
|
}, formatText(getFuncText(placeholder), 1))] : formatText(cellLabel, 1))];
|
|
@@ -22282,7 +22291,16 @@ render_renderer.mixin({
|
|
|
22282
22291
|
tableFilterDefaultMethod: handleFilterMethod
|
|
22283
22292
|
},
|
|
22284
22293
|
VxeTextarea: {
|
|
22285
|
-
tableAutoFocus: '
|
|
22294
|
+
tableAutoFocus: 'textarea',
|
|
22295
|
+
renderTableEdit: defaultEditRender,
|
|
22296
|
+
renderTableCell(renderOpts, params) {
|
|
22297
|
+
const {
|
|
22298
|
+
row,
|
|
22299
|
+
column
|
|
22300
|
+
} = params;
|
|
22301
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
22302
|
+
return getCellLabelVNs(renderOpts, params, cellValue);
|
|
22303
|
+
}
|
|
22286
22304
|
},
|
|
22287
22305
|
VxeButton: {
|
|
22288
22306
|
renderTableDefault: buttonCellRender
|
|
@@ -22866,8 +22884,11 @@ const {
|
|
|
22866
22884
|
round: child.round,
|
|
22867
22885
|
status: child.status,
|
|
22868
22886
|
content: child.name,
|
|
22869
|
-
|
|
22870
|
-
|
|
22887
|
+
title: child.title,
|
|
22888
|
+
routerLink: child.routerLink,
|
|
22889
|
+
permissionCode: child.permissionCode,
|
|
22890
|
+
prefixTooltip: child.prefixTooltip,
|
|
22891
|
+
suffixTooltip: child.suffixTooltip,
|
|
22871
22892
|
onClick: ({
|
|
22872
22893
|
$event
|
|
22873
22894
|
}) => isBtn ? btnEvent($event, child) : tolEvent($event, child)
|
|
@@ -22918,8 +22939,11 @@ const {
|
|
|
22918
22939
|
round: item.round,
|
|
22919
22940
|
status: item.status,
|
|
22920
22941
|
content: item.name,
|
|
22942
|
+
title: item.title,
|
|
22921
22943
|
routerLink: item.routerLink,
|
|
22922
22944
|
permissionCode: item.permissionCode,
|
|
22945
|
+
prefixTooltip: item.prefixTooltip,
|
|
22946
|
+
suffixTooltip: item.suffixTooltip,
|
|
22923
22947
|
destroyOnClose: item.destroyOnClose,
|
|
22924
22948
|
placement: item.placement,
|
|
22925
22949
|
transfer: item.transfer,
|
|
@@ -22981,8 +23005,11 @@ const {
|
|
|
22981
23005
|
round: item.round,
|
|
22982
23006
|
status: item.status,
|
|
22983
23007
|
content: item.name,
|
|
23008
|
+
title: item.title,
|
|
22984
23009
|
routerLink: item.routerLink,
|
|
22985
23010
|
permissionCode: item.permissionCode,
|
|
23011
|
+
prefixTooltip: item.prefixTooltip,
|
|
23012
|
+
suffixTooltip: item.suffixTooltip,
|
|
22986
23013
|
destroyOnClose: item.destroyOnClose,
|
|
22987
23014
|
placement: item.placement,
|
|
22988
23015
|
transfer: item.transfer,
|
|
@@ -24601,6 +24628,20 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24601
24628
|
});
|
|
24602
24629
|
initPages();
|
|
24603
24630
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
24631
|
+
if (true) {
|
|
24632
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
24633
|
+
if (props.formConfig) {
|
|
24634
|
+
if (!VxeUIFormComponent) {
|
|
24635
|
+
errLog('vxe.error.reqComp', ['vxe-form']);
|
|
24636
|
+
}
|
|
24637
|
+
}
|
|
24638
|
+
if (props.pagerConfig) {
|
|
24639
|
+
if (!VxeUIPagerComponent) {
|
|
24640
|
+
errLog('vxe.error.reqComp', ['vxe-pager']);
|
|
24641
|
+
}
|
|
24642
|
+
}
|
|
24643
|
+
});
|
|
24644
|
+
}
|
|
24604
24645
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
24605
24646
|
const {
|
|
24606
24647
|
columns
|
|
@@ -24620,27 +24661,13 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
24620
24661
|
$xeGrid.loadColumn(columns);
|
|
24621
24662
|
}
|
|
24622
24663
|
initToolbar();
|
|
24664
|
+
initProxy();
|
|
24623
24665
|
});
|
|
24624
24666
|
grid_globalEvents.on($xeGrid, 'keydown', handleGlobalKeydownEvent);
|
|
24625
24667
|
});
|
|
24626
24668
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
24627
24669
|
grid_globalEvents.off($xeGrid, 'keydown');
|
|
24628
24670
|
});
|
|
24629
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
24630
|
-
if (true) {
|
|
24631
|
-
if (props.formConfig) {
|
|
24632
|
-
if (!VxeUIFormComponent) {
|
|
24633
|
-
errLog('vxe.error.reqComp', ['vxe-form']);
|
|
24634
|
-
}
|
|
24635
|
-
}
|
|
24636
|
-
if (props.pagerConfig) {
|
|
24637
|
-
if (!VxeUIPagerComponent) {
|
|
24638
|
-
errLog('vxe.error.reqComp', ['vxe-pager']);
|
|
24639
|
-
}
|
|
24640
|
-
}
|
|
24641
|
-
}
|
|
24642
|
-
initProxy();
|
|
24643
|
-
});
|
|
24644
24671
|
const renderVN = () => {
|
|
24645
24672
|
const vSize = computeSize.value;
|
|
24646
24673
|
const styles = computeStyles.value;
|