Skip to content

docs(BaseTable): detailed scrollToElement #698

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RSS1102
Copy link
Collaborator

@RSS1102 RSS1102 commented Aug 13, 2025

@RSS1102 RSS1102 marked this pull request as draft August 13, 2025 13:16
@RSS1102 RSS1102 force-pushed the docs/base-table/scroll-to-element branch from 9b36eb0 to 662cf9e Compare August 14, 2025 07:11
@liweijie0812
Copy link
Collaborator

昨晚看了下,需要改生成脚本
没适配这种 参数:(params: ComponentScrollToElementParams) ,ComponentScrollToElementParams 类型定义在common

@RSS1102 RSS1102 closed this Aug 14, 2025
@RSS1102 RSS1102 force-pushed the docs/base-table/scroll-to-element branch from 662cf9e to c4d9121 Compare August 14, 2025 07:40
@RSS1102 RSS1102 reopened this Aug 14, 2025
@RSS1102
Copy link
Collaborator Author

RSS1102 commented Aug 14, 2025

/resolve-conflict

@@ -12566,8 +12566,8 @@
"field_type": [],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "纵向滚动到指定行。示例:`scrollToElement({ index: 100, top: 80, time: 200, behavior: 'smooth' })`",
"field_desc_en": null,
"field_desc_zh": "[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts#L125)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/table/type.ts#L325C3-L325C18)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种改法不行,react 和vue 是公用这段描述

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好像也是,我看怎么解决

@RSS1102
Copy link
Collaborator Author

RSS1102 commented Aug 18, 2025

Todo: 这里需要修改 [tdesign-api](https://github.com/TDesignOteam/tdesign-api) 当 API 类型为 Function 时应该使用费字符串硬匹配是否符合 [GLOBAL_TYPES](https://github.com/TDesignOteam/tdesign-api/blob/534d214625bbd880cbdc7d7f99f23d98f41cd159/packages/scripts/config/const.js#L16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants