Skip to content

docs(popover): 同步站点 README 示例与 API 到现网 API - #1033

Open
RSS1102 wants to merge 1 commit into
developfrom
rss1102/cnb-issue-80/docs/sync-popover-site-readme
Open

docs(popover): 同步站点 README 示例与 API 到现网 API#1033
RSS1102 wants to merge 1 commit into
developfrom
rss1102/cnb-issue-80/docs/sync-popover-site-readme

Conversation

@RSS1102

@RSS1102 RSS1102 commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

🤔 这个 PR 的性质是?

勾选规则:
1.只要有新增参数,就勾选"新特性提交"
2.只修改内部bug,未新增参数,才勾选"日常 bug 修复"
3.其他选项视具体改动判断

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

同步 Popover 站点 README 到现网 API,使其与组件当前实现保持一致:

  1. 修复失效的示例源码链接:td_popover_page.dart 已不存在,更正为 t_popover_page.dart
  2. 将全部代码示例由已废弃的 TButtonType/typeTPopoverTheme/themeonTaptext 写法更新为当前 API(TButtonVariant/variantTButtonColorScheme/colorSchemeonPressedchild),并与示例页 t_popover_page.dart 实际源码逐字对齐。
  3. 更新 API 参考表格:TPopoverThemeTPopoverColorSchemeOnTapTPopoverTapCallbackOnLongTapTPopoverLongPressCallback,并补充 closeOnScroll 等参数的说明与类型。
  4. 为各 API 补充 #### 简介,重构演示分组标题,删除冗余/过期代码块。

本 PR 仅为站点文档同步,不涉及组件代码与 API 变更。

📝 更新日志

  • docs(popover): 同步站点 README 示例与 API 到现网 API

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 标题遵循 Conventional Commits 格式:type(<scope>?): 修改描述
    示例:fix(TBottomTabBar): 修复 iconText 模式底部溢出
  • "相关 Issue"处带上修复的 Issue 链接或无关联 Issue
  • 已添加对应的 Spec 链接,或已由 Review 确认本次改动无需 Spec
  • 相关文档已补充或无须补充

- 修复示例文件链接 td_popover_page.dart -> t_popover_page.dart
- 全部代码示例迁移到新 API(TButtonVariant/TButtonColorScheme/child/onPressed/colorScheme)
- 自定义内容 width/height 对齐现网(150/146)
- 去除重复代码块,结构化官方 3 组 Demo(组件类型/样式/位置)
- API 部分与生成链 popover_api.md 对齐
@github-actions

Copy link
Copy Markdown
Contributor

完成

Web Demo

APK 下载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant