diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap
index 69d649665b..b07a06416a 100644
--- a/components/input/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/input/__tests__/__snapshots__/demo.test.js.snap
@@ -890,6 +890,42 @@ exports[`renders ./components/input/demo/align.md correctly 1`] = `
+
+
+
+ Y
+
+
+
+
+
+
+ Y
+
+
`;
diff --git a/components/input/demo/align.md b/components/input/demo/align.md
index cda4c83afe..e2ad4e24cc 100644
--- a/components/input/demo/align.md
+++ b/components/input/demo/align.md
@@ -28,6 +28,10 @@ const RadioGroup = Radio.Group;
const Option = Select.Option;
const { MonthPicker, RangePicker } = DatePicker;
+const narrowStyle = {
+ width: 50,
+};
+
const options = [
{
value: 'zhejiang',
@@ -94,6 +98,9 @@ ReactDOM.render(
+
+
+
,
mountNode,
);
diff --git a/components/input/style/affix.less b/components/input/style/affix.less
index 35511d4d9a..3e1de60668 100644
--- a/components/input/style/affix.less
+++ b/components/input/style/affix.less
@@ -17,6 +17,12 @@
box-shadow: none;
}
}
+
+ &::before {
+ width: 0;
+ visibility: hidden;
+ content: '\a0';
+ }
}
&-prefix,