sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
44 lines (43 loc) • 1.28 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
export interface AccordionProps {
rootStyle?: StyleValue;
rootClass?: string;
modelValue?: (string | number)[] | string | number;
multiple?: boolean;
hideBorder?: boolean;
}
export declare const defaultAccordionProps: () => DefaultProps<AccordionProps>;
export interface AccordionEmits {
(e: 'update:model-value', event: any): void;
}
export interface AccordionSlots {
default?(props: Record<string, never>): any;
}
export interface AccoridonContext {
value: any;
multiple: AccordionProps['multiple'];
toggle: (name: string | number) => void;
hideBorder?: boolean;
}
export declare const accoridonContextSymbol: unique symbol;
export interface AccordionItemProps {
rootStyle?: StyleValue;
rootClass?: string;
title?: string;
value?: string;
extra?: string;
name?: string | number;
disabled?: boolean;
}
export interface AccordionItemEmits {
(e: 'click', event: any): void;
}
export interface AccordionItemSlots {
default?(props: Record<string, never>): any;
title?(props: Record<string, never>): any;
extra?(props: Record<string, never>): any;
arrow?(props: {
visible: boolean;
}): any;
}