Browse Source

fix(nc-gui): apply parseProp

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
be17970733
  1. 3
      packages/nc-gui/components/cell/DatePicker.vue

3
packages/nc-gui/components/cell/DatePicker.vue

@ -8,6 +8,7 @@ import {
computed, computed,
inject, inject,
isDrawerOrModalExist, isDrawerOrModalExist,
parseProp,
ref, ref,
useSelectedCellKeyupListener, useSelectedCellKeyupListener,
watch, watch,
@ -34,7 +35,7 @@ const editable = inject(EditModeInj, ref(false))
let isDateInvalid = $ref(false) let isDateInvalid = $ref(false)
const dateFormat = $computed(() => columnMeta?.value?.meta?.date_format ?? 'YYYY-MM-DD') const dateFormat = $computed(() => parseProp(columnMeta?.value?.meta)?.date_format ?? 'YYYY-MM-DD')
let localState = $computed({ let localState = $computed({
get() { get() {

Loading…
Cancel
Save