@fecp/mobile 1.1.4 → 1.1.5
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { createBlock, openBlock, mergeProps, unref, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
5
|
+
import { computed, createBlock, openBlock, mergeProps, unref, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
6
6
|
import { routeProps, useRoute } from "../../../utils/use-route.mjs";
|
|
7
7
|
import { FloatingBubble } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/floating-bubble/index.mjs";
|
|
8
8
|
const _sfc_main = {
|
|
@@ -22,11 +22,19 @@ const _sfc_main = {
|
|
|
22
22
|
},
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const route = useRoute();
|
|
25
|
+
const props = __props;
|
|
26
|
+
const compMagnetic = computed(() => {
|
|
27
|
+
if (props.axis == "xy") {
|
|
28
|
+
return props.magnetic;
|
|
29
|
+
} else {
|
|
30
|
+
return "";
|
|
31
|
+
}
|
|
32
|
+
});
|
|
25
33
|
return (_ctx, _cache) => {
|
|
26
34
|
const _component_van_floating_bubble = FloatingBubble;
|
|
27
35
|
return openBlock(), createBlock(_component_van_floating_bubble, mergeProps(_ctx.$attrs, {
|
|
28
36
|
axis: __props.axis,
|
|
29
|
-
magnetic:
|
|
37
|
+
magnetic: compMagnetic.value,
|
|
30
38
|
onClick: unref(route)
|
|
31
39
|
}), createSlots({ _: 2 }, [
|
|
32
40
|
renderList(_ctx.$slots, (item, key) => {
|
|
@@ -37,7 +45,7 @@ const _sfc_main = {
|
|
|
37
45
|
])
|
|
38
46
|
};
|
|
39
47
|
})
|
|
40
|
-
]), 1040, ["axis", "onClick"]);
|
|
48
|
+
]), 1040, ["axis", "magnetic", "onClick"]);
|
|
41
49
|
};
|
|
42
50
|
}
|
|
43
51
|
};
|
|
@@ -24,11 +24,19 @@ const _sfc_main = {
|
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
26
|
const route = useRoute.useRoute();
|
|
27
|
+
const props = __props;
|
|
28
|
+
const compMagnetic = vue.computed(() => {
|
|
29
|
+
if (props.axis == "xy") {
|
|
30
|
+
return props.magnetic;
|
|
31
|
+
} else {
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
});
|
|
27
35
|
return (_ctx, _cache) => {
|
|
28
36
|
const _component_van_floating_bubble = index.FloatingBubble;
|
|
29
37
|
return vue.openBlock(), vue.createBlock(_component_van_floating_bubble, vue.mergeProps(_ctx.$attrs, {
|
|
30
38
|
axis: __props.axis,
|
|
31
|
-
magnetic:
|
|
39
|
+
magnetic: compMagnetic.value,
|
|
32
40
|
onClick: vue.unref(route)
|
|
33
41
|
}), vue.createSlots({ _: 2 }, [
|
|
34
42
|
vue.renderList(_ctx.$slots, (item, key) => {
|
|
@@ -39,7 +47,7 @@ const _sfc_main = {
|
|
|
39
47
|
])
|
|
40
48
|
};
|
|
41
49
|
})
|
|
42
|
-
]), 1040, ["axis", "onClick"]);
|
|
50
|
+
]), 1040, ["axis", "magnetic", "onClick"]);
|
|
43
51
|
};
|
|
44
52
|
}
|
|
45
53
|
};
|