ness-ui
v1.0.9
Published
ness-ui
Downloads
21
Maintainers
Readme
NESS-UI
基于React开发的移动端UI组件库 📦
演示地址
点击查看
安装
npm install ness-ui
引入
import Button from 'ness-ui'
import 'ness-ui/lib/components/styles/Button.css'
或者
import { Button } from 'ness-ui'
import 'ness-ui/lib/components/styles/Button.css'
如需要配置按需加载,可安装babel-plugin-component来实现组件和样式的按需加载,创建一个.babelrc.js
文件,添加如下配置:
module.exports = {
"plugins": [
["component", {
"libDir": "lib/components",
"camel2Dash": false,
"root": "index",
"libraryName": "ness-ui",
"style":true,
"styleLibrary": {
"name": "styles"
}
}, "ness-ui"]
]
};
配置成功后,即可像下面这样引入组件即可:
import { Button } from 'ness-ui'