refactor: update optionStore mapping to include 'propertiesField' for better context
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s

This commit is contained in:
puriphatt 2025-03-11 13:16:12 +07:00
parent c9c0535fa1
commit 55834bf450
4 changed files with 23 additions and 5 deletions

View file

@ -455,7 +455,12 @@ onMounted(async () => {
:key="i"
class="surface-2 bordered rounded q-px-xs"
>
{{ optionStore.mapOption(att.fieldName ?? '') }}
{{
optionStore.mapOption(
att.fieldName ?? '',
'propertiesField',
)
}}
</span>
</section>
</div>

View file

@ -584,7 +584,12 @@ watch(
:key="i"
class="surface-2 bordered rounded q-px-xs"
>
{{ optionStore.mapOption(att.fieldName ?? '') }}
{{
optionStore.mapOption(
att.fieldName ?? '',
'propertiesField',
)
}}
</span>
</div>
<div v-else class="app-text-muted-2">

View file

@ -773,7 +773,12 @@ watch(
:key="att"
class="bordered q-py-xs q-px-sm rounded"
>
{{ optionStore.mapOption(att.fieldName) }}
{{
optionStore.mapOption(
att.fieldName,
'propertiesField',
)
}}
</div>
</div>
</template>

View file

@ -164,12 +164,15 @@ defineEmits<{
class="row items-center q-pb-sm"
>
<article class="col-5">
{{ i + 1 }} {{ optionStore.mapOption(prop.fieldName) }}
{{ i + 1 }}
{{ optionStore.mapOption(prop.fieldName, 'propertiesField') }}
</article>
<PropertiesToInput
:readonly="!state.isEdit || readonlyField.includes(prop.fieldName)"
:prop="prop"
:placeholder="optionStore.mapOption(prop.fieldName)"
:placeholder="
optionStore.mapOption(prop.fieldName, 'propertiesField')
"
v-model="formData[prop.fieldName]"
/>
</span>