1 | import { type PropType, type InjectionKey, type ExtractPropTypes, type ComponentPublicInstance } from 'vue';
|
2 | import { type Numeric } from '../utils';
|
3 | export type CollapseProvide = {
|
4 | toggle: (name: Numeric, expanded: boolean) => void;
|
5 | isExpanded: (name: Numeric) => boolean;
|
6 | };
|
7 | export type CollapseToggleAllOptions = boolean | {
|
8 | expanded?: boolean;
|
9 | skipDisabled?: boolean;
|
10 | };
|
11 | export declare const COLLAPSE_KEY: InjectionKey<CollapseProvide>;
|
12 | export declare const collapseProps: {
|
13 | border: {
|
14 | type: BooleanConstructor;
|
15 | default: true;
|
16 | };
|
17 | accordion: BooleanConstructor;
|
18 | modelValue: {
|
19 | type: PropType<Numeric | Numeric[]>;
|
20 | default: string;
|
21 | };
|
22 | };
|
23 | export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
|
24 | export type CollapseInstance = ComponentPublicInstance<{
|
25 | toggleAll: (options?: boolean | CollapseToggleAllOptions) => void;
|
26 | }>;
|
27 | declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
28 | border: {
|
29 | type: BooleanConstructor;
|
30 | default: true;
|
31 | };
|
32 | accordion: BooleanConstructor;
|
33 | modelValue: {
|
34 | type: PropType<Numeric | Numeric[]>;
|
35 | default: string;
|
36 | };
|
37 | }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
38 | border: {
|
39 | type: BooleanConstructor;
|
40 | default: true;
|
41 | };
|
42 | accordion: BooleanConstructor;
|
43 | modelValue: {
|
44 | type: PropType<Numeric | Numeric[]>;
|
45 | default: string;
|
46 | };
|
47 | }>> & Readonly<{
|
48 | onChange?: ((...args: any[]) => any) | undefined;
|
49 | "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
50 | }>, {
|
51 | border: boolean;
|
52 | modelValue: Numeric | Numeric[];
|
53 | accordion: boolean;
|
54 | }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
55 | export default _default;
|
56 |
|
\ | No newline at end of file |