UNPKG

2.21 kBJSONView Raw
1{
2 "name": "Badge",
3 "props": {
4 "children": {
5 "type": {
6 "name": "node"
7 },
8 "required": false,
9 "description": "徽标依托的内容,一般显示在其右上方",
10 "docblock": "徽标依托的内容,一般显示在其右上方"
11 },
12 "count": {
13 "type": {
14 "name": "union",
15 "value": [
16 {
17 "name": "number"
18 },
19 {
20 "name": "string"
21 }
22 ]
23 },
24 "required": false,
25 "description": "展示的数字,大于 `overflowCount` 时显示为 `${overflowCount}+`,为 `0` 时默认隐藏",
26 "defaultValue": {
27 "value": "0",
28 "computed": false
29 },
30 "docblock": "展示的数字,大于 `overflowCount` 时显示为 `${overflowCount}+`,为 `0` 时默认隐藏"
31 },
32 "showZero": {
33 "type": {
34 "name": "bool"
35 },
36 "required": false,
37 "description": "当`count`为`0`时,是否显示count",
38 "defaultValue": {
39 "value": "false",
40 "computed": false
41 },
42 "docblock": "当`count`为`0`时,是否显示count\n@version 1.16",
43 "version": {
44 "value": "1.16",
45 "computed": false
46 }
47 },
48 "content": {
49 "type": {
50 "name": "node"
51 },
52 "required": false,
53 "description": "自定义徽标中的内容",
54 "docblock": "自定义徽标中的内容"
55 },
56 "overflowCount": {
57 "type": {
58 "name": "union",
59 "value": [
60 {
61 "name": "number"
62 },
63 {
64 "name": "string"
65 }
66 ]
67 },
68 "required": false,
69 "description": "展示的封顶的数字",
70 "defaultValue": {
71 "value": "99",
72 "computed": false
73 },
74 "docblock": "展示的封顶的数字"
75 },
76 "dot": {
77 "type": {
78 "name": "bool"
79 },
80 "required": false,
81 "description": "不展示数字,只展示一个小红点",
82 "defaultValue": {
83 "value": "false",
84 "computed": false
85 },
86 "docblock": "不展示数字,只展示一个小红点"
87 }
88 },
89 "methods": [],
90 "subComponents": []
91}
\No newline at end of file