This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/mixins/rightBox.js

32 lines
474 B
JavaScript
Raw Normal View History

2021-06-11 10:00:22 +08:00
export default {
props: {
object: {
type: Object
}
},
data () {
return {
editObject: {}
}
},
methods: {
clickOutside () {
this.esc(false)
},
/* 关闭弹框 */
esc (refresh) {
this.unblockOperation()
this.$emit('close', refresh)
}
},
watch: {
object: {
deep: true,
immediate: true,
handler (n) {
this.editObject = JSON.parse(JSON.stringify(n))
}
}
}
}