Skip to content

Commit b74d456

Browse files
authored
docs(Statistic): update color docs (#5861)
1 parent b3cbe18 commit b74d456

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

packages/components/statistic/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
},
1515
/** 是否开始动画 */
1616
animationStart: Boolean,
17-
/** 颜色风格可以为支持 TDesign 的浅色和深色模式的黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)。也可以为任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,但不支持 TDesign 的浅色和深色模式。 */
17+
/** 颜色风格,预设五个 TDesign 颜色风格:黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)支持深浅色模式切换。也可以自定义任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,深浅色模式切换需自行适配 */
1818
color: {
1919
type: String,
2020
default: '',

packages/components/statistic/statistic.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### Statistic Props
56

67
name | type | default | description | required

packages/components/statistic/statistic.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
:: BASE_DOC ::
22

33
## API
4+
45
### Statistic Props
56

67
名称 | 类型 | 默认值 | 描述 | 必传
78
-- | -- | -- | -- | --
89
animation | Object | - | 动画效果控制,`duration` 指动画的过渡时间`单位:毫秒``valueFrom` 指动画的起始数值。`{ duration, valueFrom }`。TS 类型:`animation` `interface animation { duration: number; valueFrom: number; }`[详细类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/statistic/type.ts) | N
910
animationStart | Boolean | false | 是否开始动画 | N
10-
color | String | - | 颜色风格,预设五个 TDesign 颜色风格:黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)支持深浅色模式切换。也可以自定义任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,深浅色模式切换需自行适配 | N
11+
color | String | - | 颜色风格,预设五个 TDesign 颜色风格:黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)支持深浅色模式切换。也可以自定义任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,深浅色模式切换需自行适配 | N
1112
decimalPlaces | Number | - | 小数保留位数 | N
1213
extra | String / Slot / Function | - | 额外的显示内容。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
1314
format | Function | - | 格式化数值显示值。TS 类型:`(value: number) => number` | N

packages/components/statistic/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface TdStatisticProps {
1717
*/
1818
animationStart?: boolean;
1919
/**
20-
* 颜色风格可以为支持 TDesign 的浅色和深色模式的黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)。也可以为任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,但不支持 TDesign 的浅色和深色模式。
20+
* 颜色风格,预设五个 TDesign 颜色风格:黑色(black)、蓝色(blue)、红色(red)、橙色(orange)、绿色(green)支持深浅色模式切换。也可以自定义任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持颜色值,深浅色模式切换需自行适配
2121
* @default ''
2222
*/
2323
color?: string;

0 commit comments

Comments
 (0)