mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 17:48:13 +00:00
fix: 兼容modal模式
This commit is contained in:
parent
7c9dc0495b
commit
1092ee9fc8
@ -150,17 +150,16 @@ export class ComponentMeta {
|
||||
this._title =
|
||||
typeof title === 'string'
|
||||
? {
|
||||
type: 'i18n',
|
||||
'en-US': this.componentName,
|
||||
'zh-CN': title,
|
||||
}
|
||||
type: 'i18n',
|
||||
'en-US': this.componentName,
|
||||
'zh-CN': title,
|
||||
}
|
||||
: title;
|
||||
}
|
||||
|
||||
const liveTextEditing = this._transformedMetadata.experimental?.liveTextEditing || [];
|
||||
|
||||
function collectLiveTextEditing(items: FieldConfig[]) {
|
||||
debugger;
|
||||
items.forEach((config) => {
|
||||
if (config?.items) {
|
||||
collectLiveTextEditing(config.items);
|
||||
|
||||
@ -39,7 +39,6 @@ function propTypeToSetter(propType: PropType): SetterType {
|
||||
} else {
|
||||
typeName = 'string';
|
||||
}
|
||||
debugger;
|
||||
// TODO: use mixinSetter wrapper
|
||||
switch (typeName) {
|
||||
case 'string':
|
||||
|
||||
@ -36,11 +36,11 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable {
|
||||
}
|
||||
readonly id = uniqueId('outline');
|
||||
|
||||
@obx.ref _visible: boolean = false;
|
||||
@obx.ref _visible = false;
|
||||
get visible() {
|
||||
return this._visible;
|
||||
}
|
||||
constructor(readonly editor: IEditor, readonly at: string | Symbol) {
|
||||
constructor(readonly editor: IEditor, readonly at: string | symbol) {
|
||||
let inited = false;
|
||||
const setup = async () => {
|
||||
if (inited) {
|
||||
@ -135,7 +135,8 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable {
|
||||
const irect = this.getInsertionRect();
|
||||
const originLoc = document.dropLocation;
|
||||
|
||||
if (e.dragObject.type === 'node' && e.dragObject.nodes[0].getPrototype().isModal()) {
|
||||
const prop = e.dragObject.nodes[0].getPrototype();
|
||||
if (e.dragObject.type === 'node' && prop && prop.isModal()) {
|
||||
return designer.createLocation({
|
||||
target: document.rootNode,
|
||||
detail: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user