shinneyou

Results 2 comments of shinneyou

可以自己基于upload组件外面包裹一层,通过schema的props把需要的属性传进去,然后解析出来挂载upload组件上 ```javascript const uploadWrap = (props) => { {onchange, ...otherProps} = props; } ```

```javascript // 当schema 为这种时 const schema = { type: 'object', properties: { input: { title: '简单输入框', type: 'string', min: 6, rules: [ { pattern: '^[A-Za-z0-9]+$', message: '只允许填写英文字母和数字', }, ], },...