Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/packages/popover/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## 引入

```tsx
import { Popover } from '@nutui/nutui-react'
import { Popover } from '@nutui/nutui-react-taro'
```

## 示例代码
Expand Down
2 changes: 1 addition & 1 deletion src/packages/uploader/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ import { Uploader } from '@nutui/nutui-react'
| deletable | 是否展示删除按钮 | `boolean` | `true` |
| method | 上传请求的 http method | `string` | `post` |
| previewType | 上传列表的内建样式,支持两种基本样式 picture、list | `string` | `picture` |
| capture | 图片[选取模式](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#htmlattrdefcapture"),直接调起摄像头 | `string` | `false` |
| capture | 图片[选取模式](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#htmlattrdefcapture),直接调起摄像头 | `string` | `false` |
| maxFileSize | 可以设定最大上传文件的大小(字节) | `number` \| `string` | `Number.MAX_VALUE` |
| maxCount | 文件上传数量限制 | `number` \| `string` | `1` |
| fit | 图片填充模式 | `contain` \| `cover` \| `fill` \| `none` \| `scale-down` | `cover` |
Expand Down
2 changes: 1 addition & 1 deletion src/packages/uploader/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ import { Uploader } from '@nutui/nutui-react-taro'
| onDelete | 点击删除文件时触发 | `(file: FileItem, files: FileItem[]) => void` | `-` |
| onFileItemClick | 文件上传成功后点击触发 | `(file: FileItem, index: number) => void` | `-` |
| onUploadQueueChange | 图片上传队列变化时触发 | `(tasks: FileItem[]) => void` | `-` |
| sourceType | [选择文件的来源]("https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html") | `Array` | `['album','camera']` |
| sourceType | [选择文件的来源](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html) | `Array` | `['album','camera']` |
| camera`仅支持WEAPP` | 仅在 `source-type` 为 `camera` 时生效,使用前置或后置摄像头 | `String` | `back` |
| sizeType | [是否压缩所选文件](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html) | `Array` | `['original','compressed']` |
| mediaType`仅支持WEAPP` | [选择文件类型](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html) | `Array` | `['image', 'video', 'mix']` |
Expand Down
2 changes: 1 addition & 1 deletion src/packages/uploader/doc.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ import { Uploader } from '@nutui/nutui-react'
| deletable | 是否展示刪除按鈕 | `boolean` | `true` |
| method | 上傳請求的 http method | `string` | `post` |
| previewType | 上傳列表的內建樣式,支持兩種基本樣式 picture、list | `string` | `picture` |
| capture | 圖片[選取模式](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#htmlattrdefcapture"),直接調起攝像頭 | `string` | `false` |
| capture | 圖片[選取模式](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#htmlattrdefcapture),直接調起攝像頭 | `string` | `false` |
| maxFileSize | 可以設定最大上傳文件的大小(字節) | `number` \| `string` | `Number.MAX_VALUE` |
| maxCount | 文件上傳數量限製 | `number` \| `string` | `1` |
| fit | 圖片填充模式 | `contain` \| `cover` \| `fill` \| `none` \| `scale-down` | `cover` |
Expand Down