ice-entity-designer 0.0.13 → 0.0.16

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.
@@ -20,16 +20,24 @@ export default class Entity extends ICEGroup {
20
20
  protected entityFieldsComponent: Array<ICEText>;
21
21
  constructor(props: any);
22
22
  protected static arrangeParam(props: any): any;
23
- protected doRender(): void;
23
+ /**
24
+ * @method syncEntityNameAndFields 同步实体名称和字段
25
+ * 实体名称和字段随时可能发生变化,当变化发生时,会把原有的实体名称和字段全部删除,然后重新创建新的实例。
26
+ * 此方法会在 constructor 和 setState 中被调用。
27
+ * @see setState
28
+ */
24
29
  protected syncEntityNameAndFields(): void;
25
30
  /**
26
- * @method doLayout 布局
27
- *
28
- * 重新计算位置和尺寸
31
+ * @overwrite
32
+ * @method calcComponentParams
29
33
  *
34
+ * @see ICEComponent.calcComponentParams
30
35
  * @author 大漠穷秋<damoqiongqiu@126.com>
31
36
  */
32
- protected doLayout(): void;
37
+ protected calcComponentParams(): {
38
+ width: any;
39
+ height: number;
40
+ };
33
41
  /**
34
42
  * 实体类的 JSON 格式描述,与 type-orm 规定的格式对应
35
43
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "大漠穷秋",
3
3
  "name": "ice-entity-designer",
4
- "version": "0.0.13",
4
+ "version": "0.0.16",
5
5
  "description": "An entity designer based on ice-render.",
6
6
  "repository": "https://github.com/ice-render/ice-entity-designer",
7
7
  "browser": "dist/index.umd.js",
@@ -22,7 +22,7 @@
22
22
  "types:watch": "npm run types:check -- --watch"
23
23
  },
24
24
  "dependencies": {
25
- "ice-render": "^0.0.45",
25
+ "ice-render": "^0.0.47",
26
26
  "lodash": "4.17.21"
27
27
  },
28
28
  "devDependencies": {