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

@@ -45,8 +45,8 @@ export function setupVbenForm<
const { config, defineRules } = options;
const {
disabledOnChangeListener = false,
disabledOnInputListener = false,
disabledOnChangeListener = true,
disabledOnInputListener = true,
emptyStateValue = undefined,
} = (config || {}) as FormCommonConfig;

View File

@@ -89,8 +89,8 @@ const computedSchema = computed(
componentProps = {},
controlClass = '',
disabled,
disabledOnChangeListener = false,
disabledOnInputListener = false,
disabledOnChangeListener = true,
disabledOnInputListener = true,
emptyStateValue = undefined,
formFieldProps = {},
formItemClass = '',

View File

@@ -151,12 +151,12 @@ export interface FormCommonConfig {
disabled?: boolean;
/**
* 是否禁用所有表单项的change事件监听
* @default false
* @default true
*/
disabledOnChangeListener?: boolean;
/**
* 是否禁用所有表单项的input事件监听
* @default false
* @default true
*/
disabledOnInputListener?: boolean;
/**