refactor: update optionStore mapping to include 'propertiesField' for better context
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
This commit is contained in:
parent
c9c0535fa1
commit
55834bf450
4 changed files with 23 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue