@microduino/buggy-component
v1.1.2
Published
microduino component design for react
Downloads
6
Readme
react components for buggy
example地址:https://alexwang007.github.io/buggyComponentExample
npm i @microduino/buggy-component --save-dev
使用babel-plugin-import实现按需加载
安装 babel-plugin-import 插件
npm i babel-plugin-import -D
// 在 .babelrc 或 babel-loader 中添加插件配置
{
"plugins": [
["import", {
"libraryName": "@microduino/buggy-component",
"style": "css",
"camel2DashComponentName": false
}]
]
}
// 引入组件,具体props说明详见example
import {
ColorPlate,
NumberInput,
OctaveSelect,
SoundSelect,
SpeedSlider,
DotColor
} from '@microduino/buggy-component'