diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 4e58d3544..3ceb6a964 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -87,6 +87,7 @@
@inputStringBlur="inputStringBlur"
@inputNumberChange="inputNumberChange"
@tableFormSelectOnBlur="tableFormSelectOnBlur"
+ @formFormDateChange="formFormDateChange"
/>
@@ -484,12 +485,17 @@ const emit = defineEmits([
'inputStringBlur',
'onChange',
'onBlur',
- 'inputNumberChange'
+ 'inputNumberChange',
+ 'formFormDateChange'
])
//普通下拉改变事件
const formSelectChange = (field, val, row) => {
emit('formSelectChange', field, val, row)
}
+// 日期改变事件
+const formFormDateChange = (field, val,row, index) => {
+ emit('formFormDateChange', field, val,row, index)
+}
const formSelectvVisibleChange = (field, val, row) => {
emit('formSelectvVisibleChange', field, val, row)
}
diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue
index c360d9f86..ee1a8b6c2 100644
--- a/src/components/TableForm/src/TableForm.vue
+++ b/src/components/TableForm/src/TableForm.vue
@@ -146,7 +146,8 @@
:disabled="itemIsDisabled(headerItem, row)"
:placeholder="headerItem?.tableForm?.placeholder || '选择日期'"
:format="headerItem?.tableForm?.format || 'YYYY-MM-DD'"
- :value-format="headerItem?.tableForm?.valueFormat || 'YYYY-MM-DD'" />
+ :value-format="headerItem?.tableForm?.valueFormat || 'YYYY-MM-DD'"
+ @change="formFormDateChange(headerItem.field, $event,row, $index)" />
{
@@ -358,6 +360,10 @@ const initSelectOptions = (item) => {
const formSelectChange = (field, val,row) => {
emit('formSelectChange', field, val,row)
}
+// 日期改变事件
+const formFormDateChange = (field, val,row, index) => {
+ emit('formFormDateChange', field, val,row, index)
+}
// 普通下拉失焦事件
const tableFormSelectOnBlur = (field, val,row,index) => {
emit('tableFormSelectOnBlur', field, val,row,index)