types: using unknown instead of any (#8152)
* types: using unknown instead of any * chore: UnknownProp
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user