Skip to content

Commit

Permalink
docs: add documentation for menu select form item (#416)
Browse files Browse the repository at this point in the history
添加关于 menuSelect 输入类型的文档。

See halo-dev/halo#6642

/kind documentation

```release-note
None
```
  • Loading branch information
ruibaby authored Sep 14, 2024
1 parent 5608ded commit 65018a5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/developer-guide/form-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:

自定义的选择器组件,支持静态和动态数据源,支持多选等功能。

#### 参数
#### 参数 {#select-params}

- `options`:静态数据源。当 `action` 存在时,此参数无效。
- `action`:远程动态数据源的接口地址。
Expand Down Expand Up @@ -439,6 +439,26 @@ UI 效果:
language: yaml
```

### menuSelect

#### 描述

菜单选择器,用于选择系统内的导航菜单,支持单选、多选、排序。

#### 示例

```yaml
- $formkit: menuSelect
name: menus
label: 菜单
multiple: true
value: []
```

:::info
menuSelect 基于 select,并兼容 select 的[参数](#select-params)。
:::

### menuCheckbox

#### 描述
Expand Down

0 comments on commit 65018a5

Please sign in to comment.