@loickit-v/swiper 0.0.3 → 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.
package/README.md CHANGED
@@ -12,13 +12,11 @@ the Slide Component
12
12
 
13
13
  identification of this slide, get by `defineSlide`
14
14
 
15
- - list
16
- \<Array>
15
+ - list \<Array>
17
16
 
18
17
  just avaliable `infinite` mode, the long list of render, will cached by `slotScope.cacheList`
19
18
 
20
- - loadMore
21
- \<Function>
19
+ - loadMore \<Function>
22
20
 
23
21
  just avaliable `infinite` mode, when the pointer points to the cacheList end, will trigger.
24
22
 
@@ -30,7 +28,7 @@ define a slide object
30
28
 
31
29
  argument:
32
30
 
33
- - provideKey \<Symbol> | <String>
31
+ - provideKey \<string>
34
32
 
35
33
  the identification of target slide
36
34
 
@@ -76,6 +74,8 @@ return \[createSlide, useSlide]
76
74
 
77
75
  return: \<SlideSate>
78
76
 
77
+ use it to get slide state in any child component
78
+
79
79
  #### Slot
80
80
 
81
81
  **default**
@@ -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/node_modules/.pnpm/@likcheung_shared@0.0.7/node_modules/@likcheung/shared/dist/index.js";
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 i, provide as s, inject as a } from "vue";
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 [(o = {}) => {
6
- const r = Object.assign(
5
+ return [(i = {}) => {
6
+ const o = Object.assign(
7
7
  { name: t },
8
8
  c,
9
- o
10
- ), n = i(window.structuredClone(r));
11
- return s(e, n), { state: n, name: e };
12
- }, () => a(e)];
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
@@ -1,5 +1,5 @@
1
1
  import { SLIDE_DIRECTION as n } from "../components/constant/index.js";
2
- import { u_setStyle as r } from "../vendor/node_modules/.pnpm/@likcheung_shared@0.0.7/node_modules/@likcheung/shared/dist/index.js";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loickit-v/swiper",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "loickit swiper components for vue",
5
5
  "type": "module",
6
6
  "types": "./dist/types/index.d.ts",