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
+2 -2
View File
@@ -2,7 +2,7 @@ import { PropType, reactive } from 'vue';
// Utils
import { callInterceptor, Interceptor } from '../utils/interceptor';
import { createNamespace, addUnit, pick } from '../utils';
import { createNamespace, addUnit, pick, UnknownProp } from '../utils';
import { BORDER_TOP, BORDER_LEFT } from '../utils/constant';
// Components
@@ -32,7 +32,7 @@ export default createComponent({
message: String,
callback: Function as PropType<(action?: DialogAction) => void>,
allowHtml: Boolean,
className: null,
className: UnknownProp,
beforeClose: Function as PropType<Interceptor>,
messageAlign: String as PropType<DialogMessageAlign>,
showCancelButton: Boolean,