@leafer/layouter 1.11.2 → 1.12.1
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 +3 -3
- package/src/Layouter.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/layouter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "@leafer/layouter",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.
|
|
25
|
+
"@leafer/core": "1.12.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "1.
|
|
28
|
+
"@leafer/interface": "1.12.1"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/Layouter.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class Layouter implements ILayouter {
|
|
|
24
24
|
|
|
25
25
|
public waitAgain: boolean
|
|
26
26
|
|
|
27
|
-
public config: ILayouterConfig = {}
|
|
27
|
+
public config: ILayouterConfig = { usePartLayout: true }
|
|
28
28
|
|
|
29
29
|
protected __updatedList: ILeafList
|
|
30
30
|
protected __levelList: LeafLevelList = new LeafLevelList()
|
|
@@ -86,7 +86,7 @@ export class Layouter implements ILayouter {
|
|
|
86
86
|
|
|
87
87
|
this.target.emit(WatchEvent.REQUEST)
|
|
88
88
|
|
|
89
|
-
if (this.totalTimes > 1) {
|
|
89
|
+
if (this.totalTimes > 1 && this.config.usePartLayout) {
|
|
90
90
|
this.partLayout()
|
|
91
91
|
} else {
|
|
92
92
|
this.fullLayout()
|