cipchk / nz-schema-form

ng-zorro-antd form generation based on JSON-Schema
MIT License
40 stars 14 forks source link

提交按钮默认可以触发点击事件 #48

Open 80631004 opened 6 years ago

80631004 commented 6 years ago

json: { "debug": true, "properties": { "username": { "type": "string", "title": "用户名", "widget": { "placeholder": "请输入用户名", "autocomplete": "off" } } }, "required": [], "button": { "items": [ { "label": "登录", "id": "send", "submit": true }, { "label": "重置", "id": "reset" } ] } }

问题是,username为非必填,但还需要输入后,鼠标在其它任何地方点一下之后,submit button才可点击.