fix: quotation remark readonly
This commit is contained in:
parent
5e206e2432
commit
7b3b506d2e
1 changed files with 12 additions and 7 deletions
|
|
@ -178,6 +178,15 @@ const attachmentData = ref<
|
||||||
}[]
|
}[]
|
||||||
>([]);
|
>([]);
|
||||||
|
|
||||||
|
const getToolbarConfig = computed(() => {
|
||||||
|
const toolbar = [['left', 'center', 'justify'], ['toggle'], ['clip']];
|
||||||
|
if (readonly.value) {
|
||||||
|
return toolbar.filter((item) => !item.includes('toggle'));
|
||||||
|
}
|
||||||
|
|
||||||
|
return toolbar;
|
||||||
|
});
|
||||||
|
|
||||||
function getPrice(
|
function getPrice(
|
||||||
list: typeof productServiceList.value,
|
list: typeof productServiceList.value,
|
||||||
filterHook?: (
|
filterHook?: (
|
||||||
|
|
@ -1550,11 +1559,7 @@ async function getWorkerFromCriteria(
|
||||||
style="cursor: auto; color: var(--foreground)"
|
style="cursor: auto; color: var(--foreground)"
|
||||||
:flat="!readonly"
|
:flat="!readonly"
|
||||||
:style="`width: ${$q.screen.gt.xs ? '100%' : '63vw'}`"
|
:style="`width: ${$q.screen.gt.xs ? '100%' : '63vw'}`"
|
||||||
:toolbar="[
|
:toolbar="getToolbarConfig"
|
||||||
['left', 'center', 'justify'],
|
|
||||||
['toggle'],
|
|
||||||
['clip'],
|
|
||||||
]"
|
|
||||||
:toolbar-toggle-color="readonly ? 'disabled' : 'primary'"
|
:toolbar-toggle-color="readonly ? 'disabled' : 'primary'"
|
||||||
:toolbar-color="
|
:toolbar-color="
|
||||||
readonly ? 'disabled' : $q.dark.isActive ? 'white' : ''
|
readonly ? 'disabled' : $q.dark.isActive ? 'white' : ''
|
||||||
|
|
@ -1573,8 +1578,8 @@ async function getWorkerFromCriteria(
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<template v-slot:toggle>
|
<template v-if="!readonly" v-slot:toggle>
|
||||||
<div v-if="!readonly" class="text-caption row no-wrap">
|
<div class="text-caption row no-wrap q-px-sm">
|
||||||
<MainButton
|
<MainButton
|
||||||
:disabled="readonly"
|
:disabled="readonly"
|
||||||
:solid="!pageState.remarkWrite"
|
:solid="!pageState.remarkWrite"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue