Compare commits

...

32 Commits

Author SHA1 Message Date
JackLian
9940c02a3b chore(release): publish 1.1.7-beta.13 2023-04-27 09:48:12 +08:00
wendell0316
e66fbd74f6 feat: add more props for popup
* feat: popup可以接受外部参数

目前配置都是固定的,对于一些简单定制化的需求无法满足

* feat: 增加类型约束,固定可修改项

* Revert "feat: 增加类型约束,固定可修改项"

This reverts commit 7e3b4dd1fafce56bfb94d7f77fda729eec4066d0.

* feat: 添加类型
2023-04-27 09:45:07 +08:00
liujuping
59039d2b86 feat: get editor from this or params 2023-04-27 09:45:07 +08:00
JackLian
a03bf87de9 chore(release): publish 1.1.7-beta.12 2023-04-26 11:27:11 +08:00
JackLian
723f4cdf79 Merge remote-tracking branch 'origin/develop' into release/1.1.7-beta 2023-04-26 11:24:48 +08:00
JackLian
ad68052d15 chore(release): publish 1.1.7-beta.11 2023-04-24 10:18:49 +08:00
JackLian
a78643fe0a chore: merge from develop 2023-04-24 10:13:20 +08:00
JackLian
703c379473 chore(release): publish 1.1.7-beta.10 2023-04-21 14:22:50 +08:00
LeoYuan 袁力皓
1b292080aa feat: add workflow for checking base branch 2023-04-21 14:20:48 +08:00
JackLian
bcff28c7a7 chore(docs): publish docs 1.0.27 2023-04-21 14:20:48 +08:00
{authemail@qq.com}
3a28600abf docs: 修复表格排版错误 2023-04-20 10:36:44 +08:00
JackLian
d53d5bbe8b chore(release): publish 1.1.7-beta.9 2023-04-19 16:44:13 +08:00
LeoYuan 袁力皓
032606edf0 chore: add awesome badge for exploring LCE ecosystem 2023-04-19 16:42:08 +08:00
liujuping
83267dd68e feat(workspace): add enableAutoOpenFirstWindow config and onWindowRendererReady function 2023-04-19 16:42:08 +08:00
liujuping
1bdc1065d7 fix(prop): fix prop.export can not correctly export undefined[] 2023-04-19 16:42:08 +08:00
liujuping
e0a01890e4 docs(config): add demo for config.getPreference api 2023-04-19 16:42:08 +08:00
JackLian
20e67e85c1 chore(release): publish 1.1.7-beta.8 2023-04-18 14:27:10 +08:00
JackLian
fdb74f0aeb chore(release): publish 1.1.7-beta.7 2023-04-18 14:26:41 +08:00
liujuping
e4f5ff5010 feat(material): material apis add refreshComponentMetasMap function 2023-04-18 14:20:48 +08:00
JackLian
0254aa8b01 chore(release): publish 1.1.7-beta.6 2023-04-18 09:29:57 +08:00
liujuping
13c5c21a10 feat: remove editor api 2023-04-18 09:27:46 +08:00
liujuping
b0bef21b05 feat(renderer-core): added log when executing setState 2023-04-18 09:27:46 +08:00
JackLian
3f30f840eb chore(release): publish 1.1.7-beta.5 2023-04-17 17:32:33 +08:00
JackLian
1f81f0d85c chore(release): publish 1.1.7-beta.4 2023-04-17 17:31:40 +08:00
JackLian
55534f00ce chore(release): publish 1.1.7-beta.3 2023-04-17 17:31:10 +08:00
liujuping
386db0ca9a feat(common): add some api to be compatible with old platforms 2023-04-17 17:29:11 +08:00
JackLian
309f392b6e chore(release): publish 1.1.7-beta.2 2023-04-17 15:10:13 +08:00
liujuping
c64647bf2b fix(utils): isReactComponent not including react.memo 2023-04-17 15:08:07 +08:00
JackLian
d60eceda46 chore(release): publish 1.1.7-beta.1 2023-04-14 08:17:33 +08:00
liujuping
07f4d68781 fix: fix that the outline tree does not respond to modal addition/deletion related operations 2023-04-14 08:11:44 +08:00
liujuping
e977715b86 feat: added features in workspace mode 2023-04-14 08:11:44 +08:00
JackLian
778c8a5d58 chore(release): publish 1.1.7-beta.0 2023-04-12 10:25:00 +08:00
30 changed files with 165 additions and 153 deletions

View File

@ -1,6 +1,6 @@
{
"lerna": "4.0.0",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-designer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Designer for Ali LowCode Engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,9 +15,9 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",
@ -52,5 +52,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/designer"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,10 +1,10 @@
import React, { Component, Fragment } from 'react';
import DragResizeEngine from './drag-resize-engine';
import { observer, computed, globalContext } from '@alilc/lowcode-editor-core';
import { observer, computed } from '@alilc/lowcode-editor-core';
import classNames from 'classnames';
import { SimulatorContext } from '../context';
import { BuiltinSimulatorHost } from '../host';
import { OffsetObserver, Designer } from '../../designer';
import { OffsetObserver, Designer, INode } from '../../designer';
import { Node } from '../../document';
import { normalizeTriggers } from '../../utils/misc';
@ -135,7 +135,7 @@ export class BoxResizingInstance extends Component<{
// this.hoveringCapture.setBoundary(this.outline);
this.willBind();
const resize = (e: MouseEvent, direction: string, node: any, moveX: number, moveY: number) => {
const resize = (e: MouseEvent, direction: string, node: INode, moveX: number, moveY: number) => {
const { advanced } = node.componentMeta;
if (
advanced.callbacks &&
@ -149,7 +149,7 @@ export class BoxResizingInstance extends Component<{
}
};
const resizeStart = (e: MouseEvent, direction: string, node: any) => {
const resizeStart = (e: MouseEvent, direction: string, node: INode) => {
const { advanced } = node.componentMeta;
if (
advanced.callbacks &&
@ -161,7 +161,7 @@ export class BoxResizingInstance extends Component<{
}
};
const resizeEnd = (e: MouseEvent, direction: string, node: any) => {
const resizeEnd = (e: MouseEvent, direction: string, node: INode) => {
const { advanced } = node.componentMeta;
if (
advanced.callbacks &&
@ -172,8 +172,7 @@ export class BoxResizingInstance extends Component<{
advanced.callbacks.onResizeEnd(e, cbNode);
}
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = node.document?.designer.editor;
const npm = node?.componentMeta?.npm;
const selected =
[npm?.package, npm?.componentName].filter((item) => !!item).join('-') ||

View File

@ -9,7 +9,7 @@ import {
ComponentType,
} from 'react';
import classNames from 'classnames';
import { observer, computed, Tip, globalContext } from '@alilc/lowcode-editor-core';
import { observer, computed, Tip } from '@alilc/lowcode-editor-core';
import { createIcon, isReactComponent, isActionContentObject } from '@alilc/lowcode-utils';
import { IPublicTypeActionContentObject } from '@alilc/lowcode-types';
import { BuiltinSimulatorHost } from '../host';
@ -131,8 +131,7 @@ function createAction(content: ReactNode | ComponentType<any> | IPublicTypeActio
className="lc-borders-action"
onClick={() => {
action && action(node.internalToShellNode()!);
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = node.document?.designer.editor;
const npm = node?.componentMeta?.npm;
const selected =
[npm?.package, npm?.componentName].filter((item) => !!item).join('-') ||

View File

@ -1,6 +1,6 @@
import { obx, globalContext } from '@alilc/lowcode-editor-core';
import { obx } from '@alilc/lowcode-editor-core';
import { IPublicTypePluginConfig, IPublicTypeLiveTextEditingConfig } from '@alilc/lowcode-types';
import { Node, Prop } from '../../document';
import { INode, Prop } from '../../document';
const EDITOR_KEY = 'data-setter-prop';
@ -17,7 +17,7 @@ function defaultSaveContent(content: string, prop: Prop) {
}
export interface EditingTarget {
node: Node;
node: INode;
rootElement: HTMLElement;
event: MouseEvent;
}
@ -47,13 +47,16 @@ export class LiveEditing {
@obx.ref private _editing: Prop | null = null;
private _dispose?: () => void;
private _save?: () => void;
apply(target: EditingTarget) {
const { node, event, rootElement } = target;
const targetElement = event.target as HTMLElement;
const { liveTextEditing } = node.componentMeta;
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = node.document?.designer.editor;
const npm = node?.componentMeta?.npm;
const selected =
[npm?.package, npm?.componentName].filter((item) => !!item).join('-') || node?.componentMeta?.componentName || '';
@ -166,10 +169,6 @@ export class LiveEditing {
return this._editing;
}
private _dispose?: () => void;
private _save?: () => void;
saveAndDispose() {
if (this._save) {
this._save();

View File

@ -1,6 +1,6 @@
import { Overlay } from '@alifd/next';
import React, { MouseEvent } from 'react';
import { Title, globalContext } from '@alilc/lowcode-editor-core';
import { Title } from '@alilc/lowcode-editor-core';
import { canClickNode } from '@alilc/lowcode-utils';
import './index.less';
@ -66,8 +66,7 @@ export default class InstanceNodeSelector extends React.Component<IProps, IState
if (canClick && typeof node.select === 'function') {
node.select();
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = node.document?.designer.editor;
const npm = node?.componentMeta?.npm;
const selected =
[npm?.package, npm?.componentName].filter((item) => !!item).join('-') ||

View File

@ -60,6 +60,8 @@ export function buildFilter(rule?: string | string[] | RegExp | IPublicTypeNesti
export interface IComponentMeta extends IPublicModelComponentMeta<INode> {
prototype?: any;
liveTextEditing?: IPublicTypeLiveTextEditingConfig[];
get rootSelector(): string | undefined;
setMetadata(metadata: IPublicTypeComponentMetadata): void;

View File

@ -148,6 +148,10 @@ export interface IDocumentModel extends Omit<IPublicModelDocumentModel<
suspense(): void;
close(): void;
unlinkNode(node: INode): void;
destroyNode(node: INode): void;
}
export class DocumentModel implements IDocumentModel {
@ -333,6 +337,7 @@ export class DocumentModel implements IDocumentModel {
this.import(schema as IPublicTypeRootSchema, true);
this.simulator?.rerender();
},
this,
);
this.setupListenActiveNodes();

View File

@ -1,6 +1,7 @@
import { reaction, untracked, globalContext, IEventBus, createModuleEventBus } from '@alilc/lowcode-editor-core';
import { reaction, untracked, IEventBus, createModuleEventBus } from '@alilc/lowcode-editor-core';
import { IPublicTypeNodeSchema, IPublicModelHistory, IPublicTypeDisposable } from '@alilc/lowcode-types';
import { Logger } from '@alilc/lowcode-utils';
import { IDocumentModel } from '../designer';
const logger = new Logger({ level: 'warn', bizName: 'history' });
@ -37,10 +38,12 @@ export class History<T = IPublicTypeNodeSchema> implements IHistory {
return this.session.data;
}
private timeGap: number = 1000;
constructor(
dataFn: () => T | null,
private redoer: (data: T) => void,
private timeGap: number = 1000,
private document?: IDocumentModel,
) {
this.session = new Session(0, null, this.timeGap);
this.records = [this.session];
@ -130,8 +133,7 @@ export class History<T = IPublicTypeNodeSchema> implements IHistory {
}
const cursor = this.session.cursor - 1;
this.go(cursor);
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = this.document?.designer.editor;
if (!editor) {
return;
}
@ -144,8 +146,7 @@ export class History<T = IPublicTypeNodeSchema> implements IHistory {
}
const cursor = this.session.cursor + 1;
this.go(cursor);
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = this.document?.designer.editor;
if (!editor) {
return;
}

View File

@ -1,4 +1,4 @@
import { obx, computed, globalContext, makeObservable, IEventBus, createModuleEventBus } from '@alilc/lowcode-editor-core';
import { obx, computed, makeObservable, IEventBus, createModuleEventBus } from '@alilc/lowcode-editor-core';
import { Node, INode } from './node';
import { IPublicTypeNodeData, IPublicModelNodeChildren, IPublicEnumTransformStage, IPublicTypeDisposable } from '@alilc/lowcode-types';
import { shallowEqual, compatStage, isNodeSchema } from '@alilc/lowcode-utils';
@ -16,12 +16,12 @@ export interface INodeChildren extends Omit<IPublicModelNodeChildren<INode>,
'isEmpty' |
'notEmpty'
> {
children: INode[];
get owner(): INode;
get length(): number;
children: INode[];
unlinkChild(node: INode): void;
/**
@ -239,11 +239,8 @@ export class NodeChildren implements INodeChildren {
}
const { document } = node;
/* istanbul ignore next */
if (globalContext.has('editor')) {
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
editor.eventBus.emit('node.remove', { node, index: i });
}
const editor = node.document?.designer.editor;
editor?.eventBus.emit('node.remove', { node, index: i });
document?.unlinkNode(node);
document?.selection.remove(node.id);
document?.destroyNode(node);
@ -281,14 +278,11 @@ export class NodeChildren implements INodeChildren {
const i = children.map(d => d.id).indexOf(node.id);
if (node.parent) {
if (globalContext.has('editor')) {
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
editor.eventBus.emit('node.remove.topLevel', {
node,
index: node.index,
});
}
const editor = node.document?.designer.editor;
editor?.eventBus.emit('node.remove.topLevel', {
node,
index: node.index,
});
}
if (i < 0) {
@ -317,11 +311,8 @@ export class NodeChildren implements INodeChildren {
});
this.emitter.emit('insert', node);
/* istanbul ignore next */
if (globalContext.has('editor')) {
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
editor.eventBus.emit('node.add', { node });
}
const editor = node.document?.designer.editor;
editor?.eventBus.emit('node.add', { node });
if (useMutator) {
this.reportModified(node, this.owner, { type: 'insert' });
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-editor-core",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Core Api for Ali lowCode engine",
"license": "MIT",
"main": "lib/index.js",
@ -14,8 +14,8 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"debug": "^4.1.1",
"intl-messageformat": "^9.3.1",
@ -47,5 +47,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/editor-core"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-editor-skeleton",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "alibaba lowcode editor skeleton",
"main": "lib/index.js",
"module": "es/index.js",
@ -19,10 +19,10 @@
],
"dependencies": {
"@alifd/next": "^1.20.12",
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"react": "^16.8.1",
"react-dom": "^16.8.1"
@ -42,5 +42,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/editor-skeleton"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -4,6 +4,22 @@ import { uniqueId } from '@alilc/lowcode-utils';
import { IEventBus, createModuleEventBus } from '@alilc/lowcode-editor-core';
import './style.less';
export interface PopupExtProps {
width?: number;
hasMask?: boolean;
trigger?: ReactNode;
canCloseByOutSideClick?: boolean
className?: string;
safeNode?: string[];
}
interface PopupProps extends PopupExtProps{
content?: ReactNode,
title?: ReactNode,
actionKey?: string
}
export const PopupContext = createContext<PopupPipe>({} as any);
export class PopupPipe {
@ -11,7 +27,7 @@ export class PopupPipe {
private currentId?: string;
create(props?: object): {
create(props?: PopupExtProps): {
send: (content: ReactNode, title: ReactNode) => void;
show: (target: Element) => void;
} {
@ -45,13 +61,13 @@ export class PopupPipe {
};
}
private popup(props: object, target?: Element) {
private popup(props: PopupProps, target?: Element) {
Promise.resolve().then(() => {
this.emitter.emit('popupchange', props, target);
});
}
onPopupChange(fn: (props: object, target?: Element) => void): () => void {
onPopupChange(fn: (props: PopupProps, target?: Element) => void): () => void {
this.emitter.on('popupchange', fn);
return () => {
this.emitter.removeListener('popupchange', fn);
@ -86,18 +102,23 @@ export default class PopupService extends Component<{
}
}
interface StateType extends PopupProps {
visible?: boolean,
offsetX?: number,
pos?: {top: number, height: number}
}
export class PopupContent extends PureComponent<{ safeId?: string; popupContainer?: string }> {
static contextType = PopupContext;
popupContainerId = uniqueId('popupContainer');
state: any = {
state: StateType = {
visible: false,
offsetX: -300,
};
private dispose = (this.context as PopupPipe).onPopupChange((props, target) => {
const state: any = {
const state: StateType = {
...props,
visible: true,
};
@ -132,7 +153,7 @@ export class PopupContent extends PureComponent<{ safeId?: string; popupContaine
};
render() {
const { content, visible, title, actionKey, pos, offsetX } = this.state;
const { content, visible, title, actionKey, pos, offsetX, width = 360, hasMask = false, canCloseByOutSideClick = true, safeNode = [] } = this.state;
if (!visible) {
return null;
}
@ -146,10 +167,10 @@ export class PopupContent extends PureComponent<{ safeId?: string; popupContaine
return (
<Drawer
width={360}
width={width}
visible={visible}
offset={[offsetX, 0]}
hasMask={false}
hasMask={hasMask}
onVisibleChange={(_visible, type) => {
if (avoidLaterHidden) {
return;
@ -160,11 +181,11 @@ export class PopupContent extends PureComponent<{ safeId?: string; popupContaine
}}
trigger={<div className="lc-popup-placeholder" style={pos} />}
triggerType="click"
canCloseByOutSideClick
canCloseByOutSideClick={canCloseByOutSideClick}
animation={false}
onClose={this.onClose}
id={this.props.safeId}
safeNode={id}
safeNode={[id, ...safeNode]}
closeable
container={this.props.popupContainer}
>

View File

@ -53,8 +53,7 @@ export class SettingsPrimaryPane extends Component<ISettingsPrimaryPaneProps, {
}
renderBreadcrumb() {
const { settings } = this.main;
const { config } = this.props;
const { settings, editor } = this.main;
// const shouldIgnoreRoot = config.props?.ignoreRoot;
const { shouldIgnoreRoot } = this.state;
if (!settings) {
@ -73,8 +72,6 @@ export class SettingsPrimaryPane extends Component<ISettingsPrimaryPaneProps, {
);
}
const workspace = globalContext.get('workspace');
const editor = this.props.engineEditor;
const designer = editor.get('designer');
const current = designer?.currentSelection?.getNodes()?.[0];
let node: INode | null = settings.first;

View File

@ -1,7 +1,7 @@
import { Component, ReactElement } from 'react';
import { Icon } from '@alifd/next';
import classNames from 'classnames';
import { Title, observer, Tip, globalContext } from '@alilc/lowcode-editor-core';
import { Title, observer, Tip } from '@alilc/lowcode-editor-core';
import { DockProps } from '../../types';
import { PanelDock } from '../../widget/panel-dock';
import { composeTitle } from '../../widget/utils';
@ -116,14 +116,12 @@ export class DraggableLineView extends Component<{ panel: Panel }> {
}
// 抛出事件,对于有些需要 panel 插件随着 度变化进行再次渲染的由panel插件内部监听事件实现
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = this.props.panel.skeleton.editor;
editor?.eventBus.emit('dockpane.drag', width);
}
onDragChange(type: 'start' | 'end') {
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = this.props.panel.skeleton.editor;
editor?.eventBus.emit('dockpane.dragchange', type);
// builtinSimulator 屏蔽掉 鼠标事件
editor?.eventBus.emit('designer.builtinSimulator.disabledEvents', type === 'start');
@ -187,8 +185,7 @@ export class TitledPanelView extends Component<{ panel: Panel; area?: string }>
if (!panel.inited) {
return null;
}
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = panel.skeleton.editor;
const panelName = area ? `${area}-${panel.name}` : panel.name;
editor?.eventBus.emit('skeleton.panel.toggle', {
name: panelName || '',
@ -250,8 +247,7 @@ export class PanelView extends Component<{
if (!panel.inited) {
return null;
}
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
const editor = panel.skeleton.editor;
const panelName = area ? `${area}-${panel.name}` : panel.name;
editor?.eventBus.emit('skeleton.panel.toggle', {
name: panelName || '',

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-engine",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系",
"main": "lib/engine-core.js",
"module": "es/engine-core.js",
@ -19,15 +19,15 @@
"license": "MIT",
"dependencies": {
"@alifd/next": "^1.19.12",
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-editor-skeleton": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-editor-skeleton": "1.1.7-beta.13",
"@alilc/lowcode-engine-ext": "^1.0.0",
"@alilc/lowcode-plugin-designer": "1.1.6",
"@alilc/lowcode-plugin-outline-pane": "1.1.6",
"@alilc/lowcode-shell": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-workspace": "1.1.6",
"@alilc/lowcode-plugin-designer": "1.1.7-beta.13",
"@alilc/lowcode-plugin-outline-pane": "1.1.7-beta.13",
"@alilc/lowcode-shell": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"@alilc/lowcode-workspace": "1.1.7-beta.13",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
@ -53,5 +53,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/engine"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-ignitor",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "点火器bootstrap lce project",
"main": "lib/index.js",
"private": true,

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-plugin-designer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "alibaba lowcode editor designer plugin",
"files": [
"es",
@ -18,9 +18,9 @@
],
"author": "xiayang.xy",
"dependencies": {
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
@ -37,5 +37,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/plugin-designer"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-plugin-outline-pane",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Outline pane for Ali lowCode engine",
"files": [
"es",
@ -13,8 +13,8 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",
@ -38,5 +38,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/plugin-outline-pane"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-renderer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Rax renderer for Ali lowCode engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -30,8 +30,8 @@
"build": "build-scripts build"
},
"dependencies": {
"@alilc/lowcode-renderer-core": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-renderer-core": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"rax-find-dom-node": "^1.0.1"
},
"devDependencies": {
@ -49,5 +49,5 @@
},
"license": "MIT",
"homepage": "https://unpkg.alibaba-inc.com/@alilc/lowcode-rax-renderer@0.1.2/build/index.html",
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-simulator-renderer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "rax simulator renderer for alibaba lowcode designer",
"main": "lib/index.js",
"module": "es/index.js",
@ -13,10 +13,10 @@
"build:umd": "build-scripts build --config build.umd.json"
},
"dependencies": {
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-rax-renderer": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-rax-renderer": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"driver-universal": "^3.1.3",
"history": "^5.0.0",
@ -50,5 +50,5 @@
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/rax-simulator-renderer"
},
"homepage": "https://unpkg.alibaba-inc.com/@alilc/lowcode-rax-simulator-renderer@1.0.73/build/index.html",
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-renderer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "react renderer for ali lowcode engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -22,7 +22,7 @@
],
"dependencies": {
"@alifd/next": "^1.21.16",
"@alilc/lowcode-renderer-core": "1.1.6"
"@alilc/lowcode-renderer-core": "1.1.7-beta.13"
},
"devDependencies": {
"@alib/build-scripts": "^0.1.18",
@ -42,5 +42,5 @@
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/react-renderer"
},
"homepage": "https://unpkg.alibaba-inc.com/@alilc/lowcode-react-renderer@1.0.21/build/index.html",
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-simulator-renderer",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "react simulator renderer for alibaba lowcode designer",
"main": "lib/index.js",
"module": "es/index.js",
@ -17,10 +17,10 @@
"test:cov": "build-scripts test --config build.test.json --jest-coverage"
},
"dependencies": {
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-react-renderer": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-react-renderer": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"mobx": "^6.3.0",
"mobx-react": "^7.2.0",
@ -43,5 +43,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/react-simulator-renderer"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-renderer-core",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "renderer core",
"license": "MIT",
"main": "lib/index.js",
@ -16,8 +16,8 @@
},
"dependencies": {
"@alilc/lowcode-datasource-engine": "^1.0.0",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"debug": "^4.1.1",
"fetch-jsonp": "^1.1.3",
@ -32,7 +32,7 @@
"devDependencies": {
"@alib/build-scripts": "^0.1.18",
"@alifd/next": "^1.26.0",
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@babel/plugin-transform-typescript": "^7.16.8",
"@testing-library/react": "^11.2.2",
"@types/classnames": "^2.2.11",
@ -55,5 +55,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/renderer-core"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-shell",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Shell Layer for AliLowCodeEngine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,12 +15,12 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-editor-skeleton": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-workspace": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-editor-skeleton": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"@alilc/lowcode-workspace": "1.1.7-beta.13",
"classnames": "^2.2.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
@ -50,5 +50,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/shell"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-types",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Types for Ali lowCode engine",
"files": [
"es",
@ -29,5 +29,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/types"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-utils",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Utils for Ali lowCode engine",
"files": [
"lib",
@ -14,7 +14,7 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-types": "1.1.7-beta.13",
"lodash": "^4.17.21",
"mobx": "^6.3.0",
"react": "^16"
@ -32,5 +32,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/utils"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-workspace",
"version": "1.1.6",
"version": "1.1.7-beta.13",
"description": "Shell Layer for AliLowCodeEngine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,11 +15,11 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-designer": "1.1.6",
"@alilc/lowcode-editor-core": "1.1.6",
"@alilc/lowcode-editor-skeleton": "1.1.6",
"@alilc/lowcode-types": "1.1.6",
"@alilc/lowcode-utils": "1.1.6",
"@alilc/lowcode-designer": "1.1.7-beta.13",
"@alilc/lowcode-editor-core": "1.1.7-beta.13",
"@alilc/lowcode-editor-skeleton": "1.1.7-beta.13",
"@alilc/lowcode-types": "1.1.7-beta.13",
"@alilc/lowcode-utils": "1.1.7-beta.13",
"classnames": "^2.2.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
@ -49,5 +49,5 @@
"type": "http",
"url": "https://github.com/alibaba/lowcode-engine/tree/main/packages/shell"
},
"gitHead": "2669f179e6f899d395ce1942d0fe04f9c5ed48a6"
"gitHead": "fdb74f0aeb15a30f85387979f620e27dd1673b92"
}

View File

@ -183,6 +183,9 @@ export class Workspace implements IWorkspace {
}
private remove(index: number) {
if (index < 0) {
return;
}
const window = this.windows[index];
this.windows.splice(index, 1);
if (this.window === window) {