/vine-design

A React mobile UI design language(基于React的mobile端UI框架)

Primary LanguageJavaScriptMIT LicenseMIT

vine-design

A React mobile UI design language

基于 React 的 mobile 端 UI 框架

Build Status Coverage Status tested with jest

Install(安装)

npm install vine-design

Usage(使用)

import { XXX } from "vine-design";
import "vine-design/build/dist/style/index.css";

Use modularized(按需加载)

// .babelrc or babel-loader option
{
  "plugins": [
    ["import", {
      "libraryName": "vine-design",
      "libraryDirectory": "build/lib",
      "style": "css"
    }]
  ]
}

这样就只需从 vine-design 中引入模块即可,无需单独引入样式:

// babel-plugin-import 会帮助你加载 JS 和 CSS
import { XXX } from "antd";

Development(开发)

$ git clone https://github.com/lingxiao-Zhu/vine.git
$ cd vine-design
$ npm install
$ npm start