Skip to content

Commit 38cddb0

Browse files
committed
refactor: modify upload dragger name from 'ADragger' to 'AUploadDragger'
1 parent 9b26dfa commit 38cddb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/upload/Dragger.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Upload from './Upload'
33
import { UploadProps } from './interface'
44

55
export default {
6-
name: 'ADragger',
6+
name: 'AUploadDragger',
77
props: UploadProps,
88
render () {
99
const props = getOptionProps(this)

components/upload/demo/drag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Classic mode. File selection dialog pops up when upload button is clicked.
1111

1212
```html
1313
<template>
14-
<a-dragger name="file" :multiple="true" action="//jsonplaceholder.typicode.com/posts/" @change="handleChange">
14+
<a-upload-dragger name="file" :multiple="true" action="//jsonplaceholder.typicode.com/posts/" @change="handleChange">
1515
<p class="ant-upload-drag-icon">
1616
<a-icon type="inbox" />
1717
</p>
1818
<p class="ant-upload-text">Click or drag file to this area to upload</p>
1919
<p class="ant-upload-hint">Support for a single or bulk upload. Strictly prohibit from uploading company data or other band files</p>
20-
</a-dragger>
20+
</a-upload-dragger>
2121
</template>
2222
<script>
2323
export default {

0 commit comments

Comments
 (0)