mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
Merge branch 'preset-vision/0.9.0' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into preset-vision/0.9.0
This commit is contained in:
commit
e3a0c475eb
@ -3,6 +3,17 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.29"></a>
|
||||||
|
## [0.8.29](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.28...@ali/lowcode-demo@0.8.29) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* style ([4694331](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/4694331))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.28"></a>
|
<a name="0.8.28"></a>
|
||||||
## [0.8.28](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.27...@ali/lowcode-demo@0.8.28) (2020-05-20)
|
## [0.8.28](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-demo@0.8.27...@ali/lowcode-demo@0.8.28) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-demo",
|
"name": "@ali/lowcode-demo",
|
||||||
"version": "0.8.28",
|
"version": "0.8.29",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "低代码引擎 DEMO",
|
"description": "低代码引擎 DEMO",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -9,21 +9,21 @@
|
|||||||
},
|
},
|
||||||
"config": {},
|
"config": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-editor-skeleton": "^0.8.24",
|
"@ali/lowcode-editor-skeleton": "^0.8.25",
|
||||||
"@ali/lowcode-plugin-components-pane": "^0.8.21",
|
"@ali/lowcode-plugin-components-pane": "^0.8.22",
|
||||||
"@ali/lowcode-plugin-designer": "^0.9.18",
|
"@ali/lowcode-plugin-designer": "^0.9.19",
|
||||||
"@ali/lowcode-plugin-event-bind-dialog": "^0.8.15",
|
"@ali/lowcode-plugin-event-bind-dialog": "^0.8.16",
|
||||||
"@ali/lowcode-plugin-outline-pane": "^0.8.24",
|
"@ali/lowcode-plugin-outline-pane": "^0.8.25",
|
||||||
"@ali/lowcode-plugin-sample-logo": "^0.8.14",
|
"@ali/lowcode-plugin-sample-logo": "^0.8.15",
|
||||||
"@ali/lowcode-plugin-sample-preview": "^0.8.23",
|
"@ali/lowcode-plugin-sample-preview": "^0.8.24",
|
||||||
"@ali/lowcode-plugin-settings-pane": "^0.8.8",
|
"@ali/lowcode-plugin-settings-pane": "^0.8.8",
|
||||||
"@ali/lowcode-plugin-undo-redo": "^0.8.23",
|
"@ali/lowcode-plugin-undo-redo": "^0.8.24",
|
||||||
"@ali/lowcode-plugin-variable-bind-dialog": "^0.8.13",
|
"@ali/lowcode-plugin-variable-bind-dialog": "^0.8.14",
|
||||||
"@ali/lowcode-plugin-zh-en": "^0.8.17",
|
"@ali/lowcode-plugin-zh-en": "^0.8.18",
|
||||||
"@ali/lowcode-react-renderer": "^0.8.0",
|
"@ali/lowcode-react-renderer": "^0.8.0",
|
||||||
"@ali/lowcode-runtime": "^0.8.13",
|
"@ali/lowcode-runtime": "^0.8.13",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@ali/ve-action-pane": "^4.7.0-beta.0",
|
"@ali/ve-action-pane": "^4.7.0-beta.0",
|
||||||
"@ali/ve-datapool-pane": "^6.4.3",
|
"@ali/ve-datapool-pane": "^6.4.3",
|
||||||
"@ali/ve-history-pane": "4.0.0",
|
"@ali/ve-history-pane": "4.0.0",
|
||||||
|
|||||||
@ -3,6 +3,28 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.9.19"></a>
|
||||||
|
## [0.9.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-designer@0.9.18...@ali/lowcode-designer@0.9.19) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* force schema ([6d0a8ff](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/6d0a8ff))
|
||||||
|
* patch prototype ([f20bfaa](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f20bfaa))
|
||||||
|
* try get settingfield ([56f242f](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/56f242f))
|
||||||
|
* 禁止组件拉到 Page 的直接子节点, 以及替换 tab 组件 ([d93a291](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d93a291))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* complete live-editing expr & i18n ([3ac08ba](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3ac08ba))
|
||||||
|
* get SettingField instead of SettingPropEntry for compatibility ([2787a12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/2787a12))
|
||||||
|
* support prop.autorun ([c0a5235](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c0a5235))
|
||||||
|
* ve事件埋点 ([700e5b0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/700e5b0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.9.18"></a>
|
<a name="0.9.18"></a>
|
||||||
## [0.9.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-designer@0.9.17...@ali/lowcode-designer@0.9.18) (2020-05-20)
|
## [0.9.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-designer@0.9.17...@ali/lowcode-designer@0.9.18) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-designer",
|
"name": "@ali/lowcode-designer",
|
||||||
"version": "0.9.18",
|
"version": "0.9.19",
|
||||||
"description": "Designer for Ali LowCode Engine",
|
"description": "Designer for Ali LowCode Engine",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"module": "es/index.js",
|
"module": "es/index.js",
|
||||||
@ -15,9 +15,9 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"event": "^1.0.0",
|
"event": "^1.0.0",
|
||||||
"react": "^16",
|
"react": "^16",
|
||||||
|
|||||||
@ -753,7 +753,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
this.sensing = true;
|
this.sensing = true;
|
||||||
this.scroller.scrolling(e);
|
this.scroller.scrolling(e);
|
||||||
const dropContainer = this.getDropContainer(e);
|
const dropContainer = this.getDropContainer(e);
|
||||||
if (!dropContainer) {
|
if (!dropContainer || dropContainer.container?.componentName === 'Page') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
this._expanded = value;
|
this._expanded = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(readonly parent: SettingEntry, config: FieldConfig) {
|
constructor(readonly parent: SettingEntry, config: FieldConfig, settingFieldCollector?: (name: string | number, field: SettingField) => void) {
|
||||||
super(parent, config.name, config.type);
|
super(parent, config.name, config.type);
|
||||||
|
|
||||||
const { title, items, setter, extraProps, ...rest } = config;
|
const { title, items, setter, extraProps, ...rest } = config;
|
||||||
@ -52,7 +52,9 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
|
|
||||||
// initial items
|
// initial items
|
||||||
if (this.type === 'group' && items) {
|
if (this.type === 'group' && items) {
|
||||||
this.initItems(items);
|
this.initItems(items, settingFieldCollector);
|
||||||
|
} else if (settingFieldCollector && config.name) {
|
||||||
|
settingFieldCollector(config.name, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// compatiable old config
|
// compatiable old config
|
||||||
@ -65,12 +67,12 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
return this._items;
|
return this._items;
|
||||||
}
|
}
|
||||||
|
|
||||||
private initItems(items: Array<FieldConfig | CustomView>) {
|
private initItems(items: Array<FieldConfig | CustomView>, settingFieldCollector?: { (name: string | number, field: SettingField): void; (name: string, field: SettingField): void; }) {
|
||||||
this._items = items.map((item) => {
|
this._items = items.map((item) => {
|
||||||
if (isCustomView(item)) {
|
if (isCustomView(item)) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
return new SettingField(this, item);
|
return new SettingField(this, item, settingFieldCollector);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,6 +93,14 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
private hotValue: any;
|
private hotValue: any;
|
||||||
|
|
||||||
// ======= compatibles for vision ======
|
// ======= compatibles for vision ======
|
||||||
|
setValue(val: any, isHotValue?: boolean, force?: boolean, extraOptions?: any) {
|
||||||
|
if (isHotValue) {
|
||||||
|
this.setHotValue(val, extraOptions);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super.setValue(val, false, false, extraOptions);
|
||||||
|
}
|
||||||
|
|
||||||
getHotValue(): any {
|
getHotValue(): any {
|
||||||
if (this.hotValue) {
|
if (this.hotValue) {
|
||||||
return this.hotValue;
|
return this.hotValue;
|
||||||
@ -103,7 +113,7 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
return this.transducer.toHot(v);
|
return this.transducer.toHot(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
setHotValue(data: any) {
|
setHotValue(data: any, options?: any) {
|
||||||
this.hotValue = data;
|
this.hotValue = data;
|
||||||
const v = this.transducer.toNative(data);
|
const v = this.transducer.toNative(data);
|
||||||
if (this.isUseVariable()) {
|
if (this.isUseVariable()) {
|
||||||
@ -112,10 +122,16 @@ export class SettingField extends SettingPropEntry implements SettingEntry {
|
|||||||
type: 'JSExpression',
|
type: 'JSExpression',
|
||||||
value: ov.value,
|
value: ov.value,
|
||||||
mock: v,
|
mock: v,
|
||||||
});
|
}, false, false, options);
|
||||||
} else {
|
} else {
|
||||||
this.setValue(v);
|
this.setValue(v, false, false, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// dirty fix list setter
|
||||||
|
if (Array.isArray(data) && data[0] && data[0].__sid__) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.valueChange();
|
this.valueChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -144,12 +144,15 @@ export class SettingPropEntry implements SettingEntry {
|
|||||||
/**
|
/**
|
||||||
* 设置当前属性值
|
* 设置当前属性值
|
||||||
*/
|
*/
|
||||||
setValue(val: any) {
|
setValue(val: any, isHotValue?: boolean, force?: boolean, extraOptions?: any) {
|
||||||
if (this.type === 'field') {
|
if (this.type === 'field') {
|
||||||
this.parent.setPropValue(this.name, val);
|
this.parent.setPropValue(this.name, val);
|
||||||
}
|
}
|
||||||
|
if (!extraOptions) {
|
||||||
|
extraOptions = {};
|
||||||
|
}
|
||||||
const { setValue } = this.extraProps;
|
const { setValue } = this.extraProps;
|
||||||
if (setValue) {
|
if (setValue && !extraOptions.disableMutator) {
|
||||||
setValue(this, val);
|
setValue(this, val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,6 +20,7 @@ export class SettingTopEntry implements SettingEntry {
|
|||||||
private _items: Array<SettingField | CustomView> = [];
|
private _items: Array<SettingField | CustomView> = [];
|
||||||
private _componentMeta: ComponentMeta | null = null;
|
private _componentMeta: ComponentMeta | null = null;
|
||||||
private _isSame: boolean = true;
|
private _isSame: boolean = true;
|
||||||
|
private _settingFieldMap: { [prop: string]: SettingField } = {};
|
||||||
readonly path = [];
|
readonly path = [];
|
||||||
readonly top = this;
|
readonly top = this;
|
||||||
readonly parent = this;
|
readonly parent = this;
|
||||||
@ -95,13 +96,19 @@ export class SettingTopEntry implements SettingEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setupItems() {
|
private setupItems() {
|
||||||
|
console.log('set')
|
||||||
if (this.componentMeta) {
|
if (this.componentMeta) {
|
||||||
|
const settingFieldMap: { [prop: string]: SettingField } = {};
|
||||||
|
const settingFieldCollector = (name: string | number, field: SettingField) => {
|
||||||
|
settingFieldMap[name] = field;
|
||||||
|
}
|
||||||
this._items = this.componentMeta.configure.map((item) => {
|
this._items = this.componentMeta.configure.map((item) => {
|
||||||
if (isCustomView(item)) {
|
if (isCustomView(item)) {
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
return new SettingField(this, item as any);
|
return new SettingField(this, item as any, settingFieldCollector);
|
||||||
});
|
});
|
||||||
|
this._settingFieldMap = settingFieldMap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,14 +131,7 @@ export class SettingTopEntry implements SettingEntry {
|
|||||||
* 获取子项
|
* 获取子项
|
||||||
*/
|
*/
|
||||||
get(propName: string | number): SettingPropEntry {
|
get(propName: string | number): SettingPropEntry {
|
||||||
const matched = this.items.find(item => {
|
return this._settingFieldMap[propName] || (new SettingPropEntry(this, propName));
|
||||||
if (isSettingField(item)) {
|
|
||||||
// TODO: thinkof use name or path?
|
|
||||||
return item.name === propName;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}) as SettingPropEntry;
|
|
||||||
return matched || (new SettingPropEntry(this, propName));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -3,6 +3,19 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.16"></a>
|
||||||
|
## [0.8.16](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-core@0.8.15...@ali/lowcode-editor-core@0.8.16) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add Monitor ([f915d19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f915d19))
|
||||||
|
* add URL link for setter titles ([4678408](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/4678408))
|
||||||
|
* ve事件埋点 ([700e5b0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/700e5b0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.15"></a>
|
<a name="0.8.15"></a>
|
||||||
## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-core@0.8.14...@ali/lowcode-editor-core@0.8.15) (2020-05-20)
|
## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-core@0.8.14...@ali/lowcode-editor-core@0.8.15) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-editor-core",
|
"name": "@ali/lowcode-editor-core",
|
||||||
"version": "0.8.15",
|
"version": "0.8.16",
|
||||||
"description": "Core Api for Ali lowCode engine",
|
"description": "Core Api for Ali lowCode engine",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
@ -15,8 +15,8 @@
|
|||||||
"cloud-build": "build-scripts build --skip-demo"
|
"cloud-build": "build-scripts build --skip-demo"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"@recore/obx": "^1.0.9",
|
"@recore/obx": "^1.0.9",
|
||||||
"@recore/obx-react": "^1.0.8",
|
"@recore/obx-react": "^1.0.8",
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
/**
|
|
||||||
* 黄金令箭埋点
|
|
||||||
* @param {String} gmKey 为黄金令箭业务类型
|
|
||||||
* @param {Object} params 参数
|
|
||||||
* @param {String} logKey 属性串
|
|
||||||
*/
|
|
||||||
export function goldlog(gmKey: string, params: object = {}, logKey: string = 'other'): void {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
export * from './get-public-path';
|
export * from './get-public-path';
|
||||||
export * from './goldlog';
|
export * from './monitor';
|
||||||
export * from './obx';
|
export * from './obx';
|
||||||
export * from './request';
|
export * from './request';
|
||||||
export * from './focus-tracker';
|
export * from './focus-tracker';
|
||||||
|
|||||||
45
packages/editor-core/src/utils/monitor.ts
Normal file
45
packages/editor-core/src/utils/monitor.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
class Monitor {
|
||||||
|
fn = (params: any) => {
|
||||||
|
const { AES } = window as any;
|
||||||
|
if (typeof AES.log === 'function') {
|
||||||
|
const { p1, p2, p3, p4 = 'OTHER', ...rest } = params || {};
|
||||||
|
AES.log('event', {
|
||||||
|
p1,
|
||||||
|
p2,
|
||||||
|
p3,
|
||||||
|
p4,
|
||||||
|
...rest,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
(window as any).AES = (window as any).AES || {};
|
||||||
|
}
|
||||||
|
|
||||||
|
register(fn: () => any) {
|
||||||
|
if (typeof fn === 'function') {
|
||||||
|
this.fn = fn;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log(params: any) {
|
||||||
|
if (typeof this.fn === 'function') {
|
||||||
|
this.fn(params);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setConfig(key: string | object, value?: string): void {
|
||||||
|
const { AES } = window as any;
|
||||||
|
if (typeof AES?.setConfig !== 'function') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof key === 'string' && value) {
|
||||||
|
AES.setConfig(key, value);
|
||||||
|
} else if (typeof key === 'object') {
|
||||||
|
AES.setConfig(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default new Monitor();
|
||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.9.5"></a>
|
||||||
|
## [0.9.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-general@0.9.4...@ali/lowcode-editor-preset-general@0.9.5) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-editor-preset-general
|
||||||
|
|
||||||
<a name="0.9.4"></a>
|
<a name="0.9.4"></a>
|
||||||
## [0.9.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-general@0.9.3...@ali/lowcode-editor-preset-general@0.9.4) (2020-05-20)
|
## [0.9.4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-general@0.9.3...@ali/lowcode-editor-preset-general@0.9.4) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-editor-preset-general",
|
"name": "@ali/lowcode-editor-preset-general",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"description": "Ali General Editor Preset",
|
"description": "Ali General Editor Preset",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
@ -14,12 +14,12 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-editor-skeleton": "^0.8.24",
|
"@ali/lowcode-editor-skeleton": "^0.8.25",
|
||||||
"@ali/lowcode-plugin-designer": "^0.9.18",
|
"@ali/lowcode-plugin-designer": "^0.9.19",
|
||||||
"@ali/lowcode-plugin-outline-pane": "^0.8.24",
|
"@ali/lowcode-plugin-outline-pane": "^0.8.25",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@alifd/next": "^1.19.12",
|
"@alifd/next": "^1.19.12",
|
||||||
"@alife/theme-lowcode-dark": "^0.1.0",
|
"@alife/theme-lowcode-dark": "^0.1.0",
|
||||||
"@alife/theme-lowcode-light": "^0.1.0",
|
"@alife/theme-lowcode-light": "^0.1.0",
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ali/lowcode-editor-setters": "^0.9.2",
|
"@ali/lowcode-editor-setters": "^0.9.3",
|
||||||
"@alib/build-scripts": "^0.1.18",
|
"@alib/build-scripts": "^0.1.18",
|
||||||
"@types/domready": "^1.0.0",
|
"@types/domready": "^1.0.0",
|
||||||
"@types/events": "^3.0.0",
|
"@types/events": "^3.0.0",
|
||||||
|
|||||||
@ -3,6 +3,29 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.20"></a>
|
||||||
|
## [0.8.20](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-vision@0.8.19...@ali/lowcode-editor-preset-vision@0.8.20) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* compatiable old VE api ([45af1c5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/45af1c5))
|
||||||
|
* i18n parser & setting ([dbdd9e4](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/dbdd9e4))
|
||||||
|
* patch prototype ([f20bfaa](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/f20bfaa))
|
||||||
|
* render children ([487f257](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/487f257))
|
||||||
|
* style ([4694331](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/4694331))
|
||||||
|
* 调整保存成功弹出框位置 ([5198dae](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5198dae))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* complete live-editing expr & i18n ([3ac08ba](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/3ac08ba))
|
||||||
|
* support prop.autorun ([c0a5235](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c0a5235))
|
||||||
|
* ve事件埋点 ([700e5b0](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/700e5b0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.19"></a>
|
<a name="0.8.19"></a>
|
||||||
## [0.8.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-vision@0.8.18...@ali/lowcode-editor-preset-vision@0.8.19) (2020-05-20)
|
## [0.8.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-preset-vision@0.8.18...@ali/lowcode-editor-preset-vision@0.8.19) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-editor-preset-vision",
|
"name": "@ali/lowcode-editor-preset-vision",
|
||||||
"version": "0.8.19",
|
"version": "0.8.20",
|
||||||
"description": "Vision Polyfill for Ali lowCode engine",
|
"description": "Vision Polyfill for Ali lowCode engine",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
@ -14,15 +14,16 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-editor-skeleton": "^0.8.24",
|
"@ali/lowcode-editor-skeleton": "^0.8.25",
|
||||||
"@ali/lowcode-plugin-designer": "^0.9.18",
|
"@ali/lowcode-plugin-designer": "^0.9.19",
|
||||||
"@ali/lowcode-plugin-outline-pane": "^0.8.24",
|
"@ali/lowcode-plugin-outline-pane": "^0.8.25",
|
||||||
"@ali/ve-icons": "^4.1.9",
|
"@ali/ve-icons": "^4.1.9",
|
||||||
"@ali/ve-less-variables": "2.0.3",
|
"@ali/ve-less-variables": "2.0.3",
|
||||||
"@ali/ve-popups": "^4.2.5",
|
"@ali/ve-popups": "^4.2.5",
|
||||||
"@ali/ve-utils": "^1.1.0",
|
"@ali/ve-utils": "^1.1.0",
|
||||||
|
"@ali/ve-i18n-util": "^2.0.0",
|
||||||
"@ali/vu-css-style": "^1.1.3",
|
"@ali/vu-css-style": "^1.1.3",
|
||||||
"@ali/vu-logger": "^1.0.7",
|
"@ali/vu-logger": "^1.0.7",
|
||||||
"@ali/vu-style-sheet": "^2.4.0",
|
"@ali/vu-style-sheet": "^2.4.0",
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.9.3"></a>
|
||||||
|
## [0.9.3](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-setters@0.9.2...@ali/lowcode-editor-setters@0.9.3) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-editor-setters
|
||||||
|
|
||||||
<a name="0.9.2"></a>
|
<a name="0.9.2"></a>
|
||||||
## [0.9.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-setters@0.9.1...@ali/lowcode-editor-setters@0.9.2) (2020-05-20)
|
## [0.9.2](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-setters@0.9.1...@ali/lowcode-editor-setters@0.9.2) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-editor-setters",
|
"name": "@ali/lowcode-editor-setters",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"description": "Builtin setters for Ali lowCode engine",
|
"description": "Builtin setters for Ali lowCode engine",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"@ali/iceluna-comp-react-node": "^1.0.5",
|
"@ali/iceluna-comp-react-node": "^1.0.5",
|
||||||
"@ali/iceluna-sdk": "^1.0.5-beta.24",
|
"@ali/iceluna-sdk": "^1.0.5-beta.24",
|
||||||
"@ali/lc-style-setter": "^0.0.1",
|
"@ali/lc-style-setter": "^0.0.1",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"acorn": "^6.4.1",
|
"acorn": "^6.4.1",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|||||||
@ -3,6 +3,26 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.25"></a>
|
||||||
|
## [0.8.25](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-skeleton@0.8.24...@ali/lowcode-editor-skeleton@0.8.25) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复bool类型对应的setter ([2df6230](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/2df6230))
|
||||||
|
* 禁止组件拉到 Page 的直接子节点, 以及替换 tab 组件 ([d93a291](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/d93a291))
|
||||||
|
* 调整保存成功弹出框位置 ([5198dae](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/5198dae))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add URL link for setter titles ([4678408](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/4678408))
|
||||||
|
* panel增加自动埋点 ([afc7758](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/afc7758))
|
||||||
|
* 自动埋点 ([fecf34d](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/fecf34d))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.24"></a>
|
<a name="0.8.24"></a>
|
||||||
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-skeleton@0.8.23...@ali/lowcode-editor-skeleton@0.8.24) (2020-05-20)
|
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-editor-skeleton@0.8.23...@ali/lowcode-editor-skeleton@0.8.24) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-editor-skeleton",
|
"name": "@ali/lowcode-editor-skeleton",
|
||||||
"version": "0.8.24",
|
"version": "0.8.25",
|
||||||
"description": "alibaba lowcode editor skeleton",
|
"description": "alibaba lowcode editor skeleton",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"module": "es/index.js",
|
"module": "es/index.js",
|
||||||
@ -19,11 +19,11 @@
|
|||||||
"editor"
|
"editor"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@alifd/next": "^1.x",
|
"@alifd/next": "^1.20.12",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import InlineTip from './inlinetip';
|
|||||||
|
|
||||||
export interface FieldProps {
|
export interface FieldProps {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
meta?: { package: string; componentName: string } | string;
|
||||||
title?: TitleContent | null;
|
title?: TitleContent | null;
|
||||||
defaultDisplay?: 'accordion' | 'inline' | 'block';
|
defaultDisplay?: 'accordion' | 'inline' | 'block';
|
||||||
collapsed?: boolean;
|
collapsed?: boolean;
|
||||||
@ -115,15 +116,23 @@ export class Field extends Component<FieldProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { className, children, title, valueState, onClear, name: propName, tip } = this.props;
|
const { className, children, meta, title, valueState, onClear, name: propName, tip } = this.props;
|
||||||
const { display, collapsed } = this.state;
|
const { display, collapsed } = this.state;
|
||||||
const isAccordion = display === 'accordion';
|
const isAccordion = display === 'accordion';
|
||||||
|
let hostName = '';
|
||||||
|
if (typeof meta === 'object') {
|
||||||
|
hostName = `${meta?.package || ''}-${meta.componentName || ''}`;
|
||||||
|
} else if (typeof meta === 'string') {
|
||||||
|
hostName = meta;
|
||||||
|
}
|
||||||
|
const id = `${hostName}-${propName || (title as any)['en-US'] || (title as any)['zh-CN']}`;
|
||||||
const tipContent = this.getTipContent(propName!, tip);
|
const tipContent = this.getTipContent(propName!, tip);
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames(`lc-field lc-${display}-field`, className, {
|
className={classNames(`lc-field lc-${display}-field`, className, {
|
||||||
'lc-field-is-collapsed': isAccordion && collapsed,
|
'lc-field-is-collapsed': isAccordion && collapsed,
|
||||||
})}
|
})}
|
||||||
|
id={id}
|
||||||
>
|
>
|
||||||
<div className="lc-field-head" onClick={isAccordion ? this.toggleExpand : undefined}>
|
<div className="lc-field-head" onClick={isAccordion ? this.toggleExpand : undefined}>
|
||||||
<div className="lc-field-title">
|
<div className="lc-field-title">
|
||||||
|
|||||||
@ -63,6 +63,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
|
|||||||
|
|
||||||
return createField(
|
return createField(
|
||||||
{
|
{
|
||||||
|
meta: field?.componentMeta?.npm || field?.componentMeta?.componentName || '',
|
||||||
title: field.title,
|
title: field.title,
|
||||||
collapsed: !field.expanded,
|
collapsed: !field.expanded,
|
||||||
valueState: field.isRequired ? 10 : field.valueState,
|
valueState: field.isRequired ? 10 : field.valueState,
|
||||||
@ -121,6 +122,7 @@ class SettingGroupView extends Component<{ field: SettingField }> {
|
|||||||
return (
|
return (
|
||||||
<Field
|
<Field
|
||||||
defaultDisplay="accordion"
|
defaultDisplay="accordion"
|
||||||
|
meta={field?.componentMeta?.npm || field?.componentMeta?.componentName || ''}
|
||||||
title={field.title}
|
title={field.title}
|
||||||
collapsed={!field.expanded}
|
collapsed={!field.expanded}
|
||||||
onExpandChange={(expandState) => {
|
onExpandChange={(expandState) => {
|
||||||
|
|||||||
@ -123,6 +123,7 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
|||||||
animation={false}
|
animation={false}
|
||||||
excessMode="dropdown"
|
excessMode="dropdown"
|
||||||
contentClassName="lc-settings-tabs-content"
|
contentClassName="lc-settings-tabs-content"
|
||||||
|
disableKeyboard={true}
|
||||||
extra={this.renderBreadcrumb()}
|
extra={this.renderBreadcrumb()}
|
||||||
>
|
>
|
||||||
{tabs}
|
{tabs}
|
||||||
|
|||||||
@ -27,7 +27,7 @@ function HelpTip({ tip }: any) {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<a href={tip.url} target="_blank" rel="noopener noreferrer">
|
<a href={tip.url} target="_blank" rel="noopener noreferrer">
|
||||||
<Icon type="help" size="small" className="lc-help-tip"/>
|
<Icon type="help" size="small" className="lc-help-tip" />
|
||||||
</a>
|
</a>
|
||||||
<Tip>{tip.content}</Tip>
|
<Tip>{tip.content}</Tip>
|
||||||
</div>
|
</div>
|
||||||
@ -35,10 +35,10 @@ function HelpTip({ tip }: any) {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Icon type="help" size="small" className="lc-help-tip"/>
|
<Icon type="help" size="small" className="lc-help-tip" />
|
||||||
<Tip>{tip.content}</Tip>
|
<Tip>{tip.content}</Tip>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
@ -49,7 +49,7 @@ export class PanelDockView extends Component<DockProps & { dock: PanelDock }> {
|
|||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.checkActived();
|
this.checkActived();
|
||||||
}
|
}
|
||||||
private lastActived: boolean = false;
|
private lastActived = false;
|
||||||
checkActived() {
|
checkActived() {
|
||||||
const { dock } = this.props;
|
const { dock } = this.props;
|
||||||
if (dock.actived !== this.lastActived) {
|
if (dock.actived !== this.lastActived) {
|
||||||
@ -77,12 +77,10 @@ export class PanelDockView extends Component<DockProps & { dock: PanelDock }> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DialogDockView extends Component {
|
export class DialogDockView extends Component {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class TitledPanelView extends Component<{ panel: Panel }> {
|
export class TitledPanelView extends Component<{ panel: Panel; area?: string }> {
|
||||||
shouldComponentUpdate() {
|
shouldComponentUpdate() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -92,7 +90,7 @@ export class TitledPanelView extends Component<{ panel: Panel }> {
|
|||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.checkVisible();
|
this.checkVisible();
|
||||||
}
|
}
|
||||||
private lastVisible: boolean = false;
|
private lastVisible = false;
|
||||||
checkVisible() {
|
checkVisible() {
|
||||||
const { panel } = this.props;
|
const { panel } = this.props;
|
||||||
const currentVisible = panel.inited && panel.visible;
|
const currentVisible = panel.inited && panel.visible;
|
||||||
@ -106,14 +104,17 @@ export class TitledPanelView extends Component<{ panel: Panel }> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const { panel } = this.props;
|
const { panel, area } = this.props;
|
||||||
if (!panel.inited) {
|
if (!panel.inited) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className={classNames('lc-titled-panel', {
|
<div
|
||||||
|
className={classNames('lc-titled-panel', {
|
||||||
hidden: !panel.visible,
|
hidden: !panel.visible,
|
||||||
})}>
|
})}
|
||||||
|
id={`${area || ''}-${panel.name}`}
|
||||||
|
>
|
||||||
<PanelTitle panel={panel} />
|
<PanelTitle panel={panel} />
|
||||||
<div className="lc-panel-body">{panel.body}</div>
|
<div className="lc-panel-body">{panel.body}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -122,7 +123,7 @@ export class TitledPanelView extends Component<{ panel: Panel }> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class PanelView extends Component<{ panel: Panel }> {
|
export class PanelView extends Component<{ panel: Panel; area?: string }> {
|
||||||
shouldComponentUpdate() {
|
shouldComponentUpdate() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -132,7 +133,7 @@ export class PanelView extends Component<{ panel: Panel }> {
|
|||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.checkVisible();
|
this.checkVisible();
|
||||||
}
|
}
|
||||||
private lastVisible: boolean = false;
|
private lastVisible = false;
|
||||||
checkVisible() {
|
checkVisible() {
|
||||||
const { panel } = this.props;
|
const { panel } = this.props;
|
||||||
const currentVisible = panel.inited && panel.visible;
|
const currentVisible = panel.inited && panel.visible;
|
||||||
@ -150,7 +151,7 @@ export class PanelView extends Component<{ panel: Panel }> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const { panel } = this.props;
|
const { panel, area } = this.props;
|
||||||
if (!panel.inited) {
|
if (!panel.inited) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -159,6 +160,7 @@ export class PanelView extends Component<{ panel: Panel }> {
|
|||||||
className={classNames('lc-panel', {
|
className={classNames('lc-panel', {
|
||||||
hidden: !panel.visible,
|
hidden: !panel.visible,
|
||||||
})}
|
})}
|
||||||
|
id={`${area || ''}-${panel.name}`}
|
||||||
>
|
>
|
||||||
{panel.body}
|
{panel.body}
|
||||||
</div>
|
</div>
|
||||||
@ -233,7 +235,7 @@ export class WidgetView extends Component<{ widget: IWidget }> {
|
|||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
this.checkVisible();
|
this.checkVisible();
|
||||||
}
|
}
|
||||||
private lastVisible: boolean = false;
|
private lastVisible = false;
|
||||||
checkVisible() {
|
checkVisible() {
|
||||||
const { widget } = this.props;
|
const { widget } = this.props;
|
||||||
const currentVisible = widget.visible;
|
const currentVisible = widget.visible;
|
||||||
|
|||||||
@ -24,11 +24,12 @@ class Contents extends Component<{ area: Area }> {
|
|||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
const top: any[] = [];
|
const top: any[] = [];
|
||||||
const bottom: any[] = [];
|
const bottom: any[] = [];
|
||||||
area.container.items.forEach(item => {
|
area.container.items.forEach((item) => {
|
||||||
|
const content = <div id={`left-area-${item.name}`}>{item.content}</div>;
|
||||||
if (item.align === 'bottom') {
|
if (item.align === 'bottom') {
|
||||||
bottom.push(item.content);
|
bottom.push(content);
|
||||||
} else {
|
} else {
|
||||||
top.push(item.content);
|
top.push(content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -25,8 +25,7 @@ export default class LeftFixedPane extends Component<{ area: Area<PanelConfig, P
|
|||||||
'lc-area-visible': area.visible,
|
'lc-area-visible': area.visible,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{
|
{!hideTitleBar && (
|
||||||
!hideTitleBar && (
|
|
||||||
<Button
|
<Button
|
||||||
text
|
text
|
||||||
className="lc-pane-close"
|
className="lc-pane-close"
|
||||||
@ -36,8 +35,7 @@ export default class LeftFixedPane extends Component<{ area: Area<PanelConfig, P
|
|||||||
>
|
>
|
||||||
<Icon type="close" />
|
<Icon type="close" />
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)}
|
||||||
}
|
|
||||||
<Contents area={area} />
|
<Contents area={area} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -51,10 +49,6 @@ class Contents extends Component<{ area: Area<PanelConfig, Panel> }> {
|
|||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
return (
|
return <Fragment>{area.container.items.map((panel) => panel.content)}</Fragment>;
|
||||||
<Fragment>
|
|
||||||
{area.container.items.map((panel) => panel.content)}
|
|
||||||
</Fragment>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class Contents extends Component<{ area: Area, itemClassName?: string }> {
|
|||||||
return index1 === index2 ? 0 : (index1 > index2 ? 1 : -1);
|
return index1 === index2 ? 0 : (index1 > index2 ? 1 : -1);
|
||||||
}).forEach(item => {
|
}).forEach(item => {
|
||||||
const content = (
|
const content = (
|
||||||
<div className={itemClassName || ''}>
|
<div className={itemClassName || ''} id={`top-area-${item.name}`}>
|
||||||
{item.content}
|
{item.content}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -53,7 +53,7 @@ function propTypeToSetter(propType: PropType): SetterType {
|
|||||||
};
|
};
|
||||||
case 'bool':
|
case 'bool':
|
||||||
return {
|
return {
|
||||||
componentName: 'NumberSetter',
|
componentName: 'BoolSetter',
|
||||||
isRequired,
|
isRequired,
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -57,9 +57,10 @@ export default class Panel implements IWidget {
|
|||||||
return createElement(PanelView, {
|
return createElement(PanelView, {
|
||||||
panel: this,
|
panel: this,
|
||||||
key: this.id,
|
key: this.id,
|
||||||
|
area: this.parent?.name,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return createElement(TitledPanelView, { panel: this, key: this.id });
|
return createElement(TitledPanelView, { panel: this, key: this.id, area: this.parent?.name });
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly title: TitleContent;
|
readonly title: TitleContent;
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.22"></a>
|
||||||
|
## [0.8.22](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-components-pane@0.8.21...@ali/lowcode-plugin-components-pane@0.8.22) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-components-pane
|
||||||
|
|
||||||
<a name="0.8.21"></a>
|
<a name="0.8.21"></a>
|
||||||
## [0.8.21](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-components-pane@0.8.20...@ali/lowcode-plugin-components-pane@0.8.21) (2020-05-20)
|
## [0.8.21](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-components-pane@0.8.20...@ali/lowcode-plugin-components-pane@0.8.21) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-components-pane",
|
"name": "@ali/lowcode-plugin-components-pane",
|
||||||
"version": "0.8.21",
|
"version": "0.8.22",
|
||||||
"description": "alibaba lowcode editor component-list plugin",
|
"description": "alibaba lowcode editor component-list plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es/",
|
"es/",
|
||||||
@ -20,9 +20,9 @@
|
|||||||
],
|
],
|
||||||
"author": "xiayang.xy",
|
"author": "xiayang.xy",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.3",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/ve-component-list": "^1.1.1",
|
"@ali/ve-component-list": "^1.1.1",
|
||||||
"@alifd/next": "^1.19.19",
|
"@alifd/next": "^1.19.19",
|
||||||
"react": "^16.8.1"
|
"react": "^16.8.1"
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.9.19"></a>
|
||||||
|
## [0.9.19](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-designer@0.9.18...@ali/lowcode-plugin-designer@0.9.19) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-designer
|
||||||
|
|
||||||
<a name="0.9.18"></a>
|
<a name="0.9.18"></a>
|
||||||
## [0.9.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-designer@0.9.17...@ali/lowcode-plugin-designer@0.9.18) (2020-05-20)
|
## [0.9.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-designer@0.9.17...@ali/lowcode-plugin-designer@0.9.18) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-designer",
|
"name": "@ali/lowcode-plugin-designer",
|
||||||
"version": "0.9.18",
|
"version": "0.9.19",
|
||||||
"description": "alibaba lowcode editor designer plugin",
|
"description": "alibaba lowcode editor designer plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -20,8 +20,8 @@
|
|||||||
],
|
],
|
||||||
"author": "xiayang.xy",
|
"author": "xiayang.xy",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.16"></a>
|
||||||
|
## [0.8.16](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-event-bind-dialog@0.8.15...@ali/lowcode-plugin-event-bind-dialog@0.8.16) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-event-bind-dialog
|
||||||
|
|
||||||
<a name="0.8.15"></a>
|
<a name="0.8.15"></a>
|
||||||
## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-event-bind-dialog@0.8.14...@ali/lowcode-plugin-event-bind-dialog@0.8.15) (2020-05-20)
|
## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-event-bind-dialog@0.8.14...@ali/lowcode-plugin-event-bind-dialog@0.8.15) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-event-bind-dialog",
|
"name": "@ali/lowcode-plugin-event-bind-dialog",
|
||||||
"version": "0.8.15",
|
"version": "0.8.16",
|
||||||
"description": "alibaba lowcode editor event bind dialog plugin",
|
"description": "alibaba lowcode editor event bind dialog plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -19,8 +19,8 @@
|
|||||||
],
|
],
|
||||||
"author": "zude.hzd",
|
"author": "zude.hzd",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.25"></a>
|
||||||
|
## [0.8.25](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-outline-pane@0.8.24...@ali/lowcode-plugin-outline-pane@0.8.25) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-outline-pane
|
||||||
|
|
||||||
<a name="0.8.24"></a>
|
<a name="0.8.24"></a>
|
||||||
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-outline-pane@0.8.23...@ali/lowcode-plugin-outline-pane@0.8.24) (2020-05-20)
|
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-outline-pane@0.8.23...@ali/lowcode-plugin-outline-pane@0.8.24) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-outline-pane",
|
"name": "@ali/lowcode-plugin-outline-pane",
|
||||||
"version": "0.8.24",
|
"version": "0.8.25",
|
||||||
"description": "Outline pane for Ali lowCode engine",
|
"description": "Outline pane for Ali lowCode engine",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -14,10 +14,10 @@
|
|||||||
"test:snapshot": "ava --update-snapshots"
|
"test:snapshot": "ava --update-snapshots"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"react": "^16",
|
"react": "^16",
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.15"></a>
|
||||||
|
## [0.8.15](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-logo@0.8.14...@ali/lowcode-plugin-sample-logo@0.8.15) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-sample-logo
|
||||||
|
|
||||||
<a name="0.8.14"></a>
|
<a name="0.8.14"></a>
|
||||||
## [0.8.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-logo@0.8.13...@ali/lowcode-plugin-sample-logo@0.8.14) (2020-05-20)
|
## [0.8.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-logo@0.8.13...@ali/lowcode-plugin-sample-logo@0.8.14) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-sample-logo",
|
"name": "@ali/lowcode-plugin-sample-logo",
|
||||||
"version": "0.8.14",
|
"version": "0.8.15",
|
||||||
"description": "alibaba lowcode editor logo plugin",
|
"description": "alibaba lowcode editor logo plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es/",
|
"es/",
|
||||||
@ -20,7 +20,7 @@
|
|||||||
],
|
],
|
||||||
"author": "xiayang.xy",
|
"author": "xiayang.xy",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"react": "^16.8.1"
|
"react": "^16.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.24"></a>
|
||||||
|
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-preview@0.8.23...@ali/lowcode-plugin-sample-preview@0.8.24) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-sample-preview
|
||||||
|
|
||||||
<a name="0.8.23"></a>
|
<a name="0.8.23"></a>
|
||||||
## [0.8.23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-preview@0.8.22...@ali/lowcode-plugin-sample-preview@0.8.23) (2020-05-20)
|
## [0.8.23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-sample-preview@0.8.22...@ali/lowcode-plugin-sample-preview@0.8.23) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-sample-preview",
|
"name": "@ali/lowcode-plugin-sample-preview",
|
||||||
"version": "0.8.23",
|
"version": "0.8.24",
|
||||||
"description": "alibaba lowcode editor sample preview plugin",
|
"description": "alibaba lowcode editor sample preview plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -18,8 +18,8 @@
|
|||||||
"editor"
|
"editor"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@alifd/next": "^1.x",
|
"@alifd/next": "^1.x",
|
||||||
"react": "^16.8.1"
|
"react": "^16.8.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.13"></a>
|
||||||
|
## [0.8.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-source-editor@0.8.12...@ali/lowcode-plugin-source-editor@0.8.13) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-source-editor
|
||||||
|
|
||||||
<a name="0.8.12"></a>
|
<a name="0.8.12"></a>
|
||||||
## [0.8.12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-source-editor@0.8.11...@ali/lowcode-plugin-source-editor@0.8.12) (2020-05-20)
|
## [0.8.12](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-source-editor@0.8.11...@ali/lowcode-plugin-source-editor@0.8.12) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-source-editor",
|
"name": "@ali/lowcode-plugin-source-editor",
|
||||||
"version": "0.8.12",
|
"version": "0.8.13",
|
||||||
"description": "alibaba lowcode editor source-editor plugin",
|
"description": "alibaba lowcode editor source-editor plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
"author": "zude.hzd",
|
"author": "zude.hzd",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"js-beautify": "^1.10.1",
|
"js-beautify": "^1.10.1",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.24"></a>
|
||||||
|
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-undo-redo@0.8.23...@ali/lowcode-plugin-undo-redo@0.8.24) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-undo-redo
|
||||||
|
|
||||||
<a name="0.8.23"></a>
|
<a name="0.8.23"></a>
|
||||||
## [0.8.23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-undo-redo@0.8.22...@ali/lowcode-plugin-undo-redo@0.8.23) (2020-05-20)
|
## [0.8.23](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-undo-redo@0.8.22...@ali/lowcode-plugin-undo-redo@0.8.23) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-undo-redo",
|
"name": "@ali/lowcode-plugin-undo-redo",
|
||||||
"version": "0.8.23",
|
"version": "0.8.24",
|
||||||
"description": "alibaba lowcode editor undo redo plugin",
|
"description": "alibaba lowcode editor undo redo plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -19,11 +19,11 @@
|
|||||||
],
|
],
|
||||||
"author": "xiayang.xy",
|
"author": "xiayang.xy",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-editor-skeleton": "^0.8.24",
|
"@ali/lowcode-editor-skeleton": "^0.8.25",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.14"></a>
|
||||||
|
## [0.8.14](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-variable-bind-dialog@0.8.13...@ali/lowcode-plugin-variable-bind-dialog@0.8.14) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-variable-bind-dialog
|
||||||
|
|
||||||
<a name="0.8.13"></a>
|
<a name="0.8.13"></a>
|
||||||
## [0.8.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-variable-bind-dialog@0.8.12...@ali/lowcode-plugin-variable-bind-dialog@0.8.13) (2020-05-20)
|
## [0.8.13](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-variable-bind-dialog@0.8.12...@ali/lowcode-plugin-variable-bind-dialog@0.8.13) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-variable-bind-dialog",
|
"name": "@ali/lowcode-plugin-variable-bind-dialog",
|
||||||
"version": "0.8.13",
|
"version": "0.8.14",
|
||||||
"description": "alibaba lowcode editor variable bind dialog plugin",
|
"description": "alibaba lowcode editor variable bind dialog plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
],
|
],
|
||||||
"author": "zude.hzd",
|
"author": "zude.hzd",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.18"></a>
|
||||||
|
## [0.8.18](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-zh-en@0.8.17...@ali/lowcode-plugin-zh-en@0.8.18) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-plugin-zh-en
|
||||||
|
|
||||||
<a name="0.8.17"></a>
|
<a name="0.8.17"></a>
|
||||||
## [0.8.17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-zh-en@0.8.16...@ali/lowcode-plugin-zh-en@0.8.17) (2020-05-20)
|
## [0.8.17](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-plugin-zh-en@0.8.16...@ali/lowcode-plugin-zh-en@0.8.17) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-plugin-zh-en",
|
"name": "@ali/lowcode-plugin-zh-en",
|
||||||
"version": "0.8.17",
|
"version": "0.8.18",
|
||||||
"description": "alibaba lowcode editor zhong english plugin",
|
"description": "alibaba lowcode editor zhong english plugin",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -14,9 +14,9 @@
|
|||||||
"test:snapshot": "ava --update-snapshots"
|
"test:snapshot": "ava --update-snapshots"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-editor-core": "^0.8.15",
|
"@ali/lowcode-editor-core": "^0.8.16",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,6 +3,17 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.25"></a>
|
||||||
|
## [0.8.25](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-react-simulator-renderer@0.8.24...@ali/lowcode-react-simulator-renderer@0.8.25) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* render children ([487f257](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/487f257))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.24"></a>
|
<a name="0.8.24"></a>
|
||||||
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-react-simulator-renderer@0.8.23...@ali/lowcode-react-simulator-renderer@0.8.24) (2020-05-20)
|
## [0.8.24](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-react-simulator-renderer@0.8.23...@ali/lowcode-react-simulator-renderer@0.8.24) (2020-05-20)
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "@ali/lowcode-react-simulator-renderer",
|
"name": "@ali/lowcode-react-simulator-renderer",
|
||||||
"version": "0.8.24",
|
"version": "0.8.25",
|
||||||
"description": "react simulator renderer for alibaba lowcode designer",
|
"description": "react simulator renderer for alibaba lowcode designer",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"module": "es/index.js",
|
"module": "es/index.js",
|
||||||
@ -13,10 +13,10 @@
|
|||||||
"test:snapshot": "ava --update-snapshots"
|
"test:snapshot": "ava --update-snapshots"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-designer": "^0.9.18",
|
"@ali/lowcode-designer": "^0.9.19",
|
||||||
"@ali/lowcode-react-renderer": "^0.8.0",
|
"@ali/lowcode-react-renderer": "^0.8.0",
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@ali/lowcode-utils": "^0.8.6",
|
"@ali/lowcode-utils": "^0.8.7",
|
||||||
"@ali/vu-css-style": "^1.0.2",
|
"@ali/vu-css-style": "^1.0.2",
|
||||||
"@recore/obx": "^1.0.8",
|
"@recore/obx": "^1.0.8",
|
||||||
"@recore/obx-react": "^1.0.7",
|
"@recore/obx-react": "^1.0.7",
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { reactFindDOMNodes, FIBER_KEY } from './utils/react-find-dom-nodes';
|
|||||||
import { isESModule, isElement, cursor, setNativeSelection } from '@ali/lowcode-utils';
|
import { isESModule, isElement, cursor, setNativeSelection } from '@ali/lowcode-utils';
|
||||||
import { RootSchema, NpmInfo, ComponentSchema } from '@ali/lowcode-types';
|
import { RootSchema, NpmInfo, ComponentSchema } from '@ali/lowcode-types';
|
||||||
// just use types
|
// just use types
|
||||||
import { BuiltinSimulatorRenderer, NodeInstance, Component, TransformStage } from '@ali/lowcode-designer';
|
import { BuiltinSimulatorRenderer, NodeInstance, Component } from '@ali/lowcode-designer';
|
||||||
import Slot from './builtin-components/slot';
|
import Slot from './builtin-components/slot';
|
||||||
import Leaf from './builtin-components/leaf';
|
import Leaf from './builtin-components/leaf';
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ export class SimulatorRenderer implements BuiltinSimulatorRenderer {
|
|||||||
children = schema.children.map((item: any) => getElement(componentsMap, item));
|
children = schema.children.map((item: any) => getElement(componentsMap, item));
|
||||||
}
|
}
|
||||||
const _leaf = host.document.designer.currentDocument?.createNode(schema);
|
const _leaf = host.document.designer.currentDocument?.createNode(schema);
|
||||||
const props = host.document.designer.transformProps(schema.props || {}, host.document.createNode(schema), TransformStage.Render);
|
const props = host.document.designer.transformProps(schema.props || {}, host.document.createNode(schema), 1 /*TransformStage.Render*/);
|
||||||
return createElement(Com, {...props, _leaf}, children);
|
return createElement(Com, {...props, _leaf}, children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,17 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.6"></a>
|
||||||
|
## [0.8.6](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-types@0.8.5...@ali/lowcode-types@0.8.6) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* support prop.autorun ([c0a5235](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/commit/c0a5235))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.8.5"></a>
|
<a name="0.8.5"></a>
|
||||||
## [0.8.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-types@0.8.4...@ali/lowcode-types@0.8.5) (2020-05-18)
|
## [0.8.5](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-types@0.8.4...@ali/lowcode-types@0.8.5) (2020-05-18)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-types",
|
"name": "@ali/lowcode-types",
|
||||||
"version": "0.8.5",
|
"version": "0.8.6",
|
||||||
"description": "Types for Ali lowCode engine",
|
"description": "Types for Ali lowCode engine",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.8.7"></a>
|
||||||
|
## [0.8.7](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-utils@0.8.6...@ali/lowcode-utils@0.8.7) (2020-06-15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ali/lowcode-utils
|
||||||
|
|
||||||
<a name="0.8.6"></a>
|
<a name="0.8.6"></a>
|
||||||
## [0.8.6](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-utils@0.8.5...@ali/lowcode-utils@0.8.6) (2020-05-18)
|
## [0.8.6](https://gitlab.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/compare/@ali/lowcode-utils@0.8.5...@ali/lowcode-utils@0.8.6) (2020-05-18)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-utils",
|
"name": "@ali/lowcode-utils",
|
||||||
"version": "0.8.6",
|
"version": "0.8.7",
|
||||||
"description": "Utils for Ali lowCode engine",
|
"description": "Utils for Ali lowCode engine",
|
||||||
"files": [
|
"files": [
|
||||||
"es",
|
"es",
|
||||||
@ -14,7 +14,7 @@
|
|||||||
"test:snapshot": "ava --update-snapshots"
|
"test:snapshot": "ava --update-snapshots"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ali/lowcode-types": "^0.8.5",
|
"@ali/lowcode-types": "^0.8.6",
|
||||||
"@alifd/next": "^1.19.16",
|
"@alifd/next": "^1.19.16",
|
||||||
"react": "^16"
|
"react": "^16"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -21,18 +21,18 @@ echo ""
|
|||||||
|
|
||||||
# work
|
# work
|
||||||
mkdir packages
|
mkdir packages
|
||||||
cp -r $WORK_DIR/packages/demo packages/demo
|
# cp -r $WORK_DIR/packages/demo packages/demo
|
||||||
cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
|
cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
|
||||||
cp -r $WORK_DIR/packages/editor-preset-vision packages/editor-preset-vision
|
cp -r $WORK_DIR/packages/editor-preset-vision packages/editor-preset-vision
|
||||||
cp -r $WORK_DIR/packages/editor-preset-general packages/editor-preset-general
|
# cp -r $WORK_DIR/packages/editor-preset-general packages/editor-preset-general
|
||||||
lerna bootstrap
|
lerna bootstrap
|
||||||
lerna run cloud-build --stream
|
lerna run cloud-build --stream
|
||||||
|
|
||||||
cd $WORK_DIR
|
cd $WORK_DIR
|
||||||
mv deploy-space/packages/demo/build $BUILD_DEST
|
# mv deploy-space/packages/demo/build $BUILD_DEST
|
||||||
mv deploy-space/packages/react-simulator-renderer/dist/* $BUILD_DEST
|
mv deploy-space/packages/react-simulator-renderer/dist $BUILD_DEST
|
||||||
mv deploy-space/packages/editor-preset-vision/dist/* $BUILD_DEST
|
mv deploy-space/packages/editor-preset-vision/dist/* $BUILD_DEST
|
||||||
mv deploy-space/packages/editor-preset-general/dist/* $BUILD_DEST
|
# mv deploy-space/packages/editor-preset-general/dist/* $BUILD_DEST
|
||||||
cp deploy-space/static/* $BUILD_DEST
|
cp deploy-space/static/* $BUILD_DEST
|
||||||
|
|
||||||
echo "complete"
|
echo "complete"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user