@yunlefun/vue 0.0.8-beta.1 → 0.0.8-beta.3

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,7 +1,5 @@
1
1
  <template>
2
- <div class="bg-gray-100">
3
- <nav class="flex justify-between mx-auto">
4
- <slot />
5
- </nav>
6
- </div>
2
+ <nav class="mx-auto flex justify-between" bg="$ylf-bottom-menu-c-bg">
3
+ <slot />
4
+ </nav>
7
5
  </template>
@@ -37,16 +37,9 @@ const emit = defineEmits(['click'])
37
37
  <style lang="scss">
38
38
  .ylf-bottom-menu-item {
39
39
  color: var(--ylf-c-text, black);
40
- background-color: var(--ylf-bottom-menu-c-bg, #fff);
41
40
 
42
41
  &.active {
43
42
  color: var(--ylf-c-primary, dodgerblue);
44
43
  }
45
44
  }
46
-
47
- .dark {
48
- .ylf-bottom-menu-item {
49
- --ylf-bottom-menu-c-bg: #222;
50
- }
51
- }
52
45
  </style>
@@ -1,8 +1,8 @@
1
1
  <template>
2
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
3
+ class="flex items-center justify-center bg-white p-2 dark:bg-gray-800"
4
+
5
+ rounded shadow transition hover:shadow-md
6
6
  >
7
7
  <slot />
8
8
  </div>
@@ -47,3 +47,13 @@ function onClick(item: BottomMenuItem) {
47
47
  />
48
48
  </YlfBottomMenu>
49
49
  </template>
50
+
51
+ <style>
52
+ :root {
53
+ --ylf-bottom-menu-c-bg: #fafafa;
54
+ }
55
+
56
+ .dark {
57
+ --ylf-bottom-menu-c-bg: #222;
58
+ }
59
+ </style>
@@ -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.cjs CHANGED
@@ -3,7 +3,8 @@
3
3
  const node_path = require('node:path');
4
4
  const node_url = require('node:url');
5
5
 
6
- const _dirname = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
6
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
+ const _dirname = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
7
8
  const componentsDir = node_path.resolve(_dirname, "../components");
8
9
 
9
10
  exports._dirname = _dirname;
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.1",
4
+ "version": "0.0.8-beta.3",
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
  }