You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
481 B
JavaScript
29 lines
481 B
JavaScript
const refreshBorder = {
|
|
data () {
|
|
return {
|
|
updateKey: 0
|
|
}
|
|
},
|
|
computed: {
|
|
Data () {
|
|
return JSON.parse(JSON.stringify(this.config))
|
|
}
|
|
},
|
|
watch: {
|
|
Data: {
|
|
handler (newVal, oldVal) {
|
|
this.$nextTick(() => {
|
|
if ((newVal.w !== oldVal.w) || (newVal.h !== oldVal.h)) {
|
|
this.updateKey = new Date().getTime()
|
|
}
|
|
})
|
|
},
|
|
deep: true
|
|
}
|
|
},
|
|
methods: {
|
|
}
|
|
}
|
|
|
|
export { refreshBorder }
|