diff --git a/README.md b/README.md index c7fa759..59d829f 100644 --- a/README.md +++ b/README.md @@ -204,9 +204,10 @@ Tags inside `.uix` templates map directly to native widgets: | Category | Tags | |---|---| -| **Containers** | `div` (Flexbox: `flex-direction` / `flex` / `gap` / `padding`) | +| **Containers** | `div` (Flexbox: `flex-direction` / `flex` / `gap` / `padding`), `Stack`, `SplitView` | | **Text** | `label` (multi-line, auto-wrap) | | **Buttons** | `button` | +| **Navigation** | `NavItem` | | **Input** | `input` (type=`text` / `password` / `checkbox` / `radio` / `range` / `number`), `textarea` | | **Selection** | `toggle`, `select` | | **Status** | `progressbar` | diff --git a/docs/c-api.md b/docs/c-api.md index 5b2a591..86f4957 100644 --- a/docs/c-api.md +++ b/docs/c-api.md @@ -196,6 +196,20 @@ ui_tab_add(tabs, L"Title", content); ui_tab_get_active(tabs); ui_tab_set_active(tabs, 0); +// Stack +ui_stack_get_active_index(stack); +ui_stack_set_active_index(stack, 0); + +// NavItem +ui_nav_get_selected(nav); +ui_nav_set_selected(nav, 1); + +// SplitView +ui_split_set_pane(split, pane); +ui_split_set_content(split, content); +ui_split_set_mode(split, UI_SPLIT_VIEW_INLINE); +ui_split_set_open(split, 1); + // ScrollView ui_scroll_set_content(sv, content); diff --git a/docs/uix-ai-guide.md b/docs/uix-ai-guide.md index 06f69e1..243b2cd 100644 --- a/docs/uix-ai-guide.md +++ b/docs/uix-ai-guide.md @@ -244,8 +244,11 @@ CSS 子集 + 选择器 + cascade。常用属性: | 标签 | 作用 | |------|------| | `div` / `section` / `nav` | flex 容器 (默认 column) | +| `Stack` | 只显示一个子页面的容器;`active` 指定当前索引 | +| `SplitView` | 侧栏 + 内容双槽布局;前两个元素子节点分别作为侧栏和内容 | | `label` / `span` / `p` / `h1`-`h6` | 文本(不可编辑) | | `button` | 按钮 | +| `NavItem` | 侧栏导航项;支持 `text` / `svg` / `glyph` / `selected` | | `input` | 文本输入;`type="password"` / `checkbox` / `radio` / `range` / `number` 切换形态 | | `textarea` | 多行文本 | | `toggle` | 开关 | diff --git a/docs/uix-guide.md b/docs/uix-guide.md index 2029c3b..c5930c0 100644 --- a/docs/uix-guide.md +++ b/docs/uix-guide.md @@ -539,11 +539,14 @@ obj.unknown # 返回 null(不报错) | 标签 | Widget | 说明 | |---|---|---| | `
` | `LabelWidget`(支持换行)| **没有 inline 流**——子元素 ``/`` 会堆叠显示,不会 inline 混排 |
| ``–`
` | `LabelWidget` | 预设字号 + 粗体 |
| `` | `LabelWidget` | 加 cursor:pointer(不自动导航)|
| `