import { ExtractPropTypes, PropType } from 'vue'; declare const badgeProps: { /** * 是否展示为小红点 */ readonly dot: { readonly type: BooleanConstructor; readonly default: false; }; /** * 设置徽标的偏移量,数组的两项分别对应水平向右和垂直向下方向的偏移量 */ readonly offset: { readonly type: PropType<[number, number]>; readonly default: () => number[]; readonly validator: (value: [number, number]) => boolean; }; /** * 徽标内容 */ readonly value: { readonly type: PropType; readonly default: ""; }; /** * 最大值,超过最大值会显示 {max}+,仅当 value 为数字时有效 */ readonly max: { readonly type: NumberConstructor; readonly default: 99; }; /** * 值为零时是否显示 Badge */ readonly zero: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示 */ readonly visible: { readonly type: BooleanConstructor; readonly default: true; }; }; export type BadgeProps = ExtractPropTypes; export { badgeProps };