@yunlefun/vue 0.0.7 → 0.0.8-beta.0

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.
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div
3
+ class="flex justify-center items-center p-2 bg-white dark:bg-gray-800"
4
+ rounded transition
5
+ shadow hover:shadow-md
6
+ >
7
+ <slot />
8
+ </div>
9
+ </template>
@@ -23,8 +23,13 @@ const items: BottomMenuItem[] = [
23
23
  },
24
24
  ]
25
25
 
26
+ // when using vue-router
27
+ // import { useRouter } from 'vue-router'
28
+ // const router = useRouter()
29
+ // const active = computed(() => router.currentRoute.value.path)
26
30
  const active = ref('/')
27
31
  function onClick(item: BottomMenuItem) {
32
+ // router.push(item.to)
28
33
  active.value = item.to || ''
29
34
  }
30
35
  </script>
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <YlfCard>
3
+ 内容
4
+ </YlfCard>
5
+ </template>
@@ -0,0 +1,4 @@
1
+ ---
2
+ title: Card
3
+ title_zh: 卡片
4
+ ---
@@ -0,0 +1,25 @@
1
+ interface BottomMenuItem {
2
+ title: string;
3
+ /**
4
+ * @description icon class
5
+ */
6
+ icon: string;
7
+ /**
8
+ * @description active icon class
9
+ */
10
+ activeIcon?: string;
11
+ /**
12
+ * @description RouterLink to
13
+ */
14
+ to?: string;
15
+ /**
16
+ * onClick
17
+ * @returns
18
+ */
19
+ onClick?: () => void;
20
+ }
21
+
22
+ declare const _dirname: string;
23
+ declare const componentsDir: string;
24
+
25
+ export { type BottomMenuItem, _dirname, componentsDir };
@@ -0,0 +1,25 @@
1
+ interface BottomMenuItem {
2
+ title: string;
3
+ /**
4
+ * @description icon class
5
+ */
6
+ icon: string;
7
+ /**
8
+ * @description active icon class
9
+ */
10
+ activeIcon?: string;
11
+ /**
12
+ * @description RouterLink to
13
+ */
14
+ to?: string;
15
+ /**
16
+ * onClick
17
+ * @returns
18
+ */
19
+ onClick?: () => void;
20
+ }
21
+
22
+ declare const _dirname: string;
23
+ declare const componentsDir: string;
24
+
25
+ export { type BottomMenuItem, _dirname, componentsDir };
package/dist/index.d.ts CHANGED
@@ -22,4 +22,4 @@ interface BottomMenuItem {
22
22
  declare const _dirname: string;
23
23
  declare const componentsDir: string;
24
24
 
25
- export { BottomMenuItem, _dirname, componentsDir };
25
+ export { type BottomMenuItem, _dirname, componentsDir };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@yunlefun/vue",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.8-beta.0",
5
5
  "description": "Components for YunLeFun",
6
6
  "exports": {
7
7
  "./components/*": "./components/*",
8
8
  "./nuxt": "./nuxt.js",
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "require": "./dist/index.cjs",
12
- "import": "./dist/index.mjs"
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs"
13
13
  },
14
14
  "./*": "./*"
15
15
  },