1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<template>
<multiselect :options="options" track-by="id" label="text" v-model="value"></multiselect>
</template>
<script>
const pdfConvertOptions = [
{
id: 'keep;preserve',
text: t('workflow_pdf_converter', 'Keep original, preserve existing PDFs'),
},
{
id: 'keep;overwrite',
text: t('workflow_pdf_converter', 'Keep original, overwrite existing PDF'),
},
{
id: 'delete;preserve',
text: t('workflow_pdf_converter', 'Delete original, preserve existing PDFs'),
},
{
id: 'delete;overwrite',
text: t('workflow_pdf_converter', 'Delete original, overwrite existing PDF'),
},
]
import { Multiselect } from 'nextcloud-vue'
export default {
name: "ConvertToPdf",
components: {Multiselect},
data() {
return {
options: pdfConvertOptions,
value: pdfConvertOptions[0]
}
}
}
</script>
<style scoped>
.multiselect {
width: 100%;
max-width: 300px;
margin: auto;
text-align: center;
}
</style>
|