Browse Source

Merge pull request #2919 from nocodb/refactor/gui-v2-removed-calender-icon-from-date-cells

Removed `calendar` icon from `DatePicker`, `DateTimePicker` and `YearPicker`
pull/2926/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
992650fc32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui-v2/components/cell/DatePicker.vue
  2. 4
      packages/nc-gui-v2/components/cell/DateTimePicker.vue
  3. 2
      packages/nc-gui-v2/components/cell/YearPicker.vue

2
packages/nc-gui-v2/components/cell/DatePicker.vue

@ -53,7 +53,7 @@ const localState = $computed({
:input-read-only="true" :input-read-only="true"
:open="readOnlyMode ? false : undefined" :open="readOnlyMode ? false : undefined"
> >
<template v-if="readOnlyMode" #suffixIcon></template> <template #suffixIcon></template>
</a-date-picker> </a-date-picker>
</template> </template>

4
packages/nc-gui-v2/components/cell/DateTimePicker.vue

@ -50,12 +50,12 @@ const localState = $computed({
:bordered="false" :bordered="false"
class="!w-full px-1" class="!w-full px-1"
format="YYYY-MM-DD HH:mm" format="YYYY-MM-DD HH:mm"
:placeholder="isDateInvalid ? 'Invalid date' : !readOnlyMode ? 'Select date' : ''" :placeholder="isDateInvalid ? 'Invalid date' : !readOnlyMode ? 'Select date and time' : ''"
:allow-clear="!readOnlyMode" :allow-clear="!readOnlyMode"
:input-read-only="true" :input-read-only="true"
:open="readOnlyMode ? false : undefined" :open="readOnlyMode ? false : undefined"
> >
<template v-if="readOnlyMode" #suffixIcon></template> <template #suffixIcon></template>
</a-date-picker> </a-date-picker>
</template> </template>

2
packages/nc-gui-v2/components/cell/YearPicker.vue

@ -52,7 +52,7 @@ const localState = $computed({
:input-read-only="true" :input-read-only="true"
:open="readOnlyMode ? false : undefined" :open="readOnlyMode ? false : undefined"
> >
<template v-if="readOnlyMode" #suffixIcon></template> <template #suffixIcon></template>
</a-date-picker> </a-date-picker>
</template> </template>

Loading…
Cancel
Save