vxe-pc-ui 4.17.28 → 4.17.30

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 (113) hide show
  1. package/dist/all.esm.js +338 -130
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/drawer/index.js +2 -1
  5. package/es/drawer/src/drawer.js +71 -14
  6. package/es/drawer/src/store.js +1 -0
  7. package/es/drawer/style.css +49 -20
  8. package/es/drawer/style.min.css +1 -1
  9. package/es/icon/style.css +1 -1
  10. package/es/modal/index.js +2 -1
  11. package/es/modal/src/modal.js +64 -26
  12. package/es/modal/src/store.js +1 -0
  13. package/es/modal/style.css +26 -15
  14. package/es/modal/style.min.css +1 -1
  15. package/es/number-input/src/number-input.js +1 -1
  16. package/es/slider/src/slider.js +71 -2
  17. package/es/slider/style.css +1 -0
  18. package/es/slider/style.min.css +1 -1
  19. package/es/space/src/space.js +43 -5
  20. package/es/space/style.css +7 -0
  21. package/es/space/style.min.css +1 -1
  22. package/es/style.css +1 -1
  23. package/es/style.min.css +1 -1
  24. package/es/ui/index.js +7 -2
  25. package/es/ui/src/dom.js +1 -1
  26. package/es/ui/src/log.js +1 -1
  27. package/es/vxe-drawer/style.css +49 -20
  28. package/es/vxe-drawer/style.min.css +1 -1
  29. package/es/vxe-modal/style.css +26 -15
  30. package/es/vxe-modal/style.min.css +1 -1
  31. package/es/vxe-slider/style.css +1 -0
  32. package/es/vxe-slider/style.min.css +1 -1
  33. package/es/vxe-space/style.css +7 -0
  34. package/es/vxe-space/style.min.css +1 -1
  35. package/lib/drawer/index.js +5 -5
  36. package/lib/drawer/index.min.js +1 -1
  37. package/lib/drawer/src/drawer.js +79 -20
  38. package/lib/drawer/src/drawer.min.js +1 -1
  39. package/lib/drawer/src/store.js +7 -0
  40. package/lib/drawer/src/store.min.js +1 -0
  41. package/lib/drawer/style/style.css +49 -20
  42. package/lib/drawer/style/style.min.css +1 -1
  43. package/lib/icon/style/style.css +1 -1
  44. package/lib/icon/style/style.min.css +1 -1
  45. package/lib/index.umd.js +287 -49
  46. package/lib/index.umd.min.js +1 -1
  47. package/lib/modal/index.js +5 -5
  48. package/lib/modal/index.min.js +1 -1
  49. package/lib/modal/src/modal.js +69 -33
  50. package/lib/modal/src/modal.min.js +1 -1
  51. package/lib/modal/src/store.js +7 -0
  52. package/lib/modal/src/store.min.js +1 -0
  53. package/lib/modal/style/style.css +26 -15
  54. package/lib/modal/style/style.min.css +1 -1
  55. package/lib/number-input/src/number-input.js +1 -1
  56. package/lib/number-input/src/number-input.min.js +1 -1
  57. package/lib/slider/src/slider.js +82 -1
  58. package/lib/slider/src/slider.min.js +1 -1
  59. package/lib/slider/style/style.css +1 -0
  60. package/lib/slider/style/style.min.css +1 -1
  61. package/lib/space/src/space.js +51 -5
  62. package/lib/space/src/space.min.js +1 -1
  63. package/lib/space/style/style.css +7 -0
  64. package/lib/space/style/style.min.css +1 -1
  65. package/lib/style.css +1 -1
  66. package/lib/style.min.css +1 -1
  67. package/lib/ui/index.js +7 -2
  68. package/lib/ui/index.min.js +1 -1
  69. package/lib/ui/src/dom.js +1 -1
  70. package/lib/ui/src/dom.min.js +1 -1
  71. package/lib/ui/src/log.js +1 -1
  72. package/lib/ui/src/log.min.js +1 -1
  73. package/lib/vxe-drawer/style/style.css +49 -20
  74. package/lib/vxe-drawer/style/style.min.css +1 -1
  75. package/lib/vxe-modal/style/style.css +26 -15
  76. package/lib/vxe-modal/style/style.min.css +1 -1
  77. package/lib/vxe-slider/style/style.css +1 -0
  78. package/lib/vxe-slider/style/style.min.css +1 -1
  79. package/lib/vxe-space/style/style.css +7 -0
  80. package/lib/vxe-space/style/style.min.css +1 -1
  81. package/package.json +1 -1
  82. package/packages/drawer/index.ts +2 -1
  83. package/packages/drawer/src/drawer.ts +71 -15
  84. package/packages/drawer/src/store.ts +3 -0
  85. package/packages/modal/index.ts +2 -1
  86. package/packages/modal/src/modal.ts +67 -27
  87. package/packages/modal/src/store.ts +3 -0
  88. package/packages/number-input/src/number-input.ts +1 -1
  89. package/packages/slider/src/slider.ts +78 -2
  90. package/packages/space/src/space.ts +43 -5
  91. package/packages/ui/index.ts +6 -1
  92. package/packages/ui/src/dom.ts +1 -1
  93. package/styles/components/drawer.scss +55 -16
  94. package/styles/components/modal.scss +25 -11
  95. package/styles/components/slider.scss +1 -0
  96. package/styles/components/space.scss +9 -0
  97. package/types/components/drawer.d.ts +9 -0
  98. package/types/components/modal.d.ts +2 -1
  99. package/types/components/number-input.d.ts +1 -1
  100. package/types/components/slider.d.ts +12 -0
  101. package/types/components/space.d.ts +10 -0
  102. /package/es/icon/{iconfont.1788399096135.ttf → iconfont.1788500786360.ttf} +0 -0
  103. /package/es/icon/{iconfont.1788399096135.woff → iconfont.1788500786360.woff} +0 -0
  104. /package/es/icon/{iconfont.1788399096135.woff2 → iconfont.1788500786360.woff2} +0 -0
  105. /package/es/{iconfont.1788399096135.ttf → iconfont.1788500786360.ttf} +0 -0
  106. /package/es/{iconfont.1788399096135.woff → iconfont.1788500786360.woff} +0 -0
  107. /package/es/{iconfont.1788399096135.woff2 → iconfont.1788500786360.woff2} +0 -0
  108. /package/lib/icon/style/{iconfont.1788399096135.ttf → iconfont.1788500786360.ttf} +0 -0
  109. /package/lib/icon/style/{iconfont.1788399096135.woff → iconfont.1788500786360.woff} +0 -0
  110. /package/lib/icon/style/{iconfont.1788399096135.woff2 → iconfont.1788500786360.woff2} +0 -0
  111. /package/lib/{iconfont.1788399096135.ttf → iconfont.1788500786360.ttf} +0 -0
  112. /package/lib/{iconfont.1788399096135.woff → iconfont.1788500786360.woff} +0 -0
  113. /package/lib/{iconfont.1788399096135.woff2 → iconfont.1788500786360.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -101,7 +101,7 @@ function checkDynamic() {
101
101
  }
102
102
 
103
103
  const { log } = VxeUI;
104
- const uiVersion = `ui v${"4.17.28"}`;
104
+ const uiVersion = `ui v${"4.17.30"}`;
105
105
  function createComponentLog(name) {
106
106
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
107
107
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -115,7 +115,7 @@ function createComponentLog(name) {
115
115
  const warnLog$i = log.create('warn', uiVersion);
116
116
  log.create('error', uiVersion);
117
117
 
118
- const version = "4.17.28";
118
+ const version = "4.17.30";
119
119
  VxeUI.uiVersion = version;
120
120
  VxeUI.dynamicApp = dynamicApp;
121
121
  function config(options) {
@@ -251,6 +251,8 @@ setConfig$1({
251
251
  drawer: {
252
252
  // size: null,
253
253
  // useHtml: false,
254
+ minWidth: 40,
255
+ minHeight: 40,
254
256
  position: 'right',
255
257
  showHeader: true,
256
258
  // showTitleBackground: false,
@@ -493,7 +495,10 @@ setConfig$1({
493
495
  splitterPanel: {},
494
496
  slider: {
495
497
  max: 100,
496
- min: 0
498
+ min: 0,
499
+ tooltipConfig: {
500
+ enterDelay: 0
501
+ }
497
502
  },
498
503
  space: {},
499
504
  steps: {},
@@ -2035,7 +2040,7 @@ function updatePanelPlacement(targetElem, panelElem, options) {
2035
2040
  const targetTop = targetRect.top;
2036
2041
  minWidth = targetElem.offsetWidth;
2037
2042
  if (teleportTo) {
2038
- left = defaultLeft || (targetLeft);
2043
+ left = defaultLeft || (targetLeft - (panelWidth - targetWidth) / 2);
2039
2044
  top = defaultTop || (targetTop + targetHeight);
2040
2045
  if (placement === 'top') {
2041
2046
  panelPlacement = 'top';
@@ -2673,7 +2678,7 @@ function deModelValue(nodeid) {
2673
2678
  return nodeid ? decodeURIComponent(`${nodeid}`) : nodeid;
2674
2679
  }
2675
2680
 
2676
- function createReactData$n() {
2681
+ function createReactData$o() {
2677
2682
  return {
2678
2683
  target: null,
2679
2684
  isUpdate: false,
@@ -2690,7 +2695,7 @@ function createReactData$n() {
2690
2695
  }
2691
2696
  };
2692
2697
  }
2693
- function createInternalData$m() {
2698
+ function createInternalData$n() {
2694
2699
  return {
2695
2700
  // showDelayTip: undefined
2696
2701
  };
@@ -2789,8 +2794,8 @@ var VxeTooltipComponent = defineVxeComponent({
2789
2794
  const { slots, emit } = context;
2790
2795
  const xID = XEUtils.uniqueId();
2791
2796
  const { computeSize } = useSize(props);
2792
- const reactData = reactive(createReactData$n());
2793
- const internalData = createInternalData$m();
2797
+ const reactData = reactive(createReactData$o());
2798
+ const internalData = createInternalData$n();
2794
2799
  const refElem = ref();
2795
2800
  const contentWrapperfElem = ref();
2796
2801
  const computeWrapperStyle = computed(() => {
@@ -3193,8 +3198,8 @@ var VxeTooltipComponent = defineVxeComponent({
3193
3198
  }
3194
3199
  globalEvents.off($xeTooltip, 'blur');
3195
3200
  globalEvents.off($xeTooltip, 'scroll');
3196
- XEUtils.assign(reactData, createReactData$n());
3197
- XEUtils.assign(internalData, createInternalData$m());
3201
+ XEUtils.assign(reactData, createReactData$o());
3202
+ XEUtils.assign(internalData, createInternalData$n());
3198
3203
  });
3199
3204
  $xeTooltip.renderVN = renderVN;
3200
3205
  return $xeTooltip;
@@ -4016,12 +4021,12 @@ VxeUI.component(VxeButtonComponent);
4016
4021
  const Button = VxeButton;
4017
4022
 
4018
4023
  const { errLog: errLog$k } = createComponentLog('backtop');
4019
- function createInternalData$l() {
4024
+ function createInternalData$m() {
4020
4025
  return {
4021
4026
  targetEl: null
4022
4027
  };
4023
4028
  }
4024
- function createReactData$m() {
4029
+ function createReactData$n() {
4025
4030
  return {
4026
4031
  showBtn: false,
4027
4032
  backtopZindex: 0
@@ -4100,8 +4105,8 @@ var VxeBacktopComponent = defineVxeComponent({
4100
4105
  const xID = XEUtils.uniqueId();
4101
4106
  const refElem = ref();
4102
4107
  const { computeSize } = useSize(props);
4103
- const internalData = createInternalData$l();
4104
- const reactData = reactive(createReactData$m());
4108
+ const internalData = createInternalData$m();
4109
+ const reactData = reactive(createReactData$n());
4105
4110
  const refMaps = {
4106
4111
  refElem
4107
4112
  };
@@ -4275,8 +4280,8 @@ var VxeBacktopComponent = defineVxeComponent({
4275
4280
  });
4276
4281
  onBeforeUnmount(() => {
4277
4282
  removeScrollEvent();
4278
- XEUtils.assign(reactData, createReactData$m());
4279
- XEUtils.assign(internalData, createInternalData$l());
4283
+ XEUtils.assign(reactData, createReactData$n());
4284
+ XEUtils.assign(internalData, createInternalData$m());
4280
4285
  });
4281
4286
  $xeBacktop.renderVN = renderVN;
4282
4287
  return $xeBacktop;
@@ -7035,7 +7040,7 @@ function getRowIdByField(row, keyField) {
7035
7040
  const rowKey = getRowKeyByField(row, keyField);
7036
7041
  return enModelValue(rowKey);
7037
7042
  }
7038
- function createReactData$l() {
7043
+ function createReactData$m() {
7039
7044
  return {
7040
7045
  scrollYLoad: false,
7041
7046
  bodyHeight: 0,
@@ -7058,7 +7063,7 @@ function createReactData$l() {
7058
7063
  isCrossDragRow: false
7059
7064
  };
7060
7065
  }
7061
- function createInternalData$k() {
7066
+ function createInternalData$l() {
7062
7067
  return {
7063
7068
  resizeObserver: undefined,
7064
7069
  fullData: [],
@@ -7145,8 +7150,8 @@ var VxeListComponent = defineVxeComponent({
7145
7150
  const xID = XEUtils.uniqueId();
7146
7151
  const browseObj = XEUtils.browse();
7147
7152
  const { computeSize } = useSize(props);
7148
- const reactData = reactive(createReactData$l());
7149
- const internalData = createInternalData$k();
7153
+ const reactData = reactive(createReactData$m());
7154
+ const internalData = createInternalData$l();
7150
7155
  const crossListDragRowInfo = getCrossListDragRowInfo();
7151
7156
  const refElem = ref();
7152
7157
  const refHeaderElem = ref();
@@ -9109,8 +9114,8 @@ var VxeListComponent = defineVxeComponent({
9109
9114
  resizeObserver.disconnect();
9110
9115
  }
9111
9116
  globalEvents.off($xeList, 'resize');
9112
- XEUtils.assign(reactData, createReactData$l());
9113
- XEUtils.assign(internalData, createInternalData$k());
9117
+ XEUtils.assign(reactData, createReactData$m());
9118
+ XEUtils.assign(internalData, createInternalData$l());
9114
9119
  });
9115
9120
  $xeList.renderVN = renderVN;
9116
9121
  return $xeList;
@@ -11901,7 +11906,7 @@ const Input = VxeInput;
11901
11906
  function getNodeUniqueId$1() {
11902
11907
  return XEUtils.uniqueId('node_');
11903
11908
  }
11904
- function createReactData$k() {
11909
+ function createReactData$l() {
11905
11910
  return {
11906
11911
  initialized: false,
11907
11912
  searchValue: '',
@@ -11924,7 +11929,7 @@ function createReactData$k() {
11924
11929
  lazyOptFlag: 1
11925
11930
  };
11926
11931
  }
11927
- function createInternalData$j() {
11932
+ function createInternalData$k() {
11928
11933
  return {
11929
11934
  // hpTimeout: undefined,
11930
11935
  listVirtualYOpts: {
@@ -12052,8 +12057,8 @@ var VxeCascaderComponent = defineVxeComponent({
12052
12057
  const refInpSearch = ref();
12053
12058
  const refChunkWrapper = ref();
12054
12059
  const refOptionPanel = ref();
12055
- const reactData = reactive(createReactData$k());
12056
- const internalData = createInternalData$j();
12060
+ const reactData = reactive(createReactData$l());
12061
+ const internalData = createInternalData$k();
12057
12062
  const refMaps = {
12058
12063
  refElem
12059
12064
  };
@@ -13663,8 +13668,8 @@ var VxeCascaderComponent = defineVxeComponent({
13663
13668
  globalEvents.off($xeCascader, 'mousedown');
13664
13669
  globalEvents.off($xeCascader, 'blur');
13665
13670
  globalEvents.off($xeCascader, 'resize');
13666
- XEUtils.assign(reactData, createReactData$k());
13667
- XEUtils.assign(internalData, createInternalData$j());
13671
+ XEUtils.assign(reactData, createReactData$l());
13672
+ XEUtils.assign(internalData, createInternalData$k());
13668
13673
  });
13669
13674
  provide('$xeCascader', $xeCascader);
13670
13675
  $xeCascader.renderVN = renderVN;
@@ -14068,10 +14073,10 @@ dynamicApp.use(VxeCheckboxButton);
14068
14073
  VxeUI.component(VxeCheckboxButtonComponent);
14069
14074
  const CheckboxButton = VxeCheckboxButton;
14070
14075
 
14071
- function createReactData$j() {
14076
+ function createReactData$k() {
14072
14077
  return {};
14073
14078
  }
14074
- function createInternalData$i() {
14079
+ function createInternalData$j() {
14075
14080
  return {
14076
14081
  // isLoaded: false
14077
14082
  };
@@ -14115,8 +14120,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
14115
14120
  const $xeForm = inject('$xeForm', null);
14116
14121
  const formItemInfo = inject('xeFormItemInfo', null);
14117
14122
  const xID = XEUtils.uniqueId();
14118
- const reactData = reactive(createReactData$j());
14119
- const internalData = createInternalData$i();
14123
+ const reactData = reactive(createReactData$k());
14124
+ const internalData = createInternalData$j();
14120
14125
  const computeIsReadonly = computed(() => {
14121
14126
  const { readonly } = props;
14122
14127
  if (readonly === null) {
@@ -14289,8 +14294,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
14289
14294
  });
14290
14295
  });
14291
14296
  onUnmounted(() => {
14292
- XEUtils.assign(reactData, createReactData$j());
14293
- XEUtils.assign(internalData, createInternalData$i());
14297
+ XEUtils.assign(reactData, createReactData$k());
14298
+ XEUtils.assign(internalData, createInternalData$j());
14294
14299
  });
14295
14300
  provide('$xeCheckboxGroup', $xeCheckboxGroup);
14296
14301
  $xeCheckboxGroup.renderVN = renderVN;
@@ -14423,7 +14428,7 @@ dynamicApp.use(VxeCol);
14423
14428
  VxeUI.component(VxeColComponent);
14424
14429
  const Col = VxeCol;
14425
14430
 
14426
- function createReactData$i() {
14431
+ function createReactData$j() {
14427
14432
  return {
14428
14433
  staticPanes: [],
14429
14434
  cachePaneMaps: {},
@@ -14431,7 +14436,7 @@ function createReactData$i() {
14431
14436
  openKeyFlag: 0
14432
14437
  };
14433
14438
  }
14434
- function createInternalData$h() {
14439
+ function createInternalData$i() {
14435
14440
  return {
14436
14441
  // esTime: null,
14437
14442
  activeKeyMaps: {},
@@ -14468,8 +14473,8 @@ var VxeCollapseComponent = defineVxeComponent({
14468
14473
  const xID = XEUtils.uniqueId();
14469
14474
  const { computeSize } = useSize(props);
14470
14475
  const refElem = ref();
14471
- const reactData = reactive(createReactData$i());
14472
- const internalData = createInternalData$h();
14476
+ const reactData = reactive(createReactData$j());
14477
+ const internalData = createInternalData$i();
14473
14478
  const refMaps = {
14474
14479
  refElem
14475
14480
  };
@@ -14748,8 +14753,8 @@ var VxeCollapseComponent = defineVxeComponent({
14748
14753
  if (esTime) {
14749
14754
  clearTimeout(esTime);
14750
14755
  }
14751
- XEUtils.assign(reactData, createReactData$i());
14752
- XEUtils.assign(internalData, createInternalData$h());
14756
+ XEUtils.assign(reactData, createReactData$j());
14757
+ XEUtils.assign(internalData, createInternalData$i());
14753
14758
  });
14754
14759
  provide('$xeCollapse', $xeCollapse);
14755
14760
  $xeCollapse.renderVN = renderVN;
@@ -15918,7 +15923,7 @@ var VxeNumberInputComponent = defineVxeComponent({
15918
15923
  const inputElem = refInputTarget.value;
15919
15924
  const content = getText(contentMethod
15920
15925
  ? contentMethod({
15921
- $mumberInput: $xeNumberInput,
15926
+ $numberInput: $xeNumberInput,
15922
15927
  type,
15923
15928
  inputValue: inputElem.value,
15924
15929
  value: inputValue || '',
@@ -17510,12 +17515,12 @@ VxeUI.color = {
17510
17515
  };
17511
17516
  const ColorPicker = VxeColorPicker;
17512
17517
 
17513
- function createInternalData$g() {
17518
+ function createInternalData$h() {
17514
17519
  return {
17515
17520
  // leaveTime: null
17516
17521
  };
17517
17522
  }
17518
- function createReactData$h() {
17523
+ function createReactData$i() {
17519
17524
  return {
17520
17525
  visible: false,
17521
17526
  activeOption: null,
@@ -17570,8 +17575,8 @@ var VxeContextMenuComponent = defineVxeComponent({
17570
17575
  const xID = XEUtils.uniqueId();
17571
17576
  const refElem = ref();
17572
17577
  const { computeSize } = useSize(props);
17573
- const internalData = createInternalData$g();
17574
- const reactData = reactive(createReactData$h());
17578
+ const internalData = createInternalData$h();
17579
+ const reactData = reactive(createReactData$i());
17575
17580
  const refMaps = {
17576
17581
  refElem
17577
17582
  };
@@ -18126,8 +18131,8 @@ var VxeContextMenuComponent = defineVxeComponent({
18126
18131
  globalEvents.off($xeContextMenu, 'keydown');
18127
18132
  globalEvents.off($xeContextMenu, 'mousedown');
18128
18133
  globalEvents.off($xeContextMenu, 'blur');
18129
- XEUtils.assign(reactData, createReactData$h());
18130
- XEUtils.assign(internalData, createInternalData$g());
18134
+ XEUtils.assign(reactData, createReactData$i());
18135
+ XEUtils.assign(internalData, createInternalData$h());
18131
18136
  });
18132
18137
  $xeContextMenu.renderVN = renderVN;
18133
18138
  return $xeContextMenu;
@@ -20445,7 +20450,7 @@ const parseInputKayMaps = {};
20445
20450
  inputMaskedKeys.forEach(key => {
20446
20451
  parseInputKayMaps[key] = true;
20447
20452
  });
20448
- function createReactData$g() {
20453
+ function createReactData$h() {
20449
20454
  return {
20450
20455
  initialized: false,
20451
20456
  panelIndex: 0,
@@ -20458,7 +20463,7 @@ function createReactData$g() {
20458
20463
  labelFlag: 0
20459
20464
  };
20460
20465
  }
20461
- function createInternalData$f() {
20466
+ function createInternalData$g() {
20462
20467
  return {
20463
20468
  // hpTimeout: undefined,
20464
20469
  // fsTimeout: undefined,
@@ -20603,8 +20608,8 @@ var VxeDatePickerComponent = defineVxeComponent({
20603
20608
  const formItemInfo = inject('xeFormItemInfo', null);
20604
20609
  const xID = XEUtils.uniqueId();
20605
20610
  const { computeSize } = useSize(props);
20606
- const reactData = reactive(createReactData$g());
20607
- const internalData = createInternalData$f();
20611
+ const reactData = reactive(createReactData$h());
20612
+ const internalData = createInternalData$g();
20608
20613
  const refElem = ref();
20609
20614
  const refInputTarget = ref();
20610
20615
  const refInputPanel = ref();
@@ -22040,8 +22045,8 @@ var VxeDatePickerComponent = defineVxeComponent({
22040
22045
  globalEvents.off($xeDatePicker, 'keydown');
22041
22046
  globalEvents.off($xeDatePicker, 'blur');
22042
22047
  globalEvents.off($xeDatePicker, 'resize');
22043
- XEUtils.assign(reactData, createReactData$g());
22044
- XEUtils.assign(internalData, createInternalData$f());
22048
+ XEUtils.assign(reactData, createReactData$h());
22049
+ XEUtils.assign(internalData, createInternalData$g());
22045
22050
  });
22046
22051
  provide('$xeDatePicker', $xeDatePicker);
22047
22052
  $xeDatePicker.renderVN = renderVN;
@@ -22062,7 +22067,7 @@ VxeUI.component(VxeDatePickerComponent);
22062
22067
  const DatePicker = VxeDatePicker;
22063
22068
 
22064
22069
  const { errLog: errLog$e } = createComponentLog('date-range-picker');
22065
- function createReactData$f() {
22070
+ function createReactData$g() {
22066
22071
  return {
22067
22072
  initialized: false,
22068
22073
  panelIndex: 0,
@@ -22077,7 +22082,7 @@ function createReactData$f() {
22077
22082
  paneEndVal: []
22078
22083
  };
22079
22084
  }
22080
- function createInternalData$e() {
22085
+ function createInternalData$f() {
22081
22086
  return {
22082
22087
  // selectStatus: false
22083
22088
  // hpTimeout: undefined
@@ -22224,8 +22229,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
22224
22229
  const formItemInfo = inject('xeFormItemInfo', null);
22225
22230
  const xID = XEUtils.uniqueId();
22226
22231
  const { computeSize } = useSize(props);
22227
- const reactData = reactive(createReactData$f());
22228
- const internalData = createInternalData$e();
22232
+ const reactData = reactive(createReactData$g());
22233
+ const internalData = createInternalData$f();
22229
22234
  const refElem = ref();
22230
22235
  const refInputTarget = ref();
22231
22236
  const refInputPanel = ref();
@@ -23551,8 +23556,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
23551
23556
  globalEvents.off($xeDateRangePicker, 'mousedown');
23552
23557
  globalEvents.off($xeDateRangePicker, 'blur');
23553
23558
  globalEvents.off($xeDateRangePicker, 'resize');
23554
- XEUtils.assign(reactData, createReactData$f());
23555
- XEUtils.assign(internalData, createInternalData$e());
23559
+ XEUtils.assign(reactData, createReactData$g());
23560
+ XEUtils.assign(internalData, createInternalData$f());
23556
23561
  });
23557
23562
  provide('$xeDateRangePicker', $xeDateRangePicker);
23558
23563
  $xeDateRangePicker.renderVN = renderVN;
@@ -23572,6 +23577,8 @@ dynamicApp.use(VxeDateRangePicker);
23572
23577
  VxeUI.component(VxeDateRangePickerComponent);
23573
23578
  const DateRangePicker = VxeDateRangePicker;
23574
23579
 
23580
+ const allActiveDrawers = [];
23581
+
23575
23582
  const VxeLoading = Object.assign({}, VxeLoadingComponent, {
23576
23583
  install(app) {
23577
23584
  app.component(VxeLoadingComponent.name, VxeLoadingComponent);
@@ -23598,7 +23605,6 @@ VxeUI.component(VxeLoadingComponent);
23598
23605
  VxeUI.loading = LoadingController;
23599
23606
  const Loading = VxeLoading;
23600
23607
 
23601
- const allActiveDrawers = [];
23602
23608
  var VxeDrawerComponent = defineVxeComponent({
23603
23609
  name: 'VxeDrawer',
23604
23610
  props: {
@@ -23681,8 +23687,22 @@ var VxeDrawerComponent = defineVxeComponent({
23681
23687
  default: () => getConfig$3().drawer.showTitleOverflow
23682
23688
  },
23683
23689
  preload: Boolean,
23684
- width: [Number, String],
23685
- height: [Number, String],
23690
+ width: {
23691
+ type: [Number, String],
23692
+ default: () => getConfig$3().drawer.width
23693
+ },
23694
+ height: {
23695
+ type: [Number, String],
23696
+ default: () => getConfig$3().drawer.height
23697
+ },
23698
+ minWidth: {
23699
+ type: [Number, String],
23700
+ default: () => getConfig$3().drawer.minWidth
23701
+ },
23702
+ minHeight: {
23703
+ type: [Number, String],
23704
+ default: () => getConfig$3().drawer.minHeight
23705
+ },
23686
23706
  resize: {
23687
23707
  type: Boolean,
23688
23708
  default: () => getConfig$3().drawer.resize
@@ -23704,6 +23724,10 @@ var VxeDrawerComponent = defineVxeComponent({
23704
23724
  type: [String, Function],
23705
23725
  default: () => getConfig$3().drawer.appendTo
23706
23726
  },
23727
+ isWithinAppendTo: {
23728
+ type: Boolean,
23729
+ default: () => getConfig$3().drawer.isWithinAppendTo
23730
+ },
23707
23731
  padding: {
23708
23732
  type: Boolean,
23709
23733
  default: () => getConfig$3().drawer.padding
@@ -23788,11 +23812,12 @@ var VxeDrawerComponent = defineVxeComponent({
23788
23812
  return boxElem;
23789
23813
  };
23790
23814
  const recalculate = () => {
23791
- const { width, height } = props;
23815
+ const { position, width, height } = props;
23792
23816
  const boxElem = getBox();
23793
23817
  if (boxElem) {
23794
- boxElem.style.width = toCssUnit(width);
23795
- boxElem.style.height = toCssUnit(height);
23818
+ const isTb = position === 'top' || position === 'bottom';
23819
+ boxElem.style.height = isTb ? toCssUnit(height) : '';
23820
+ boxElem.style.width = isTb ? '' : toCssUnit(width);
23796
23821
  }
23797
23822
  return nextTick();
23798
23823
  };
@@ -23818,6 +23843,10 @@ var VxeDrawerComponent = defineVxeComponent({
23818
23843
  if (visible) {
23819
23844
  Promise.resolve(beforeHideMethod ? beforeHideMethod(params) : null).then((rest) => {
23820
23845
  if (!XEUtils.isError(rest)) {
23846
+ const el = refElem.value;
23847
+ if (el) {
23848
+ el.setAttribute('data-effect', 'y');
23849
+ }
23821
23850
  reactData.contentVisible = false;
23822
23851
  removeActiveQueue();
23823
23852
  dispatchEvent('before-hide', params, null);
@@ -23826,6 +23855,12 @@ var VxeDrawerComponent = defineVxeComponent({
23826
23855
  emit('update:modelValue', false);
23827
23856
  dispatchEvent('hide', params, null);
23828
23857
  }, 200);
23858
+ setTimeout(() => {
23859
+ const el = refElem.value;
23860
+ if (el) {
23861
+ el.removeAttribute('data-effect');
23862
+ }
23863
+ }, 350);
23829
23864
  }
23830
23865
  }).catch(e => e);
23831
23866
  }
@@ -23863,6 +23898,12 @@ var VxeDrawerComponent = defineVxeComponent({
23863
23898
  reactData.contentVisible = false;
23864
23899
  updateZindex();
23865
23900
  allActiveDrawers.push($xeDrawer);
23901
+ nextTick(() => {
23902
+ const el = refElem.value;
23903
+ if (el) {
23904
+ el.setAttribute('data-effect', 'y');
23905
+ }
23906
+ });
23866
23907
  setTimeout(() => {
23867
23908
  recalculate();
23868
23909
  reactData.contentVisible = true;
@@ -23881,6 +23922,12 @@ var VxeDrawerComponent = defineVxeComponent({
23881
23922
  dispatchEvent('show', params, null);
23882
23923
  });
23883
23924
  }, 10);
23925
+ setTimeout(() => {
23926
+ const el = refElem.value;
23927
+ if (el) {
23928
+ el.removeAttribute('data-effect');
23929
+ }
23930
+ }, 350);
23884
23931
  }
23885
23932
  return nextTick();
23886
23933
  };
@@ -23926,12 +23973,19 @@ var VxeDrawerComponent = defineVxeComponent({
23926
23973
  };
23927
23974
  const dragEvent = (evnt) => {
23928
23975
  evnt.preventDefault();
23929
- const { visibleHeight, visibleWidth } = getDomNode();
23976
+ const { resize, isWithinAppendTo } = props;
23977
+ const el = refElem.value;
23978
+ const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
23979
+ if (!parentWrapperEl) {
23980
+ return;
23981
+ }
23982
+ const visibleWidth = parentWrapperEl.clientWidth - (resize && isWithinAppendTo ? 8 : 0);
23983
+ const visibleHeight = parentWrapperEl.clientHeight - (resize && isWithinAppendTo ? 8 : 0);
23930
23984
  const marginSize = 0;
23931
23985
  const targetElem = evnt.target;
23932
23986
  const type = targetElem.getAttribute('type');
23933
- const minWidth = 0;
23934
- const minHeight = 0;
23987
+ const minWidth = XEUtils.toNumber(props.minWidth);
23988
+ const minHeight = XEUtils.toNumber(props.minHeight);
23935
23989
  const maxWidth = visibleWidth;
23936
23990
  const maxHeight = visibleHeight;
23937
23991
  const boxElem = getBox();
@@ -24126,7 +24180,7 @@ var VxeDrawerComponent = defineVxeComponent({
24126
24180
  return renderEmptyElement($xeDrawer);
24127
24181
  };
24128
24182
  const renderVN = () => {
24129
- const { border, showTitleBackground, slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, resize, appendTo, destroyOnClose } = props;
24183
+ const { border, showTitleBackground, slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, resize, appendTo, destroyOnClose, isWithinAppendTo } = props;
24130
24184
  const { initialized, contentVisible, visible } = reactData;
24131
24185
  const asideSlot = slots.aside || propSlots.aside;
24132
24186
  const vSize = computeSize.value;
@@ -24138,7 +24192,7 @@ var VxeDrawerComponent = defineVxeComponent({
24138
24192
  }, [
24139
24193
  h('div', {
24140
24194
  ref: refElem,
24141
- class: ['vxe-drawer--wrapper', `pos--${position}`, className || '', {
24195
+ class: ['vxe-drawer--wrapper', `pos--${position}`, isWithinAppendTo ? 'ctx--within' : 'ctx--free', className || '', {
24142
24196
  [`size--${vSize}`]: vSize,
24143
24197
  'is--padding': padding,
24144
24198
  'is--border': border,
@@ -24190,8 +24244,17 @@ var VxeDrawerComponent = defineVxeComponent({
24190
24244
  ])
24191
24245
  ]);
24192
24246
  };
24193
- watch(() => props.width, recalculate);
24194
- watch(() => props.height, recalculate);
24247
+ const reFlag = ref(0);
24248
+ watch(() => props.width, () => {
24249
+ reFlag.value++;
24250
+ });
24251
+ watch(() => props.height, () => {
24252
+ reFlag.value++;
24253
+ });
24254
+ watch(() => props.position, () => {
24255
+ reFlag.value++;
24256
+ });
24257
+ watch(reFlag, recalculate);
24195
24258
  watch(() => props.modelValue, (value) => {
24196
24259
  if (value) {
24197
24260
  openDrawer();
@@ -25762,7 +25825,7 @@ function checkRuleStatus(rule, data, val) {
25762
25825
  }
25763
25826
  return true;
25764
25827
  }
25765
- function createReactData$e() {
25828
+ function createReactData$f() {
25766
25829
  return {
25767
25830
  collapseAll: false,
25768
25831
  staticItems: [],
@@ -25770,7 +25833,7 @@ function createReactData$e() {
25770
25833
  itemWidth: 0
25771
25834
  };
25772
25835
  }
25773
- function createInternalData$d() {
25836
+ function createInternalData$e() {
25774
25837
  return {
25775
25838
  meTimeout: undefined,
25776
25839
  stTimeout: undefined,
@@ -25879,8 +25942,8 @@ var VxeFormComponent = defineVxeComponent({
25879
25942
  const $xeGrid = inject('$xeGrid', null);
25880
25943
  const xID = XEUtils.uniqueId();
25881
25944
  const { computeSize } = useSize(props);
25882
- const reactData = reactive(createReactData$e());
25883
- const internalData = createInternalData$d();
25945
+ const reactData = reactive(createReactData$f());
25946
+ const internalData = createInternalData$e();
25884
25947
  const refElem = ref();
25885
25948
  const refTooltip = ref();
25886
25949
  let formMethods = {};
@@ -26589,8 +26652,8 @@ var VxeFormComponent = defineVxeComponent({
26589
26652
  });
26590
26653
  onUnmounted(() => {
26591
26654
  globalEvents.off($xeForm, 'resize');
26592
- XEUtils.assign(reactData, createReactData$e());
26593
- XEUtils.assign(internalData, createInternalData$d());
26655
+ XEUtils.assign(reactData, createReactData$f());
26656
+ XEUtils.assign(internalData, createInternalData$e());
26594
26657
  });
26595
26658
  reactData.collapseAll = !!props.collapseStatus;
26596
26659
  if (props.items) {
@@ -26717,7 +26780,7 @@ dynamicApp.use(VxeFormItem);
26717
26780
  VxeUI.component(VxeFormItemComponent);
26718
26781
  const FormItem = VxeFormItem;
26719
26782
 
26720
- function createReactData$d() {
26783
+ function createReactData$e() {
26721
26784
  return {
26722
26785
  initialized: false,
26723
26786
  selectIcon: '',
@@ -26731,7 +26794,7 @@ function createReactData$d() {
26731
26794
  iconList: []
26732
26795
  };
26733
26796
  }
26734
- function createInternalData$c() {
26797
+ function createInternalData$d() {
26735
26798
  return {
26736
26799
  fullList: []
26737
26800
  // hpTimeout: undefined
@@ -26793,8 +26856,8 @@ var VxeIconPickerComponent = defineVxeComponent({
26793
26856
  const formItemInfo = inject('xeFormItemInfo', null);
26794
26857
  const xID = XEUtils.uniqueId();
26795
26858
  const { computeSize } = useSize(props);
26796
- const reactData = reactive(createReactData$d());
26797
- const internalData = createInternalData$c();
26859
+ const reactData = reactive(createReactData$e());
26860
+ const internalData = createInternalData$d();
26798
26861
  const refElem = ref();
26799
26862
  const refInput = ref();
26800
26863
  const refOptionPanel = ref();
@@ -27394,8 +27457,8 @@ var VxeIconPickerComponent = defineVxeComponent({
27394
27457
  globalEvents.off($xeIconPicker, 'mousedown');
27395
27458
  globalEvents.off($xeIconPicker, 'keydown');
27396
27459
  globalEvents.off($xeIconPicker, 'blur');
27397
- XEUtils.assign(reactData, createReactData$d());
27398
- XEUtils.assign(internalData, createInternalData$c());
27460
+ XEUtils.assign(reactData, createReactData$e());
27461
+ XEUtils.assign(internalData, createInternalData$d());
27399
27462
  });
27400
27463
  provide('$xeIconPicker', $xeIconPicker);
27401
27464
  $xeIconPicker.renderVN = renderVN;
@@ -28098,13 +28161,13 @@ const openPreviewImage = (options) => {
28098
28161
  return Promise.resolve();
28099
28162
  };
28100
28163
 
28101
- function createInternalData$b() {
28164
+ function createInternalData$c() {
28102
28165
  return {
28103
28166
  // dgTime: 0,
28104
28167
  // mdTime: 0
28105
28168
  };
28106
28169
  }
28107
- function createReactData$c() {
28170
+ function createReactData$d() {
28108
28171
  return {};
28109
28172
  }
28110
28173
  var VxeImageComponent = defineVxeComponent({
@@ -28163,8 +28226,8 @@ var VxeImageComponent = defineVxeComponent({
28163
28226
  const $xeImageGroup = inject('$xeImageGroup', null);
28164
28227
  const refElem = ref();
28165
28228
  const { computeSize } = useSize(props);
28166
- const internalData = createInternalData$b();
28167
- const reactData = reactive(createReactData$c());
28229
+ const internalData = createInternalData$c();
28230
+ const reactData = reactive(createReactData$d());
28168
28231
  const refMaps = {
28169
28232
  refElem
28170
28233
  };
@@ -28350,8 +28413,8 @@ var VxeImageComponent = defineVxeComponent({
28350
28413
  ]);
28351
28414
  };
28352
28415
  onBeforeUnmount(() => {
28353
- XEUtils.assign(reactData, createReactData$c());
28354
- XEUtils.assign(internalData, createInternalData$b());
28416
+ XEUtils.assign(reactData, createReactData$d());
28417
+ XEUtils.assign(internalData, createInternalData$c());
28355
28418
  });
28356
28419
  $xeImage.renderVN = renderVN;
28357
28420
  return $xeImage;
@@ -28624,10 +28687,10 @@ dynamicApp.use(VxeLayoutAside);
28624
28687
  VxeUI.component(VxeLayoutAsideComponent);
28625
28688
  const LayoutAside = VxeLayoutAside;
28626
28689
 
28627
- function createInternalData$a() {
28690
+ function createInternalData$b() {
28628
28691
  return {};
28629
28692
  }
28630
- function createReactData$b() {
28693
+ function createReactData$c() {
28631
28694
  return {};
28632
28695
  }
28633
28696
  var VxeLayoutBodyComponent = defineVxeComponent({
@@ -28652,8 +28715,8 @@ var VxeLayoutBodyComponent = defineVxeComponent({
28652
28715
  const backtopId = `vxe_layout_body_backtop_${xID}`;
28653
28716
  const refElem = ref();
28654
28717
  const { computeSize } = useSize(props);
28655
- const internalData = createInternalData$a();
28656
- const reactData = reactive(createReactData$b());
28718
+ const internalData = createInternalData$b();
28719
+ const reactData = reactive(createReactData$c());
28657
28720
  const refMaps = {
28658
28721
  refElem
28659
28722
  };
@@ -29070,7 +29133,7 @@ const Link = VxeLink;
29070
29133
 
29071
29134
  const { errLog: errLog$a } = createComponentLog('menu');
29072
29135
  const { menus: menus$1, getConfig: getConfig$1, getIcon: getIcon$1 } = VxeUI;
29073
- function createInternalData$9() {
29136
+ function createInternalData$a() {
29074
29137
  return {
29075
29138
  lastActiveTime: 0,
29076
29139
  menuInitMaps: {},
@@ -29079,7 +29142,7 @@ function createInternalData$9() {
29079
29142
  menuEffectMaps: {}
29080
29143
  };
29081
29144
  }
29082
- function createReactData$a() {
29145
+ function createReactData$b() {
29083
29146
  return {
29084
29147
  initialized: false,
29085
29148
  isEnterCollapse: false,
@@ -29142,8 +29205,8 @@ var VxeMenuComponent = defineVxeComponent({
29142
29205
  const refElem = ref();
29143
29206
  const refCollapseElem = ref();
29144
29207
  const { computeSize } = useSize(props);
29145
- const reactData = reactive(createReactData$a());
29146
- const internalData = createInternalData$9();
29208
+ const reactData = reactive(createReactData$b());
29209
+ const internalData = createInternalData$a();
29147
29210
  const refMaps = {
29148
29211
  refElem
29149
29212
  };
@@ -29767,8 +29830,8 @@ var VxeMenuComponent = defineVxeComponent({
29767
29830
  });
29768
29831
  onBeforeUnmount(() => {
29769
29832
  globalEvents.off($xeMenu, 'resize');
29770
- XEUtils.assign(reactData, createReactData$a());
29771
- XEUtils.assign(internalData, createInternalData$9());
29833
+ XEUtils.assign(reactData, createReactData$b());
29834
+ XEUtils.assign(internalData, createInternalData$a());
29772
29835
  });
29773
29836
  reactData.initialized = !!props.collapsed;
29774
29837
  reactData.activeName = props.modelValue;
@@ -29791,8 +29854,30 @@ dynamicApp.use(VxeMenu);
29791
29854
  VxeUI.component(VxeMenuComponent);
29792
29855
  const Menu = VxeMenu;
29793
29856
 
29794
- const { warnLog: warnLog$a, errLog: errLog$9 } = createComponentLog('modal');
29795
29857
  const allActiveModals = [];
29858
+
29859
+ const { warnLog: warnLog$a, errLog: errLog$9 } = createComponentLog('modal');
29860
+ function createInternalData$9() {
29861
+ return {
29862
+ // msgTimeout: undefined,
29863
+ isMoveStatus: false
29864
+ };
29865
+ }
29866
+ function createReactData$a() {
29867
+ return {
29868
+ initialized: false,
29869
+ visible: false,
29870
+ contentVisible: false,
29871
+ modalTop: 0,
29872
+ modalZindex: 0,
29873
+ prevZoomStatus: '',
29874
+ zoomStatus: '',
29875
+ revertLocat: null,
29876
+ prevLocat: null,
29877
+ firstOpen: true,
29878
+ resizeFlag: 1
29879
+ };
29880
+ }
29796
29881
  const msgQueue = [];
29797
29882
  const notifyQueue = [];
29798
29883
  const lockScrollAttrKey = 'data-vxe-lock-scroll';
@@ -30007,22 +30092,8 @@ var VxeModalComponent = defineVxeComponent({
30007
30092
  const $xeTable = inject('$xeTable', null);
30008
30093
  const $xeForm = inject('$xeForm', null);
30009
30094
  const { computeSize } = useSize(props);
30010
- const reactData = reactive({
30011
- initialized: false,
30012
- visible: false,
30013
- contentVisible: false,
30014
- modalTop: 0,
30015
- modalZindex: 0,
30016
- prevZoomStatus: '',
30017
- zoomStatus: '',
30018
- revertLocat: null,
30019
- prevLocat: null,
30020
- firstOpen: true,
30021
- resizeFlag: 1
30022
- });
30023
- const internalData = {
30024
- msgTimeout: undefined
30025
- };
30095
+ const reactData = reactive(createReactData$a());
30096
+ const internalData = createInternalData$9();
30026
30097
  const refElem = ref();
30027
30098
  const refModalBox = ref();
30028
30099
  const refHeaderElem = ref();
@@ -30181,6 +30252,10 @@ var VxeModalComponent = defineVxeComponent({
30181
30252
  if (visible) {
30182
30253
  Promise.resolve(beforeHideFn ? beforeHideFn(params) : null).then((rest) => {
30183
30254
  if (!XEUtils.isError(rest)) {
30255
+ const el = refElem.value;
30256
+ if (el) {
30257
+ el.setAttribute('data-effect', 'y');
30258
+ }
30184
30259
  if (isMsg) {
30185
30260
  removeMsgQueue();
30186
30261
  }
@@ -30196,6 +30271,12 @@ var VxeModalComponent = defineVxeComponent({
30196
30271
  dispatchEvent('hide', params, null);
30197
30272
  }, 200);
30198
30273
  removeBodyLockScroll();
30274
+ setTimeout(() => {
30275
+ const el = refElem.value;
30276
+ if (el) {
30277
+ el.removeAttribute('data-effect');
30278
+ }
30279
+ }, 350);
30199
30280
  }
30200
30281
  }).catch(e => e);
30201
30282
  }
@@ -30494,6 +30575,7 @@ var VxeModalComponent = defineVxeComponent({
30494
30575
  }
30495
30576
  if (!visible) {
30496
30577
  addBodyLockScroll();
30578
+ internalData.isMoveStatus = false;
30497
30579
  reactData.visible = true;
30498
30580
  reactData.contentVisible = false;
30499
30581
  updateZindex();
@@ -30525,6 +30607,10 @@ var VxeModalComponent = defineVxeComponent({
30525
30607
  else {
30526
30608
  nextTick(() => {
30527
30609
  const { firstOpen } = reactData;
30610
+ const el = refElem.value;
30611
+ if (el) {
30612
+ el.setAttribute('data-effect', 'y');
30613
+ }
30528
30614
  if (firstOpen) {
30529
30615
  reactData.firstOpen = false;
30530
30616
  if (hasPosStorage()) {
@@ -30551,6 +30637,12 @@ var VxeModalComponent = defineVxeComponent({
30551
30637
  }
30552
30638
  }
30553
30639
  });
30640
+ setTimeout(() => {
30641
+ const el = refElem.value;
30642
+ if (el) {
30643
+ el.removeAttribute('data-effect');
30644
+ }
30645
+ }, 350);
30554
30646
  }
30555
30647
  }
30556
30648
  return nextTick();
@@ -30598,6 +30690,11 @@ var VxeModalComponent = defineVxeComponent({
30598
30690
  }
30599
30691
  }
30600
30692
  };
30693
+ const handleGlobalResizeEvent = () => {
30694
+ if (!internalData.isMoveStatus) {
30695
+ updatePosition();
30696
+ }
30697
+ };
30601
30698
  const isMinimized = () => {
30602
30699
  return reactData.zoomStatus === 'minimize';
30603
30700
  };
@@ -30700,7 +30797,7 @@ var VxeModalComponent = defineVxeComponent({
30700
30797
  }
30701
30798
  };
30702
30799
  const mousedownEvent = (evnt) => {
30703
- const { resize, storage, isWithinAppendTo } = props;
30800
+ const { storage, isWithinAppendTo } = props;
30704
30801
  const { zoomStatus } = reactData;
30705
30802
  const marginSize = XEUtils.toNumber(props.marginSize);
30706
30803
  const boxElem = getBox();
@@ -30714,8 +30811,8 @@ var VxeModalComponent = defineVxeComponent({
30714
30811
  if (!parentWrapperEl) {
30715
30812
  return;
30716
30813
  }
30717
- const visibleWidth = parentWrapperEl.clientWidth - (resize && isWithinAppendTo ? 8 : 0);
30718
- const visibleHeight = parentWrapperEl.clientHeight - (resize && isWithinAppendTo ? 8 : 0);
30814
+ const visibleWidth = parentWrapperEl.clientWidth;
30815
+ const visibleHeight = parentWrapperEl.clientHeight;
30719
30816
  const disX = evnt.clientX - boxElem.offsetLeft;
30720
30817
  const disY = evnt.clientY - boxElem.offsetTop;
30721
30818
  document.onmousemove = evnt => {
@@ -30744,6 +30841,7 @@ var VxeModalComponent = defineVxeComponent({
30744
30841
  boxElem.style.top = `${top}px`;
30745
30842
  boxElem.className = boxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
30746
30843
  dispatchEvent('move', { type: 'move' }, evnt);
30844
+ internalData.isMoveStatus = true;
30747
30845
  reactData.resizeFlag++;
30748
30846
  };
30749
30847
  document.onmouseup = () => {
@@ -30763,14 +30861,14 @@ var VxeModalComponent = defineVxeComponent({
30763
30861
  };
30764
30862
  const dragEvent = (evnt) => {
30765
30863
  evnt.preventDefault();
30766
- const { resize, storage, isWithinAppendTo } = props;
30864
+ const { storage, isWithinAppendTo } = props;
30767
30865
  const el = refElem.value;
30768
30866
  const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
30769
30867
  if (!parentWrapperEl) {
30770
30868
  return;
30771
30869
  }
30772
- const visibleWidth = parentWrapperEl.clientWidth - (resize && isWithinAppendTo ? 8 : 0);
30773
- const visibleHeight = parentWrapperEl.clientHeight - (resize && isWithinAppendTo ? 8 : 0);
30870
+ const visibleWidth = parentWrapperEl.clientWidth;
30871
+ const visibleHeight = parentWrapperEl.clientHeight;
30774
30872
  const marginSize = XEUtils.toNumber(props.marginSize);
30775
30873
  const targetElem = evnt.target;
30776
30874
  const type = targetElem.getAttribute('data-type');
@@ -31151,7 +31249,7 @@ var VxeModalComponent = defineVxeComponent({
31151
31249
  to: getPopupContainer(appendTo),
31152
31250
  disabled: btnTransfer ? !initialized : true
31153
31251
  }, [
31154
- h('div', Object.assign({ ref: refElem, class: ['vxe-modal--wrapper', `type--${type}`, `zoom--${zoomStatus || 'revert'}`, className || '', position ? `pos--${position}` : '', isWithinAppendTo ? 'ctx--within' : 'ctx--free', {
31252
+ h('div', Object.assign({ ref: refElem, class: ['vxe-modal--wrapper', `type--${type}`, `zoom--${zoomStatus || 'revert'}`, position ? `pos--${position}` : '', isWithinAppendTo ? 'ctx--within' : 'ctx--free', className || '', {
31155
31253
  [`size--${vSize}`]: vSize,
31156
31254
  [`status--${status}`]: status,
31157
31255
  'is--padding': padding,
@@ -31244,12 +31342,16 @@ var VxeModalComponent = defineVxeComponent({
31244
31342
  if (props.escClosable) {
31245
31343
  globalEvents.on($xeModal, 'keydown', handleGlobalKeydownEvent);
31246
31344
  }
31345
+ globalEvents.on($xeModal, 'resize', handleGlobalResizeEvent);
31247
31346
  });
31248
31347
  onUnmounted(() => {
31249
31348
  globalEvents.off($xeModal, 'keydown');
31349
+ globalEvents.off($xeModal, 'resize');
31250
31350
  removeMsgQueue();
31251
31351
  removeActiveQueue();
31252
31352
  removeBodyLockScroll();
31353
+ XEUtils.assign(reactData, createReactData$a());
31354
+ XEUtils.assign(internalData, createInternalData$9());
31253
31355
  });
31254
31356
  provide('$xeModal', $xeModal);
31255
31357
  return $xeModal;
@@ -37988,6 +38090,8 @@ const SplitPane = VxeSplitPane;
37988
38090
  function createInternalData$6() {
37989
38091
  return {
37990
38092
  // _isUp: false,
38093
+ isDragStatus: false,
38094
+ isBtnActive: false,
37991
38095
  currValue: 0,
37992
38096
  startValue: 0,
37993
38097
  endValue: 0
@@ -38034,7 +38138,12 @@ var VxeSliderComponent = defineVxeComponent({
38034
38138
  immediate: {
38035
38139
  type: Boolean,
38036
38140
  default: () => getConfig$3().slider.immediate
38037
- }
38141
+ },
38142
+ showTooltip: {
38143
+ type: Boolean,
38144
+ default: () => getConfig$3().slider.showTooltip
38145
+ },
38146
+ tooltipConfig: Object
38038
38147
  },
38039
38148
  emits: [
38040
38149
  'update:modelValue',
@@ -38091,6 +38200,9 @@ var VxeSliderComponent = defineVxeComponent({
38091
38200
  const { range, startValue, endValue } = props;
38092
38201
  return range ? `${startValue || ''}${endValue || ''}` : '';
38093
38202
  });
38203
+ const computeTooltipOpts = computed(() => {
38204
+ return Object.assign({}, getConfig$3().slider.tooltipConfig, props.tooltipConfig);
38205
+ });
38094
38206
  const computeMaps = {};
38095
38207
  const $xeSlider = {
38096
38208
  xID,
@@ -38243,6 +38355,38 @@ var VxeSliderComponent = defineVxeComponent({
38243
38355
  const raw = minNum + ratio * (maxNum - minNum);
38244
38356
  return Math.floor(raw);
38245
38357
  };
38358
+ const handleShowTip = (btnElem) => {
38359
+ const { showTooltip } = props;
38360
+ if (showTooltip) {
38361
+ if (VxeUI.tooltip) {
38362
+ const { currValue } = internalData;
38363
+ const tooltipOpts = computeTooltipOpts.value;
38364
+ const { contentMethod } = tooltipOpts;
38365
+ const content = getText(contentMethod
38366
+ ? contentMethod({
38367
+ $slider: $xeSlider,
38368
+ value: currValue
38369
+ })
38370
+ : '' + currValue);
38371
+ if (content) {
38372
+ VxeUI.tooltip.open(btnElem, Object.assign({}, Object.assign(Object.assign({}, tooltipOpts), { content }), {
38373
+ contentMethod: undefined
38374
+ }));
38375
+ }
38376
+ else {
38377
+ VxeUI.tooltip.close();
38378
+ }
38379
+ }
38380
+ }
38381
+ };
38382
+ const handleHideTip = () => {
38383
+ const { showTooltip } = props;
38384
+ if (showTooltip) {
38385
+ if (VxeUI.tooltip) {
38386
+ VxeUI.tooltip.close();
38387
+ }
38388
+ }
38389
+ };
38246
38390
  const handleBtnMousedownEvent = (evnt) => {
38247
38391
  const { range, immediate } = props;
38248
38392
  const btnElem = evnt.currentTarget;
@@ -38254,6 +38398,7 @@ var VxeSliderComponent = defineVxeComponent({
38254
38398
  evnt.preventDefault();
38255
38399
  const el = refElem.value;
38256
38400
  const barElem = refBarElem.value;
38401
+ internalData.isDragStatus = true;
38257
38402
  if (el && barElem) {
38258
38403
  const btnType = btnElem.getAttribute('data-type');
38259
38404
  const barRect = barElem.getBoundingClientRect();
@@ -38280,10 +38425,12 @@ var VxeSliderComponent = defineVxeComponent({
38280
38425
  changeEvent(evnt);
38281
38426
  }
38282
38427
  updateTrackStyle();
38428
+ handleShowTip(btnElem);
38283
38429
  };
38284
38430
  document.onmouseup = (evnt) => {
38285
38431
  document.onmousemove = null;
38286
38432
  document.onmouseup = null;
38433
+ internalData.isDragStatus = false;
38287
38434
  dispatchEvent('track-dragend', {
38288
38435
  currentValue: internalData.currValue,
38289
38436
  startValue: internalData.startValue,
@@ -38291,12 +38438,31 @@ var VxeSliderComponent = defineVxeComponent({
38291
38438
  }, evnt);
38292
38439
  changeEvent(evnt);
38293
38440
  updateTrackStyle();
38441
+ if (!internalData.isBtnActive) {
38442
+ handleHideTip();
38443
+ }
38294
38444
  };
38295
38445
  dispatchEvent('track-dragstart', {
38296
38446
  currentValue: internalData.currValue,
38297
38447
  startValue: internalData.startValue,
38298
38448
  endValue: internalData.endValue
38299
38449
  }, evnt);
38450
+ internalData.isDragStatus = false;
38451
+ }
38452
+ };
38453
+ const handleBtnMouseenterEvent = (evnt) => {
38454
+ const { startValue, endValue } = internalData;
38455
+ const btnElem = evnt.currentTarget;
38456
+ const btnType = btnElem.getAttribute('data-type');
38457
+ internalData.currValue = btnType === '1' ? startValue : endValue;
38458
+ internalData.isBtnActive = true;
38459
+ handleShowTip(btnElem);
38460
+ };
38461
+ const handleBtnMouseleaveEvent = () => {
38462
+ const { isDragStatus } = internalData;
38463
+ internalData.isBtnActive = false;
38464
+ if (!isDragStatus) {
38465
+ handleHideTip();
38300
38466
  }
38301
38467
  };
38302
38468
  const collapsePanePrivateMethods = {};
@@ -38332,6 +38498,8 @@ var VxeSliderComponent = defineVxeComponent({
38332
38498
  ref: refStartBtnElem,
38333
38499
  class: 'vxe-slider--bar-btn',
38334
38500
  'data-type': '1',
38501
+ onMouseenter: handleBtnMouseenterEvent,
38502
+ onMouseleave: handleBtnMouseleaveEvent,
38335
38503
  onMousedown: handleBtnMousedownEvent
38336
38504
  }),
38337
38505
  formReadonly
@@ -38340,6 +38508,8 @@ var VxeSliderComponent = defineVxeComponent({
38340
38508
  ref: refEndBtnElem,
38341
38509
  class: 'vxe-slider--bar-btn',
38342
38510
  'data-type': '2',
38511
+ onMouseenter: handleBtnMouseenterEvent,
38512
+ onMouseleave: handleBtnMouseleaveEvent,
38343
38513
  onMousedown: handleBtnMousedownEvent
38344
38514
  })
38345
38515
  ])
@@ -38415,6 +38585,26 @@ var VxeSpaceComponent = defineVxeComponent({
38415
38585
  align: {
38416
38586
  type: String,
38417
38587
  default: () => getConfig$3().space.align
38588
+ },
38589
+ fill: {
38590
+ type: Boolean,
38591
+ default: () => getConfig$3().space.fill
38592
+ },
38593
+ itemWidth: {
38594
+ type: [String, Number],
38595
+ default: () => getConfig$3().space.itemWidth
38596
+ },
38597
+ itemMinWidth: {
38598
+ type: [String, Number],
38599
+ default: () => getConfig$3().space.itemMinWidth
38600
+ },
38601
+ itemMaxWidth: {
38602
+ type: [String, Number],
38603
+ default: () => getConfig$3().space.itemMaxWidth
38604
+ },
38605
+ separatorWidth: {
38606
+ type: [String, Number],
38607
+ default: () => getConfig$3().space.separatorWidth
38418
38608
  }
38419
38609
  },
38420
38610
  emits: [],
@@ -38477,20 +38667,36 @@ var VxeSpaceComponent = defineVxeComponent({
38477
38667
  const spacePrivateMethods = {};
38478
38668
  Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
38479
38669
  const renderItems = () => {
38480
- const { separator, itemClassName } = props;
38670
+ const { separator, itemClassName, itemWidth, itemMinWidth, itemMaxWidth, separatorWidth } = props;
38481
38671
  const itemVNs = [];
38482
38672
  const defaultSlot = slots.default;
38483
38673
  const separatorSlot = slots.separator;
38674
+ const srStys = {};
38675
+ if (separatorWidth) {
38676
+ srStys.width = toCssUnit(itemWidth);
38677
+ }
38678
+ const itemStys = {};
38679
+ if (itemWidth) {
38680
+ itemStys.width = toCssUnit(itemWidth);
38681
+ }
38682
+ if (itemMinWidth) {
38683
+ itemStys.minWidth = toCssUnit(itemMinWidth);
38684
+ }
38685
+ if (itemMaxWidth) {
38686
+ itemStys.maxWidth = toCssUnit(itemMaxWidth);
38687
+ }
38484
38688
  if (defaultSlot) {
38485
38689
  XEUtils.each(defaultSlot({}), (itemVN, index, items) => {
38486
38690
  itemVNs.push(h('div', {
38487
38691
  key: 'i' + index,
38488
- class: ['vxe-space--item', getPropClass(itemClassName, { index })]
38692
+ class: ['vxe-space--item', getPropClass(itemClassName, { index })],
38693
+ style: itemStys
38489
38694
  }, [itemVN]));
38490
38695
  if ((separator || separatorSlot) && index < items.length - 1) {
38491
38696
  itemVNs.push(h('div', {
38492
38697
  key: 's' + index,
38493
- class: 'vxe-space--separator'
38698
+ class: 'vxe-space--separator',
38699
+ style: srStys
38494
38700
  }, separatorSlot ? separatorSlot({}) : ('' + separator)));
38495
38701
  }
38496
38702
  });
@@ -38498,7 +38704,7 @@ var VxeSpaceComponent = defineVxeComponent({
38498
38704
  return itemVNs;
38499
38705
  };
38500
38706
  const renderVN = () => {
38501
- const { vertical, wrap, className } = props;
38707
+ const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
38502
38708
  const wrapperStyle = computeWrapperStyle.value;
38503
38709
  const vSize = computeSize.value;
38504
38710
  return h('div', {
@@ -38506,7 +38712,9 @@ var VxeSpaceComponent = defineVxeComponent({
38506
38712
  class: ['vxe-space', getPropClass(className, {}), {
38507
38713
  [`size--${vSize}`]: vSize,
38508
38714
  'is--wrap': wrap,
38509
- 'is--vertical': vertical
38715
+ 'is--vertical': vertical,
38716
+ 'is--fill': fill,
38717
+ 'is--width': itemWidth || itemMinWidth || itemMaxWidth
38510
38718
  }],
38511
38719
  style: wrapperStyle
38512
38720
  }, renderItems());