element-plus
Version:
A Component Library for Vue 3
39 lines (38 loc) • 1.66 kB
TypeScript
import type { Component, ExtractPublicPropTypes } from 'vue';
import type { CollapseActiveName } from './collapse';
export interface CollapseItemProps {
/**
* @description title of the panel
*/
title?: string;
/**
* @description unique identification of the panel
*/
name?: CollapseActiveName;
/**
* @description icon of the collapse item
*/
icon?: string | Component;
/**
* @description disable the collapse item
*/
disabled?: boolean;
}
/**
* @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.
*/
export declare const collapseItemProps: {
readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
readonly name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => CollapseActiveName) | ((new (...args: any[]) => string | number) | (() => CollapseActiveName))[], unknown, unknown, undefined, boolean>;
readonly icon: {
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
readonly required: false;
readonly validator: ((val: unknown) => boolean) | undefined;
__epPropKey: true;
};
readonly disabled: BooleanConstructor;
};
/**
* @deprecated Removed after 3.0.0, Use `CollapseItemProps` instead.
*/
export type CollapseItemPropsPublic = ExtractPublicPropTypes<typeof collapseItemProps>;