znui-react-filter
v2.0.12
Published
Web filter component.
Downloads
7
Readme
znui-react-filter
Filter Component.
Demo
Installation
npm install znui-react-filter -s
Usage
var ReactDOM = require('react-dom');
var filter = require('znui-react-filter');
ReactDOM.render(<div className="components">
<filter.Filter data={[
{ label: '姓名', name: 'name', opt: '=', value: 'yangyxu' },
{ label: '年龄', name: 'age', opt: '=', value: '20' },
{ label: '性别', name: 'sex', opt: '=', value: '男' }
]} onFilterChange={(event, data, filter)=>console.log(data)} />
<filter.FilterField onFilterChange={(event)=>console.log(event)} />
<filter.FilterField opts={['=', '%', '!=']} />
</div>, document.getElementById('container'));
License
MIT