mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-07 01:28:28 +08:00
27 lines
562 B
TypeScript
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 |