fix: แก้hideToggle
This commit is contained in:
parent
39ba6b7c3b
commit
f6c87a6bde
1 changed files with 15 additions and 6 deletions
|
|
@ -5,10 +5,17 @@ const urlProfile = defineModel('urlProfile', {
|
|||
const profileSubmit = defineModel('profileSubmit');
|
||||
const statusToggle = defineModel('statusToggle');
|
||||
|
||||
defineProps<{
|
||||
isProduct?: boolean;
|
||||
isService?: boolean;
|
||||
}>();
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
isProduct?: boolean;
|
||||
isService?: boolean;
|
||||
labelStatusToggle?: string;
|
||||
hideToggle?: boolean;
|
||||
}>(),
|
||||
{
|
||||
hideToggle: true,
|
||||
},
|
||||
);
|
||||
|
||||
defineEmits<{
|
||||
(e: 'inputFile'): void;
|
||||
|
|
@ -95,7 +102,7 @@ defineEmits<{
|
|||
@click="$emit('inputFile')"
|
||||
/>
|
||||
<q-separator class="col-12 q-my-md" />
|
||||
<div class="text-left q-pt-md">
|
||||
<div class="text-left q-pt-md" v-if="hideToggle">
|
||||
<q-toggle
|
||||
id="toggle-status"
|
||||
dense
|
||||
|
|
@ -104,7 +111,9 @@ defineEmits<{
|
|||
padding="none"
|
||||
class="q-pr-md"
|
||||
/>
|
||||
<span>{{ $t('formDialogTitleUserStatus') }}</span>
|
||||
<span>
|
||||
{{ statusToggle ? $t('switchOnLabel') : $t('switchOffLabel') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue