forked from opentiny/tiny-vue
Mrwang/fix: 修复search组件不支持键盘回车事件和修正删除图标不垂直居中问题 (#282)
* 修复actionSheet在手机上click无效问题 * 修复pullRefresh组件,数据类型不匹配,导致控制台告警日志超大量打印,导致页面渲染慢的问题 * 修复actionSheet组件api.watchVisible空指针问题和去掉tabs空白padding * 修复search组件不支持键盘回车事件和修正删除图标不垂直居中问题
This commit is contained in:
parent
9fde21fdf1
commit
ede750475e
|
@ -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 {
|
||||
|
|
|
@ -64,7 +64,7 @@ export default defineComponent({
|
|||
*/
|
||||
isEnterSearch: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* 配置主题色,primary:蓝 gray:灰
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue