mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 08:06:30 +08:00
feat: pass fieldsChanged
into the handleValuesChange
callback function (#5968)
* fieldsChanged(已被改变值的字段名)将传入handleValuesChange回调函数
This commit is contained in:
@@ -42,6 +42,9 @@ const [BaseForm, baseFormApi] = useVbenForm({
|
||||
fieldMappingTime: [['rangePicker', ['startTime', 'endTime'], 'YYYY-MM-DD']],
|
||||
// 提交函数
|
||||
handleSubmit: onSubmit,
|
||||
handleValuesChange(_values, fieldsChanged) {
|
||||
message.info(`表单以下字段发生变化:${fieldsChanged.join(',')}`);
|
||||
},
|
||||
|
||||
// 垂直布局,label和input在不同行,值为vertical
|
||||
// 水平布局,label和input在同一行
|
||||
|
Reference in New Issue
Block a user