vxe-table 3.13.2 → 3.13.4
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 +20 -1
- 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 +20 -1
- 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-CHT.umd.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 +20 -1
- 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 +20 -1
- 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 +30 -1
- package/styles/theme/base.scss +1 -0
- /package/es/{iconfont.1739871566624.ttf → iconfont.1740013687420.ttf} +0 -0
- /package/es/{iconfont.1739871566624.woff → iconfont.1740013687420.woff} +0 -0
- /package/es/{iconfont.1739871566624.woff2 → iconfont.1740013687420.woff2} +0 -0
- /package/lib/{iconfont.1739871566624.ttf → iconfont.1740013687420.ttf} +0 -0
- /package/lib/{iconfont.1739871566624.woff → iconfont.1740013687420.woff} +0 -0
- /package/lib/{iconfont.1739871566624.woff2 → iconfont.1740013687420.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.13.
|
|
2223
|
+
const version = "3.13.4";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
2225
|
core_.VxeUI.tableVersion = version;
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
@@ -2843,7 +2843,7 @@ function isNodeElement(elem) {
|
|
|
2843
2843
|
const {
|
|
2844
2844
|
log: log_log
|
|
2845
2845
|
} = core_.VxeUI;
|
|
2846
|
-
const log_version = `table v${"3.13.
|
|
2846
|
+
const log_version = `table v${"3.13.4"}`;
|
|
2847
2847
|
const warnLog = log_log.create('warn', log_version);
|
|
2848
2848
|
const errLog = log_log.create('error', log_version);
|
|
2849
2849
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -16342,7 +16342,6 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
16342
16342
|
} = props;
|
|
16343
16343
|
const {
|
|
16344
16344
|
resizable: allResizable,
|
|
16345
|
-
border,
|
|
16346
16345
|
columnKey,
|
|
16347
16346
|
headerCellClassName,
|
|
16348
16347
|
headerCellStyle,
|
|
@@ -16502,9 +16501,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
16502
16501
|
* 列宽拖动
|
|
16503
16502
|
*/
|
|
16504
16503
|
!fixedHiddenColumn && showResizable ? h('div', {
|
|
16505
|
-
class:
|
|
16506
|
-
'is--line': !border || border === 'none'
|
|
16507
|
-
}],
|
|
16504
|
+
class: 'vxe-cell--col-resizable',
|
|
16508
16505
|
on: {
|
|
16509
16506
|
mousedown: evnt => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
16510
16507
|
dblclick: evnt => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
@@ -29513,12 +29510,12 @@ function getCellEditFilterProps(renderOpts, params, value, defaultProps) {
|
|
|
29513
29510
|
function isImmediateCell(renderOpts, params) {
|
|
29514
29511
|
return params.$type === 'cell' || getInputImmediateModel(renderOpts);
|
|
29515
29512
|
}
|
|
29516
|
-
function getCellLabelVNs(h, renderOpts, params, cellLabel) {
|
|
29513
|
+
function getCellLabelVNs(h, renderOpts, params, cellLabel, opts) {
|
|
29517
29514
|
const {
|
|
29518
29515
|
placeholder
|
|
29519
29516
|
} = renderOpts;
|
|
29520
29517
|
return [h('span', {
|
|
29521
|
-
class: 'vxe-cell--label'
|
|
29518
|
+
class: ['vxe-cell--label', opts ? opts.class : '']
|
|
29522
29519
|
}, placeholder && isEmptyValue(cellLabel) ? [h('span', {
|
|
29523
29520
|
class: 'vxe-cell--placeholder'
|
|
29524
29521
|
}, formatText(getFuncText(placeholder), 1))] : formatText(cellLabel, 1))];
|
|
@@ -30179,7 +30176,8 @@ render_renderer.mixin({
|
|
|
30179
30176
|
renderTableEdit: defaultEditRender,
|
|
30180
30177
|
renderTableCell(h, renderOpts, params) {
|
|
30181
30178
|
const {
|
|
30182
|
-
props = {}
|
|
30179
|
+
props = {},
|
|
30180
|
+
showNegativeStatus
|
|
30183
30181
|
} = renderOpts;
|
|
30184
30182
|
const {
|
|
30185
30183
|
row,
|
|
@@ -30189,7 +30187,8 @@ render_renderer.mixin({
|
|
|
30189
30187
|
type
|
|
30190
30188
|
} = props;
|
|
30191
30189
|
let cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
30192
|
-
|
|
30190
|
+
let isNegative = false;
|
|
30191
|
+
if (!isEmptyValue(cellValue)) {
|
|
30193
30192
|
const numberInputConfig = render_getConfig().numberInput || {};
|
|
30194
30193
|
if (type === 'float') {
|
|
30195
30194
|
const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
|
|
@@ -30198,11 +30197,22 @@ render_renderer.mixin({
|
|
|
30198
30197
|
if (!autoFill) {
|
|
30199
30198
|
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
|
|
30200
30199
|
}
|
|
30200
|
+
if (showNegativeStatus) {
|
|
30201
|
+
if (cellValue < 0) {
|
|
30202
|
+
isNegative = true;
|
|
30203
|
+
}
|
|
30204
|
+
}
|
|
30201
30205
|
} else if (type === 'amount') {
|
|
30202
30206
|
const autoFill = handleDefaultValue(props.autoFill, numberInputConfig.autoFill, true);
|
|
30203
30207
|
const digits = handleDefaultValue(props.digits, numberInputConfig.digits, 2);
|
|
30204
30208
|
const showCurrency = handleDefaultValue(props.showCurrency, numberInputConfig.showCurrency, false);
|
|
30205
|
-
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
30209
|
+
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue);
|
|
30210
|
+
if (showNegativeStatus) {
|
|
30211
|
+
if (cellValue < 0) {
|
|
30212
|
+
isNegative = true;
|
|
30213
|
+
}
|
|
30214
|
+
}
|
|
30215
|
+
cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().commafy(cellValue, {
|
|
30206
30216
|
digits
|
|
30207
30217
|
});
|
|
30208
30218
|
if (!autoFill) {
|
|
@@ -30215,9 +30225,17 @@ render_renderer.mixin({
|
|
|
30215
30225
|
if (showCurrency) {
|
|
30216
30226
|
cellValue = `${props.currencySymbol || numberInputConfig.currencySymbol || render_getI18n('vxe.numberInput.currencySymbol') || ''}${cellValue}`;
|
|
30217
30227
|
}
|
|
30228
|
+
} else {
|
|
30229
|
+
if (showNegativeStatus) {
|
|
30230
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellValue) < 0) {
|
|
30231
|
+
isNegative = true;
|
|
30232
|
+
}
|
|
30233
|
+
}
|
|
30218
30234
|
}
|
|
30219
30235
|
}
|
|
30220
|
-
return getCellLabelVNs(h, renderOpts, params, cellValue
|
|
30236
|
+
return getCellLabelVNs(h, renderOpts, params, cellValue, isNegative ? {
|
|
30237
|
+
class: 'is--negative'
|
|
30238
|
+
} : {});
|
|
30221
30239
|
},
|
|
30222
30240
|
renderTableFooter(h, renderOpts, params) {
|
|
30223
30241
|
const {
|
|
@@ -30965,7 +30983,7 @@ const Toolbar = VxeToolbar;
|
|
|
30965
30983
|
}
|
|
30966
30984
|
},
|
|
30967
30985
|
numberInput: {
|
|
30968
|
-
currencySymbol: '
|
|
30986
|
+
currencySymbol: '¥'
|
|
30969
30987
|
},
|
|
30970
30988
|
imagePreview: {
|
|
30971
30989
|
popupTitle: '预览',
|