@loickit-v/swiper 0.0.4 → 0.0.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.
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as T, reactive as A, provide as H, ref as N, watch as k, computed as _, onMounted as V, createElementBlock as Z, openBlock as $, withModifiers as f, createElementVNode as B, normalizeStyle as X, unref as a, renderSlot as y, nextTick as Y } from "vue";
|
2
|
-
import { u_setStyle as b } from "../../vendor
|
2
|
+
import { u_setStyle as b } from "../../vendor/@likcheung.js";
|
3
3
|
import { u_setTransform as m, u_setFlush as j } from "../../utils/index.js";
|
4
4
|
import { SLIDE_DIRECTION as v } from "../constant/index.js";
|
5
5
|
import { checkDirection as z } from "../../utils/slide.js";
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { reactive as
|
1
|
+
import { reactive as r, provide as a, inject as s } from "vue";
|
2
2
|
import { defaultState as c } from "./default.js";
|
3
3
|
const u = (t) => {
|
4
4
|
const e = typeof t == "symbol" ? t : Symbol(t);
|
5
|
-
return [(
|
6
|
-
const
|
5
|
+
return [(i = {}) => {
|
6
|
+
const o = Object.assign(
|
7
7
|
{ name: t },
|
8
8
|
c,
|
9
|
-
|
10
|
-
), n =
|
11
|
-
return
|
12
|
-
}, () =>
|
9
|
+
i
|
10
|
+
), n = r({ ...o });
|
11
|
+
return a(e, n), { state: n, name: e };
|
12
|
+
}, () => s(e)];
|
13
13
|
};
|
14
14
|
export {
|
15
15
|
u as defineSlide
|
package/dist/utils/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SLIDE_DIRECTION as n } from "../components/constant/index.js";
|
2
|
-
import { u_setStyle as r } from "../vendor
|
2
|
+
import { u_setStyle as r } from "../vendor/@likcheung.js";
|
3
3
|
const i = (t, o, s) => {
|
4
4
|
t === n.HORIZONTAL ? r(o, "transform", `translateX(${s}px)`) : r(o, "transform", `translateY(${s}px)`);
|
5
5
|
}, f = (t) => {
|
package/package.json
CHANGED