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 profileSubmit = defineModel('profileSubmit');
|
||||||
const statusToggle = defineModel('statusToggle');
|
const statusToggle = defineModel('statusToggle');
|
||||||
|
|
||||||
defineProps<{
|
withDefaults(
|
||||||
isProduct?: boolean;
|
defineProps<{
|
||||||
isService?: boolean;
|
isProduct?: boolean;
|
||||||
}>();
|
isService?: boolean;
|
||||||
|
labelStatusToggle?: string;
|
||||||
|
hideToggle?: boolean;
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
hideToggle: true,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
(e: 'inputFile'): void;
|
(e: 'inputFile'): void;
|
||||||
|
|
@ -95,7 +102,7 @@ defineEmits<{
|
||||||
@click="$emit('inputFile')"
|
@click="$emit('inputFile')"
|
||||||
/>
|
/>
|
||||||
<q-separator class="col-12 q-my-md" />
|
<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
|
<q-toggle
|
||||||
id="toggle-status"
|
id="toggle-status"
|
||||||
dense
|
dense
|
||||||
|
|
@ -104,7 +111,9 @@ defineEmits<{
|
||||||
padding="none"
|
padding="none"
|
||||||
class="q-pr-md"
|
class="q-pr-md"
|
||||||
/>
|
/>
|
||||||
<span>{{ $t('formDialogTitleUserStatus') }}</span>
|
<span>
|
||||||
|
{{ statusToggle ? $t('switchOnLabel') : $t('switchOffLabel') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue