naive-ui/demo/documentation/components/upload/enUS/defaultFiles.md

604 B

Default File List

<div>
  <n-upload
    action="http://www.mocky.io/v2/5e4bafc63100007100d8b70f"
    :default-file-list="defaultFileList"
  >
    <n-button>Upload File</n-button>
  </n-upload>
</div>
export default {
  data () {
    return {
      defaultFileList: [
        {
          id: 'the',
          name: 'The',
          status: 'finished'
        },
        {
          id: 'razars',
          name: 'Razars\'s',
          status: 'finished'
        },
        {
          id: 'edge',
          name: 'Blade',
          status: 'finished'
        },
      ]
    }
  }
}