@easy-editor/core 0.0.1 → 0.0.2

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.
@@ -11,6 +11,8 @@ export declare class ComponentMeta {
11
11
  get componentName(): string;
12
12
  private _isContainer?;
13
13
  get isContainer(): boolean;
14
+ private _isMinimalRenderUnit?;
15
+ get isMinimalRenderUnit(): boolean;
14
16
  private _descriptor?;
15
17
  get descriptor(): string | undefined;
16
18
  private _metadata?;
@@ -131,12 +131,23 @@ export interface FieldExtraProps {
131
131
  onChange?: (target: SettingField, value: any) => void;
132
132
  }
133
133
  export interface ComponentConfigure {
134
+ /**
135
+ * 是否容器组件
136
+ */
134
137
  isContainer?: boolean;
138
+ /**
139
+ * 组件树描述信息
140
+ */
135
141
  descriptor?: string;
136
142
  /**
137
- * disable some behaviors, such as `'copy'`, `'move'`, `'remove'` or array of them
143
+ * 禁用的行为,可以为 `'copy'`, `'move'`, `'remove'` 或它们组成的数组
138
144
  */
139
145
  disableBehaviors?: string[] | string;
146
+ /**
147
+ * 是否是最小渲染单元
148
+ * 最小渲染单元下的组件渲染和更新都从单元的根节点开始渲染和更新。如果嵌套了多层最小渲染单元,渲染会从最外层的最小渲染单元开始渲染。
149
+ */
150
+ isMinimalRenderUnit?: boolean;
140
151
  }
141
152
  export interface ConfigureSupport {
142
153
  /**
@@ -10,12 +10,12 @@ export declare class OffsetObserver {
10
10
  private lastOffsetTop?;
11
11
  private lastOffsetHeight?;
12
12
  private lastOffsetWidth?;
13
- private accessor _height;
14
- private accessor _width;
15
- private accessor _left;
16
- private accessor _top;
17
- private accessor _right;
18
- private accessor _bottom;
13
+ accessor _height: number;
14
+ accessor _width: number;
15
+ accessor _left: number;
16
+ accessor _top: number;
17
+ accessor _right: number;
18
+ accessor _bottom: number;
19
19
  get height(): number;
20
20
  get width(): number;
21
21
  get top(): number;
@@ -30,7 +30,7 @@ export declare class OffsetObserver {
30
30
  get scale(): number;
31
31
  private pid;
32
32
  readonly viewport: Viewport;
33
- private isRoot;
33
+ isRoot: boolean;
34
34
  readonly node: Node;
35
35
  readonly compute: () => void;
36
36
  constructor(nodeInstance: NodeSelector);
@@ -5319,6 +5319,9 @@ class ComponentMeta {
5319
5319
  get isContainer() {
5320
5320
  return this._isContainer;
5321
5321
  }
5322
+ get isMinimalRenderUnit() {
5323
+ return this._isMinimalRenderUnit || false;
5324
+ }
5322
5325
  get descriptor() {
5323
5326
  return this._descriptor;
5324
5327
  }
@@ -5360,6 +5363,7 @@ class ComponentMeta {
5360
5363
  if (component) {
5361
5364
  this._isContainer = !!component.isContainer;
5362
5365
  this._descriptor = component.descriptor;
5366
+ this._isMinimalRenderUnit = component.isMinimalRenderUnit;
5363
5367
  } else {
5364
5368
  this._isContainer = false;
5365
5369
  }