Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIChat] chat的实例方法scrollToBottom在typescript中无法被正确识别 #5007

Open
meetAndEgg opened this issue Feb 11, 2025 · 1 comment
Assignees
Labels
to be published to be published type/typscript the issue about type/typscript

Comments

@meetAndEgg
Copy link

meetAndEgg commented Feb 11, 2025

tdesign-vue-next 版本

@tdesign-vue-next/chat@0.1.4

重现链接

No response

重现步骤

<template>
   <t-chat ref="chatRef"></t-chat>
</template>
<script setup>
import { Chat as TChat } from '@tdesign-vue-next/chat';
const chatRef = ref<InstanceType<typeof TChat> | null>(null);
chatRef.value?.scrollToBottom() // ====> 编译器报错不存在该方法
</script>

期望结果

编译器不报错

实际结果

编译器报错

Image

框架版本

vue(3.4.0)

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @meetAndEgg,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the type/typscript the issue about type/typscript label Feb 12, 2025
@uyarn uyarn changed the title [组件名称] ai对话组件(@tdesign-vue-next/chat)中chat的实例方法scrollToBottom在typescript中无法被正确识别 [AIChat] chat的实例方法scrollToBottom在typescript中无法被正确识别 Feb 12, 2025
@uyarn uyarn added the to be published to be published label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published type/typscript the issue about type/typscript
Projects
None yet
Development

No branches or pull requests

3 participants