gbs-ui-formsearch
v1.0.2
Published
FormSearch
Downloads
1
Readme
gbs-ui-FormSearch
安装
Install
$ npm install gbs-ui-FormSearch --save
传参
传参格式
{ labelWidth: 200, button: [ /底部按钮组/ { label: '查询', type: 'search', fuction: function(e) { /* 组件调用事件 */ console.log(e) } }, { label: '重置', type: 'Reset', fuction: function(e) { console.log(e) } } ], data: [ /表单item 类型 目前支持类型 RangePicker DatePicker MonthPicker WeekPicker Input Select Radio/ { label: '日期', name: 'date', placeholder: '', type: 'RangePicker' }, { label: '生日', name: 'Birthday', placeholder: '', type: 'DatePicker' }, { label: '姓名', name: 'Name', placeholder: '请输入姓名', type: 'Input' }, { label: '性别', name: 'Gender', placeholder: '', type: 'Select', data: [ { label: '男', value: 0 }, { label: '女', value: 1 } ] }, { label: '性别', placeholder: '', name: 'Gender1', type: 'Radio', data: [ { label: '男', value: 0 }, { label: '女', value: 1 } ] } ] }
##使用
import 组件名 from 'gbs-ui-FormSearch';
##DEOM
import gbsUiFormSearch from 'gbs-ui-FormSearch';