/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { ElementRef, Renderer, AfterViewInit } from '@angular/core'; /** * 徽标数 */ export declare class Badge implements AfterViewInit { private _renderer; private _elementRef; /** 样式前缀 */ prefixCls: string; /** 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏。 Number to show in badge */ count: number; /** 当数值为 0 时,是否展示 Badge */ showZero: boolean; /** 展示封顶的数字值。Max count to show */ overflowCount: number; /** 不展示数字,只有一个小红点。 whether to show red dot without number */ dot: boolean; /** 用户CSS样式 */ class: string; /** 设置 Badge 为状态点 */ status: 'success' | 'processing' | 'default' | 'error' | 'warning'; /** 在设置了 `status` 的前提下有效,设置状态点的文本 */ text: string; /** 内部徽标样式 */ badgeStyle: any; /** * 颜色,取值:default、primary、warn等。默认为default。
* 自定义的颜色名称与色值,可以定义在 工程根目录/src/theme/variables.scss 文件中的 $colors 对象。 */ color: string; constructor(_renderer: Renderer, _elementRef: ElementRef); ngAfterViewInit(): void; readonly classes: string; readonly title: string; getStatusCls(): any; getScrollNumberCls(): string; isOverflowCount(): boolean; getCountText(): string; isCountTextVisible(): boolean; }