ice-entity-designer 0.0.13 → 0.0.14
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/er-component/Entity.d.ts +13 -5
- package/package.json +2 -2
|
@@ -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
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @method syncEntityNameAndFields 同步实体名称和字段
|
|
25
|
+
* 实体名称和字段随时可能发生变化,当变化发生时,会把原有的实体名称和字段全部删除,然后重新创建新的实例。
|
|
26
|
+
* 此方法会在 constructor 和 setState 中被调用。
|
|
27
|
+
* @see setState
|
|
28
|
+
*/
|
|
24
29
|
protected syncEntityNameAndFields(): void;
|
|
25
30
|
/**
|
|
26
|
-
* @
|
|
27
|
-
*
|
|
28
|
-
* 重新计算位置和尺寸
|
|
31
|
+
* @overwrite
|
|
32
|
+
* @method calcComponentParams
|
|
29
33
|
*
|
|
34
|
+
* @see ICEComponent.calcComponentParams
|
|
30
35
|
* @author 大漠穷秋<damoqiongqiu@126.com>
|
|
31
36
|
*/
|
|
32
|
-
protected
|
|
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.
|
|
4
|
+
"version": "0.0.14",
|
|
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.
|
|
25
|
+
"ice-render": "^0.0.46",
|
|
26
26
|
"lodash": "4.17.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|