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" :key="i"
class="surface-2 bordered rounded q-px-xs" class="surface-2 bordered rounded q-px-xs"
> >
{{ optionStore.mapOption(att.fieldName ?? '') }} {{
optionStore.mapOption(
att.fieldName ?? '',
'propertiesField',
)
}}
</span> </span>
</section> </section>
</div> </div>

View file

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

View file

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

View file

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