初始化
This commit is contained in:
28
frontend/packages/js/mixins/refreshBorder.js
Normal file
28
frontend/packages/js/mixins/refreshBorder.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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 }
|
||||
Reference in New Issue
Block a user