amis-editor-core 6.11.0 → 6.12.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseEventContext, InsertEventContext, MoveEventContext } from '../plugin';
3
2
  import { LayoutInterface } from './interface';
4
3
  export default class FlexLayout implements LayoutInterface {
package/lib/plugin.d.ts CHANGED
@@ -83,6 +83,10 @@ export interface RegionConfig {
83
83
  * 可以用来判断是否允许拖入当前节点。
84
84
  */
85
85
  accept?: (json: any) => boolean;
86
+ /**
87
+ * 当前区域是否隐藏
88
+ */
89
+ hiddenOn?: (schema: Schema) => boolean;
86
90
  }
87
91
  export interface VRendererConfig {
88
92
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GlobalVariableItem } from 'amis-core';
3
2
  import { Instance } from 'mobx-state-tree';
4
3
  import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext, IGlobalEvent } from '../plugin';