fix: แก้เงื่อนไขการเเสดงผล
This commit is contained in:
parent
d2abc074cb
commit
505c07760d
3 changed files with 15 additions and 4 deletions
|
|
@ -17,13 +17,22 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="row items-stretch" style="position: absolute; inset: 0">
|
<div class="row items-stretch" style="position: absolute; inset: 0">
|
||||||
<div class="col-3">
|
<div class="col-3" v-if="$slots['person-card']">
|
||||||
<slot name="person-card"></slot>
|
<slot name="person-card"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-9" style="position: relative">
|
<div
|
||||||
|
:class="{
|
||||||
|
'col-9': $slots['person-card'],
|
||||||
|
'col-12': !$slots['person-card'],
|
||||||
|
}"
|
||||||
|
style="position: relative"
|
||||||
|
>
|
||||||
<AppBox
|
<AppBox
|
||||||
bordered
|
bordered
|
||||||
class="q-my-md q-mr-md"
|
:class="{
|
||||||
|
'q-my-md q-mr-md': $slots['person-card'],
|
||||||
|
'q-ma-md': !$slots['person-card'],
|
||||||
|
}"
|
||||||
style="position: absolute; overflow-y: auto; inset: 0"
|
style="position: absolute; overflow-y: auto; inset: 0"
|
||||||
>
|
>
|
||||||
<div class="row q-col-gutter-y-md">
|
<div class="row q-col-gutter-y-md">
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { ref } from 'vue';
|
||||||
defineProps<{
|
defineProps<{
|
||||||
title: string;
|
title: string;
|
||||||
isEdit?: boolean;
|
isEdit?: boolean;
|
||||||
|
bgOn?: boolean;
|
||||||
editData?: (...args: unknown[]) => void;
|
editData?: (...args: unknown[]) => void;
|
||||||
deleteData?: (...args: unknown[]) => void;
|
deleteData?: (...args: unknown[]) => void;
|
||||||
submit?: (...args: unknown[]) => void;
|
submit?: (...args: unknown[]) => void;
|
||||||
|
|
@ -107,7 +108,7 @@ function reset() {
|
||||||
class="col-10 form-body"
|
class="col-10 form-body"
|
||||||
style="position: relative"
|
style="position: relative"
|
||||||
:class="{ dark: $q.dark.isActive }"
|
:class="{ dark: $q.dark.isActive }"
|
||||||
:style="`background-image: url(/personnel-info-bg-${$q.dark.isActive ? 'dark' : 'light'}.png)`"
|
:style="` ${bgOn ? `background-image: url(/personnel-info-bg-${$q.dark.isActive ? 'dark' : 'light'}.png)` : ''}`"
|
||||||
>
|
>
|
||||||
<slot name="info"></slot>
|
<slot name="info"></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -600,6 +600,7 @@ watch(
|
||||||
|
|
||||||
<DrawerInfo
|
<DrawerInfo
|
||||||
v-if="currentUser"
|
v-if="currentUser"
|
||||||
|
bg-on
|
||||||
:isEdit="infoPersonCardEdit"
|
:isEdit="infoPersonCardEdit"
|
||||||
:title="
|
:title="
|
||||||
$i18n.locale === 'en-US'
|
$i18n.locale === 'en-US'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue