vxe-table 3.6.11 → 3.6.12-beta.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.
Files changed (176) hide show
  1. package/lib/all.js +3 -3
  2. package/lib/button/index.js +5 -5
  3. package/lib/button/src/button.js +29 -29
  4. package/lib/button/style/style.css +7 -22
  5. package/lib/button/style/style.min.css +1 -1
  6. package/lib/checkbox/index.js +5 -5
  7. package/lib/checkbox/src/checkbox.js +17 -17
  8. package/lib/checkbox/src/group.js +10 -10
  9. package/lib/checkbox/style/style.css +3 -13
  10. package/lib/checkbox/style/style.min.css +1 -1
  11. package/lib/checkbox-group/index.js +5 -5
  12. package/lib/colgroup/index.js +6 -6
  13. package/lib/column/index.js +6 -6
  14. package/lib/edit/index.js +5 -5
  15. package/lib/edit/src/mixin.js +26 -26
  16. package/lib/export/index.js +15 -15
  17. package/lib/export/src/export-panel.js +57 -57
  18. package/lib/export/src/import-panel.js +21 -21
  19. package/lib/export/src/mixin.js +73 -73
  20. package/lib/export/style/style.css +2 -9
  21. package/lib/export/style/style.min.css +1 -1
  22. package/lib/filter/index.js +7 -7
  23. package/lib/filter/src/mixin.js +8 -8
  24. package/lib/filter/src/panel.js +24 -24
  25. package/lib/filter/style/style.css +1 -5
  26. package/lib/filter/style/style.min.css +1 -1
  27. package/lib/footer/index.js +5 -5
  28. package/lib/footer/src/footer.js +14 -14
  29. package/lib/form/index.js +5 -5
  30. package/lib/form/src/form-config-item.js +23 -23
  31. package/lib/form/src/form-gather.js +5 -5
  32. package/lib/form/src/form-item.js +30 -30
  33. package/lib/form/src/form.js +61 -61
  34. package/lib/form/src/render.js +9 -9
  35. package/lib/form/src/util.js +6 -6
  36. package/lib/form/style/style.css +11 -57
  37. package/lib/form/style/style.min.css +1 -1
  38. package/lib/form-gather/index.js +5 -5
  39. package/lib/form-item/index.js +5 -5
  40. package/lib/grid/index.js +7 -7
  41. package/lib/grid/src/grid.js +77 -77
  42. package/lib/grid/style/style.css +0 -1
  43. package/lib/grid/style/style.min.css +1 -1
  44. package/lib/header/index.js +5 -5
  45. package/lib/header/src/header.js +21 -21
  46. package/lib/icon/index.js +5 -5
  47. package/lib/icon/src/icon.js +3 -3
  48. package/lib/icon/style/style.css +33 -80
  49. package/lib/icon/style/style.min.css +33 -80
  50. package/lib/index.common.js +3 -3
  51. package/lib/index.css +1 -1
  52. package/lib/index.umd.js +1824 -1219
  53. package/lib/index.umd.min.js +1 -1
  54. package/lib/input/index.js +5 -5
  55. package/lib/input/src/date.js +3 -3
  56. package/lib/input/src/input.js +243 -243
  57. package/lib/input/src/number.js +4 -4
  58. package/lib/input/style/style.css +39 -159
  59. package/lib/input/style/style.min.css +1 -1
  60. package/lib/keyboard/index.js +5 -5
  61. package/lib/keyboard/src/mixin.js +15 -15
  62. package/lib/list/index.js +5 -5
  63. package/lib/list/src/list.js +19 -19
  64. package/lib/loading/index.js +6 -6
  65. package/lib/loading/src/loading.js +13 -13
  66. package/lib/loading/style/style.css +5 -21
  67. package/lib/loading/style/style.min.css +1 -1
  68. package/lib/locale/lang/en-US.js +7 -7
  69. package/lib/locale/lang/en-US.umd.js +7 -7
  70. package/lib/locale/lang/ja-JP.js +7 -7
  71. package/lib/locale/lang/ja-JP.umd.js +7 -7
  72. package/lib/locale/lang/zh-CN.js +7 -7
  73. package/lib/locale/lang/zh-CN.umd.js +7 -7
  74. package/lib/locale/lang/zh-HK.js +4 -4
  75. package/lib/locale/lang/zh-HK.umd.js +7 -7
  76. package/lib/locale/lang/zh-MO.js +4 -4
  77. package/lib/locale/lang/zh-MO.umd.js +7 -7
  78. package/lib/locale/lang/zh-TC.js +7 -7
  79. package/lib/locale/lang/zh-TC.umd.js +7 -7
  80. package/lib/locale/lang/zh-TW.js +4 -4
  81. package/lib/locale/lang/zh-TW.umd.js +7 -7
  82. package/lib/menu/index.js +7 -7
  83. package/lib/menu/src/mixin.js +16 -16
  84. package/lib/menu/src/panel.js +14 -14
  85. package/lib/menu/style/style.css +1 -3
  86. package/lib/menu/style/style.min.css +1 -1
  87. package/lib/mixins/size.js +2 -2
  88. package/lib/modal/index.js +12 -12
  89. package/lib/modal/src/modal.js +104 -104
  90. package/lib/modal/style/style.css +14 -49
  91. package/lib/modal/style/style.min.css +1 -1
  92. package/lib/optgroup/index.js +5 -5
  93. package/lib/option/index.js +5 -5
  94. package/lib/pager/index.js +5 -5
  95. package/lib/pager/src/pager.js +66 -66
  96. package/lib/pager/style/style.css +4 -15
  97. package/lib/pager/style/style.min.css +1 -1
  98. package/lib/pulldown/index.js +5 -5
  99. package/lib/pulldown/src/pulldown.js +16 -16
  100. package/lib/pulldown/style/style.css +5 -13
  101. package/lib/pulldown/style/style.min.css +1 -1
  102. package/lib/radio/index.js +5 -5
  103. package/lib/radio/src/button.js +14 -14
  104. package/lib/radio/src/group.js +12 -12
  105. package/lib/radio/src/radio.js +16 -16
  106. package/lib/radio/style/style.css +3 -13
  107. package/lib/radio/style/style.min.css +1 -1
  108. package/lib/radio-button/index.js +5 -5
  109. package/lib/radio-group/index.js +5 -5
  110. package/lib/select/index.js +9 -9
  111. package/lib/select/src/optgroup.js +6 -6
  112. package/lib/select/src/option.js +6 -6
  113. package/lib/select/src/select.js +56 -56
  114. package/lib/select/src/util.js +2 -2
  115. package/lib/select/style/style.css +6 -19
  116. package/lib/select/style/style.min.css +1 -1
  117. package/lib/style.css +1 -1
  118. package/lib/style.min.css +1 -1
  119. package/lib/switch/index.js +5 -5
  120. package/lib/switch/src/switch.js +17 -17
  121. package/lib/switch/style/style.css +3 -9
  122. package/lib/switch/style/style.min.css +1 -1
  123. package/lib/table/index.js +14 -14
  124. package/lib/table/src/body.js +39 -39
  125. package/lib/table/src/cell.js +77 -77
  126. package/lib/table/src/column.js +17 -17
  127. package/lib/table/src/columnInfo.js +13 -13
  128. package/lib/table/src/group.js +4 -4
  129. package/lib/table/src/methods.js +222 -220
  130. package/lib/table/src/methods.min.js +1 -1
  131. package/lib/table/src/table.js +120 -120
  132. package/lib/table/src/util.js +19 -19
  133. package/lib/table/style/style.css +25 -106
  134. package/lib/table/style/style.min.css +1 -1
  135. package/lib/textarea/index.js +5 -5
  136. package/lib/textarea/src/textarea.js +25 -25
  137. package/lib/textarea/style/style.css +0 -9
  138. package/lib/textarea/style/style.min.css +1 -1
  139. package/lib/toolbar/index.js +5 -5
  140. package/lib/toolbar/src/toolbar.js +73 -73
  141. package/lib/toolbar/style/style.css +9 -34
  142. package/lib/toolbar/style/style.min.css +1 -1
  143. package/lib/tools/dom.js +8 -8
  144. package/lib/tools/event.js +3 -3
  145. package/lib/tools/log.js +2 -2
  146. package/lib/tools/log.min.js +1 -1
  147. package/lib/tools/resize.js +4 -4
  148. package/lib/tools/utils.js +12 -12
  149. package/lib/tools/vn.js +2 -2
  150. package/lib/tooltip/index.js +6 -6
  151. package/lib/tooltip/src/tooltip.js +30 -30
  152. package/lib/tooltip/style/style.css +2 -4
  153. package/lib/tooltip/style/style.min.css +1 -1
  154. package/lib/v-x-e-table/index.js +9 -9
  155. package/lib/v-x-e-table/index.min.js +1 -1
  156. package/lib/v-x-e-table/src/commands.js +2 -2
  157. package/lib/v-x-e-table/src/conf.js +4 -4
  158. package/lib/v-x-e-table/src/formats.js +2 -2
  159. package/lib/v-x-e-table/src/interceptor.js +5 -5
  160. package/lib/v-x-e-table/src/menus.js +2 -2
  161. package/lib/v-x-e-table/src/renderer.js +47 -47
  162. package/lib/v-x-e-table/src/setup.js +2 -2
  163. package/lib/v-x-e-table/src/store.js +6 -6
  164. package/lib/v-x-e-table/style/style.css +37 -100
  165. package/lib/v-x-e-table/style/style.min.css +1 -1
  166. package/lib/validator/index.js +5 -5
  167. package/lib/validator/src/mixin.js +25 -25
  168. package/package.json +2 -6
  169. package/packages/table/src/methods.js +7 -3
  170. package/types/table.d.ts +45 -27
  171. /package/lib/icon/style/{iconfont.1676990912741.ttf → iconfont.1677768434962.ttf} +0 -0
  172. /package/lib/icon/style/{iconfont.1676990912741.woff → iconfont.1677768434962.woff} +0 -0
  173. /package/lib/icon/style/{iconfont.1676990912741.woff2 → iconfont.1677768434962.woff2} +0 -0
  174. /package/lib/{iconfont.1676990912741.ttf → iconfont.1677768434962.ttf} +0 -0
  175. /package/lib/{iconfont.1676990912741.woff → iconfont.1677768434962.woff} +0 -0
  176. /package/lib/{iconfont.1676990912741.woff2 → iconfont.1677768434962.woff2} +0 -0
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
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.default,
24
- VxeInput: _input.default,
25
- VxeCheckbox: _checkbox.default,
26
- VxeSelect: _select.default,
27
- VxeOption: _option.default
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.default.eachTree(storeData.columns, function (column) {
76
- var colTitle = _utils.default.formatText(column.getTitle(), 1);
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.default.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
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.default.i18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
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.default.i18n('vxe.export.expName')), h('td', [h('vxe-input', {
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.default.i18n('vxe.export.expNamePlaceholder')
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.default.i18n('vxe.export.expType')), h('td', [h('vxe-select', {
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.default.i18n(item.label)
156
+ label: _conf["default"].i18n(item.label)
157
157
  }
158
158
  });
159
- }))])]), isPrint || showSheet ? h('tr', [h('td', _conf.default.i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
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.default.i18n('vxe.export.expSheetNamePlaceholder')
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.default.i18n('vxe.export.expMode')), h('td', [h('vxe-select', {
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.default.i18n(item.label)
185
+ label: _conf["default"].i18n(item.label)
186
186
  }
187
187
  });
188
- }))])]), h('tr', [h('td', [_conf.default.i18n('vxe.export.expColumn')]), h('td', [h('div', {
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.default.i18n('vxe.table.allTitle')
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.default.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
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.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'
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.default.i18n('vxe.export.expHeaderTitle'),
215
- content: _conf.default.i18n('vxe.export.expOptHeader')
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.default.i18n('vxe.export.expFooterTitle'),
227
- content: _conf.default.i18n('vxe.export.expOptFooter')
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.default.i18n('vxe.export.expOriginalTitle'),
238
- content: _conf.default.i18n('vxe.export.expOptOriginal')
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.default.i18n('vxe.export.expColgroupTitle'),
252
- content: _conf.default.i18n('vxe.export.expOptColgroup')
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.default.i18n('vxe.export.expMergeTitle'),
264
- content: _conf.default.i18n('vxe.export.expOptMerge')
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.default.i18n('vxe.export.expUseStyleTitle'),
276
- content: _conf.default.i18n('vxe.export.expOptUseStyle')
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.default.i18n('vxe.export.expAllExpandTitle'),
288
- content: _conf.default.i18n('vxe.export.expOptAllExpand')
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.default.i18n('vxe.export.expCancel')
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.default.i18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm')
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.default.eachTree([column], function (item) {
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.default.findTree(this.storeData.columns, function (item) {
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.default.eachTree(this.storeData.columns, function (column) {
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.default.searchTree(columns, function (column) {
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
- }).catch(function () {
414
+ })["catch"](function () {
415
415
  _this3.loading = false;
416
416
  });
417
417
  }
418
418
  }
419
419
  };
420
- exports.default = _default;
420
+ exports["default"] = _default;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
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.default,
21
- VxeRadio: _radio.default
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.default.find(typeList, function (item) {
43
+ var selectItem = _xeUtils["default"].find(typeList, function (item) {
44
44
  return type === item.value;
45
45
  });
46
- return selectItem ? _conf.default.i18n(selectItem.label) : '*.*';
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.default.i18n('vxe.import.impTitle'),
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.default.i18n('vxe.import.impFile')), h('td', [hasFile ? h('div', {
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.default.icon.INPUT_CLEAR,
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.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', {
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.default.i18n(item.label));
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.default.i18n('vxe.import.impCancel')), h('vxe-button', {
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.default.i18n('vxe.import.impConfirm'))])])]);
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.default.parseFile(file), {
149
+ Object.assign(_this.storeData, _utils["default"].parseFile(file), {
150
150
  file: file
151
151
  });
152
- }).catch(function (e) {
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
- }).catch(function () {
176
+ })["catch"](function () {
177
177
  _this3.loading = false;
178
178
  });
179
179
  }
180
180
  }
181
181
  };
182
- exports.default = _default;
182
+ exports["default"] = _default;