vxe-table 3.7.2 → 3.7.3

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 (179) 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 +2 -2
  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 +1 -0
  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 +28 -28
  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 +72 -72
  20. package/lib/export/style/style.css +5 -0
  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 +3 -0
  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 +27 -27
  31. package/lib/form/src/form-gather.js +5 -5
  32. package/lib/form/src/form-item.js +36 -36
  33. package/lib/form/src/form.js +69 -69
  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 +10 -2
  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 +1 -0
  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 +2 -1
  49. package/lib/icon/style/style.min.css +2 -1
  50. package/lib/index.common.js +3 -3
  51. package/lib/index.css +1 -1
  52. package/lib/index.umd.js +1238 -1836
  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 +248 -248
  57. package/lib/input/src/number.js +4 -4
  58. package/lib/input/style/style.css +9 -2
  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 +1 -0
  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/es-ES.js +5 -5
  71. package/lib/locale/lang/es-ES.umd.js +5 -5
  72. package/lib/locale/lang/ja-JP.js +7 -7
  73. package/lib/locale/lang/ja-JP.umd.js +7 -7
  74. package/lib/locale/lang/pt-BR.js +7 -7
  75. package/lib/locale/lang/pt-BR.umd.js +7 -7
  76. package/lib/locale/lang/zh-CN.js +7 -7
  77. package/lib/locale/lang/zh-CN.umd.js +7 -7
  78. package/lib/locale/lang/zh-HK.js +4 -4
  79. package/lib/locale/lang/zh-HK.umd.js +7 -7
  80. package/lib/locale/lang/zh-MO.js +4 -4
  81. package/lib/locale/lang/zh-MO.umd.js +7 -7
  82. package/lib/locale/lang/zh-TC.js +7 -7
  83. package/lib/locale/lang/zh-TC.umd.js +7 -7
  84. package/lib/locale/lang/zh-TW.js +4 -4
  85. package/lib/locale/lang/zh-TW.umd.js +7 -7
  86. package/lib/menu/index.js +7 -7
  87. package/lib/menu/src/mixin.js +16 -16
  88. package/lib/menu/src/panel.js +14 -14
  89. package/lib/menu/style/style.css +1 -0
  90. package/lib/menu/style/style.min.css +1 -1
  91. package/lib/mixins/size.js +2 -2
  92. package/lib/modal/index.js +12 -12
  93. package/lib/modal/src/modal.js +104 -104
  94. package/lib/modal/style/style.css +2 -0
  95. package/lib/modal/style/style.min.css +1 -1
  96. package/lib/optgroup/index.js +5 -5
  97. package/lib/option/index.js +5 -5
  98. package/lib/pager/index.js +5 -5
  99. package/lib/pager/src/pager.js +67 -67
  100. package/lib/pager/style/style.css +2 -0
  101. package/lib/pager/style/style.min.css +1 -1
  102. package/lib/pulldown/index.js +5 -5
  103. package/lib/pulldown/src/pulldown.js +16 -16
  104. package/lib/pulldown/style/style.css +1 -2
  105. package/lib/pulldown/style/style.min.css +1 -1
  106. package/lib/radio/index.js +5 -5
  107. package/lib/radio/src/button.js +14 -14
  108. package/lib/radio/src/group.js +12 -12
  109. package/lib/radio/src/radio.js +16 -16
  110. package/lib/radio/style/style.css +1 -0
  111. package/lib/radio/style/style.min.css +1 -1
  112. package/lib/radio-button/index.js +5 -5
  113. package/lib/radio-group/index.js +5 -5
  114. package/lib/select/index.js +9 -9
  115. package/lib/select/src/optgroup.js +6 -6
  116. package/lib/select/src/option.js +6 -6
  117. package/lib/select/src/select.js +58 -58
  118. package/lib/select/src/util.js +2 -2
  119. package/lib/select/style/style.css +2 -2
  120. package/lib/select/style/style.min.css +1 -1
  121. package/lib/style.css +1 -1
  122. package/lib/style.min.css +1 -1
  123. package/lib/switch/index.js +5 -5
  124. package/lib/switch/src/switch.js +17 -17
  125. package/lib/switch/style/style.css +1 -0
  126. package/lib/switch/style/style.min.css +1 -1
  127. package/lib/table/index.js +15 -15
  128. package/lib/table/src/body.js +39 -39
  129. package/lib/table/src/cell.js +77 -77
  130. package/lib/table/src/column.js +17 -17
  131. package/lib/table/src/columnInfo.js +13 -13
  132. package/lib/table/src/group.js +4 -4
  133. package/lib/table/src/methods.js +223 -223
  134. package/lib/table/src/table.js +124 -124
  135. package/lib/table/src/util.js +19 -19
  136. package/lib/table/style/style.css +10 -0
  137. package/lib/table/style/style.min.css +1 -1
  138. package/lib/textarea/index.js +5 -5
  139. package/lib/textarea/src/textarea.js +27 -27
  140. package/lib/textarea/style/style.css +3 -0
  141. package/lib/textarea/style/style.min.css +1 -1
  142. package/lib/toolbar/index.js +5 -5
  143. package/lib/toolbar/src/toolbar.js +79 -79
  144. package/lib/toolbar/style/style.css +3 -0
  145. package/lib/toolbar/style/style.min.css +1 -1
  146. package/lib/tools/dom.js +8 -8
  147. package/lib/tools/event.js +3 -3
  148. package/lib/tools/log.js +2 -2
  149. package/lib/tools/log.min.js +1 -1
  150. package/lib/tools/resize.js +4 -4
  151. package/lib/tools/utils.js +13 -13
  152. package/lib/tools/vn.js +2 -2
  153. package/lib/tooltip/index.js +6 -6
  154. package/lib/tooltip/src/tooltip.js +30 -30
  155. package/lib/v-x-e-table/index.js +9 -9
  156. package/lib/v-x-e-table/index.min.js +1 -1
  157. package/lib/v-x-e-table/src/commands.js +6 -6
  158. package/lib/v-x-e-table/src/conf.js +4 -4
  159. package/lib/v-x-e-table/src/config.js +6 -2
  160. package/lib/v-x-e-table/src/config.min.js +1 -1
  161. package/lib/v-x-e-table/src/formats.js +6 -6
  162. package/lib/v-x-e-table/src/interceptor.js +5 -5
  163. package/lib/v-x-e-table/src/menus.js +6 -6
  164. package/lib/v-x-e-table/src/renderer.js +49 -49
  165. package/lib/v-x-e-table/src/store.js +7 -7
  166. package/lib/v-x-e-table/src/validators.js +2 -2
  167. package/lib/v-x-e-table/style/style.css +2 -0
  168. package/lib/v-x-e-table/style/style.min.css +1 -1
  169. package/lib/validator/index.js +5 -5
  170. package/lib/validator/src/mixin.js +29 -29
  171. package/package.json +4 -4
  172. package/packages/v-x-e-table/src/config.js +4 -0
  173. package/styles/form.scss +3 -2
  174. /package/lib/icon/style/{iconfont.1694939101562.ttf → iconfont.1695255877135.ttf} +0 -0
  175. /package/lib/icon/style/{iconfont.1694939101562.woff → iconfont.1695255877135.woff} +0 -0
  176. /package/lib/icon/style/{iconfont.1694939101562.woff2 → iconfont.1695255877135.woff2} +0 -0
  177. /package/lib/{iconfont.1694939101562.ttf → iconfont.1695255877135.ttf} +0 -0
  178. /package/lib/{iconfont.1694939101562.woff → iconfont.1695255877135.woff} +0 -0
  179. /package/lib/{iconfont.1694939101562.woff2 → iconfont.1695255877135.woff2} +0 -0
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.Switch = void 0;
6
+ exports.default = exports.Switch = void 0;
7
7
  var _switch = _interopRequireDefault(require("./src/switch"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- var Switch = Object.assign(_switch["default"], {
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ var Switch = Object.assign(_switch.default, {
10
10
  install: function install(Vue) {
11
- Vue.component(_switch["default"].name, _switch["default"]);
11
+ Vue.component(_switch.default.name, _switch.default);
12
12
  }
13
13
  });
14
14
  exports.Switch = Switch;
15
15
  var _default = Switch;
16
- exports["default"] = _default;
16
+ exports.default = _default;
@@ -3,45 +3,45 @@
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 _utils = require("../../tools/utils");
8
8
  var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
9
9
  var _size = _interopRequireDefault(require("../../mixins/size"));
10
10
  var _dom = require("../../tools/dom");
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 _default2 = {
14
14
  name: 'VxeSwitch',
15
- mixins: [_size["default"]],
15
+ mixins: [_size.default],
16
16
  props: {
17
17
  value: [String, Number, Boolean],
18
18
  disabled: Boolean,
19
19
  className: String,
20
20
  size: {
21
21
  type: String,
22
- "default": function _default() {
23
- return _conf["default"]["switch"].size || _conf["default"].size;
22
+ default: function _default() {
23
+ return _conf.default.switch.size || _conf.default.size;
24
24
  }
25
25
  },
26
26
  openLabel: String,
27
27
  closeLabel: String,
28
28
  openValue: {
29
29
  type: [String, Number, Boolean],
30
- "default": true
30
+ default: true
31
31
  },
32
32
  closeValue: {
33
33
  type: [String, Number, Boolean],
34
- "default": false
34
+ default: false
35
35
  },
36
36
  openIcon: String,
37
37
  closeIcon: String
38
38
  },
39
39
  inject: {
40
40
  $xeform: {
41
- "default": null
41
+ default: null
42
42
  },
43
43
  $xeformiteminfo: {
44
- "default": null
44
+ default: null
45
45
  }
46
46
  },
47
47
  data: function data() {
@@ -84,10 +84,10 @@ var _default2 = {
84
84
  openIcon = this.openIcon,
85
85
  closeIcon = this.closeIcon;
86
86
  return h('div', {
87
- "class": ['vxe-switch', className, isChecked ? 'is--on' : 'is--off', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'is--animat', this.hasAnimat), _ref)]
87
+ class: ['vxe-switch', className, isChecked ? 'is--on' : 'is--off', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--disabled', disabled), _defineProperty(_ref, 'is--animat', this.hasAnimat), _ref)]
88
88
  }, [h('button', {
89
89
  ref: 'btn',
90
- "class": 'vxe-switch--button',
90
+ class: 'vxe-switch--button',
91
91
  attrs: {
92
92
  type: 'button',
93
93
  disabled: disabled
@@ -98,15 +98,15 @@ var _default2 = {
98
98
  blur: this.blurEvent
99
99
  }
100
100
  }, [h('span', {
101
- "class": 'vxe-switch--label vxe-switch--label-on'
101
+ class: 'vxe-switch--label vxe-switch--label-on'
102
102
  }, [openIcon ? h('i', {
103
- "class": ['vxe-switch--label-icon', openIcon]
103
+ class: ['vxe-switch--label-icon', openIcon]
104
104
  }) : null, this.onShowLabel]), h('span', {
105
- "class": 'vxe-switch--label vxe-switch--label-off'
105
+ class: 'vxe-switch--label vxe-switch--label-off'
106
106
  }, [closeIcon ? h('i', {
107
- "class": ['vxe-switch--label-icon', closeIcon]
107
+ class: ['vxe-switch--label-icon', closeIcon]
108
108
  }) : null, this.offShowLabel]), h('span', {
109
- "class": 'vxe-switch--icon',
109
+ class: 'vxe-switch--icon',
110
110
  style: this.styles
111
111
  })])]);
112
112
  },
@@ -155,4 +155,4 @@ var _default2 = {
155
155
  }
156
156
  }
157
157
  };
158
- exports["default"] = _default2;
158
+ exports.default = _default2;
@@ -30,6 +30,7 @@
30
30
  padding: 0.4em;
31
31
  -webkit-user-select: none;
32
32
  -moz-user-select: none;
33
+ -ms-user-select: none;
33
34
  user-select: none;
34
35
  text-align: center;
35
36
  }
@@ -1 +1 @@
1
- .vxe-switch{display:inline-block;color:#606266;vertical-align:middle;padding:.4em;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.vxe-switch.is--animat .vxe-switch--button{transition:border-color .3s,background-color .3s}.vxe-switch.is--animat .vxe-switch--icon{transition:all .3s}.vxe-switch.is--on .vxe-switch--button{padding-right:1.7em;background-color:#409eff}.vxe-switch.is--on .vxe-switch--icon{left:100%;transform:translateX(-1.4em)}.vxe-switch.is--off .vxe-switch--button{padding-left:1.7em;background-color:rgba(0,0,0,.35)}.vxe-switch.is--off .vxe-switch--icon{left:.2em;transform:translateX(0)}.vxe-switch.is--off .vxe-switch--label-on,.vxe-switch.is--on .vxe-switch--label-off{height:0;visibility:hidden;overflow:hidden}.vxe-switch.is--off .vxe-switch--label,.vxe-switch.is--on .vxe-switch--label{opacity:1}.vxe-switch:not(.is--disabled) .vxe-switch--button{cursor:pointer}.vxe-switch:not(.is--disabled) .vxe-switch--button:focus{box-shadow:0 0 .4em 0 #409eff}.vxe-switch.is--disabled .vxe-switch--button{cursor:no-drop}.vxe-switch.is--disabled.is--on .vxe-switch--button{background-color:#73b8ff}.vxe-switch.is--disabled.is--off .vxe-switch--button{background-color:rgba(0,0,0,.15)}.vxe-switch .vxe-switch--button{display:block;position:relative;height:1.6em;line-height:1;min-width:3.2em;padding:0 .6em;border-radius:1em;border:0;outline:0}.vxe-switch .vxe-switch--label{opacity:0;display:block;color:#fff;font-size:.8em}.vxe-switch .vxe-switch--icon{position:absolute;top:.2em;left:0;width:1.2em;height:1.2em;border-radius:50%;background-color:#fff}.vxe-switch .vxe-switch--label-icon{margin-right:.25em}.vxe-switch{font-size:14px}.vxe-switch.size--medium{font-size:14px}.vxe-switch.size--small{font-size:13px}.vxe-switch.size--mini{font-size:12px}
1
+ .vxe-switch{display:inline-block;color:#606266;vertical-align:middle;padding:.4em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center}.vxe-switch.is--animat .vxe-switch--button{transition:border-color .3s,background-color .3s}.vxe-switch.is--animat .vxe-switch--icon{transition:all .3s}.vxe-switch.is--on .vxe-switch--button{padding-right:1.7em;background-color:#409eff}.vxe-switch.is--on .vxe-switch--icon{left:100%;transform:translateX(-1.4em)}.vxe-switch.is--off .vxe-switch--button{padding-left:1.7em;background-color:rgba(0,0,0,.35)}.vxe-switch.is--off .vxe-switch--icon{left:.2em;transform:translateX(0)}.vxe-switch.is--off .vxe-switch--label-on,.vxe-switch.is--on .vxe-switch--label-off{height:0;visibility:hidden;overflow:hidden}.vxe-switch.is--off .vxe-switch--label,.vxe-switch.is--on .vxe-switch--label{opacity:1}.vxe-switch:not(.is--disabled) .vxe-switch--button{cursor:pointer}.vxe-switch:not(.is--disabled) .vxe-switch--button:focus{box-shadow:0 0 .4em 0 #409eff}.vxe-switch.is--disabled .vxe-switch--button{cursor:no-drop}.vxe-switch.is--disabled.is--on .vxe-switch--button{background-color:#73b8ff}.vxe-switch.is--disabled.is--off .vxe-switch--button{background-color:rgba(0,0,0,.15)}.vxe-switch .vxe-switch--button{display:block;position:relative;height:1.6em;line-height:1;min-width:3.2em;padding:0 .6em;border-radius:1em;border:0;outline:0}.vxe-switch .vxe-switch--label{opacity:0;display:block;color:#fff;font-size:.8em}.vxe-switch .vxe-switch--icon{position:absolute;top:.2em;left:0;width:1.2em;height:1.2em;border-radius:50%;background-color:#fff}.vxe-switch .vxe-switch--label-icon{margin-right:.25em}.vxe-switch{font-size:14px}.vxe-switch.size--medium{font-size:14px}.vxe-switch.size--small{font-size:13px}.vxe-switch.size--mini{font-size:12px}
@@ -3,37 +3,37 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = exports.Table = void 0;
6
+ exports.default = exports.Table = void 0;
7
7
  var _table = _interopRequireDefault(require("./src/table"));
8
8
  var _body = _interopRequireDefault(require("./src/body"));
9
9
  var _vXETable = _interopRequireDefault(require("../v-x-e-table"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var Table = Object.assign(_table["default"], {
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ var Table = Object.assign(_table.default, {
12
12
  install: function install(Vue) {
13
13
  if (typeof window !== 'undefined' && window.VXETableMixin) {
14
- _table["default"].mixins.push(window.VXETableMixin);
14
+ _table.default.mixins.push(window.VXETableMixin);
15
15
  delete window.VXETableMixin;
16
16
  }
17
17
  if (typeof window !== 'undefined' && window.VXETablePro && window.VXETablePro.init) {
18
- window.VXETablePro.init(_vXETable["default"]);
18
+ window.VXETablePro.init(_vXETable.default);
19
19
  delete window.VXETablePro;
20
20
  }
21
- _vXETable["default"].Vue = Vue;
22
- _vXETable["default"].Table = _table["default"];
23
- _vXETable["default"].TableComponent = _table["default"];
21
+ _vXETable.default.Vue = Vue;
22
+ _vXETable.default.Table = _table.default;
23
+ _vXETable.default.TableComponent = _table.default;
24
24
  if (!Vue.prototype.$vxe) {
25
25
  Vue.prototype.$vxe = {
26
- t: _vXETable["default"].t,
27
- _t: _vXETable["default"]._t
26
+ t: _vXETable.default.t,
27
+ _t: _vXETable.default._t
28
28
  };
29
29
  } else {
30
- Vue.prototype.$vxe.t = _vXETable["default"].t;
31
- Vue.prototype.$vxe._t = _vXETable["default"]._t;
30
+ Vue.prototype.$vxe.t = _vXETable.default.t;
31
+ Vue.prototype.$vxe._t = _vXETable.default._t;
32
32
  }
33
- Vue.component(_table["default"].name, _table["default"]);
34
- Vue.component(_body["default"].name, _body["default"]);
33
+ Vue.component(_table.default.name, _table.default);
34
+ Vue.component(_body.default.name, _body.default);
35
35
  }
36
36
  });
37
37
  exports.Table = Table;
38
38
  var _default = Table;
39
- exports["default"] = _default;
39
+ exports.default = _default;
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
7
+ exports.default = void 0;
8
8
  var _xeUtils = _interopRequireDefault(require("xe-utils"));
9
9
  var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
10
10
  var _vXETable = _interopRequireDefault(require("../../v-x-e-table"));
@@ -13,8 +13,8 @@ var _util = require("./util");
13
13
  var _dom = _interopRequireDefault(require("../../tools/dom"));
14
14
  var _vn = require("../../tools/vn");
15
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  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; }
19
19
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
20
20
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -51,9 +51,9 @@ function renderLine(h, _vm, $xetable, params) {
51
51
  }
52
52
  if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
53
53
  return [h('div', {
54
- "class": 'vxe-tree--line-wrapper'
54
+ class: 'vxe-tree--line-wrapper'
55
55
  }, [h('div', {
56
- "class": 'vxe-tree--line',
56
+ class: 'vxe-tree--line',
57
57
  style: {
58
58
  height: "".concat((0, _util.calcTreeLine)(params, items, rIndex), "px"),
59
59
  left: "".concat(rLevel * treeOpts.indent + (rLevel ? 2 - (0, _util.getOffsetSize)($xetable) : 0) + 16, "px")
@@ -112,7 +112,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
112
112
  var scrollYRHeight = sYOpts.rHeight;
113
113
  var rowHeight = rowOpts.height;
114
114
  var renderOpts = editRender || cellRender;
115
- var compConf = renderOpts ? _vXETable["default"].renderer.get(renderOpts.name) : null;
115
+ var compConf = renderOpts ? _vXETable.default.renderer.get(renderOpts.name) : null;
116
116
  var compCellClassName = compConf ? compConf.cellClassName : '';
117
117
  var compCellStyle = compConf ? compConf.cellStyle : '';
118
118
  var showAllTip = tooltipOpts.showAll || tooltipOpts.enabled;
@@ -120,7 +120,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
120
120
  var _columnIndex = $xetable.getVTColumnIndex(column);
121
121
  var isEdit = (0, _utils.isEnableConf)(editRender);
122
122
  var fixedHiddenColumn = fixedType ? column.fixed !== fixedType : column.fixed && overflowX;
123
- var cellOverflow = _xeUtils["default"].isUndefined(showOverflow) || _xeUtils["default"].isNull(showOverflow) ? allColumnOverflow : showOverflow;
123
+ var cellOverflow = _xeUtils.default.isUndefined(showOverflow) || _xeUtils.default.isNull(showOverflow) ? allColumnOverflow : showOverflow;
124
124
  var showEllipsis = cellOverflow === 'ellipsis';
125
125
  var showTitle = cellOverflow === 'title';
126
126
  var showTooltip = cellOverflow === true || cellOverflow === 'tooltip';
@@ -168,7 +168,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
168
168
  return;
169
169
  }
170
170
  if (showTitle) {
171
- _dom["default"].updateCellTitle(evnt.currentTarget, column);
171
+ _dom.default.updateCellTitle(evnt.currentTarget, column);
172
172
  } else if (showTooltip || showAllTip) {
173
173
  // 如果配置了显示 tooltip
174
174
  $xetable.triggerBodyTooltipEvent(evnt, params);
@@ -260,7 +260,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
260
260
  var tdVNs = [];
261
261
  if (fixedHiddenColumn && (allColumnOverflow ? isAllOverflow : allColumnOverflow)) {
262
262
  tdVNs.push(h('div', {
263
- "class": ['vxe-cell', {
263
+ class: ['vxe-cell', {
264
264
  'c--title': showTitle,
265
265
  'c--tooltip': showTooltip,
266
266
  'c--ellipsis': showEllipsis
@@ -272,7 +272,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
272
272
  } else {
273
273
  // 渲染单元格
274
274
  tdVNs.push.apply(tdVNs, _toConsumableArray(renderLine(h, _vm, $xetable, params)).concat([h('div', {
275
- "class": ['vxe-cell', {
275
+ class: ['vxe-cell', {
276
276
  'c--title': showTitle,
277
277
  'c--tooltip': showTooltip,
278
278
  'c--ellipsis': showEllipsis
@@ -286,22 +286,22 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
286
286
  }, column.renderCell(h, params))]));
287
287
  if (showValidTip && hasValidError) {
288
288
  tdVNs.push(h('div', {
289
- "class": 'vxe-cell--valid',
289
+ class: 'vxe-cell--valid',
290
290
  style: validStore.rule && validStore.rule.maxWidth ? {
291
291
  width: "".concat(validStore.rule.maxWidth, "px")
292
292
  } : null
293
293
  }, [h('span', {
294
- "class": 'vxe-cell--valid-msg'
294
+ class: 'vxe-cell--valid-msg'
295
295
  }, validStore.content)]));
296
296
  }
297
297
  }
298
298
  return h('td', {
299
- "class": ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), _utils["default"].getClass(compCellClassName, params), _utils["default"].getClass(className, params), _utils["default"].getClass(allCellClassName, params)],
299
+ class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), _utils.default.getClass(compCellClassName, params), _utils.default.getClass(className, params), _utils.default.getClass(allCellClassName, params)],
300
300
  key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
301
301
  attrs: attrs,
302
302
  style: Object.assign({
303
303
  height: hasEllipsis && (scrollYRHeight || rowHeight) ? "".concat(scrollYRHeight || rowHeight, "px") : ''
304
- }, _xeUtils["default"].isFunction(compCellStyle) ? compCellStyle(params) : compCellStyle, _xeUtils["default"].isFunction(cellStyle) ? cellStyle(params) : cellStyle),
304
+ }, _xeUtils.default.isFunction(compCellStyle) ? compCellStyle(params) : compCellStyle, _xeUtils.default.isFunction(cellStyle) ? cellStyle(params) : cellStyle),
305
305
  on: tdOns
306
306
  }, tdVNs);
307
307
  }
@@ -382,7 +382,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
382
382
  isExpandTree = rowChildren && rowChildren.length && !!treeExpandedMaps[rowid];
383
383
  }
384
384
  rows.push(h('tr', {
385
- "class": ['vxe-body--row', treeConfig ? "row--level-".concat(rowLevel) : '', {
385
+ class: ['vxe-body--row', treeConfig ? "row--level-".concat(rowLevel) : '', {
386
386
  'row--stripe': stripe && ($xetable.getVTRowIndex(row) + 1) % 2 === 0,
387
387
  'is--new': isNewRow,
388
388
  'is--expand-row': isExpandRow,
@@ -390,11 +390,11 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
390
390
  'row--new': isNewRow && (editOpts.showStatus || editOpts.showInsertStatus),
391
391
  'row--radio': radioOpts.highlight && $xetable.selectRadioRow === row,
392
392
  'row--checked': checkboxOpts.highlight && $xetable.isCheckedByCheckboxRow(row)
393
- }, rowClassName ? _xeUtils["default"].isFunction(rowClassName) ? rowClassName(params) : rowClassName : ''],
393
+ }, rowClassName ? _xeUtils.default.isFunction(rowClassName) ? rowClassName(params) : rowClassName : ''],
394
394
  attrs: {
395
395
  rowid: rowid
396
396
  },
397
- style: rowStyle ? _xeUtils["default"].isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
397
+ style: rowStyle ? _xeUtils.default.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
398
398
  key: rowKey || rowOpts.useKey || treeConfig ? rowid : $rowIndex,
399
399
  on: trOn
400
400
  }, tableColumn.map(function (column, $columnIndex) {
@@ -411,7 +411,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
411
411
  cellStyle.paddingLeft = "".concat(rowLevel * treeOpts.indent + 30, "px");
412
412
  }
413
413
  var showOverflow = expandColumn.showOverflow;
414
- var hasEllipsis = _xeUtils["default"].isUndefined(showOverflow) || _xeUtils["default"].isNull(showOverflow) ? allColumnOverflow : showOverflow;
414
+ var hasEllipsis = _xeUtils.default.isUndefined(showOverflow) || _xeUtils.default.isNull(showOverflow) ? allColumnOverflow : showOverflow;
415
415
  var expandParams = {
416
416
  $table: $xetable,
417
417
  seq: seq,
@@ -424,12 +424,12 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
424
424
  $rowIndex: $rowIndex
425
425
  };
426
426
  rows.push(h('tr', {
427
- "class": 'vxe-body--expanded-row',
427
+ class: 'vxe-body--expanded-row',
428
428
  key: "expand_".concat(rowid),
429
- style: rowStyle ? _xeUtils["default"].isFunction(rowStyle) ? rowStyle(expandParams) : rowStyle : null,
429
+ style: rowStyle ? _xeUtils.default.isFunction(rowStyle) ? rowStyle(expandParams) : rowStyle : null,
430
430
  on: trOn
431
431
  }, [h('td', {
432
- "class": {
432
+ class: {
433
433
  'vxe-body--expanded-column': 1,
434
434
  'fixed--hidden': fixedType && !hasFixedColumn,
435
435
  'col--ellipsis': hasEllipsis
@@ -438,7 +438,7 @@ function renderRows(h, _vm, $xetable, fixedType, tableData, tableColumn) {
438
438
  colspan: tableColumn.length
439
439
  }
440
440
  }, [h('div', {
441
- "class": {
441
+ class: {
442
442
  'vxe-body--expanded-cell': 1,
443
443
  'is--ellipsis': expandHeight
444
444
  },
@@ -596,18 +596,18 @@ var _default = {
596
596
  $table: $xetable
597
597
  }, h);
598
598
  } else {
599
- var compConf = emptyOpts.name ? _vXETable["default"].renderer.get(emptyOpts.name) : null;
599
+ var compConf = emptyOpts.name ? _vXETable.default.renderer.get(emptyOpts.name) : null;
600
600
  var renderEmpty = compConf ? compConf.renderEmpty : null;
601
601
  if (renderEmpty) {
602
602
  emptyContent = (0, _vn.getSlotVNs)(renderEmpty.call(this, h, emptyOpts, {
603
603
  $table: $xetable
604
604
  }));
605
605
  } else {
606
- emptyContent = $xetable.emptyText || _conf["default"].i18n('vxe.table.emptyText');
606
+ emptyContent = $xetable.emptyText || _conf.default.i18n('vxe.table.emptyText');
607
607
  }
608
608
  }
609
609
  return h('div', {
610
- "class": ['vxe-table--body-wrapper', fixedType ? "fixed-".concat(fixedType, "--wrapper") : 'body--wrapper'],
610
+ class: ['vxe-table--body-wrapper', fixedType ? "fixed-".concat(fixedType, "--wrapper") : 'body--wrapper'],
611
611
  attrs: {
612
612
  xid: tId
613
613
  },
@@ -615,13 +615,13 @@ var _default = {
615
615
  wheel: this.wheelEvent
616
616
  } : {}
617
617
  }, [fixedType ? _e() : h('div', {
618
- "class": 'vxe-body--x-space',
618
+ class: 'vxe-body--x-space',
619
619
  ref: 'xSpace'
620
620
  }), h('div', {
621
- "class": 'vxe-body--y-space',
621
+ class: 'vxe-body--y-space',
622
622
  ref: 'ySpace'
623
623
  }), h('table', {
624
- "class": 'vxe-table--body',
624
+ class: 'vxe-table--body',
625
625
  attrs: {
626
626
  xid: tId,
627
627
  cellspacing: 0,
@@ -649,13 +649,13 @@ var _default = {
649
649
  h('tbody', {
650
650
  ref: 'tbody'
651
651
  }, renderRows(h, this, $xetable, fixedType, tableData, tableColumn))]), h('div', {
652
- "class": 'vxe-table--checkbox-range'
652
+ class: 'vxe-table--checkbox-range'
653
653
  }), mouseConfig && mouseOpts.area ? h('div', {
654
- "class": 'vxe-table--cell-area'
654
+ class: 'vxe-table--cell-area'
655
655
  }, [h('span', {
656
- "class": 'vxe-table--cell-main-area'
656
+ class: 'vxe-table--cell-main-area'
657
657
  }, mouseOpts.extension ? [h('span', {
658
- "class": 'vxe-table--cell-main-area-btn',
658
+ class: 'vxe-table--cell-main-area-btn',
659
659
  on: {
660
660
  mousedown: function mousedown(evnt) {
661
661
  $xetable.triggerCellExtendMousedownEvent(evnt, {
@@ -666,18 +666,18 @@ var _default = {
666
666
  }
667
667
  }
668
668
  })] : null), h('span', {
669
- "class": 'vxe-table--cell-copy-area'
669
+ class: 'vxe-table--cell-copy-area'
670
670
  }), h('span', {
671
- "class": 'vxe-table--cell-extend-area'
671
+ class: 'vxe-table--cell-extend-area'
672
672
  }), h('span', {
673
- "class": 'vxe-table--cell-multi-area'
673
+ class: 'vxe-table--cell-multi-area'
674
674
  }), h('span', {
675
- "class": 'vxe-table--cell-active-area'
675
+ class: 'vxe-table--cell-active-area'
676
676
  })]) : null, !fixedType ? h('div', {
677
- "class": 'vxe-table--empty-block',
677
+ class: 'vxe-table--empty-block',
678
678
  ref: 'emptyBlock'
679
679
  }, [h('div', {
680
- "class": 'vxe-table--empty-content'
680
+ class: 'vxe-table--empty-content'
681
681
  }, emptyContent)]) : null]);
682
682
  },
683
683
  methods: {
@@ -878,4 +878,4 @@ var _default = {
878
878
  }
879
879
  }
880
880
  };
881
- exports["default"] = _default;
881
+ exports.default = _default;