types: using unknown instead of any (#8152)

* types: using unknown instead of any

* chore: UnknownProp
This commit is contained in:
neverland
2021-02-14 12:37:02 +08:00
committed by GitHub
parent 393b2a256f
commit 08e928111b
23 changed files with 81 additions and 56 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ import {
onDeactivated,
onBeforeUnmount,
} from 'vue';
import { createNamespace, isDef } from '../utils';
import { createNamespace, isDef, UnknownProp } from '../utils';
// Composition
import { useEventListener } from '@vant/use';
@@ -45,9 +45,9 @@ export const popupSharedProps = {
// teleport
teleport: [String, Object] as PropType<TeleportProps['to']>,
// overlay custom style
overlayStyle: Object,
overlayStyle: Object as PropType<CSSProperties>,
// overlay custom class name
overlayClass: null,
overlayClass: UnknownProp,
// Initial rendering animation
transitionAppear: Boolean,
// whether to show overlay