mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +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
396a9ef65e
@ -1,6 +1,6 @@
|
|||||||
import { ReactElement, ComponentType } from 'react';
|
import { ReactElement, ComponentType } from 'react';
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import { registerSetter, RegisteredSetter } from '@ali/lowcode-editor-core';
|
import { registerSetter, RegisteredSetter, getSetter } from '@ali/lowcode-editor-core';
|
||||||
import Bundle from './bundle';
|
import Bundle from './bundle';
|
||||||
import { CustomView } from '@ali/lowcode-types';
|
import { CustomView } from '@ali/lowcode-types';
|
||||||
|
|
||||||
@ -104,6 +104,14 @@ export class Trunk {
|
|||||||
setPackages() {
|
setPackages() {
|
||||||
console.warn('Trunk.setPackages is deprecated');
|
console.warn('Trunk.setPackages is deprecated');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getSetter(type: string): any{
|
||||||
|
const setter = getSetter(type);
|
||||||
|
if (setter?.component) {
|
||||||
|
return setter.component;
|
||||||
|
}
|
||||||
|
return setter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new Trunk();
|
export default new Trunk();
|
||||||
|
|||||||
@ -213,7 +213,9 @@ export function upgradePropConfig(config: OldPropConfig, collector: ConfigCollec
|
|||||||
liveTextEditing,
|
liveTextEditing,
|
||||||
} = config;
|
} = config;
|
||||||
|
|
||||||
const extraProps: any = {};
|
const extraProps: any = {
|
||||||
|
display: DISPLAY_TYPE.BLOCK,
|
||||||
|
};
|
||||||
const newConfig: any = {
|
const newConfig: any = {
|
||||||
type: type === 'group' ? 'group' : 'field',
|
type: type === 'group' ? 'group' : 'field',
|
||||||
name,
|
name,
|
||||||
|
|||||||
@ -67,16 +67,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.lc-plain-field {
|
// &.lc-plain-field {
|
||||||
// for top-level style
|
// // for top-level style
|
||||||
// padding: 8px 10px;
|
// // padding: 8px 10px;
|
||||||
> .lc-field-body {
|
// > .lc-field-body {
|
||||||
flex: 1;
|
// flex: 1;
|
||||||
min-width: 0;
|
// min-width: 0;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
&.lc-inline-field {
|
&.lc-inline-field {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -211,14 +211,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 3rd level field title width should short
|
// 3rd level field title width should short
|
||||||
.lc-field-body .lc-inline-field {
|
// .lc-field-body .lc-inline-field {
|
||||||
> .lc-field-head {
|
// > .lc-field-head {
|
||||||
width: 50px;
|
// width: 50px;
|
||||||
.lc-title-label {
|
// .lc-title-label {
|
||||||
width: 50px;
|
// width: 50px;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
>.lc-block-setter {
|
>.lc-block-setter {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user