12345678910111213141516171819202122232425262728 |
- 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 }
|