@beisen-phoenix/mobile-field-upload
v1.0.12
Published
> 移动端区附件上传字段 > > | name | description | type | default | > | ----------- |
Downloads
15
Readme
描述
移动端区附件上传字段
| name | description | type | default | | ----------- | ------------------------------ | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | labelText | 字段的 label | string | | | required | 是否必填 | boolean | false | | readOnly | 是否只读状态 | boolean | false | | hasError | 是否显示错误 | boolean | false | | tipInfo | 提示信息 | string | | | api | 文件上传到服务器的路径 | string | | | name | 字段名 | string | | | attachments | 附件列表 | [{name: string,uid?: string,size?: number,src?: string}] | | | rules | 验证规则 | object | { FileExtensionValidate: {FileExtension: 'FileExtension'}, FileSizeValidate: {FileSize:10000,FileUnit: 'KB'} } | | limitCount | 允许上传附件的最大个数 | numb | 9 | | parseResult | 用于合并上传成功后对结果的处理 | function | (result) => Object |