vxe-pc-ui 4.1.19 → 4.1.21

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 (259) hide show
  1. package/README.md +83 -2
  2. package/es/anchor/src/anchor-link.js +1 -1
  3. package/es/anchor/src/anchor.js +1 -1
  4. package/es/breadcrumb/src/breadcrumb.js +1 -1
  5. package/es/button/src/button-group.js +4 -1
  6. package/es/button/src/button.js +2 -1
  7. package/es/calendar/src/calendar.js +64 -32
  8. package/es/card/src/card.js +4 -3
  9. package/es/carousel/src/carousel-item.js +13 -3
  10. package/es/carousel/src/carousel.js +16 -8
  11. package/es/checkbox/src/checkbox.js +30 -14
  12. package/es/checkbox/src/group.js +17 -8
  13. package/es/collapse-pane/index.js +1 -1
  14. package/es/countdown/src/countdown.js +17 -8
  15. package/es/date-picker/src/date-picker.js +148 -69
  16. package/es/drawer/src/drawer.js +86 -46
  17. package/es/form/render/index.js +1 -2
  18. package/es/form/src/form-config-item.js +4 -3
  19. package/es/form/src/form-gather.js +5 -3
  20. package/es/form/src/form-item.js +15 -10
  21. package/es/form/src/form.js +11 -8
  22. package/es/form/src/render.js +2 -1
  23. package/es/form/src/util.js +2 -1
  24. package/es/icon/src/icon.js +3 -0
  25. package/es/icon/style.css +1 -1
  26. package/es/icon-picker/src/icon-picker.js +24 -11
  27. package/es/image/src/group.js +4 -1
  28. package/es/image/src/preview.js +1 -1
  29. package/es/input/src/input.js +131 -66
  30. package/es/layout-aside/src/layout-aside.js +1 -1
  31. package/es/list/src/list.js +7 -5
  32. package/es/list-design/src/list-design.js +1 -1
  33. package/es/list-design/src/list-view.js +1 -1
  34. package/es/loading/src/loading.js +4 -1
  35. package/es/menu/src/menu.js +4 -3
  36. package/es/number-input/src/number-input.js +100 -77
  37. package/es/pager/src/pager.js +85 -45
  38. package/es/password-input/src/password-input.js +2 -2
  39. package/es/print/src/page-break.js +11 -2
  40. package/es/print/src/print.js +6 -4
  41. package/es/pulldown/src/pulldown.js +19 -13
  42. package/es/radio/src/button.js +2 -2
  43. package/es/radio/src/group.js +8 -4
  44. package/es/row/src/row.js +1 -1
  45. package/es/select/src/optgroup.js +19 -10
  46. package/es/select/src/option.js +17 -9
  47. package/es/select/src/select.js +64 -41
  48. package/es/select/src/util.js +2 -2
  49. package/es/style.css +1 -1
  50. package/es/style.min.css +1 -1
  51. package/es/tabs/src/tab-pane.js +13 -3
  52. package/es/tabs/src/tabs.js +57 -47
  53. package/es/textarea/src/textarea.js +28 -10
  54. package/es/tooltip/src/tooltip.js +107 -78
  55. package/es/tree/src/tree.js +6 -3
  56. package/es/tree-select/src/tree-select.js +18 -10
  57. package/es/ui/index.js +1 -7
  58. package/es/ui/src/log.js +1 -1
  59. package/es/upload/src/upload.js +5 -5
  60. package/lib/anchor/src/anchor-link.js +1 -1
  61. package/lib/anchor/src/anchor-link.min.js +1 -1
  62. package/lib/anchor/src/anchor.js +1 -1
  63. package/lib/anchor/src/anchor.min.js +1 -1
  64. package/lib/breadcrumb/src/breadcrumb.js +1 -1
  65. package/lib/breadcrumb/src/breadcrumb.min.js +1 -1
  66. package/lib/button/src/button-group.js +4 -1
  67. package/lib/button/src/button-group.min.js +1 -1
  68. package/lib/button/src/button.js +2 -1
  69. package/lib/button/src/button.min.js +1 -1
  70. package/lib/calendar/src/calendar.js +42 -24
  71. package/lib/calendar/src/calendar.min.js +1 -1
  72. package/lib/card/src/card.js +6 -5
  73. package/lib/card/src/card.min.js +1 -1
  74. package/lib/carousel/src/carousel-item.js +16 -3
  75. package/lib/carousel/src/carousel-item.min.js +1 -1
  76. package/lib/carousel/src/carousel.js +18 -8
  77. package/lib/carousel/src/carousel.min.js +1 -1
  78. package/lib/checkbox/src/checkbox.js +16 -12
  79. package/lib/checkbox/src/checkbox.min.js +1 -1
  80. package/lib/checkbox/src/group.js +10 -7
  81. package/lib/checkbox/src/group.min.js +1 -1
  82. package/lib/collapse-pane/index.js +1 -1
  83. package/lib/collapse-pane/index.min.js +1 -1
  84. package/lib/countdown/src/countdown.js +15 -7
  85. package/lib/countdown/src/countdown.min.js +1 -1
  86. package/lib/date-picker/src/date-picker.js +124 -62
  87. package/lib/date-picker/src/date-picker.min.js +1 -1
  88. package/lib/drawer/src/drawer.js +15 -30
  89. package/lib/drawer/src/drawer.min.js +1 -1
  90. package/lib/form/render/index.js +1 -4
  91. package/lib/form/render/index.min.js +1 -1
  92. package/lib/form/src/form-config-item.js +4 -5
  93. package/lib/form/src/form-config-item.min.js +1 -1
  94. package/lib/form/src/form-gather.js +11 -9
  95. package/lib/form/src/form-gather.min.js +1 -1
  96. package/lib/form/src/form-item.js +11 -12
  97. package/lib/form/src/form-item.min.js +1 -1
  98. package/lib/form/src/form.js +7 -7
  99. package/lib/form/src/form.min.js +1 -1
  100. package/lib/form/src/render.js +2 -1
  101. package/lib/form/src/util.js +2 -1
  102. package/lib/icon/src/icon.js +3 -0
  103. package/lib/icon/src/icon.min.js +1 -1
  104. package/lib/icon/style/style.css +1 -1
  105. package/lib/icon/style/style.min.css +1 -1
  106. package/lib/icon-picker/src/icon-picker.js +22 -12
  107. package/lib/icon-picker/src/icon-picker.min.js +1 -1
  108. package/lib/image/src/group.js +4 -1
  109. package/lib/image/src/group.min.js +1 -1
  110. package/lib/image/src/preview.js +1 -1
  111. package/lib/image/src/preview.min.js +1 -1
  112. package/lib/index.umd.js +884 -649
  113. package/lib/index.umd.min.js +1 -1
  114. package/lib/input/src/input.js +79 -51
  115. package/lib/input/src/input.min.js +1 -1
  116. package/lib/layout-aside/src/layout-aside.js +1 -1
  117. package/lib/layout-aside/src/layout-aside.min.js +1 -1
  118. package/lib/list/src/list.js +9 -5
  119. package/lib/list/src/list.min.js +1 -1
  120. package/lib/list-design/src/list-design.js +1 -1
  121. package/lib/list-design/src/list-design.min.js +1 -1
  122. package/lib/list-design/src/list-view.js +1 -1
  123. package/lib/list-design/src/list-view.min.js +1 -1
  124. package/lib/loading/src/loading.js +4 -1
  125. package/lib/loading/src/loading.min.js +1 -1
  126. package/lib/menu/src/menu.js +4 -3
  127. package/lib/menu/src/menu.min.js +1 -1
  128. package/lib/number-input/src/number-input.js +67 -69
  129. package/lib/number-input/src/number-input.min.js +1 -1
  130. package/lib/pager/src/pager.js +40 -39
  131. package/lib/pager/src/pager.min.js +1 -1
  132. package/lib/password-input/src/password-input.js +2 -2
  133. package/lib/print/src/page-break.js +14 -2
  134. package/lib/print/src/page-break.min.js +1 -1
  135. package/lib/print/src/print.js +8 -6
  136. package/lib/print/src/print.min.js +1 -1
  137. package/lib/pulldown/src/pulldown.js +19 -13
  138. package/lib/pulldown/src/pulldown.min.js +1 -1
  139. package/lib/radio/src/button.js +2 -2
  140. package/lib/radio/src/group.js +8 -4
  141. package/lib/radio/src/group.min.js +1 -1
  142. package/lib/row/src/row.js +1 -1
  143. package/lib/row/src/row.min.js +1 -1
  144. package/lib/select/src/optgroup.js +12 -9
  145. package/lib/select/src/optgroup.min.js +1 -1
  146. package/lib/select/src/option.js +9 -7
  147. package/lib/select/src/option.min.js +1 -1
  148. package/lib/select/src/select.js +52 -41
  149. package/lib/select/src/select.min.js +1 -1
  150. package/lib/select/src/util.js +2 -2
  151. package/lib/select/src/util.min.js +1 -1
  152. package/lib/style.css +1 -1
  153. package/lib/style.min.css +1 -1
  154. package/lib/tabs/src/tab-pane.js +16 -3
  155. package/lib/tabs/src/tab-pane.min.js +1 -1
  156. package/lib/tabs/src/tabs.js +62 -50
  157. package/lib/tabs/src/tabs.min.js +1 -1
  158. package/lib/textarea/src/textarea.js +4 -4
  159. package/lib/tooltip/src/tooltip.js +96 -88
  160. package/lib/tooltip/src/tooltip.min.js +1 -1
  161. package/lib/tree/src/tree.js +2 -2
  162. package/lib/tree/src/tree.min.js +1 -1
  163. package/lib/tree-select/src/tree-select.js +13 -8
  164. package/lib/tree-select/src/tree-select.min.js +1 -1
  165. package/lib/ui/index.js +3 -10
  166. package/lib/ui/index.min.js +1 -1
  167. package/lib/ui/src/log.js +1 -1
  168. package/lib/ui/src/log.min.js +1 -1
  169. package/lib/upload/src/upload.js +5 -5
  170. package/lib/upload/src/upload.min.js +1 -1
  171. package/package.json +2 -2
  172. package/packages/anchor/src/anchor-link.ts +2 -2
  173. package/packages/anchor/src/anchor.ts +2 -2
  174. package/packages/breadcrumb/src/breadcrumb.ts +2 -2
  175. package/packages/button/src/button-group.ts +4 -1
  176. package/packages/button/src/button.ts +6 -5
  177. package/packages/calendar/src/calendar.ts +67 -35
  178. package/packages/card/src/card.ts +6 -4
  179. package/packages/carousel/src/carousel-item.ts +19 -4
  180. package/packages/carousel/src/carousel.ts +19 -11
  181. package/packages/checkbox/src/checkbox.ts +34 -15
  182. package/packages/checkbox/src/group.ts +22 -10
  183. package/packages/collapse-pane/index.ts +1 -1
  184. package/packages/countdown/src/countdown.ts +20 -11
  185. package/packages/date-picker/src/date-picker.ts +160 -80
  186. package/packages/drawer/src/drawer.ts +91 -50
  187. package/packages/form/render/index.ts +1 -3
  188. package/packages/form/src/form-config-item.ts +4 -3
  189. package/packages/form/src/form-gather.ts +5 -3
  190. package/packages/form/src/form-item.ts +15 -10
  191. package/packages/form/src/form.ts +12 -10
  192. package/packages/form/src/render.ts +2 -1
  193. package/packages/form/src/util.ts +2 -1
  194. package/packages/icon/src/icon.ts +3 -0
  195. package/packages/icon-picker/src/icon-picker.ts +31 -17
  196. package/packages/image/src/group.ts +4 -1
  197. package/packages/image/src/preview.ts +2 -2
  198. package/packages/input/src/input.ts +138 -75
  199. package/packages/layout-aside/src/layout-aside.ts +2 -2
  200. package/packages/list/src/list.ts +12 -11
  201. package/packages/list-design/src/list-design.ts +2 -2
  202. package/packages/list-design/src/list-view.ts +2 -2
  203. package/packages/loading/src/loading.ts +5 -2
  204. package/packages/menu/src/menu.ts +5 -4
  205. package/packages/number-input/src/number-input.ts +102 -79
  206. package/packages/pager/src/pager.ts +91 -50
  207. package/packages/password-input/src/password-input.ts +2 -2
  208. package/packages/print/src/page-break.ts +18 -4
  209. package/packages/print/src/print.ts +10 -5
  210. package/packages/pulldown/src/pulldown.ts +28 -22
  211. package/packages/radio/src/button.ts +2 -2
  212. package/packages/radio/src/group.ts +9 -5
  213. package/packages/row/src/row.ts +2 -2
  214. package/packages/select/src/optgroup.ts +22 -13
  215. package/packages/select/src/option.ts +18 -10
  216. package/packages/select/src/select.ts +79 -52
  217. package/packages/select/src/util.ts +3 -3
  218. package/packages/tabs/src/tab-pane.ts +20 -5
  219. package/packages/tabs/src/tabs.ts +59 -49
  220. package/packages/textarea/src/textarea.ts +28 -10
  221. package/packages/tooltip/src/tooltip.ts +118 -84
  222. package/packages/tree/src/tree.ts +7 -4
  223. package/packages/tree-select/src/tree-select.ts +25 -16
  224. package/packages/ui/index.ts +0 -7
  225. package/packages/upload/src/upload.ts +6 -6
  226. package/types/components/calendar.d.ts +6 -0
  227. package/types/components/carousel.d.ts +5 -0
  228. package/types/components/countdown.d.ts +4 -0
  229. package/types/components/date-picker.d.ts +23 -5
  230. package/types/components/drawer.d.ts +0 -1
  231. package/types/components/form.d.ts +4 -2
  232. package/types/components/icon-picker.d.ts +4 -0
  233. package/types/components/input.d.ts +9 -1
  234. package/types/components/list.d.ts +1 -0
  235. package/types/components/number-input.d.ts +6 -2
  236. package/types/components/optgroup.d.ts +10 -4
  237. package/types/components/pulldown.d.ts +5 -1
  238. package/types/components/select.d.ts +4 -0
  239. package/types/components/tabs.d.ts +4 -0
  240. package/types/components/toolbar.d.ts +5 -0
  241. package/types/components/tooltip.d.ts +4 -0
  242. package/types/components/tree-select.d.ts +4 -0
  243. package/types/ui/index.d.ts +0 -22
  244. /package/es/{collapse-pane → collapse}/src/collapse-pane.js +0 -0
  245. /package/es/icon/style/{iconfont.1725597808239.ttf → iconfont.1725941866604.ttf} +0 -0
  246. /package/es/icon/style/{iconfont.1725597808239.woff → iconfont.1725941866604.woff} +0 -0
  247. /package/es/icon/style/{iconfont.1725597808239.woff2 → iconfont.1725941866604.woff2} +0 -0
  248. /package/es/{iconfont.1725597808239.ttf → iconfont.1725941866604.ttf} +0 -0
  249. /package/es/{iconfont.1725597808239.woff → iconfont.1725941866604.woff} +0 -0
  250. /package/es/{iconfont.1725597808239.woff2 → iconfont.1725941866604.woff2} +0 -0
  251. /package/lib/{collapse-pane → collapse}/src/collapse-pane.js +0 -0
  252. /package/lib/{collapse-pane → collapse}/src/collapse-pane.min.js +0 -0
  253. /package/lib/icon/style/{iconfont.1725597808239.ttf → iconfont.1725941866604.ttf} +0 -0
  254. /package/lib/icon/style/{iconfont.1725597808239.woff → iconfont.1725941866604.woff} +0 -0
  255. /package/lib/icon/style/{iconfont.1725597808239.woff2 → iconfont.1725941866604.woff2} +0 -0
  256. /package/lib/{iconfont.1725597808239.ttf → iconfont.1725941866604.ttf} +0 -0
  257. /package/lib/{iconfont.1725597808239.woff → iconfont.1725941866604.woff} +0 -0
  258. /package/lib/{iconfont.1725597808239.woff2 → iconfont.1725941866604.woff2} +0 -0
  259. /package/packages/{collapse-pane → collapse}/src/collapse-pane.ts +0 -0
package/lib/index.umd.js CHANGED
@@ -2419,13 +2419,15 @@ updateVar();
2419
2419
  /* harmony default export */ var index_esm = (DomZIndex);
2420
2420
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
2421
2421
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
2422
- ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/globalStore.js
2422
+ ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/configStore.js
2423
2423
  const globalConfigStore = {
2424
2424
  size: '',
2425
2425
  version: 1,
2426
2426
  zIndex: 999,
2427
2427
  resizeInterval: 500
2428
2428
  };
2429
+ ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/dataStore.js
2430
+ const globalStore = {};
2429
2431
  ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/iconStore.js
2430
2432
  const iconConfigStore = {};
2431
2433
  ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/themeStore.js
@@ -2678,7 +2680,7 @@ function createLog(type, name) {
2678
2680
  return msg;
2679
2681
  };
2680
2682
  }
2681
- const version = "4.0.7";
2683
+ const version = "4.0.9";
2682
2684
  const log = {
2683
2685
  create: createLog,
2684
2686
  warn: createLog('warn', `v${version}`),
@@ -3125,6 +3127,7 @@ const useFns = {
3125
3127
 
3126
3128
 
3127
3129
 
3130
+
3128
3131
 
3129
3132
 
3130
3133
  function setTheme(name) {
@@ -3179,7 +3182,7 @@ function setIcon(options) {
3179
3182
  function getIcon(key) {
3180
3183
  return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
3181
3184
  }
3182
- const coreVersion = "4.0.7";
3185
+ const coreVersion = "4.0.9";
3183
3186
  const installedPlugins = [];
3184
3187
  function use(Plugin, options) {
3185
3188
  if (Plugin && Plugin.install) {
@@ -3229,6 +3232,7 @@ const core_VxeUI = {
3229
3232
  clipboard: clipboard,
3230
3233
  log: log,
3231
3234
  permission: permission,
3235
+ globalStore: globalStore,
3232
3236
  hooks: hooks,
3233
3237
  component,
3234
3238
  getComponent,
@@ -3250,6 +3254,7 @@ setTheme();
3250
3254
 
3251
3255
 
3252
3256
 
3257
+
3253
3258
  /* harmony default export */ var core = ((/* unused pure expression or super */ null && (core_VxeUI)));
3254
3259
  ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/index.esm.js
3255
3260
 
@@ -3996,7 +4001,7 @@ function handleBooleanDefaultValue(value) {
3996
4001
  }
3997
4002
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
3998
4003
 
3999
- const log_version = `ui v${"4.1.19"}`;
4004
+ const log_version = `ui v${"4.1.21"}`;
4000
4005
  const warnLog = log.create('warn', log_version);
4001
4006
  const errLog = log.create('error', log_version);
4002
4007
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
@@ -4004,7 +4009,7 @@ const errLog = log.create('error', log_version);
4004
4009
 
4005
4010
 
4006
4011
 
4007
- const ui_version = "4.1.19";
4012
+ const ui_version = "4.1.21";
4008
4013
  core_VxeUI.version = ui_version;
4009
4014
  core_VxeUI.uiVersion = ui_version;
4010
4015
  core_VxeUI.tableVersion = '';
@@ -4025,12 +4030,6 @@ function setup(options) {
4025
4030
  }
4026
4031
  core_VxeUI.config = config;
4027
4032
  core_VxeUI.setup = setup;
4028
- /**
4029
- * 已废弃
4030
- * @deprecated
4031
- */
4032
- const globalStore = {};
4033
- core_VxeUI.globalStore = globalStore;
4034
4033
  setConfig({
4035
4034
  alert: {},
4036
4035
  anchor: {},
@@ -4801,8 +4800,8 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
4801
4800
  class: 'vxe-anchor-link--sub-items'
4802
4801
  }, subSlot({})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
4803
4802
  };
4804
- $xeAnchorLink.renderVN = renderVN;
4805
4803
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeAnchorLink', $xeAnchorLink);
4804
+ $xeAnchorLink.renderVN = renderVN;
4806
4805
  return $xeAnchorLink;
4807
4806
  },
4808
4807
  render() {
@@ -5023,8 +5022,8 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
5023
5022
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
5024
5023
  removeContainerElemScroll();
5025
5024
  });
5026
- $xeAnchor.renderVN = renderVN;
5027
5025
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeAnchor', $xeAnchor);
5026
+ $xeAnchor.renderVN = renderVN;
5028
5027
  return $xeAnchor;
5029
5028
  },
5030
5029
  render() {
@@ -5209,8 +5208,8 @@ const AnchorLink = VxeAnchorLink;
5209
5208
  class: 'vxe-breadcrumb'
5210
5209
  }, defaultSlot ? defaultSlot({}) : renderItems());
5211
5210
  };
5212
- $xeBreadcrumb.renderVN = renderVN;
5213
5211
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeBreadcrumb', $xeBreadcrumb);
5212
+ $xeBreadcrumb.renderVN = renderVN;
5214
5213
  return $xeBreadcrumb;
5215
5214
  },
5216
5215
  render() {
@@ -5340,6 +5339,7 @@ const BreadcrumbItem = VxeBreadcrumbItem;
5340
5339
  emit
5341
5340
  } = context;
5342
5341
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
5342
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
5343
5343
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
5344
5344
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
5345
5345
  const $xeButtonGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeButtonGroup', null);
@@ -5386,7 +5386,7 @@ const BreadcrumbItem = VxeBreadcrumbItem;
5386
5386
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
5387
5387
  return globalTransfer;
5388
5388
  }
5389
- if ($xeTable || $xeModal || $xeForm) {
5389
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
5390
5390
  return true;
5391
5391
  }
5392
5392
  }
@@ -6028,7 +6028,10 @@ const Button = VxeButton;
6028
6028
  };
6029
6029
  $xeButtonGroup.renderVN = renderVN;
6030
6030
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeButtonGroup', $xeButtonGroup);
6031
- return renderVN;
6031
+ return $xeButtonGroup;
6032
+ },
6033
+ render() {
6034
+ return this.renderVN();
6032
6035
  }
6033
6036
  }));
6034
6037
  ;// CONCATENATED MODULE: ./packages/button-group/index.ts
@@ -6145,9 +6148,6 @@ function getDateQuarter(date) {
6145
6148
  const {
6146
6149
  computeSize
6147
6150
  } = useSize(props);
6148
- const yearSize = 12;
6149
- const monthSize = 20;
6150
- const quarterSize = 8;
6151
6151
  const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
6152
6152
  selectValue: props.modelValue,
6153
6153
  inputValue: props.modelValue,
@@ -6157,7 +6157,24 @@ function getDateQuarter(date) {
6157
6157
  selectMonth: null,
6158
6158
  currentDate: null
6159
6159
  });
6160
+ const internalData = {
6161
+ yearSize: 12,
6162
+ monthSize: 20,
6163
+ quarterSize: 8
6164
+ };
6160
6165
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
6166
+ const refMaps = {
6167
+ refElem
6168
+ };
6169
+ const $xeCalendar = {
6170
+ xID,
6171
+ props,
6172
+ context,
6173
+ reactData,
6174
+ internalData,
6175
+ getRefMaps: () => refMaps
6176
+ };
6177
+ let calendarMethods = {};
6161
6178
  const computeCalendarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
6162
6179
  const {
6163
6180
  height,
@@ -6172,20 +6189,6 @@ function getDateQuarter(date) {
6172
6189
  }
6173
6190
  return stys;
6174
6191
  });
6175
- const refMaps = {
6176
- refElem
6177
- };
6178
- const $xeCalendar = {
6179
- xID,
6180
- props,
6181
- context,
6182
- reactData,
6183
- getRefMaps: () => refMaps
6184
- };
6185
- let calendarMethods = {};
6186
- const parseDate = (value, format) => {
6187
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, format);
6188
- };
6189
6192
  const computeIsDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
6190
6193
  return false;
6191
6194
  });
@@ -6295,6 +6298,9 @@ function getDateQuarter(date) {
6295
6298
  selectMonth,
6296
6299
  currentDate
6297
6300
  } = reactData;
6301
+ const {
6302
+ yearSize
6303
+ } = internalData;
6298
6304
  const years = [];
6299
6305
  if (selectMonth && currentDate) {
6300
6306
  const currFullYear = currentDate.getFullYear();
@@ -6395,6 +6401,9 @@ function getDateQuarter(date) {
6395
6401
  selectMonth,
6396
6402
  currentDate
6397
6403
  } = reactData;
6404
+ const {
6405
+ quarterSize
6406
+ } = internalData;
6398
6407
  const quarters = [];
6399
6408
  if (selectMonth && currentDate) {
6400
6409
  const currFullYear = currentDate.getFullYear();
@@ -6427,6 +6436,9 @@ function getDateQuarter(date) {
6427
6436
  selectMonth,
6428
6437
  currentDate
6429
6438
  } = reactData;
6439
+ const {
6440
+ monthSize
6441
+ } = internalData;
6430
6442
  const months = [];
6431
6443
  if (selectMonth && currentDate) {
6432
6444
  const currFullYear = currentDate.getFullYear();
@@ -6509,7 +6521,10 @@ function getDateQuarter(date) {
6509
6521
  return [item].concat(list);
6510
6522
  });
6511
6523
  });
6512
- const emitModel = (value, evnt) => {
6524
+ const parseDate = (value, format) => {
6525
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, format);
6526
+ };
6527
+ const handleChange = (value, evnt) => {
6513
6528
  reactData.inputValue = value;
6514
6529
  emit('update:modelValue', value);
6515
6530
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(props.modelValue) !== value) {
@@ -6602,18 +6617,18 @@ function getDateQuarter(date) {
6602
6617
  const dateMultipleValue = computeDateMultipleValue.value;
6603
6618
  // 如果是日期类型
6604
6619
  if (dateMultipleValue.some(val => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal))) {
6605
- emitModel(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
6620
+ handleChange(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
6606
6621
  type: 'update'
6607
6622
  });
6608
6623
  } else {
6609
- emitModel(dateMultipleValue.concat([inpVal]).join(','), {
6624
+ handleChange(dateMultipleValue.concat([inpVal]).join(','), {
6610
6625
  type: 'update'
6611
6626
  });
6612
6627
  }
6613
6628
  } else {
6614
6629
  // 如果为单选
6615
6630
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(modelValue, inpVal)) {
6616
- emitModel(inpVal, {
6631
+ handleChange(inpVal, {
6617
6632
  type: 'update'
6618
6633
  });
6619
6634
  }
@@ -6646,6 +6661,9 @@ function getDateQuarter(date) {
6646
6661
  datePanelType,
6647
6662
  selectMonth
6648
6663
  } = reactData;
6664
+ const {
6665
+ yearSize
6666
+ } = internalData;
6649
6667
  const isDisabledPrevDateBtn = computeIsDisabledPrevDateBtn.value;
6650
6668
  if (!isDisabledPrevDateBtn) {
6651
6669
  if (type === 'year') {
@@ -6687,6 +6705,9 @@ function getDateQuarter(date) {
6687
6705
  datePanelType,
6688
6706
  selectMonth
6689
6707
  } = reactData;
6708
+ const {
6709
+ yearSize
6710
+ } = internalData;
6690
6711
  const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
6691
6712
  if (!isDisabledNextDateBtn) {
6692
6713
  if (type === 'year') {
@@ -6868,10 +6889,10 @@ function getDateQuarter(date) {
6868
6889
  class: ['vxe-calendar--date-label', {
6869
6890
  'is-notice': festivalItem.notice
6870
6891
  }]
6871
- }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', label), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
6892
+ }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${label || ''}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
6872
6893
  class: ['vxe-calendar--date-label--extra', extraItem.important ? 'is-important' : '', extraItem.className],
6873
6894
  style: extraItem.style
6874
- }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : label)];
6895
+ }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : [`${label || ''}`])];
6875
6896
  const festivalLabel = festivalItem.label;
6876
6897
  if (festivalLabel) {
6877
6898
  // 默认最多支持3个节日重叠
@@ -6887,7 +6908,7 @@ function getDateQuarter(date) {
6887
6908
  }
6888
6909
  return labels;
6889
6910
  }
6890
- return label;
6911
+ return `${label || ''}`;
6891
6912
  };
6892
6913
  const renderDateDayTable = () => {
6893
6914
  const {
@@ -7323,12 +7344,15 @@ const Calendar = VxeCalendar;
7323
7344
  class: 'vxe-loading--text'
7324
7345
  }, textSlot ? getSlotVNs(textSlot({})) : `${loadingText}`) : null])]);
7325
7346
  };
7326
- $xeLoading.renderVN = renderVN;
7327
7347
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
7328
7348
  handleInit();
7329
7349
  });
7330
7350
  handleInit();
7351
+ $xeLoading.renderVN = renderVN;
7331
7352
  return $xeLoading;
7353
+ },
7354
+ render() {
7355
+ return this.renderVN();
7332
7356
  }
7333
7357
  }));
7334
7358
  ;// CONCATENATED MODULE: ./packages/card/src/card.ts
@@ -7397,12 +7421,13 @@ const Calendar = VxeCalendar;
7397
7421
  getRefMaps: () => refMaps,
7398
7422
  getComputeMaps: () => computeMaps
7399
7423
  };
7424
+ const dispatchEvent = (type, params, evnt) => {
7425
+ emit(type, createEvent(evnt, {
7426
+ $card: $xeCard
7427
+ }, params));
7428
+ };
7400
7429
  const cardMethods = {
7401
- dispatchEvent(type, params, evnt) {
7402
- emit(type, createEvent(evnt, {
7403
- $card: $xeCard
7404
- }, params));
7405
- }
7430
+ dispatchEvent
7406
7431
  };
7407
7432
  const cardPrivateMethods = {};
7408
7433
  Object.assign($xeCard, cardMethods, cardPrivateMethods);
@@ -7535,6 +7560,10 @@ const Card = VxeCard;
7535
7560
  itemWidth: 0,
7536
7561
  itemHeight: 0
7537
7562
  });
7563
+ const internalData = {
7564
+ apTimeout: undefined,
7565
+ stopFlag: false
7566
+ };
7538
7567
  const refMaps = {
7539
7568
  refElem
7540
7569
  };
@@ -7566,6 +7595,7 @@ const Card = VxeCard;
7566
7595
  props,
7567
7596
  context,
7568
7597
  reactData,
7598
+ internalData,
7569
7599
  getRefMaps: () => refMaps,
7570
7600
  getComputeMaps: () => computeMaps
7571
7601
  };
@@ -7680,12 +7710,14 @@ const Card = VxeCard;
7680
7710
  }, evnt);
7681
7711
  }
7682
7712
  };
7683
- let apTimeout = null;
7684
- let stopFlag = false;
7685
7713
  const stopAutoPlay = () => {
7686
- stopFlag = true;
7687
- if (apTimeout !== null) {
7714
+ const {
7715
+ apTimeout
7716
+ } = internalData;
7717
+ internalData.stopFlag = true;
7718
+ if (apTimeout) {
7688
7719
  clearTimeout(apTimeout);
7720
+ internalData.apTimeout = undefined;
7689
7721
  }
7690
7722
  };
7691
7723
  const handleAutoPlay = () => {
@@ -7693,10 +7725,13 @@ const Card = VxeCard;
7693
7725
  autoPlay,
7694
7726
  interval
7695
7727
  } = props;
7728
+ const {
7729
+ stopFlag
7730
+ } = internalData;
7696
7731
  stopAutoPlay();
7697
7732
  if (autoPlay) {
7698
- stopFlag = false;
7699
- apTimeout = setTimeout(() => {
7733
+ internalData.stopFlag = false;
7734
+ internalData.apTimeout = setTimeout(() => {
7700
7735
  if (!stopFlag) {
7701
7736
  handlePrevNext(true);
7702
7737
  }
@@ -7805,7 +7840,7 @@ const Card = VxeCard;
7805
7840
  style: height ? {
7806
7841
  height: toCssUnit(height)
7807
7842
  } : null
7808
- }, renderItemWrapper(list)), showIndicators ? renderIndicators(list) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
7843
+ }, [renderItemWrapper(list)]), showIndicators ? renderIndicators(list) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
7809
7844
  class: 'vxe-carousel--btn-wrapper'
7810
7845
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
7811
7846
  class: 'vxe-carousel--previous-btn',
@@ -7826,7 +7861,6 @@ const Card = VxeCard;
7826
7861
  modelValue: loading
7827
7862
  })]);
7828
7863
  };
7829
- $xeCarousel.renderVN = renderVN;
7830
7864
  const optsFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
7831
7865
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options ? props.options.length : -1, () => {
7832
7866
  optsFlag.value++;
@@ -7859,6 +7893,7 @@ const Card = VxeCard;
7859
7893
  stopAutoPlay();
7860
7894
  });
7861
7895
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeCarousel', $xeCarousel);
7896
+ $xeCarousel.renderVN = renderVN;
7862
7897
  return $xeCarousel;
7863
7898
  },
7864
7899
  render() {
@@ -7900,6 +7935,7 @@ function destroyCarouselItem($xeCarousel, itemConfig) {
7900
7935
 
7901
7936
 
7902
7937
 
7938
+
7903
7939
  /* harmony default export */ var carousel_item = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
7904
7940
  name: 'VxeCarouselItem',
7905
7941
  props: {
@@ -7910,7 +7946,8 @@ function destroyCarouselItem($xeCarousel, itemConfig) {
7910
7946
  emits: [],
7911
7947
  setup(props, context) {
7912
7948
  const {
7913
- slots
7949
+ slots,
7950
+ emit
7914
7951
  } = context;
7915
7952
  const $xeCarousel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeCarousel', null);
7916
7953
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
@@ -7935,6 +7972,16 @@ function destroyCarouselItem($xeCarousel, itemConfig) {
7935
7972
  getRefMaps: () => refMaps,
7936
7973
  getComputeMaps: () => computeMaps
7937
7974
  };
7975
+ const dispatchEvent = (type, params, evnt) => {
7976
+ emit(type, createEvent(evnt, {
7977
+ $carouselItem: $xeCarouselItem
7978
+ }, params));
7979
+ };
7980
+ const carouselItemMethods = {
7981
+ dispatchEvent
7982
+ };
7983
+ const carouselItemPrivateMethods = {};
7984
+ Object.assign($xeCarouselItem, carouselItemMethods, carouselItemPrivateMethods);
7938
7985
  const renderVN = () => {
7939
7986
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
7940
7987
  ref: refElem
@@ -7947,8 +7994,9 @@ function destroyCarouselItem($xeCarousel, itemConfig) {
7947
7994
  itemConfig.url = val;
7948
7995
  });
7949
7996
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
7950
- if ($xeCarousel && refElem.value) {
7951
- assembleCarouselItem($xeCarousel, refElem.value, itemConfig);
7997
+ const elem = refElem.value;
7998
+ if ($xeCarousel && elem) {
7999
+ assembleCarouselItem($xeCarousel, elem, itemConfig);
7952
8000
  }
7953
8001
  });
7954
8002
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
@@ -8019,10 +8067,12 @@ const CarouselItem = VxeCarouselItem;
8019
8067
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
8020
8068
  const $xeCheckboxGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeCheckboxGroup', null);
8021
8069
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
8070
+ const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
8022
8071
  const $xeCheckbox = {
8023
8072
  xID,
8024
8073
  props,
8025
- context
8074
+ context,
8075
+ reactData
8026
8076
  };
8027
8077
  let checkboxMethods = {};
8028
8078
  const {
@@ -8038,15 +8088,16 @@ const CarouselItem = VxeCarouselItem;
8038
8088
  const {
8039
8089
  disabled
8040
8090
  } = props;
8091
+ const isChecked = computeIsChecked.value;
8041
8092
  if (disabled === null) {
8042
8093
  if ($xeCheckboxGroup) {
8043
8094
  const {
8044
- computeIsDisabled,
8045
- computeIsMaximize
8095
+ computeIsDisabled: computeIsGroupDisabled,
8096
+ computeIsMaximize: computeIsGroupMaximize
8046
8097
  } = $xeCheckboxGroup.getComputeMaps();
8047
- const isMaximize = computeIsMaximize.value;
8048
- const isChecked = computeIsChecked.value;
8049
- return computeIsDisabled.value || isMaximize && !isChecked;
8098
+ const isGroupDisabled = computeIsGroupDisabled.value;
8099
+ const isGroupMaximize = computeIsGroupMaximize.value;
8100
+ return isGroupDisabled || isGroupMaximize && !isChecked;
8050
8101
  }
8051
8102
  }
8052
8103
  return disabled;
@@ -8077,19 +8128,20 @@ const CarouselItem = VxeCarouselItem;
8077
8128
  }
8078
8129
  }
8079
8130
  };
8131
+ const dispatchEvent = (type, params, evnt) => {
8132
+ emit(type, createEvent(evnt, {
8133
+ $checkbox: $xeCheckbox
8134
+ }, params));
8135
+ };
8080
8136
  checkboxMethods = {
8081
- dispatchEvent(type, params, evnt) {
8082
- emit(type, createEvent(evnt, {
8083
- $checkbox: $xeCheckbox
8084
- }, params));
8085
- }
8137
+ dispatchEvent
8086
8138
  };
8087
8139
  Object.assign($xeCheckbox, checkboxMethods);
8088
8140
  const renderVN = () => {
8089
8141
  const vSize = computeSize.value;
8090
8142
  const isDisabled = computeIsDisabled.value;
8091
8143
  const isChecked = computeIsChecked.value;
8092
- const indeterminate = props.indeterminate;
8144
+ const indeterminate = !isChecked && props.indeterminate;
8093
8145
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('label', {
8094
8146
  class: ['vxe-checkbox', {
8095
8147
  [`size--${vSize}`]: vSize,
@@ -8164,6 +8216,7 @@ const Checkbox = VxeCheckbox;
8164
8216
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
8165
8217
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
8166
8218
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
8219
+ const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({});
8167
8220
  const computeIsDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8168
8221
  const {
8169
8222
  disabled
@@ -8187,7 +8240,7 @@ const Checkbox = VxeCheckbox;
8187
8240
  return false;
8188
8241
  });
8189
8242
  const computePropsOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8190
- return props.optionProps || {};
8243
+ return Object.assign({}, props.optionProps);
8191
8244
  });
8192
8245
  const computeLabelField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
8193
8246
  const propsOpts = computePropsOpts.value;
@@ -8209,15 +8262,17 @@ const Checkbox = VxeCheckbox;
8209
8262
  xID,
8210
8263
  props,
8211
8264
  context,
8265
+ reactData,
8212
8266
  getComputeMaps: () => computeMaps
8213
8267
  };
8214
8268
  useSize(props);
8269
+ const dispatchEvent = (type, params, evnt) => {
8270
+ emit(type, createEvent(evnt, {
8271
+ $checkboxGroup: $xeCheckboxGroup
8272
+ }, params));
8273
+ };
8215
8274
  const checkboxGroupMethods = {
8216
- dispatchEvent(type, params, evnt) {
8217
- emit(type, createEvent(evnt, {
8218
- $checkboxGroup: $xeCheckboxGroup
8219
- }, params));
8220
- }
8275
+ dispatchEvent
8221
8276
  };
8222
8277
  const checkboxGroupPrivateMethods = {
8223
8278
  handleChecked(params, evnt) {
@@ -8263,8 +8318,8 @@ const Checkbox = VxeCheckbox;
8263
8318
  });
8264
8319
  }) : []);
8265
8320
  };
8266
- $xeCheckboxGroup.renderVN = renderVN;
8267
8321
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeCheckboxGroup', $xeCheckboxGroup);
8322
+ $xeCheckboxGroup.renderVN = renderVN;
8268
8323
  return renderVN;
8269
8324
  }
8270
8325
  }));
@@ -8465,7 +8520,7 @@ dynamicApp.use(VxeCollapse);
8465
8520
  core_VxeUI.component(collapse);
8466
8521
  const Collapse = VxeCollapse;
8467
8522
  /* harmony default export */ var packages_collapse = (VxeCollapse);
8468
- ;// CONCATENATED MODULE: ./packages/collapse-pane/src/collapse-pane.ts
8523
+ ;// CONCATENATED MODULE: ./packages/collapse/src/collapse-pane.ts
8469
8524
 
8470
8525
 
8471
8526
  /* harmony default export */ var collapse_pane = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
@@ -8690,6 +8745,9 @@ const CollapsePane = VxeCollapsePane;
8690
8745
  currNum: 0,
8691
8746
  secondNum: 0
8692
8747
  });
8748
+ const internalData = {
8749
+ dnTimeout: undefined
8750
+ };
8693
8751
  const refMaps = {
8694
8752
  refElem
8695
8753
  };
@@ -8749,10 +8807,10 @@ const CollapsePane = VxeCollapsePane;
8749
8807
  props,
8750
8808
  context,
8751
8809
  reactData,
8810
+ internalData,
8752
8811
  getRefMaps: () => refMaps,
8753
8812
  getComputeMaps: () => computeMaps
8754
8813
  };
8755
- let htime = null;
8756
8814
  const dispatchEvent = (type, params, evnt) => {
8757
8815
  emit(type, createEvent(evnt, {
8758
8816
  $carousel: $xeCountdown
@@ -8769,10 +8827,12 @@ const CollapsePane = VxeCollapsePane;
8769
8827
  } = reactData;
8770
8828
  if (currNum > 1000) {
8771
8829
  reactData.currNum -= 1000;
8772
- htime = setTimeout(handleTime, 1000);
8830
+ internalData.dnTimeout = setTimeout(() => {
8831
+ handleTime();
8832
+ }, 1000);
8773
8833
  } else {
8774
8834
  reactData.currNum = 0;
8775
- stop();
8835
+ handleStop();
8776
8836
  }
8777
8837
  };
8778
8838
  const countdownMethods = {
@@ -8783,9 +8843,12 @@ const CollapsePane = VxeCollapsePane;
8783
8843
  handleTime();
8784
8844
  };
8785
8845
  const handleStop = () => {
8786
- if (htime != null) {
8787
- clearTimeout(htime);
8788
- htime = null;
8846
+ const {
8847
+ dnTimeout
8848
+ } = internalData;
8849
+ if (dnTimeout) {
8850
+ clearTimeout(dnTimeout);
8851
+ internalData.dnTimeout = undefined;
8789
8852
  dispatchEvent('end', {}, null);
8790
8853
  }
8791
8854
  };
@@ -8860,7 +8923,6 @@ const CollapsePane = VxeCollapsePane;
8860
8923
  status: suffixOpts.status
8861
8924
  })]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
8862
8925
  };
8863
- $xeCountdown.renderVN = renderVN;
8864
8926
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
8865
8927
  updateCount();
8866
8928
  handleStop();
@@ -8873,6 +8935,7 @@ const CollapsePane = VxeCollapsePane;
8873
8935
  handleStart();
8874
8936
  });
8875
8937
  updateCount();
8938
+ $xeCountdown.renderVN = renderVN;
8876
8939
  return $xeCountdown;
8877
8940
  },
8878
8941
  render() {
@@ -8927,8 +8990,8 @@ const Countdown = VxeCountdown;
8927
8990
  default: null
8928
8991
  },
8929
8992
  placeholder: String,
8930
- maxlength: [String, Number],
8931
- autocomplete: {
8993
+ maxLength: [String, Number],
8994
+ autoComplete: {
8932
8995
  type: String,
8933
8996
  default: 'off'
8934
8997
  },
@@ -8951,8 +9014,6 @@ const Countdown = VxeCountdown;
8951
9014
  },
8952
9015
  minDate: [String, Number, Date],
8953
9016
  maxDate: [String, Number, Date],
8954
- // 已废弃 startWeek,被 startDay 替换
8955
- startWeek: Number,
8956
9017
  startDay: {
8957
9018
  type: [String, Number],
8958
9019
  default: () => getConfig().datePicker.startDay
@@ -8982,7 +9043,13 @@ const Countdown = VxeCountdown;
8982
9043
  transfer: {
8983
9044
  type: Boolean,
8984
9045
  default: null
8985
- }
9046
+ },
9047
+ // 已废弃 startWeek,被 startDay 替换
9048
+ startWeek: Number,
9049
+ // 已废弃
9050
+ maxlength: [String, Number],
9051
+ // 已废弃
9052
+ autocomplete: String
8986
9053
  },
8987
9054
  emits: ['update:modelValue', 'input', 'change', 'keydown', 'keyup', 'wheel', 'click', 'focus', 'blur', 'clear', 'prefix-click', 'suffix-click', 'date-prev', 'date-today', 'date-next'],
8988
9055
  setup(props, context) {
@@ -8991,6 +9058,7 @@ const Countdown = VxeCountdown;
8991
9058
  emit
8992
9059
  } = context;
8993
9060
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
9061
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
8994
9062
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
8995
9063
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
8996
9064
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
@@ -8998,15 +9066,12 @@ const Countdown = VxeCountdown;
8998
9066
  const {
8999
9067
  computeSize
9000
9068
  } = useSize(props);
9001
- const yearSize = 12;
9002
- const monthSize = 20;
9003
- const quarterSize = 8;
9004
9069
  const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
9005
9070
  initialized: false,
9006
9071
  panelIndex: 0,
9007
9072
  visiblePanel: false,
9008
9073
  isAniVisible: false,
9009
- panelStyle: null,
9074
+ panelStyle: {},
9010
9075
  panelPlacement: '',
9011
9076
  isActivated: false,
9012
9077
  inputValue: props.modelValue,
@@ -9017,6 +9082,12 @@ const Countdown = VxeCountdown;
9017
9082
  selectMonth: null,
9018
9083
  currentDate: null
9019
9084
  });
9085
+ const internalData = {
9086
+ yearSize: 12,
9087
+ monthSize: 20,
9088
+ quarterSize: 8,
9089
+ hpTimeout: undefined
9090
+ };
9020
9091
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
9021
9092
  const refInputTarget = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
9022
9093
  const refInputPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -9031,18 +9102,10 @@ const Countdown = VxeCountdown;
9031
9102
  props,
9032
9103
  context,
9033
9104
  reactData,
9105
+ internalData,
9034
9106
  getRefMaps: () => refMaps
9035
9107
  };
9036
9108
  let datePickerMethods = {};
9037
- const parseDate = (value, format) => {
9038
- const {
9039
- type
9040
- } = props;
9041
- if (type === 'time') {
9042
- return toStringTimeDate(value);
9043
- }
9044
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, format);
9045
- };
9046
9109
  const computeBtnTransfer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9047
9110
  const {
9048
9111
  transfer
@@ -9052,7 +9115,7 @@ const Countdown = VxeCountdown;
9052
9115
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
9053
9116
  return globalTransfer;
9054
9117
  }
9055
- if ($xeTable || $xeModal || $xeForm) {
9118
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
9056
9119
  return true;
9057
9120
  }
9058
9121
  }
@@ -9117,7 +9180,7 @@ const Countdown = VxeCountdown;
9117
9180
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isValidDate(date)) {
9118
9181
  return date;
9119
9182
  }
9120
- return null;
9183
+ return date;
9121
9184
  });
9122
9185
  }
9123
9186
  return [];
@@ -9140,7 +9203,13 @@ const Countdown = VxeCountdown;
9140
9203
  if (valueFormat) {
9141
9204
  return valueFormat;
9142
9205
  }
9143
- return type === 'time' ? 'HH:mm:ss' : type === 'datetime' ? 'yyyy-MM-dd HH:mm:ss' : 'yyyy-MM-dd';
9206
+ if (type === 'time') {
9207
+ return 'HH:mm:ss';
9208
+ }
9209
+ if (type === 'datetime') {
9210
+ return 'yyyy-MM-dd HH:mm:ss';
9211
+ }
9212
+ return 'yyyy-MM-dd';
9144
9213
  });
9145
9214
  const computeDateValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9146
9215
  const {
@@ -9204,6 +9273,9 @@ const Countdown = VxeCountdown;
9204
9273
  return null;
9205
9274
  });
9206
9275
  const computeYearList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9276
+ const {
9277
+ yearSize
9278
+ } = internalData;
9207
9279
  const {
9208
9280
  selectMonth,
9209
9281
  currentDate
@@ -9305,6 +9377,9 @@ const Countdown = VxeCountdown;
9305
9377
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().chunk(yearList, 4);
9306
9378
  });
9307
9379
  const computeQuarterList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9380
+ const {
9381
+ quarterSize
9382
+ } = internalData;
9308
9383
  const {
9309
9384
  selectMonth,
9310
9385
  currentDate
@@ -9337,6 +9412,9 @@ const Countdown = VxeCountdown;
9337
9412
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().chunk(quarterList, 2);
9338
9413
  });
9339
9414
  const computeMonthList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
9415
+ const {
9416
+ monthSize
9417
+ } = internalData;
9340
9418
  const {
9341
9419
  selectMonth,
9342
9420
  currentDate
@@ -9492,6 +9570,15 @@ const Countdown = VxeCountdown;
9492
9570
  } = props;
9493
9571
  return immediate;
9494
9572
  });
9573
+ const parseDate = (value, format) => {
9574
+ const {
9575
+ type
9576
+ } = props;
9577
+ if (type === 'time') {
9578
+ return toStringTimeDate(value);
9579
+ }
9580
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, format);
9581
+ };
9495
9582
  const triggerEvent = evnt => {
9496
9583
  const {
9497
9584
  inputValue
@@ -9500,7 +9587,7 @@ const Countdown = VxeCountdown;
9500
9587
  value: inputValue
9501
9588
  }, evnt);
9502
9589
  };
9503
- const emitModel = (value, evnt) => {
9590
+ const handleChange = (value, evnt) => {
9504
9591
  reactData.inputValue = value;
9505
9592
  emit('update:modelValue', value);
9506
9593
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(props.modelValue) !== value) {
@@ -9521,7 +9608,7 @@ const Countdown = VxeCountdown;
9521
9608
  reactData.inputValue = value;
9522
9609
  if (!isDatePickerType) {
9523
9610
  if (inpImmediate) {
9524
- emitModel(value, evnt);
9611
+ handleChange(value, evnt);
9525
9612
  } else {
9526
9613
  datePickerMethods.dispatchEvent('input', {
9527
9614
  value
@@ -9554,11 +9641,10 @@ const Countdown = VxeCountdown;
9554
9641
  }, evnt);
9555
9642
  }
9556
9643
  };
9557
- let hidePanelTimeout;
9558
9644
  const hidePanel = () => {
9559
9645
  return new Promise(resolve => {
9560
9646
  reactData.visiblePanel = false;
9561
- hidePanelTimeout = window.setTimeout(() => {
9647
+ internalData.hpTimeout = window.setTimeout(() => {
9562
9648
  reactData.isAniVisible = false;
9563
9649
  resolve();
9564
9650
  }, 350);
@@ -9569,7 +9655,7 @@ const Countdown = VxeCountdown;
9569
9655
  if (isDatePickerType) {
9570
9656
  hidePanel();
9571
9657
  }
9572
- emitModel('', evnt);
9658
+ handleChange('', evnt);
9573
9659
  datePickerMethods.dispatchEvent('clear', {
9574
9660
  value
9575
9661
  }, evnt);
@@ -9666,9 +9752,11 @@ const Countdown = VxeCountdown;
9666
9752
  const sWeek = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.selectDay);
9667
9753
  date = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, sWeek, firstDayOfWeek);
9668
9754
  } else if (isDateTimeType) {
9669
- date.setHours(datetimePanelValue.getHours());
9670
- date.setMinutes(datetimePanelValue.getMinutes());
9671
- date.setSeconds(datetimePanelValue.getSeconds());
9755
+ if (datetimePanelValue) {
9756
+ date.setHours(datetimePanelValue.getHours());
9757
+ date.setMinutes(datetimePanelValue.getMinutes());
9758
+ date.setSeconds(datetimePanelValue.getSeconds());
9759
+ }
9672
9760
  }
9673
9761
  const inpVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat, {
9674
9762
  firstDay: firstDayOfWeek
@@ -9689,23 +9777,25 @@ const Countdown = VxeCountdown;
9689
9777
  }
9690
9778
  dateListValue.forEach(item => {
9691
9779
  if (item) {
9692
- item.setHours(datetimePanelValue.getHours());
9693
- item.setMinutes(datetimePanelValue.getMinutes());
9694
- item.setSeconds(datetimePanelValue.getSeconds());
9780
+ if (datetimePanelValue) {
9781
+ item.setHours(datetimePanelValue.getHours());
9782
+ item.setMinutes(datetimePanelValue.getMinutes());
9783
+ item.setSeconds(datetimePanelValue.getSeconds());
9784
+ }
9695
9785
  datetimeRest.push(item);
9696
9786
  }
9697
9787
  });
9698
- emitModel(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
9788
+ handleChange(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
9699
9789
  type: 'update'
9700
9790
  });
9701
9791
  } else {
9702
9792
  // 如果是日期类型
9703
9793
  if (dateMultipleValue.some(val => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal))) {
9704
- emitModel(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
9794
+ handleChange(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
9705
9795
  type: 'update'
9706
9796
  });
9707
9797
  } else {
9708
- emitModel(dateMultipleValue.concat([inpVal]).join(','), {
9798
+ handleChange(dateMultipleValue.concat([inpVal]).join(','), {
9709
9799
  type: 'update'
9710
9800
  });
9711
9801
  }
@@ -9713,7 +9803,7 @@ const Countdown = VxeCountdown;
9713
9803
  } else {
9714
9804
  // 如果为单选
9715
9805
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(modelValue, inpVal)) {
9716
- emitModel(inpVal, {
9806
+ handleChange(inpVal, {
9717
9807
  type: 'update'
9718
9808
  });
9719
9809
  }
@@ -9736,7 +9826,7 @@ const Countdown = VxeCountdown;
9736
9826
  if (type === 'time') {
9737
9827
  inpDateVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat);
9738
9828
  if (inputValue !== inpDateVal) {
9739
- emitModel(inpDateVal, {
9829
+ handleChange(inpDateVal, {
9740
9830
  type: 'check'
9741
9831
  });
9742
9832
  }
@@ -9748,9 +9838,11 @@ const Countdown = VxeCountdown;
9748
9838
  const dateValue = computeDateValue.value;
9749
9839
  if (inputValue !== external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(dateValue, dateLabelFormat) || inputValue !== external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat)) {
9750
9840
  isChange = true;
9751
- datetimePanelValue.setHours(inpDateVal.getHours());
9752
- datetimePanelValue.setMinutes(inpDateVal.getMinutes());
9753
- datetimePanelValue.setSeconds(inpDateVal.getSeconds());
9841
+ if (datetimePanelValue) {
9842
+ datetimePanelValue.setHours(inpDateVal.getHours());
9843
+ datetimePanelValue.setMinutes(inpDateVal.getMinutes());
9844
+ datetimePanelValue.setSeconds(inpDateVal.getSeconds());
9845
+ }
9754
9846
  }
9755
9847
  } else {
9756
9848
  isChange = true;
@@ -9766,7 +9858,7 @@ const Countdown = VxeCountdown;
9766
9858
  dateRevert();
9767
9859
  }
9768
9860
  } else {
9769
- emitModel('', {
9861
+ handleChange('', {
9770
9862
  type: 'check'
9771
9863
  });
9772
9864
  }
@@ -9778,7 +9870,7 @@ const Countdown = VxeCountdown;
9778
9870
  } = reactData;
9779
9871
  const inpImmediate = computeInpImmediate.value;
9780
9872
  if (!inpImmediate) {
9781
- emitModel(inputValue, evnt);
9873
+ handleChange(inputValue, evnt);
9782
9874
  }
9783
9875
  afterCheckValue();
9784
9876
  if (!reactData.visiblePanel) {
@@ -9825,6 +9917,9 @@ const Countdown = VxeCountdown;
9825
9917
  datePanelType,
9826
9918
  selectMonth
9827
9919
  } = reactData;
9920
+ const {
9921
+ yearSize
9922
+ } = internalData;
9828
9923
  const isDisabledPrevDateBtn = computeIsDisabledPrevDateBtn.value;
9829
9924
  if (!isDisabledPrevDateBtn) {
9830
9925
  if (type === 'year') {
@@ -9867,6 +9962,9 @@ const Countdown = VxeCountdown;
9867
9962
  datePanelType,
9868
9963
  selectMonth
9869
9964
  } = reactData;
9965
+ const {
9966
+ yearSize
9967
+ } = internalData;
9870
9968
  const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
9871
9969
  if (!isDisabledNextDateBtn) {
9872
9970
  if (type === 'year') {
@@ -10030,11 +10128,19 @@ const Countdown = VxeCountdown;
10030
10128
  }
10031
10129
  };
10032
10130
  const dateTimeChangeEvent = evnt => {
10033
- reactData.datetimePanelValue = new Date(reactData.datetimePanelValue.getTime());
10131
+ const {
10132
+ datetimePanelValue
10133
+ } = reactData;
10134
+ reactData.datetimePanelValue = datetimePanelValue ? new Date(datetimePanelValue.getTime()) : new Date();
10034
10135
  updateTimePos(evnt.currentTarget);
10035
10136
  };
10036
10137
  const dateHourEvent = (evnt, item) => {
10037
- reactData.datetimePanelValue.setHours(item.value);
10138
+ const {
10139
+ datetimePanelValue
10140
+ } = reactData;
10141
+ if (datetimePanelValue) {
10142
+ datetimePanelValue.setHours(item.value);
10143
+ }
10038
10144
  dateTimeChangeEvent(evnt);
10039
10145
  };
10040
10146
  const dateConfirmEvent = () => {
@@ -10057,18 +10163,20 @@ const Countdown = VxeCountdown;
10057
10163
  const datetimeRest = [];
10058
10164
  dateListValue.forEach(item => {
10059
10165
  if (item) {
10060
- item.setHours(datetimePanelValue.getHours());
10061
- item.setMinutes(datetimePanelValue.getMinutes());
10062
- item.setSeconds(datetimePanelValue.getSeconds());
10166
+ if (datetimePanelValue) {
10167
+ item.setHours(datetimePanelValue.getHours());
10168
+ item.setMinutes(datetimePanelValue.getMinutes());
10169
+ item.setSeconds(datetimePanelValue.getSeconds());
10170
+ }
10063
10171
  datetimeRest.push(item);
10064
10172
  }
10065
10173
  });
10066
- emitModel(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
10174
+ handleChange(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
10067
10175
  type: 'update'
10068
10176
  });
10069
10177
  } else {
10070
10178
  // 如果是日期类型
10071
- emitModel(dateMultipleValue.join(','), {
10179
+ handleChange(dateMultipleValue.join(','), {
10072
10180
  type: 'update'
10073
10181
  });
10074
10182
  }
@@ -10079,11 +10187,21 @@ const Countdown = VxeCountdown;
10079
10187
  hidePanel();
10080
10188
  };
10081
10189
  const dateMinuteEvent = (evnt, item) => {
10082
- reactData.datetimePanelValue.setMinutes(item.value);
10190
+ const {
10191
+ datetimePanelValue
10192
+ } = reactData;
10193
+ if (datetimePanelValue) {
10194
+ datetimePanelValue.setMinutes(item.value);
10195
+ }
10083
10196
  dateTimeChangeEvent(evnt);
10084
10197
  };
10085
10198
  const dateSecondEvent = (evnt, item) => {
10086
- reactData.datetimePanelValue.setSeconds(item.value);
10199
+ const {
10200
+ datetimePanelValue
10201
+ } = reactData;
10202
+ if (datetimePanelValue) {
10203
+ datetimePanelValue.setSeconds(item.value);
10204
+ }
10087
10205
  dateTimeChangeEvent(evnt);
10088
10206
  };
10089
10207
  const dateOffsetEvent = evnt => {
@@ -10186,7 +10304,9 @@ const Countdown = VxeCountdown;
10186
10304
  reactData.datetimePanelValue = reactData.datePanelValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
10187
10305
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
10188
10306
  const timeBodyElem = refInputTimeBody.value;
10189
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(timeBodyElem.querySelectorAll('li.is--selected'), updateTimePos);
10307
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(timeBodyElem.querySelectorAll('li.is--selected'), elem => {
10308
+ updateTimePos(elem);
10309
+ });
10190
10310
  });
10191
10311
  }
10192
10312
  };
@@ -10288,7 +10408,10 @@ const Countdown = VxeCountdown;
10288
10408
  if (!reactData.initialized) {
10289
10409
  reactData.initialized = true;
10290
10410
  }
10291
- clearTimeout(hidePanelTimeout);
10411
+ if (internalData.hpTimeout) {
10412
+ clearTimeout(internalData.hpTimeout);
10413
+ internalData.hpTimeout = undefined;
10414
+ }
10292
10415
  reactData.isActivated = true;
10293
10416
  reactData.isAniVisible = true;
10294
10417
  if (isDatePickerType) {
@@ -10459,10 +10582,10 @@ const Countdown = VxeCountdown;
10459
10582
  class: ['vxe-date-picker--date-label', {
10460
10583
  'is-notice': festivalItem.notice
10461
10584
  }]
10462
- }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', label), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
10585
+ }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${label}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
10463
10586
  class: ['vxe-date-picker--date-label--extra', extraItem.important ? 'is-important' : '', extraItem.className],
10464
10587
  style: extraItem.style
10465
- }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : label)];
10588
+ }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : `${label}`)];
10466
10589
  const festivalLabel = festivalItem.label;
10467
10590
  if (festivalLabel) {
10468
10591
  // 默认最多支持3个节日重叠
@@ -10889,12 +11012,13 @@ const Countdown = VxeCountdown;
10889
11012
  class: ['vxe-date-picker--date-picker-icon', getIcon().DATE_PICKER_DATE]
10890
11013
  })]);
10891
11014
  };
11015
+ const dispatchEvent = (type, params, evnt) => {
11016
+ emit(type, createEvent(evnt, {
11017
+ $datePicker: $xeDatePicker
11018
+ }, params));
11019
+ };
10892
11020
  datePickerMethods = {
10893
- dispatchEvent(type, params, evnt) {
10894
- emit(type, createEvent(evnt, {
10895
- $input: $xeDatePicker
10896
- }, params));
10897
- },
11021
+ dispatchEvent,
10898
11022
  focus() {
10899
11023
  const inputElem = refInputTarget.value;
10900
11024
  reactData.isActivated = true;
@@ -10961,7 +11085,8 @@ const Countdown = VxeCountdown;
10961
11085
  type,
10962
11086
  align,
10963
11087
  name,
10964
- autocomplete
11088
+ autocomplete,
11089
+ autoComplete
10965
11090
  } = props;
10966
11091
  const {
10967
11092
  inputValue,
@@ -11007,7 +11132,7 @@ const Countdown = VxeCountdown;
11007
11132
  placeholder: inpPlaceholder,
11008
11133
  readonly: inputReadonly,
11009
11134
  disabled: isDisabled,
11010
- autocomplete,
11135
+ autocomplete: autoComplete || autocomplete,
11011
11136
  onKeydown: keydownEvent,
11012
11137
  onKeyup: keyupEvent,
11013
11138
  onWheel: wheelEvent,
@@ -11188,8 +11313,7 @@ const allActiveDrawers = [];
11188
11313
  initialized: false,
11189
11314
  visible: false,
11190
11315
  contentVisible: false,
11191
- drawerZIndex: 0,
11192
- firstOpen: true
11316
+ drawerZIndex: 0
11193
11317
  });
11194
11318
  const refMaps = {
11195
11319
  refElem
@@ -11232,9 +11356,6 @@ const allActiveDrawers = [];
11232
11356
  reactData.drawerZIndex = nextZIndex();
11233
11357
  }
11234
11358
  };
11235
- const updatePosition = () => {
11236
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {});
11237
- };
11238
11359
  const closeDrawer = type => {
11239
11360
  const {
11240
11361
  beforeHideMethod
@@ -11250,11 +11371,11 @@ const allActiveDrawers = [];
11250
11371
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isError(rest)) {
11251
11372
  reactData.contentVisible = false;
11252
11373
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(allActiveDrawers, item => item === $xeDrawer);
11253
- drawerMethods.dispatchEvent('before-hide', params, null);
11374
+ dispatchEvent('before-hide', params, null);
11254
11375
  setTimeout(() => {
11255
11376
  reactData.visible = false;
11256
11377
  emit('update:modelValue', false);
11257
- drawerMethods.dispatchEvent('hide', params, null);
11378
+ dispatchEvent('hide', params, null);
11258
11379
  }, 200);
11259
11380
  }
11260
11381
  }).catch(e => e);
@@ -11263,21 +11384,21 @@ const allActiveDrawers = [];
11263
11384
  };
11264
11385
  const closeEvent = evnt => {
11265
11386
  const type = 'close';
11266
- drawerMethods.dispatchEvent(type, {
11387
+ dispatchEvent(type, {
11267
11388
  type
11268
11389
  }, evnt);
11269
11390
  closeDrawer(type);
11270
11391
  };
11271
11392
  const confirmEvent = evnt => {
11272
11393
  const type = 'confirm';
11273
- drawerMethods.dispatchEvent(type, {
11394
+ dispatchEvent(type, {
11274
11395
  type
11275
11396
  }, evnt);
11276
11397
  closeDrawer(type);
11277
11398
  };
11278
11399
  const cancelEvent = evnt => {
11279
11400
  const type = 'cancel';
11280
- drawerMethods.dispatchEvent(type, {
11401
+ dispatchEvent(type, {
11281
11402
  type
11282
11403
  }, evnt);
11283
11404
  closeDrawer(type);
@@ -11315,31 +11436,19 @@ const allActiveDrawers = [];
11315
11436
  type
11316
11437
  };
11317
11438
  emit('update:modelValue', true);
11318
- drawerMethods.dispatchEvent('show', params, null);
11439
+ dispatchEvent('show', params, null);
11319
11440
  });
11320
11441
  }, 10);
11321
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
11322
- const {
11323
- firstOpen
11324
- } = reactData;
11325
- if (firstOpen) {
11326
- updatePosition().then(() => {
11327
- setTimeout(() => updatePosition(), 20);
11328
- });
11329
- }
11330
- if (firstOpen) {
11331
- reactData.firstOpen = false;
11332
- }
11333
- });
11334
11442
  }
11335
11443
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
11336
11444
  };
11445
+ const dispatchEvent = (type, params, evnt) => {
11446
+ emit(type, createEvent(evnt, {
11447
+ $drawer: $xeDrawer
11448
+ }, params));
11449
+ };
11337
11450
  const drawerMethods = {
11338
- dispatchEvent(type, params, evnt) {
11339
- emit(type, createEvent(evnt, {
11340
- $drawer: $xeDrawer
11341
- }, params));
11342
- },
11451
+ dispatchEvent,
11343
11452
  open: openDrawer,
11344
11453
  close() {
11345
11454
  return closeDrawer('close');
@@ -11551,7 +11660,6 @@ const allActiveDrawers = [];
11551
11660
  class: 'vxe-drawer--container'
11552
11661
  }, !reactData.initialized || destroyOnClose && !reactData.visible ? [] : [renderHeader(), renderBody(), renderFooter()])])])]);
11553
11662
  };
11554
- $xeDrawer.renderVN = renderVN;
11555
11663
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.width, recalculate);
11556
11664
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.height, recalculate);
11557
11665
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, value => {
@@ -11575,6 +11683,8 @@ const allActiveDrawers = [];
11575
11683
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
11576
11684
  globalEvents.off($xeDrawer, 'keydown');
11577
11685
  });
11686
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeDrawer', '$xeDrawer');
11687
+ $xeDrawer.renderVN = renderVN;
11578
11688
  return $xeDrawer;
11579
11689
  },
11580
11690
  render() {
@@ -11740,9 +11850,10 @@ function isActiveItem($xeForm, formItem) {
11740
11850
  if (!visibleMethod) {
11741
11851
  return true;
11742
11852
  }
11853
+ const formProps = $xeForm.props;
11743
11854
  const {
11744
11855
  data
11745
- } = $xeForm.props;
11856
+ } = formProps;
11746
11857
  return visibleMethod({
11747
11858
  data,
11748
11859
  field,
@@ -11855,6 +11966,7 @@ function destroyItem($xeForm, formItem) {
11855
11966
  arrowStyle: {}
11856
11967
  }
11857
11968
  });
11969
+ const internalData = {};
11858
11970
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
11859
11971
  const refMaps = {
11860
11972
  refElem
@@ -11864,6 +11976,7 @@ function destroyItem($xeForm, formItem) {
11864
11976
  props,
11865
11977
  context,
11866
11978
  reactData,
11979
+ internalData,
11867
11980
  getRefMaps: () => refMaps
11868
11981
  };
11869
11982
  let tooltipMethods = {};
@@ -11983,20 +12096,25 @@ function destroyItem($xeForm, formItem) {
11983
12096
  };
11984
12097
  return tooltipMethods.updatePlacement();
11985
12098
  };
11986
- const showDelayTip = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().debounce(() => {
11987
- if (reactData.tipActive) {
11988
- showTip();
11989
- }
11990
- }, props.enterDelay, {
11991
- leading: false,
11992
- trailing: true
11993
- });
12099
+ const handleDelayFn = () => {
12100
+ internalData.showDelayTip = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().debounce(() => {
12101
+ if (reactData.tipActive) {
12102
+ showTip();
12103
+ }
12104
+ }, props.enterDelay, {
12105
+ leading: false,
12106
+ trailing: true
12107
+ });
12108
+ };
11994
12109
  const handleVisible = (target, content) => {
11995
12110
  const contentSlot = slots.content;
11996
12111
  if (!contentSlot && (content === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(content))) {
11997
12112
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
11998
12113
  }
11999
12114
  if (target) {
12115
+ const {
12116
+ showDelayTip
12117
+ } = internalData;
12000
12118
  const {
12001
12119
  trigger,
12002
12120
  enterDelay
@@ -12005,7 +12123,9 @@ function destroyItem($xeForm, formItem) {
12005
12123
  reactData.tipTarget = target;
12006
12124
  reactData.tipContent = content;
12007
12125
  if (enterDelay && trigger === 'hover') {
12008
- showDelayTip();
12126
+ if (showDelayTip) {
12127
+ showDelayTip();
12128
+ }
12009
12129
  } else {
12010
12130
  return showTip();
12011
12131
  }
@@ -12043,94 +12163,20 @@ function destroyItem($xeForm, formItem) {
12043
12163
  const el = refElem.value;
12044
12164
  if (tipTarget && el) {
12045
12165
  updateTipStyle();
12046
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(updateTipStyle);
12166
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
12167
+ updateTipStyle();
12168
+ });
12047
12169
  }
12048
12170
  });
12049
12171
  },
12050
12172
  isActived() {
12051
12173
  return reactData.tipActive;
12052
12174
  },
12053
- setActived(actived) {
12054
- reactData.tipActive = !!actived;
12175
+ setActived(active) {
12176
+ reactData.tipActive = !!active;
12055
12177
  }
12056
12178
  };
12057
12179
  Object.assign($xeTooltip, tooltipMethods);
12058
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.content, () => {
12059
- reactData.tipContent = props.content;
12060
- });
12061
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
12062
- if (!reactData.isUpdate) {
12063
- if (val) {
12064
- handleVisible(reactData.target, props.content);
12065
- } else {
12066
- tooltipMethods.close();
12067
- }
12068
- }
12069
- reactData.isUpdate = false;
12070
- });
12071
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
12072
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
12073
- const {
12074
- trigger,
12075
- content,
12076
- modelValue
12077
- } = props;
12078
- const wrapperElem = refElem.value;
12079
- if (wrapperElem) {
12080
- const parentNode = wrapperElem.parentNode;
12081
- if (parentNode) {
12082
- reactData.tipContent = content;
12083
- reactData.tipZindex = nextZIndex();
12084
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(wrapperElem.children, (elem, index) => {
12085
- if (index > 1) {
12086
- parentNode.insertBefore(elem, wrapperElem);
12087
- if (!reactData.target) {
12088
- reactData.target = elem;
12089
- }
12090
- }
12091
- });
12092
- parentNode.removeChild(wrapperElem);
12093
- const {
12094
- target
12095
- } = reactData;
12096
- if (target) {
12097
- if (trigger === 'hover') {
12098
- target.onmouseenter = targetMouseenterEvent;
12099
- target.onmouseleave = targetMouseleaveEvent;
12100
- } else if (trigger === 'click') {
12101
- target.onclick = clickEvent;
12102
- }
12103
- }
12104
- if (modelValue) {
12105
- handleVisible(target, content);
12106
- }
12107
- }
12108
- }
12109
- });
12110
- });
12111
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
12112
- const {
12113
- trigger
12114
- } = props;
12115
- const {
12116
- target
12117
- } = reactData;
12118
- const wrapperElem = refElem.value;
12119
- if (target) {
12120
- if (trigger === 'hover') {
12121
- target.onmouseenter = null;
12122
- target.onmouseleave = null;
12123
- } else if (trigger === 'click') {
12124
- target.onclick = null;
12125
- }
12126
- }
12127
- if (wrapperElem) {
12128
- const parentNode = wrapperElem.parentNode;
12129
- if (parentNode) {
12130
- parentNode.removeChild(wrapperElem);
12131
- }
12132
- }
12133
- });
12134
12180
  const renderContent = () => {
12135
12181
  const {
12136
12182
  useHTML
@@ -12197,6 +12243,79 @@ function destroyItem($xeForm, formItem) {
12197
12243
  style: tipStore.arrowStyle
12198
12244
  }), ...(defaultSlot ? getSlotVNs(defaultSlot({})) : [])]);
12199
12245
  };
12246
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.enterDelay, () => {
12247
+ handleDelayFn();
12248
+ });
12249
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.content, val => {
12250
+ reactData.tipContent = val;
12251
+ });
12252
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
12253
+ if (!reactData.isUpdate) {
12254
+ if (val) {
12255
+ handleVisible(reactData.target, props.content);
12256
+ } else {
12257
+ tooltipMethods.close();
12258
+ }
12259
+ }
12260
+ reactData.isUpdate = false;
12261
+ });
12262
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
12263
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
12264
+ const {
12265
+ trigger,
12266
+ content
12267
+ } = props;
12268
+ const wrapperElem = refElem.value;
12269
+ if (wrapperElem) {
12270
+ const parentNode = wrapperElem.parentNode;
12271
+ if (parentNode) {
12272
+ reactData.tipContent = content;
12273
+ reactData.tipZindex = nextZIndex();
12274
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(wrapperElem.children, (elem, index) => {
12275
+ if (index > 1) {
12276
+ parentNode.insertBefore(elem, wrapperElem);
12277
+ if (!reactData.target) {
12278
+ reactData.target = elem;
12279
+ }
12280
+ }
12281
+ });
12282
+ parentNode.removeChild(wrapperElem);
12283
+ const {
12284
+ target
12285
+ } = reactData;
12286
+ if (target) {
12287
+ if (trigger === 'hover') {
12288
+ target.onmouseenter = targetMouseenterEvent;
12289
+ target.onmouseleave = targetMouseleaveEvent;
12290
+ } else if (trigger === 'click') {
12291
+ target.onclick = clickEvent;
12292
+ }
12293
+ }
12294
+ if (props.modelValue) {
12295
+ handleVisible(target, content);
12296
+ }
12297
+ }
12298
+ }
12299
+ });
12300
+ });
12301
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
12302
+ const {
12303
+ target
12304
+ } = reactData;
12305
+ const wrapperElem = refElem.value;
12306
+ if (target) {
12307
+ target.onmouseenter = null;
12308
+ target.onmouseleave = null;
12309
+ target.onclick = null;
12310
+ }
12311
+ if (wrapperElem) {
12312
+ const parentNode = wrapperElem.parentNode;
12313
+ if (parentNode) {
12314
+ parentNode.removeChild(wrapperElem);
12315
+ }
12316
+ }
12317
+ });
12318
+ handleDelayFn();
12200
12319
  $xeTooltip.renderVN = renderVN;
12201
12320
  return $xeTooltip;
12202
12321
  },
@@ -12266,6 +12385,9 @@ function destroyItem($xeForm, formItem) {
12266
12385
  };
12267
12386
  $xeIcon.renderVN = renderVN;
12268
12387
  return $xeIcon;
12388
+ },
12389
+ render() {
12390
+ return this.renderVN();
12269
12391
  }
12270
12392
  }));
12271
12393
  ;// CONCATENATED MODULE: ./packages/form/src/render.ts
@@ -12293,11 +12415,12 @@ function renderSuffixIcon(titleSuffix) {
12293
12415
  })]);
12294
12416
  }
12295
12417
  function renderTitle($xeForm, item) {
12418
+ const formProps = $xeForm.props;
12296
12419
  const {
12297
12420
  data,
12298
12421
  readonly,
12299
12422
  disabled
12300
- } = $xeForm.props;
12423
+ } = formProps;
12301
12424
  const {
12302
12425
  computeTooltipOpts
12303
12426
  } = $xeForm.getComputeMaps();
@@ -12375,9 +12498,8 @@ const VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
12375
12498
  };
12376
12499
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', xeformiteminfo);
12377
12500
  const renderVN = () => {
12378
- const {
12379
- reactData
12380
- } = $xeForm;
12501
+ const formProps = $xeForm.props;
12502
+ const formReactData = $xeForm.reactData;
12381
12503
  const {
12382
12504
  data,
12383
12505
  rules,
@@ -12393,14 +12515,14 @@ const VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
12393
12515
  titleOverflow: allTitleOverflow,
12394
12516
  vertical: allVertical,
12395
12517
  padding: allPadding
12396
- } = $xeForm.props;
12518
+ } = formProps;
12397
12519
  const {
12398
12520
  computeValidOpts
12399
12521
  } = $xeForm.getComputeMaps();
12400
12522
  const item = props.itemConfig;
12401
12523
  const {
12402
12524
  collapseAll
12403
- } = reactData;
12525
+ } = formReactData;
12404
12526
  const validOpts = computeValidOpts.value;
12405
12527
  const {
12406
12528
  slots,
@@ -12706,7 +12828,8 @@ function getResetValue(value, resetValue) {
12706
12828
  formItems: []
12707
12829
  });
12708
12830
  const internalData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
12709
- tooltipTimeout: null,
12831
+ meTimeout: undefined,
12832
+ stTimeout: undefined,
12710
12833
  tooltipStore: {
12711
12834
  item: null,
12712
12835
  visible: false
@@ -13033,7 +13156,6 @@ function getResetValue(value, resetValue) {
13033
13156
  }
13034
13157
  });
13035
13158
  };
13036
- let showErrTime;
13037
13159
  const beginValidate = (itemList, type, callback) => {
13038
13160
  const {
13039
13161
  data,
@@ -13043,7 +13165,7 @@ function getResetValue(value, resetValue) {
13043
13165
  const validRest = {};
13044
13166
  const validFields = [];
13045
13167
  const itemValids = [];
13046
- clearTimeout(showErrTime);
13168
+ clearTimeout(internalData.meTimeout);
13047
13169
  if (data && formRules) {
13048
13170
  itemList.forEach(item => {
13049
13171
  const {
@@ -13070,7 +13192,7 @@ function getResetValue(value, resetValue) {
13070
13192
  }
13071
13193
  }).catch(() => {
13072
13194
  return new Promise(resolve => {
13073
- showErrTime = window.setTimeout(() => {
13195
+ internalData.meTimeout = window.setTimeout(() => {
13074
13196
  itemList.forEach(item => {
13075
13197
  if (item.errRule) {
13076
13198
  item.showError = true;
@@ -13177,7 +13299,7 @@ function getResetValue(value, resetValue) {
13177
13299
  const overflowElem = evnt.currentTarget.children[0];
13178
13300
  const content = (overflowElem.textContent || '').trim();
13179
13301
  const isCellOverflow = overflowElem.scrollWidth > overflowElem.clientWidth;
13180
- clearTimeout(internalData.tooltipTimeout);
13302
+ clearTimeout(internalData.stTimeout);
13181
13303
  if (tooltipStore.item !== item) {
13182
13304
  closeTooltip();
13183
13305
  }
@@ -13198,7 +13320,7 @@ function getResetValue(value, resetValue) {
13198
13320
  $tooltip.setActived(false);
13199
13321
  }
13200
13322
  if (tooltipOpts.enterable) {
13201
- internalData.tooltipTimeout = setTimeout(() => {
13323
+ internalData.stTimeout = setTimeout(() => {
13202
13324
  $tooltip = refTooltip.value;
13203
13325
  if ($tooltip && !$tooltip.isActived()) {
13204
13326
  closeTooltip();
@@ -13312,7 +13434,6 @@ function getResetValue(value, resetValue) {
13312
13434
  ...tooltipOpts
13313
13435
  })]);
13314
13436
  };
13315
- $xeForm.renderVN = renderVN;
13316
13437
  const staticItemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
13317
13438
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.staticItems.length, () => {
13318
13439
  staticItemFlag.value++;
@@ -13357,6 +13478,7 @@ function getResetValue(value, resetValue) {
13357
13478
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeForm', $xeForm);
13358
13479
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormGather', null);
13359
13480
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeFormItem', null);
13481
+ $xeForm.renderVN = renderVN;
13360
13482
  return $xeForm;
13361
13483
  },
13362
13484
  render() {
@@ -13370,9 +13492,6 @@ function getResetValue(value, resetValue) {
13370
13492
 
13371
13493
 
13372
13494
  const componentDefaultModelProp = 'modelValue';
13373
- const defaultCompProps = {
13374
- transfer: true
13375
- };
13376
13495
  /**
13377
13496
  * 已废弃
13378
13497
  * @deprecated
@@ -13407,7 +13526,7 @@ function getNativeAttrs(renderOpts) {
13407
13526
  return attrs;
13408
13527
  }
13409
13528
  function getComponentFormItemProps(renderOpts, params, value, defaultProps) {
13410
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign({}, defaultCompProps, defaultProps, renderOpts.props, {
13529
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign({}, defaultProps, renderOpts.props, {
13411
13530
  [componentDefaultModelProp]: value
13412
13531
  });
13413
13532
  }
@@ -14628,31 +14747,23 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
14628
14747
  isTabOver: false,
14629
14748
  resizeFlag: 1
14630
14749
  });
14750
+ const internalData = {
14751
+ slTimeout: undefined
14752
+ };
14631
14753
  const refMaps = {
14632
14754
  refElem
14633
14755
  };
14634
- const handleFilterTab = item => {
14635
- const {
14636
- permissionCode
14637
- } = item;
14638
- if (permissionCode) {
14639
- if (!permission.checkVisible(permissionCode)) {
14640
- return false;
14641
- }
14642
- }
14643
- return true;
14644
- };
14645
14756
  const computeTabOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
14646
14757
  const {
14647
14758
  options
14648
14759
  } = props;
14649
- return (options || []).filter(handleFilterTab);
14760
+ return (options || []).filter(item => handleFilterTab(item));
14650
14761
  });
14651
14762
  const computeTabStaticOptions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
14652
14763
  const {
14653
14764
  staticTabs
14654
14765
  } = reactData;
14655
- return staticTabs.filter(handleFilterTab);
14766
+ return staticTabs.filter(item => handleFilterTab(item));
14656
14767
  });
14657
14768
  const computeMaps = {};
14658
14769
  const $xeTabs = {
@@ -14663,6 +14774,17 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
14663
14774
  getRefMaps: () => refMaps,
14664
14775
  getComputeMaps: () => computeMaps
14665
14776
  };
14777
+ const handleFilterTab = item => {
14778
+ const {
14779
+ permissionCode
14780
+ } = item;
14781
+ if (permissionCode) {
14782
+ if (!permission.checkVisible(permissionCode)) {
14783
+ return false;
14784
+ }
14785
+ }
14786
+ return true;
14787
+ };
14666
14788
  const callSlot = (slotFunc, params) => {
14667
14789
  if (slotFunc) {
14668
14790
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(slotFunc)) {
@@ -14838,12 +14960,17 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
14838
14960
  }, evnt);
14839
14961
  }
14840
14962
  };
14841
- let scrollTimeout = null;
14842
14963
  const startScrollAnimation = (offsetPos, offsetSize) => {
14964
+ const {
14965
+ slTimeout
14966
+ } = internalData;
14843
14967
  let offsetLeft = offsetSize;
14844
14968
  let scrollCount = 6;
14845
14969
  let delayNum = 35;
14846
- clearTimeout(scrollTimeout);
14970
+ if (slTimeout) {
14971
+ clearTimeout(slTimeout);
14972
+ internalData.slTimeout = undefined;
14973
+ }
14847
14974
  const scrollAnimate = () => {
14848
14975
  const headerWrapperEl = refHeadWrapperElem.value;
14849
14976
  if (scrollCount > 0) {
@@ -14859,13 +14986,13 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
14859
14986
  if (clientWidth + scrollLeft < scrollWidth) {
14860
14987
  headerWrapperEl.scrollLeft += offsetLeft;
14861
14988
  delayNum -= 4;
14862
- scrollTimeout = setTimeout(scrollAnimate, delayNum);
14989
+ internalData.slTimeout = setTimeout(scrollAnimate, delayNum);
14863
14990
  }
14864
14991
  } else {
14865
14992
  if (scrollLeft > 0) {
14866
14993
  headerWrapperEl.scrollLeft -= offsetLeft;
14867
14994
  delayNum -= 4;
14868
- scrollTimeout = setTimeout(scrollAnimate, delayNum);
14995
+ internalData.slTimeout = setTimeout(scrollAnimate, delayNum);
14869
14996
  }
14870
14997
  }
14871
14998
  updateTabStyle();
@@ -14919,42 +15046,44 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
14919
15046
  }
14920
15047
  });
14921
15048
  };
14922
- const createHandlePrevNext = isNext => {
14923
- return () => {
14924
- const {
14925
- activeName
14926
- } = reactData;
14927
- const tabOptions = computeTabOptions.value;
14928
- const tabStaticOptions = computeTabStaticOptions.value;
14929
- const list = tabStaticOptions.length ? tabStaticOptions : tabOptions;
14930
- const index = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(list, item => item.name === activeName);
14931
- if (index > -1) {
14932
- let item = null;
14933
- if (isNext) {
14934
- if (index < list.length - 1) {
14935
- item = list[index + 1];
14936
- }
14937
- } else {
14938
- if (index > 0) {
14939
- item = list[index - 1];
14940
- }
15049
+ const handlePrevNext = isNext => {
15050
+ const {
15051
+ activeName
15052
+ } = reactData;
15053
+ const tabOptions = computeTabOptions.value;
15054
+ const tabStaticOptions = computeTabStaticOptions.value;
15055
+ const list = tabStaticOptions.length ? tabStaticOptions : tabOptions;
15056
+ const index = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(list, item => item.name === activeName);
15057
+ if (index > -1) {
15058
+ let item = null;
15059
+ if (isNext) {
15060
+ if (index < list.length - 1) {
15061
+ item = list[index + 1];
14941
15062
  }
14942
- if (item) {
14943
- const name = item.name;
14944
- const value = name;
14945
- reactData.activeName = name;
14946
- emit('update:modelValue', value);
14947
- addInitName(name, null);
15063
+ } else {
15064
+ if (index > 0) {
15065
+ item = list[index - 1];
14948
15066
  }
14949
15067
  }
14950
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
14951
- };
15068
+ if (item) {
15069
+ const name = item.name;
15070
+ const value = name;
15071
+ reactData.activeName = name;
15072
+ emit('update:modelValue', value);
15073
+ addInitName(name, null);
15074
+ }
15075
+ }
15076
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
14952
15077
  };
14953
15078
  const tabsMethods = {
14954
15079
  dispatchEvent,
14955
15080
  scrollToTab,
14956
- prev: createHandlePrevNext(false),
14957
- next: createHandlePrevNext(true),
15081
+ prev() {
15082
+ return handlePrevNext(false);
15083
+ },
15084
+ next() {
15085
+ return handlePrevNext(true);
15086
+ },
14958
15087
  prevTab() {
14959
15088
  if (true) {
14960
15089
  warnLog('vxe.error.delFunc', ['prevTab', 'prev']);
@@ -15085,9 +15214,9 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
15085
15214
  } = reactData;
15086
15215
  const activeDefaultTab = tabList.find(item => item.name === activeName);
15087
15216
  if (destroyOnClose) {
15088
- return activeDefaultTab ? [renderTabPane(activeDefaultTab)] : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
15217
+ return [activeDefaultTab ? renderTabPane(activeDefaultTab) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()];
15089
15218
  }
15090
- return tabList.map(renderTabPane);
15219
+ return tabList.map(item => renderTabPane(item));
15091
15220
  };
15092
15221
  const renderVN = () => {
15093
15222
  const {
@@ -15153,7 +15282,9 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
15153
15282
  });
15154
15283
  }
15155
15284
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.resizeFlag, () => {
15156
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(updateTabStyle);
15285
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
15286
+ updateTabStyle();
15287
+ });
15157
15288
  });
15158
15289
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
15159
15290
  globalEvents.on($xeTabs, 'resize', updateTabStyle);
@@ -15164,10 +15295,10 @@ const ViewItemComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
15164
15295
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
15165
15296
  globalEvents.off($xeTabs, 'resize');
15166
15297
  });
15167
- $xeTabs.renderVN = renderVN;
15168
15298
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTabs', $xeTabs);
15169
15299
  addInitName(props.modelValue, null);
15170
15300
  initDefaultName(reactData.staticTabs.length ? reactData.staticTabs : props.options);
15301
+ $xeTabs.renderVN = renderVN;
15171
15302
  return $xeTabs;
15172
15303
  },
15173
15304
  render() {
@@ -15198,6 +15329,7 @@ function destroyAnchorTab($xeTabs, tabConfig) {
15198
15329
 
15199
15330
 
15200
15331
 
15332
+
15201
15333
  /* harmony default export */ var tab_pane = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
15202
15334
  name: 'VxeTabPane',
15203
15335
  props: {
@@ -15212,7 +15344,8 @@ function destroyAnchorTab($xeTabs, tabConfig) {
15212
15344
  emits: [],
15213
15345
  setup(props, context) {
15214
15346
  const {
15215
- slots
15347
+ slots,
15348
+ emit
15216
15349
  } = context;
15217
15350
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
15218
15351
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -15243,6 +15376,16 @@ function destroyAnchorTab($xeTabs, tabConfig) {
15243
15376
  getRefMaps: () => refMaps,
15244
15377
  getComputeMaps: () => computeMaps
15245
15378
  };
15379
+ const dispatchEvent = (type, params, evnt) => {
15380
+ emit(type, createEvent(evnt, {
15381
+ $tabPane: $xeTabPane
15382
+ }, params));
15383
+ };
15384
+ const tabPaneMethods = {
15385
+ dispatchEvent
15386
+ };
15387
+ const tabPanePrivateMethods = {};
15388
+ Object.assign($xeTabPane, tabPaneMethods, tabPanePrivateMethods);
15246
15389
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.title, val => {
15247
15390
  tabConfig.title = val;
15248
15391
  });
@@ -15256,8 +15399,9 @@ function destroyAnchorTab($xeTabs, tabConfig) {
15256
15399
  tabConfig.permissionCode = val;
15257
15400
  });
15258
15401
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
15259
- if ($xeTabs && refElem.value) {
15260
- assembleAnchorTab($xeTabs, refElem.value, tabConfig);
15402
+ const elem = refElem.value;
15403
+ if ($xeTabs && elem) {
15404
+ assembleAnchorTab($xeTabs, elem, tabConfig);
15261
15405
  }
15262
15406
  });
15263
15407
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
@@ -15355,7 +15499,7 @@ const formItemProps = {
15355
15499
  }) {
15356
15500
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
15357
15501
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', {});
15358
- const formGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGather', null);
15502
+ const $xeFormGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGather', null);
15359
15503
  const formItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(createItem($xeForm, props));
15360
15504
  formItem.slots = slots;
15361
15505
  const formItemInfo = {
@@ -15364,16 +15508,15 @@ const formItemProps = {
15364
15508
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', formItemInfo);
15365
15509
  watchItem(props, formItem);
15366
15510
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
15367
- assembleItem($xeForm, refElem.value, formItem, formGather);
15511
+ const elem = refElem.value;
15512
+ assembleItem($xeForm, elem, formItem, $xeFormGather);
15368
15513
  });
15369
15514
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
15370
15515
  destroyItem($xeForm, formItem);
15371
15516
  });
15372
15517
  const renderItem = ($xeForm, item) => {
15373
- const {
15374
- props,
15375
- reactData
15376
- } = $xeForm;
15518
+ const formProps = $xeForm.props;
15519
+ const formReactData = $xeForm.reactData;
15377
15520
  const {
15378
15521
  data,
15379
15522
  rules,
@@ -15387,10 +15530,10 @@ const formItemProps = {
15387
15530
  titleOverflow: allTitleOverflow,
15388
15531
  vertical: allVertical,
15389
15532
  padding: allPadding
15390
- } = props;
15533
+ } = formProps;
15391
15534
  const {
15392
15535
  collapseAll
15393
- } = reactData;
15536
+ } = formReactData;
15394
15537
  const {
15395
15538
  computeValidOpts
15396
15539
  } = $xeForm.getComputeMaps();
@@ -15424,8 +15567,8 @@ const formItemProps = {
15424
15567
  const itemTitleStyle = compConf ? compConf.formItemTitleStyle || compConf.itemTitleStyle : null;
15425
15568
  const defaultSlot = slots ? slots.default : null;
15426
15569
  const titleSlot = slots ? slots.title : null;
15427
- const span = item.span || props.span;
15428
- const align = item.align || props.align;
15570
+ const span = item.span || formProps.span;
15571
+ const align = item.align || formProps.align;
15429
15572
  const itemPadding = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(padding) ? allPadding : padding;
15430
15573
  const itemVertical = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(vertical) ? allVertical : vertical;
15431
15574
  const titleBold = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(item.titleBold) ? allTitleBold : item.titleBold;
@@ -15524,8 +15667,8 @@ const formItemProps = {
15524
15667
  }, contentVNs)])]);
15525
15668
  };
15526
15669
  const renderVN = () => {
15527
- const formProps = $xeForm ? $xeForm.props : null;
15528
- return formProps && formProps.customLayout ? renderItem($xeForm, formItem) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
15670
+ const customLayout = $xeForm ? $xeForm.props.customLayout : false;
15671
+ return customLayout ? renderItem($xeForm, formItem) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
15529
15672
  ref: refElem
15530
15673
  });
15531
15674
  };
@@ -17359,7 +17502,7 @@ const createDefaultFormViewMobileFormConfig = params => {
17359
17502
  }) {
17360
17503
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
17361
17504
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', {});
17362
- const parentFormGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGather', null);
17505
+ const $xeParentFormGather = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeFormGather', null);
17363
17506
  const formItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(createItem($xeForm, props));
17364
17507
  formItem.children = [];
17365
17508
  const formItemInfo = {
@@ -17368,7 +17511,8 @@ const createDefaultFormViewMobileFormConfig = params => {
17368
17511
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', formItemInfo);
17369
17512
  watchItem(props, formItem);
17370
17513
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
17371
- assembleItem($xeForm, refElem.value, formItem, parentFormGather);
17514
+ const elem = refElem.value;
17515
+ assembleItem($xeForm, elem, formItem, $xeParentFormGather);
17372
17516
  });
17373
17517
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
17374
17518
  destroyItem($xeForm, formItem);
@@ -17380,15 +17524,16 @@ const createDefaultFormViewMobileFormConfig = params => {
17380
17524
  } = props;
17381
17525
  const span = props.span || ($xeForm ? $xeForm.props.span : null);
17382
17526
  const defaultSlot = slots.default;
17527
+ const params = {
17528
+ $form: $xeForm,
17529
+ data: $xeForm ? $xeForm.props.data : {},
17530
+ item: formItem,
17531
+ field: field,
17532
+ property: field
17533
+ };
17383
17534
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
17384
17535
  ref: refElem,
17385
- class: ['vxe-form--gather vxe-form--item-row', formItem.id, span ? `vxe-form--item-col_${span} is--span` : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
17386
- $form: $xeForm,
17387
- data: $xeForm ? $xeForm.props.data : {},
17388
- item: formItem,
17389
- field: field,
17390
- property: field
17391
- }) : className : '']
17536
+ class: ['vxe-form--gather vxe-form--item-row', formItem.id, span ? `vxe-form--item-col_${span} is--span` : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className(params) : className : '']
17392
17537
  }, defaultSlot ? defaultSlot({}) : []);
17393
17538
  };
17394
17539
  const $xeFormGather = {
@@ -17946,6 +18091,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
17946
18091
  emit
17947
18092
  } = context;
17948
18093
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
18094
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
17949
18095
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
17950
18096
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
17951
18097
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
@@ -17953,16 +18099,13 @@ function toFloatValueFixed(inputValue, digitsValue) {
17953
18099
  const {
17954
18100
  computeSize
17955
18101
  } = useSize(props);
17956
- const yearSize = 12;
17957
- const monthSize = 20;
17958
- const quarterSize = 8;
17959
18102
  const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
17960
18103
  initialized: false,
17961
18104
  panelIndex: 0,
17962
18105
  showPwd: false,
17963
18106
  visiblePanel: false,
17964
18107
  isAniVisible: false,
17965
- panelStyle: null,
18108
+ panelStyle: {},
17966
18109
  panelPlacement: '',
17967
18110
  isActivated: false,
17968
18111
  inputValue: props.modelValue,
@@ -17973,6 +18116,13 @@ function toFloatValueFixed(inputValue, digitsValue) {
17973
18116
  selectMonth: null,
17974
18117
  currentDate: null
17975
18118
  });
18119
+ const internalData = {
18120
+ yearSize: 12,
18121
+ monthSize: 20,
18122
+ quarterSize: 8,
18123
+ hpTimeout: undefined,
18124
+ dnTimeout: undefined
18125
+ };
17976
18126
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
17977
18127
  const refInputTarget = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
17978
18128
  const refInputPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -17987,6 +18137,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
17987
18137
  props,
17988
18138
  context,
17989
18139
  reactData,
18140
+ internalData,
17990
18141
  getRefMaps: () => refMaps
17991
18142
  };
17992
18143
  let inputMethods = {};
@@ -18008,7 +18159,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18008
18159
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
18009
18160
  return globalTransfer;
18010
18161
  }
18011
- if ($xeTable || $xeModal || $xeForm) {
18162
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
18012
18163
  return true;
18013
18164
  }
18014
18165
  }
@@ -18211,13 +18362,16 @@ function toFloatValueFixed(inputValue, digitsValue) {
18211
18362
  if (isDatePickerType) {
18212
18363
  return labelFormat || dateValueFormat || i18n_getI18n(`vxe.input.date.labelFormat.${props.type}`);
18213
18364
  }
18214
- return null;
18365
+ return '';
18215
18366
  });
18216
18367
  const computeYearList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
18217
18368
  const {
18218
18369
  selectMonth,
18219
18370
  currentDate
18220
18371
  } = reactData;
18372
+ const {
18373
+ yearSize
18374
+ } = internalData;
18221
18375
  const years = [];
18222
18376
  if (selectMonth && currentDate) {
18223
18377
  const currFullYear = currentDate.getFullYear();
@@ -18319,6 +18473,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
18319
18473
  selectMonth,
18320
18474
  currentDate
18321
18475
  } = reactData;
18476
+ const {
18477
+ quarterSize
18478
+ } = internalData;
18322
18479
  const quarters = [];
18323
18480
  if (selectMonth && currentDate) {
18324
18481
  const currFullYear = currentDate.getFullYear();
@@ -18351,6 +18508,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
18351
18508
  selectMonth,
18352
18509
  currentDate
18353
18510
  } = reactData;
18511
+ const {
18512
+ monthSize
18513
+ } = internalData;
18354
18514
  const months = [];
18355
18515
  if (selectMonth && currentDate) {
18356
18516
  const currFullYear = currentDate.getFullYear();
@@ -18508,12 +18668,6 @@ function toFloatValueFixed(inputValue, digitsValue) {
18508
18668
  }
18509
18669
  return i18n_getI18n('vxe.base.pleaseInput');
18510
18670
  });
18511
- const computeInpMaxlength = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
18512
- const isNumType = computeIsNumType.value;
18513
- const inpMaxLength = computeInpMaxLength.value;
18514
- // 数值最大长度限制 16 位,包含小数
18515
- return isNumType && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpMaxLength) ? 16 : inpMaxLength;
18516
- });
18517
18671
  const computeInpImmediate = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
18518
18672
  const {
18519
18673
  type,
@@ -18569,13 +18723,13 @@ function toFloatValueFixed(inputValue, digitsValue) {
18569
18723
  type,
18570
18724
  exponential
18571
18725
  } = props;
18572
- const inpMaxlength = computeInpMaxlength.value;
18726
+ const inpMaxLength = computeInpMaxLength.value;
18573
18727
  const digitsValue = computeDigitsValue.value;
18574
18728
  const restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(val);
18575
18729
  if (exponential && (val === restVal || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(val).toLowerCase() === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(restVal).toExponential())) {
18576
18730
  return val;
18577
18731
  }
18578
- return restVal.slice(0, inpMaxlength);
18732
+ return restVal.slice(0, inpMaxLength);
18579
18733
  };
18580
18734
  const triggerEvent = evnt => {
18581
18735
  const {
@@ -18585,7 +18739,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18585
18739
  value: inputValue
18586
18740
  }, evnt);
18587
18741
  };
18588
- const emitModel = (value, evnt) => {
18742
+ const handleChange = (value, evnt) => {
18589
18743
  reactData.inputValue = value;
18590
18744
  emit('update:modelValue', value);
18591
18745
  inputMethods.dispatchEvent('input', {
@@ -18607,7 +18761,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18607
18761
  reactData.inputValue = value;
18608
18762
  if (!isDatePickerType) {
18609
18763
  if (inpImmediate) {
18610
- emitModel(value, evnt);
18764
+ handleChange(value, evnt);
18611
18765
  } else {
18612
18766
  inputMethods.dispatchEvent('input', {
18613
18767
  value
@@ -18645,11 +18799,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
18645
18799
  }, evnt);
18646
18800
  }
18647
18801
  };
18648
- let hidePanelTimeout;
18649
18802
  const hidePanel = () => {
18650
18803
  return new Promise(resolve => {
18651
18804
  reactData.visiblePanel = false;
18652
- hidePanelTimeout = window.setTimeout(() => {
18805
+ internalData.hpTimeout = window.setTimeout(() => {
18653
18806
  reactData.isAniVisible = false;
18654
18807
  resolve();
18655
18808
  }, 350);
@@ -18667,7 +18820,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18667
18820
  if (isNumType || ['text', 'search', 'password'].indexOf(type) > -1) {
18668
18821
  focus();
18669
18822
  }
18670
- emitModel('', evnt);
18823
+ handleChange('', evnt);
18671
18824
  inputMethods.dispatchEvent('clear', {
18672
18825
  value
18673
18826
  }, evnt);
@@ -18749,7 +18902,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18749
18902
  if (inputValue) {
18750
18903
  const validValue = toFloatValueFixed(inputValue, digitsValue);
18751
18904
  if (inputValue !== validValue) {
18752
- emitModel(validValue, {
18905
+ handleChange(validValue, {
18753
18906
  type: 'init'
18754
18907
  });
18755
18908
  }
@@ -18815,17 +18968,17 @@ function toFloatValueFixed(inputValue, digitsValue) {
18815
18968
  datetimeRest.push(item);
18816
18969
  }
18817
18970
  });
18818
- emitModel(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
18971
+ handleChange(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
18819
18972
  type: 'update'
18820
18973
  });
18821
18974
  } else {
18822
18975
  // 如果是日期类型
18823
18976
  if (dateMultipleValue.some(val => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal))) {
18824
- emitModel(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
18977
+ handleChange(dateMultipleValue.filter(val => !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal)).join(','), {
18825
18978
  type: 'update'
18826
18979
  });
18827
18980
  } else {
18828
- emitModel(dateMultipleValue.concat([inpVal]).join(','), {
18981
+ handleChange(dateMultipleValue.concat([inpVal]).join(','), {
18829
18982
  type: 'update'
18830
18983
  });
18831
18984
  }
@@ -18833,7 +18986,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18833
18986
  } else {
18834
18987
  // 如果为单选
18835
18988
  if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(modelValue, inpVal)) {
18836
- emitModel(inpVal, {
18989
+ handleChange(inpVal, {
18837
18990
  type: 'update'
18838
18991
  });
18839
18992
  }
@@ -18869,7 +19022,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18869
19022
  inpNumVal = inpStringVal;
18870
19023
  }
18871
19024
  }
18872
- emitModel(getNumberValue(inpNumVal), {
19025
+ handleChange(getNumberValue(inpNumVal), {
18873
19026
  type: 'check'
18874
19027
  });
18875
19028
  }
@@ -18880,7 +19033,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18880
19033
  if (type === 'time') {
18881
19034
  inpDateVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat);
18882
19035
  if (inputValue !== inpDateVal) {
18883
- emitModel(inpDateVal, {
19036
+ handleChange(inpDateVal, {
18884
19037
  type: 'check'
18885
19038
  });
18886
19039
  }
@@ -18910,7 +19063,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18910
19063
  dateRevert();
18911
19064
  }
18912
19065
  } else {
18913
- emitModel('', {
19066
+ handleChange('', {
18914
19067
  type: 'check'
18915
19068
  });
18916
19069
  }
@@ -18923,7 +19076,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18923
19076
  } = reactData;
18924
19077
  const inpImmediate = computeInpImmediate.value;
18925
19078
  if (!inpImmediate) {
18926
- emitModel(inputValue, evnt);
19079
+ handleChange(inputValue, evnt);
18927
19080
  }
18928
19081
  afterCheckValue();
18929
19082
  if (!reactData.visiblePanel) {
@@ -18976,19 +19129,18 @@ function toFloatValueFixed(inputValue, digitsValue) {
18976
19129
  }
18977
19130
  emitInputEvent(getNumberValue(restNum), evnt);
18978
19131
  };
18979
- let downbumTimeout;
18980
19132
  const numberNextEvent = evnt => {
18981
19133
  const isDisabled = computeIsDisabled.value;
18982
19134
  const isReadonly = computeIsReadonly.value;
18983
19135
  const isDisabledSubtractNumber = computeIsDisabledSubtractNumber.value;
18984
- clearTimeout(downbumTimeout);
19136
+ numberStopDown();
18985
19137
  if (!isDisabled && !isReadonly && !isDisabledSubtractNumber) {
18986
19138
  numberChange(false, evnt);
18987
19139
  }
18988
19140
  inputMethods.dispatchEvent('next-number', {}, evnt);
18989
19141
  };
18990
19142
  const numberDownNextEvent = evnt => {
18991
- downbumTimeout = window.setTimeout(() => {
19143
+ internalData.dnTimeout = window.setTimeout(() => {
18992
19144
  numberNextEvent(evnt);
18993
19145
  numberDownNextEvent(evnt);
18994
19146
  }, 60);
@@ -18997,7 +19149,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
18997
19149
  const isDisabled = computeIsDisabled.value;
18998
19150
  const isReadonly = computeIsReadonly.value;
18999
19151
  const isDisabledAddNumber = computeIsDisabledAddNumber.value;
19000
- clearTimeout(downbumTimeout);
19152
+ numberStopDown();
19001
19153
  if (!isDisabled && !isReadonly && !isDisabledAddNumber) {
19002
19154
  numberChange(true, evnt);
19003
19155
  }
@@ -19047,10 +19199,16 @@ function toFloatValueFixed(inputValue, digitsValue) {
19047
19199
  };
19048
19200
  // 数值
19049
19201
  const numberStopDown = () => {
19050
- clearTimeout(downbumTimeout);
19202
+ const {
19203
+ dnTimeout
19204
+ } = internalData;
19205
+ if (dnTimeout) {
19206
+ clearTimeout(dnTimeout);
19207
+ internalData.dnTimeout = undefined;
19208
+ }
19051
19209
  };
19052
19210
  const numberDownPrevEvent = evnt => {
19053
- downbumTimeout = window.setTimeout(() => {
19211
+ internalData.dnTimeout = window.setTimeout(() => {
19054
19212
  numberPrevEvent(evnt);
19055
19213
  numberDownPrevEvent(evnt);
19056
19214
  }, 60);
@@ -19064,7 +19222,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
19064
19222
  } else {
19065
19223
  numberNextEvent(evnt);
19066
19224
  }
19067
- downbumTimeout = window.setTimeout(() => {
19225
+ internalData.dnTimeout = window.setTimeout(() => {
19068
19226
  if (isPrevNumber) {
19069
19227
  numberDownPrevEvent(evnt);
19070
19228
  } else {
@@ -19116,6 +19274,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
19116
19274
  datePanelType,
19117
19275
  selectMonth
19118
19276
  } = reactData;
19277
+ const {
19278
+ yearSize
19279
+ } = internalData;
19119
19280
  const isDisabledPrevDateBtn = computeIsDisabledPrevDateBtn.value;
19120
19281
  if (!isDisabledPrevDateBtn) {
19121
19282
  if (type === 'year') {
@@ -19158,6 +19319,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
19158
19319
  datePanelType,
19159
19320
  selectMonth
19160
19321
  } = reactData;
19322
+ const {
19323
+ yearSize
19324
+ } = internalData;
19161
19325
  const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
19162
19326
  if (!isDisabledNextDateBtn) {
19163
19327
  if (type === 'year') {
@@ -19354,12 +19518,12 @@ function toFloatValueFixed(inputValue, digitsValue) {
19354
19518
  datetimeRest.push(item);
19355
19519
  }
19356
19520
  });
19357
- emitModel(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
19521
+ handleChange(datetimeRest.map(date => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat)).join(','), {
19358
19522
  type: 'update'
19359
19523
  });
19360
19524
  } else {
19361
19525
  // 如果是日期类型
19362
- emitModel(dateMultipleValue.join(','), {
19526
+ handleChange(dateMultipleValue.join(','), {
19363
19527
  type: 'update'
19364
19528
  });
19365
19529
  }
@@ -19477,7 +19641,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
19477
19641
  reactData.datetimePanelValue = reactData.datePanelValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
19478
19642
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
19479
19643
  const timeBodyElem = refInputTimeBody.value;
19480
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(timeBodyElem.querySelectorAll('li.is--selected'), updateTimePos);
19644
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(timeBodyElem.querySelectorAll('li.is--selected'), elem => {
19645
+ updateTimePos(elem);
19646
+ });
19481
19647
  });
19482
19648
  }
19483
19649
  };
@@ -19573,13 +19739,19 @@ function toFloatValueFixed(inputValue, digitsValue) {
19573
19739
  const {
19574
19740
  visiblePanel
19575
19741
  } = reactData;
19742
+ const {
19743
+ hpTimeout
19744
+ } = internalData;
19576
19745
  const isDisabled = computeIsDisabled.value;
19577
19746
  const isDatePickerType = computeIsDatePickerType.value;
19578
19747
  if (!isDisabled && !visiblePanel) {
19579
19748
  if (!reactData.initialized) {
19580
19749
  reactData.initialized = true;
19581
19750
  }
19582
- clearTimeout(hidePanelTimeout);
19751
+ if (hpTimeout) {
19752
+ clearTimeout(hpTimeout);
19753
+ internalData.hpTimeout = undefined;
19754
+ }
19583
19755
  reactData.isActivated = true;
19584
19756
  reactData.isAniVisible = true;
19585
19757
  if (isDatePickerType) {
@@ -19750,10 +19922,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
19750
19922
  class: ['vxe-input--date-label', {
19751
19923
  'is-notice': festivalItem.notice
19752
19924
  }]
19753
- }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', label), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
19925
+ }, extraItem && extraItem.label ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${label || ''}`), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
19754
19926
  class: ['vxe-input--date-label--extra', extraItem.important ? 'is-important' : '', extraItem.className],
19755
19927
  style: extraItem.style
19756
- }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : label)];
19928
+ }, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(extraItem.label))] : [`${label || ''}`])];
19757
19929
  const festivalLabel = festivalItem.label;
19758
19930
  if (festivalLabel) {
19759
19931
  // 默认最多支持3个节日重叠
@@ -19769,7 +19941,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
19769
19941
  }
19770
19942
  return labels;
19771
19943
  }
19772
- return label;
19944
+ return [`${label || ''}`];
19773
19945
  };
19774
19946
  const renderDateDayTable = () => {
19775
19947
  const {
@@ -20255,12 +20427,13 @@ function toFloatValueFixed(inputValue, digitsValue) {
20255
20427
  }
20256
20428
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
20257
20429
  };
20430
+ const dispatchEvent = (type, params, evnt) => {
20431
+ emit(type, createEvent(evnt, {
20432
+ $input: $xeInput
20433
+ }, params));
20434
+ };
20258
20435
  inputMethods = {
20259
- dispatchEvent(type, params, evnt) {
20260
- emit(type, createEvent(evnt, {
20261
- $input: $xeInput
20262
- }, params));
20263
- },
20436
+ dispatchEvent,
20264
20437
  focus() {
20265
20438
  const inputElem = refInputTarget.value;
20266
20439
  reactData.isActivated = true;
@@ -20313,7 +20486,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
20313
20486
  const isCountError = computeIsCountError.value;
20314
20487
  const inputCount = computeInputCount.value;
20315
20488
  const inputReadonly = computeInputReadonly.value;
20316
- const inpMaxlength = computeInpMaxlength.value;
20489
+ const inpMaxLength = computeInpMaxLength.value;
20317
20490
  const inputType = computeInputType.value;
20318
20491
  const inpPlaceholder = computeInpPlaceholder.value;
20319
20492
  const isClearable = computeIsClearable.value;
@@ -20344,7 +20517,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
20344
20517
  name,
20345
20518
  type: inputType,
20346
20519
  placeholder: inpPlaceholder,
20347
- maxlength: inpMaxlength,
20520
+ maxlength: inpMaxLength,
20348
20521
  readonly: inputReadonly,
20349
20522
  disabled: isDisabled,
20350
20523
  autocomplete: autoComplete || autocomplete,
@@ -20366,9 +20539,8 @@ function toFloatValueFixed(inputValue, digitsValue) {
20366
20539
  }]
20367
20540
  }, countMethod ? `${countMethod({
20368
20541
  value: inputValue
20369
- })}` : `${inputCount}${inpMaxlength ? `/${inpMaxlength}` : ''}`) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
20542
+ })}` : `${inputCount}${inpMaxLength ? `/${inpMaxLength}` : ''}`) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
20370
20543
  };
20371
- $xeInput.renderVN = renderVN;
20372
20544
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
20373
20545
  reactData.inputValue = val;
20374
20546
  changeValue();
@@ -20408,6 +20580,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
20408
20580
  globalEvents.off($xeInput, 'blur');
20409
20581
  });
20410
20582
  initValue();
20583
+ $xeInput.renderVN = renderVN;
20411
20584
  return $xeInput;
20412
20585
  },
20413
20586
  render() {
@@ -20681,7 +20854,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
20681
20854
  const vSize = computeSize.value;
20682
20855
  const isDisabled = computeIsDisabled.value;
20683
20856
  const name = computeName.value;
20684
- const checked = computeChecked.value;
20857
+ const isChecked = computeChecked.value;
20685
20858
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('label', {
20686
20859
  class: ['vxe-radio', 'vxe-radio-button', {
20687
20860
  [`size--${vSize}`]: vSize,
@@ -20692,7 +20865,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
20692
20865
  class: 'vxe-radio--input',
20693
20866
  type: 'radio',
20694
20867
  name,
20695
- checked,
20868
+ checked: isChecked,
20696
20869
  disabled: isDisabled,
20697
20870
  onChange: changeEvent,
20698
20871
  onClick: clickEvent
@@ -20789,11 +20962,12 @@ function toFloatValueFixed(inputValue, digitsValue) {
20789
20962
  };
20790
20963
  const radioGroupPrivateMethods = {
20791
20964
  handleChecked(params, evnt) {
20792
- emit('update:modelValue', params.label);
20965
+ const value = params.label;
20966
+ emit('update:modelValue', value);
20793
20967
  dispatchEvent('change', params, evnt);
20794
20968
  // 自动更新校验状态
20795
20969
  if ($xeForm && formItemInfo) {
20796
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, params.label);
20970
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
20797
20971
  }
20798
20972
  }
20799
20973
  };
@@ -20818,9 +20992,12 @@ function toFloatValueFixed(inputValue, digitsValue) {
20818
20992
  });
20819
20993
  }) : []);
20820
20994
  };
20821
- $xeRadioGroup.renderVN = renderVN;
20822
20995
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeRadioGroup', $xeRadioGroup);
20823
- return renderVN;
20996
+ $xeRadioGroup.renderVN = renderVN;
20997
+ return $xeRadioGroup;
20998
+ },
20999
+ render() {
21000
+ return this.renderVN();
20824
21001
  }
20825
21002
  }));
20826
21003
  ;// CONCATENATED MODULE: ./packages/select/src/select.ts
@@ -20880,17 +21057,17 @@ function getOptUniqueId() {
20880
21057
  remote: Boolean,
20881
21058
  remoteMethod: Function,
20882
21059
  emptyText: String,
21060
+ transfer: {
21061
+ type: Boolean,
21062
+ default: null
21063
+ },
20883
21064
  // 已废弃,被 option-config.keyField 替换
20884
21065
  optionId: {
20885
21066
  type: String,
20886
21067
  default: () => getConfig().select.optionId
20887
21068
  },
20888
21069
  // 已废弃,被 option-config.useKey 替换
20889
- optionKey: Boolean,
20890
- transfer: {
20891
- type: Boolean,
20892
- default: null
20893
- }
21070
+ optionKey: Boolean
20894
21071
  },
20895
21072
  emits: ['update:modelValue', 'change', 'clear', 'blur', 'focus', 'click'],
20896
21073
  setup(props, context) {
@@ -20899,6 +21076,7 @@ function getOptUniqueId() {
20899
21076
  emit
20900
21077
  } = context;
20901
21078
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
21079
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
20902
21080
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
20903
21081
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
20904
21082
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
@@ -20926,6 +21104,9 @@ function getOptUniqueId() {
20926
21104
  searchValue: '',
20927
21105
  searchLoading: false
20928
21106
  });
21107
+ const internalData = {
21108
+ hpTimeout: undefined
21109
+ };
20929
21110
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
20930
21111
  const refInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
20931
21112
  const refInpSearch = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -20939,6 +21120,7 @@ function getOptUniqueId() {
20939
21120
  props,
20940
21121
  context,
20941
21122
  reactData,
21123
+ internalData,
20942
21124
  getRefMaps: () => refMaps
20943
21125
  };
20944
21126
  let selectMethods = {};
@@ -20975,7 +21157,7 @@ function getOptUniqueId() {
20975
21157
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
20976
21158
  return globalTransfer;
20977
21159
  }
20978
- if ($xeTable || $xeModal || $xeForm) {
21160
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
20979
21161
  return true;
20980
21162
  }
20981
21163
  }
@@ -20995,10 +21177,10 @@ function getOptUniqueId() {
20995
21177
  return i18n_getI18n('vxe.base.pleaseSelect');
20996
21178
  });
20997
21179
  const computePropsOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
20998
- return props.optionProps || {};
21180
+ return Object.assign({}, props.optionProps);
20999
21181
  });
21000
21182
  const computeGroupPropsOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21001
- return props.optionGroupProps || {};
21183
+ return Object.assign({}, props.optionGroupProps);
21002
21184
  });
21003
21185
  const computeLabelField = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21004
21186
  const propsOpts = computePropsOpts.value;
@@ -21036,6 +21218,31 @@ function getOptUniqueId() {
21036
21218
  const computeMultiMaxCharNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21037
21219
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.multiCharOverflow);
21038
21220
  });
21221
+ const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21222
+ const {
21223
+ modelValue,
21224
+ multiple,
21225
+ remote
21226
+ } = props;
21227
+ const multiMaxCharNum = computeMultiMaxCharNum.value;
21228
+ if (modelValue && multiple) {
21229
+ const vals = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue];
21230
+ if (remote) {
21231
+ return vals.map(val => getRemoteSelectLabel(val)).join(', ');
21232
+ }
21233
+ return vals.map(val => {
21234
+ const label = getSelectLabel(val);
21235
+ if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
21236
+ return `${label.substring(0, multiMaxCharNum)}...`;
21237
+ }
21238
+ return label;
21239
+ }).join(', ');
21240
+ }
21241
+ if (remote) {
21242
+ return getRemoteSelectLabel(modelValue);
21243
+ }
21244
+ return getSelectLabel(modelValue);
21245
+ });
21039
21246
  const callSlot = (slotFunc, params) => {
21040
21247
  if (slotFunc) {
21041
21248
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(slotFunc)) {
@@ -21105,31 +21312,6 @@ function getOptUniqueId() {
21105
21312
  const item = findOption(value);
21106
21313
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(item ? item[labelField] : value);
21107
21314
  };
21108
- const computeSelectLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21109
- const {
21110
- modelValue,
21111
- multiple,
21112
- remote
21113
- } = props;
21114
- const multiMaxCharNum = computeMultiMaxCharNum.value;
21115
- if (modelValue && multiple) {
21116
- const vals = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue];
21117
- if (remote) {
21118
- return vals.map(val => getRemoteSelectLabel(val)).join(', ');
21119
- }
21120
- return vals.map(val => {
21121
- const label = getSelectLabel(val);
21122
- if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
21123
- return `${label.substring(0, multiMaxCharNum)}...`;
21124
- }
21125
- return label;
21126
- }).join(', ');
21127
- }
21128
- if (remote) {
21129
- return getRemoteSelectLabel(modelValue);
21130
- }
21131
- return getSelectLabel(modelValue);
21132
- });
21133
21315
  const getOptkey = () => {
21134
21316
  const optionOpts = computeOptionOpts.value;
21135
21317
  return optionOpts.keyField || props.optionId || '_X_OPTION_KEY';
@@ -21319,15 +21501,20 @@ function getOptUniqueId() {
21319
21501
  }
21320
21502
  });
21321
21503
  };
21322
- let hidePanelTimeout;
21323
21504
  const showOptionPanel = () => {
21324
21505
  const {
21325
21506
  loading,
21326
21507
  filterable
21327
21508
  } = props;
21509
+ const {
21510
+ hpTimeout
21511
+ } = internalData;
21328
21512
  const isDisabled = computeIsDisabled.value;
21329
21513
  if (!loading && !isDisabled) {
21330
- clearTimeout(hidePanelTimeout);
21514
+ if (hpTimeout) {
21515
+ clearTimeout(hpTimeout);
21516
+ internalData.hpTimeout = undefined;
21517
+ }
21331
21518
  if (!reactData.initialized) {
21332
21519
  reactData.initialized = true;
21333
21520
  }
@@ -21356,13 +21543,13 @@ function getOptUniqueId() {
21356
21543
  reactData.searchValue = '';
21357
21544
  reactData.searchLoading = false;
21358
21545
  reactData.visiblePanel = false;
21359
- hidePanelTimeout = window.setTimeout(() => {
21546
+ internalData.hpTimeout = window.setTimeout(() => {
21360
21547
  reactData.isAniVisible = false;
21361
21548
  }, 350);
21362
21549
  };
21363
21550
  const changeEvent = (evnt, selectValue) => {
21551
+ emit('update:modelValue', selectValue);
21364
21552
  if (selectValue !== props.modelValue) {
21365
- emit('update:modelValue', selectValue);
21366
21553
  selectMethods.dispatchEvent('change', {
21367
21554
  value: selectValue
21368
21555
  }, evnt);
@@ -21627,7 +21814,7 @@ function getOptUniqueId() {
21627
21814
  const focusSearchEvent = () => {
21628
21815
  reactData.isActivated = true;
21629
21816
  };
21630
- const triggerSearchEvent = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().debounce(function () {
21817
+ const handleSearchEvent = () => {
21631
21818
  const {
21632
21819
  remote,
21633
21820
  remoteMethod
@@ -21646,7 +21833,8 @@ function getOptUniqueId() {
21646
21833
  } else {
21647
21834
  refreshOption();
21648
21835
  }
21649
- }, 350, {
21836
+ };
21837
+ const triggerSearchEvent = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().debounce(handleSearchEvent, 350, {
21650
21838
  trailing: true
21651
21839
  });
21652
21840
  const togglePanelEvent = params => {
@@ -21883,7 +22071,7 @@ function getOptUniqueId() {
21883
22071
  ref: 'hideOption'
21884
22072
  }, defaultSlot ? defaultSlot({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
21885
22073
  class: 'vxe-select-label'
21886
- }, selectLabel)]);
22074
+ }, [selectLabel])]);
21887
22075
  }
21888
22076
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21889
22077
  ref: refElem,
@@ -21958,7 +22146,6 @@ function getOptUniqueId() {
21958
22146
  class: 'vxe-select--panel-footer'
21959
22147
  }, footerSlot({})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])] : [])])]);
21960
22148
  };
21961
- $xeSelect.renderVN = renderVN;
21962
22149
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.staticOptions, value => {
21963
22150
  if (value.some(item => item.options && item.options.length)) {
21964
22151
  reactData.fullOptionList = [];
@@ -22004,6 +22191,7 @@ function getOptUniqueId() {
22004
22191
  globalEvents.off($xeSelect, 'blur');
22005
22192
  });
22006
22193
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeSelect', $xeSelect);
22194
+ $xeSelect.renderVN = renderVN;
22007
22195
  return $xeSelect;
22008
22196
  },
22009
22197
  render() {
@@ -23339,7 +23527,7 @@ let autoTxtElem;
23339
23527
  value
23340
23528
  }, evnt);
23341
23529
  };
23342
- const emitUpdate = (value, evnt) => {
23530
+ const handleChange = (value, evnt) => {
23343
23531
  reactData.inputValue = value;
23344
23532
  emit('update:modelValue', value);
23345
23533
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(props.modelValue) !== value) {
@@ -23360,7 +23548,7 @@ let autoTxtElem;
23360
23548
  const value = textElem.value;
23361
23549
  reactData.inputValue = value;
23362
23550
  if (immediate) {
23363
- emitUpdate(value, evnt);
23551
+ handleChange(value, evnt);
23364
23552
  }
23365
23553
  $xeTextarea.dispatchEvent('input', {
23366
23554
  value
@@ -23374,7 +23562,7 @@ let autoTxtElem;
23374
23562
  if (immediate) {
23375
23563
  triggerEvent(evnt);
23376
23564
  } else {
23377
- emitUpdate(reactData.inputValue, evnt);
23565
+ handleChange(reactData.inputValue, evnt);
23378
23566
  }
23379
23567
  };
23380
23568
  const blurEvent = evnt => {
@@ -23385,7 +23573,7 @@ let autoTxtElem;
23385
23573
  inputValue
23386
23574
  } = reactData;
23387
23575
  if (!immediate) {
23388
- emitUpdate(inputValue, evnt);
23576
+ handleChange(inputValue, evnt);
23389
23577
  }
23390
23578
  $xeTextarea.dispatchEvent('blur', {
23391
23579
  value: inputValue
@@ -24219,8 +24407,8 @@ const getWidgetRowConfig = params => {
24219
24407
  onClick: clickEvent
24220
24408
  }, defaultSlot ? defaultSlot({}) : []);
24221
24409
  };
24222
- $xeRow.renderVN = renderVN;
24223
24410
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeRow', $xeRow);
24411
+ $xeRow.renderVN = renderVN;
24224
24412
  return $xeRow;
24225
24413
  },
24226
24414
  render() {
@@ -26292,6 +26480,9 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26292
26480
  isActivated: false,
26293
26481
  inputValue: props.modelValue
26294
26482
  });
26483
+ const internalData = {
26484
+ dnTimeout: undefined
26485
+ };
26295
26486
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
26296
26487
  const refInputTarget = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
26297
26488
  const refInputPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -26304,9 +26495,10 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26304
26495
  props,
26305
26496
  context,
26306
26497
  reactData,
26498
+ internalData,
26307
26499
  getRefMaps: () => refMaps
26308
26500
  };
26309
- let inputMethods = {};
26501
+ let numberInputMethods = {};
26310
26502
  const computeFormReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26311
26503
  const {
26312
26504
  readonly
@@ -26331,9 +26523,6 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26331
26523
  }
26332
26524
  return disabled;
26333
26525
  });
26334
- const computeIsNumType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26335
- return true;
26336
- });
26337
26526
  const computeDigitsValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26338
26527
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(props.digits) || 1;
26339
26528
  });
@@ -26373,7 +26562,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26373
26562
  }
26374
26563
  return i18n_getI18n('vxe.base.pleaseInput');
26375
26564
  });
26376
- const computeInpMaxlength = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26565
+ const computeInpMaxLength = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26377
26566
  const {
26378
26567
  maxLength,
26379
26568
  maxlength
@@ -26395,11 +26584,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26395
26584
  const {
26396
26585
  inputValue
26397
26586
  } = reactData;
26398
- const isNumType = computeIsNumType.value;
26399
- if (isNumType) {
26400
- return type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(handleNumber(inputValue)) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(handleNumber(inputValue));
26401
- }
26402
- return 0;
26587
+ return type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(handleNumber(inputValue)) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(handleNumber(inputValue));
26403
26588
  });
26404
26589
  const computeNumLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
26405
26590
  const {
@@ -26414,10 +26599,9 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26414
26599
  const {
26415
26600
  inputValue
26416
26601
  } = reactData;
26417
- const isNumType = computeIsNumType.value;
26418
26602
  const numValue = computeNumValue.value;
26419
26603
  // 当有值时再进行判断
26420
- if ((inputValue || inputValue === 0) && isNumType && min !== null) {
26604
+ if ((inputValue || inputValue === 0) && min !== null) {
26421
26605
  return numValue <= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(min);
26422
26606
  }
26423
26607
  return false;
@@ -26429,10 +26613,9 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26429
26613
  const {
26430
26614
  inputValue
26431
26615
  } = reactData;
26432
- const isNumType = computeIsNumType.value;
26433
26616
  const numValue = computeNumValue.value;
26434
26617
  // 当有值时再进行判断
26435
- if ((inputValue || inputValue === 0) && isNumType && max !== null) {
26618
+ if ((inputValue || inputValue === 0) && max !== null) {
26436
26619
  return numValue >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(max);
26437
26620
  }
26438
26621
  return false;
@@ -26442,33 +26625,34 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26442
26625
  type,
26443
26626
  exponential
26444
26627
  } = props;
26445
- const inpMaxlength = computeInpMaxlength.value;
26628
+ const inpMaxLength = computeInpMaxLength.value;
26446
26629
  const digitsValue = computeDigitsValue.value;
26447
26630
  const restVal = type === 'float' ? toFloatValueFixed(val, digitsValue) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(val);
26448
26631
  if (exponential && (val === restVal || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(val).toLowerCase() === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(restVal).toExponential())) {
26449
26632
  return val;
26450
26633
  }
26451
- return restVal.slice(0, inpMaxlength);
26634
+ return restVal.slice(0, inpMaxLength);
26452
26635
  };
26453
26636
  const triggerEvent = evnt => {
26454
26637
  const {
26455
26638
  inputValue
26456
26639
  } = reactData;
26457
- inputMethods.dispatchEvent(evnt.type, {
26640
+ numberInputMethods.dispatchEvent(evnt.type, {
26458
26641
  value: inputValue
26459
26642
  }, evnt);
26460
26643
  };
26461
- const emitModel = (value, inputValue, evnt) => {
26644
+ const handleChange = (val, inputValue, evnt) => {
26645
+ const value = val ? Number(val) : null;
26462
26646
  const isChange = Number(value) !== props.modelValue;
26463
26647
  if (isChange) {
26464
26648
  reactData.inputValue = inputValue || '';
26465
- emit('update:modelValue', value ? Number(value) : null);
26649
+ emit('update:modelValue', value);
26466
26650
  }
26467
- inputMethods.dispatchEvent('input', {
26651
+ numberInputMethods.dispatchEvent('input', {
26468
26652
  value
26469
26653
  }, evnt);
26470
26654
  if (isChange) {
26471
- inputMethods.dispatchEvent('change', {
26655
+ numberInputMethods.dispatchEvent('change', {
26472
26656
  value
26473
26657
  }, evnt);
26474
26658
  // 自动更新校验状态
@@ -26482,9 +26666,9 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26482
26666
  const value = inputValue ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inputValue) : null;
26483
26667
  reactData.inputValue = inputValue;
26484
26668
  if (inpImmediate) {
26485
- emitModel(value, inputValue, evnt);
26669
+ handleChange(value, inputValue, evnt);
26486
26670
  } else {
26487
- inputMethods.dispatchEvent('input', {
26671
+ numberInputMethods.dispatchEvent('input', {
26488
26672
  value
26489
26673
  }, evnt);
26490
26674
  }
@@ -26510,15 +26694,15 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26510
26694
  const {
26511
26695
  inputValue
26512
26696
  } = reactData;
26513
- inputMethods.dispatchEvent('prefix-click', {
26697
+ numberInputMethods.dispatchEvent('prefix-click', {
26514
26698
  value: inputValue
26515
26699
  }, evnt);
26516
26700
  }
26517
26701
  };
26518
26702
  const clearValueEvent = (evnt, value) => {
26519
26703
  focus();
26520
- emitModel(null, '', evnt);
26521
- inputMethods.dispatchEvent('clear', {
26704
+ handleChange(null, '', evnt);
26705
+ numberInputMethods.dispatchEvent('clear', {
26522
26706
  value
26523
26707
  }, evnt);
26524
26708
  };
@@ -26528,7 +26712,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26528
26712
  const {
26529
26713
  inputValue
26530
26714
  } = reactData;
26531
- inputMethods.dispatchEvent('suffix-click', {
26715
+ numberInputMethods.dispatchEvent('suffix-click', {
26532
26716
  value: inputValue
26533
26717
  }, evnt);
26534
26718
  }
@@ -26553,7 +26737,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26553
26737
  validValue = Number(textValue);
26554
26738
  }
26555
26739
  if (inputValue !== validValue) {
26556
- emitModel(validValue, textValue, {
26740
+ handleChange(validValue, textValue, {
26557
26741
  type: 'init'
26558
26742
  });
26559
26743
  }
@@ -26592,7 +26776,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26592
26776
  }
26593
26777
  }
26594
26778
  const inpValue = getNumberValue(inpNumVal);
26595
- emitModel(inpValue === null ? null : Number(inpValue), inpValue, {
26779
+ handleChange(inpValue === null ? null : Number(inpValue), inpValue, {
26596
26780
  type: 'check'
26597
26781
  });
26598
26782
  }
@@ -26605,11 +26789,11 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26605
26789
  const inpImmediate = computeInpImmediate.value;
26606
26790
  const value = inputValue ? Number(inputValue) : null;
26607
26791
  if (!inpImmediate) {
26608
- emitModel(value, `${inputValue || ''}`, evnt);
26792
+ handleChange(value, `${inputValue || ''}`, evnt);
26609
26793
  }
26610
26794
  afterCheckValue();
26611
26795
  reactData.isActivated = false;
26612
- inputMethods.dispatchEvent('blur', {
26796
+ numberInputMethods.dispatchEvent('blur', {
26613
26797
  value
26614
26798
  }, evnt);
26615
26799
  };
@@ -26636,19 +26820,18 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26636
26820
  }
26637
26821
  emitInputEvent(getNumberValue(restNum), evnt);
26638
26822
  };
26639
- let downbumTimeout;
26640
26823
  const numberNextEvent = evnt => {
26641
26824
  const isDisabled = computeIsDisabled.value;
26642
26825
  const formReadonly = computeFormReadonly.value;
26643
26826
  const isDisabledSubtractNumber = computeIsDisabledSubtractNumber.value;
26644
- clearTimeout(downbumTimeout);
26827
+ numberStopDown();
26645
26828
  if (!isDisabled && !formReadonly && !isDisabledSubtractNumber) {
26646
26829
  numberChange(false, evnt);
26647
26830
  }
26648
- inputMethods.dispatchEvent('next-number', {}, evnt);
26831
+ numberInputMethods.dispatchEvent('next-number', {}, evnt);
26649
26832
  };
26650
26833
  const numberDownNextEvent = evnt => {
26651
- downbumTimeout = window.setTimeout(() => {
26834
+ internalData.dnTimeout = window.setTimeout(() => {
26652
26835
  numberNextEvent(evnt);
26653
26836
  numberDownNextEvent(evnt);
26654
26837
  }, 60);
@@ -26657,11 +26840,11 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26657
26840
  const isDisabled = computeIsDisabled.value;
26658
26841
  const formReadonly = computeFormReadonly.value;
26659
26842
  const isDisabledAddNumber = computeIsDisabledAddNumber.value;
26660
- clearTimeout(downbumTimeout);
26843
+ numberStopDown();
26661
26844
  if (!isDisabled && !formReadonly && !isDisabledAddNumber) {
26662
26845
  numberChange(true, evnt);
26663
26846
  }
26664
- inputMethods.dispatchEvent('prev-number', {}, evnt);
26847
+ numberInputMethods.dispatchEvent('prev-number', {}, evnt);
26665
26848
  };
26666
26849
  const numberKeydownEvent = evnt => {
26667
26850
  const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
@@ -26680,24 +26863,21 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26680
26863
  exponential,
26681
26864
  controls
26682
26865
  } = props;
26683
- const isNumType = computeIsNumType.value;
26684
- if (isNumType) {
26685
- const isCtrlKey = evnt.ctrlKey;
26686
- const isShiftKey = evnt.shiftKey;
26687
- const isAltKey = evnt.altKey;
26688
- const keyCode = evnt.keyCode;
26689
- const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
26690
- const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
26691
- const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
26692
- if (!isCtrlKey && !isShiftKey && !isAltKey && (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191)) {
26693
- evnt.preventDefault();
26694
- }
26695
- if (isEsc) {
26696
- afterCheckValue();
26697
- } else if (isUpArrow || isDwArrow) {
26698
- if (controls) {
26699
- numberKeydownEvent(evnt);
26700
- }
26866
+ const isCtrlKey = evnt.ctrlKey;
26867
+ const isShiftKey = evnt.shiftKey;
26868
+ const isAltKey = evnt.altKey;
26869
+ const keyCode = evnt.keyCode;
26870
+ const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
26871
+ const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
26872
+ const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
26873
+ if (!isCtrlKey && !isShiftKey && !isAltKey && (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191)) {
26874
+ evnt.preventDefault();
26875
+ }
26876
+ if (isEsc) {
26877
+ afterCheckValue();
26878
+ } else if (isUpArrow || isDwArrow) {
26879
+ if (controls) {
26880
+ numberKeydownEvent(evnt);
26701
26881
  }
26702
26882
  }
26703
26883
  triggerEvent(evnt);
@@ -26707,10 +26887,16 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26707
26887
  };
26708
26888
  // 数值
26709
26889
  const numberStopDown = () => {
26710
- clearTimeout(downbumTimeout);
26890
+ const {
26891
+ dnTimeout
26892
+ } = internalData;
26893
+ if (dnTimeout) {
26894
+ clearTimeout(dnTimeout);
26895
+ internalData.dnTimeout = undefined;
26896
+ }
26711
26897
  };
26712
26898
  const numberDownPrevEvent = evnt => {
26713
- downbumTimeout = window.setTimeout(() => {
26899
+ internalData.dnTimeout = window.setTimeout(() => {
26714
26900
  numberPrevEvent(evnt);
26715
26901
  numberDownPrevEvent(evnt);
26716
26902
  }, 60);
@@ -26724,7 +26910,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26724
26910
  } else {
26725
26911
  numberNextEvent(evnt);
26726
26912
  }
26727
- downbumTimeout = window.setTimeout(() => {
26913
+ internalData.dnTimeout = window.setTimeout(() => {
26728
26914
  if (isPrevNumber) {
26729
26915
  numberDownPrevEvent(evnt);
26730
26916
  } else {
@@ -26734,8 +26920,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26734
26920
  }
26735
26921
  };
26736
26922
  const wheelEvent = evnt => {
26737
- const isNumType = computeIsNumType.value;
26738
- if (isNumType && props.controls) {
26923
+ if (props.controls) {
26739
26924
  if (reactData.isActivated) {
26740
26925
  const delta = evnt.deltaY;
26741
26926
  if (delta > 0) {
@@ -26873,12 +27058,13 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26873
27058
  }
26874
27059
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
26875
27060
  };
26876
- inputMethods = {
26877
- dispatchEvent(type, params, evnt) {
26878
- emit(type, createEvent(evnt, {
26879
- $input: $xeNumberInput
26880
- }, params));
26881
- },
27061
+ const dispatchEvent = (type, params, evnt) => {
27062
+ emit(type, createEvent(evnt, {
27063
+ $numberInput: $xeNumberInput
27064
+ }, params));
27065
+ };
27066
+ numberInputMethods = {
27067
+ dispatchEvent,
26882
27068
  focus() {
26883
27069
  const inputElem = refInputTarget.value;
26884
27070
  reactData.isActivated = true;
@@ -26898,7 +27084,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26898
27084
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
26899
27085
  }
26900
27086
  };
26901
- Object.assign($xeNumberInput, inputMethods);
27087
+ Object.assign($xeNumberInput, numberInputMethods);
26902
27088
  const renderVN = () => {
26903
27089
  const {
26904
27090
  className,
@@ -26924,7 +27110,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26924
27110
  }, numLabel);
26925
27111
  }
26926
27112
  const inputReadonly = computeInputReadonly.value;
26927
- const inpMaxlength = computeInpMaxlength.value;
27113
+ const inpMaxLength = computeInpMaxLength.value;
26928
27114
  const inpPlaceholder = computeInpPlaceholder.value;
26929
27115
  const isClearable = computeIsClearable.value;
26930
27116
  const prefix = renderPrefixIcon();
@@ -26951,7 +27137,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
26951
27137
  name,
26952
27138
  type: 'text',
26953
27139
  placeholder: inpPlaceholder,
26954
- maxlength: inpMaxlength,
27140
+ maxlength: inpMaxLength,
26955
27141
  readonly: inputReadonly,
26956
27142
  disabled: isDisabled,
26957
27143
  autocomplete: autoComplete || autocomplete,
@@ -28286,7 +28472,7 @@ function getNodeUniqueId() {
28286
28472
  nodeMaps
28287
28473
  } = reactData;
28288
28474
  if (!lazy) {
28289
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
28475
+ return Promise.resolve([]);
28290
28476
  }
28291
28477
  const childrenField = computeChildrenField.value;
28292
28478
  const parentNodeItem = nodeMaps[getNodeId(node)];
@@ -29016,7 +29202,6 @@ function getNodeUniqueId() {
29016
29202
  })
29017
29203
  } : {})]);
29018
29204
  };
29019
- $xeTree.renderVN = renderVN;
29020
29205
  const dataFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
29021
29206
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data ? props.data.length : 0, () => {
29022
29207
  dataFlag.value++;
@@ -29047,6 +29232,7 @@ function getNodeUniqueId() {
29047
29232
  });
29048
29233
  updateData(props.data || []);
29049
29234
  updateCheckboxChecked(props.checkNodeKeys || []);
29235
+ $xeTree.renderVN = renderVN;
29050
29236
  return $xeTree;
29051
29237
  },
29052
29238
  render() {
@@ -29108,6 +29294,7 @@ function tree_select_getOptUniqueId() {
29108
29294
  slots
29109
29295
  } = context;
29110
29296
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
29297
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
29111
29298
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
29112
29299
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
29113
29300
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
@@ -29132,6 +29319,9 @@ function tree_select_getOptUniqueId() {
29132
29319
  visibleAnimate: false,
29133
29320
  isActivated: false
29134
29321
  });
29322
+ const internalData = {
29323
+ hpTimeout: undefined
29324
+ };
29135
29325
  const refMaps = {
29136
29326
  refElem
29137
29327
  };
@@ -29168,7 +29358,7 @@ function tree_select_getOptUniqueId() {
29168
29358
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
29169
29359
  return globalTransfer;
29170
29360
  }
29171
- if ($xeTable || $xeModal || $xeForm) {
29361
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
29172
29362
  return true;
29173
29363
  }
29174
29364
  }
@@ -29229,9 +29419,9 @@ function tree_select_getOptUniqueId() {
29229
29419
  const {
29230
29420
  fullNodeMaps
29231
29421
  } = reactData;
29422
+ const labelField = computeLabelField.value;
29232
29423
  return (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue]).map(value => {
29233
29424
  const cacheItem = fullNodeMaps[value];
29234
- const labelField = computeLabelField.value;
29235
29425
  return cacheItem ? cacheItem.item[labelField] : value;
29236
29426
  }).join(', ');
29237
29427
  });
@@ -29241,6 +29431,7 @@ function tree_select_getOptUniqueId() {
29241
29431
  props,
29242
29432
  context,
29243
29433
  reactData,
29434
+ internalData,
29244
29435
  getRefMaps: () => refMaps,
29245
29436
  getComputeMaps: () => computeMaps
29246
29437
  };
@@ -29269,7 +29460,7 @@ function tree_select_getOptUniqueId() {
29269
29460
  const valueField = computeValueField.value;
29270
29461
  const childrenField = computeChildrenField.value;
29271
29462
  const nodeMaps = {};
29272
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(options, (item, index, items, parent, nodes) => {
29463
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(options, (item, index, items, path, parent, nodes) => {
29273
29464
  let nodeid = getOptid(item);
29274
29465
  if (!nodeid) {
29275
29466
  nodeid = tree_select_getOptUniqueId();
@@ -29373,14 +29564,13 @@ function tree_select_getOptUniqueId() {
29373
29564
  }
29374
29565
  });
29375
29566
  };
29376
- let hidePanelTimeout;
29377
29567
  const showOptionPanel = () => {
29378
29568
  const {
29379
29569
  loading
29380
29570
  } = props;
29381
29571
  const isDisabled = computeIsDisabled.value;
29382
29572
  if (!loading && !isDisabled) {
29383
- clearTimeout(hidePanelTimeout);
29573
+ clearTimeout(internalData.hpTimeout);
29384
29574
  if (!reactData.initialized) {
29385
29575
  reactData.initialized = true;
29386
29576
  }
@@ -29395,7 +29585,7 @@ function tree_select_getOptUniqueId() {
29395
29585
  };
29396
29586
  const hideOptionPanel = () => {
29397
29587
  reactData.visiblePanel = false;
29398
- hidePanelTimeout = window.setTimeout(() => {
29588
+ internalData.hpTimeout = window.setTimeout(() => {
29399
29589
  reactData.visibleAnimate = false;
29400
29590
  }, 350);
29401
29591
  };
@@ -29403,9 +29593,9 @@ function tree_select_getOptUniqueId() {
29403
29593
  const {
29404
29594
  fullNodeMaps
29405
29595
  } = reactData;
29596
+ emit('update:modelValue', selectValue);
29406
29597
  if (selectValue !== props.modelValue) {
29407
29598
  const cacheItem = fullNodeMaps[selectValue];
29408
- emit('update:modelValue', selectValue);
29409
29599
  treeSelectMethods.dispatchEvent('change', {
29410
29600
  value: selectValue,
29411
29601
  option: cacheItem ? cacheItem.item : null
@@ -29648,7 +29838,6 @@ function tree_select_getOptUniqueId() {
29648
29838
  class: 'vxe-tree-select--panel-footer'
29649
29839
  }, footerSlot({})) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])] : [])])]);
29650
29840
  };
29651
- $xeTreeSelect.renderVN = renderVN;
29652
29841
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options, () => {
29653
29842
  cacheItemMap();
29654
29843
  });
@@ -29663,6 +29852,8 @@ function tree_select_getOptUniqueId() {
29663
29852
  globalEvents.off($xeTreeSelect, 'mousedown');
29664
29853
  globalEvents.off($xeTreeSelect, 'blur');
29665
29854
  });
29855
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTreeSelect', $xeTreeSelect);
29856
+ $xeTreeSelect.renderVN = renderVN;
29666
29857
  return $xeTreeSelect;
29667
29858
  },
29668
29859
  render() {
@@ -30705,7 +30896,7 @@ const saveLocalFile = options => {
30705
30896
  $upload: $xeUpload
30706
30897
  }, params));
30707
30898
  };
30708
- const emitModel = value => {
30899
+ const handleChange = value => {
30709
30900
  const {
30710
30901
  singleMode,
30711
30902
  urlMode
@@ -30888,7 +31079,7 @@ const saveLocalFile = options => {
30888
31079
  cacheItem.percent = 0;
30889
31080
  handleUploadResult(item, file).then(() => {
30890
31081
  if (urlMode) {
30891
- emitModel(reactData.fileList);
31082
+ handleChange(reactData.fileList);
30892
31083
  }
30893
31084
  });
30894
31085
  }
@@ -31000,7 +31191,7 @@ const saveLocalFile = options => {
31000
31191
  reactData.fileList = newFileList;
31001
31192
  reactData.fileCacheMaps = cacheMaps;
31002
31193
  Promise.all(urlMode ? uploadPromiseRests : []).then(() => {
31003
- emitModel(newFileList);
31194
+ handleChange(newFileList);
31004
31195
  // 自动更新校验状态
31005
31196
  if ($xeForm && formItemInfo) {
31006
31197
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, newFileList);
@@ -31040,7 +31231,7 @@ const saveLocalFile = options => {
31040
31231
  fileList
31041
31232
  } = reactData;
31042
31233
  fileList.splice(index, 1);
31043
- emitModel(fileList);
31234
+ handleChange(fileList);
31044
31235
  // 自动更新校验状态
31045
31236
  if ($xeForm && formItemInfo) {
31046
31237
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, fileList);
@@ -31552,7 +31743,6 @@ const saveLocalFile = options => {
31552
31743
  class: 'vxe-upload--drag-placeholder'
31553
31744
  }, i18n_getI18n('vxe.upload.dragPlaceholder')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
31554
31745
  };
31555
- $xeUpload.renderVN = renderVN;
31556
31746
  const listFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
31557
31747
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue ? props.modelValue.length : 0, () => {
31558
31748
  listFlag.value++;
@@ -31574,6 +31764,7 @@ const saveLocalFile = options => {
31574
31764
  reactData.isDrag = false;
31575
31765
  });
31576
31766
  updateFileList();
31767
+ $xeUpload.renderVN = renderVN;
31577
31768
  return $xeUpload;
31578
31769
  },
31579
31770
  render() {
@@ -32271,6 +32462,7 @@ const Icon = VxeIcon;
32271
32462
  emit
32272
32463
  } = context;
32273
32464
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
32465
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
32274
32466
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
32275
32467
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
32276
32468
  const formItemInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeFormItemInfo', null);
@@ -32280,7 +32472,7 @@ const Icon = VxeIcon;
32280
32472
  } = useSize(props);
32281
32473
  const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
32282
32474
  initialized: false,
32283
- selectIcon: '',
32475
+ selectIcon: `${props.modelValue || ''}`,
32284
32476
  panelIndex: 0,
32285
32477
  panelStyle: {},
32286
32478
  panelPlacement: null,
@@ -32288,6 +32480,9 @@ const Icon = VxeIcon;
32288
32480
  isAniVisible: false,
32289
32481
  isActivated: false
32290
32482
  });
32483
+ const internalData = {
32484
+ hpTimeout: undefined
32485
+ };
32291
32486
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
32292
32487
  const refInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
32293
32488
  const refOptionPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -32335,7 +32530,7 @@ const Icon = VxeIcon;
32335
32530
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
32336
32531
  return globalTransfer;
32337
32532
  }
32338
- if ($xeTable || $xeModal || $xeForm) {
32533
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
32339
32534
  return true;
32340
32535
  }
32341
32536
  }
@@ -32456,11 +32651,16 @@ const Icon = VxeIcon;
32456
32651
  }
32457
32652
  });
32458
32653
  };
32459
- let hidePanelTimeout;
32460
32654
  const showOptionPanel = () => {
32655
+ const {
32656
+ hpTimeout
32657
+ } = internalData;
32461
32658
  const isDisabled = computeIsDisabled.value;
32462
32659
  if (!isDisabled) {
32463
- clearTimeout(hidePanelTimeout);
32660
+ if (hpTimeout) {
32661
+ clearTimeout(hpTimeout);
32662
+ internalData.hpTimeout = undefined;
32663
+ }
32464
32664
  if (!reactData.initialized) {
32465
32665
  reactData.initialized = true;
32466
32666
  }
@@ -32475,7 +32675,7 @@ const Icon = VxeIcon;
32475
32675
  };
32476
32676
  const hideOptionPanel = () => {
32477
32677
  reactData.visiblePanel = false;
32478
- hidePanelTimeout = window.setTimeout(() => {
32678
+ internalData.hpTimeout = window.setTimeout(() => {
32479
32679
  reactData.isAniVisible = false;
32480
32680
  }, 350);
32481
32681
  };
@@ -32606,12 +32806,13 @@ const Icon = VxeIcon;
32606
32806
  const handleGlobalBlurEvent = () => {
32607
32807
  hideOptionPanel();
32608
32808
  };
32809
+ const dispatchEvent = (type, params, evnt) => {
32810
+ emit(type, createEvent(evnt, {
32811
+ $iconPicker: $xeIconPicker
32812
+ }, params));
32813
+ };
32609
32814
  iconPickerMethods = {
32610
- dispatchEvent(type, params, evnt) {
32611
- emit(type, createEvent(evnt, {
32612
- $iconPicker: $xeIconPicker
32613
- }, params));
32614
- },
32815
+ dispatchEvent,
32615
32816
  isPanelVisible() {
32616
32817
  return reactData.visiblePanel;
32617
32818
  },
@@ -32761,9 +32962,8 @@ const Icon = VxeIcon;
32761
32962
  style: reactData.panelStyle
32762
32963
  }, [initialized ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
32763
32964
  class: 'vxe-ico-picker--panel-wrapper'
32764
- }, renderIconWrapper()) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])])]);
32965
+ }, [renderIconWrapper()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])])]);
32765
32966
  };
32766
- $xeIconPicker.renderVN = renderVN;
32767
32967
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
32768
32968
  reactData.selectIcon = `${val || ''}`;
32769
32969
  });
@@ -32780,6 +32980,7 @@ const Icon = VxeIcon;
32780
32980
  globalEvents.off($xeIconPicker, 'blur');
32781
32981
  });
32782
32982
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeIconPicker', $xeIconPicker);
32983
+ $xeIconPicker.renderVN = renderVN;
32783
32984
  return $xeIconPicker;
32784
32985
  },
32785
32986
  render() {
@@ -33361,7 +33562,6 @@ const IconPicker = VxeIconPicker;
33361
33562
  onWheel: wheelEvent
33362
33563
  }, [renderImgWrapper(), renderBtnWrapper()]);
33363
33564
  };
33364
- $xeImagePreview.renderVN = renderVN;
33365
33565
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
33366
33566
  reactData.activeIndex = val;
33367
33567
  resetStyle();
@@ -33379,6 +33579,7 @@ const IconPicker = VxeIconPicker;
33379
33579
  globalEvents.off($xeImagePreview, 'keydown');
33380
33580
  });
33381
33581
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeImagePreview', $xeImagePreview);
33582
+ $xeImagePreview.renderVN = renderVN;
33382
33583
  return renderVN;
33383
33584
  }
33384
33585
  }));
@@ -33730,7 +33931,10 @@ const Image = VxeImage;
33730
33931
  };
33731
33932
  $xeImageGroup.renderVN = renderVN;
33732
33933
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeImageGroup', $xeImageGroup);
33733
- return renderVN;
33934
+ return $xeImageGroup;
33935
+ },
33936
+ render() {
33937
+ return this.renderVN();
33734
33938
  }
33735
33939
  }));
33736
33940
  ;// CONCATENATED MODULE: ./packages/image-group/index.ts
@@ -33879,8 +34083,8 @@ const Input = VxeInput;
33879
34083
  modelValue: loading
33880
34084
  })]);
33881
34085
  };
33882
- $xeLayoutAside.renderVN = renderVN;
33883
34086
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeLayoutAside', $xeLayoutAside);
34087
+ $xeLayoutAside.renderVN = renderVN;
33884
34088
  return $xeLayoutAside;
33885
34089
  },
33886
34090
  render() {
@@ -35698,7 +35902,6 @@ const DefaultParameterSettingFormComponent = (0,external_commonjs_vue_commonjs2_
35698
35902
  class: 'vxe-list-design--body'
35699
35903
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_layout_preview), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_layout_setting)])]);
35700
35904
  };
35701
- $xeListDesign.renderVN = renderVN;
35702
35905
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeListDesign', $xeListDesign);
35703
35906
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.config, value => {
35704
35907
  loadConfig(value || {});
@@ -35707,6 +35910,7 @@ const DefaultParameterSettingFormComponent = (0,external_commonjs_vue_commonjs2_
35707
35910
  if (props.config) {
35708
35911
  loadConfig(props.config);
35709
35912
  }
35913
+ $xeListDesign.renderVN = renderVN;
35710
35914
  return $xeListDesign;
35711
35915
  },
35712
35916
  render() {
@@ -36252,7 +36456,6 @@ const ListDesign = VxeListDesign;
36252
36456
  modelValue: loading
36253
36457
  })]);
36254
36458
  };
36255
- $xeListView.renderVN = renderVN;
36256
36459
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.config, value => {
36257
36460
  loadConfig(value || {});
36258
36461
  });
@@ -36267,6 +36470,7 @@ const ListDesign = VxeListDesign;
36267
36470
  }
36268
36471
  });
36269
36472
  }
36473
+ $xeListView.renderVN = renderVN;
36270
36474
  return $xeListView;
36271
36475
  },
36272
36476
  render() {
@@ -36328,10 +36532,8 @@ const ListView = VxeListView;
36328
36532
  topSpaceHeight: 0,
36329
36533
  items: []
36330
36534
  });
36331
- const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36332
- const refVirtualWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36333
- const refVirtualBody = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36334
36535
  const internalData = {
36536
+ resizeObserver: undefined,
36335
36537
  fullData: [],
36336
36538
  lastScrollLeft: 0,
36337
36539
  lastScrollTop: 0,
@@ -36343,6 +36545,9 @@ const ListView = VxeListView;
36343
36545
  rowHeight: 0
36344
36546
  }
36345
36547
  };
36548
+ const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36549
+ const refVirtualWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36550
+ const refVirtualBody = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
36346
36551
  const refMaps = {
36347
36552
  refElem
36348
36553
  };
@@ -36602,19 +36807,22 @@ const ListView = VxeListView;
36602
36807
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onActivated)(() => {
36603
36808
  recalculate().then(() => refreshScroll());
36604
36809
  });
36605
- let resizeObserver;
36606
36810
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
36607
36811
  globalEvents.on($xeList, 'resize', () => {
36608
36812
  recalculate();
36609
36813
  });
36610
36814
  if (props.autoResize) {
36611
36815
  const el = refElem.value;
36612
- resizeObserver = globalResize.create(() => recalculate());
36816
+ const resizeObserver = globalResize.create(() => recalculate());
36613
36817
  resizeObserver.observe(el);
36818
+ internalData.resizeObserver = resizeObserver;
36614
36819
  }
36615
36820
  listMethods.loadData(props.data || []);
36616
36821
  });
36617
36822
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
36823
+ const {
36824
+ resizeObserver
36825
+ } = internalData;
36618
36826
  if (resizeObserver) {
36619
36827
  resizeObserver.disconnect();
36620
36828
  }
@@ -36849,8 +37057,9 @@ const List = VxeList;
36849
37057
  hasChild
36850
37058
  } = item;
36851
37059
  if (routerLink) {
36852
- reactData.activeName = item.itemKey;
36853
- emit('update:modelValue', item.itemKey);
37060
+ const value = item.itemKey;
37061
+ reactData.activeName = value;
37062
+ emit('update:modelValue', value);
36854
37063
  } else {
36855
37064
  if (hasChild) {
36856
37065
  handleClickIconCollapse(evnt, item);
@@ -36965,7 +37174,6 @@ const List = VxeList;
36965
37174
  modelValue: loading
36966
37175
  })]);
36967
37176
  };
36968
- $xeMenu.renderVN = renderVN;
36969
37177
  const optFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
36970
37178
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options ? props.options.length : -1, () => {
36971
37179
  optFlag.value++;
@@ -36990,6 +37198,7 @@ const List = VxeList;
36990
37198
  });
36991
37199
  updateMenuConfig();
36992
37200
  updateActiveMenu(true);
37201
+ $xeMenu.renderVN = renderVN;
36993
37202
  return $xeMenu;
36994
37203
  },
36995
37204
  render() {
@@ -37183,7 +37392,7 @@ function watchOption(props, option) {
37183
37392
  });
37184
37393
  });
37185
37394
  }
37186
- function assembleOption($xeSelect, el, option, optGroup) {
37395
+ function assembleOption($xeSelect, el, option, $xeOptgroup) {
37187
37396
  const {
37188
37397
  reactData
37189
37398
  } = $xeSelect;
@@ -37191,7 +37400,7 @@ function assembleOption($xeSelect, el, option, optGroup) {
37191
37400
  staticOptions
37192
37401
  } = reactData;
37193
37402
  const parentElem = el.parentNode;
37194
- const parentOption = optGroup ? optGroup.option : null;
37403
+ const parentOption = $xeOptgroup ? $xeOptgroup.optionConfig : null;
37195
37404
  const parentCols = parentOption ? parentOption.options : staticOptions;
37196
37405
  if (parentElem && parentCols) {
37197
37406
  parentCols.splice(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayIndexOf(parentElem.children, el), 0, option);
@@ -37230,28 +37439,31 @@ function destroyOption($xeSelect, option) {
37230
37439
  className: [String, Function],
37231
37440
  disabled: Boolean
37232
37441
  },
37442
+ emits: [],
37233
37443
  setup(props, {
37234
37444
  slots
37235
37445
  }) {
37236
37446
  const elem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
37237
37447
  const $xeSelect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeSelect', {});
37238
- const option = createOption($xeSelect, props);
37239
- const xeOption = {
37240
- option
37448
+ const optionConfig = createOption($xeSelect, props);
37449
+ const $xeOptgroup = {
37450
+ optionConfig
37241
37451
  };
37242
- option.options = [];
37243
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeoptgroup', xeOption);
37244
- watchOption(props, option);
37452
+ optionConfig.options = [];
37453
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeOptgroup', $xeOptgroup);
37454
+ watchOption(props, optionConfig);
37245
37455
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
37246
- assembleOption($xeSelect, elem.value, option);
37456
+ const el = elem.value;
37457
+ assembleOption($xeSelect, el, optionConfig);
37247
37458
  });
37248
37459
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
37249
- destroyOption($xeSelect, option);
37460
+ destroyOption($xeSelect, optionConfig);
37250
37461
  });
37251
37462
  return () => {
37463
+ const defaultSlot = slots.default;
37252
37464
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
37253
37465
  ref: elem
37254
- }, slots.default ? slots.default() : []);
37466
+ }, defaultSlot ? defaultSlot({}) : []);
37255
37467
  };
37256
37468
  }
37257
37469
  }));
@@ -37274,7 +37486,7 @@ const Optgroup = VxeOptgroup;
37274
37486
  /* harmony default export */ var src_option = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
37275
37487
  name: 'VxeOption',
37276
37488
  props: {
37277
- value: null,
37489
+ value: [String, Number, Boolean],
37278
37490
  label: {
37279
37491
  type: [String, Number, Boolean],
37280
37492
  default: ''
@@ -37286,20 +37498,22 @@ const Optgroup = VxeOptgroup;
37286
37498
  className: [String, Function],
37287
37499
  disabled: Boolean
37288
37500
  },
37501
+ emits: [],
37289
37502
  setup(props, {
37290
37503
  slots
37291
37504
  }) {
37292
37505
  const elem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
37293
37506
  const $xeSelect = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeSelect', {});
37294
- const optGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('xeoptgroup', null);
37295
- const option = createOption($xeSelect, props);
37296
- option.slots = slots;
37297
- watchOption(props, option);
37507
+ const $xeOptgroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeOptgroup', null);
37508
+ const optionConfig = createOption($xeSelect, props);
37509
+ optionConfig.slots = slots;
37510
+ watchOption(props, optionConfig);
37298
37511
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
37299
- assembleOption($xeSelect, elem.value, option, optGroup);
37512
+ const el = elem.value;
37513
+ assembleOption($xeSelect, el, optionConfig, $xeOptgroup);
37300
37514
  });
37301
37515
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
37302
- destroyOption($xeSelect, option);
37516
+ destroyOption($xeSelect, optionConfig);
37303
37517
  });
37304
37518
  return () => {
37305
37519
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -37429,6 +37643,39 @@ const Option = VxeOption;
37429
37643
  const refMaps = {
37430
37644
  refElem
37431
37645
  };
37646
+ const computePageCount = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37647
+ return getPageCount(props.total, props.pageSize);
37648
+ });
37649
+ const computeNumList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37650
+ const {
37651
+ pagerCount
37652
+ } = props;
37653
+ const pageCount = computePageCount.value;
37654
+ const len = pageCount > pagerCount ? pagerCount - 2 : pagerCount;
37655
+ const rest = [];
37656
+ for (let index = 0; index < len; index++) {
37657
+ rest.push(index);
37658
+ }
37659
+ return rest;
37660
+ });
37661
+ const computeOffsetNumber = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37662
+ return Math.floor((props.pagerCount - 2) / 2);
37663
+ });
37664
+ const computeSizeList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37665
+ return props.pageSizes.map(item => {
37666
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(item)) {
37667
+ return {
37668
+ value: item,
37669
+ label: `${i18n_getI18n('vxe.pager.pagesize', [item])}`
37670
+ };
37671
+ }
37672
+ return {
37673
+ value: '',
37674
+ label: '',
37675
+ ...item
37676
+ };
37677
+ });
37678
+ });
37432
37679
  const $xePager = {
37433
37680
  xID,
37434
37681
  props,
@@ -37440,9 +37687,6 @@ const Option = VxeOption;
37440
37687
  const getPageCount = (total, size) => {
37441
37688
  return Math.max(Math.ceil(total / size), 1);
37442
37689
  };
37443
- const computePageCount = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37444
- return getPageCount(props.total, props.pageSize);
37445
- });
37446
37690
  const jumpPageEvent = (evnt, currentPage) => {
37447
37691
  emit('update:currentPage', currentPage);
37448
37692
  if (evnt && currentPage !== props.currentPage) {
@@ -37476,36 +37720,6 @@ const Option = VxeOption;
37476
37720
  reactData.inpCurrPage = currPage;
37477
37721
  changeCurrentPage(current, $event);
37478
37722
  };
37479
- const computeNumList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37480
- const {
37481
- pagerCount
37482
- } = props;
37483
- const pageCount = computePageCount.value;
37484
- const len = pageCount > pagerCount ? pagerCount - 2 : pagerCount;
37485
- const rest = [];
37486
- for (let index = 0; index < len; index++) {
37487
- rest.push(index);
37488
- }
37489
- return rest;
37490
- });
37491
- const computeOffsetNumber = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37492
- return Math.floor((props.pagerCount - 2) / 2);
37493
- });
37494
- const computeSizeList = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
37495
- return props.pageSizes.map(item => {
37496
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(item)) {
37497
- return {
37498
- value: item,
37499
- label: `${i18n_getI18n('vxe.pager.pagesize', [item])}`
37500
- };
37501
- }
37502
- return {
37503
- value: '',
37504
- label: '',
37505
- ...item
37506
- };
37507
- });
37508
- });
37509
37723
  const handleHomePage = evnt => {
37510
37724
  const {
37511
37725
  currentPage
@@ -37695,7 +37909,7 @@ const Option = VxeOption;
37695
37909
  class: 'vxe-pager--num-btn',
37696
37910
  type: 'button',
37697
37911
  onClick: evnt => jumpPageEvent(evnt, 1)
37698
- }, 1), renderPrevJump('span'));
37912
+ }, '1'), renderPrevJump('span'));
37699
37913
  }
37700
37914
  numList.forEach((item, index) => {
37701
37915
  const number = startNumber + index;
@@ -37707,7 +37921,7 @@ const Option = VxeOption;
37707
37921
  }],
37708
37922
  type: 'button',
37709
37923
  onClick: evnt => jumpPageEvent(evnt, number)
37710
- }, number));
37924
+ }, `${number}`));
37711
37925
  }
37712
37926
  });
37713
37927
  if (showJump && isGt) {
@@ -37781,12 +37995,13 @@ const Option = VxeOption;
37781
37995
  class: 'vxe-pager--total'
37782
37996
  }, i18n_getI18n('vxe.pager.total', [props.total]));
37783
37997
  };
37998
+ const dispatchEvent = (type, params, evnt) => {
37999
+ emit(type, createEvent(evnt, {
38000
+ $pager: $xePager
38001
+ }, params));
38002
+ };
37784
38003
  pagerMethods = {
37785
- dispatchEvent(type, params, evnt) {
37786
- emit(type, createEvent(evnt, {
37787
- $pager: $xePager
37788
- }, params));
37789
- },
38004
+ dispatchEvent,
37790
38005
  homePage() {
37791
38006
  handleHomePage();
37792
38007
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
@@ -38047,7 +38262,7 @@ const Pager = VxePager;
38047
38262
  const value = inputElem.value;
38048
38263
  emitInputEvent(value, evnt);
38049
38264
  };
38050
- const emitModel = (value, evnt) => {
38265
+ const handleChange = (value, evnt) => {
38051
38266
  reactData.inputValue = value;
38052
38267
  emit('update:modelValue', value);
38053
38268
  passwordInputMethods.dispatchEvent('input', {
@@ -38105,7 +38320,7 @@ const Pager = VxePager;
38105
38320
  };
38106
38321
  const clearValueEvent = (evnt, value) => {
38107
38322
  focus();
38108
- emitModel('', evnt);
38323
+ handleChange('', evnt);
38109
38324
  passwordInputMethods.dispatchEvent('clear', {
38110
38325
  value
38111
38326
  }, evnt);
@@ -38445,13 +38660,15 @@ function destroyPageBreak($xePageBreak, pageBreakConfig) {
38445
38660
 
38446
38661
 
38447
38662
 
38663
+
38448
38664
  /* harmony default export */ var page_break = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
38449
38665
  name: 'VxePrintPageBreak',
38450
38666
  props: {},
38451
38667
  emits: [],
38452
38668
  setup(props, context) {
38453
38669
  const {
38454
- slots
38670
+ slots,
38671
+ emit
38455
38672
  } = context;
38456
38673
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
38457
38674
  const $xePrint = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xePrint', null);
@@ -38473,6 +38690,16 @@ function destroyPageBreak($xePageBreak, pageBreakConfig) {
38473
38690
  getRefMaps: () => refMaps,
38474
38691
  getComputeMaps: () => computeMaps
38475
38692
  };
38693
+ const dispatchEvent = (type, params, evnt) => {
38694
+ emit(type, createEvent(evnt, {
38695
+ $print: $xePrint
38696
+ }, params));
38697
+ };
38698
+ const printPageBreakMethods = {
38699
+ dispatchEvent
38700
+ };
38701
+ const printPageBreakPrivateMethods = {};
38702
+ Object.assign($xePrintPageBreak, printPageBreakMethods, printPageBreakPrivateMethods);
38476
38703
  if (!$xePrint) {
38477
38704
  $xePrintPageBreak.renderVN = () => {
38478
38705
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
@@ -38484,7 +38711,6 @@ function destroyPageBreak($xePageBreak, pageBreakConfig) {
38484
38711
  ref: refElem
38485
38712
  });
38486
38713
  };
38487
- $xePrintPageBreak.renderVN = renderVN;
38488
38714
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
38489
38715
  const elem = refElem.value;
38490
38716
  if ($xePrint && elem) {
@@ -38496,6 +38722,7 @@ function destroyPageBreak($xePageBreak, pageBreakConfig) {
38496
38722
  destroyPageBreak($xePrint, pageBreakConfig);
38497
38723
  }
38498
38724
  });
38725
+ $xePrintPageBreak.renderVN = renderVN;
38499
38726
  return $xePrintPageBreak;
38500
38727
  },
38501
38728
  render() {
@@ -38582,12 +38809,13 @@ const PrintPageBreak = VxePrintPageBreak;
38582
38809
  getRefMaps: () => refMaps,
38583
38810
  getComputeMaps: () => computeMaps
38584
38811
  };
38812
+ const dispatchEvent = (type, params, evnt) => {
38813
+ emit(type, createEvent(evnt, {
38814
+ $print: $xePrint
38815
+ }, params));
38816
+ };
38585
38817
  const printMethods = {
38586
- dispatchEvent(type, params, evnt) {
38587
- emit(type, createEvent(evnt, {
38588
- $print: $xePrint
38589
- }, params));
38590
- },
38818
+ dispatchEvent,
38591
38819
  print() {
38592
38820
  const elem = refElem.value;
38593
38821
  return printHtml(Object.assign({}, props, {
@@ -38596,7 +38824,8 @@ const PrintPageBreak = VxePrintPageBreak;
38596
38824
  }));
38597
38825
  }
38598
38826
  };
38599
- Object.assign($xePrint, printMethods);
38827
+ const printPrivateMethods = {};
38828
+ Object.assign($xePrint, printMethods, printPrivateMethods);
38600
38829
  const renderPageConfigLayouts = () => {
38601
38830
  const {
38602
38831
  title,
@@ -38768,6 +38997,7 @@ const Print = VxePrint;
38768
38997
  emit
38769
38998
  } = context;
38770
38999
  const $xeModal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeModal', null);
39000
+ const $xeDrawer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeDrawer', null);
38771
39001
  const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', null);
38772
39002
  const $xeForm = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeForm', null);
38773
39003
  const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
@@ -38777,15 +39007,18 @@ const Print = VxePrint;
38777
39007
  const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
38778
39008
  initialized: false,
38779
39009
  panelIndex: 0,
38780
- panelStyle: null,
39010
+ panelStyle: {},
38781
39011
  panelPlacement: null,
38782
39012
  visiblePanel: false,
38783
39013
  visibleAnimate: false,
38784
39014
  isActivated: false
38785
39015
  });
39016
+ const internalData = {
39017
+ hpTimeout: undefined
39018
+ };
38786
39019
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
38787
- const refPulldowContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
38788
- const refPulldowPnanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
39020
+ const refPulldownContent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
39021
+ const refPulldownPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
38789
39022
  const computeBtnTransfer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
38790
39023
  const {
38791
39024
  transfer
@@ -38795,7 +39028,7 @@ const Print = VxePrint;
38795
39028
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(globalTransfer)) {
38796
39029
  return globalTransfer;
38797
39030
  }
38798
- if ($xeTable || $xeModal || $xeForm) {
39031
+ if ($xeTable || $xeModal || $xeDrawer || $xeForm) {
38799
39032
  return true;
38800
39033
  }
38801
39034
  }
@@ -38809,6 +39042,7 @@ const Print = VxePrint;
38809
39042
  props,
38810
39043
  context,
38811
39044
  reactData,
39045
+ internalData,
38812
39046
  getRefMaps: () => refMaps
38813
39047
  };
38814
39048
  let pulldownMethods = {};
@@ -38834,8 +39068,8 @@ const Print = VxePrint;
38834
39068
  } = reactData;
38835
39069
  const btnTransfer = computeBtnTransfer.value;
38836
39070
  if (visiblePanel) {
38837
- const targetElem = refPulldowContent.value;
38838
- const panelElem = refPulldowPnanel.value;
39071
+ const targetElem = refPulldownContent.value;
39072
+ const panelElem = refPulldownPanel.value;
38839
39073
  if (panelElem && targetElem) {
38840
39074
  const targetHeight = targetElem.offsetHeight;
38841
39075
  const targetWidth = targetElem.offsetWidth;
@@ -38905,7 +39139,6 @@ const Print = VxePrint;
38905
39139
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
38906
39140
  });
38907
39141
  };
38908
- let hidePanelTimeout;
38909
39142
  /**
38910
39143
  * 显示下拉面板
38911
39144
  */
@@ -38915,7 +39148,9 @@ const Print = VxePrint;
38915
39148
  }
38916
39149
  return new Promise(resolve => {
38917
39150
  if (!props.disabled) {
38918
- clearTimeout(hidePanelTimeout);
39151
+ if (internalData.hpTimeout) {
39152
+ clearTimeout(internalData.hpTimeout);
39153
+ }
38919
39154
  reactData.isActivated = true;
38920
39155
  reactData.visibleAnimate = true;
38921
39156
  setTimeout(() => {
@@ -38942,7 +39177,7 @@ const Print = VxePrint;
38942
39177
  emit('update:modelValue', false);
38943
39178
  return new Promise(resolve => {
38944
39179
  if (reactData.visibleAnimate) {
38945
- hidePanelTimeout = window.setTimeout(() => {
39180
+ internalData.hpTimeout = window.setTimeout(() => {
38946
39181
  reactData.visibleAnimate = false;
38947
39182
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
38948
39183
  resolve();
@@ -38994,7 +39229,7 @@ const Print = VxePrint;
38994
39229
  const {
38995
39230
  visiblePanel
38996
39231
  } = reactData;
38997
- const panelElem = refPulldowPnanel.value;
39232
+ const panelElem = refPulldownPanel.value;
38998
39233
  if (!disabled) {
38999
39234
  if (visiblePanel) {
39000
39235
  if (getEventTargetNode(evnt, panelElem).flag) {
@@ -39014,7 +39249,7 @@ const Print = VxePrint;
39014
39249
  visiblePanel
39015
39250
  } = reactData;
39016
39251
  const el = refElem.value;
39017
- const panelElem = refPulldowPnanel.value;
39252
+ const panelElem = refPulldownPanel.value;
39018
39253
  if (!disabled) {
39019
39254
  reactData.isActivated = getEventTargetNode(evnt, el).flag || getEventTargetNode(evnt, panelElem).flag;
39020
39255
  if (visiblePanel && !reactData.isActivated) {
@@ -39110,7 +39345,7 @@ const Print = VxePrint;
39110
39345
  'is--active': isActivated
39111
39346
  }]
39112
39347
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
39113
- ref: refPulldowContent,
39348
+ ref: refPulldownContent,
39114
39349
  class: 'vxe-pulldown--content',
39115
39350
  onClick: clickTargetEvent
39116
39351
  }, defaultSlot ? defaultSlot({
@@ -39119,7 +39354,7 @@ const Print = VxePrint;
39119
39354
  to: 'body',
39120
39355
  disabled: btnTransfer ? !initialized : true
39121
39356
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
39122
- ref: refPulldowPnanel,
39357
+ ref: refPulldownPanel,
39123
39358
  class: ['vxe-table--ignore-clear vxe-pulldown--panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
39124
39359
  $pulldown: $xePulldown
39125
39360
  }) : popupClassName : '', {