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
feat: add extension point for extend data list operation items #4452
feat: add extension point for extend data list operation items #4452
Conversation
Signed-off-by: Ryan Wang <i@ryanc.cc>
Codecov Report
@@ Coverage Diff @@
## main #4452 +/- ##
=========================================
Coverage 60.84% 60.84%
Complexity 2525 2525
=========================================
Files 372 372
Lines 13015 13015
Branches 935 935
=========================================
Hits 7919 7919
Misses 4645 4645
Partials 451 451 |
…n-items-extension-points
Signed-off-by: Ryan Wang <i@ryanc.cc>
Signed-off-by: Ryan Wang <i@ryanc.cc>
/retitle feat: add extension point for extend data list operation items Ready for code review |
Signed-off-by: Ryan Wang <i@ryanc.cc>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
测试正常
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#### What type of PR is this? /area console /kind improvement /milestone 2.9.x #### What this PR does / why we need it: 禁用 Dropdown 组件的自动销毁 dom 节点功能,以适配 #4452 中拓展操作选项的场景。 #### Does this PR introduce a user-facing change? ```release-note None ```
#### What type of PR is this? /area console /kind feature /milestone 2.9.x #### What this PR does / why we need it: Halo 在 #4452 中为数据列表的操作选项添加了拓展点,用于通过插件扩展操作选项。但忽略了操作选项的组件需要自定义并且自行处理点击事件,这个时候组件应该比较难拿到数据列表项的数据。 此 PR 对此进行优化,在扩展点方法传入了需要的数据。 #### Does this PR introduce a user-facing change? ```release-note None ```
What type of PR is this?
/area console
/kind feature
/milestone 2.9.x
What this PR does / why we need it:
添加扩展数据列表中操作按钮列表的基础能力,并为文章和插件管理列表的操作按钮列表添加扩展点以测试此扩展能力。
todo:
Which issue(s) this PR fixes:
Ref #4177
Special notes for your reviewer:
可以使用以下插件(仅用于测试)进行测试:
安装之后可以在文章列表的操作按钮列表中新增一个
导出为 Markdown 文档
的按钮,点击之后会导出一个 Markdown 文档。Does this PR introduce a user-facing change?