@yunlefun/vue 0.0.8-beta.0 → 0.0.8-beta.2

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
@@ -5,7 +5,7 @@ Vue toolkit(components/composables) for YunLeFun.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- pnpm add -D @yunlefun/vue
8
+ pnpm add -D @yunlefun/vue sass
9
9
  ```
10
10
 
11
11
  ### Use it in Nuxt
@@ -14,7 +14,7 @@ const emit = defineEmits(['click'])
14
14
  :class="{
15
15
  active,
16
16
  }"
17
- class="ylf-bottom-menu-item hover:text-gray-900 cursor-pointer transition"
17
+ class="ylf-bottom-menu-item cursor-pointer transition"
18
18
  flex="~ 1"
19
19
  justify="center" items="center"
20
20
  text-gray-800 dark="text-white"
@@ -24,12 +24,14 @@ const items: BottomMenuItem[] = [
24
24
  ]
25
25
 
26
26
  // when using vue-router
27
- // import { useRouter } from 'vue-router'
27
+ // import { useRoute, useRouter } from 'vue-router'
28
+ // const route = useRoute()
28
29
  // const router = useRouter()
29
- // const active = computed(() => router.currentRoute.value.path)
30
+ // const active = computed(() => route.path)
31
+
30
32
  const active = ref('/')
31
33
  function onClick(item: BottomMenuItem) {
32
- // router.push(item.to)
34
+ // router.push(item.to || '/')
33
35
  active.value = item.to || ''
34
36
  }
35
37
  </script>
@@ -16,5 +16,5 @@ export interface BottomMenuItem {
16
16
  * onClick
17
17
  * @returns
18
18
  */
19
- onClick?: () => void
19
+ onClick?: (...args: any[]) => void
20
20
  }
package/dist/index.d.cts CHANGED
@@ -16,7 +16,7 @@ interface BottomMenuItem {
16
16
  * onClick
17
17
  * @returns
18
18
  */
19
- onClick?: () => void;
19
+ onClick?: (...args: any[]) => void;
20
20
  }
21
21
 
22
22
  declare const _dirname: string;
package/dist/index.d.mts CHANGED
@@ -16,7 +16,7 @@ interface BottomMenuItem {
16
16
  * onClick
17
17
  * @returns
18
18
  */
19
- onClick?: () => void;
19
+ onClick?: (...args: any[]) => void;
20
20
  }
21
21
 
22
22
  declare const _dirname: string;
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ interface BottomMenuItem {
16
16
  * onClick
17
17
  * @returns
18
18
  */
19
- onClick?: () => void;
19
+ onClick?: (...args: any[]) => void;
20
20
  }
21
21
 
22
22
  declare const _dirname: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yunlefun/vue",
3
3
  "type": "module",
4
- "version": "0.0.8-beta.0",
4
+ "version": "0.0.8-beta.2",
5
5
  "description": "Components for YunLeFun",
6
6
  "exports": {
7
7
  "./components/*": "./components/*",
@@ -28,7 +28,7 @@
28
28
  "typecheck": "vue-tsc --noEmit"
29
29
  },
30
30
  "devDependencies": {
31
- "nuxt": "^3.6.5",
32
- "unplugin-vue-components": "^0.25.1"
31
+ "nuxt": "^3.8.0",
32
+ "unplugin-vue-components": "^0.25.2"
33
33
  }
34
34
  }