Skip to content

Commit 307881c

Browse files
🔄 Sync from private repository - 2026-03-05 07:06:36
1 parent 856f86e commit 307881c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

TrollScript-Private

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 960686073b569e8bcaa9781dd9ec13ba75a2fd5f
1+
Subproject commit e2085a3451f72fb528c1d40753907715551bd6e4

templates/API/HUD.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ win.addImage({ path: '/var/mobile/Documents/photo.png', width: 100, height: 100
243243
| `config.distribution` | `string` | `'fill'` | 分布方式: `'fill'` \| `'fillEqually'` \| `'equalSpacing'` \| `'equalCentering'` |
244244
| `config.style` | `object` | - | 堆栈样式 |
245245

246+
枚举值说明:
247+
- `alignment: 'leading'` 左对齐;`'center'` 居中对齐;`'trailing'` 右对齐;`'fill'` 拉伸填充可用空间。
248+
- `distribution: 'fill'` 按内容自然尺寸分布;`'fillEqually'` 子元素等宽/等高;`'equalSpacing'` 子元素之间间距相等;`'equalCentering'` 子元素中心点间距相等。
249+
246250
**返回:** `Stack` — 堆栈容器对象
247251

248252
```javascript

0 commit comments

Comments
 (0)