Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 输入框允许清除的情况下,自动失焦问题 #1161

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiled/alipay/demo/pages/Input/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
onChange="handleMoney"
type="digit"
className="input money"
focusClassName="border">
focusClassName="border"
allowClear>
<view slot="prefix">¥</view>
<view slot="suffix">RMB</view>
</ant-input>
Expand Down
4 changes: 2 additions & 2 deletions compiled/alipay/src/Input/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
}

&-clear-show {
display: flex;
opacity: 1;
}
&-clear-hidden {
display: none;
opacity: 0;
pointer-events: none;
}
&-placeholder {
Expand Down
3 changes: 2 additions & 1 deletion compiled/wechat/demo/pages/Input/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
bind:change="handleMoney"
type="digit"
className="input money"
focusClassName="border">
focusClassName="border"
allowClear>
<view slot="prefix">¥</view>
<view slot="suffix">RMB</view>
</ant-input>
Expand Down
1 change: 0 additions & 1 deletion compiled/wechat/src/GuideTour/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
import { Component, triggerEventValues, triggerEventOnly, } from '../_util/simply';
import { GuideTourDefaultProps } from './props';
import mixinValue from '../mixins/value';
import '../_util/assert-component2';
Component(GuideTourDefaultProps, {
onNext: function () {
return __awaiter(this, void 0, void 0, function () {
Expand Down
4 changes: 2 additions & 2 deletions compiled/wechat/src/Input/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
font-size: 17px;
}
.ant-input-clear-show {
display: flex;
opacity: 1;
}
.ant-input-clear-hidden {
display: none;
opacity: 0;
pointer-events: none;
}
.ant-input-placeholder {
Expand Down
1 change: 1 addition & 0 deletions demo/pages/Input/index.axml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default (_, { value, money }: InternalData) => (
type="digit"
className="input money"
focusClassName="border"
allowClear
>
<View slot="prefix">¥</View>
<View slot="suffix">RMB</View>
Expand Down
4 changes: 2 additions & 2 deletions src/Input/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
}

&-clear-show {
display: flex;
opacity: 1;
}
&-clear-hidden {
display: none;
opacity: 0;
pointer-events: none;
}
&-placeholder {
Expand Down
Loading