@atooyu/uxto-ui 1.1.18 → 1.1.20

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.
package/dist/index.js CHANGED
@@ -855,13 +855,12 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
855
855
  const nodeStyle = vue.computed(() => {
856
856
  const node = nodeSize.value;
857
857
  const gap = Math.round((props.size - node) / 2);
858
- const translateX = props.modelValue ? switchWidth.value - node - gap * 2 : 0;
858
+ const left = props.modelValue ? switchWidth.value - node - gap : gap;
859
859
  return {
860
860
  width: `${node}px`,
861
861
  height: `${node}px`,
862
862
  top: `${gap}px`,
863
- left: `${gap}px`,
864
- transform: `translateX(${translateX}px)`
863
+ left: `${left}px`
865
864
  };
866
865
  });
867
866
  const handleClick = (e) => {
@@ -892,7 +891,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
892
891
  };
893
892
  }
894
893
  });
895
- const uSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-ea7de305"]]);
894
+ const uSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-8922fa66"]]);
896
895
  const _hoisted_1$y = ["src", "mode", "lazy-load", "fade"];
897
896
  const _hoisted_2$p = {
898
897
  key: 0,