2024-04-23 14:59:19 +08:00

27 lines
562 B
TypeScript

import {DDeiEditor} from "ddei-framework1";
const DialogBase = {
data: function () {
return {
editor:null,
forceRefresh: false,
}
},
methods: {
forceRefreshView: function () {
this.forceRefresh = false
this.$nextTick(() => {
this.forceRefresh = true;
if (this.refreshData){
this.refreshData();
}
});
}
},
mounted () {
//获取编辑器
this.editor = DDeiEditor.ACTIVE_INSTANCE;
this.editor.dialogs[this.dialogId].viewer = this
}
};
export default DialogBase