Browse Source

chore(gui-v2): remove placeholders for *Picker cells

pull/3192/head
Wing-Kam Wong 2 years ago
parent
commit
465c96a5cc
  1. 2
      packages/nc-gui-v2/components/cell/DatePicker.vue
  2. 2
      packages/nc-gui-v2/components/cell/DateTimePicker.vue
  3. 2
      packages/nc-gui-v2/components/cell/TimePicker.vue
  4. 2
      packages/nc-gui-v2/components/cell/YearPicker.vue

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

@ -55,7 +55,7 @@ watch(
{ flush: 'post' },
)
const placeholder = computed(() => (isDateInvalid ? 'Invalid date' : readOnly ? 'Select date' : ''))
const placeholder = computed(() => (isDateInvalid ? 'Invalid date' : ''))
</script>
<template>

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

@ -64,7 +64,7 @@ watch(
:bordered="false"
class="!w-full px-1"
format="YYYY-MM-DD HH:mm"
:placeholder="isDateInvalid ? 'Invalid date' : !readOnly ? 'Select date and time' : ''"
:placeholder="isDateInvalid ? 'Invalid date' : ''"
:allow-clear="!readOnly"
:input-read-only="true"
:dropdown-class-name="randomClass"

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

@ -75,7 +75,7 @@ watch(
use12-hours
format="HH:mm"
class="!w-full px-1"
:placeholder="isTimeInvalid ? 'Invalid time' : !readOnly ? 'Select time' : ''"
:placeholder="isTimeInvalid ? 'Invalid time' : ''"
:allow-clear="!readOnly"
:input-read-only="true"
:open="readOnly ? false : open"

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

@ -53,7 +53,7 @@ watch(
{ flush: 'post' },
)
const placeholder = computed(() => (isYearInvalid ? 'Invalid year' : readOnly ? 'Select year' : ''))
const placeholder = computed(() => (isYearInvalid ? 'Invalid year' : ''))
</script>
<template>

Loading…
Cancel
Save