Installations
npm install boss-react-ui
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
7.6.0
NPM Version
5.3.0
Score
39.1
Supply Chain
65.6
Quality
64.4
Maintenance
25
Vulnerability
93.1
License
Releases
Unable to fetch releases
Love this project? Help keep it running — sponsor us today! 🚀
Download Statistics
Total Downloads
5,140
Last Day
1
Last Week
3
Last Month
25
Last Year
259
Bundle Size
793.43 kB
Minified
185.79 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.2
Package Id
boss-react-ui@1.1.2
Size
1.57 MB
NPM Version
5.3.0
Node Version
7.6.0
Total Downloads
Cumulative downloads
Total Downloads
5,140
Last Day
0%
1
Compared to previous day
Last Week
-25%
3
Compared to previous week
Last Month
-16.7%
25
Compared to previous month
Last Year
-37%
259
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
15
Dev Dependencies
33
boss-react-ui
一款基于react的UI框架,采用组件分级化思想,将组件分为低阶级组件,中阶组件,高阶组件。
详细组件使用方法: http://www.wetalks.cn/boss-ui-doc/index.html#/info/index
开发模式
低阶组件 :Components 部分,属于最底层的组件,跟业务毫无关联,只实现最基础应有的功能,比如Button, input, select等。将其封装暴露出该有的方法和属性,供更高阶的组件调用。
中阶组件 :Parts 部分,属于交互层的组合组件,实现一些特定业务需求的组件,比如TablePart,EditPart,SearchPart等。将其封装暴露出该有的方法和属性,供更高阶的组件调用。
高阶组件 :Templates 部分,属于最上层的组件,页面级的应用,通常是将中阶组件和低阶组件组合使用,来实现某些业务场景的交互和页面。
安装
推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。
npm install boss-react-ui -s
##快速上手
1import ReactDOM from 'react-dom'; 2import React , { Component }from 'react'; 3import {Components, Parts, utils} from 'boss-react-ui'; 4const { Buttons, Input, Modal } = Components; 5class Info extends Component { 6 constructor(props) { 7 super(props); 8 this.state = { 9 confirmDirty: false, 10 }; 11 } 12 render(){ 13 return (<Buttons 14 text="confirm" 15 type={'primary'} 16 style={{'marginTop':'20px'}} 17 onClick={() => { Modal.confirm({ title: 'warning', content: 'this is a warning', type: 'small' }, () => { alert('this is sure callback'); }, () => { alert('this is cancle callback'); }); }} 18 />) 19 } 20
##目录结构
.
├── Components
│ ├── Button
│ ├── Carousel
│ ├── Checkbox
│ ├── Collapse
│ ├── CommonCheckbox
│ ├── Container
│ ├── DatePicker
│ ├── Dynamic
│ ├── FileUp
│ ├── Grid
│ ├── Icon
│ ├── Input
│ ├── Label
│ ├── Loader
│ ├── Loading
│ ├── Modal
│ ├── Pagination
│ ├── Progress
│ ├── Radio
│ ├── RichEditor
│ ├── Select
│ ├── Style
│ ├── Switch
│ ├── Tab
│ ├── Table
│ ├── Textarea
│ ├── Toaster
│ ├── Transition.js
│ ├── Tree
│ ├── fonts
│ └── index.js
├── Parts
│ ├── DetailPart
│ ├── DrawPart
│ ├── EditPart
│ ├── LabelPart
│ ├── MixPart
│ ├── SearchPart
│ ├── TablePart
│ ├── TitlePart
│ ├── TransferPart
│ ├── factory.js
│ └── index.js
├── Templates
│ ├── DetailTemplate
│ ├── EditTemplate
│ ├── ListTemplate
│ ├── RichDetailTemplate
│ ├── index.js
│ └── init
├── index.js
└── utils
├── array.js
├── auth.js
├── base.js
├── date.js
├── dom.js
├── fetch.js
├── filter.js
├── index.js
├── string.js
├── url.js
└── validFuncs.js

No vulnerabilities found.

No security vulnerabilities found.