npm.io
1.0.19 • Published 3 years ago

cedar-components-web

Licence
Version
1.0.19
Deps
8
Size
1.2 MB
Vulns
0
Weekly
0

cedar

安装

使用 npm 或 yarn 安装

pnpm install cedar-components

引入 cedar-components

完整引入
需要注意的是 css 样式文件需要单独引入

在 main.js 中写入以下内容:

import { createApp } from 'vue'
import App from './App.vue'
// 导入组件库
import Cedar from 'cedar-components'
import 'cedar/dist/style.css'

const app = createApp(App)
app.use(Cedar)
app.mount('#app')
愉快开始
<cedar-button>默认按钮</cedar-button>