Skip to content

快速入门

安装

核心库

Npm

shell
npm i @vue-styled-components/core

Yarn

shell
yarn add @vue-styled-components/core

Pnpm

shell
pnpm i @vue-styled-components/core

Vite 插件

Npm

shell
npm i @vue-styled-components/plugin

Yarn

shell
yarn add @vue-styled-components/plugin

Pnpm

shell
pnpm i @vue-styled-components/plugin

Vite 配置

ts
import vueStyledPlugin from "@vue-styled-components/plugin"
// ...

export default defineConfig({
  // ...
  plugins: [
    vueStyledPlugin()
    // ...
  ]
})

开始使用

根据 Apache-2.0 许可发布。