ddei-editor/plugins/core/dialogs/managelayersdialog.ts
2024-04-23 14:59:19 +08:00

42 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {DDeiPluginBase} from "ddei-framework1";
import ManageLayersDialog from './ManageLayersDialog.vue';
class DDeiCoreManageLayersDialog extends DDeiPluginBase{
name: string = ManageLayersDialog.name
/**
* 缺省实例
*/
static defaultIns: DDeiCoreManageLayersDialog = new DDeiCoreManageLayersDialog(null);
plugins: object[] = [ManageLayersDialog]
getDialogs(editor){
return this.plugins;
}
static configuraton(options, fullConfig: boolean = false) {
//解析options只使用自己相关的
if (options) {
let newOptions = {}
if (fullConfig) {
if (fullConfig) {
if (options[ManageLayersDialog.name]) {
for (let i in options[ManageLayersDialog.name]) {
newOptions[i] = options[ManageLayersDialog.name][i]
}
}
}
} else {
newOptions = options
}
if (newOptions && Object.keys(newOptions).length !== 0) {
let panels = new DDeiCoreManageLayersDialog(newOptions);
return panels;
}
}
return DDeiCoreManageLayersDialog;
}
}
export default DDeiCoreManageLayersDialog