halo-dev / plugin-search-widget

Halo 搜索组件的插件
https://halo.run/store/apps/app-DlacW
GNU General Public License v3.0
12 stars 10 forks source link

feat: add support for passing options to the search component #43

Closed ruibaby closed 3 months ago

ruibaby commented 3 months ago

支持在调用搜索弹窗的方法中传入查询参数,示例:

SearchWidget.open({
    includeCategoryNames:['333333']
})

此举可以方便用户或者开发者在其他地方调用搜索功能时,能够自定义查询范围等参数。

/kind feature

支持在调用搜索弹窗的方法中传入查询参数。
f2c-ci-robot[bot] commented 3 months ago

[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: - ~~[OWNERS](https://github.com/halo-dev/plugin-search-widget/blob/main/OWNERS)~~ [JohnNiang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment