vxe-table 3.6.10 → 3.6.12-beta.0
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/lib/all.js +3 -3
- package/lib/button/index.js +5 -5
- package/lib/button/src/button.js +29 -29
- package/lib/button/style/style.css +7 -22
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/checkbox/src/checkbox.js +17 -17
- package/lib/checkbox/src/group.js +10 -10
- package/lib/checkbox/style/style.css +3 -13
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.js +5 -5
- package/lib/colgroup/index.js +6 -6
- package/lib/column/index.js +6 -6
- package/lib/edit/index.js +5 -5
- package/lib/edit/src/mixin.js +26 -26
- package/lib/export/index.js +15 -15
- package/lib/export/src/export-panel.js +57 -57
- package/lib/export/src/import-panel.js +21 -21
- package/lib/export/src/mixin.js +73 -73
- package/lib/export/style/style.css +2 -9
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.js +7 -7
- package/lib/filter/src/mixin.js +8 -8
- package/lib/filter/src/panel.js +24 -24
- package/lib/filter/style/style.css +1 -5
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/index.js +5 -5
- package/lib/footer/src/footer.js +14 -14
- package/lib/form/index.js +5 -5
- package/lib/form/src/form-config-item.js +24 -28
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +5 -5
- package/lib/form/src/form-item.js +30 -30
- package/lib/form/src/form.js +61 -61
- package/lib/form/src/render.js +9 -9
- package/lib/form/src/util.js +6 -6
- package/lib/form/style/style.css +11 -57
- package/lib/form/style/style.min.css +1 -1
- package/lib/form-gather/index.js +5 -5
- package/lib/form-item/index.js +5 -5
- package/lib/grid/index.js +7 -7
- package/lib/grid/src/grid.js +77 -77
- package/lib/grid/style/style.css +0 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/index.js +5 -5
- package/lib/header/src/header.js +21 -21
- package/lib/icon/index.js +5 -5
- package/lib/icon/src/icon.js +3 -3
- package/lib/icon/style/style.css +33 -80
- package/lib/icon/style/style.min.css +33 -80
- package/lib/index.common.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.umd.js +1831 -1228
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +5 -5
- package/lib/input/src/date.js +3 -3
- package/lib/input/src/input.js +243 -243
- package/lib/input/src/number.js +4 -4
- package/lib/input/style/style.css +39 -159
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/index.js +5 -5
- package/lib/keyboard/src/mixin.js +15 -15
- package/lib/list/index.js +5 -5
- package/lib/list/src/list.js +21 -20
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.js +6 -6
- package/lib/loading/src/loading.js +13 -13
- package/lib/loading/style/style.css +5 -21
- package/lib/loading/style/style.min.css +1 -1
- package/lib/locale/lang/en-US.js +7 -7
- package/lib/locale/lang/en-US.umd.js +7 -7
- package/lib/locale/lang/ja-JP.js +7 -7
- package/lib/locale/lang/ja-JP.umd.js +7 -7
- package/lib/locale/lang/zh-CN.js +7 -7
- package/lib/locale/lang/zh-CN.umd.js +7 -7
- package/lib/locale/lang/zh-HK.js +4 -4
- package/lib/locale/lang/zh-HK.umd.js +7 -7
- package/lib/locale/lang/zh-MO.js +4 -4
- package/lib/locale/lang/zh-MO.umd.js +7 -7
- package/lib/locale/lang/zh-TC.js +7 -7
- package/lib/locale/lang/zh-TC.umd.js +7 -7
- package/lib/locale/lang/zh-TW.js +4 -4
- package/lib/locale/lang/zh-TW.umd.js +7 -7
- package/lib/menu/index.js +7 -7
- package/lib/menu/src/mixin.js +16 -16
- package/lib/menu/src/panel.js +14 -14
- package/lib/menu/style/style.css +1 -3
- package/lib/menu/style/style.min.css +1 -1
- package/lib/mixins/size.js +2 -2
- package/lib/modal/index.js +12 -12
- package/lib/modal/src/modal.js +104 -104
- package/lib/modal/style/style.css +14 -49
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +5 -5
- package/lib/option/index.js +5 -5
- package/lib/pager/index.js +5 -5
- package/lib/pager/src/pager.js +66 -66
- package/lib/pager/style/style.css +4 -15
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +5 -5
- package/lib/pulldown/src/pulldown.js +16 -16
- package/lib/pulldown/style/style.css +5 -13
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/src/button.js +14 -14
- package/lib/radio/src/group.js +12 -12
- package/lib/radio/src/radio.js +16 -16
- package/lib/radio/style/style.css +3 -13
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.js +5 -5
- package/lib/radio-group/index.js +5 -5
- package/lib/select/index.js +9 -9
- package/lib/select/src/optgroup.js +6 -6
- package/lib/select/src/option.js +6 -6
- package/lib/select/src/select.js +56 -56
- package/lib/select/src/util.js +2 -2
- package/lib/select/style/style.css +6 -19
- 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/index.js +5 -5
- package/lib/switch/src/switch.js +17 -17
- package/lib/switch/style/style.css +3 -9
- package/lib/switch/style/style.min.css +1 -1
- package/lib/table/index.js +14 -14
- package/lib/table/src/body.js +39 -39
- package/lib/table/src/cell.js +77 -77
- package/lib/table/src/column.js +17 -17
- package/lib/table/src/columnInfo.js +13 -13
- package/lib/table/src/group.js +4 -4
- package/lib/table/src/methods.js +226 -223
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +120 -120
- package/lib/table/src/util.js +19 -19
- package/lib/table/style/style.css +25 -106
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.js +5 -5
- package/lib/textarea/src/textarea.js +25 -25
- package/lib/textarea/style/style.css +0 -9
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/toolbar/index.js +5 -5
- package/lib/toolbar/src/toolbar.js +73 -73
- package/lib/toolbar/style/style.css +9 -34
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +8 -8
- package/lib/tools/event.js +3 -3
- package/lib/tools/log.js +2 -2
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +4 -4
- package/lib/tools/utils.js +12 -12
- package/lib/tools/vn.js +2 -2
- package/lib/tooltip/index.js +6 -6
- package/lib/tooltip/src/tooltip.js +30 -30
- package/lib/tooltip/style/style.css +2 -4
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/v-x-e-table/index.js +9 -9
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +2 -2
- package/lib/v-x-e-table/src/conf.js +4 -4
- package/lib/v-x-e-table/src/formats.js +2 -2
- package/lib/v-x-e-table/src/interceptor.js +5 -5
- package/lib/v-x-e-table/src/menus.js +2 -2
- package/lib/v-x-e-table/src/renderer.js +47 -47
- package/lib/v-x-e-table/src/setup.js +2 -2
- package/lib/v-x-e-table/src/store.js +6 -6
- package/lib/v-x-e-table/style/style.css +37 -100
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.js +5 -5
- package/lib/validator/src/mixin.js +25 -25
- package/package.json +2 -6
- package/packages/form/src/form-config-item.js +1 -5
- package/packages/list/src/list.js +2 -1
- package/packages/table/src/methods.js +10 -5
- /package/lib/icon/style/{iconfont.1676471822832.ttf → iconfont.1677164683133.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1676471822832.woff → iconfont.1677164683133.woff} +0 -0
- /package/lib/icon/style/{iconfont.1676471822832.woff2 → iconfont.1677164683133.woff2} +0 -0
- /package/lib/{iconfont.1676471822832.ttf → iconfont.1677164683133.ttf} +0 -0
- /package/lib/{iconfont.1676471822832.woff → iconfont.1677164683133.woff} +0 -0
- /package/lib/{iconfont.1676471822832.woff2 → iconfont.1677164683133.woff2} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
9
9
|
var _modal = _interopRequireDefault(require("../../modal/src/modal"));
|
|
@@ -12,7 +12,7 @@ var _checkbox = _interopRequireDefault(require("../../checkbox/src/checkbox"));
|
|
|
12
12
|
var _select = _interopRequireDefault(require("../../select/src/select"));
|
|
13
13
|
var _option = _interopRequireDefault(require("../../select/src/option"));
|
|
14
14
|
var _utils = _interopRequireDefault(require("../../tools/utils"));
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
16
|
var _default = {
|
|
17
17
|
name: 'VxeExportPanel',
|
|
18
18
|
props: {
|
|
@@ -20,11 +20,11 @@ var _default = {
|
|
|
20
20
|
storeData: Object
|
|
21
21
|
},
|
|
22
22
|
components: {
|
|
23
|
-
VxeModal: _modal
|
|
24
|
-
VxeInput: _input
|
|
25
|
-
VxeCheckbox: _checkbox
|
|
26
|
-
VxeSelect: _select
|
|
27
|
-
VxeOption: _option
|
|
23
|
+
VxeModal: _modal["default"],
|
|
24
|
+
VxeInput: _input["default"],
|
|
25
|
+
VxeCheckbox: _checkbox["default"],
|
|
26
|
+
VxeSelect: _select["default"],
|
|
27
|
+
VxeOption: _option["default"]
|
|
28
28
|
},
|
|
29
29
|
data: function data() {
|
|
30
30
|
return {
|
|
@@ -72,13 +72,13 @@ var _default = {
|
|
|
72
72
|
hasColgroup = storeData.hasColgroup;
|
|
73
73
|
var isHeader = defaultOptions.isHeader;
|
|
74
74
|
var cols = [];
|
|
75
|
-
_xeUtils
|
|
76
|
-
var colTitle = _utils
|
|
75
|
+
_xeUtils["default"].eachTree(storeData.columns, function (column) {
|
|
76
|
+
var colTitle = _utils["default"].formatText(column.getTitle(), 1);
|
|
77
77
|
var isColGroup = column.children && column.children.length;
|
|
78
78
|
var isChecked = column.checked;
|
|
79
79
|
var indeterminate = column.halfChecked;
|
|
80
80
|
cols.push(h('li', {
|
|
81
|
-
class: ['vxe-export--panel-column-option', "level--".concat(column.level), {
|
|
81
|
+
"class": ['vxe-export--panel-column-option', "level--".concat(column.level), {
|
|
82
82
|
'is--group': isColGroup,
|
|
83
83
|
'is--checked': isChecked,
|
|
84
84
|
'is--indeterminate': indeterminate,
|
|
@@ -95,16 +95,16 @@ var _default = {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}, [h('span', {
|
|
98
|
-
class: ['vxe-checkbox--icon', indeterminate ? _conf
|
|
98
|
+
"class": ['vxe-checkbox--icon', indeterminate ? _conf["default"].icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf["default"].icon.TABLE_CHECKBOX_CHECKED : _conf["default"].icon.TABLE_CHECKBOX_UNCHECKED]
|
|
99
99
|
}), h('span', {
|
|
100
|
-
class: 'vxe-checkbox--label'
|
|
100
|
+
"class": 'vxe-checkbox--label'
|
|
101
101
|
}, colTitle)]));
|
|
102
102
|
});
|
|
103
103
|
return h('vxe-modal', {
|
|
104
104
|
res: 'modal',
|
|
105
105
|
props: {
|
|
106
106
|
value: storeData.visible,
|
|
107
|
-
title: _conf
|
|
107
|
+
title: _conf["default"].i18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
108
108
|
width: 660,
|
|
109
109
|
mask: true,
|
|
110
110
|
lockView: true,
|
|
@@ -120,27 +120,27 @@ var _default = {
|
|
|
120
120
|
show: this.showEvent
|
|
121
121
|
}
|
|
122
122
|
}, [h('div', {
|
|
123
|
-
class: 'vxe-export--panel'
|
|
123
|
+
"class": 'vxe-export--panel'
|
|
124
124
|
}, [h('table', {
|
|
125
125
|
attrs: {
|
|
126
126
|
cellspacing: 0,
|
|
127
127
|
cellpadding: 0,
|
|
128
128
|
border: 0
|
|
129
129
|
}
|
|
130
|
-
}, [h('tbody', [[isPrint ? _e() : h('tr', [h('td', _conf
|
|
130
|
+
}, [h('tbody', [[isPrint ? _e() : h('tr', [h('td', _conf["default"].i18n('vxe.export.expName')), h('td', [h('vxe-input', {
|
|
131
131
|
ref: 'filename',
|
|
132
132
|
props: {
|
|
133
133
|
value: defaultOptions.filename,
|
|
134
134
|
type: 'text',
|
|
135
135
|
clearable: true,
|
|
136
|
-
placeholder: _conf
|
|
136
|
+
placeholder: _conf["default"].i18n('vxe.export.expNamePlaceholder')
|
|
137
137
|
},
|
|
138
138
|
on: {
|
|
139
139
|
modelValue: function modelValue(value) {
|
|
140
140
|
defaultOptions.filename = value;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
})])]), isPrint ? _e() : h('tr', [h('td', _conf
|
|
143
|
+
})])]), isPrint ? _e() : h('tr', [h('td', _conf["default"].i18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
144
144
|
props: {
|
|
145
145
|
value: defaultOptions.type
|
|
146
146
|
},
|
|
@@ -153,23 +153,23 @@ var _default = {
|
|
|
153
153
|
return h('vxe-option', {
|
|
154
154
|
props: {
|
|
155
155
|
value: item.value,
|
|
156
|
-
label: _conf
|
|
156
|
+
label: _conf["default"].i18n(item.label)
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
}))])]), isPrint || showSheet ? h('tr', [h('td', _conf
|
|
159
|
+
}))])]), isPrint || showSheet ? h('tr', [h('td', _conf["default"].i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
|
|
160
160
|
ref: 'sheetname',
|
|
161
161
|
props: {
|
|
162
162
|
value: defaultOptions.sheetName,
|
|
163
163
|
type: 'text',
|
|
164
164
|
clearable: true,
|
|
165
|
-
placeholder: _conf
|
|
165
|
+
placeholder: _conf["default"].i18n('vxe.export.expSheetNamePlaceholder')
|
|
166
166
|
},
|
|
167
167
|
on: {
|
|
168
168
|
modelValue: function modelValue(value) {
|
|
169
169
|
defaultOptions.sheetName = value;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
})])]) : _e(), h('tr', [h('td', _conf
|
|
172
|
+
})])]) : _e(), h('tr', [h('td', _conf["default"].i18n('vxe.export.expMode')), h('td', [h('vxe-select', {
|
|
173
173
|
props: {
|
|
174
174
|
value: defaultOptions.mode
|
|
175
175
|
},
|
|
@@ -182,37 +182,37 @@ var _default = {
|
|
|
182
182
|
return h('vxe-option', {
|
|
183
183
|
props: {
|
|
184
184
|
value: item.value,
|
|
185
|
-
label: _conf
|
|
185
|
+
label: _conf["default"].i18n(item.label)
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
|
-
}))])]), h('tr', [h('td', [_conf
|
|
189
|
-
class: 'vxe-export--panel-column'
|
|
188
|
+
}))])]), h('tr', [h('td', [_conf["default"].i18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
189
|
+
"class": 'vxe-export--panel-column'
|
|
190
190
|
}, [h('ul', {
|
|
191
|
-
class: 'vxe-export--panel-column-header'
|
|
191
|
+
"class": 'vxe-export--panel-column-header'
|
|
192
192
|
}, [h('li', {
|
|
193
|
-
class: ['vxe-export--panel-column-option', {
|
|
193
|
+
"class": ['vxe-export--panel-column-option', {
|
|
194
194
|
'is--checked': isAllChecked,
|
|
195
195
|
'is--indeterminate': isAllIndeterminate
|
|
196
196
|
}],
|
|
197
197
|
attrs: {
|
|
198
|
-
title: _conf
|
|
198
|
+
title: _conf["default"].i18n('vxe.table.allTitle')
|
|
199
199
|
},
|
|
200
200
|
on: {
|
|
201
201
|
click: this.allColumnEvent
|
|
202
202
|
}
|
|
203
203
|
}, [h('span', {
|
|
204
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? _conf
|
|
204
|
+
"class": ['vxe-checkbox--icon', isAllIndeterminate ? _conf["default"].icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf["default"].icon.TABLE_CHECKBOX_CHECKED : _conf["default"].icon.TABLE_CHECKBOX_UNCHECKED]
|
|
205
205
|
}), h('span', {
|
|
206
|
-
class: 'vxe-checkbox--label'
|
|
207
|
-
}, _conf
|
|
208
|
-
class: 'vxe-export--panel-column-body'
|
|
209
|
-
}, cols)])])]), h('tr', [h('td', _conf
|
|
210
|
-
class: 'vxe-export--panel-option-row'
|
|
206
|
+
"class": 'vxe-checkbox--label'
|
|
207
|
+
}, _conf["default"].i18n('vxe.export.expCurrentColumn'))])]), h('ul', {
|
|
208
|
+
"class": 'vxe-export--panel-column-body'
|
|
209
|
+
}, cols)])])]), h('tr', [h('td', _conf["default"].i18n('vxe.export.expOpts')), h('td', [h('div', {
|
|
210
|
+
"class": 'vxe-export--panel-option-row'
|
|
211
211
|
}, [h('vxe-checkbox', {
|
|
212
212
|
props: {
|
|
213
213
|
value: isHeader,
|
|
214
|
-
title: _conf
|
|
215
|
-
content: _conf
|
|
214
|
+
title: _conf["default"].i18n('vxe.export.expHeaderTitle'),
|
|
215
|
+
content: _conf["default"].i18n('vxe.export.expOptHeader')
|
|
216
216
|
},
|
|
217
217
|
on: {
|
|
218
218
|
input: function input(value) {
|
|
@@ -223,8 +223,8 @@ var _default = {
|
|
|
223
223
|
props: {
|
|
224
224
|
value: defaultOptions.isFooter,
|
|
225
225
|
disabled: !storeData.hasFooter,
|
|
226
|
-
title: _conf
|
|
227
|
-
content: _conf
|
|
226
|
+
title: _conf["default"].i18n('vxe.export.expFooterTitle'),
|
|
227
|
+
content: _conf["default"].i18n('vxe.export.expOptFooter')
|
|
228
228
|
},
|
|
229
229
|
on: {
|
|
230
230
|
input: function input(value) {
|
|
@@ -234,8 +234,8 @@ var _default = {
|
|
|
234
234
|
}), h('vxe-checkbox', {
|
|
235
235
|
props: {
|
|
236
236
|
value: defaultOptions.original,
|
|
237
|
-
title: _conf
|
|
238
|
-
content: _conf
|
|
237
|
+
title: _conf["default"].i18n('vxe.export.expOriginalTitle'),
|
|
238
|
+
content: _conf["default"].i18n('vxe.export.expOptOriginal')
|
|
239
239
|
},
|
|
240
240
|
on: {
|
|
241
241
|
input: function input(value) {
|
|
@@ -243,13 +243,13 @@ var _default = {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
})]), h('div', {
|
|
246
|
-
class: 'vxe-export--panel-option-row'
|
|
246
|
+
"class": 'vxe-export--panel-option-row'
|
|
247
247
|
}, [h('vxe-checkbox', {
|
|
248
248
|
props: {
|
|
249
249
|
value: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
250
250
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
251
|
-
title: _conf
|
|
252
|
-
content: _conf
|
|
251
|
+
title: _conf["default"].i18n('vxe.export.expColgroupTitle'),
|
|
252
|
+
content: _conf["default"].i18n('vxe.export.expOptColgroup')
|
|
253
253
|
},
|
|
254
254
|
on: {
|
|
255
255
|
input: function input(value) {
|
|
@@ -260,8 +260,8 @@ var _default = {
|
|
|
260
260
|
props: {
|
|
261
261
|
value: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
262
262
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
263
|
-
title: _conf
|
|
264
|
-
content: _conf
|
|
263
|
+
title: _conf["default"].i18n('vxe.export.expMergeTitle'),
|
|
264
|
+
content: _conf["default"].i18n('vxe.export.expOptMerge')
|
|
265
265
|
},
|
|
266
266
|
on: {
|
|
267
267
|
input: function input(value) {
|
|
@@ -272,8 +272,8 @@ var _default = {
|
|
|
272
272
|
props: {
|
|
273
273
|
value: supportStyle ? defaultOptions.useStyle : false,
|
|
274
274
|
disabled: !supportStyle,
|
|
275
|
-
title: _conf
|
|
276
|
-
content: _conf
|
|
275
|
+
title: _conf["default"].i18n('vxe.export.expUseStyleTitle'),
|
|
276
|
+
content: _conf["default"].i18n('vxe.export.expOptUseStyle')
|
|
277
277
|
},
|
|
278
278
|
on: {
|
|
279
279
|
input: function input(value) {
|
|
@@ -284,8 +284,8 @@ var _default = {
|
|
|
284
284
|
props: {
|
|
285
285
|
value: hasTree ? defaultOptions.isAllExpand : false,
|
|
286
286
|
disabled: !hasTree,
|
|
287
|
-
title: _conf
|
|
288
|
-
content: _conf
|
|
287
|
+
title: _conf["default"].i18n('vxe.export.expAllExpandTitle'),
|
|
288
|
+
content: _conf["default"].i18n('vxe.export.expOptAllExpand')
|
|
289
289
|
},
|
|
290
290
|
on: {
|
|
291
291
|
input: function input(value) {
|
|
@@ -293,10 +293,10 @@ var _default = {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
})])])])]])]), h('div', {
|
|
296
|
-
class: 'vxe-export--panel-btns'
|
|
296
|
+
"class": 'vxe-export--panel-btns'
|
|
297
297
|
}, [h('vxe-button', {
|
|
298
298
|
props: {
|
|
299
|
-
content: _conf
|
|
299
|
+
content: _conf["default"].i18n('vxe.export.expCancel')
|
|
300
300
|
},
|
|
301
301
|
on: {
|
|
302
302
|
click: this.cancelEvent
|
|
@@ -305,7 +305,7 @@ var _default = {
|
|
|
305
305
|
ref: 'confirmBtn',
|
|
306
306
|
props: {
|
|
307
307
|
status: 'primary',
|
|
308
|
-
content: _conf
|
|
308
|
+
content: _conf["default"].i18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm')
|
|
309
309
|
},
|
|
310
310
|
on: {
|
|
311
311
|
click: this.confirmEvent
|
|
@@ -315,7 +315,7 @@ var _default = {
|
|
|
315
315
|
methods: {
|
|
316
316
|
changeOption: function changeOption(column) {
|
|
317
317
|
var isChecked = !column.checked;
|
|
318
|
-
_xeUtils
|
|
318
|
+
_xeUtils["default"].eachTree([column], function (item) {
|
|
319
319
|
item.checked = isChecked;
|
|
320
320
|
item.halfChecked = false;
|
|
321
321
|
});
|
|
@@ -323,7 +323,7 @@ var _default = {
|
|
|
323
323
|
this.checkStatus();
|
|
324
324
|
},
|
|
325
325
|
handleOptionCheck: function handleOptionCheck(column) {
|
|
326
|
-
var matchObj = _xeUtils
|
|
326
|
+
var matchObj = _xeUtils["default"].findTree(this.storeData.columns, function (item) {
|
|
327
327
|
return item === column;
|
|
328
328
|
});
|
|
329
329
|
if (matchObj && matchObj.parent) {
|
|
@@ -350,7 +350,7 @@ var _default = {
|
|
|
350
350
|
},
|
|
351
351
|
allColumnEvent: function allColumnEvent() {
|
|
352
352
|
var isAll = !this.isAll;
|
|
353
|
-
_xeUtils
|
|
353
|
+
_xeUtils["default"].eachTree(this.storeData.columns, function (column) {
|
|
354
354
|
if (!column.disabled) {
|
|
355
355
|
column.checked = isAll;
|
|
356
356
|
column.halfChecked = false;
|
|
@@ -377,7 +377,7 @@ var _default = {
|
|
|
377
377
|
supportMerge = this.supportMerge;
|
|
378
378
|
var hasMerge = storeData.hasMerge,
|
|
379
379
|
columns = storeData.columns;
|
|
380
|
-
var expColumns = _xeUtils
|
|
380
|
+
var expColumns = _xeUtils["default"].searchTree(columns, function (column) {
|
|
381
381
|
return column.checked;
|
|
382
382
|
}, {
|
|
383
383
|
children: 'children',
|
|
@@ -411,10 +411,10 @@ var _default = {
|
|
|
411
411
|
$xetable.exportData(Object.assign({}, $xetable.exportOpts, this.getExportOption())).then(function () {
|
|
412
412
|
_this3.loading = false;
|
|
413
413
|
_this3.storeData.visible = false;
|
|
414
|
-
})
|
|
414
|
+
})["catch"](function () {
|
|
415
415
|
_this3.loading = false;
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
exports
|
|
420
|
+
exports["default"] = _default;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
9
9
|
var _modal = _interopRequireDefault(require("../../modal/src/modal"));
|
|
10
10
|
var _radio = _interopRequireDefault(require("../../radio/src/radio"));
|
|
11
11
|
var _utils = _interopRequireDefault(require("../../tools/utils"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
var _default = {
|
|
14
14
|
name: 'VxeImportPanel',
|
|
15
15
|
props: {
|
|
@@ -17,8 +17,8 @@ var _default = {
|
|
|
17
17
|
storeData: Object
|
|
18
18
|
},
|
|
19
19
|
components: {
|
|
20
|
-
VxeModal: _modal
|
|
21
|
-
VxeRadio: _radio
|
|
20
|
+
VxeModal: _modal["default"],
|
|
21
|
+
VxeRadio: _radio["default"]
|
|
22
22
|
},
|
|
23
23
|
data: function data() {
|
|
24
24
|
return {
|
|
@@ -40,10 +40,10 @@ var _default = {
|
|
|
40
40
|
var type = storeData.type,
|
|
41
41
|
typeList = storeData.typeList;
|
|
42
42
|
if (type) {
|
|
43
|
-
var selectItem = _xeUtils
|
|
43
|
+
var selectItem = _xeUtils["default"].find(typeList, function (item) {
|
|
44
44
|
return type === item.value;
|
|
45
45
|
});
|
|
46
|
-
return selectItem ? _conf
|
|
46
|
+
return selectItem ? _conf["default"].i18n(selectItem.label) : '*.*';
|
|
47
47
|
}
|
|
48
48
|
return "*.".concat(typeList.map(function (item) {
|
|
49
49
|
return item.value;
|
|
@@ -60,7 +60,7 @@ var _default = {
|
|
|
60
60
|
res: 'modal',
|
|
61
61
|
props: {
|
|
62
62
|
value: storeData.visible,
|
|
63
|
-
title: _conf
|
|
63
|
+
title: _conf["default"].i18n('vxe.import.impTitle'),
|
|
64
64
|
width: 440,
|
|
65
65
|
mask: true,
|
|
66
66
|
lockView: true,
|
|
@@ -76,33 +76,33 @@ var _default = {
|
|
|
76
76
|
show: this.showEvent
|
|
77
77
|
}
|
|
78
78
|
}, [h('div', {
|
|
79
|
-
class: 'vxe-export--panel'
|
|
79
|
+
"class": 'vxe-export--panel'
|
|
80
80
|
}, [h('table', {
|
|
81
81
|
attrs: {
|
|
82
82
|
cellspacing: 0,
|
|
83
83
|
cellpadding: 0,
|
|
84
84
|
border: 0
|
|
85
85
|
}
|
|
86
|
-
}, [h('tbody', [h('tr', [h('td', _conf
|
|
87
|
-
class: 'vxe-import-selected--file',
|
|
86
|
+
}, [h('tbody', [h('tr', [h('td', _conf["default"].i18n('vxe.import.impFile')), h('td', [hasFile ? h('div', {
|
|
87
|
+
"class": 'vxe-import-selected--file',
|
|
88
88
|
attrs: {
|
|
89
89
|
title: selectName
|
|
90
90
|
}
|
|
91
91
|
}, [h('span', selectName), h('i', {
|
|
92
|
-
class: _conf
|
|
92
|
+
"class": _conf["default"].icon.INPUT_CLEAR,
|
|
93
93
|
on: {
|
|
94
94
|
click: this.clearFileEvent
|
|
95
95
|
}
|
|
96
96
|
})]) : h('button', {
|
|
97
97
|
ref: 'fileBtn',
|
|
98
|
-
class: 'vxe-import-select--file',
|
|
98
|
+
"class": 'vxe-import-select--file',
|
|
99
99
|
attrs: {
|
|
100
100
|
type: 'button'
|
|
101
101
|
},
|
|
102
102
|
on: {
|
|
103
103
|
click: this.selectFileEvent
|
|
104
104
|
}
|
|
105
|
-
}, _conf
|
|
105
|
+
}, _conf["default"].i18n('vxe.import.impSelect'))])]), h('tr', [h('td', _conf["default"].i18n('vxe.import.impType')), h('td', parseTypeLabel)]), h('tr', [h('td', _conf["default"].i18n('vxe.import.impOpts')), h('td', [h('vxe-radio-group', {
|
|
106
106
|
props: {
|
|
107
107
|
value: defaultOptions.mode
|
|
108
108
|
},
|
|
@@ -116,14 +116,14 @@ var _default = {
|
|
|
116
116
|
props: {
|
|
117
117
|
label: item.value
|
|
118
118
|
}
|
|
119
|
-
}, _conf
|
|
119
|
+
}, _conf["default"].i18n(item.label));
|
|
120
120
|
}))])])])]), h('div', {
|
|
121
|
-
class: 'vxe-export--panel-btns'
|
|
121
|
+
"class": 'vxe-export--panel-btns'
|
|
122
122
|
}, [h('vxe-button', {
|
|
123
123
|
on: {
|
|
124
124
|
click: this.cancelEvent
|
|
125
125
|
}
|
|
126
|
-
}, _conf
|
|
126
|
+
}, _conf["default"].i18n('vxe.import.impCancel')), h('vxe-button', {
|
|
127
127
|
props: {
|
|
128
128
|
status: 'primary',
|
|
129
129
|
disabled: !hasFile
|
|
@@ -131,7 +131,7 @@ var _default = {
|
|
|
131
131
|
on: {
|
|
132
132
|
click: this.importEvent
|
|
133
133
|
}
|
|
134
|
-
}, _conf
|
|
134
|
+
}, _conf["default"].i18n('vxe.import.impConfirm'))])])]);
|
|
135
135
|
},
|
|
136
136
|
methods: {
|
|
137
137
|
clearFileEvent: function clearFileEvent() {
|
|
@@ -146,10 +146,10 @@ var _default = {
|
|
|
146
146
|
var $xetable = this.$parent;
|
|
147
147
|
$xetable.readFile(this.defaultOptions).then(function (params) {
|
|
148
148
|
var file = params.file;
|
|
149
|
-
Object.assign(_this.storeData, _utils
|
|
149
|
+
Object.assign(_this.storeData, _utils["default"].parseFile(file), {
|
|
150
150
|
file: file
|
|
151
151
|
});
|
|
152
|
-
})
|
|
152
|
+
})["catch"](function (e) {
|
|
153
153
|
return e;
|
|
154
154
|
});
|
|
155
155
|
},
|
|
@@ -173,10 +173,10 @@ var _default = {
|
|
|
173
173
|
$xetable.importByFile(this.storeData.file, Object.assign({}, $xetable.importOpts, this.defaultOptions)).then(function () {
|
|
174
174
|
_this3.loading = false;
|
|
175
175
|
_this3.storeData.visible = false;
|
|
176
|
-
})
|
|
176
|
+
})["catch"](function () {
|
|
177
177
|
_this3.loading = false;
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
exports
|
|
182
|
+
exports["default"] = _default;
|