fix: naive ui form reset does not meet expectations (#4569)
* fix: naive ui form reset does not meet expectations * fix: typo
This commit is contained in:
@@ -84,7 +84,10 @@ setupVbenForm<FormComponentType>({
|
||||
Upload: NUpload,
|
||||
},
|
||||
config: {
|
||||
// naive-ui组件不接受onChang事件,所以需要禁用
|
||||
disabledOnChangeListener: true,
|
||||
// naive-ui组件的空值为null,不能是undefined,否则重置表单时不生效
|
||||
emptyStateValue: null,
|
||||
baseModelPropName: 'value',
|
||||
modelPropNameMap: {
|
||||
Checkbox: 'checked',
|
||||
|
Reference in New Issue
Block a user