Think 思考过程
展示大模型深度思考过程。
何时使用
- 用于在对话时展示大模型的深度思考过程。
代码演示
基础用法
deep thinking
This is deep thinking content.
设置状态
Complete thinking
This is deep thinking content.
Complete thinking
Customize status icon.
是否展开
deep thinking
This is deep thinking content.
API
ThinkProps
| 属性 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| classNames | 样式类名 | Record<SemanticDOM, string> | - | - |
| styles | 样式 style | Record<SemanticDOM, CSSProperties> | - | - |
| title | 状态文本 | VNode | string | - | - |
| icon | 状态图标 | VNode | - | - |
| loading | 加载中 | boolean | VNode | false | - |
| defaultExpanded | 默认是否展开 | boolean | true | - |
| expanded | 是否展开 | boolean | - | - |
| onExpand | 展开事件 | (expand: boolean) => void | - | - |
| blink | 闪动模式 | boolean | - | - |
Slots
| 名称 | 说明 |
|---|---|
| default | 思考内容 |
| title | 自定义状态文本 |
| icon | 自定义状态图标 |
Semantic DOM
deep thinking
This is deep thinking content.
root
根节点status
状态区content
内容区
主题变量(Design Token)
| Token | 说明 | 类型 | 默认值 |
|---|---|---|---|
| colorTextBlinkDefault | 默认打字动画颜色 | string | colorTextDescription |
| colorTextBlink | 打字动画颜色 | string | colorTextBase |