diff --git a/packages/nc-gui-v2/components/smartsheet-column/AdvancedOptions.vue b/packages/nc-gui-v2/components/smartsheet-column/AdvancedOptions.vue index 2a0d94f58c..80cf6679e6 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/AdvancedOptions.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/AdvancedOptions.vue @@ -1,18 +1,28 @@ diff --git a/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue b/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue index 2c675a8f69..c4bda123c6 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue @@ -1,8 +1,13 @@ @@ -73,20 +78,20 @@ watch( - +
diff --git a/packages/nc-gui-v2/components/smartsheet-column/CurrencyOptions.vue b/packages/nc-gui-v2/components/smartsheet-column/CurrencyOptions.vue index e495a628f6..d09c227b7d 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/CurrencyOptions.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/CurrencyOptions.vue @@ -1,14 +1,20 @@ @@ -71,7 +78,7 @@ formState.value.meta = { -import { useColumnCreateStoreOrThrow } from '#imports' import { dateFormats } from '~/utils' -const { formState } = $(useColumnCreateStoreOrThrow()) +interface Props { + value: Record +} + +const props = defineProps() +const emit = defineEmits(['update:value']) +const vModel = useVModel(props, 'value', emit) -if (!formState.meta?.date_format) { - if (!formState.meta) formState.meta = {} - formState.meta.date_format = dateFormats[0] +if (!vModel.value.meta?.date_format) { + if (!vModel.value.meta) vModel.value.meta = {} + vModel.value.meta.date_format = dateFormats[0] }