Browse Source

fix(nc-gui): add auto detect option in select input instead on giving checkbox to enable

Ramesh Mane 5 days ago
parent
commit
eb16828f38
  1. 20
      packages/nc-gui/extensions/data-exporter/index.vue

20
packages/nc-gui/extensions/data-exporter/index.vue

@ -9,20 +9,20 @@ const jobStatusTooltip = {
const delimiters = [ const delimiters = [
{ {
label: 'Comma (,)', label: ',',
value: ',', value: ',',
}, },
{ {
label: 'Semicolon (;)', label: ';',
value: ';', value: ';',
}, },
{ {
label: 'Tab (\\t)', label: '|',
value: '\\t', value: '|',
}, },
{ {
label: 'Pipe (|)', label: '<Tab>',
value: '|', value: '\\t',
}, },
] ]
@ -404,17 +404,15 @@ onMounted(async () => {
v-model:value="exportPayload.delimiter" v-model:value="exportPayload.delimiter"
placeholder="-select separator-" placeholder="-select separator-"
:disabled="isExporting" :disabled="isExporting"
class="nc-data-exporter-separator nc-select-shadow !w-[72px]" class="nc-data-exporter-separator nc-select-shadow !w-[120px]"
:filter-option="filterOption" dropdown-class-name="w-[180px]"
dropdown-class-name="w-[200px]"
show-search
@change="saveChanges" @change="saveChanges"
> >
<a-select-option v-for="delimiter of delimiters" :key="delimiter.value" :value="delimiter.value"> <a-select-option v-for="delimiter of delimiters" :key="delimiter.value" :value="delimiter.value">
<div class="w-full flex items-center gap-2"> <div class="w-full flex items-center gap-2">
<NcTooltip class="flex-1 truncate" show-on-truncate-only> <NcTooltip class="flex-1 truncate" show-on-truncate-only>
<template #title>{{ delimiter.label }}</template> <template #title>{{ delimiter.label }}</template>
<span>{{ delimiter.value }}</span> <span>{{ delimiter.label }}</span>
</NcTooltip> </NcTooltip>
<component <component
:is="iconMap.check" :is="iconMap.check"

Loading…
Cancel
Save