forked from opentiny/tiny-vue
15 lines
392 B
Vue
15 lines
392 B
Vue
<template>
|
|
<tiny-file-upload :action="action" :multiple="true">
|
|
<template #trigger>
|
|
<tiny-button type="primary">选取文件</tiny-button>
|
|
</template>
|
|
</tiny-file-upload>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue'
|
|
import { FileUpload as TinyFileUpload, Button as TinyButton } from '@opentiny/vue'
|
|
|
|
const action = ref('http://localhost:3000/api/upload')
|
|
</script>
|