mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 完善属性配置面板异常渲染屏蔽逻辑
Change-Id: I7641a9b4b800b4abecb27718504475b1712a5287
This commit is contained in:
parent
7d8f26cdb3
commit
850899bfef
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis-editor",
|
||||
"version": "5.2.0-beta.5",
|
||||
"version": "5.2.0-beta.6",
|
||||
"description": "amis 可视化编辑器",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
@ -25,6 +25,7 @@ export class ItemPlugin extends BasePlugin {
|
||||
panels: Array<BasicPanelItem>
|
||||
) {
|
||||
const renderer = context.info.renderer;
|
||||
const store = this.manager.store;
|
||||
|
||||
if (context.selections.length) {
|
||||
return;
|
||||
@ -42,7 +43,7 @@ export class ItemPlugin extends BasePlugin {
|
||||
title: this.panelTitle,
|
||||
render: this.manager.makeSchemaFormRender({
|
||||
body: this.panelBodyCreator(context),
|
||||
rendererName: plugin.rendererName,
|
||||
panelById: store.activeId,
|
||||
formKey: 'form-item',
|
||||
}),
|
||||
order: -200
|
||||
|
@ -215,8 +215,8 @@ export class PanelPlugin extends BasePlugin {
|
||||
context: BuildPanelEventContext,
|
||||
panels: Array<BasicPanelItem>
|
||||
) {
|
||||
const plugin: PluginInterface = this;
|
||||
const schema = context.schema;
|
||||
const store = this.manager.store;
|
||||
|
||||
if (
|
||||
context.info.renderer.name === 'form' &&
|
||||
@ -230,7 +230,7 @@ export class PanelPlugin extends BasePlugin {
|
||||
title: this.panelTitle,
|
||||
render: this.manager.makeSchemaFormRender({
|
||||
body: this.panelBodyCreator(context),
|
||||
rendererName: 'form'
|
||||
panelById: store.activeId
|
||||
})
|
||||
});
|
||||
} else {
|
||||
|
@ -494,7 +494,7 @@ export class TableViewPlugin extends BasePlugin {
|
||||
panels: Array<BasicPanelItem>
|
||||
) {
|
||||
super.buildEditorPanel(context, panels);
|
||||
const plugin: PluginInterface = this;
|
||||
const store = this.manager.store;
|
||||
|
||||
if (context.info.schemaPath.endsWith('/td')) {
|
||||
panels.push({
|
||||
@ -509,7 +509,7 @@ export class TableViewPlugin extends BasePlugin {
|
||||
body: this.tdVRendererConfig.panelBodyCreator
|
||||
? this.tdVRendererConfig.panelBodyCreator(context)
|
||||
: this.tdVRendererConfig.panelBody!,
|
||||
rendererName: plugin.rendererName
|
||||
panelById: store.activeId
|
||||
})
|
||||
});
|
||||
} else if (context.info.schemaPath.endsWith('/tr')) {
|
||||
@ -525,7 +525,7 @@ export class TableViewPlugin extends BasePlugin {
|
||||
body: this.trVRendererConfig.panelBodyCreator
|
||||
? this.trVRendererConfig.panelBodyCreator(context)
|
||||
: this.trVRendererConfig.panelBody!,
|
||||
rendererName: plugin.rendererName
|
||||
panelById: store.activeId
|
||||
})
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user