@leafer-ui/display 2.0.3 → 2.0.4
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/package.json +8 -8
- package/src/Box.ts +3 -1
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "@leafer-ui/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "2.0.
|
|
26
|
-
"@leafer-ui/data": "2.0.
|
|
27
|
-
"@leafer-ui/display-module": "2.0.
|
|
28
|
-
"@leafer-ui/decorator": "2.0.
|
|
29
|
-
"@leafer-ui/external": "2.0.
|
|
25
|
+
"@leafer/core": "2.0.4",
|
|
26
|
+
"@leafer-ui/data": "2.0.4",
|
|
27
|
+
"@leafer-ui/display-module": "2.0.4",
|
|
28
|
+
"@leafer-ui/decorator": "2.0.4",
|
|
29
|
+
"@leafer-ui/external": "2.0.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@leafer/interface": "2.0.
|
|
33
|
-
"@leafer-ui/interface": "2.0.
|
|
32
|
+
"@leafer/interface": "2.0.4",
|
|
33
|
+
"@leafer-ui/interface": "2.0.4"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/Box.ts
CHANGED
|
@@ -46,6 +46,8 @@ export class Box<TInputData = IBoxInputData> extends Group<TInputData> implement
|
|
|
46
46
|
public scroller?: IScroller
|
|
47
47
|
public hasScroller?: boolean
|
|
48
48
|
|
|
49
|
+
public get __useSelfBox() { return this.pathInputed }
|
|
50
|
+
|
|
49
51
|
constructor(data?: TInputData) {
|
|
50
52
|
super(data)
|
|
51
53
|
this.__layout.renderChanged || this.__layout.renderChange()
|
|
@@ -66,7 +68,7 @@ export class Box<TInputData = IBoxInputData> extends Group<TInputData> implement
|
|
|
66
68
|
|
|
67
69
|
// @leafer-in/flow will rewrite
|
|
68
70
|
public __updateBoxBounds(_secondLayout?: boolean): void {
|
|
69
|
-
if (this.children.length && !this.
|
|
71
|
+
if (this.children.length && !this.__useSelfBox) {
|
|
70
72
|
|
|
71
73
|
const data = this.__
|
|
72
74
|
|
package/types/index.d.ts
CHANGED
|
@@ -298,6 +298,7 @@ declare class Box<TInputData = IBoxInputData> extends Group<TInputData> implemen
|
|
|
298
298
|
scrollConfig?: IScrollConfig;
|
|
299
299
|
scroller?: IScroller;
|
|
300
300
|
hasScroller?: boolean;
|
|
301
|
+
get __useSelfBox(): boolean;
|
|
301
302
|
constructor(data?: TInputData);
|
|
302
303
|
__updateStrokeSpread(): IFourNumber;
|
|
303
304
|
__updateRectRenderSpread(): IFourNumber;
|