Skip to content

Commit 996fa71

Browse files
committed
docs: 增加 ImagePicker 自定义按钮的说明文档
1 parent fb75dae commit 996fa71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/taro-ui-docs/markdown/image-picker.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,21 @@ export default class Index extends Taro.Component {
110110

111111
:::
112112

113+
## 自定义上传按钮
114+
115+
:::demo
116+
117+
```jsx
118+
<AtImagePicker
119+
files={this.state.files}
120+
onChange={this.onChange.bind(this)}
121+
>
122+
<AtButton type="primary">自定义上传按钮</AtButton>
123+
</AtImagePicker>
124+
```
125+
126+
:::
127+
113128
## 多种图片预览模式
114129

115130
:::demo

0 commit comments

Comments
 (0)