igroot
TypeScript icon, indicating that this package has built-in type declarations

1.6.6 • Public • Published

iGroot

一套企业级的 UI 设计语言和 React 实现。

支持环境

  • 现代浏览器和 IE9 及以上。
  • 支持服务端渲染。
  • Electron

安装

npm install igroot

示例

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

手动引入样式:

import 'igroot/dist/igroot.css';  // or 'igroot/dist/igroot.less'

按需加载可通过此写法 import DatePicker from 'igroot/lib/date-picker' 或使用插件 babel-plugin-import

TypeScript

// tsconfig.json
{
  "compilerOptions": {
    "moduleResolution": "node",
    "jsx": "preserve",
    "allowSyntheticDefaultImports": true
  }
}

注意:

  • 设置 allowSyntheticDefaultImports 避免 error TS1192: Module 'react' has no default export 的错误。
  • 本UI组件是基于ant-design做的二次改造
  • 空格

链接

待完善...

Package Sidebar

Install

npm i igroot

Weekly Downloads

108

Version

1.6.6

License

MIT

Unpacked Size

47.5 MB

Total Files

966

Last publish

Collaborators

  • smoclock
  • guoqn
  • dengxian.mo