@jiaozhiye/qm-design-vue
Version:
A Component Library for Vue3.0
56 lines (55 loc) • 1.47 kB
TypeScript
import type { PropType, ExtractPropTypes, StyleValue } from 'vue';
import type { Arrayable, ComponentSize } from '../../_utils/types';
export type ILabelItem = {
id: string;
label: string;
};
export declare const _props: {
defaultActiveIndex: {
type: NumberConstructor;
};
labelList: {
type: PropType<ILabelItem[]>;
default: () => never[];
};
labelWidth: {
type: PropType<string | number>;
validator: (val: string | number) => boolean;
};
size: {
type: PropType<ComponentSize>;
validator: (val: string) => boolean;
};
tabPosition: {
type: PropType<"top" | "left">;
default: string;
};
class: {
type: PropType<string | Arrayable<Record<string, boolean>>>;
};
style: {
type: PropType<StyleValue>;
};
};
export declare const _itemProps: {
label: {
type: StringConstructor;
required: boolean;
};
showDivider: {
type: BooleanConstructor;
default: boolean;
};
class: {
type: PropType<string | Arrayable<Record<string, boolean>>>;
};
style: {
type: PropType<StyleValue>;
};
};
export declare const _emits: {
tabClick: (label: ILabelItem, ev: MouseEvent) => boolean;
};
export type AnchorProps = ExtractPropTypes<typeof _props>;
export type AnchorItemProps = ExtractPropTypes<typeof _itemProps>;
export type AnchorEmits = typeof _emits;