基于 ant-design-1.x 定制,https://harrydengchao.github.io/bcs-design/docs/react/introduce
npm install bcsd
anujs 作为 React核心库
ant-design-1.11.6 的定制。兼容IE8,部分兼容IE7
bash
npm install --save bcsd
`
示例
`jsx
import { DatePicker } from 'bcsd';
ReactDOM.render( , mountNode);
`
引入样式:
`jsx
import 'bcsd/dist/bcsd.css';
`
按需加载
按需加载可通过使用插件 babel-plugin-import。
`javascript
"plugins": [
["import", {
"libraryName": "bcsd",
"style": "css"
}]
]
``