maycur-cloud
v1.0.53
Published
每刻云票公共组件
Downloads
32
Readme
maycur-cloud 每刻云票公共组件库
安装
npm install maycur-cloud
使用
import { CurrencyPrefix } from 'maycur-cloud';
const App = () => (
<CurrencyPrefix amunt={100} />
);
按需加载
需要在config-overrides.js中加入以下配置
fixBabelImports('maycur-cloud', {
libraryName: 'maycur-cloud',
libraryDirectory: 'es',
style: true,
camel2DashComponentName: false,
}),
或者在.babelrc中加入plugins
{
"plugins": [
[
"import",
{
"libraryName": "maycur-cloud",
"style": true,
"libraryDirectory": "es",
"camel2DashComponentName": false
},
"maycur-cloud"
],
]
}