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
@@ -1,5 +1,5 @@
import { watch } from 'vue';
import { createNamespace } from '../utils';
import { UnknownProp, createNamespace } from '../utils';
import { useChildren } from '@vant/use';
import { useLinkField } from '../composables/use-link-field';
import { CheckerParent } from '../checkbox/Checker';
@@ -10,7 +10,7 @@ export const RADIO_KEY = 'vanRadio';
export type RadioGroupProvide = CheckerParent & {
props: {
modelValue: any;
modelValue: unknown;
};
updateModelValue: (value: unknown) => void;
};
@@ -20,7 +20,7 @@ export default createComponent({
disabled: Boolean,
iconSize: [Number, String],
direction: String,
modelValue: null as any,
modelValue: UnknownProp,
checkedColor: String,
},