uni-helper / uni-typed

为 uni-app、uni-cloud 和 uni-ui 组件提供 TypeScript 类型支持
MIT License
17 stars 2 forks source link

uni-search-bar的onInput事件参数类型应该是string | number #18

Closed qzsiniong closed 1 week ago

qzsiniong commented 1 week ago

https://github.com/uni-helper/uni-typed/blob/d743dd0e087784ac8a87aa94e5a7aeff47a322b3/packages/uni-ui-types/src/uni-search-bar.ts#L4

https://github.com/uni-helper/uni-typed/blob/d743dd0e087784ac8a87aa94e5a7aeff47a322b3/packages/uni-ui-types/src/uni-search-bar.ts#L37

37行,uni-search-bar的onInput事件参数类型应该是string | number

// type _UniSearchBarOnInputEvent = _UniSearchBarBaseEvent; 
   type _UniSearchBarOnInputEvent = _UniSearchBarValue; 

https://uniapp.dcloud.net.cn/component/uniui/uni-search-bar.html#searchbar-events image

ModyQyW commented 1 week ago

谢谢你指出这个问题,我已经发布了 v1.0.0-beta.4,请尝试一下。🙏

如果这个项目帮到了你,请考虑 star 和赞助。万分感谢!🙏