fix:表单table新增后添加触发函数

This commit is contained in:
shijing 2025-05-13 13:41:13 +08:00
parent 5c9bded384
commit 31cee8b901
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@
}, },
rowAdd(){ rowAdd(){
const temp = JSON.parse(JSON.stringify(this.addTemplate)) const temp = JSON.parse(JSON.stringify(this.addTemplate))
this.data.push(temp) this.data.push(temp);
this.$emit('add', temp)
}, },
rowDel(row, index){ rowDel(row, index){
this.data.splice(index, 1) this.data.splice(index, 1)