2024-06-14 18:33:53 +08:00

30 lines
553 B
TypeScript

import {DDeiEditor} from "ddei-framework";
const DialogBase = {
props:{
editor: {
type: DDeiEditor,
default: null
}
},
data: function () {
return {
forceRefresh: false,
}
},
methods: {
forceRefreshView: function () {
this.forceRefresh = false
this.$nextTick(() => {
this.forceRefresh = true;
if (this.refreshData){
this.refreshData();
}
});
}
},
mounted () {
this.editor.dialogs[this.dialogId].viewer = this
}
};
export default DialogBase