forked from opentiny/tiny-vue
31 lines
637 B
Vue
31 lines
637 B
Vue
<template>
|
|
<tiny-file-upload ref="upload" :action="action" :file-list="fileList" :mini-mode="true">
|
|
<template #trigger>
|
|
<icon-upload></icon-upload>
|
|
</template>
|
|
</tiny-file-upload>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { FileUpload } from '@opentiny/vue'
|
|
import { iconUpload } from '@opentiny/vue-icon'
|
|
|
|
export default {
|
|
components: {
|
|
TinyFileUpload: FileUpload,
|
|
IconUpload: iconUpload()
|
|
},
|
|
data() {
|
|
return {
|
|
action: '',
|
|
fileList: [
|
|
{
|
|
name: 'test1',
|
|
url: `${import.meta.env.VITE_APP_BUILD_BASE_URL}static/images/ld.png`
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|