Skip to content

Latest commit

 

History

History
103 lines (62 loc) · 2.45 KB

README_CN.md

File metadata and controls

103 lines (62 loc) · 2.45 KB

中文 | English

npm version Dependency Status devDependency Status

UXCore is a set of React Components that is designed for enterprise-class pc backend application.

  • 丰富的组件功能: 超过 50 个高质量组件供使用

  • 专注于企业级中后台应用场景: 强大易用的表单表格

  • 精心设计的视觉风格: 深耕中后台场景,让工作变得简单幸福。

点击 文档站点 获取动态演示例子。

在提 issue 之前, 请阅读 更新日志 获取最新的功能更新。

安装

npm install uxcore --save

使用

引入 js

import { Button } from 'uxcore';
ReactDOM.render(<Button />, mountNode);

按需引入 js

// .babelrc or babel-loader option
{
  "plugins": [
    ["import", { libraryName: "uxcore", camel2DashComponentName: false }]
  ]
}

然后只需从 uxcore 引入模块即可。

// babel-plugin-import 会帮助你按需加载 JS
import { Button } from 'uxcore';
  • 或者,手动引入

    import Button from 'uxcore/lib/Button';

引入样式包

@import '~uxcore/assets/iconfont.css';
@import '~uxcore/assets/orange.css';

React 兼容性

0.14.9 - 16.x

�浏览器支持

主流浏览器及 IE9+

对于一些浏览器(如 IE),需要 babel-polyfill 等 PolyFill 的支持

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <!-- Polyfills -->
    <script src="https://g.alicdn.com/platform/c/babel-polyfill/6.26.0/dist/polyfill.min.js"></script>
  </head>
</html>

项目共建

我们非常欢迎您一起将 uxcore 做的更好! 查看 CONTRIBUTING 文档 获取详细信息。

许可

本项目基于 MIT 协议 进行开发和发布