vxe-pc-ui 4.17.20 → 4.17.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 (59) hide show
  1. package/dist/all.esm.js +202 -87
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/slider/src/slider.js +167 -72
  6. package/es/slider/style.css +8 -15
  7. package/es/slider/style.min.css +1 -1
  8. package/es/space/src/space.js +31 -11
  9. package/es/space/style.css +1 -0
  10. package/es/space/style.min.css +1 -1
  11. package/es/style.css +1 -1
  12. package/es/style.min.css +1 -1
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-slider/style.css +8 -15
  16. package/es/vxe-slider/style.min.css +1 -1
  17. package/es/vxe-space/style.css +1 -0
  18. package/es/vxe-space/style.min.css +1 -1
  19. package/lib/icon/style/style.css +1 -1
  20. package/lib/icon/style/style.min.css +1 -1
  21. package/lib/index.umd.js +210 -92
  22. package/lib/index.umd.min.js +1 -1
  23. package/lib/slider/src/slider.js +170 -78
  24. package/lib/slider/src/slider.min.js +1 -1
  25. package/lib/slider/style/style.css +8 -15
  26. package/lib/slider/style/style.min.css +1 -1
  27. package/lib/space/src/space.js +36 -11
  28. package/lib/space/src/space.min.js +1 -1
  29. package/lib/space/style/style.css +1 -0
  30. package/lib/space/style/style.min.css +1 -1
  31. package/lib/style.css +1 -1
  32. package/lib/style.min.css +1 -1
  33. package/lib/ui/index.js +1 -1
  34. package/lib/ui/index.min.js +1 -1
  35. package/lib/ui/src/log.js +1 -1
  36. package/lib/ui/src/log.min.js +1 -1
  37. package/lib/vxe-slider/style/style.css +8 -15
  38. package/lib/vxe-slider/style/style.min.css +1 -1
  39. package/lib/vxe-space/style/style.css +1 -0
  40. package/lib/vxe-space/style/style.min.css +1 -1
  41. package/package.json +4 -3
  42. package/packages/slider/src/slider.ts +165 -72
  43. package/packages/space/src/space.ts +37 -12
  44. package/styles/components/slider.scss +8 -13
  45. package/styles/components/space.scss +1 -0
  46. package/types/components/slider.d.ts +9 -2
  47. package/types/components/space.d.ts +2 -0
  48. /package/es/icon/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
  49. /package/es/icon/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
  50. /package/es/icon/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
  51. /package/es/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
  52. /package/es/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
  53. /package/es/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
  54. /package/lib/icon/style/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
  55. /package/lib/icon/style/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
  56. /package/lib/icon/style/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
  57. /package/lib/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
  58. /package/lib/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
  59. /package/lib/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -4662,7 +4662,7 @@ function checkDynamic() {
4662
4662
  const {
4663
4663
  log: log_log
4664
4664
  } = VxeUI;
4665
- const uiVersion = `ui v${"4.17.20"}`;
4665
+ const uiVersion = `ui v${"4.17.21"}`;
4666
4666
  function createComponentLog(name) {
4667
4667
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
4668
4668
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -4680,7 +4680,7 @@ const errLog = log_log.create('error', uiVersion);
4680
4680
 
4681
4681
 
4682
4682
 
4683
- const ui_version = "4.17.20";
4683
+ const ui_version = "4.17.21";
4684
4684
  VxeUI.uiVersion = ui_version;
4685
4685
  VxeUI.dynamicApp = dynamicApp;
4686
4686
  function config(options) {
@@ -46436,21 +46436,25 @@ const SplitPane = VxeSplitPane;
46436
46436
 
46437
46437
 
46438
46438
 
46439
+
46440
+
46439
46441
  function slider_createInternalData() {
46440
46442
  return {
46441
- // _isUp: false
46442
- };
46443
- }
46444
- function slider_createReactData() {
46445
- return {
46443
+ // _isUp: false,
46444
+ currValue: 0,
46446
46445
  startValue: 0,
46447
46446
  endValue: 0
46448
46447
  };
46449
46448
  }
46449
+ function slider_createReactData() {
46450
+ return {};
46451
+ }
46450
46452
  /* harmony default export */ var slider = (defineVxeComponent({
46451
46453
  name: 'VxeSlider',
46452
46454
  props: {
46453
46455
  modelValue: [String, Number, Array],
46456
+ startValue: [String, Number],
46457
+ endValue: [String, Number],
46454
46458
  vertical: Boolean,
46455
46459
  max: {
46456
46460
  type: [String, Number],
@@ -46485,7 +46489,7 @@ function slider_createReactData() {
46485
46489
  default: () => getConfig().slider.immediate
46486
46490
  }
46487
46491
  },
46488
- emits: ['update:modelValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
46492
+ emits: ['update:modelValue', 'update:startValue', 'update:endValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
46489
46493
  setup(props, context) {
46490
46494
  const {
46491
46495
  emit
@@ -46536,6 +46540,14 @@ function slider_createReactData() {
46536
46540
  const computeMinNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
46537
46541
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min || 0);
46538
46542
  });
46543
+ const computeMVal = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
46544
+ const {
46545
+ range,
46546
+ startValue,
46547
+ endValue
46548
+ } = props;
46549
+ return range ? `${startValue || ''}${endValue || ''}` : '';
46550
+ });
46539
46551
  const computeMaps = {};
46540
46552
  const $xeSlider = {
46541
46553
  xID,
@@ -46557,61 +46569,119 @@ function slider_createReactData() {
46557
46569
  const collapsePaneMethods = {
46558
46570
  dispatchEvent
46559
46571
  };
46560
- const getStartPercent = startValue => {
46561
- const {
46562
- range
46563
- } = props;
46572
+ const getBarPercent = currValue => {
46564
46573
  const maxNum = computeMaxNum.value;
46565
46574
  const minNum = computeMinNum.value;
46566
- return range ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor((startValue - minNum) / external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(maxNum - minNum) * 100) : 0;
46575
+ if (maxNum === minNum) {
46576
+ return 0;
46577
+ }
46578
+ if (currValue < minNum) {
46579
+ currValue = minNum;
46580
+ }
46581
+ if (currValue > maxNum) {
46582
+ currValue = maxNum;
46583
+ }
46584
+ return (currValue - minNum) / (maxNum - minNum) * 100;
46567
46585
  };
46568
- const getEndPercent = (startValue, endValue) => {
46569
- const {
46570
- range
46571
- } = props;
46572
- const maxNum = computeMaxNum.value;
46573
- const minNum = computeMinNum.value;
46574
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor((endValue - (range ? startValue : 0) - minNum) / external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(maxNum - minNum) * 100);
46586
+ const parseFields = (startValue, endValue) => {
46587
+ const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(startValue), external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(endValue)]);
46588
+ const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sVal || 0));
46589
+ internalData.currValue = currValue;
46590
+ internalData.startValue = currValue;
46591
+ internalData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(eVal || 0));
46575
46592
  };
46576
- const updateModel = () => {
46593
+ const parseArrs = arrVals => {
46594
+ const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(arrVals);
46595
+ const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sVal || 0));
46596
+ internalData.currValue = currValue;
46597
+ internalData.startValue = currValue;
46598
+ internalData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(eVal || 0));
46599
+ };
46600
+ const parseNum = val => {
46601
+ const currValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(val || 0));
46602
+ internalData.currValue = currValue;
46603
+ internalData.startValue = 0;
46604
+ internalData.endValue = currValue;
46605
+ };
46606
+ const updateModelValue = umType => {
46577
46607
  const {
46578
- modelValue
46608
+ range,
46609
+ modelValue,
46610
+ startValue,
46611
+ endValue
46579
46612
  } = props;
46580
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue)) {
46581
- const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(modelValue, true).sort();
46582
- reactData.startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sVal || 0));
46583
- reactData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(eVal || 0));
46613
+ if (!umType) {
46614
+ if (range) {
46615
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(modelValue)) {
46616
+ if (startValue || endValue) {
46617
+ parseFields(startValue, endValue);
46618
+ }
46619
+ } else {
46620
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue)) {
46621
+ parseArrs(modelValue.map(num => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num)));
46622
+ } else {
46623
+ parseNum(modelValue);
46624
+ }
46625
+ }
46626
+ } else {
46627
+ parseNum(modelValue);
46628
+ }
46629
+ } else if (range && umType === 2) {
46630
+ parseFields(startValue, endValue);
46584
46631
  } else {
46585
- reactData.startValue = 0;
46586
- reactData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(modelValue || 0));
46632
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue)) {
46633
+ parseArrs(modelValue.map(num => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num)));
46634
+ } else {
46635
+ parseNum(modelValue);
46636
+ }
46587
46637
  }
46638
+ updateBarStyle();
46639
+ updateTrackStyle();
46588
46640
  };
46589
46641
  const updateBarStyle = () => {
46590
46642
  const {
46643
+ range
46644
+ } = props;
46645
+ const {
46646
+ currValue,
46591
46647
  startValue,
46592
46648
  endValue
46593
- } = reactData;
46594
- const trackElem = refTrackElem.value;
46649
+ } = internalData;
46595
46650
  const startBtnElem = refStartBtnElem.value;
46596
46651
  const endBtnElem = refEndBtnElem.value;
46597
- let startPercent = 0;
46598
- let endPercent = 0;
46599
- if (startValue > endValue) {
46600
- startPercent = getStartPercent(endValue);
46601
- endPercent = getEndPercent(endValue, startValue);
46652
+ if (range) {
46653
+ const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]);
46654
+ if (startBtnElem) {
46655
+ startBtnElem.style.left = getBarPercent(sVal) + '%';
46656
+ }
46657
+ if (endBtnElem) {
46658
+ endBtnElem.style.left = getBarPercent(eVal) + '%';
46659
+ }
46602
46660
  } else {
46603
- startPercent = getStartPercent(startValue);
46604
- endPercent = getEndPercent(startValue, endValue);
46661
+ if (endBtnElem) {
46662
+ endBtnElem.style.left = getBarPercent(currValue) + '%';
46663
+ }
46605
46664
  }
46665
+ };
46666
+ const updateTrackStyle = () => {
46667
+ const {
46668
+ range
46669
+ } = props;
46670
+ const {
46671
+ currValue,
46672
+ startValue,
46673
+ endValue
46674
+ } = internalData;
46675
+ const trackElem = refTrackElem.value;
46606
46676
  if (trackElem) {
46607
- trackElem.style.left = `${startPercent}%`;
46608
- trackElem.style.width = `${endPercent}%`;
46609
- }
46610
- if (startBtnElem) {
46611
- startBtnElem.style.left = `${startPercent}%`;
46612
- }
46613
- if (endBtnElem) {
46614
- endBtnElem.style.left = `${external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(startPercent + endPercent)}%`;
46677
+ if (range) {
46678
+ const [sVal, eVal] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]);
46679
+ trackElem.style.left = getBarPercent(sVal) + '%';
46680
+ trackElem.style.width = getBarPercent(eVal - sVal) + '%';
46681
+ } else {
46682
+ trackElem.style.left = '0';
46683
+ trackElem.style.width = getBarPercent(currValue) + '%';
46684
+ }
46615
46685
  }
46616
46686
  };
46617
46687
  const changeEvent = evnt => {
@@ -46619,11 +46689,17 @@ function slider_createReactData() {
46619
46689
  range
46620
46690
  } = props;
46621
46691
  const {
46692
+ currValue,
46622
46693
  startValue,
46623
46694
  endValue
46624
- } = reactData;
46625
- const value = range ? [startValue, endValue].sort() : endValue;
46695
+ } = internalData;
46696
+ const vals = range ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy([startValue, endValue]) : [];
46697
+ const value = range ? vals : currValue;
46626
46698
  emitModel(value);
46699
+ if (range) {
46700
+ emit('update:startValue', vals[0] || 0);
46701
+ emit('update:endValue', vals[1] || 0);
46702
+ }
46627
46703
  dispatchEvent('change', {
46628
46704
  value
46629
46705
  }, evnt);
@@ -46632,14 +46708,25 @@ function slider_createReactData() {
46632
46708
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
46633
46709
  }
46634
46710
  };
46635
- const handleMousedownEvent = (evnt, isEnd) => {
46711
+ const getValueByLeft = (offsetLeft, barWidth) => {
46712
+ const maxNum = computeMaxNum.value;
46713
+ const minNum = computeMinNum.value;
46714
+ if (barWidth === 0) {
46715
+ return minNum;
46716
+ }
46717
+ const clamped = Math.max(0, Math.min(barWidth, offsetLeft));
46718
+ const ratio = clamped / barWidth;
46719
+ const raw = minNum + ratio * (maxNum - minNum);
46720
+ return Math.floor(raw);
46721
+ };
46722
+ const handleBtnMousedownEvent = evnt => {
46636
46723
  const {
46724
+ range,
46637
46725
  immediate
46638
46726
  } = props;
46727
+ const btnElem = evnt.currentTarget;
46639
46728
  const formReadonly = computeFormReadonly.value;
46640
46729
  const isDisabled = computeIsDisabled.value;
46641
- const maxNum = computeMaxNum.value;
46642
- const minNum = computeMinNum.value;
46643
46730
  if (!(formReadonly || isDisabled)) {
46644
46731
  evnt.preventDefault();
46645
46732
  document.onmousemove = evnt => {
@@ -46647,49 +46734,49 @@ function slider_createReactData() {
46647
46734
  const el = refElem.value;
46648
46735
  const barElem = refBarElem.value;
46649
46736
  if (el && barElem) {
46737
+ const btnType = btnElem.getAttribute('data-type');
46650
46738
  const barRect = barElem.getBoundingClientRect();
46651
- const trackWidth = (evnt.clientX - barRect.left) / barRect.width;
46652
- if (isEnd) {
46653
- reactData.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(Math.max(minNum, Math.min(maxNum, trackWidth * (maxNum - minNum) + minNum)));
46654
- } else {
46655
- reactData.startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(Math.max(minNum, Math.min(maxNum, trackWidth * (maxNum - minNum))));
46739
+ const barWidth = barRect.width;
46740
+ const offsetLeft = Math.min(barWidth, Math.max(0, evnt.clientX - barRect.left));
46741
+ const currValue = getValueByLeft(offsetLeft, barWidth);
46742
+ if (range) {
46743
+ if (btnType === '1') {
46744
+ internalData.startValue = currValue;
46745
+ } else {
46746
+ internalData.endValue = currValue;
46747
+ }
46656
46748
  }
46749
+ internalData.currValue = currValue;
46750
+ btnElem.style.left = getBarPercent(currValue) + '%';
46657
46751
  dispatchEvent('track-dragover', {
46658
- startValue: reactData.startValue,
46659
- endValue: reactData.endValue
46752
+ currentValue: internalData.currValue,
46753
+ startValue: internalData.startValue,
46754
+ endValue: internalData.endValue
46660
46755
  }, evnt);
46661
46756
  }
46662
46757
  if (immediate) {
46663
46758
  changeEvent(evnt);
46664
46759
  }
46665
- updateBarStyle();
46760
+ updateTrackStyle();
46666
46761
  };
46667
46762
  document.onmouseup = evnt => {
46668
46763
  document.onmousemove = null;
46669
46764
  document.onmouseup = null;
46670
46765
  dispatchEvent('track-dragend', {
46671
- startValue: reactData.startValue,
46672
- endValue: reactData.endValue
46766
+ currentValue: internalData.currValue,
46767
+ startValue: internalData.startValue,
46768
+ endValue: internalData.endValue
46673
46769
  }, evnt);
46674
46770
  changeEvent(evnt);
46675
- updateBarStyle();
46771
+ updateTrackStyle();
46676
46772
  };
46677
46773
  dispatchEvent('track-dragstart', {
46678
- startValue: reactData.startValue,
46679
- endValue: reactData.endValue
46774
+ currentValue: internalData.currValue,
46775
+ startValue: internalData.startValue,
46776
+ endValue: internalData.endValue
46680
46777
  }, evnt);
46681
46778
  }
46682
46779
  };
46683
- const handleStartMousedownEvent = evnt => {
46684
- const endBtnElem = refEndBtnElem.value;
46685
- const startBtnElem = evnt.currentTarget;
46686
- handleMousedownEvent(evnt, endBtnElem ? endBtnElem.offsetLeft < startBtnElem.offsetLeft : false);
46687
- };
46688
- const handleEndMousedownEvent = evnt => {
46689
- const startBtnElem = refStartBtnElem.value;
46690
- const endBtnElem = evnt.currentTarget;
46691
- handleMousedownEvent(evnt, startBtnElem ? endBtnElem.offsetLeft > startBtnElem.offsetLeft : true);
46692
- };
46693
46780
  const collapsePanePrivateMethods = {};
46694
46781
  Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
46695
46782
  const renderVN = () => {
@@ -46718,28 +46805,35 @@ function slider_createReactData() {
46718
46805
  class: 'vxe-slider--bar-track'
46719
46806
  }), formReadonly || !range ? renderEmptyElement($xeSlider) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46720
46807
  ref: refStartBtnElem,
46721
- class: 'vxe-slider--bar-btn vxe-slider--start-btn',
46722
- onMousedown: handleStartMousedownEvent
46808
+ class: 'vxe-slider--bar-btn',
46809
+ 'data-type': '1',
46810
+ onMousedown: handleBtnMousedownEvent
46723
46811
  }), formReadonly ? renderEmptyElement($xeSlider) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46724
46812
  ref: refEndBtnElem,
46725
- class: 'vxe-slider--bar-btn vxe-slider--end-btn',
46726
- onMousedown: handleEndMousedownEvent
46813
+ class: 'vxe-slider--bar-btn',
46814
+ 'data-type': '2',
46815
+ onMousedown: handleBtnMousedownEvent
46727
46816
  })])]);
46728
46817
  };
46729
46818
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
46730
46819
  if (!internalData._isUp) {
46731
- updateModel();
46820
+ updateModelValue(1);
46821
+ }
46822
+ internalData._isUp = false;
46823
+ });
46824
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeMVal, () => {
46825
+ if (!internalData._isUp) {
46826
+ updateModelValue(2);
46732
46827
  }
46733
46828
  internalData._isUp = false;
46734
46829
  });
46735
46830
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
46736
- updateBarStyle();
46831
+ updateModelValue();
46737
46832
  });
46738
46833
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
46739
46834
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, slider_createReactData());
46740
46835
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, slider_createInternalData());
46741
46836
  });
46742
- updateModel();
46743
46837
  $xeSlider.renderVN = renderVN;
46744
46838
  return $xeSlider;
46745
46839
  },
@@ -46768,7 +46862,6 @@ const Slider = VxeSlider;
46768
46862
 
46769
46863
 
46770
46864
 
46771
-
46772
46865
  /* harmony default export */ var space = (defineVxeComponent({
46773
46866
  name: 'VxeSpace',
46774
46867
  props: {
@@ -46799,6 +46892,10 @@ const Slider = VxeSlider;
46799
46892
  separator: {
46800
46893
  type: String,
46801
46894
  default: () => getConfig().space.separator
46895
+ },
46896
+ align: {
46897
+ type: String,
46898
+ default: () => getConfig().space.align
46802
46899
  }
46803
46900
  },
46804
46901
  emits: [],
@@ -46820,6 +46917,7 @@ const Slider = VxeSlider;
46820
46917
  };
46821
46918
  const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
46822
46919
  const {
46920
+ align,
46823
46921
  gap
46824
46922
  } = props;
46825
46923
  const stys = {};
@@ -46837,6 +46935,9 @@ const Slider = VxeSlider;
46837
46935
  columGap = gap.columGap || '';
46838
46936
  }
46839
46937
  }
46938
+ if (align) {
46939
+ stys['align-items'] = align;
46940
+ }
46840
46941
  if (!eqEmptyValue(rowGap)) {
46841
46942
  stys['--vxe-ui-space-current-row-gap'] = toCssUnit(rowGap);
46842
46943
  }
@@ -46864,16 +46965,40 @@ const Slider = VxeSlider;
46864
46965
  };
46865
46966
  const spacePrivateMethods = {};
46866
46967
  Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
46968
+ const renderItems = () => {
46969
+ const {
46970
+ separator,
46971
+ itemClassName
46972
+ } = props;
46973
+ const itemVNs = [];
46974
+ const defaultSlot = slots.default;
46975
+ const separatorSlot = slots.separator;
46976
+ if (defaultSlot) {
46977
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(defaultSlot({}), (itemVN, index, items) => {
46978
+ itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46979
+ key: 'i' + index,
46980
+ class: ['vxe-space--item', getPropClass(itemClassName, {
46981
+ index
46982
+ })]
46983
+ }, [itemVN]));
46984
+ if ((separator || separatorSlot) && index < items.length - 1) {
46985
+ itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46986
+ key: 's' + index,
46987
+ class: 'vxe-space--separator'
46988
+ }, separatorSlot ? separatorSlot({}) : '' + separator));
46989
+ }
46990
+ });
46991
+ }
46992
+ return itemVNs;
46993
+ };
46867
46994
  const renderVN = () => {
46868
46995
  const {
46869
46996
  vertical,
46870
46997
  wrap,
46871
- className,
46872
- itemClassName
46998
+ className
46873
46999
  } = props;
46874
47000
  const wrapperStyle = computeWrapperStyle.value;
46875
47001
  const vSize = computeSize.value;
46876
- const defaultSlot = slots.default;
46877
47002
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46878
47003
  ref: refElem,
46879
47004
  class: ['vxe-space', getPropClass(className, {}), {
@@ -46882,14 +47007,7 @@ const Slider = VxeSlider;
46882
47007
  'is--vertical': vertical
46883
47008
  }],
46884
47009
  style: wrapperStyle
46885
- }, defaultSlot ? (defaultSlot({}) || []).map((itemVN, index) => {
46886
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
46887
- key: index,
46888
- class: ['vxe-space--item', getPropClass(itemClassName, {
46889
- index
46890
- })]
46891
- }, [itemVN]);
46892
- }) : []);
47010
+ }, renderItems());
46893
47011
  };
46894
47012
  $xeSpace.renderVN = renderVN;
46895
47013
  return $xeSpace;