types: improve relation types (#9016)
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
import { PropType, defineComponent, InjectionKey } from 'vue';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||
import { useChildren } from '@vant/use';
|
||||
|
||||
const [name, bem] = createNamespace('collapse');
|
||||
|
||||
export const COLLAPSE_KEY = Symbol(name);
|
||||
|
||||
export type CollapseProvide = {
|
||||
toggle: (name: number | string, expanded: boolean) => void;
|
||||
isExpanded: (name: number | string) => boolean;
|
||||
};
|
||||
|
||||
export const COLLAPSE_KEY: InjectionKey<CollapseProvide> = Symbol(name);
|
||||
|
||||
function validateModelValue(
|
||||
modelValue: string | number | Array<string | number>,
|
||||
accordion: boolean
|
||||
|
||||
Reference in New Issue
Block a user