primevue-mirror/apps/showcase/doc/fileupload/pt/PTViewer.vue

30 lines
737 B
Vue
Raw Normal View History

2024-09-18 13:08:32 +00:00
<template>
<DocSectionText v-bind="$attrs" />
<DocPTViewer :docs="docs">
<div class="w-full">
<FileUpload name="demo[]" url="/api/upload" :multiple="true" accept="image/*" :maxFileSize="1000000">
<template #empty>
<span>Drag and drop files to here to upload.</span>
</template>
</FileUpload>
</div>
</DocPTViewer>
</template>
<script>
import { getPTOptions } from '@/components/doc/helpers';
export default {
data() {
return {
docs: [
{
data: getPTOptions('FileUpload'),
key: 'FileUpload'
}
]
};
}
};
</script>