|
|
@ -24,6 +24,8 @@ useProvideSmartsheetRowStore(meta, rowRef) |
|
|
|
|
|
|
|
|
|
|
|
const cdfValue = ref<string | null>(null) |
|
|
|
const cdfValue = ref<string | null>(null) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const editEnabled = ref(true) |
|
|
|
|
|
|
|
|
|
|
|
const updateCdfValue = (cdf: string | null) => { |
|
|
|
const updateCdfValue = (cdf: string | null) => { |
|
|
|
vModel.value.cdf = cdf |
|
|
|
vModel.value.cdf = cdf |
|
|
|
cdfValue.value = vModel.value.cdf |
|
|
|
cdfValue.value = vModel.value.cdf |
|
|
@ -37,13 +39,20 @@ onMounted(() => { |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="!my-3 text-xs">{{ $t('placeholder.defaultValue') }}</div> |
|
|
|
<div class="!my-3 text-xs">{{ $t('placeholder.defaultValue') }}</div> |
|
|
|
<div class="flex flex-row gap-2"> |
|
|
|
<div class="flex flex-row gap-2"> |
|
|
|
<div class="border-1 flex items-center w-full px-3 my-[-4px] border-gray-300 rounded-md"> |
|
|
|
<div |
|
|
|
|
|
|
|
class="border-1 flex items-center w-full px-3 my-[-4px] border-gray-300 rounded-md" |
|
|
|
|
|
|
|
:class="{ |
|
|
|
|
|
|
|
'!border-brand-500': editEnabled, |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
> |
|
|
|
<LazySmartsheetCell |
|
|
|
<LazySmartsheetCell |
|
|
|
|
|
|
|
:edit-enabled="true" |
|
|
|
:model-value="cdfValue" |
|
|
|
:model-value="cdfValue" |
|
|
|
:column="vModel" |
|
|
|
:column="vModel" |
|
|
|
:edit-enabled="true" |
|
|
|
|
|
|
|
class="!border-none" |
|
|
|
class="!border-none" |
|
|
|
@update:cdf="updateCdfValue" |
|
|
|
@update:cdf="updateCdfValue" |
|
|
|
|
|
|
|
@update:edit-enabled="editEnabled = $event" |
|
|
|
|
|
|
|
@click="editEnabled = true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="iconMap.close" |
|
|
|
:is="iconMap.close" |
|
|
|