vxe-table 4.2.8 → 4.3.0-beta.2
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/button/src/button.js +14 -14
- package/es/button/style.css +1 -58
- package/es/checkbox/src/checkbox.js +7 -4
- package/es/checkbox/style.css +37 -58
- package/es/edit/src/hook.js +29 -13
- package/es/export/src/export-panel.js +10 -20
- package/es/export/src/hook.js +45 -45
- package/es/export/src/import-panel.js +2 -2
- package/es/export/src/util.js +7 -7
- package/es/export/style.css +27 -82
- package/es/filter/src/hook.js +5 -5
- package/es/filter/src/panel.js +9 -17
- package/es/filter/style.css +27 -79
- package/es/footer/src/footer.js +15 -15
- package/es/form/src/form-config-item.js +8 -7
- package/es/form/src/form-item.js +8 -7
- package/es/form/src/form.js +8 -6
- package/es/form/style.css +0 -3
- package/es/grid/src/grid.js +18 -13
- package/es/grid/style.css +1 -1
- package/es/header/src/header.js +18 -18
- package/es/header/style.css +0 -95
- package/es/icon/style.css +379 -0
- package/es/input/src/input.js +26 -26
- package/es/input/style.css +13 -4
- package/es/keyboard/src/hook.js +7 -7
- package/es/list/src/list.js +5 -5
- package/es/loading/src/loading.js +1 -1
- package/es/menu/src/hooks.js +9 -9
- package/es/menu/src/panel.js +2 -2
- package/es/modal/src/modal.js +52 -51
- package/es/modal/style.css +2 -3
- package/es/pager/src/pager.js +3 -3
- package/es/pager/style.css +4 -2
- package/es/pulldown/src/pulldown.js +7 -7
- package/es/radio/src/button.js +1 -1
- package/es/radio/src/radio.js +5 -4
- package/es/radio/style.css +32 -55
- package/es/select/src/select.js +13 -12
- package/es/select/style.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +1 -1
- package/es/table/src/body.js +38 -34
- package/es/table/src/cell.js +16 -28
- package/es/table/src/columnInfo.js +4 -4
- package/es/table/src/table.js +65 -60
- package/es/table/src/util.js +2 -2
- package/es/table/style.css +160 -139
- package/es/textarea/src/textarea.js +5 -5
- package/es/toolbar/src/toolbar.js +17 -24
- package/es/toolbar/style.css +28 -80
- package/es/tools/dom.js +2 -2
- package/es/tools/log.js +1 -1
- package/es/tools/vn.js +7 -0
- package/es/tooltip/src/tooltip.js +22 -10
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/src/conf.js +43 -38
- package/es/v-x-e-table/src/interceptor.js +1 -1
- package/es/v-x-e-table/src/renderer.js +19 -15
- package/es/v-x-e-table/style.css +405 -2
- package/lib/button/src/button.js +10 -10
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +1 -58
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/src/checkbox.js +5 -3
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/style/style.css +37 -58
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/edit/src/hook.js +14 -13
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/export/src/export-panel.js +11 -17
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/hook.js +50 -50
- package/lib/export/src/hook.min.js +1 -1
- package/lib/export/src/import-panel.js +3 -3
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/util.js +4 -4
- package/lib/export/src/util.min.js +1 -1
- package/lib/export/style/style.css +27 -82
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/src/hook.js +5 -5
- package/lib/filter/src/hook.min.js +1 -1
- package/lib/filter/src/panel.js +11 -15
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +27 -79
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/src/footer.js +14 -14
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/src/form-config-item.js +9 -7
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +9 -7
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +9 -6
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +0 -3
- package/lib/form/style/style.min.css +1 -1
- package/lib/grid/src/grid.js +17 -13
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/src/header.js +17 -17
- package/lib/header/src/header.min.js +1 -1
- package/lib/header/style/style.css +0 -95
- package/lib/header/style/style.min.css +0 -1
- package/lib/icon/style/style.css +379 -0
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +163 -159
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +23 -23
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +13 -4
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/src/hook.js +7 -7
- package/lib/keyboard/src/hook.min.js +1 -1
- package/lib/list/src/list.js +5 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/menu/src/hooks.js +9 -9
- package/lib/menu/src/hooks.min.js +1 -1
- package/lib/menu/src/panel.js +2 -2
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/modal/src/modal.js +55 -53
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -3
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/src/pager.js +2 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +4 -2
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/src/pulldown.js +7 -7
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/src/button.js +1 -1
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +4 -4
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/radio/style/style.css +32 -55
- package/lib/radio/style/style.min.css +1 -1
- package/lib/select/src/select.js +14 -12
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +1 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +1 -1
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/src/body.js +36 -34
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +21 -29
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +4 -4
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +65 -61
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +160 -139
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +6 -6
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +20 -22
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +28 -80
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +2 -2
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/vn.js +13 -0
- package/lib/tools/vn.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +22 -8
- package/lib/tooltip/src/tooltip.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/src/conf.js +43 -38
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +1 -1
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +18 -16
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +405 -2
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/package.json +6 -6
- package/packages/checkbox/src/checkbox.ts +7 -4
- package/packages/edit/src/hook.ts +18 -6
- package/packages/export/src/export-panel.ts +9 -19
- package/packages/filter/src/panel.ts +8 -16
- package/packages/form/src/form-config-item.ts +4 -3
- package/packages/form/src/form-item.ts +4 -3
- package/packages/form/src/form.ts +6 -4
- package/packages/grid/src/grid.ts +2 -1
- package/packages/input/src/input.ts +3 -3
- package/packages/modal/src/modal.ts +5 -4
- package/packages/radio/src/radio.ts +4 -3
- package/packages/select/src/select.ts +2 -1
- package/packages/table/src/cell.ts +18 -35
- package/packages/table/src/table.ts +11 -10
- package/packages/toolbar/src/toolbar.ts +14 -21
- package/packages/tools/vn.ts +10 -0
- package/packages/tooltip/src/tooltip.ts +8 -4
- package/packages/v-x-e-table/src/conf.ts +43 -38
- package/styles/base/checked.scss +44 -148
- package/styles/button.scss +1 -43
- package/styles/checkbox.scss +6 -65
- package/styles/export.scss +2 -9
- package/styles/filter.scss +2 -6
- package/styles/form.scss +0 -3
- package/styles/header.scss +0 -134
- package/styles/icon.scss +509 -713
- package/styles/input.scss +8 -0
- package/styles/modal.scss +0 -1
- package/styles/old-icon.scss +713 -0
- package/styles/pager.scss +2 -0
- package/styles/radio.scss +9 -77
- package/styles/select.scss +1 -0
- package/styles/table.scss +144 -21
- package/styles/toolbar.scss +2 -6
- package/styles/variable.scss +5 -5
- package/types/all.d.ts +6 -0
- package/types/column.d.ts +11 -11
- package/types/component.d.ts +3 -1
- package/types/form-item.d.ts +1 -0
- package/types/form.d.ts +6 -2
- package/types/grid.d.ts +4 -4
- package/types/table.d.ts +2 -2
- package/types/v-x-e-table/renderer.d.ts +3 -2
package/es/export/src/hook.js
CHANGED
|
@@ -88,19 +88,19 @@ function getFooterData(opts, footerTableData) {
|
|
|
88
88
|
function getCsvCellTypeLabel(column, cellValue) {
|
|
89
89
|
if (cellValue) {
|
|
90
90
|
if (column.type === 'seq') {
|
|
91
|
-
return "\t"
|
|
91
|
+
return "\t".concat(cellValue);
|
|
92
92
|
}
|
|
93
93
|
switch (column.cellType) {
|
|
94
94
|
case 'string':
|
|
95
95
|
if (!isNaN(cellValue)) {
|
|
96
|
-
return "\t"
|
|
96
|
+
return "\t".concat(cellValue);
|
|
97
97
|
}
|
|
98
98
|
break;
|
|
99
99
|
case 'number':
|
|
100
100
|
break;
|
|
101
101
|
default:
|
|
102
102
|
if (cellValue.length >= 12 && !isNaN(cellValue)) {
|
|
103
|
-
return "\t"
|
|
103
|
+
return "\t".concat(cellValue);
|
|
104
104
|
}
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
@@ -109,7 +109,7 @@ function getCsvCellTypeLabel(column, cellValue) {
|
|
|
109
109
|
}
|
|
110
110
|
function toTxtCellLabel(val) {
|
|
111
111
|
if (/[",\s\n]/.test(val)) {
|
|
112
|
-
return "\""
|
|
112
|
+
return "\"".concat(val.replace(/"/g, '""'), "\"");
|
|
113
113
|
}
|
|
114
114
|
return val;
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ function getElementsByTagName(elem, qualifiedName) {
|
|
|
117
117
|
return elem.getElementsByTagName(qualifiedName);
|
|
118
118
|
}
|
|
119
119
|
function getTxtCellKey(now) {
|
|
120
|
-
return "#"
|
|
120
|
+
return "#".concat(now, "@").concat(XEUtils.uniqueId());
|
|
121
121
|
}
|
|
122
122
|
function replaceTxtCell(cell, vMaps) {
|
|
123
123
|
return cell.replace(/#\d+@\d+/g, function (key) { return XEUtils.hasOwnProp(vMaps, key) ? vMaps[key] : key; });
|
|
@@ -496,19 +496,19 @@ var tableExportHook = {
|
|
|
496
496
|
var allCls = 'check-all';
|
|
497
497
|
var clss = [
|
|
498
498
|
'vxe-table',
|
|
499
|
-
"border--"
|
|
499
|
+
"border--".concat(toTableBorder(border)),
|
|
500
500
|
isPrint ? 'is--print' : '',
|
|
501
501
|
isHeader ? 'is--header' : ''
|
|
502
502
|
].filter(function (cls) { return cls; });
|
|
503
503
|
var tables = [
|
|
504
|
-
"<table class=\""
|
|
505
|
-
"<colgroup>"
|
|
504
|
+
"<table class=\"".concat(clss.join(' '), "\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"),
|
|
505
|
+
"<colgroup>".concat(columns.map(function (column) { return "<col style=\"width:".concat(column.renderWidth, "px\">"); }).join(''), "</colgroup>")
|
|
506
506
|
];
|
|
507
507
|
if (isHeader) {
|
|
508
508
|
tables.push('<thead>');
|
|
509
509
|
if (isColgroup && !original) {
|
|
510
510
|
colgroups.forEach(function (cols) {
|
|
511
|
-
tables.push("<tr>"
|
|
511
|
+
tables.push("<tr>".concat(cols.map(function (column) {
|
|
512
512
|
var headAlign = column.headerAlign || column.align || allHeaderAlign || allAlign;
|
|
513
513
|
var classNames = hasEllipsis(column, 'showHeaderOverflow', allColumnHeaderOverflow) ? ['col--ellipsis'] : [];
|
|
514
514
|
var cellTitle = getHeaderTitle(opts, column);
|
|
@@ -522,28 +522,28 @@ var tableExportHook = {
|
|
|
522
522
|
}, { children: 'childNodes' });
|
|
523
523
|
var cellWidth = childWidth - countChild;
|
|
524
524
|
if (headAlign) {
|
|
525
|
-
classNames.push("col--"
|
|
525
|
+
classNames.push("col--".concat(headAlign));
|
|
526
526
|
}
|
|
527
527
|
if (column.type === 'checkbox') {
|
|
528
|
-
return "<th class=\""
|
|
528
|
+
return "<th class=\"".concat(classNames.join(' '), "\" colspan=\"").concat(column._colSpan, "\" rowspan=\"").concat(column._rowSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(cellWidth, "px\""), "><input type=\"checkbox\" class=\"").concat(allCls, "\" ").concat(isAllSelected ? 'checked' : '', "><span>").concat(cellTitle, "</span></div></th>");
|
|
529
529
|
}
|
|
530
|
-
return "<th class=\""
|
|
531
|
-
}).join('')
|
|
530
|
+
return "<th class=\"".concat(classNames.join(' '), "\" colspan=\"").concat(column._colSpan, "\" rowspan=\"").concat(column._rowSpan, "\" title=\"").concat(cellTitle, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(cellWidth, "px\""), "><span>").concat(formatText(cellTitle, true), "</span></div></th>");
|
|
531
|
+
}).join(''), "</tr>"));
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
else {
|
|
535
|
-
tables.push("<tr>"
|
|
535
|
+
tables.push("<tr>".concat(columns.map(function (column) {
|
|
536
536
|
var headAlign = column.headerAlign || column.align || allHeaderAlign || allAlign;
|
|
537
537
|
var classNames = hasEllipsis(column, 'showHeaderOverflow', allColumnHeaderOverflow) ? ['col--ellipsis'] : [];
|
|
538
538
|
var cellTitle = getHeaderTitle(opts, column);
|
|
539
539
|
if (headAlign) {
|
|
540
|
-
classNames.push("col--"
|
|
540
|
+
classNames.push("col--".concat(headAlign));
|
|
541
541
|
}
|
|
542
542
|
if (column.type === 'checkbox') {
|
|
543
|
-
return "<th class=\""
|
|
543
|
+
return "<th class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" class=\"").concat(allCls, "\" ").concat(isAllSelected ? 'checked' : '', "><span>").concat(cellTitle, "</span></div></th>");
|
|
544
544
|
}
|
|
545
|
-
return "<th class=\""
|
|
546
|
-
}).join('')
|
|
545
|
+
return "<th class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellTitle, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><span>").concat(formatText(cellTitle, true), "</span></div></th>");
|
|
546
|
+
}).join(''), "</tr>"));
|
|
547
547
|
}
|
|
548
548
|
tables.push('</thead>');
|
|
549
549
|
}
|
|
@@ -556,29 +556,29 @@ var tableExportHook = {
|
|
|
556
556
|
var classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
557
557
|
var cellValue = item[column.id];
|
|
558
558
|
if (cellAlign) {
|
|
559
|
-
classNames.push("col--"
|
|
559
|
+
classNames.push("col--".concat(cellAlign));
|
|
560
560
|
}
|
|
561
561
|
if (column.treeNode) {
|
|
562
562
|
var treeIcon = '';
|
|
563
563
|
if (item._hasChild) {
|
|
564
|
-
treeIcon = "<i class=\""
|
|
564
|
+
treeIcon = "<i class=\"".concat(item._expand ? 'vxe-table--tree-fold-icon' : 'vxe-table--tree-unfold-icon', "\"></i>");
|
|
565
565
|
}
|
|
566
566
|
classNames.push('vxe-table--tree-node');
|
|
567
567
|
if (column.type === 'radio') {
|
|
568
|
-
return "<td class=\""
|
|
568
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\"><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></div></div></td>");
|
|
569
569
|
}
|
|
570
570
|
else if (column.type === 'checkbox') {
|
|
571
|
-
return "<td class=\""
|
|
571
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\"><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></div></div></td>");
|
|
572
572
|
}
|
|
573
|
-
return "<td class=\""
|
|
573
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\">").concat(cellValue, "</div></div></div></td>");
|
|
574
574
|
}
|
|
575
575
|
if (column.type === 'radio') {
|
|
576
|
-
return "<td class=\""
|
|
576
|
+
return "<td class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></td>");
|
|
577
577
|
}
|
|
578
578
|
else if (column.type === 'checkbox') {
|
|
579
|
-
return "<td class=\""
|
|
579
|
+
return "<td class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></td>");
|
|
580
580
|
}
|
|
581
|
-
return "<td class=\""
|
|
581
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
582
582
|
}).join('') + '</tr>');
|
|
583
583
|
});
|
|
584
584
|
}
|
|
@@ -608,15 +608,15 @@ var tableExportHook = {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
if (cellAlign) {
|
|
611
|
-
classNames.push("col--"
|
|
611
|
+
classNames.push("col--".concat(cellAlign));
|
|
612
612
|
}
|
|
613
613
|
if (column.type === 'radio') {
|
|
614
|
-
return "<td class=\""
|
|
614
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></td>");
|
|
615
615
|
}
|
|
616
616
|
else if (column.type === 'checkbox') {
|
|
617
|
-
return "<td class=\""
|
|
617
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></td>");
|
|
618
618
|
}
|
|
619
|
-
return "<td class=\""
|
|
619
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
620
620
|
}).join('') + '</tr>');
|
|
621
621
|
});
|
|
622
622
|
}
|
|
@@ -628,21 +628,21 @@ var tableExportHook = {
|
|
|
628
628
|
if (footers.length) {
|
|
629
629
|
tables.push('<tfoot>');
|
|
630
630
|
footers.forEach(function (rows) {
|
|
631
|
-
tables.push("<tr>"
|
|
631
|
+
tables.push("<tr>".concat(columns.map(function (column) {
|
|
632
632
|
var footAlign = column.footerAlign || column.align || allFooterAlign || allAlign;
|
|
633
633
|
var classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
634
634
|
var cellValue = getFooterCellValue(opts, rows, column);
|
|
635
635
|
if (footAlign) {
|
|
636
|
-
classNames.push("col--"
|
|
636
|
+
classNames.push("col--".concat(footAlign));
|
|
637
637
|
}
|
|
638
|
-
return "<td class=\""
|
|
639
|
-
}).join('')
|
|
638
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
639
|
+
}).join(''), "</tr>"));
|
|
640
640
|
});
|
|
641
641
|
tables.push('</tfoot>');
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
// 是否半选状态
|
|
645
|
-
var script = !isAllSelected && isIndeterminate ? "<script>(function(){var a=document.querySelector(\"."
|
|
645
|
+
var script = !isAllSelected && isIndeterminate ? "<script>(function(){var a=document.querySelector(\".".concat(allCls, "\");if(a){a.indeterminate=true}})()</script>") : '';
|
|
646
646
|
tables.push('</table>', script);
|
|
647
647
|
return isPrint ? tables.join('') : createHtmlPage(opts, tables.join(''));
|
|
648
648
|
};
|
|
@@ -662,24 +662,24 @@ var tableExportHook = {
|
|
|
662
662
|
'<ProtectStructure>False</ProtectStructure>',
|
|
663
663
|
'<ProtectWindows>False</ProtectWindows>',
|
|
664
664
|
'</ExcelWorkbook>',
|
|
665
|
-
"<Worksheet ss:Name=\""
|
|
665
|
+
"<Worksheet ss:Name=\"".concat(opts.sheetName, "\">"),
|
|
666
666
|
'<Table>',
|
|
667
|
-
columns.map(function (column) { return "<Column ss:Width=\""
|
|
667
|
+
columns.map(function (column) { return "<Column ss:Width=\"".concat(column.renderWidth, "\"/>"); }).join('')
|
|
668
668
|
].join('');
|
|
669
669
|
if (opts.isHeader) {
|
|
670
|
-
xml += "<Row>"
|
|
670
|
+
xml += "<Row>".concat(columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(getHeaderTitle(opts, column), "</Data></Cell>"); }).join(''), "</Row>");
|
|
671
671
|
}
|
|
672
672
|
datas.forEach(function (row) {
|
|
673
|
-
xml += '<Row>' + columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">"
|
|
673
|
+
xml += '<Row>' + columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(row[column.id], "</Data></Cell>"); }).join('') + '</Row>';
|
|
674
674
|
});
|
|
675
675
|
if (opts.isFooter) {
|
|
676
676
|
var footerTableData = reactData.footerTableData;
|
|
677
677
|
var footers = getFooterData(opts, footerTableData);
|
|
678
678
|
footers.forEach(function (rows) {
|
|
679
|
-
xml += "<Row>"
|
|
679
|
+
xml += "<Row>".concat(columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(getFooterCellValue(opts, rows, column), "</Data></Cell>"); }).join(''), "</Row>");
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
return xml
|
|
682
|
+
return "".concat(xml, "</Table></Worksheet></Workbook>");
|
|
683
683
|
};
|
|
684
684
|
var getContent = function (opts, columns, datas) {
|
|
685
685
|
if (columns.length) {
|
|
@@ -901,13 +901,13 @@ var tableExportHook = {
|
|
|
901
901
|
var typeList = types.map(function (value) {
|
|
902
902
|
return {
|
|
903
903
|
value: value,
|
|
904
|
-
label: "vxe.export.types."
|
|
904
|
+
label: "vxe.export.types.".concat(value)
|
|
905
905
|
};
|
|
906
906
|
});
|
|
907
907
|
var modeList = modes.map(function (value) {
|
|
908
908
|
return {
|
|
909
909
|
value: value,
|
|
910
|
-
label: "vxe.export.modes."
|
|
910
|
+
label: "vxe.export.modes.".concat(value)
|
|
911
911
|
};
|
|
912
912
|
});
|
|
913
913
|
// 默认选中
|
|
@@ -1226,13 +1226,13 @@ var tableExportHook = {
|
|
|
1226
1226
|
var typeList = types.map(function (value) {
|
|
1227
1227
|
return {
|
|
1228
1228
|
value: value,
|
|
1229
|
-
label: "vxe.export.types."
|
|
1229
|
+
label: "vxe.export.types.".concat(value)
|
|
1230
1230
|
};
|
|
1231
1231
|
});
|
|
1232
1232
|
var modeList = defOpts.modes.map(function (value) {
|
|
1233
1233
|
return {
|
|
1234
1234
|
value: value,
|
|
1235
|
-
label: "vxe.import.modes."
|
|
1235
|
+
label: "vxe.import.modes.".concat(value)
|
|
1236
1236
|
};
|
|
1237
1237
|
});
|
|
1238
1238
|
Object.assign(importStore, {
|
|
@@ -21,7 +21,7 @@ export default defineComponent({
|
|
|
21
21
|
var refFileBtn = ref();
|
|
22
22
|
var computeSelectName = computed(function () {
|
|
23
23
|
var storeData = props.storeData;
|
|
24
|
-
return storeData.filename
|
|
24
|
+
return "".concat(storeData.filename, ".").concat(storeData.type);
|
|
25
25
|
});
|
|
26
26
|
var computeHasFile = computed(function () {
|
|
27
27
|
var storeData = props.storeData;
|
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
var selectItem = XEUtils.find(typeList, function (item) { return type === item.value; });
|
|
35
35
|
return selectItem ? GlobalConfig.i18n(selectItem.label) : '*.*';
|
|
36
36
|
}
|
|
37
|
-
return "*."
|
|
37
|
+
return "*.".concat(typeList.map(function (item) { return item.value; }).join(', *.'));
|
|
38
38
|
});
|
|
39
39
|
var clearFileEvent = function () {
|
|
40
40
|
var storeData = props.storeData;
|
package/es/export/src/util.js
CHANGED
|
@@ -17,7 +17,7 @@ export function createFrame() {
|
|
|
17
17
|
return frame;
|
|
18
18
|
}
|
|
19
19
|
export function getExportBlobByContent(content, options) {
|
|
20
|
-
return new Blob([content], { type: "text/"
|
|
20
|
+
return new Blob([content], { type: "text/".concat(options.type, ";charset=utf-8;") });
|
|
21
21
|
}
|
|
22
22
|
export function createHtmlPage(opts, content) {
|
|
23
23
|
var style = opts.style;
|
|
@@ -25,11 +25,11 @@ export function createHtmlPage(opts, content) {
|
|
|
25
25
|
'<!DOCTYPE html><html>',
|
|
26
26
|
'<head>',
|
|
27
27
|
'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',
|
|
28
|
-
"<title>"
|
|
29
|
-
"<style>"
|
|
30
|
-
style ? "<style>"
|
|
28
|
+
"<title>".concat(opts.sheetName, "</title>"),
|
|
29
|
+
"<style>".concat(defaultHtmlStyle, "</style>"),
|
|
30
|
+
style ? "<style>".concat(style, "</style>") : '',
|
|
31
31
|
'</head>',
|
|
32
|
-
"<body>"
|
|
32
|
+
"<body>".concat(content, "</body>"),
|
|
33
33
|
'</html>'
|
|
34
34
|
].join('');
|
|
35
35
|
}
|
|
@@ -52,7 +52,7 @@ export var readLocalFile = function (options) {
|
|
|
52
52
|
var types = opts.types || [];
|
|
53
53
|
var isAllType = !types.length || types.some(function (type) { return type === '*'; });
|
|
54
54
|
fileInput.multiple = !!opts.multiple;
|
|
55
|
-
fileInput.accept = isAllType ? '' : "."
|
|
55
|
+
fileInput.accept = isAllType ? '' : ".".concat(types.join(', .'));
|
|
56
56
|
fileInput.onchange = function (evnt) {
|
|
57
57
|
var files = evnt.target.files;
|
|
58
58
|
var file = files[0];
|
|
@@ -143,7 +143,7 @@ export function handlePrint($xetable, opts, content) {
|
|
|
143
143
|
*/
|
|
144
144
|
export var saveLocalFile = function (options) {
|
|
145
145
|
var filename = options.filename, type = options.type, content = options.content;
|
|
146
|
-
var name = filename
|
|
146
|
+
var name = "".concat(filename, ".").concat(type);
|
|
147
147
|
if (window.Blob) {
|
|
148
148
|
var blob = content instanceof Blob ? content : getExportBlobByContent(XEUtils.toValueString(content), options);
|
|
149
149
|
if (navigator.msSaveBlob) {
|
package/es/export/style.css
CHANGED
|
@@ -23,85 +23,37 @@
|
|
|
23
23
|
/*select*/
|
|
24
24
|
/*switch*/
|
|
25
25
|
/*pulldown*/
|
|
26
|
-
.vxe-export--panel-column-option {
|
|
27
|
-
position: relative;
|
|
28
|
-
-webkit-user-select: none;
|
|
29
|
-
-moz-user-select: none;
|
|
30
|
-
-ms-user-select: none;
|
|
31
|
-
user-select: none;
|
|
32
|
-
cursor: pointer; }
|
|
33
|
-
|
|
34
26
|
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
35
|
-
|
|
36
|
-
position: absolute;
|
|
37
|
-
height: 1em;
|
|
38
|
-
width: 1em; }
|
|
27
|
+
font-size: 1.16em; }
|
|
39
28
|
|
|
40
29
|
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
left: 0;
|
|
49
|
-
background-color: #fff;
|
|
50
|
-
border-radius: 2px;
|
|
51
|
-
border: 2px solid #dcdfe6; }
|
|
52
|
-
|
|
53
|
-
.vxe-export--panel-column-option .vxe-checkbox--unchecked-icon {
|
|
54
|
-
display: inline-block; }
|
|
55
|
-
|
|
56
|
-
.vxe-export--panel-column-option .vxe-checkbox--checked-icon:after {
|
|
57
|
-
content: "";
|
|
58
|
-
position: absolute;
|
|
59
|
-
height: 0.64em;
|
|
60
|
-
width: 0.32em;
|
|
61
|
-
top: 50%;
|
|
62
|
-
left: 50%;
|
|
63
|
-
border: 2px solid #fff;
|
|
64
|
-
border-left: 0;
|
|
65
|
-
border-top: 0;
|
|
66
|
-
transform: translate(-50%, -50%) rotate(45deg); }
|
|
67
|
-
|
|
68
|
-
.vxe-export--panel-column-option .vxe-checkbox--indeterminate-icon:after {
|
|
69
|
-
content: "";
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 50%;
|
|
72
|
-
left: 50%;
|
|
73
|
-
height: 2px;
|
|
74
|
-
width: 0.6em;
|
|
75
|
-
background-color: #fff;
|
|
76
|
-
transform: translate(-50%, -50%); }
|
|
30
|
+
color: #dcdfe6;
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
-webkit-user-select: none;
|
|
34
|
+
-moz-user-select: none;
|
|
35
|
+
-ms-user-select: none;
|
|
36
|
+
user-select: none; }
|
|
77
37
|
|
|
78
38
|
.is--checked.vxe-export--panel-column-option, .is--indeterminate.vxe-export--panel-column-option {
|
|
79
39
|
color: #409eff; }
|
|
80
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--
|
|
81
|
-
|
|
82
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--icon:before, .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon:before {
|
|
83
|
-
border-color: #409eff;
|
|
84
|
-
background-color: #409eff; }
|
|
85
|
-
|
|
86
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--checked-icon {
|
|
87
|
-
display: inline-block; }
|
|
88
|
-
|
|
89
|
-
.is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--indeterminate-icon {
|
|
90
|
-
display: inline-block; }
|
|
40
|
+
.is--checked.vxe-export--panel-column-option .vxe-checkbox--icon, .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
41
|
+
color: #409eff; }
|
|
91
42
|
|
|
92
|
-
.vxe-export--panel-column-option:not(.is--disabled)
|
|
93
|
-
|
|
43
|
+
.vxe-export--panel-column-option:not(.is--disabled) {
|
|
44
|
+
cursor: pointer; }
|
|
45
|
+
.vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon {
|
|
46
|
+
color: #409eff; }
|
|
94
47
|
|
|
95
48
|
.is--disabled.vxe-export--panel-column-option {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
.is--disabled.vxe-export--panel-column-option .vxe-checkbox--icon
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
background-color: #c0c4cc; }
|
|
49
|
+
color: #BFBFBF;
|
|
50
|
+
cursor: not-allowed; }
|
|
51
|
+
.is--disabled.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
52
|
+
color: #dcdfe6; }
|
|
53
|
+
|
|
54
|
+
.vxe-export--panel-column-option .vxe-checkbox--label {
|
|
55
|
+
padding-left: 0.5em;
|
|
56
|
+
vertical-align: middle; }
|
|
105
57
|
|
|
106
58
|
.vxe-export--panel-column > ul {
|
|
107
59
|
list-style-type: none;
|
|
@@ -147,7 +99,7 @@
|
|
|
147
99
|
-ms-user-select: none;
|
|
148
100
|
user-select: none; }
|
|
149
101
|
.vxe-export--panel .vxe-export--panel-column > ul > li {
|
|
150
|
-
padding: 0.2em 1em 0.2em
|
|
102
|
+
padding: 0.2em 1em 0.2em 1em; }
|
|
151
103
|
.vxe-export--panel .vxe-export--panel-column > ul > li.level--2 {
|
|
152
104
|
padding-left: 3.5em; }
|
|
153
105
|
.vxe-export--panel .vxe-export--panel-column > ul > li.level--2 .vxe-checkbox--icon {
|
|
@@ -231,21 +183,14 @@
|
|
|
231
183
|
text-align: right;
|
|
232
184
|
padding: 0.25em; }
|
|
233
185
|
|
|
234
|
-
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
235
|
-
left: 0.6em;
|
|
236
|
-
top: 0.38em; }
|
|
237
|
-
|
|
238
|
-
.vxe-export--panel-column-option:hover {
|
|
239
|
-
background-color: #f5f7fa; }
|
|
240
|
-
|
|
241
186
|
.vxe-modal--wrapper .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
242
|
-
font-size:
|
|
187
|
+
font-size: 15px; }
|
|
243
188
|
|
|
244
189
|
.vxe-modal--wrapper.size--medium .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
245
|
-
font-size:
|
|
190
|
+
font-size: 14px; }
|
|
246
191
|
|
|
247
192
|
.vxe-modal--wrapper.size--small .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
248
|
-
font-size:
|
|
193
|
+
font-size: 13px; }
|
|
249
194
|
|
|
250
195
|
.vxe-modal--wrapper.size--mini .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
251
|
-
font-size:
|
|
196
|
+
font-size: 12px; }
|
package/es/filter/src/hook.js
CHANGED
|
@@ -86,7 +86,7 @@ var tableFilterHook = {
|
|
|
86
86
|
var maxLeft = bodyElem.clientWidth - filterWidth - minMargin;
|
|
87
87
|
var left, right;
|
|
88
88
|
var style = {
|
|
89
|
-
top: targetElem_1.offsetTop + targetElem_1.offsetParent.offsetTop + targetElem_1.offsetHeight + 8
|
|
89
|
+
top: "".concat(targetElem_1.offsetTop + targetElem_1.offsetParent.offsetTop + targetElem_1.offsetHeight + 8, "px")
|
|
90
90
|
};
|
|
91
91
|
// 判断面板不能大于表格高度
|
|
92
92
|
var maxHeight = null;
|
|
@@ -107,14 +107,14 @@ var tableFilterHook = {
|
|
|
107
107
|
if (overflowWidth > 0) {
|
|
108
108
|
left -= overflowWidth;
|
|
109
109
|
}
|
|
110
|
-
style.left = Math.min(maxLeft, Math.max(minMargin, left))
|
|
110
|
+
style.left = "".concat(Math.min(maxLeft, Math.max(minMargin, left)), "px");
|
|
111
111
|
}
|
|
112
112
|
else if (right) {
|
|
113
113
|
var overflowWidth = (pageX_1 + filterWidth - centerWidth + minMargin) - visibleWidth_1;
|
|
114
114
|
if (overflowWidth > 0) {
|
|
115
115
|
right += overflowWidth;
|
|
116
116
|
}
|
|
117
|
-
style.right = Math.max(minMargin, right)
|
|
117
|
+
style.right = "".concat(Math.max(minMargin, right), "px");
|
|
118
118
|
}
|
|
119
119
|
filterStore.style = style;
|
|
120
120
|
filterStore.maxHeight = maxHeight;
|
|
@@ -198,10 +198,10 @@ var tableFilterHook = {
|
|
|
198
198
|
var elemStore_1 = internalData.elemStore;
|
|
199
199
|
var fixed_1 = column.fixed;
|
|
200
200
|
return $xetable.scrollToColumn(column).then(function () {
|
|
201
|
-
var headerWrapperRef = elemStore_1[(fixed_1 || 'main'
|
|
201
|
+
var headerWrapperRef = elemStore_1["".concat(fixed_1 || 'main', "-header-wrapper")] || elemStore_1['main-header-wrapper'];
|
|
202
202
|
var headerWrapperElem = headerWrapperRef ? headerWrapperRef.value : null;
|
|
203
203
|
if (headerWrapperElem) {
|
|
204
|
-
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column."
|
|
204
|
+
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column.".concat(column.id, " .vxe-filter--btn"));
|
|
205
205
|
triggerEvent(filterBtnElem, 'click');
|
|
206
206
|
}
|
|
207
207
|
});
|
package/es/filter/src/panel.js
CHANGED
|
@@ -111,14 +111,16 @@ export default defineComponent({
|
|
|
111
111
|
}, compConf.renderFilter(filterRender, params))
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
|
+
var isAllChecked = multiple ? filterStore.isAllSelected : !filterStore.options.some(function (item) { return item._checked; });
|
|
115
|
+
var isAllIndeterminate = multiple && filterStore.isIndeterminate;
|
|
114
116
|
return [
|
|
115
117
|
h('ul', {
|
|
116
118
|
class: 'vxe-table--filter-header'
|
|
117
119
|
}, [
|
|
118
120
|
h('li', {
|
|
119
121
|
class: ['vxe-table--filter-option', {
|
|
120
|
-
'is--checked':
|
|
121
|
-
'is--indeterminate':
|
|
122
|
+
'is--checked': isAllChecked,
|
|
123
|
+
'is--indeterminate': isAllIndeterminate
|
|
122
124
|
}],
|
|
123
125
|
title: GlobalConfig.i18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
124
126
|
onClick: function (evnt) {
|
|
@@ -126,13 +128,7 @@ export default defineComponent({
|
|
|
126
128
|
}
|
|
127
129
|
}, (multiple ? [
|
|
128
130
|
h('span', {
|
|
129
|
-
class: 'vxe-checkbox--icon
|
|
130
|
-
}),
|
|
131
|
-
h('span', {
|
|
132
|
-
class: 'vxe-checkbox--icon vxe-checkbox--unchecked-icon'
|
|
133
|
-
}),
|
|
134
|
-
h('span', {
|
|
135
|
-
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
131
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? GlobalConfig.icon.TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? GlobalConfig.icon.TABLE_CHECKBOX_CHECKED : GlobalConfig.icon.TABLE_CHECKBOX_UNCHECKED)]
|
|
136
132
|
})
|
|
137
133
|
] : []).concat([
|
|
138
134
|
h('span', {
|
|
@@ -143,9 +139,11 @@ export default defineComponent({
|
|
|
143
139
|
h('ul', {
|
|
144
140
|
class: 'vxe-table--filter-body',
|
|
145
141
|
style: maxHeight ? {
|
|
146
|
-
maxHeight: maxHeight
|
|
142
|
+
maxHeight: "".concat(maxHeight, "px")
|
|
147
143
|
} : {}
|
|
148
144
|
}, filterStore.options.map(function (item) {
|
|
145
|
+
var isChecked = item._checked;
|
|
146
|
+
var isIndeterminate = false;
|
|
149
147
|
return h('li', {
|
|
150
148
|
class: ['vxe-table--filter-option', {
|
|
151
149
|
'is--checked': item._checked
|
|
@@ -156,13 +154,7 @@ export default defineComponent({
|
|
|
156
154
|
}
|
|
157
155
|
}, (multiple ? [
|
|
158
156
|
h('span', {
|
|
159
|
-
class: 'vxe-checkbox--icon
|
|
160
|
-
}),
|
|
161
|
-
h('span', {
|
|
162
|
-
class: 'vxe-checkbox--icon vxe-checkbox--unchecked-icon'
|
|
163
|
-
}),
|
|
164
|
-
h('span', {
|
|
165
|
-
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
157
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? GlobalConfig.icon.TABLE_CHECKBOX_INDETERMINATE : (isChecked ? GlobalConfig.icon.TABLE_CHECKBOX_CHECKED : GlobalConfig.icon.TABLE_CHECKBOX_UNCHECKED)]
|
|
166
158
|
})
|
|
167
159
|
] : []).concat([
|
|
168
160
|
h('span', {
|