mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
36 lines
604 B
Markdown
36 lines
604 B
Markdown
# Default File List
|
|
```html
|
|
<div>
|
|
<n-upload
|
|
action="http://www.mocky.io/v2/5e4bafc63100007100d8b70f"
|
|
:default-file-list="defaultFileList"
|
|
>
|
|
<n-button>Upload File</n-button>
|
|
</n-upload>
|
|
</div>
|
|
```
|
|
```js
|
|
export default {
|
|
data () {
|
|
return {
|
|
defaultFileList: [
|
|
{
|
|
id: 'the',
|
|
name: 'The',
|
|
status: 'finished'
|
|
},
|
|
{
|
|
id: 'razars',
|
|
name: 'Razars\'s',
|
|
status: 'finished'
|
|
},
|
|
{
|
|
id: 'edge',
|
|
name: 'Blade',
|
|
status: 'finished'
|
|
},
|
|
]
|
|
}
|
|
}
|
|
}
|
|
``` |