mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +00:00
add outline builtin
This commit is contained in:
parent
6f643d2694
commit
4396689dad
@ -358,7 +358,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
|||||||
|
|
||||||
@computed hasCondition() {
|
@computed hasCondition() {
|
||||||
const v = this.getExtraProp('condition', false)?.getValue();
|
const v = this.getExtraProp('condition', false)?.getValue();
|
||||||
return v != null && v !== '';
|
return v != null && v !== '' && v !== true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed hasLoop() {
|
@computed hasLoop() {
|
||||||
|
|||||||
@ -2,17 +2,14 @@ import { isJSBlock, isJSSlot } from '@ali/lowcode-types';
|
|||||||
import { isPlainObject } from '@ali/lowcode-utils';
|
import { isPlainObject } from '@ali/lowcode-utils';
|
||||||
import { globalContext, Editor } from '@ali/lowcode-editor-core';
|
import { globalContext, Editor } from '@ali/lowcode-editor-core';
|
||||||
import { Designer, TransformStage, addBuiltinComponentAction } from '@ali/lowcode-designer';
|
import { Designer, TransformStage, addBuiltinComponentAction } from '@ali/lowcode-designer';
|
||||||
import { registerSetters } from '@ali/lowcode-setters';
|
// import { registerSetters } from '@ali/lowcode-setters';
|
||||||
// import Outline from '@ali/lowcode-plugin-outline-pane';
|
import Outline from '@ali/lowcode-plugin-outline-pane';
|
||||||
|
|
||||||
import DesignerPlugin from '@ali/lowcode-plugin-designer';
|
import DesignerPlugin from '@ali/lowcode-plugin-designer';
|
||||||
import { Skeleton, SettingsPrimaryPane } from '@ali/lowcode-editor-skeleton';
|
import { Skeleton, SettingsPrimaryPane } from '@ali/lowcode-editor-skeleton';
|
||||||
|
|
||||||
import Preview from '@ali/lowcode-plugin-sample-preview';
|
|
||||||
// import SourceEditor from '@ali/lowcode-plugin-source-editor';
|
|
||||||
import { i18nReducer } from './i18n-reducer';
|
import { i18nReducer } from './i18n-reducer';
|
||||||
import { InstanceNodeSelector } from './components';
|
import { InstanceNodeSelector } from './components';
|
||||||
import { Divider } from '@alifd/next';
|
|
||||||
|
|
||||||
export const editor = new Editor();
|
export const editor = new Editor();
|
||||||
globalContext.register(editor, Editor);
|
globalContext.register(editor, Editor);
|
||||||
@ -81,24 +78,14 @@ skeleton.add({
|
|||||||
type: 'Panel',
|
type: 'Panel',
|
||||||
content: SettingsPrimaryPane,
|
content: SettingsPrimaryPane,
|
||||||
});
|
});
|
||||||
// skeleton.add({
|
|
||||||
// area: 'leftArea',
|
|
||||||
// name: 'outlinePane',
|
|
||||||
// type: 'PanelDock',
|
|
||||||
// content: Outline,
|
|
||||||
// panelProps: {
|
|
||||||
// area: 'leftFixedArea',
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
|
|
||||||
skeleton.add({
|
skeleton.add({
|
||||||
area: 'topArea',
|
area: 'leftArea',
|
||||||
type: 'Dock',
|
name: 'outlinePane',
|
||||||
name: 'preview',
|
type: 'PanelDock',
|
||||||
props: {
|
content: Outline,
|
||||||
align: 'right',
|
panelProps: {
|
||||||
|
area: 'leftFixedArea',
|
||||||
},
|
},
|
||||||
content: Preview,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// skeleton.add({
|
// skeleton.add({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user