vue3-chat-yz
Version:
vue3-chat-yz
22 lines (21 loc) • 596 B
TypeScript
export type ThinkingStatus = "start" | "thinking" | "end" | "error";
export interface ThinkingProps {
/** 内容 */
content?: string;
/** 初始展开状态 */
modelValue: boolean;
status?: ThinkingStatus;
autoCollapse?: boolean;
disabled?: boolean;
duration?: string;
buttonWidth?: string;
maxWidth?: string;
backgroundColor?: string;
color?: string;
isBorder?: boolean;
lb?: boolean;
}
export interface ThinkingEmits {
(e: "update:modelValue", value: boolean): void;
(e: "change", value: boolean, status: ThinkingStatus): void;
}