refactor: edit hint

This commit is contained in:
Thanaphon Frappet 2025-01-28 11:32:33 +07:00
parent 136ab65c32
commit de8178118e
4 changed files with 22 additions and 28 deletions

View file

@ -117,9 +117,8 @@ const getToolbarConfig = computed(() => {
</template>
</q-editor>
<p class="app-text-muted" v-if="!readonly">
{{ $t('general.hintRemark') }}
<code v-html="defaultRemark" />
<p class="app-text-muted text-caption">
<slot name="hint" />
</p>
</main>
</q-expansion-item>

View file

@ -983,7 +983,13 @@ watch(
:items="taskListGroup"
:items-discount="taskProduct"
:default-remark="DEFAULT_DATA.remark"
/>
>
<template #hint>
{{ $t('general.hintRemark') }}
<code>#[order-detail]</code>
{{ $t('general.orderDetail') }}
</template>
</RemarkExpansion>
<template
v-if="