IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
541 stars 141 forks source link

fix(pro:search): component still interactable when disabled #1984

Closed sallerli1 closed 1 month ago

sallerli1 commented 1 month ago

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

当 proSeaarch 被禁用的时候,组件依然可以操作,选择筛选条件

What is the new behavior?

修复以上问题

Other information

  1. 禁用的时候,阻止mousedown事件触发
  2. 禁用的时候,不设置任何激活的segment,全部设置为undefined
idux-bot[bot] commented 1 month ago

This preview will be available after the AzureCI is passed.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.87%. Comparing base (76feba4) to head (80e8293).

Files Patch % Lines
packages/pro/search/src/ProSearch.tsx 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1984 +/- ## ========================================= Coverage 90.87% 90.87% ========================================= Files 358 358 Lines 35826 35826 Branches 3901 2872 -1029 ========================================= Hits 32558 32558 Misses 3268 3268 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.