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

29 lines
698 B
Vue
Raw Normal View History

2024-09-18 13:08:32 +00:00
<template>
<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>