@yunlefun/vue 0.0.8-beta.3 → 0.0.8

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,15 @@
1
1
  <template>
2
- <nav class="mx-auto flex justify-between" bg="$ylf-bottom-menu-c-bg">
2
+ <nav class="ylf-bottom-menu mx-auto flex justify-between">
3
3
  <slot />
4
4
  </nav>
5
5
  </template>
6
+
7
+ <style>
8
+ .ylf-bottom-menu {
9
+ background-color: var(--ylf-bottom-menu-c-bg, #fff);
10
+ }
11
+
12
+ .dark .ylf-bottom-menu {
13
+ background-color: var(--ylf-bottom-menu-c-bg, #222);
14
+ }
15
+ </style>
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <button class="ylf-button">
3
+ <slot />
4
+ </button>
5
+ </template>
6
+
7
+ <style lang="scss">
8
+ .ylf-button {
9
+ background-color: #fff;
10
+ border: 1px solid #d9d9d9;
11
+ padding: 4px 12px;
12
+
13
+ border-radius: 4px;
14
+ }
15
+ </style>
@@ -47,13 +47,3 @@ 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>
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <YlfButton>
3
+ Button
4
+ </YlfButton>
5
+ </template>
@@ -0,0 +1,4 @@
1
+ ---
2
+ title: Button
3
+ title_zh: 按钮
4
+ ---
package/nuxt.js CHANGED
@@ -6,7 +6,9 @@ export default defineNuxtModule({
6
6
  const { resolve } = createResolver(import.meta.url)
7
7
  // Add ./components dir to the list
8
8
  dirs.push({
9
+ extensions: ['vue'],
9
10
  path: resolve('./components'),
11
+ pathPrefix: false,
10
12
  prefix: '',
11
13
  })
12
14
  },
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.3",
4
+ "version": "0.0.8",
5
5
  "description": "Components for YunLeFun",
6
6
  "exports": {
7
7
  "./components/*": "./components/*",
@@ -28,7 +28,6 @@
28
28
  "typecheck": "vue-tsc --noEmit"
29
29
  },
30
30
  "devDependencies": {
31
- "nuxt": "^3.8.0",
32
- "unplugin-vue-components": "^0.25.2"
31
+ "nuxt": "^3.9.1"
33
32
  }
34
33
  }