@leafer-ui/display 1.9.2 → 1.9.3
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 +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
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": "1.9.
|
|
26
|
-
"@leafer-ui/data": "1.9.
|
|
27
|
-
"@leafer-ui/display-module": "1.9.
|
|
28
|
-
"@leafer-ui/decorator": "1.9.
|
|
29
|
-
"@leafer-ui/external": "1.9.
|
|
25
|
+
"@leafer/core": "1.9.3",
|
|
26
|
+
"@leafer-ui/data": "1.9.3",
|
|
27
|
+
"@leafer-ui/display-module": "1.9.3",
|
|
28
|
+
"@leafer-ui/decorator": "1.9.3",
|
|
29
|
+
"@leafer-ui/external": "1.9.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@leafer/interface": "1.9.
|
|
33
|
-
"@leafer-ui/interface": "1.9.
|
|
32
|
+
"@leafer/interface": "1.9.3",
|
|
33
|
+
"@leafer-ui/interface": "1.9.3"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/Box.ts
CHANGED
|
@@ -106,7 +106,11 @@ export class Box extends Group implements IBox {
|
|
|
106
106
|
|
|
107
107
|
const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData())
|
|
108
108
|
super.__updateRenderBounds(childrenRenderBounds)
|
|
109
|
-
|
|
109
|
+
|
|
110
|
+
if (data.overflow.includes('scroll')) { // 增加滚动逻辑
|
|
111
|
+
add(childrenRenderBounds, boxBounds)
|
|
112
|
+
scroll(childrenRenderBounds, data as IScrollPointData)
|
|
113
|
+
}
|
|
110
114
|
|
|
111
115
|
this.__updateRectRenderBounds()
|
|
112
116
|
|