fix. content 모달 dimmed 옵셔널 추가
This commit is contained in:
@@ -53,7 +53,7 @@ watch(
|
||||
:class="[
|
||||
'modal-wrap',
|
||||
{ 'is-open': content.storeIsOpen },
|
||||
'dimmed',
|
||||
{ dimmed: content.storeIsShowDimmed },
|
||||
content.storeModalName,
|
||||
]"
|
||||
@click="handleOutsideClick"
|
||||
|
||||
@@ -132,6 +132,7 @@ export const useModalStore = defineStore('modalStore', () => {
|
||||
// content ------------------
|
||||
const content = {
|
||||
storeIsOpen: ref(false),
|
||||
storeIsShowDimmed: ref(true),
|
||||
storeModalName: ref(''),
|
||||
storeIsOutsideClose: ref(false),
|
||||
storeContentTitle: ref(''),
|
||||
@@ -140,12 +141,14 @@ export const useModalStore = defineStore('modalStore', () => {
|
||||
}
|
||||
|
||||
const handleOpenContent = ({
|
||||
isShowDimmed = true,
|
||||
isOutsideClose = false,
|
||||
modalName = '',
|
||||
contentTitle,
|
||||
tabInfo,
|
||||
tabActiveIndex = 0,
|
||||
}: ContentParams) => {
|
||||
content.storeIsShowDimmed.value = isShowDimmed
|
||||
content.storeIsOpen.value = true
|
||||
content.storeModalName.value = modalName
|
||||
content.storeIsOutsideClose.value = isOutsideClose
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface ToastParams {
|
||||
}
|
||||
|
||||
export interface ContentParams {
|
||||
isShowDimmed?: boolean
|
||||
isOutsideClose?: boolean
|
||||
modalName?: string
|
||||
contentTitle: string
|
||||
|
||||
Reference in New Issue
Block a user