fix: 消除Preview Options的函数定义类型错误

pull/38/head
xingyu 2023-10-10 11:51:32 +08:00
parent 81283bcd24
commit eb96488317
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ defineProps({
<section
v-show="loading"
class="full-loading"
:class="{ absolute, [theme]: !!theme }"
:class="{ absolute, [`${theme}`]: !!theme }"
:style="[background ? `background-color: ${background}` : '']"
>
<Spin v-bind="$attrs" :tip="tip" :size="size" :spinning="loading" />

View File

@ -12,8 +12,8 @@ export interface Options {
defaultWidth?: number
maskClosable?: boolean
rememberState?: boolean
onImgLoad?: (img: onImgLoadType) => void
onImgError?: (img: onImgLoadType) => void
onImgLoad?: (params: onImgLoadType) => void
onImgError?: (params: onImgLoadType) => void
}
export interface Props {