mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
Merge branch 'polyfill/vision' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into polyfill/vision
This commit is contained in:
commit
7868ff210a
@ -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() {
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
|||||||
const supportedLifecycles =
|
const supportedLifecycles =
|
||||||
events.supportedLifecycles ||
|
events.supportedLifecycles ||
|
||||||
(isRoot
|
(isRoot
|
||||||
? [
|
? /*[
|
||||||
{
|
{
|
||||||
description: '初始化时',
|
description: '初始化时',
|
||||||
name: 'constructor',
|
name: 'constructor',
|
||||||
@ -63,7 +63,7 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
|||||||
description: '卸载时',
|
description: '卸载时',
|
||||||
name: 'componentWillUnmount',
|
name: 'componentWillUnmount',
|
||||||
},
|
},
|
||||||
]
|
]*/ null
|
||||||
: null);
|
: null);
|
||||||
if (supportedLifecycles) {
|
if (supportedLifecycles) {
|
||||||
eventsDefinition.push({
|
eventsDefinition.push({
|
||||||
@ -81,6 +81,7 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
|||||||
}
|
}
|
||||||
// 通用设置
|
// 通用设置
|
||||||
const propsGroup = props || [];
|
const propsGroup = props || [];
|
||||||
|
/*
|
||||||
propsGroup.push({
|
propsGroup.push({
|
||||||
name: '#generals',
|
name: '#generals',
|
||||||
title: { type: 'i18n', 'zh-CN': '通用', 'en-US': 'General' },
|
title: { type: 'i18n', 'zh-CN': '通用', 'en-US': 'General' },
|
||||||
@ -101,14 +102,14 @@ export default function(metadata: TransformedComponentMetadata): TransformedComp
|
|||||||
title: 'Ref',
|
title: 'Ref',
|
||||||
setter: 'StringSetter',
|
setter: 'StringSetter',
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
name: '!more',
|
name: '!more',
|
||||||
title: '更多',
|
title: '更多',
|
||||||
setter: 'PropertiesSetter',
|
setter: 'PropertiesSetter',
|
||||||
},*/
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
const combined: FieldConfig[] = [
|
const combined: FieldConfig[] = [
|
||||||
{
|
{
|
||||||
title: { type: 'i18n', 'zh-CN': '属性', 'en-US': 'Props' },
|
title: { type: 'i18n', 'zh-CN': '属性', 'en-US': 'Props' },
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
@ -92,7 +92,8 @@ html.engine-blur #engine {
|
|||||||
.next-checkbox-group,.next-date-picker,.next-input,.next-month-picker,
|
.next-checkbox-group,.next-date-picker,.next-input,.next-month-picker,
|
||||||
.next-number-picker,.next-radio-group,.next-range,.next-range-picker,
|
.next-number-picker,.next-radio-group,.next-range,.next-range-picker,
|
||||||
.next-rating,.next-select,.next-switch,.next-time-picker,.next-upload,
|
.next-rating,.next-select,.next-switch,.next-time-picker,.next-upload,
|
||||||
.next-year-picker {
|
.next-year-picker,
|
||||||
|
.next-breadcrumb-item,.next-calendar-header,.next-calendar-table {
|
||||||
pointer-events: auto !important;
|
pointer-events: auto !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user