@8btc/bbt-design 中文文档教程
BBT Design Vue
一种网页设计语言
how to use ?
import bbtDesign from '@8btc/bbt-design'
import '@8btc/bbt-design/dist/styles/index.css'
Vue.use(bbtDesign)
如果你想按需使用?
yarn add babel-plugin-import --dev
然后编辑 .babelrc:
"plugins": [
["import", {
"libraryName": "@8btc/bbt-design",
"libraryDirectory": "src/components"
}]
],
然后编辑 main.js
import { Alert, Panel } from '@8btc/bbt-design'
Vue.component('bbt-alert', Alert)
Vue.component('bbt-panel', Panel)
BBT Design Vue
A Web Design Language
how to use ?
import bbtDesign from '@8btc/bbt-design'
import '@8btc/bbt-design/dist/styles/index.css'
Vue.use(bbtDesign)
If you want to On-demand use?
yarn add babel-plugin-import --dev
Then edit .babelrc:
"plugins": [
["import", {
"libraryName": "@8btc/bbt-design",
"libraryDirectory": "src/components"
}]
],
Then edit main.js
import { Alert, Panel } from '@8btc/bbt-design'
Vue.component('bbt-alert', Alert)
Vue.component('bbt-panel', Panel)