Skip to content

Commit

Permalink
docs(progress): remove size and theme related content
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jun 16, 2022
1 parent 2e1a482 commit 563e8cb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
2 changes: 0 additions & 2 deletions src/progress/progress.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
color | String / Object / Array | '' | 进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']``{ '0%': '#f00', '100%': '#0ff' }``{ from: '#000', to: '#000' }` 等。TS 类型:`string | Array<string> | Record<string, string>` | N
label | String / Boolean / Slot / Function | true | 进度百分比,可自定义。TS 类型:`string | boolean | TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
percentage | Number | 0 | 进度条百分比 | N
size | String / Number | 'medium' | 进度条尺寸,示例:small/medium/large/240。small 值为 72; medium 值为 112;large 值为 160 | N
status | String | - | 进度条状态。可选项:success/error/warning/active。TS 类型:`StatusEnum` `type StatusEnum = 'success' | 'error' | 'warning' | 'active'`[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/progress/type.ts) | N
strokeWidth | String / Number | - | 进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度 | N
theme | String | line | 进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间。可选项:line/plump/circle。TS 类型:`ThemeEnum` `type ThemeEnum = 'line' | 'plump' | 'circle'`[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/progress/type.ts) | N
trackColor | String | '' | 进度条未完成部分颜色 | N
14 changes: 0 additions & 14 deletions src/progress/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ export default {
type: Number,
default: 0,
},
/** 进度条尺寸,示例:small/medium/large/240。small 值为 72; medium 值为 112;large 值为 160 */
size: {
type: [String, Number] as PropType<TdProgressProps['size']>,
default: 'medium',
},
/** 进度条状态 */
status: {
type: String as PropType<TdProgressProps['status']>,
Expand All @@ -40,15 +35,6 @@ export default {
strokeWidth: {
type: [String, Number] as PropType<TdProgressProps['strokeWidth']>,
},
/** 进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间 */
theme: {
type: String as PropType<TdProgressProps['theme']>,
default: 'line' as TdProgressProps['theme'],
validator(val: TdProgressProps['theme']): boolean {
if (!val) return true;
return ['line', 'plump', 'circle'].includes(val);
},
},
/** 进度条未完成部分颜色 */
trackColor: {
type: String,
Expand Down
12 changes: 0 additions & 12 deletions src/progress/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ export interface TdProgressProps {
* @default 0
*/
percentage?: number;
/**
* 进度条尺寸,示例:small/medium/large/240。small 值为 72; medium 值为 112;large 值为 160
* @default 'medium'
*/
size?: string | number;
/**
* 进度条状态
*/
Expand All @@ -35,11 +30,6 @@ export interface TdProgressProps {
* 进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度
*/
strokeWidth?: string | number;
/**
* 进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间
* @default line
*/
theme?: ThemeEnum;
/**
* 进度条未完成部分颜色
* @default ''
Expand All @@ -48,5 +38,3 @@ export interface TdProgressProps {
}

export type StatusEnum = 'success' | 'error' | 'warning' | 'active';

export type ThemeEnum = 'line' | 'plump' | 'circle';

0 comments on commit 563e8cb

Please sign in to comment.