fix: form support disabledOnInputListener
(#5127)
* fix: form support `disabledOnInputListener` * chore: docs update
This commit is contained in:
@@ -14,6 +14,8 @@ setupVbenForm<ComponentType>({
|
||||
Upload: 'fileList',
|
||||
CheckboxGroup: 'model-value',
|
||||
},
|
||||
// select等组件的筛选功能会抛出input事件,需要禁用表单的input事件监听以免错误地更新了组件值
|
||||
disabledOnInputListener: true,
|
||||
},
|
||||
defineRules: {
|
||||
required: (value, _params, ctx) => {
|
||||
|
@@ -139,6 +139,7 @@ const [Form, formApi] = useVbenForm({
|
||||
fieldName: 'select',
|
||||
label: 'Select',
|
||||
componentProps: {
|
||||
filterable: true,
|
||||
options: [
|
||||
{ value: 'A', label: '选项A' },
|
||||
{ value: 'B', label: '选项B' },
|
||||
|
Reference in New Issue
Block a user