vxe-table 4.11.4 → 4.11.5
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +29 -6
- package/es/table/src/header.js +2 -4
- package/es/table/style.css +19 -0
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +19 -0
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +31 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +27 -6
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/header.js +1 -4
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/style/style.css +19 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- 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 +19 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/render/index.ts +30 -6
- package/packages/table/src/header.ts +2 -4
- package/styles/components/table.scss +29 -0
- package/styles/theme/base.scss +1 -0
- package/styles/variable.scss +1 -0
- /package/es/{iconfont.1739938274682.ttf → iconfont.1740013709563.ttf} +0 -0
- /package/es/{iconfont.1739938274682.woff → iconfont.1740013709563.woff} +0 -0
- /package/es/{iconfont.1739938274682.woff2 → iconfont.1740013709563.woff2} +0 -0
- /package/lib/{iconfont.1739938274682.ttf → iconfont.1740013709563.ttf} +0 -0
- /package/lib/{iconfont.1739938274682.woff → iconfont.1740013709563.woff} +0 -0
- /package/lib/{iconfont.1739938274682.woff2 → iconfont.1740013709563.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.11.
|
|
3141
|
+
const version = "4.11.5";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3586,7 +3586,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3586
3586
|
const {
|
|
3587
3587
|
log: log_log
|
|
3588
3588
|
} = core_.VxeUI;
|
|
3589
|
-
const log_version = `table v${"4.11.
|
|
3589
|
+
const log_version = `table v${"4.11.5"}`;
|
|
3590
3590
|
const warnLog = log_log.create('warn', log_version);
|
|
3591
3591
|
const errLog = log_log.create('error', log_version);
|
|
3592
3592
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7134,7 +7134,6 @@ const header_renderType = 'header';
|
|
|
7134
7134
|
} = props;
|
|
7135
7135
|
const {
|
|
7136
7136
|
resizable: allResizable,
|
|
7137
|
-
border,
|
|
7138
7137
|
columnKey,
|
|
7139
7138
|
headerCellClassName,
|
|
7140
7139
|
headerCellStyle,
|
|
@@ -7291,9 +7290,7 @@ const header_renderType = 'header';
|
|
|
7291
7290
|
* 列宽拖动
|
|
7292
7291
|
*/
|
|
7293
7292
|
!fixedHiddenColumn && showResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7294
|
-
class:
|
|
7295
|
-
'is--line': !border || border === 'none'
|
|
7296
|
-
}],
|
|
7293
|
+
class: 'vxe-cell--col-resizable',
|
|
7297
7294
|
onMousedown: evnt => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
7298
7295
|
onDblclick: evnt => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
7299
7296
|
}) : header_renderEmptyElement($xeTable)]);
|
|
@@ -27515,12 +27512,12 @@ function getCellEditFilterProps(renderOpts, params, value, defaultProps) {
|
|
|
27515
27512
|
function isImmediateCell(renderOpts, params) {
|
|
27516
27513
|
return params.$type === 'cell' || getInputImmediateModel(renderOpts);
|
|
27517
27514
|
}
|
|
27518
|
-
function getCellLabelVNs(renderOpts, params, cellLabel) {
|
|
27515
|
+
function getCellLabelVNs(renderOpts, params, cellLabel, opts) {
|
|
27519
27516
|
const {
|
|
27520
27517
|
placeholder
|
|
27521
27518
|
} = renderOpts;
|
|
27522
27519
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
27523
|
-
class: 'vxe-cell--label'
|
|
27520
|
+
class: ['vxe-cell--label', opts ? opts.class : '']
|
|
27524
27521
|
}, placeholder && isEmptyValue(cellLabel) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
27525
27522
|
class: 'vxe-cell--placeholder'
|
|
27526
27523
|
}, formatText(getFuncText(placeholder), 1))] : formatText(cellLabel, 1))];
|
|
@@ -28169,7 +28166,8 @@ render_renderer.mixin({
|
|
|
28169
28166
|
renderTableEdit: defaultEditRender,
|
|
28170
28167
|
renderTableCell(renderOpts, params) {
|
|
28171
28168
|
const {
|
|
28172
|
-
props = {}
|
|
28169
|
+
props = {},
|
|
28170
|
+
showNegativeStatus
|
|
28173
28171
|
} = renderOpts;
|
|
28174
28172
|
const {
|
|
28175
28173
|
row,
|
|
@@ -28179,7 +28177,8 @@ render_renderer.mixin({
|
|
|
28179
28177
|
type
|
|
28180
28178
|
} = props;
|
|
28181
28179
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
28182
|
-
|
|
28180
|
+
let isNegative = false;
|
|
28181
|
+
if (!isEmptyValue(cellValue)) {
|
|
28183
28182
|
const numberInputConfig = render_getConfig().numberInput || {};
|
|
28184
28183
|
if (type === 'float') {
|
|
28185
28184
|
const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
|
|
@@ -28188,11 +28187,22 @@ render_renderer.mixin({
|
|
|
28188
28187
|
if (!autoFill) {
|
|
28189
28188
|
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
|
|
28190
28189
|
}
|
|
28190
|
+
if (showNegativeStatus) {
|
|
28191
|
+
if (cellValue < 0) {
|
|
28192
|
+
isNegative = true;
|
|
28193
|
+
}
|
|
28194
|
+
}
|
|
28191
28195
|
} else if (type === 'amount') {
|
|
28192
28196
|
const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
|
|
28193
28197
|
const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
|
|
28194
28198
|
const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
|
|
28195
|
-
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
28199
|
+
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
|
|
28200
|
+
if (showNegativeStatus) {
|
|
28201
|
+
if (cellValue < 0) {
|
|
28202
|
+
isNegative = true;
|
|
28203
|
+
}
|
|
28204
|
+
}
|
|
28205
|
+
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(cellValue, {
|
|
28196
28206
|
digits
|
|
28197
28207
|
});
|
|
28198
28208
|
if (!autoFill) {
|
|
@@ -28205,9 +28215,17 @@ render_renderer.mixin({
|
|
|
28205
28215
|
if (showCurrency) {
|
|
28206
28216
|
cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
|
|
28207
28217
|
}
|
|
28218
|
+
} else {
|
|
28219
|
+
if (showNegativeStatus) {
|
|
28220
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue) < 0) {
|
|
28221
|
+
isNegative = true;
|
|
28222
|
+
}
|
|
28223
|
+
}
|
|
28208
28224
|
}
|
|
28209
28225
|
}
|
|
28210
|
-
return getCellLabelVNs(renderOpts, params, cellValue
|
|
28226
|
+
return getCellLabelVNs(renderOpts, params, cellValue, isNegative ? {
|
|
28227
|
+
class: 'is--negative'
|
|
28228
|
+
} : {});
|
|
28211
28229
|
},
|
|
28212
28230
|
renderTableFooter(renderOpts, params) {
|
|
28213
28231
|
const {
|
|
@@ -31203,7 +31221,7 @@ const Grid = VxeGrid;
|
|
|
31203
31221
|
}
|
|
31204
31222
|
},
|
|
31205
31223
|
numberInput: {
|
|
31206
|
-
currencySymbol: '
|
|
31224
|
+
currencySymbol: '¥'
|
|
31207
31225
|
},
|
|
31208
31226
|
imagePreview: {
|
|
31209
31227
|
popupTitle: '预览',
|