@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 +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +5 -5
- package/package.json +1 -1
- package/src/components/u-switch/u-switch.vue +4 -5
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
|
|
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: `${
|
|
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-
|
|
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,
|