-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathtype.ts
More file actions
65 lines (62 loc) · 1.16 KB
/
type.ts
File metadata and controls
65 lines (62 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import { TNode } from '../common';
export interface TdBadgeProps {
/**
* 徽标内容,同 content
*/
children?: TNode;
/**
* 颜色
* @default ''
*/
color?: string;
/**
* 徽标内容
*/
content?: TNode;
/**
* 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+
* @default 0
*/
count?: TNode;
/**
* 是否为红点
* @default false
*/
dot?: boolean;
/**
* 封顶的数字值
* @default 99
*/
maxCount?: number;
/**
* 设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']
*/
offset?: Array<string | number>;
/**
* 徽标形状,其中 ribbon 和 ribbon-right 等效
* @default circle
*/
shape?:
| 'circle'
| 'square'
| 'bubble'
| 'ribbon'
| 'ribbon-right'
| 'ribbon-left'
| 'triangle-right'
| 'triangle-left';
/**
* 当数值为 0 时,是否展示徽标
* @default false
*/
showZero?: boolean;
/**
* 尺寸
* @default medium
*/
size?: 'medium' | 'large';
}