1.0.3 • Published 8 years ago

bigsec-ui v1.0.3

Weekly downloads
4
License
MIT
Repository
-
Last release
8 years ago

Bigsec Design

An enterprise-class UI design language and React-based implementation.

Features

  • An enterprise-class design language and high quality UI style.
  • Rich library of UI components base on React Component.
  • A npm + webpack + babel + dora workflow.

Install

npm install bigsec-ui

Usage

Use prebuilt bundle

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

And import style manually:

import 'bigsec-ui/dist/bigsec-ui.css';  // or 'bigsec-ui/dist/bigsec-ui.less'

Use modularized antd

  • Use babel-plugin-antd (Recommended)

    // .babelrc
    {
      "plugins": [["bigsec-ui", { style: "css" }]]
    }

    Then you can import components from bigsec-ui directly.

    // import js and css modularly, parsed by babel-plugin-antd
    import { DatePicker } from 'bigsec-ui'; 
  • Manually import

    import DatePicker from 'bigsec-ui/lib/date-picker';  // just for js

Browser Support

Normal browsers and Internet Explorer 8+.

IE8 issues

TypeScript

tsconfig.json

{
  "compilerOptions": {
    "moduleResolution": "node",
    "jsx": "preserve"
  }
}

Links