ev-ui
An ui library , some awesome components.
Some Components are available now as below. Home
preview
install
npm install --save ev-ui
usage
first include your code in the EvUI
component
import EvUI from 'ev-ui' { return <EvUI> your code </EvUI> }
Dialog
:
- usage
just show the content:
Dialog
or show comp with props:
const props= content:Comp //Component or string ,required mainBlur:false// the background where filter blur if k1:{} // any other props k2:{}Dialog
- screenshot
ContextMenu
:
- usage
Component /** * first disable the default contextmenu */ { window{ e } /** * then bind the function to the node's onContextMenu event. */ { let menu= // .add(new MenuItem('剪切',()=>{})).type('disabled') // the menuItem will be disabled(gray color and do nothing when clicked) menu && ContextMenu } { return <div onContextMenu=thisonContextMenu>demo</div> }}
- screenshot
Confirm
:
- usage
Confirm
- screenshot
ActionTag
:
- usage
//here use the Icon of the antd for demo,you can use others for example FontAwesome... { return <div style=display:flexflexDirection:rowalignItems:center> <ActionTag iconField=<Icon type='plus'/> textField='Create' onClick={} /> /* set the type*/ <ActionTag iconField=<Icon type='delete'/> textField='Remove' type='danger' onClick={} /> /* or set the size*/ <ActionTag iconField=<Icon type='edit'/> textField='Edit' size='large' onClick={} /> </div> }
- screenshot
Flow
:
- usage
const data= id:'0' name:'Flow0' tasks: point:0name:'Task0'parent:children:1 point:1name:'Task1'parent:0children:23 point:2name:'Task2'parent:1children:4 point:3name:'Task3'parent:1children:4 point:4name:'Task4'parent:23children: id:'1' name:'Flow1' tasks: point:0name:'Task0'parent:children:1 point:1name:'Task1'parent:0children:2 point:2name:'Task2'parent:1children:3 point:3name:'Task3'parent:2children:4 point:4name:'Task4'parent:3children: Component state= processes:data selectedProcess:{} { //update the tasks } { //create process } { return <div className='left-nav'> /* show the processes list */ </div> <div className='content'> <Flow tasks=thisstateselectedProcesstasks onChange=thisonTasksChange onFlowCreate=thisonCreate selectedProcess=thisstateselectedProcess || {}/> </div> }
- screenshot
Loading
- usage
// show Loading.Loading// hide LoadingLoading
The document will be added later.