🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

anice-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anice-ui

react ui components base on antd

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

nice-ui

基于 react、antd 封装的场景化 ui 库

Project setup

$ npm install --verbose


$ cd website && npm install --verbose

New & Remove

$ npm run new


$ npm run remove

Development

$ npm run watch

$ npm run website

# 打开 http://127.0.0.1:9999/

Build

$ npm run build

Install

$ npm install anice-ui@https://github.com/rgy19930329/nice-ui.git#master --save

或者


$ npm install anice-ui --verbose

Usage

// 方案一: 修改 webpack 配置:

module: {
  loaders: [
    {
      test: /\.(js|jsx)$/,
      include: [
        ...
        path.resolve(__dirname, 'node_modules/anice-ui/src'),
      ],
    }
  ]
}

// 方案二:配置babel plugins

// 第一步

"plugins": [
  [
    "import", {
      "libraryName": "anice-ui",
      "libraryDirectory": "es",
    }
  ]
]

// 第二步 入口文件中添加:

import "antd/dist/antd.css";

// 第三步 入口文件中添加:

import "babel-polyfill";

// 或者 在 webpack 配置的 entry 字段最前面添加

entry: [
  "babel-polyfill",
  //...
]

Import

import { Label } from "anice-ui";

Components

ComponentDescAuthorDate
Label数据展示 - 字段名和值rgy2019-5-1
EnumSelect表单组件 - 下拉选择组件rgy2019-08-08 15:25:34
RichText表单组件 - 富文本编辑器rgy2019-08-12 10:08:10
HocAsync高阶组件 - 代码分割,按需加载rgy2019-08-13 13:58:31
HocLoading高阶组件 - 为组件添加数据加载 Loading 效果rgy2019-08-13 14:05:54
CellLimit数据展示 - 超出限制宽度部分通过省略号展示rgy2019-08-13 17:17:11
EnumChoice表单组件 - 选择组件(包括单选、复选)rgy2019-08-13 22:41:53
Section布局组件 - 区域包裹工具rgy2019-08-13 23:28:53
RTabs布局组件 - 区域现实隐藏切换rgy2019-08-16 15:33:54
EditTable表单组件 - 可编辑表格rgy2019-08-16 15:59:24
HocDebounce高阶组件 - 防抖rgy2019-08-19 14:49:21
ValidateWrapper数据展示 - 校验信息提示容器rgy2019-08-27 17:42:46
FormTable表单组件 - 表格表单项组件rgy2019-08-30 18:00:28
withQuery高阶组件 - 参数解析rgy2019-09-02 11:35:13
withFormInChild高阶组件 - 在 context 中传递 formrgy2019-09-02 17:13:03
PureField表单组件 - 纯数据展示rgy2019-09-03 13:39:31
SearchWrapper布局组件 - 搜索区包裹组件rgy2019-09-03 15:39:49
RotateToggle控制组件 - 旋转开关rgy2019-09-03 18:27:17
MarkDown数据展示 - 解析 markdown 文本并展示rgy2019-09-04 13:59:17
InlineList数据展示 - 行内列表数据展示rgy2019-09-05 15:41:56
RUpload表单组件 - 文件上传rgy2019-09-10 14:53:45
RCheckbox表单组件 - 映射 Checkbox 的值rgy2019-09-17 16:43:41
ListPage场景组件 - 带查询条件的列表页rgy2019-10-04 09:40:04
MultiItems表单组件 - 为自定义的选择组件提供输入框展示模式rgy2019-10-09 09:09:52
HzTable场景组件 - 表格组件RGY2019-12-11 13:45:15

FAQs

Package last updated on 30 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts