Mrwang/fix: 修复search组件不支持键盘回车事件和修正删除图标不垂直居中问题 (#282)

* 修复actionSheet在手机上click无效问题

* 修复pullRefresh组件,数据类型不匹配,导致控制台告警日志超大量打印,导致页面渲染慢的问题

* 修复actionSheet组件api.watchVisible空指针问题和去掉tabs空白padding

* 修复search组件不支持键盘回车事件和修正删除图标不垂直居中问题
This commit is contained in:
MrWang2016 2023-06-12 10:58:36 +08:00 committed by GitHub
parent 9fde21fdf1
commit ede750475e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -123,10 +123,12 @@
& &__close-icon {
position: absolute;
top: 0;
right: 0;
padding: 0 8px;
cursor: pointer;
display: inline-flex;
top: 50%;
transform: translateY(-50%);
}
&-primary {

View File

@ -64,7 +64,7 @@ export default defineComponent({
*/
isEnterSearch: {
type: Boolean,
default: false
default: true
},
/**
* primary: gray:

View File

@ -71,7 +71,7 @@ import { iconSearch, iconOperationfaild } from '@opentiny/vue-icon'
import '@opentiny/vue-theme-mobile/search/index.less'
export default defineComponent({
props: [...props, 'transparent', 'searchTypes', 'placeholder', 'buttonText', 'modelValue', 'themeType'],
props: [...props, 'transparent', 'searchTypes', 'placeholder', 'buttonText', 'modelValue', 'themeType', 'isEnterSearch'],
components: {
IconSearch: iconSearch(),
IconOperationfaild: iconOperationfaild()