Think 思考过程
展示大模型深度思考过程。
何时使用
- 用于在对话时展示大模型的深度思考过程。
代码演示
基本
基础用法。
deep thinking
This is deep thinking content.
设置状态
通过 loading / blink 展示思考中状态。
Complete thinking
This is deep thinking content.
Complete thinking
Customize status icon.
是否展开
受控展开。
deep thinking
This is deep thinking content.
API
ThinkProps
| 属性 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| classNames | 样式类名 | Record<'root' | 'status' | 'content', string> | - | - |
| styles | 样式 style | Record<'root' | 'status' | 'content', CSSProperties> | - | - |
| title | 状态文本 | VNode | string | (() => VNode | string) | - | - |
| icon | 状态图标 | VNode | (() => VNode) | - | - |
| loading | 加载中 | boolean | VNode | (() => VNode) | false | - |
| defaultExpanded | 默认是否展开 | boolean | true | - |
| expanded | 是否展开 | boolean | - | - |
| onExpand | 展开事件 | (expand: boolean) => void | - | - |
| blink | 闪动模式 | boolean | - | - |
| destroyOnHidden | 隐藏时是否销毁内容节点 | boolean | true | - |
Think Slots
| 插槽名 | 说明 |
|---|---|
| default | 思考内容 |
| title | 状态文本 |
| icon | 状态图标 |
| loading | 加载中图标 |
贡献者
贡献者
正在加载贡献者信息...