Browse Source

refactor(nc-gui): add class to select and remove unnecessary div

pull/4593/head
Wing-Kam Wong 2 years ago
parent
commit
beb9c3bbf2
  1. 16
      packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue

16
packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue

@ -22,24 +22,16 @@ if (!vModel.value.meta?.time_format) {
<template> <template>
<a-form-item label="Date Format"> <a-form-item label="Date Format">
<a-select v-model:value="vModel.meta.date_format" dropdown-class-name="nc-dropdown-date-format"> <a-select v-model:value="vModel.meta.date_format" class="nc-date-select" dropdown-class-name="nc-dropdown-date-format">
<a-select-option v-for="(format, i) of dateFormats" :key="i" :value="format"> <a-select-option v-for="(format, i) of dateFormats" :key="i" :value="format">
<div class="flex flex-row items-center"> {{ format }}
<div class="text-xs">
{{ format }}
</div>
</div>
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="Time Format"> <a-form-item label="Time Format">
<a-select v-model:value="vModel.meta.time_format" dropdown-class-name="nc-dropdown-time-format"> <a-select v-model:value="vModel.meta.time_format" class="nc-time-select" dropdown-class-name="nc-dropdown-time-format">
<a-select-option v-for="(format, i) of timeFormats" :key="i" :value="format"> <a-select-option v-for="(format, i) of timeFormats" :key="i" :value="format">
<div class="flex flex-row items-center"> {{ format }}
<div class="text-xs">
{{ format }}
</div>
</div>
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>

Loading…
Cancel
Save