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