forked from opentiny/tiny-vue
26 lines
495 B
Vue
26 lines
495 B
Vue
<template>
|
|
<tiny-file-upload :action="action" :limit="limit">
|
|
<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: 'http://localhost:3000/api/upload',
|
|
limit: 1
|
|
}
|
|
}
|
|
}
|
|
</script>
|