Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
animation | String | moving | options: skeleton/moving/gradient/dot | N
animation | String | moving | options: skeleton/moving/gradient/dots | N
text | String | - | text of chat loading | N
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
-- | -- | -- | -- | --
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
animation | String | moving | 加载的状态形式。可选项:skeleton/moving/gradient/dot | N
animation | String | moving | 加载的状态形式。可选项:skeleton/moving/gradient/dots | N
text | String | - | 加载过程展示的文字内容 | N
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface TdChatLoadingProps {
*/
animation?: {
type: StringConstructor;
value?: 'skeleton' | 'moving' | 'gradient' | 'dot';
value?: 'skeleton' | 'moving' | 'gradient' | 'dots';
};
/**
* 加载过程展示的文字内容
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
animation | String | moving | options: skeleton/moving/gradient/dot | N
animation | String | moving | options: skeleton/moving/gradient/dots | N
collapsed | Boolean | false | \- | N
content | Object | - | required。Typescript: `{ text?: string; title?: string }` | Y
layout | String | block | options: block/border | N
Expand All @@ -19,4 +19,10 @@ status | String | pending | required。options: complete/stop/error/pending | Y

name | params | description
-- | -- | --
collapsed-change | `(value: Boolean)` | \-
collapsed-change | `(value: boolean)` | \-

### ChatThinking Slots

name | Description
-- | --
content | \-
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | -- | -- | -- | --
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
animation | String | moving | 内容区域最大高度,超出会自动滚动。可选项:skeleton/moving/gradient/dot | N
animation | String | moving | 加载动画类型。可选项:skeleton/moving/gradient/dots | N
collapsed | Boolean | false | 是否折叠 | N
content | Object | - | 必需。思考内容对象。TS 类型:`{ text?: string; title?: string }` | Y
layout | String | block | 布局方式。可选项:block/border | N
Expand All @@ -19,4 +19,10 @@ status | String | pending | 必需。思考状态。可选项:complete/stop/er

名称 | 参数 | 描述
-- | -- | --
collapsed-change | `(value: Boolean)` | 切换折叠面板时触发
collapsed-change | `(value: boolean)` | 切换折叠面板时触发

### ChatThinking Slots

名称 | 描述
-- | --
content | 自定义 `content` 显示内容
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { TdChatThinkingProps } from './type';
const props: TdChatThinkingProps = {
/** 内容区域最大高度,超出会自动滚动 */
/** 加载动画类型 */
animation: {
type: String,
value: 'moving',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

export interface TdChatThinkingProps {
/**
* 内容区域最大高度,超出会自动滚动
* 加载动画类型
* @default moving
*/
animation?: {
type: StringConstructor;
value?: 'skeleton' | 'moving' | 'gradient' | 'dot';
value?: 'skeleton' | 'moving' | 'gradient' | 'dots';
};
/**
* 是否折叠
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
name | type | default | description | required
-- | -- | -- | -- | --
custom-style | Object | - | CSS(Cascading Style Sheets) | N
animation | String | moving | options: skeleton/moving/gradient/dot | N
animation | String | moving | options: skeleton/moving/gradient/dots | N
text | String | - | text of chat loading | N
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
custom-style | Object | - | 自定义样式 | N
animation | String | moving | 加载的状态形式。可选项:skeleton/moving/gradient/dot | N
animation | String | moving | 加载的状态形式。可选项:skeleton/moving/gradient/dots | N
text | String | - | 加载过程展示的文字内容 | N
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export default {
default: 'moving' as TdChatLoadingProps['animation'],
validator(val: TdChatLoadingProps['animation']): boolean {
if (!val) return true;
return ['skeleton', 'moving', 'gradient', 'dot'].includes(val);
return ['skeleton', 'moving', 'gradient', 'dots'].includes(val);
},
},
/** 加载过程展示的文字内容 */
text: {
type: String,
default: '',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ export interface TdChatLoadingProps {
* 加载的状态形式
* @default moving
*/
animation?: 'skeleton' | 'moving' | 'gradient' | 'dot';
animation?: 'skeleton' | 'moving' | 'gradient' | 'dots';
/**
* 加载过程展示的文字内容
* @default ''
*/
text?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name | type | default | description | required
-- | -- | -- | -- | --
custom-style | Object | - | CSS(Cascading Style Sheets) | N
animation | String | moving | options: skeleton/moving/gradient/dot | N
animation | String | moving | options: skeleton/moving/gradient/dots | N
collapsed | Boolean | false | \- | N
content | Object | - | required。Typescript: `{ text?: string; title?: string }` | Y
layout | String | block | options: block/border | N
Expand All @@ -18,4 +18,10 @@ status | String | pending | required。options: complete/stop/error/pending | Y

name | params | description
-- | -- | --
collapsed-change | `(value: Boolean)` | \-
collapsed-change | `(value: boolean)` | \-

### ChatThinking Slots

name | Description
-- | --
content | \-
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
custom-style | Object | - | 自定义样式 | N
animation | String | moving | 内容区域最大高度,超出会自动滚动。可选项:skeleton/moving/gradient/dot | N
animation | String | moving | 加载动画类型。可选项:skeleton/moving/gradient/dots | N
collapsed | Boolean | false | 是否折叠 | N
content | Object | - | 必需。思考内容对象。TS 类型:`{ text?: string; title?: string }` | Y
layout | String | block | 布局方式。可选项:block/border | N
Expand All @@ -18,4 +18,10 @@ status | String | pending | 必需。思考状态。可选项:complete/stop/er

名称 | 参数 | 描述
-- | -- | --
collapsed-change | `(value: Boolean)` | 切换折叠面板时触发
collapsed-change | `(value: boolean)` | 切换折叠面板时触发

### ChatThinking Slots

名称 | 描述
-- | --
content | 自定义 `content` 显示内容
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

import type { TdChatThinkingProps } from './type';
export default {
/** 内容区域最大高度,超出会自动滚动 */
/** 加载动画类型 */
animation: {
type: String,
default: 'moving' as TdChatThinkingProps['animation'],
validator(val: TdChatThinkingProps['animation']): boolean {
if (!val) return true;
return ['skeleton', 'moving', 'gradient', 'dot'].includes(val);
return ['skeleton', 'moving', 'gradient', 'dots'].includes(val);
},
},
/** 是否折叠 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

export interface TdChatThinkingProps {
/**
* 内容区域最大高度,超出会自动滚动
* 加载动画类型
* @default moving
*/
animation?: 'skeleton' | 'moving' | 'gradient' | 'dot';
animation?: 'skeleton' | 'moving' | 'gradient' | 'dots';
/**
* 是否折叠
* @default false
Expand All @@ -36,5 +36,5 @@ export interface TdChatThinkingProps {
/**
* 切换折叠面板时触发
*/
onCollapsedChange?: (value: Boolean) => void;
onCollapsedChange?: (value: boolean) => void;
}

This file was deleted.

Loading