diff --git a/compiled/alipay/demo/pages/Input/index.axml b/compiled/alipay/demo/pages/Input/index.axml
index eb417d82b..a40142d37 100644
--- a/compiled/alipay/demo/pages/Input/index.axml
+++ b/compiled/alipay/demo/pages/Input/index.axml
@@ -54,7 +54,8 @@
onChange="handleMoney"
type="digit"
className="input money"
- focusClassName="border">
+ focusClassName="border"
+ allowClear>
¥
RMB
diff --git a/compiled/alipay/src/Input/index.less b/compiled/alipay/src/Input/index.less
index 92ddcc455..ada6153f9 100644
--- a/compiled/alipay/src/Input/index.less
+++ b/compiled/alipay/src/Input/index.less
@@ -54,10 +54,10 @@
}
&-clear-show {
- display: flex;
+ opacity: 1;
}
&-clear-hidden {
- display: none;
+ opacity: 0;
pointer-events: none;
}
&-placeholder {
diff --git a/compiled/wechat/demo/pages/Input/index.wxml b/compiled/wechat/demo/pages/Input/index.wxml
index 37eeb473a..05a7b7b54 100644
--- a/compiled/wechat/demo/pages/Input/index.wxml
+++ b/compiled/wechat/demo/pages/Input/index.wxml
@@ -54,7 +54,8 @@
bind:change="handleMoney"
type="digit"
className="input money"
- focusClassName="border">
+ focusClassName="border"
+ allowClear>
¥
RMB
diff --git a/compiled/wechat/src/GuideTour/index.js b/compiled/wechat/src/GuideTour/index.js
index 2bc790254..191786d30 100644
--- a/compiled/wechat/src/GuideTour/index.js
+++ b/compiled/wechat/src/GuideTour/index.js
@@ -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 () {
diff --git a/compiled/wechat/src/Input/index.wxss b/compiled/wechat/src/Input/index.wxss
index 9a1bdde17..e3471331b 100644
--- a/compiled/wechat/src/Input/index.wxss
+++ b/compiled/wechat/src/Input/index.wxss
@@ -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 {
diff --git a/demo/pages/Input/index.axml.tsx b/demo/pages/Input/index.axml.tsx
index 5ac466483..1f1a0fa48 100644
--- a/demo/pages/Input/index.axml.tsx
+++ b/demo/pages/Input/index.axml.tsx
@@ -52,6 +52,7 @@ export default (_, { value, money }: InternalData) => (
type="digit"
className="input money"
focusClassName="border"
+ allowClear
>
¥
RMB
diff --git a/src/Input/index.less b/src/Input/index.less
index 92ddcc455..ada6153f9 100644
--- a/src/Input/index.less
+++ b/src/Input/index.less
@@ -54,10 +54,10 @@
}
&-clear-show {
- display: flex;
+ opacity: 1;
}
&-clear-hidden {
- display: none;
+ opacity: 0;
pointer-events: none;
}
&-placeholder {