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

42 lines
1.2 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 ChooseControlGroupDialog from './ChooseControlGroupDialog.vue';
class DDeiCoreChooseControlGroupDialog extends DDeiPluginBase{
name: string = ChooseControlGroupDialog.name
/**
* 缺省实例
*/
static defaultIns: DDeiCoreChooseControlGroupDialog = new DDeiCoreChooseControlGroupDialog(null);
plugins: object[] = [ChooseControlGroupDialog]
getDialogs(editor){
return this.plugins;
}
static configuraton(options, fullConfig: boolean = false) {
//解析options只使用自己相关的
if (options) {
let newOptions = {}
if (fullConfig) {
if (fullConfig) {
if (options[ChooseControlGroupDialog.name]) {
for (let i in options[ChooseControlGroupDialog.name]) {
newOptions[i] = options[ChooseControlGroupDialog.name][i]
}
}
}
} else {
newOptions = options
}
if (newOptions && Object.keys(newOptions).length !== 0) {
let panels = new DDeiCoreChooseControlGroupDialog(newOptions);
return panels;
}
}
return DDeiCoreChooseControlGroupDialog;
}
}
export default DDeiCoreChooseControlGroupDialog