设计一个弹框,右击某行弹出且有初始值?-灵析社区

生成头像

用深拷贝试试: rightClick(row, column, event) { this.openDialog(row); this.dialogFormVisible = true; }, resetForm() { this.$refs.ruleForm.resetFields(); }, openDialog(val) { this.$nextTick(() => { this.editForm = JSON.parse(JSON.stringify(val)); // 用深拷贝 }); },

阅读量:1

点赞量:0

问AI