Skip to content

[新功能需求] search组件增加一个click事件 #801

Closed

Description

@zhanwa

这个功能解决了什么问题?

1.组件没有click事件,当disabled时,无法点击输入框跳转页面,只能在外层加一层view,是否可以增加一个点击事件,该事件最好和suffix插槽区分开,只点击输入框区域生效

你期望的 API 是什么样子的?

<wd-search disabled @click="customClick">

Activity

  1. xx0508 commented on Dec 29, 2024

    @xx0508

    我是这样用的

     <view @click="navigateToSearch">
        <wd-search hide-cancel disabled />
      </view>
  2. nadirvishun commented on Dec 30, 2024

    @nadirvishun

    同样的<wd-row>、<wd-col>、<wd-card>等各个组件都缺少click事件, 希望能一并都加上,不然都要再加一层,很麻烦。

  3. added a commit that references this issue on Dec 29, 2025
    e7c2d93
  4. github-actions commented on Jan 28, 2026

    @github-actions
    Contributor

    此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

  5. locked and limited conversation to collaborators on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions