0.0.11 • Published 1 year ago
wanghong001-components v0.0.11
cds-component
本组件库包含三部分:1、基础组件,2、业务组件,3、布局组件;这里是第一部分——基础组件
//安装
npm i wanghong001-components
//main.js
//黑色主题配色,如果不需要可以不引入
import 'wanghong001-components/theme-chalk/dark-var.scss'
//默认主题配色 及 组件样式
import 'wanghong001-components/theme-chalk/common.scss'
//组件按需引入
import {CdsButton} from 'wanghong001-components'
let app = createApp(App)
app.component(CdsButton.name, CdsButton)
app.mount('#app')
//使用
<template>
<cds-button type="primary">点我点我</cds-button>
</template>