types(Radio): use tsx (#8129)

This commit is contained in:
neverland
2021-02-11 10:35:22 +08:00
committed by GitHub
parent b5944524d9
commit 4ce467c683
4 changed files with 31 additions and 13 deletions

View File

@@ -3,19 +3,18 @@ import { createNamespace } from '../utils';
import { useChildren } from '@vant/use';
import { useExpose } from '../composables/use-expose';
import { useLinkField } from '../composables/use-link-field';
import { CheckerParent, CheckerDirection } from '../checkbox/Checker';
const [createComponent, bem] = createNamespace('checkbox-group');
export const CHECKBOX_GROUP_KEY = 'vanCheckboxGroup';
export type CheckboxGroupDirection = 'horizontal' | 'vertical';
export type CheckboxGroupToggleAllOptions = {
checked?: boolean;
skipDisabled?: boolean;
};
export type CheckboxGroupProvide = {
export type CheckboxGroupProvide = CheckerParent & {
props: {
max: number | string;
modelValue: any[];
@@ -27,7 +26,7 @@ export default createComponent({
props: {
max: [Number, String],
disabled: Boolean,
direction: String as PropType<CheckboxGroupDirection>,
direction: String as PropType<CheckerDirection>,
iconSize: [Number, String],
checkedColor: String,
modelValue: {