cnd-components-mcp
Version:
An MCP service for Cnd components query | 一个减少 Cnd 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
12 lines • 3.22 kB
Markdown
进度指示也称进度条,常用于可视化展示比例、进展、完成度等类型信息。
| 参数 | 说明 | 类型 | 默认值 | 是否必填 |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ----------------------------------------- | -------- |
| shape | 形态 | 'circle' | 'line' | 'line' | |
| size | 尺寸 | 'small' | 'medium' | 'large' | 'medium' | |
| percent | 所占百分比 | number | 0 | |
| state | 进度状态, 显示优先级: color > progressive > state | 'normal' | 'success' | 'error' | 'normal' | |
| progressive | 是否为色彩阶段变化模式, 显示优先级: color > progressive > state | boolean | false | |
| hasBorder | 是否添加 Border(只适用于 Line Progress) | boolean | false | |
| textRender | 文本渲染函数<br/><br/>**签名**:<br/>**参数**:<br/>*percent*: 当前的进度信息<br/>*option*: 额外的参数<br/>**返回值**:<br/>文本节点 | (percent: number, option?: {rtl?: boolean}) => `React.ReactNode` | percent => \`${Math.floor(percent)}%\` | |
| color | 进度条颜色, 显示优先级: color > progressive > state | string | - | |
| backgroundColor | 背景色 | string | - | |