File tree Expand file tree Collapse file tree 4 files changed +9
-17
lines changed Expand file tree Collapse file tree 4 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ name | type | default | description | required
77-- | -- | -- | -- | --
88color | String | - | \- | N
99content | String | - | \- | N
10- count | String / Number / Slot | 0 | \- | N
10+ count | String / Number / Slot | 0 | [ see more ts definition ] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts ) | N
1111dot | Boolean | false | \- | N
1212external-classes | Array | - | ` ['t-class', 't-class-content', 't-class-count'] ` | N
1313max-count | Number | 99 | \- | N
1414offset | Array | - | Typescript:` Array<string \| number> ` | N
15- shape | String | circle | options:circle/round/ribbon/ bubble | N
15+ shape | String | circle | options:circle/square/ bubble/ribbon | N
1616show-zero | Boolean | false | \- | N
17- size | String | medium | options:small/ medium | N
17+ size | String | medium | options:medium/large | N
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ isComponent: true
3737-- | -- | -- | -- | --
3838color | String | - | 颜色 | N
3939content | String | - | 徽标内容,示例:` content='自定义内容' ` 。也可以使用默认插槽定义 | N
40- count | String / Number / Slot | 0 | 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染 | N
40+ count | String / Number / Slot | 0 | 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染。 [ 通用类型定义 ] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts ) | N
4141dot | Boolean | false | 是否为红点 | N
4242external-classes | Array | - | 组件类名,分别用于设置外层元素、默认内容、右上角内容等元素类名。` ['t-class', 't-class-content', 't-class-count'] ` | N
4343max-count | Number | 99 | 封顶的数字值 | N
4444offset | Array | - | 设置状态点的位置偏移,示例:[ -10, 20] 或 [ '10em', '8rem'] 。TS 类型:` Array<string \| number> ` | N
45- shape | String | circle | 形状。可选项:circle/round/ribbon/ bubble | N
45+ shape | String | circle | 形状。可选项:circle/square/ bubble/ribbon | N
4646show-zero | Boolean | false | 当数值为 0 时,是否展示徽标 | N
47- size | String | medium | 尺寸。可选项:small/ medium | N
47+ size | String | medium | 尺寸。可选项:medium/large | N
Original file line number Diff line number Diff line change 33/**
44 * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
55 * */
6- import { TdBadgeProps } from './type' ;
76
7+ import { TdBadgeProps } from './type' ;
88const props : TdBadgeProps = {
99 /** 颜色 */
1010 color : {
Original file line number Diff line number Diff line change @@ -29,14 +29,6 @@ export interface TdBadgeProps {
2929 type : null ;
3030 value ?: string | number ;
3131 } ;
32- /**
33- * 自定义组件样式
34- * @default ''
35- */
36- style ?: {
37- type : StringConstructor ;
38- value ?: string ;
39- } ;
4032 /**
4133 * 是否为红点
4234 * @default false
@@ -73,7 +65,7 @@ export interface TdBadgeProps {
7365 */
7466 shape ?: {
7567 type : StringConstructor ;
76- value ?: 'circle' | 'round ' | 'ribbon ' | 'bubble ' ;
68+ value ?: 'circle' | 'square ' | 'bubble ' | 'ribbon ' ;
7769 } ;
7870 /**
7971 * 当数值为 0 时,是否展示徽标
@@ -89,6 +81,6 @@ export interface TdBadgeProps {
8981 */
9082 size ?: {
9183 type : StringConstructor ;
92- value ?: 'small ' | 'medium ' ;
84+ value ?: 'medium ' | 'large ' ;
9385 } ;
9486}
You can’t perform that action at this time.
0 commit comments