使用 npm 或 yarn 安装
pnpm install cedar-components
在 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>