0.1.1 • Published 3 months ago

@yunlefun/vue v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

@yunlefun/vue

Vue toolkit(components/composables) for YunLeFun.

Usage

pnpm add -D @yunlefun/vue sass

Use it in Nuxt

export default defineNuxtConfig({
  modules: [
    // ...
    '@vueuse/nuxt',
    '@unocss/nuxt',
    '@pinia/nuxt',
    // add this line
    '@yunlefun/vue/nuxt',
  ],
})

Add auto import resolver for vue components

// vite.config.ts
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'

export default defineConfig({
  plugins: [
    // https://github.com/antfu/unplugin-vue-components
    Components({
      // allow auto load markdown components under `./src/components/`
      extensions: ['vue', 'md'],
      // allow auto import and register components used in markdown
      include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
      dts: 'src/components.d.ts',
      resolvers: [
        // add @yunlefun/vue auto import resolver
        YlfResolver(),
      ],
      di
    }),
  ]
})

You can use <YlfXxx /> components in your vue files directly.

0.1.0

3 months ago

0.1.1

3 months ago

0.0.9

4 months ago

0.0.8

5 months ago

0.0.8-beta.4

7 months ago

0.0.8-beta.3

7 months ago

0.0.8-beta.2

7 months ago

0.0.8-beta.1

7 months ago

0.0.8-beta.0

9 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago