docs: clarify layout example dependency and occurrence contracts

This commit is contained in:
2026-11-12 21:23:58 +08:00
parent 94e0f96e4a
commit 8a6bdc3790
8 changed files with 9 additions and 3 deletions
+1
View File
@@ -21,6 +21,7 @@ class Actions {
self.first.flexBasis = 100
self.second.flexBasis = 100
self.first.flex = 1
// grow 不清除 shrink 曾设的 flexShrink=1;本例 basis 总量小于可用量,走增长分支,故不影响这里的预期。
self.second.flex = 3
}
// 两项 basis=200 造成缺额,以 flexShrink*basis 分摊;首项 min=150 后第二项继续收缩到90。