vxe-table 3.19.43 → 3.19.45
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/ar-EG.js +4 -0
- package/es/locale/lang/de-DE.js +4 -0
- package/es/locale/lang/en-US.js +4 -0
- package/es/locale/lang/es-ES.js +4 -0
- package/es/locale/lang/fr-FR.js +4 -0
- package/es/locale/lang/hu-HU.js +4 -0
- package/es/locale/lang/hy-AM.js +4 -0
- package/es/locale/lang/id-ID.js +4 -0
- package/es/locale/lang/it-IT.js +4 -0
- package/es/locale/lang/ja-JP.js +4 -0
- package/es/locale/lang/ko-KR.js +4 -0
- package/es/locale/lang/ms-MY.js +4 -0
- package/es/locale/lang/nb-NO.js +4 -0
- package/es/locale/lang/pt-BR.js +4 -0
- package/es/locale/lang/ru-RU.js +4 -0
- package/es/locale/lang/th-TH.js +4 -0
- package/es/locale/lang/ug-CN.js +4 -0
- package/es/locale/lang/uk-UA.js +4 -0
- package/es/locale/lang/uz-UZ.js +4 -0
- package/es/locale/lang/vi-VN.js +4 -0
- package/es/locale/lang/zh-CHT.js +4 -0
- package/es/locale/lang/zh-CN.js +4 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/filter/panel.js +12 -3
- package/es/table/render/index.js +11 -0
- package/es/table/src/table.js +4 -1
- package/es/table/style.css +1 -1
- package/es/table/style.min.css +1 -1
- package/es/toolbar/style.css +5 -1
- package/es/toolbar/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 +1 -1
- package/es/vxe-table/style.min.css +1 -1
- package/es/vxe-toolbar/style.css +5 -1
- package/es/vxe-toolbar/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +41 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +4 -0
- package/lib/locale/lang/de-DE.js +4 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +4 -0
- package/lib/locale/lang/en-US.js +4 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -0
- package/lib/locale/lang/es-ES.js +4 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -0
- package/lib/locale/lang/fr-FR.js +4 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +4 -0
- package/lib/locale/lang/hu-HU.js +4 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -0
- package/lib/locale/lang/hy-AM.js +4 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +4 -0
- package/lib/locale/lang/id-ID.js +4 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +4 -0
- package/lib/locale/lang/it-IT.js +4 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +4 -0
- package/lib/locale/lang/ja-JP.js +4 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -0
- package/lib/locale/lang/ko-KR.js +4 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -0
- package/lib/locale/lang/ms-MY.js +4 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +4 -0
- package/lib/locale/lang/nb-NO.js +4 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +4 -0
- package/lib/locale/lang/pt-BR.js +4 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -0
- package/lib/locale/lang/ru-RU.js +4 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -0
- package/lib/locale/lang/th-TH.js +4 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +4 -0
- package/lib/locale/lang/ug-CN.js +4 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +4 -0
- package/lib/locale/lang/uk-UA.js +4 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -0
- package/lib/locale/lang/uz-UZ.js +4 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +4 -0
- package/lib/locale/lang/vi-VN.js +4 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +4 -0
- package/lib/locale/lang/zh-CHT.js +4 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +4 -0
- package/lib/locale/lang/zh-CN.js +4 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/filter/panel.js +16 -3
- package/lib/table/module/filter/panel.min.js +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 +5 -1
- 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/toolbar/style/style.css +5 -1
- package/lib/toolbar/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 +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/style/style.css +5 -1
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +4 -0
- package/packages/locale/lang/de-DE.ts +4 -0
- package/packages/locale/lang/en-US.ts +4 -0
- package/packages/locale/lang/es-ES.ts +4 -0
- package/packages/locale/lang/fr-FR.ts +4 -0
- package/packages/locale/lang/hu-HU.ts +4 -0
- package/packages/locale/lang/hy-AM.ts +4 -0
- package/packages/locale/lang/id-ID.ts +4 -0
- package/packages/locale/lang/it-IT.ts +4 -0
- package/packages/locale/lang/ja-JP.ts +4 -0
- package/packages/locale/lang/ko-KR.ts +4 -0
- package/packages/locale/lang/ms-MY.ts +4 -0
- package/packages/locale/lang/nb-NO.ts +4 -0
- package/packages/locale/lang/pt-BR.ts +4 -0
- package/packages/locale/lang/ru-RU.ts +4 -0
- package/packages/locale/lang/th-TH.ts +4 -0
- package/packages/locale/lang/ug-CN.ts +4 -0
- package/packages/locale/lang/uk-UA.ts +4 -0
- package/packages/locale/lang/uz-UZ.ts +4 -0
- package/packages/locale/lang/vi-VN.ts +4 -0
- package/packages/locale/lang/zh-CHT.ts +4 -0
- package/packages/locale/lang/zh-CN.ts +4 -0
- package/packages/table/module/filter/panel.ts +11 -3
- package/packages/table/render/index.ts +12 -0
- package/packages/table/src/table.ts +4 -1
- package/styles/components/table-module/filter.scss +1 -1
- package/styles/components/toolbar.scss +5 -1
- package/styles/theme/base.scss +4 -0
- /package/es/{iconfont.1768291198674.ttf → iconfont.1768899685524.ttf} +0 -0
- /package/es/{iconfont.1768291198674.woff → iconfont.1768899685524.woff} +0 -0
- /package/es/{iconfont.1768291198674.woff2 → iconfont.1768899685524.woff2} +0 -0
- /package/lib/{iconfont.1768291198674.ttf → iconfont.1768899685524.ttf} +0 -0
- /package/lib/{iconfont.1768291198674.woff → iconfont.1768899685524.woff} +0 -0
- /package/lib/{iconfont.1768291198674.woff2 → iconfont.1768899685524.woff2} +0 -0
|
@@ -4,6 +4,7 @@ import { formatText, isEnableConf } from '../../../ui/src/utils';
|
|
|
4
4
|
import { getPropClass, toCssUnit } from '../../../ui/src/dom';
|
|
5
5
|
import { getSlotVNs } from '../../../ui/src/vn';
|
|
6
6
|
import { warnLog } from '../../../ui/src/log';
|
|
7
|
+
import XEUtils from 'xe-utils';
|
|
7
8
|
const { getI18n, getIcon, renderer, globalMixins, renderEmptyElement } = VxeUI;
|
|
8
9
|
// 全部筛选事件
|
|
9
10
|
function filterCheckAllEvent($xeFilterPanel, evnt, value) {
|
|
@@ -234,9 +235,17 @@ export default {
|
|
|
234
235
|
const filterOpts = $xeTable.computeFilterOpts;
|
|
235
236
|
const hasCheckOption = $xeFilterPanel.computeHasCheckOption;
|
|
236
237
|
const { filterRender, filterMultiple } = column;
|
|
238
|
+
const { confirmButtonText, resetButtonText, showFooter } = filterOpts;
|
|
237
239
|
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null;
|
|
238
240
|
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
239
|
-
|
|
241
|
+
let showFlFoot = !!filterMultiple;
|
|
242
|
+
if (XEUtils.isBoolean(showFooter)) {
|
|
243
|
+
showFlFoot = showFooter;
|
|
244
|
+
}
|
|
245
|
+
else if (compConf) {
|
|
246
|
+
showFlFoot = !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false);
|
|
247
|
+
}
|
|
248
|
+
return showFlFoot
|
|
240
249
|
? [
|
|
241
250
|
h('div', {
|
|
242
251
|
class: 'vxe-table--filter-footer'
|
|
@@ -251,12 +260,12 @@ export default {
|
|
|
251
260
|
on: {
|
|
252
261
|
click: $xeFilterPanel.confirmFilter
|
|
253
262
|
}
|
|
254
|
-
},
|
|
263
|
+
}, confirmButtonText || getI18n('vxe.table.confirmFilter')),
|
|
255
264
|
h('button', {
|
|
256
265
|
on: {
|
|
257
266
|
click: $xeFilterPanel.resetFilter
|
|
258
267
|
}
|
|
259
|
-
},
|
|
268
|
+
}, resetButtonText || getI18n('vxe.table.resetFilter'))
|
|
260
269
|
])
|
|
261
270
|
]
|
|
262
271
|
: [];
|
package/es/table/render/index.js
CHANGED
|
@@ -725,6 +725,16 @@ function handleNumberCell(h, renderOpts, params) {
|
|
|
725
725
|
}
|
|
726
726
|
: {});
|
|
727
727
|
}
|
|
728
|
+
function handleFormatDatePicker(renderOpts, params) {
|
|
729
|
+
const { props = {} } = renderOpts;
|
|
730
|
+
const { cellValue } = params;
|
|
731
|
+
if (cellValue) {
|
|
732
|
+
if (props.type !== 'time') {
|
|
733
|
+
return getLabelFormatDate(cellValue, props);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return cellValue;
|
|
737
|
+
}
|
|
728
738
|
function handleFormatSelect(renderOpts, params) {
|
|
729
739
|
const { cellValue } = params;
|
|
730
740
|
return handleSelectCellValue(cellValue, renderOpts);
|
|
@@ -954,6 +964,7 @@ renderer.mixin({
|
|
|
954
964
|
}
|
|
955
965
|
return getCellLabelVNs(h, renderOpts, params, cellValue);
|
|
956
966
|
},
|
|
967
|
+
tableCellFormatter: handleFormatDatePicker,
|
|
957
968
|
renderTableDefault: defaultEditRender,
|
|
958
969
|
createTableFilterOptions: defaultFilterOptions,
|
|
959
970
|
renderTableFilter: defaultFilterRender,
|
package/es/table/src/table.js
CHANGED
|
@@ -1624,7 +1624,7 @@ export default {
|
|
|
1624
1624
|
const internalData = $xeTable;
|
|
1625
1625
|
XEUtils.assign(internalData, createInternalData());
|
|
1626
1626
|
handleKeyField($xeTable);
|
|
1627
|
-
const { exportConfig, importConfig, treeConfig } = props;
|
|
1627
|
+
const { exportConfig, importConfig, treeConfig, minHeight } = props;
|
|
1628
1628
|
const { scrollXStore, scrollYStore } = internalData;
|
|
1629
1629
|
const columnOpts = $xeTable.computeColumnOpts;
|
|
1630
1630
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
@@ -1793,6 +1793,9 @@ export default {
|
|
|
1793
1793
|
if (checkboxOpts.halfField) {
|
|
1794
1794
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
1795
1795
|
}
|
|
1796
|
+
if (props.editConfig && isEnableConf(editOpts) && props.editRules && (minHeight === 0 || minHeight === '0')) {
|
|
1797
|
+
warnLog('vxe.error.reqSupportProp', ['edit-config & edit-rules', 'min-height']);
|
|
1798
|
+
}
|
|
1796
1799
|
if (treeConfig) {
|
|
1797
1800
|
XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
|
|
1798
1801
|
const val = treeOpts[key];
|
package/es/table/style.css
CHANGED
|
@@ -1523,7 +1523,7 @@
|
|
|
1523
1523
|
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
1524
1524
|
color: var(--vxe-ui-font-color);
|
|
1525
1525
|
box-shadow: var(--vxe-ui-base-popup-box-shadow);
|
|
1526
|
-
z-index:
|
|
1526
|
+
z-index: 15;
|
|
1527
1527
|
}
|
|
1528
1528
|
.vxe-table--filter-wrapper:not(.is--multiple) .vxe-table--filter-header,
|
|
1529
1529
|
.vxe-table--filter-wrapper:not(.is--multiple) .vxe-table--filter-body {
|