chore: migrate to useCustomFieldValue (#9201)

This commit is contained in:
neverland
2021-08-07 16:22:02 +08:00
committed by GitHub
parent 6de05f45d2
commit 1bfcbab2fa
36 changed files with 113 additions and 103 deletions
+2 -3
View File
@@ -6,8 +6,7 @@ import {
ExtractPropTypes,
} from 'vue';
import { unknownProp, createNamespace } from '../utils';
import { useChildren } from '@vant/use';
import { useLinkField } from '../composables/use-link-field';
import { useChildren, useCustomFieldValue } from '@vant/use';
import type { CheckerDirection } from '../checkbox/Checker';
const [name, bem] = createNamespace('radio-group');
@@ -49,7 +48,7 @@ export default defineComponent({
updateValue,
});
useLinkField(() => props.modelValue);
useCustomFieldValue(() => props.modelValue);
return () => (
<div class={bem([props.direction])} role="radiogroup">