You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document/components/docs/en-US/form.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,11 @@ CubeForm is a schema-based form generator component.
142
142
type:'upload',
143
143
modelKey:'uploadValue',
144
144
label:'Upload',
145
+
events: {
146
+
'file-removed': (...args) => {
147
+
console.log('file removed', args)
148
+
}
149
+
},
145
150
rules: {
146
151
required:true,
147
152
uploaded: (val, config) => {
@@ -415,6 +420,7 @@ CubeForm is a schema-based form generator component.
415
420
| modelKey | Name of property in the `form` model |String|-|-|
416
421
| label | Label of field |String|-|-|
417
422
| props | This value will be the `type` or `component` props |Object|-|-|
423
+
| events<sup>1.8.0+</sup>| This value will be the `type` or `component` custom events |Object|-|-|
418
424
| rules | Validator rules, see <a href="#/en-US/docs/validator#cube-Props-anchor">Validator</a>|Object|-|-|
419
425
| trigger<sup>1.8.0+</sup>| If set to 'blur' then will be validate this filed when blur |String| blur/change |-|
420
426
| debounce<sup>1.8.0+</sup>| Debounce validating time(ms). If`trigger` is 'blur' then the debounce will be ignored |Number/Boolean|>=0, if set to true the time will be 200(ms) |-|
0 commit comments