fix: form component events bind (#5137)

* fix: from component events bind

* chore: update docs

* chore: default value and docs sync
This commit is contained in:
Netfan
2024-12-14 17:42:13 +08:00
committed by GitHub
parent 0410f1e1be
commit 698daf46c7
6 changed files with 6 additions and 12 deletions

View File

@@ -10,8 +10,6 @@ import { $t } from '@vben/locales';
setupVbenForm<ComponentType>({
config: {
// naive-ui组件不接受onChang事件所以需要禁用
disabledOnChangeListener: true,
// naive-ui组件的空值为null,不能是undefined否则重置表单时不生效
emptyStateValue: null,
baseModelPropName: 'value',