yingview-form

1.0.13 • Public • Published

Projec

yingview组件库

#Button 按钮

#参数

	text: '确    定',
	type: 'normal', 'submit', 'cancel'
	className: '',
	style: {},
	onChange: () => { },
	onblur: () => { },
	onFocus: () => { },
	onClick: () => { },

#使用
	<Button
		text='确    定'
		type='normal'
		className=''
		style={}
		onChange=() => { }
		onblur=() => { }
		onFocus=() => { }
		onClick=() => { }
	/>

#Checkbox 复选框

props

名称 类型 描述
value string 选中的值
options object 选项键值对
onChange function 改变回调,参数是改变后的 value
readOnly boolean 只读模式
disabled boolean 禁用模式
name string input 的 name

demo

值2 }} value={['key1']} /> 值2 }} value={['key1']} /> 值2 }} value={['key1']} />

#Input 表单附件

type: 'text','password','number','email','tel'

value: '', fileName: '用户名', className: '', style: {}, sex: 'man', require: false, requireText: '输入格式不正确', placeholder: '请输入内容', maxNumber: '', minNumber: '', maxLength: '', minLength: '', onChange: () => { }, onInput: () => { }, onblur: () => { }, onFocus: () => { }, onClick: () => { },

#使用

#FileUpload 上传附件

text: '附件上传', className: '', accept: [], style: {}, onChange: () => { }, onClick: () => { }

#Pagination

total: 20,
current: 1,
className: '',
style: {},
onChange: () => { },

#Textarea

value: '',

fileName: '备注', className: '', maxLength: 500, style: {}, placeholder: '请输入内容', onChange: () => { }, onblur: () => { }, onFocus: () => { }, onClick: () => { },

Readme

Keywords

Package Sidebar

Install

npm i yingview-form

Weekly Downloads

0

Version

1.0.13

License

ISC

Last publish

Collaborators

  • ying-view