tanxin-ui 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1847,7 +1847,7 @@ const iconProps = {
1847
1847
  rotate: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
1848
1848
  prefixCls: PropTypes.string
1849
1849
  };
1850
- var Icon = defineComponent({
1850
+ var TIcon$1 = defineComponent({
1851
1851
  name: "TIcon",
1852
1852
  props: iconProps,
1853
1853
  setup(props, {
@@ -1880,7 +1880,7 @@ var Icon = defineComponent({
1880
1880
  };
1881
1881
  }
1882
1882
  });
1883
- const TIcon = withInstall(Icon);
1883
+ const TIcon = withInstall(TIcon$1);
1884
1884
  const linkProps$1 = Object.assign({
1885
1885
  to: {
1886
1886
  type: [Object, String]
@@ -5705,7 +5705,8 @@ var Input = defineComponent({
5705
5705
  EyeOffOutline,
5706
5706
  EyeOutline,
5707
5707
  CloseCircleOutline,
5708
- ChevronDown
5708
+ ChevronDown,
5709
+ TIcon: TIcon$1
5709
5710
  },
5710
5711
  props: inputProps,
5711
5712
  emits: ["input", "update:value", "change", "focus", "blur", "keydown", "clear"],
@@ -5921,17 +5922,17 @@ var Input = defineComponent({
5921
5922
  }, controlProps), null), hasSuffix.value ? createVNode("span", {
5922
5923
  "ref": "refSuffix",
5923
5924
  "class": `${prefixCls.value}-suffix`
5924
- }, [props.showPassword ? createVNode(resolveComponent("t-icon"), {
5925
+ }, [props.showPassword ? createVNode(TIcon$1, {
5925
5926
  "class": "is-action",
5926
5927
  "onClick": handlePasswordIconClick
5927
5928
  }, {
5928
5929
  default: () => [showPlain.value ? createVNode(EyeOffOutline, null, null) : createVNode(EyeOutline, null, null)]
5929
- }) : null, showClear.value && currentValue.value ? createVNode(resolveComponent("t-icon"), {
5930
+ }) : null, showClear.value && currentValue.value ? createVNode(TIcon$1, {
5930
5931
  "class": "is-action",
5931
5932
  "onClick": handleClearClick
5932
5933
  }, {
5933
5934
  default: () => [createVNode(CloseCircleOutline, null, null)]
5934
- }) : null, props.showArrow ? createVNode(resolveComponent("t-icon"), {
5935
+ }) : null, props.showArrow ? createVNode(TIcon$1, {
5935
5936
  "class": "is-action right-arrow",
5936
5937
  "rotate": -90
5937
5938
  }, {
@@ -7564,7 +7565,7 @@ var Radio = defineComponent({
7564
7565
  const currentValue = ref();
7565
7566
  onMounted(() => {
7566
7567
  currentValue.value = getValue2.value !== "" ? getValue2.value : getGroupContext("value");
7567
- setCheckStatus2();
7568
+ setCheckStatus();
7568
7569
  });
7569
7570
  const refRadio = ref();
7570
7571
  const validateStatus = ref("");
@@ -7613,7 +7614,7 @@ var Radio = defineComponent({
7613
7614
  emit("input", props.itemValue);
7614
7615
  emit("change", props.itemValue);
7615
7616
  currentValue.value = props.itemValue;
7616
- setCheckStatus2();
7617
+ setCheckStatus();
7617
7618
  if (groupContext && groupContext.onChange) {
7618
7619
  groupContext.onChange(props.itemValue);
7619
7620
  }
@@ -7631,7 +7632,7 @@ var Radio = defineComponent({
7631
7632
  if (getValue2.value === currentValue.value)
7632
7633
  return;
7633
7634
  currentValue.value = getValue2.value;
7634
- setCheckStatus2();
7635
+ setCheckStatus();
7635
7636
  }, {
7636
7637
  deep: true
7637
7638
  });
@@ -7640,7 +7641,7 @@ var Radio = defineComponent({
7640
7641
  if (props.value === currentValue.value)
7641
7642
  return;
7642
7643
  currentValue.value = props.value;
7643
- setCheckStatus2();
7644
+ setCheckStatus();
7644
7645
  });
7645
7646
  }
7646
7647
  if (groupContext) {
@@ -7648,13 +7649,13 @@ var Radio = defineComponent({
7648
7649
  if (groupContext.value.value === currentValue.value)
7649
7650
  return;
7650
7651
  currentValue.value = groupContext.value.value;
7651
- setCheckStatus2();
7652
+ setCheckStatus();
7652
7653
  });
7653
7654
  }
7654
7655
  const handleClick = (event) => {
7655
7656
  event.stopPropagation();
7656
7657
  };
7657
- const setCheckStatus2 = () => {
7658
+ const setCheckStatus = () => {
7658
7659
  isChecked.value = props.itemValue === currentValue.value;
7659
7660
  refRadio.value.checked = isChecked.value;
7660
7661
  };
@@ -7898,7 +7899,7 @@ var Checkbox = defineComponent({
7898
7899
  const value = getValue2.value !== void 0 ? props.value : getGroupContext("value");
7899
7900
  if (!initCurrentValue(value))
7900
7901
  return false;
7901
- setCheckStatus2();
7902
+ setCheckStatus();
7902
7903
  });
7903
7904
  const initCurrentValue = (value) => {
7904
7905
  if (value === void 0) {
@@ -7983,7 +7984,7 @@ var Checkbox = defineComponent({
7983
7984
  return;
7984
7985
  const checked = event.target.checked;
7985
7986
  changeValue(checked);
7986
- setCheckStatus2();
7987
+ setCheckStatus();
7987
7988
  const nowValue = currentValue.value;
7988
7989
  console.log("nowValue=", nowValue);
7989
7990
  emitValue(nowValue);
@@ -8018,27 +8019,27 @@ var Checkbox = defineComponent({
8018
8019
  }
8019
8020
  const watchAction = () => {
8020
8021
  if ((props.bool || props.switch) && getValue2.value == currentValue.value) {
8021
- setCheckStatus2();
8022
+ setCheckStatus();
8022
8023
  return;
8023
8024
  }
8024
8025
  if (!props.bool && arrayEquals(props.value, currentValue.value)) {
8025
- setCheckStatus2();
8026
+ setCheckStatus();
8026
8027
  return;
8027
8028
  }
8028
8029
  initCurrentValue(props.value);
8029
- setCheckStatus2();
8030
+ setCheckStatus();
8030
8031
  };
8031
8032
  if (groupContext) {
8032
8033
  watch(() => groupContext.value.value, () => {
8033
8034
  if (arrayEquals(props.value, currentValue.value)) {
8034
- setCheckStatus2();
8035
+ setCheckStatus();
8035
8036
  return;
8036
8037
  }
8037
8038
  initCurrentValue(groupContext.value.value);
8038
- setCheckStatus2();
8039
+ setCheckStatus();
8039
8040
  });
8040
8041
  }
8041
- const setCheckStatus2 = () => {
8042
+ const setCheckStatus = () => {
8042
8043
  var _a;
8043
8044
  if (props.bool) {
8044
8045
  isChecked.value = !!currentValue.value;
@@ -10374,7 +10375,7 @@ var Tag = defineComponent({
10374
10375
  isChecked.value = !isChecked.value;
10375
10376
  emitValue();
10376
10377
  };
10377
- const setCheckStatus2 = () => {
10378
+ const setCheckStatus = () => {
10378
10379
  isChecked.value = currentValue.value.includes(props.itemValue);
10379
10380
  };
10380
10381
  onMounted(() => {
@@ -10382,14 +10383,14 @@ var Tag = defineComponent({
10382
10383
  const value = props.value;
10383
10384
  if (!initCurrentValue(value))
10384
10385
  return false;
10385
- setCheckStatus2();
10386
+ setCheckStatus();
10386
10387
  }
10387
10388
  });
10388
10389
  watch(() => props.value, () => {
10389
10390
  if (arrayEquals(props.value, currentValue.value))
10390
10391
  return;
10391
10392
  initCurrentValue(props.value);
10392
- setCheckStatus2();
10393
+ setCheckStatus();
10393
10394
  }, {
10394
10395
  deep: true
10395
10396
  });
@@ -15969,10 +15970,8 @@ var Slider = defineComponent({
15969
15970
  };
15970
15971
  if (dynamicForm.value) {
15971
15972
  watch(() => props.formData, () => {
15972
- if (getValue2.value === currentValue.value)
15973
- return;
15974
- currentValue.value = getValue2.value;
15975
- setCheckStatus();
15973
+ currentValue.value = props.range ? getValue2.value : [getValue2.value, void 0];
15974
+ initPosition();
15976
15975
  }, {
15977
15976
  deep: true
15978
15977
  });