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
+8 -2
View File
@@ -1,5 +1,11 @@
import { PropType, Transition, CSSProperties } from 'vue';
import { noop, isDef, preventDefault, createNamespace } from '../utils';
import {
noop,
isDef,
UnknownProp,
preventDefault,
createNamespace,
} from '../utils';
import { useLazyRender } from '../composables/use-lazy-render';
const [createComponent, bem] = createNamespace('overlay');
@@ -9,7 +15,7 @@ export default createComponent({
show: Boolean,
zIndex: [Number, String],
duration: [Number, String],
className: null,
className: UnknownProp,
customStyle: Object as PropType<CSSProperties>,
lockScroll: {
type: Boolean,