vxe-table 3.6.11 → 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.
Files changed (175) 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 +1822 -1218
  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 +220 -219
  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 +5 -2
  170. /package/lib/icon/style/{iconfont.1676990912741.ttf → iconfont.1677164683133.ttf} +0 -0
  171. /package/lib/icon/style/{iconfont.1676990912741.woff → iconfont.1677164683133.woff} +0 -0
  172. /package/lib/icon/style/{iconfont.1676990912741.woff2 → iconfont.1677164683133.woff2} +0 -0
  173. /package/lib/{iconfont.1676990912741.ttf → iconfont.1677164683133.ttf} +0 -0
  174. /package/lib/{iconfont.1676990912741.woff → iconfont.1677164683133.woff} +0 -0
  175. /package/lib/{iconfont.1676990912741.woff2 → iconfont.1677164683133.woff2} +0 -0
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.Textarea = void 0;
6
+ exports["default"] = exports.Textarea = void 0;
7
7
  var _textarea = _interopRequireDefault(require("./src/textarea"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var Textarea = Object.assign(_textarea.default, {
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ var Textarea = Object.assign(_textarea["default"], {
10
10
  install: function install(Vue) {
11
- Vue.component(_textarea.default.name, _textarea.default);
11
+ Vue.component(_textarea["default"].name, _textarea["default"]);
12
12
  }
13
13
  });
14
14
  exports.Textarea = Textarea;
15
15
  var _default = Textarea;
16
- exports.default = _default;
16
+ exports["default"] = _default;
@@ -3,17 +3,17 @@
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 _size = _interopRequireDefault(require("../../mixins/size"));
10
10
  var _utils = require("../../tools/utils");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
12
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
  var autoTxtElem;
14
14
  var _default2 = {
15
15
  name: 'VxeTextarea',
16
- mixins: [_size.default],
16
+ mixins: [_size["default"]],
17
17
  model: {
18
18
  prop: 'value',
19
19
  event: 'modelValue'
@@ -22,7 +22,7 @@ var _default2 = {
22
22
  value: [String, Number],
23
23
  immediate: {
24
24
  type: Boolean,
25
- default: true
25
+ "default": true
26
26
  },
27
27
  name: String,
28
28
  readonly: Boolean,
@@ -31,11 +31,11 @@ var _default2 = {
31
31
  maxlength: [String, Number],
32
32
  rows: {
33
33
  type: [String, Number],
34
- default: 2
34
+ "default": 2
35
35
  },
36
36
  cols: {
37
37
  type: [String, Number],
38
- default: null
38
+ "default": null
39
39
  },
40
40
  showWordCount: Boolean,
41
41
  countMethod: Function,
@@ -43,24 +43,24 @@ var _default2 = {
43
43
  form: String,
44
44
  resize: {
45
45
  type: String,
46
- default: function _default() {
47
- return _conf.default.textarea.resize;
46
+ "default": function _default() {
47
+ return _conf["default"].textarea.resize;
48
48
  }
49
49
  },
50
50
  className: String,
51
51
  size: {
52
52
  type: String,
53
- default: function _default() {
54
- return _conf.default.textarea.size || _conf.default.size;
53
+ "default": function _default() {
54
+ return _conf["default"].textarea.size || _conf["default"].size;
55
55
  }
56
56
  }
57
57
  },
58
58
  inject: {
59
59
  $xeform: {
60
- default: null
60
+ "default": null
61
61
  },
62
62
  $xeformiteminfo: {
63
- default: null
63
+ "default": null
64
64
  }
65
65
  },
66
66
  data: function data() {
@@ -70,15 +70,15 @@ var _default2 = {
70
70
  },
71
71
  computed: {
72
72
  inputCount: function inputCount() {
73
- return _xeUtils.default.getSize(this.inputValue);
73
+ return _xeUtils["default"].getSize(this.inputValue);
74
74
  },
75
75
  isCountError: function isCountError() {
76
- return this.maxlength && this.inputCount > _xeUtils.default.toNumber(this.maxlength);
76
+ return this.maxlength && this.inputCount > _xeUtils["default"].toNumber(this.maxlength);
77
77
  },
78
78
  defaultEvents: function defaultEvents() {
79
79
  var _this = this;
80
80
  var evnts = {};
81
- _xeUtils.default.each(this.$listeners, function (cb, name) {
81
+ _xeUtils["default"].each(this.$listeners, function (cb, name) {
82
82
  if (['input', 'change', 'blur'].indexOf(name) === -1) {
83
83
  evnts[name] = _this.triggerEvent;
84
84
  }
@@ -92,7 +92,7 @@ var _default2 = {
92
92
  return Object.assign({
93
93
  minRows: 1,
94
94
  maxRows: 10
95
- }, _conf.default.textarea.autosize, this.autosize);
95
+ }, _conf["default"].textarea.autosize, this.autosize);
96
96
  }
97
97
  },
98
98
  watch: {
@@ -140,10 +140,10 @@ var _default2 = {
140
140
  attrs.placeholder = (0, _utils.getFuncText)(placeholder);
141
141
  }
142
142
  return h('div', {
143
- class: ['vxe-textarea', className, (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--autosize', autosize), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'def--rows', !_xeUtils.default.eqNull(rows)), _defineProperty(_ref, 'def--cols', !_xeUtils.default.eqNull(cols)), _ref)]
143
+ "class": ['vxe-textarea', className, (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--autosize', autosize), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'def--rows', !_xeUtils["default"].eqNull(rows)), _defineProperty(_ref, 'def--cols', !_xeUtils["default"].eqNull(cols)), _ref)]
144
144
  }, [h('textarea', {
145
145
  ref: 'textarea',
146
- class: 'vxe-textarea--inner',
146
+ "class": 'vxe-textarea--inner',
147
147
  domProps: {
148
148
  value: inputValue
149
149
  },
@@ -153,7 +153,7 @@ var _default2 = {
153
153
  } : null,
154
154
  on: defaultEvents
155
155
  }), showWordCount ? h('span', {
156
- class: ['vxe-textarea--count', {
156
+ "class": ['vxe-textarea--count', {
157
157
  'is--error': this.isCountError
158
158
  }]
159
159
  }, countMethod ? "".concat(countMethod({
@@ -250,11 +250,11 @@ var _default2 = {
250
250
  var textElem = $refs.textarea;
251
251
  var sizeHeight = autoTxtElem.clientHeight;
252
252
  var textStyle = getComputedStyle(textElem);
253
- var lineHeight = _xeUtils.default.toNumber(textStyle.lineHeight);
254
- var paddingTop = _xeUtils.default.toNumber(textStyle.paddingTop);
255
- var paddingBottom = _xeUtils.default.toNumber(textStyle.paddingBottom);
256
- var borderTopWidth = _xeUtils.default.toNumber(textStyle.borderTopWidth);
257
- var borderBottomWidth = _xeUtils.default.toNumber(textStyle.borderBottomWidth);
253
+ var lineHeight = _xeUtils["default"].toNumber(textStyle.lineHeight);
254
+ var paddingTop = _xeUtils["default"].toNumber(textStyle.paddingTop);
255
+ var paddingBottom = _xeUtils["default"].toNumber(textStyle.paddingBottom);
256
+ var borderTopWidth = _xeUtils["default"].toNumber(textStyle.borderTopWidth);
257
+ var borderBottomWidth = _xeUtils["default"].toNumber(textStyle.borderBottomWidth);
258
258
  var intervalHeight = paddingTop + paddingBottom + borderTopWidth + borderBottomWidth;
259
259
  var rowNum = (sizeHeight - intervalHeight) / lineHeight;
260
260
  var textRows = rowNum && /[0-9]/.test(rowNum) ? rowNum : Math.floor(rowNum) + 1;
@@ -270,4 +270,4 @@ var _default2 = {
270
270
  }
271
271
  }
272
272
  };
273
- exports.default = _default2;
273
+ exports["default"] = _default2;
@@ -46,18 +46,9 @@
46
46
  display: block;
47
47
  padding: 0.3em 0.6em;
48
48
  }
49
- .vxe-textarea--inner::-webkit-input-placeholder {
50
- color: #C0C4CC;
51
- }
52
49
  .vxe-textarea--inner::-moz-placeholder {
53
50
  color: #C0C4CC;
54
51
  }
55
- .vxe-textarea--inner:-ms-input-placeholder {
56
- color: #C0C4CC;
57
- }
58
- .vxe-textarea--inner::-ms-input-placeholder {
59
- color: #C0C4CC;
60
- }
61
52
  .vxe-textarea--inner::placeholder {
62
53
  color: #C0C4CC;
63
54
  }
@@ -1 +1 @@
1
- .vxe-textarea{position:relative;display:inline-block}.vxe-textarea:not(.def--cols){width:100%}.vxe-textarea:not(.def--cols) .vxe-textarea--inner{width:100%}.vxe-textarea--inner{border-radius:4px;outline:0;font-size:inherit;padding:0 .6em;color:#606266;line-height:inherit;border:1px solid #dcdfe6;background-color:#fff;display:block;padding:.3em .6em}.vxe-textarea--inner::-webkit-input-placeholder{color:#c0c4cc}.vxe-textarea--inner::-moz-placeholder{color:#c0c4cc}.vxe-textarea--inner:-ms-input-placeholder{color:#c0c4cc}.vxe-textarea--inner::-ms-input-placeholder{color:#c0c4cc}.vxe-textarea--inner::placeholder{color:#c0c4cc}.vxe-textarea--inner:focus{border:1px solid #409eff}.vxe-textarea--inner[disabled]{cursor:not-allowed;background-color:#f3f3f3}.vxe-textarea--autosize,.vxe-textarea--inner{line-height:1.5715;color:#606266;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.vxe-textarea--autosize{display:block;position:fixed;top:0;left:0;width:100%;margin:0;padding:.3em .6em;word-wrap:break-word;white-space:pre-wrap;z-index:-1;visibility:hidden}.vxe-textarea--count{position:absolute;bottom:.2em;right:1.4em;padding-left:.2em;color:#999;background-color:#fff}.vxe-textarea--count.is--error{color:#f56c6c}.vxe-textarea,.vxe-textarea--autosize{font-size:14px}.vxe-textarea--autosize.size--medium,.vxe-textarea.size--medium{font-size:14px}.vxe-textarea--autosize.size--small,.vxe-textarea.size--small{font-size:13px}.vxe-textarea--autosize.size--mini,.vxe-textarea.size--mini{font-size:12px}.vxe-textarea:not(.is--autosize){min-height:34px}.vxe-textarea.size--medium{font-size:14px}.vxe-textarea.size--medium:not(.is--autosize){min-height:32px}.vxe-textarea.size--small:not(.is--autosize){min-height:30px}.vxe-textarea.size--mini:not(.is--autosize){min-height:28px}
1
+ .vxe-textarea{position:relative;display:inline-block}.vxe-textarea:not(.def--cols){width:100%}.vxe-textarea:not(.def--cols) .vxe-textarea--inner{width:100%}.vxe-textarea--inner{border-radius:4px;outline:0;font-size:inherit;padding:0 .6em;color:#606266;line-height:inherit;border:1px solid #dcdfe6;background-color:#fff;display:block;padding:.3em .6em}.vxe-textarea--inner::-moz-placeholder{color:#c0c4cc}.vxe-textarea--inner::placeholder{color:#c0c4cc}.vxe-textarea--inner:focus{border:1px solid #409eff}.vxe-textarea--inner[disabled]{cursor:not-allowed;background-color:#f3f3f3}.vxe-textarea--autosize,.vxe-textarea--inner{line-height:1.5715;color:#606266;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.vxe-textarea--autosize{display:block;position:fixed;top:0;left:0;width:100%;margin:0;padding:.3em .6em;word-wrap:break-word;white-space:pre-wrap;z-index:-1;visibility:hidden}.vxe-textarea--count{position:absolute;bottom:.2em;right:1.4em;padding-left:.2em;color:#999;background-color:#fff}.vxe-textarea--count.is--error{color:#f56c6c}.vxe-textarea,.vxe-textarea--autosize{font-size:14px}.vxe-textarea--autosize.size--medium,.vxe-textarea.size--medium{font-size:14px}.vxe-textarea--autosize.size--small,.vxe-textarea.size--small{font-size:13px}.vxe-textarea--autosize.size--mini,.vxe-textarea.size--mini{font-size:12px}.vxe-textarea:not(.is--autosize){min-height:34px}.vxe-textarea.size--medium{font-size:14px}.vxe-textarea.size--medium:not(.is--autosize){min-height:32px}.vxe-textarea.size--small:not(.is--autosize){min-height:30px}.vxe-textarea.size--mini:not(.is--autosize){min-height:28px}
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.Toolbar = void 0;
6
+ exports["default"] = exports.Toolbar = void 0;
7
7
  var _toolbar = _interopRequireDefault(require("./src/toolbar"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- var Toolbar = Object.assign(_toolbar.default, {
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ var Toolbar = Object.assign(_toolbar["default"], {
10
10
  install: function install(Vue) {
11
- Vue.component(_toolbar.default.name, _toolbar.default);
11
+ Vue.component(_toolbar["default"].name, _toolbar["default"]);
12
12
  }
13
13
  });
14
14
  exports.Toolbar = Toolbar;
15
15
  var _default = Toolbar;
16
- exports.default = _default;
16
+ exports["default"] = _default;
@@ -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 _vXETable = _interopRequireDefault(require("../../v-x-e-table"));
@@ -13,7 +13,7 @@ var _dom = _interopRequireDefault(require("../../tools/dom"));
13
13
  var _vn = require("../../tools/vn");
14
14
  var _event = require("../../tools/event");
15
15
  var _log = require("../../tools/log");
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
  var renderDropdowns = function renderDropdowns(h, _vm, item, isBtn) {
19
19
  var _e = _vm._e;
@@ -62,7 +62,7 @@ function renderBtns(h, _vm) {
62
62
  return buttons.map(function (item) {
63
63
  var dropdowns = item.dropdowns,
64
64
  buttonRender = item.buttonRender;
65
- var compConf = buttonRender ? _vXETable.default.renderer.get(buttonRender.name) : null;
65
+ var compConf = buttonRender ? _vXETable["default"].renderer.get(buttonRender.name) : null;
66
66
  if (item.visible === false) {
67
67
  return _e();
68
68
  }
@@ -70,7 +70,7 @@ function renderBtns(h, _vm) {
70
70
  var renderToolbarButton = compConf.renderToolbarButton || compConf.renderButton;
71
71
  if (renderToolbarButton) {
72
72
  return h('span', {
73
- class: 'vxe-button--item'
73
+ "class": 'vxe-button--item'
74
74
  }, (0, _vn.getSlotVNs)(renderToolbarButton.call(_vm, h, buttonRender, {
75
75
  $grid: $xegrid,
76
76
  $table: $xetable,
@@ -126,7 +126,7 @@ function renderRightTools(h, _vm) {
126
126
  return tools.map(function (item) {
127
127
  var dropdowns = item.dropdowns,
128
128
  toolRender = item.toolRender;
129
- var compConf = toolRender ? _vXETable.default.renderer.get(toolRender.name) : null;
129
+ var compConf = toolRender ? _vXETable["default"].renderer.get(toolRender.name) : null;
130
130
  if (item.visible === false) {
131
131
  return _e();
132
132
  }
@@ -134,7 +134,7 @@ function renderRightTools(h, _vm) {
134
134
  var renderToolbarTool = compConf.renderToolbarTool;
135
135
  if (renderToolbarTool) {
136
136
  return h('span', {
137
- class: 'vxe-tool--item'
137
+ "class": 'vxe-tool--item'
138
138
  }, (0, _vn.getSlotVNs)(renderToolbarTool.call(_vm, h, toolRender, {
139
139
  $grid: $xegrid,
140
140
  $table: $xetable,
@@ -190,8 +190,8 @@ function renderCustoms(h, _vm) {
190
190
  // 点击触发
191
191
  customBtnOns.click = _vm.handleClickSettingEvent;
192
192
  }
193
- _xeUtils.default.eachTree(columns, function (column) {
194
- var colTitle = _utils.default.formatText(column.getTitle(), 1);
193
+ _xeUtils["default"].eachTree(columns, function (column) {
194
+ var colTitle = _utils["default"].formatText(column.getTitle(), 1);
195
195
  var colKey = column.getKey();
196
196
  var isColGroup = column.children && column.children.length;
197
197
  var isDisabled = checkMethod ? !checkMethod({
@@ -201,7 +201,7 @@ function renderCustoms(h, _vm) {
201
201
  var isChecked = column.visible;
202
202
  var isIndeterminate = column.halfVisible;
203
203
  cols.push(h('li', {
204
- class: ['vxe-custom--option', "level--".concat(column.level), {
204
+ "class": ['vxe-custom--option', "level--".concat(column.level), {
205
205
  'is--group': isColGroup,
206
206
  'is--checked': isChecked,
207
207
  'is--indeterminate': isIndeterminate,
@@ -218,104 +218,104 @@ function renderCustoms(h, _vm) {
218
218
  }
219
219
  }
220
220
  }, [h('span', {
221
- class: ['vxe-checkbox--icon', isIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
221
+ "class": ['vxe-checkbox--icon', isIndeterminate ? _conf["default"].icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? _conf["default"].icon.TABLE_CHECKBOX_CHECKED : _conf["default"].icon.TABLE_CHECKBOX_UNCHECKED]
222
222
  }), h('span', {
223
- class: 'vxe-checkbox--label'
223
+ "class": 'vxe-checkbox--label'
224
224
  }, colTitle)]));
225
225
  }
226
226
  });
227
227
  var isAllChecked = customStore.isAll;
228
228
  var isAllIndeterminate = customStore.isIndeterminate;
229
229
  return h('div', {
230
- class: ['vxe-custom--wrapper', {
230
+ "class": ['vxe-custom--wrapper', {
231
231
  'is--active': customStore.visible
232
232
  }],
233
233
  ref: 'customWrapper'
234
234
  }, [h('vxe-button', {
235
235
  props: {
236
236
  circle: true,
237
- icon: customOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_CUSTOM
237
+ icon: customOpts.icon || _conf["default"].icon.TOOLBAR_TOOLS_CUSTOM
238
238
  },
239
239
  attrs: {
240
- title: _conf.default.i18n('vxe.toolbar.custom')
240
+ title: _conf["default"].i18n('vxe.toolbar.custom')
241
241
  },
242
242
  on: customBtnOns
243
243
  }), h('div', {
244
- class: 'vxe-custom--option-wrapper'
244
+ "class": 'vxe-custom--option-wrapper'
245
245
  }, [h('ul', {
246
- class: 'vxe-custom--header'
246
+ "class": 'vxe-custom--header'
247
247
  }, [h('li', {
248
- class: ['vxe-custom--option', {
248
+ "class": ['vxe-custom--option', {
249
249
  'is--checked': isAllChecked,
250
250
  'is--indeterminate': isAllIndeterminate
251
251
  }],
252
252
  attrs: {
253
- title: _conf.default.i18n('vxe.table.allTitle')
253
+ title: _conf["default"].i18n('vxe.table.allTitle')
254
254
  },
255
255
  on: {
256
256
  click: _vm.allCustomEvent
257
257
  }
258
258
  }, [h('span', {
259
- class: ['vxe-checkbox--icon', isAllIndeterminate ? _conf.default.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf.default.icon.TABLE_CHECKBOX_CHECKED : _conf.default.icon.TABLE_CHECKBOX_UNCHECKED]
259
+ "class": ['vxe-checkbox--icon', isAllIndeterminate ? _conf["default"].icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? _conf["default"].icon.TABLE_CHECKBOX_CHECKED : _conf["default"].icon.TABLE_CHECKBOX_UNCHECKED]
260
260
  }), h('span', {
261
- class: 'vxe-checkbox--label'
262
- }, _conf.default.i18n('vxe.toolbar.customAll'))])]), h('ul', {
263
- class: 'vxe-custom--body',
261
+ "class": 'vxe-checkbox--label'
262
+ }, _conf["default"].i18n('vxe.toolbar.customAll'))])]), h('ul', {
263
+ "class": 'vxe-custom--body',
264
264
  on: customWrapperOns
265
265
  }, cols), customOpts.isFooter === false ? null : h('div', {
266
- class: 'vxe-custom--footer'
266
+ "class": 'vxe-custom--footer'
267
267
  }, [h('button', {
268
- class: 'btn--confirm',
268
+ "class": 'btn--confirm',
269
269
  on: {
270
270
  click: _vm.confirmCustomEvent
271
271
  }
272
- }, _conf.default.i18n('vxe.toolbar.customConfirm')), h('button', {
273
- class: 'btn--reset',
272
+ }, _conf["default"].i18n('vxe.toolbar.customConfirm')), h('button', {
273
+ "class": 'btn--reset',
274
274
  on: {
275
275
  click: _vm.resetCustomEvent
276
276
  }
277
- }, _conf.default.i18n('vxe.toolbar.customRestore'))])])]);
277
+ }, _conf["default"].i18n('vxe.toolbar.customRestore'))])])]);
278
278
  }
279
279
  var _default2 = {
280
280
  name: 'VxeToolbar',
281
- mixins: [_size.default],
281
+ mixins: [_size["default"]],
282
282
  props: {
283
283
  loading: Boolean,
284
284
  refresh: [Boolean, Object],
285
- import: [Boolean, Object],
286
- export: [Boolean, Object],
285
+ "import": [Boolean, Object],
286
+ "export": [Boolean, Object],
287
287
  print: [Boolean, Object],
288
288
  zoom: [Boolean, Object],
289
289
  custom: [Boolean, Object],
290
290
  buttons: {
291
291
  type: Array,
292
- default: function _default() {
293
- return _conf.default.toolbar.buttons;
292
+ "default": function _default() {
293
+ return _conf["default"].toolbar.buttons;
294
294
  }
295
295
  },
296
296
  tools: {
297
297
  type: Array,
298
- default: function _default() {
299
- return _conf.default.toolbar.tools;
298
+ "default": function _default() {
299
+ return _conf["default"].toolbar.tools;
300
300
  }
301
301
  },
302
302
  perfect: {
303
303
  type: Boolean,
304
- default: function _default() {
305
- return _conf.default.toolbar.perfect;
304
+ "default": function _default() {
305
+ return _conf["default"].toolbar.perfect;
306
306
  }
307
307
  },
308
308
  size: {
309
309
  type: String,
310
- default: function _default() {
311
- return _conf.default.toolbar.size || _conf.default.size;
310
+ "default": function _default() {
311
+ return _conf["default"].toolbar.size || _conf["default"].size;
312
312
  }
313
313
  },
314
314
  className: [String, Function]
315
315
  },
316
316
  inject: {
317
317
  $xegrid: {
318
- default: null
318
+ "default": null
319
319
  }
320
320
  },
321
321
  data: function data() {
@@ -332,22 +332,22 @@ var _default2 = {
332
332
  },
333
333
  computed: {
334
334
  refreshOpts: function refreshOpts() {
335
- return Object.assign({}, _conf.default.toolbar.refresh, this.refresh);
335
+ return Object.assign({}, _conf["default"].toolbar.refresh, this.refresh);
336
336
  },
337
337
  importOpts: function importOpts() {
338
- return Object.assign({}, _conf.default.toolbar.import, this.import);
338
+ return Object.assign({}, _conf["default"].toolbar["import"], this["import"]);
339
339
  },
340
340
  exportOpts: function exportOpts() {
341
- return Object.assign({}, _conf.default.toolbar.export, this.export);
341
+ return Object.assign({}, _conf["default"].toolbar["export"], this["export"]);
342
342
  },
343
343
  printOpts: function printOpts() {
344
- return Object.assign({}, _conf.default.toolbar.print, this.print);
344
+ return Object.assign({}, _conf["default"].toolbar.print, this.print);
345
345
  },
346
346
  zoomOpts: function zoomOpts() {
347
- return Object.assign({}, _conf.default.toolbar.zoom, this.zoom);
347
+ return Object.assign({}, _conf["default"].toolbar.zoom, this.zoom);
348
348
  },
349
349
  customOpts: function customOpts() {
350
- return Object.assign({}, _conf.default.toolbar.custom, this.custom);
350
+ return Object.assign({}, _conf["default"].toolbar.custom, this.custom);
351
351
  }
352
352
  },
353
353
  created: function created() {
@@ -367,7 +367,7 @@ var _default2 = {
367
367
  if (_this.buttons) {
368
368
  _this.buttons.forEach(function (item) {
369
369
  var buttonRender = item.buttonRender;
370
- var compConf = buttonRender ? _vXETable.default.renderer.get(buttonRender.name) : null;
370
+ var compConf = buttonRender ? _vXETable["default"].renderer.get(buttonRender.name) : null;
371
371
  if (compConf && compConf.renderButton) {
372
372
  (0, _log.warnLog)('vxe.error.delFunc', ['renderButton', 'renderToolbarButton']);
373
373
  }
@@ -398,33 +398,33 @@ var _default2 = {
398
398
  vSize = this.vSize,
399
399
  className = this.className;
400
400
  return h('div', {
401
- class: ['vxe-toolbar', className ? _xeUtils.default.isFunction(className) ? className({
401
+ "class": ['vxe-toolbar', className ? _xeUtils["default"].isFunction(className) ? className({
402
402
  $toolbar: this
403
403
  }) : className : '', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--perfect', perfect), _defineProperty(_ref, 'is--loading', loading), _ref)]
404
404
  }, [h('div', {
405
- class: 'vxe-buttons--wrapper'
405
+ "class": 'vxe-buttons--wrapper'
406
406
  }, renderBtns(h, this)), h('div', {
407
- class: 'vxe-tools--wrapper'
407
+ "class": 'vxe-tools--wrapper'
408
408
  }, renderRightTools(h, this)), h('div', {
409
- class: 'vxe-tools--operate'
410
- }, [this.import ? h('vxe-button', {
409
+ "class": 'vxe-tools--operate'
410
+ }, [this["import"] ? h('vxe-button', {
411
411
  props: {
412
412
  circle: true,
413
- icon: importOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_IMPORT
413
+ icon: importOpts.icon || _conf["default"].icon.TOOLBAR_TOOLS_IMPORT
414
414
  },
415
415
  attrs: {
416
- title: _conf.default.i18n('vxe.toolbar.import')
416
+ title: _conf["default"].i18n('vxe.toolbar.import')
417
417
  },
418
418
  on: {
419
419
  click: this.importEvent
420
420
  }
421
- }) : _e(), this.export ? h('vxe-button', {
421
+ }) : _e(), this["export"] ? h('vxe-button', {
422
422
  props: {
423
423
  circle: true,
424
- icon: exportOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_EXPORT
424
+ icon: exportOpts.icon || _conf["default"].icon.TOOLBAR_TOOLS_EXPORT
425
425
  },
426
426
  attrs: {
427
- title: _conf.default.i18n('vxe.toolbar.export')
427
+ title: _conf["default"].i18n('vxe.toolbar.export')
428
428
  },
429
429
  on: {
430
430
  click: this.exportEvent
@@ -432,10 +432,10 @@ var _default2 = {
432
432
  }) : _e(), this.print ? h('vxe-button', {
433
433
  props: {
434
434
  circle: true,
435
- icon: this.printOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_PRINT
435
+ icon: this.printOpts.icon || _conf["default"].icon.TOOLBAR_TOOLS_PRINT
436
436
  },
437
437
  attrs: {
438
- title: _conf.default.i18n('vxe.toolbar.print')
438
+ title: _conf["default"].i18n('vxe.toolbar.print')
439
439
  },
440
440
  on: {
441
441
  click: this.printEvent
@@ -443,10 +443,10 @@ var _default2 = {
443
443
  }) : _e(), refresh ? h('vxe-button', {
444
444
  props: {
445
445
  circle: true,
446
- icon: this.isRefresh ? refreshOpts.iconLoading || _conf.default.icon.TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || _conf.default.icon.TOOLBAR_TOOLS_REFRESH
446
+ icon: this.isRefresh ? refreshOpts.iconLoading || _conf["default"].icon.TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || _conf["default"].icon.TOOLBAR_TOOLS_REFRESH
447
447
  },
448
448
  attrs: {
449
- title: _conf.default.i18n('vxe.toolbar.refresh')
449
+ title: _conf["default"].i18n('vxe.toolbar.refresh')
450
450
  },
451
451
  on: {
452
452
  click: this.refreshEvent
@@ -454,10 +454,10 @@ var _default2 = {
454
454
  }) : _e(), zoom && $xegrid ? h('vxe-button', {
455
455
  props: {
456
456
  circle: true,
457
- icon: $xegrid.isMaximized() ? zoomOpts.iconOut || _conf.default.icon.TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || _conf.default.icon.TOOLBAR_TOOLS_FULLSCREEN
457
+ icon: $xegrid.isMaximized() ? zoomOpts.iconOut || _conf["default"].icon.TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || _conf["default"].icon.TOOLBAR_TOOLS_FULLSCREEN
458
458
  },
459
459
  attrs: {
460
- title: _conf.default.i18n("vxe.toolbar.zoom".concat($xegrid.isMaximized() ? 'Out' : 'In'))
460
+ title: _conf["default"].i18n("vxe.toolbar.zoom".concat($xegrid.isMaximized() ? 'Out' : 'In'))
461
461
  },
462
462
  on: {
463
463
  click: $xegrid.triggerZoomEvent
@@ -474,7 +474,7 @@ var _default2 = {
474
474
  fintTable: function fintTable() {
475
475
  var $children = this.$parent.$children;
476
476
  var selfIndex = $children.indexOf(this);
477
- return _xeUtils.default.find($children, function (comp, index) {
477
+ return _xeUtils["default"].find($children, function (comp, index) {
478
478
  return comp && comp.loadData && index > selfIndex && comp.$vnode.componentOptions.tag === 'vxe-table';
479
479
  });
480
480
  },
@@ -522,7 +522,7 @@ var _default2 = {
522
522
  var $xetable = this.$xetable,
523
523
  columns = this.columns;
524
524
  var checkMethod = $xetable.customOpts.checkMethod;
525
- _xeUtils.default.eachTree(columns, function (column) {
525
+ _xeUtils["default"].eachTree(columns, function (column) {
526
526
  if (!checkMethod || checkMethod({
527
527
  column: column
528
528
  })) {
@@ -548,7 +548,7 @@ var _default2 = {
548
548
  },
549
549
  changeCustomOption: function changeCustomOption(column) {
550
550
  var isChecked = !column.visible;
551
- _xeUtils.default.eachTree([column], function (item) {
551
+ _xeUtils["default"].eachTree([column], function (item) {
552
552
  item.visible = isChecked;
553
553
  item.halfVisible = false;
554
554
  });
@@ -559,7 +559,7 @@ var _default2 = {
559
559
  this.checkCustomStatus();
560
560
  },
561
561
  handleOptionCheck: function handleOptionCheck(column) {
562
- var matchObj = _xeUtils.default.findTree(this.columns, function (item) {
562
+ var matchObj = _xeUtils["default"].findTree(this.columns, function (item) {
563
563
  return item === column;
564
564
  });
565
565
  if (matchObj && matchObj.parent) {
@@ -600,7 +600,7 @@ var _default2 = {
600
600
  customStore = this.customStore;
601
601
  var checkMethod = $xetable.customOpts.checkMethod;
602
602
  var isAll = !customStore.isAll;
603
- _xeUtils.default.eachTree(columns, function (column) {
603
+ _xeUtils["default"].eachTree(columns, function (column) {
604
604
  if (!checkMethod || checkMethod({
605
605
  column: column
606
606
  })) {
@@ -612,7 +612,7 @@ var _default2 = {
612
612
  this.checkCustomStatus();
613
613
  },
614
614
  handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
615
- if (!_dom.default.getEventTargetNode(evnt, this.$refs.customWrapper).flag) {
615
+ if (!_dom["default"].getEventTargetNode(evnt, this.$refs.customWrapper).flag) {
616
616
  this.customColseEvent(evnt);
617
617
  }
618
618
  },
@@ -664,7 +664,7 @@ var _default2 = {
664
664
  if (queryMethod) {
665
665
  this.isRefresh = true;
666
666
  try {
667
- Promise.resolve(queryMethod({})).catch(function (e) {
667
+ Promise.resolve(queryMethod({}))["catch"](function (e) {
668
668
  return e;
669
669
  }).then(function () {
670
670
  _this4.isRefresh = false;
@@ -676,7 +676,7 @@ var _default2 = {
676
676
  this.isRefresh = true;
677
677
  $xegrid.triggerToolbarCommitEvent({
678
678
  code: refreshOpts.code || 'reload'
679
- }, evnt).catch(function (e) {
679
+ }, evnt)["catch"](function (e) {
680
680
  return e;
681
681
  }).then(function () {
682
682
  _this4.isRefresh = false;
@@ -692,7 +692,7 @@ var _default2 = {
692
692
  if ($xegrid) {
693
693
  $xegrid.triggerToolbarBtnEvent(item, evnt);
694
694
  } else {
695
- var commandMethod = _vXETable.default.commands.get(code);
695
+ var commandMethod = _vXETable["default"].commands.get(code);
696
696
  var params = {
697
697
  code: code,
698
698
  button: item,
@@ -715,7 +715,7 @@ var _default2 = {
715
715
  if ($xegrid) {
716
716
  $xegrid.triggerToolbarTolEvent(item, evnt);
717
717
  } else {
718
- var commandMethod = _vXETable.default.commands.get(code);
718
+ var commandMethod = _vXETable["default"].commands.get(code);
719
719
  var params = {
720
720
  code: code,
721
721
  tool: item,
@@ -747,4 +747,4 @@ var _default2 = {
747
747
  }
748
748
  }
749
749
  };
750
- exports.default = _default2;
750
+ exports["default"] = _default2;