@leafer/decorator 2.1.6 → 2.1.8

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/data.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/decorator",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "description": "@leafer/decorator",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/platform": "2.1.6",
26
- "@leafer/data": "2.1.6",
27
- "@leafer/debug": "2.1.6"
25
+ "@leafer/platform": "2.1.8",
26
+ "@leafer/data": "2.1.8",
27
+ "@leafer/debug": "2.1.8"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "2.1.6"
30
+ "@leafer/interface": "2.1.8"
31
31
  }
32
32
  }
package/src/data.ts CHANGED
@@ -207,7 +207,11 @@ export function sortType(defaultValue?: IValue) {
207
207
  set(value: IValue) {
208
208
  if (this.__setAttr(key, value)) {
209
209
  // this.__layout.surfaceChange()
210
- this.waitParent(() => { this.parent.__layout.childrenSortChange() })
210
+ this.waitParent(() => {
211
+ const { parent } = this
212
+ parent.__layout.childrenSortChange()
213
+ if (parent.__.flow) parent.__layout.boxChange()
214
+ })
211
215
  }
212
216
  }
213
217
  }))