vxe-table 4.3.0-beta.7 → 4.3.1
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/README.en.md +3 -3
- package/README.md +3 -3
- package/README.zh-TW.md +3 -3
- package/es/checkbox/src/checkbox.js +20 -7
- package/es/checkbox/src/group.js +14 -2
- package/es/checkbox/style.css +1 -1
- package/es/export/style.css +1 -1
- package/es/filter/style.css +1 -1
- package/es/form/src/form.js +1 -1
- package/es/form/style.css +1 -0
- package/es/grid/style.css +1 -1
- package/es/icon/src/icon.js +3 -2
- package/es/icon/style.css +73 -512
- package/es/list/src/list.js +1 -1
- package/es/loading/src/loading.js +33 -23
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/locale/lang/zh-TC.js +1 -1
- package/es/modal/src/modal.js +1 -1
- package/es/modal/style.css +2 -2
- package/es/pager/style.css +1 -1
- package/es/select/src/select.js +25 -3
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/body.js +17 -10
- package/es/table/src/props.js +2 -0
- package/es/table/src/table.js +8 -1
- package/es/table/style.css +4 -1
- package/es/toolbar/src/toolbar.js +7 -6
- package/es/toolbar/style.css +2 -2
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +74 -513
- package/es/vxe-checkbox/style.css +1 -1
- package/es/vxe-form/style.css +1 -0
- package/es/vxe-grid/style.css +1 -1
- package/es/vxe-icon/style.css +73 -512
- package/es/vxe-modal/style.css +2 -2
- package/es/vxe-module-export/style.css +1 -1
- package/es/vxe-module-filter/style.css +1 -1
- package/es/vxe-pager/style.css +1 -1
- package/es/vxe-table/style.css +4 -1
- package/es/vxe-toolbar/style.css +2 -2
- package/helper/vetur/attributes.json +17 -5
- package/helper/vetur/tags.json +10 -2
- package/lib/checkbox/src/checkbox.js +23 -7
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +21 -1
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox/style/style.css +1 -1
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/export/style/style.css +1 -1
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/style/style.css +1 -1
- package/lib/filter/style/style.min.css +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +1 -0
- package/lib/form/style/style.min.css +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/icon/src/icon.js +3 -2
- package/lib/icon/src/icon.min.js +1 -1
- package/lib/icon/style/style.css +73 -512
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +155 -51
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +1 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/src/loading.js +28 -18
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.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/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -1
- package/lib/locale/lang/zh-TC.js +1 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -1
- package/lib/modal/src/modal.js +1 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -2
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/select/src/select.js +37 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +16 -7
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/props.js +2 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +8 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +4 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +7 -6
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +2 -2
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +74 -513
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-checkbox/style/style.css +1 -1
- package/lib/vxe-checkbox/style/style.min.css +1 -1
- package/lib/vxe-form/style/style.css +1 -0
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-grid/style/style.css +1 -1
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +73 -512
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +2 -2
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-module-export/style/style.css +1 -1
- package/lib/vxe-module-export/style/style.min.css +1 -1
- package/lib/vxe-module-filter/style/style.css +1 -1
- package/lib/vxe-module-filter/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +1 -1
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +4 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/style/style.css +2 -2
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/checkbox/src/checkbox.ts +20 -7
- package/packages/checkbox/src/group.ts +18 -3
- package/packages/form/src/form.ts +1 -1
- package/packages/icon/src/icon.ts +3 -2
- package/packages/list/src/list.ts +1 -1
- package/packages/loading/src/loading.ts +34 -22
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/locale/lang/zh-TC.ts +1 -1
- package/packages/modal/src/modal.ts +1 -1
- package/packages/select/src/select.ts +27 -3
- package/packages/table/src/body.ts +15 -8
- package/packages/table/src/props.ts +2 -0
- package/packages/table/src/table.ts +9 -1
- package/packages/toolbar/src/toolbar.ts +7 -6
- package/styles/base/checked.scss +1 -1
- package/styles/form.scss +1 -0
- package/styles/icon.scss +103 -21
- package/styles/loading.scss +1 -1
- package/styles/table.scss +4 -0
- package/styles/variable.scss +2 -1
- package/types/checkbox-group.d.ts +8 -1
- package/types/icon.d.ts +2 -0
- package/types/select.d.ts +2 -0
- package/types/table.d.ts +9 -0
- package/types/toolbar.d.ts +6 -1
- package/types/v-x-e-table/index.d.ts +1 -1
package/es/table/src/body.js
CHANGED
|
@@ -44,7 +44,7 @@ export default defineComponent({
|
|
|
44
44
|
var xesize = inject('xesize', null);
|
|
45
45
|
var xID = $xetable.xID, tableProps = $xetable.props, tableContext = $xetable.context, tableReactData = $xetable.reactData, tableInternalData = $xetable.internalData;
|
|
46
46
|
var _a = $xetable.getRefMaps(), refTableHeader = _a.refTableHeader, refTableBody = _a.refTableBody, refTableFooter = _a.refTableFooter, refTableLeftBody = _a.refTableLeftBody, refTableRightBody = _a.refTableRightBody, refValidTooltip = _a.refValidTooltip;
|
|
47
|
-
var _b = $xetable.getComputeMaps(), computeEditOpts = _b.computeEditOpts, computeMouseOpts = _b.computeMouseOpts, computeSYOpts = _b.computeSYOpts, computeEmptyOpts = _b.computeEmptyOpts, computeKeyboardOpts = _b.computeKeyboardOpts, computeTooltipOpts = _b.computeTooltipOpts, computeRadioOpts = _b.computeRadioOpts, computeTreeOpts = _b.computeTreeOpts, computeCheckboxOpts = _b.computeCheckboxOpts, computeValidOpts = _b.computeValidOpts, computeRowOpts = _b.computeRowOpts, computeColumnOpts = _b.computeColumnOpts;
|
|
47
|
+
var _b = $xetable.getComputeMaps(), computeEditOpts = _b.computeEditOpts, computeMouseOpts = _b.computeMouseOpts, computeSYOpts = _b.computeSYOpts, computeEmptyOpts = _b.computeEmptyOpts, computeKeyboardOpts = _b.computeKeyboardOpts, computeTooltipOpts = _b.computeTooltipOpts, computeRadioOpts = _b.computeRadioOpts, computeExpandOpts = _b.computeExpandOpts, computeTreeOpts = _b.computeTreeOpts, computeCheckboxOpts = _b.computeCheckboxOpts, computeValidOpts = _b.computeValidOpts, computeRowOpts = _b.computeRowOpts, computeColumnOpts = _b.computeColumnOpts;
|
|
48
48
|
var refElem = ref();
|
|
49
49
|
var refBodyTable = ref();
|
|
50
50
|
var refBodyColgroup = ref();
|
|
@@ -384,25 +384,32 @@ export default defineComponent({
|
|
|
384
384
|
})));
|
|
385
385
|
// 如果行被展开了
|
|
386
386
|
if (isExpandRow) {
|
|
387
|
-
var
|
|
387
|
+
var expandOpts = computeExpandOpts.value;
|
|
388
|
+
var expandHeight = expandOpts.height;
|
|
389
|
+
var cellStyle = {};
|
|
390
|
+
if (expandHeight) {
|
|
391
|
+
cellStyle.height = "".concat(expandHeight, "px");
|
|
392
|
+
}
|
|
388
393
|
if (treeConfig) {
|
|
389
|
-
cellStyle =
|
|
390
|
-
paddingLeft: "".concat((rowLevel * treeOpts.indent) + 30, "px")
|
|
391
|
-
};
|
|
394
|
+
cellStyle.paddingLeft = "".concat((rowLevel * treeOpts.indent) + 30, "px");
|
|
392
395
|
}
|
|
393
396
|
var showOverflow = expandColumn.showOverflow;
|
|
394
397
|
var hasEllipsis = (XEUtils.isUndefined(showOverflow) || XEUtils.isNull(showOverflow)) ? allColumnOverflow : showOverflow;
|
|
395
398
|
var expandParams = { $table: $xetable, seq: seq, column: expandColumn, fixed: fixedType, type: renderType, level: rowLevel, row: row, rowIndex: rowIndex, $rowIndex: $rowIndex, _rowIndex: _rowIndex };
|
|
396
399
|
rows.push(h('tr', __assign({ class: 'vxe-body--expanded-row', key: "expand_".concat(rowid), style: rowStyle ? (XEUtils.isFunction(rowStyle) ? rowStyle(expandParams) : rowStyle) : null }, trOn), [
|
|
397
400
|
h('td', {
|
|
398
|
-
class:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
401
|
+
class: {
|
|
402
|
+
'vxe-body--expanded-column': 1,
|
|
403
|
+
'fixed--hidden': fixedType && !hasFixedColumn,
|
|
404
|
+
'col--ellipsis': hasEllipsis
|
|
405
|
+
},
|
|
402
406
|
colspan: tableColumn.length
|
|
403
407
|
}, [
|
|
404
408
|
h('div', {
|
|
405
|
-
class:
|
|
409
|
+
class: {
|
|
410
|
+
'vxe-body--expanded-cell': 1,
|
|
411
|
+
'is--ellipsis': expandHeight
|
|
412
|
+
},
|
|
406
413
|
style: cellStyle
|
|
407
414
|
}, [
|
|
408
415
|
expandColumn.renderData(expandParams)
|
package/es/table/src/props.js
CHANGED
package/es/table/src/table.js
CHANGED
|
@@ -452,6 +452,9 @@ export default defineComponent({
|
|
|
452
452
|
var computeEmptyOpts = computed(function () {
|
|
453
453
|
return Object.assign({}, GlobalConfig.table.emptyRender, props.emptyRender);
|
|
454
454
|
});
|
|
455
|
+
var computeLoadingOpts = computed(function () {
|
|
456
|
+
return Object.assign({}, GlobalConfig.table.loadingConfig, props.loadingConfig);
|
|
457
|
+
});
|
|
455
458
|
var computeCellOffsetWidth = computed(function () {
|
|
456
459
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
457
460
|
});
|
|
@@ -539,6 +542,7 @@ export default defineComponent({
|
|
|
539
542
|
computeExpandOpts: computeExpandOpts,
|
|
540
543
|
computeTreeOpts: computeTreeOpts,
|
|
541
544
|
computeEmptyOpts: computeEmptyOpts,
|
|
545
|
+
computeLoadingOpts: computeLoadingOpts,
|
|
542
546
|
computeCustomOpts: computeCustomOpts,
|
|
543
547
|
computeIsAllCheckboxDisabled: computeIsAllCheckboxDisabled
|
|
544
548
|
};
|
|
@@ -5949,6 +5953,7 @@ export default defineComponent({
|
|
|
5949
5953
|
var mouseOpts = computeMouseOpts.value;
|
|
5950
5954
|
var validOpts = computeValidOpts.value;
|
|
5951
5955
|
var validTipOpts = computeValidTipOpts.value;
|
|
5956
|
+
var loadingOpts = computeLoadingOpts.value;
|
|
5952
5957
|
var isMenu = computeIsMenu.value;
|
|
5953
5958
|
return h('div', {
|
|
5954
5959
|
ref: refElem,
|
|
@@ -6061,7 +6066,9 @@ export default defineComponent({
|
|
|
6061
6066
|
*/
|
|
6062
6067
|
h(VxeLoading, {
|
|
6063
6068
|
class: 'vxe-table--loading',
|
|
6064
|
-
|
|
6069
|
+
modelValue: loading,
|
|
6070
|
+
icon: loadingOpts.icon,
|
|
6071
|
+
text: loadingOpts.text
|
|
6065
6072
|
}),
|
|
6066
6073
|
/**
|
|
6067
6074
|
* 筛选
|
package/es/table/style.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/*switch*/
|
|
26
26
|
/*pulldown*/
|
|
27
27
|
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
28
|
-
font-size: 1.
|
|
28
|
+
font-size: 1.34em; }
|
|
29
29
|
|
|
30
30
|
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
31
31
|
color: #dcdfe6;
|
|
@@ -900,6 +900,7 @@
|
|
|
900
900
|
.vxe-table--render-default .vxe-table--expanded {
|
|
901
901
|
cursor: pointer; }
|
|
902
902
|
.vxe-table--render-default .vxe-table--expanded .vxe-table--expand-btn {
|
|
903
|
+
display: inline-block;
|
|
903
904
|
width: 1em;
|
|
904
905
|
height: 1em;
|
|
905
906
|
text-align: center;
|
|
@@ -921,6 +922,8 @@
|
|
|
921
922
|
.vxe-table--render-default .vxe-body--expanded-cell {
|
|
922
923
|
position: relative;
|
|
923
924
|
z-index: 1; }
|
|
925
|
+
.vxe-table--render-default .vxe-body--expanded-cell.is--ellipsis {
|
|
926
|
+
overflow: auto; }
|
|
924
927
|
.vxe-table--render-default .vxe-header--column.col--ellipsis > .vxe-cell,
|
|
925
928
|
.vxe-table--render-default .vxe-body--column.col--ellipsis > .vxe-cell,
|
|
926
929
|
.vxe-table--render-default .vxe-footer--column.col--ellipsis > .vxe-cell {
|
|
@@ -241,11 +241,11 @@ export default defineComponent({
|
|
|
241
241
|
var isRefresh = reactData.isRefresh;
|
|
242
242
|
var refreshOpts = computeRefreshOpts.value;
|
|
243
243
|
if (!isRefresh) {
|
|
244
|
-
var
|
|
245
|
-
if (
|
|
244
|
+
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
245
|
+
if (queryMethod) {
|
|
246
246
|
reactData.isRefresh = true;
|
|
247
247
|
try {
|
|
248
|
-
Promise.resolve(
|
|
248
|
+
Promise.resolve(queryMethod({})).catch(function (e) { return e; }).then(function () {
|
|
249
249
|
reactData.isRefresh = false;
|
|
250
250
|
});
|
|
251
251
|
}
|
|
@@ -255,7 +255,7 @@ export default defineComponent({
|
|
|
255
255
|
}
|
|
256
256
|
else if ($xegrid) {
|
|
257
257
|
reactData.isRefresh = true;
|
|
258
|
-
$xegrid.commitProxy('reload').catch(function (e) { return e; }).then(function () {
|
|
258
|
+
$xegrid.commitProxy(refreshOpts.code || 'reload').catch(function (e) { return e; }).then(function () {
|
|
259
259
|
reactData.isRefresh = false;
|
|
260
260
|
});
|
|
261
261
|
}
|
|
@@ -549,8 +549,9 @@ export default defineComponent({
|
|
|
549
549
|
nextTick(function () {
|
|
550
550
|
var refresh = props.refresh;
|
|
551
551
|
var refreshOpts = computeRefreshOpts.value;
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
553
|
+
if (refresh && !$xegrid && !queryMethod) {
|
|
554
|
+
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
554
555
|
}
|
|
555
556
|
});
|
|
556
557
|
var renderVN = function () {
|
package/es/toolbar/style.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/*switch*/
|
|
25
25
|
/*pulldown*/
|
|
26
26
|
.vxe-custom--option .vxe-checkbox--icon {
|
|
27
|
-
font-size: 1.
|
|
27
|
+
font-size: 1.34em; }
|
|
28
28
|
|
|
29
29
|
.vxe-custom--option .vxe-checkbox--icon {
|
|
30
30
|
color: #dcdfe6;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
-moz-user-select: none;
|
|
89
89
|
-ms-user-select: none;
|
|
90
90
|
user-select: none;
|
|
91
|
-
background-color: rgba(
|
|
91
|
+
background-color: rgba(255, 255, 255, 0.5); }
|
|
92
92
|
.vxe-toolbar .vxe-buttons--wrapper {
|
|
93
93
|
flex-grow: 1; }
|
|
94
94
|
.vxe-toolbar .vxe-buttons--wrapper > .vxe-button + .vxe-button--item,
|
package/es/tools/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import GlobalConfig from '../v-x-e-table/src/conf';
|
|
2
2
|
export function getLog(message, params) {
|
|
3
|
-
return "[vxe-table v".concat("4.3.
|
|
3
|
+
return "[vxe-table v".concat("4.3.1", "] ").concat(GlobalConfig.i18n(message, params));
|
|
4
4
|
}
|
|
5
5
|
function outLog(type) {
|
|
6
6
|
return function (message, params) {
|