Skip to content

Commit

Permalink
* picker: update doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Dec 29, 2023
1 parent 3fd3276 commit 34745a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/picker/docs/lib/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

## 单选

::: tabs

== 示例

<Example>
<div id="singlePickerExample"></div>
</Example>

== HTML

```html
<div id="singlePickerExample"></div>

Expand Down Expand Up @@ -36,12 +42,20 @@ const picker = new zui.Picker('#singlePickerExample', {
</script>
```

:::

## 多选

::: tabs

== 示例

<Example>
<div id="multiPickerExample"></div>
</Example>

== HTML

```html
<div id="multiPickerExample"></div>

Expand Down Expand Up @@ -70,8 +84,14 @@ const picker = new zui.Picker('#multiPickerExample', {
</script>
```

:::

## 在输入组中使用

::: tabs

== 示例

<Example>
<div class="input-group">
<span class="input-group-addon">选择一种水果</span>
Expand All @@ -80,6 +100,8 @@ const picker = new zui.Picker('#multiPickerExample', {
</div>
</Example>

== HTML

```html
<div class="input-group">
<span class="input-group-addon">选择一种水果</span>
Expand All @@ -88,6 +110,8 @@ const picker = new zui.Picker('#multiPickerExample', {
</div>
```

:::

## 初始化选项

<Props>
Expand Down

0 comments on commit 34745a8

Please sign in to comment.