export default {
props: {
title: {
// 弹框标题
type: String,
default: ''
},
visible: {
// 弹框是否弹出
type: Boolean,
default: false
},
flag: {
type: String,
default: ''
},
formData: {
// 提交表单数据
type: Object,
default: () => {}
},
remote_close: Function // 用于关闭窗口
},
watch: {
flag: function (val, oldval) {
console.log('val', val)
if (val === 'edit') {
this.continueruleForm = this.formData
console.log('form', this.continueruleForm)
}
}
},
}
vue2 watch监听
最新推荐文章于 2024-07-10 17:08:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)