From 31b5f960c1492cd8f47685d498c03db8c6966143 Mon Sep 17 00:00:00 2001
From: novlan1 <1576271227@qq.com>
Date: Sun, 25 Aug 2024 12:29:59 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20remote=20raw=20maxlength?=
=?UTF-8?q?=20props=20of=20input?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/input/Input.tsx | 1 -
test/snap/__snapshots__/csr.test.jsx.snap | 10 +++-------
test/snap/__snapshots__/ssr.test.jsx.snap | 6 +++---
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/src/input/Input.tsx b/src/input/Input.tsx
index 284c23090..1291f438b 100644
--- a/src/input/Input.tsx
+++ b/src/input/Input.tsx
@@ -233,7 +233,6 @@ const Input = forwardRefWithStatics(
onBlur={handleBlur}
onPaste={handlePaste}
name={name}
- maxLength={maxlength && !allowInputOverMax ? maxlength : null}
/>
);
diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap
index 7431269f6..39c70ba91 100644
--- a/test/snap/__snapshots__/csr.test.jsx.snap
+++ b/test/snap/__snapshots__/csr.test.jsx.snap
@@ -23182,7 +23182,6 @@ exports[`csr snapshot test > csr test src/color-picker/_example/enable-alpha.tsx
>
csr test src/color-picker/_example/panel.tsx 1`] =
>
csr test src/input/_example/max-length-count.tsx 1`
>
csr test src/input/_example/max-length-count.tsx 1`
>
ssr test src/collapse/_example/rightSlot.tsx 1`] =
exports[`ssr snapshot test > ssr test src/color-picker/_example/color-mode.tsx 1`] = `"
默认(单色 + 线性渐变)
rgba(0, 82, 217, 1)
仅单色模式
#0052d9
仅线性渐变模式
linear-gradient(45deg, #4facfe 0%, #00f2fe 100%)
"`;
-exports[`ssr snapshot test > ssr test src/color-picker/_example/enable-alpha.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
+exports[`ssr snapshot test > ssr test src/color-picker/_example/enable-alpha.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
-exports[`ssr snapshot test > ssr test src/color-picker/_example/panel.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
+exports[`ssr snapshot test > ssr test src/color-picker/_example/panel.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
exports[`ssr snapshot test > ssr test src/color-picker/_example/recent-color.tsx 1`] = `"
预设最近使用色
请选择
最近使用颜色
系统预设颜色
完全不显示最近使用色
请选择
系统预设颜色
"`;
@@ -133575,7 +133571,7 @@ exports[`ssr snapshot test > ssr test src/input/_example/format.tsx 1`] = `"
ssr test src/input/_example/group.tsx 1`] = `"
-
"`;
-exports[`ssr snapshot test > ssr test src/input/_example/max-length-count.tsx 1`] = `"
0/10
0/10
0/5
0/5
"`;
+exports[`ssr snapshot test > ssr test src/input/_example/max-length-count.tsx 1`] = `"
0/10
0/10
0/5
0/5
"`;
exports[`ssr snapshot test > ssr test src/input/_example/password.tsx 1`] = `"
"`;
diff --git a/test/snap/__snapshots__/ssr.test.jsx.snap b/test/snap/__snapshots__/ssr.test.jsx.snap
index 5ab5e4bd1..50814362c 100644
--- a/test/snap/__snapshots__/ssr.test.jsx.snap
+++ b/test/snap/__snapshots__/ssr.test.jsx.snap
@@ -232,9 +232,9 @@ exports[`ssr snapshot test > ssr test src/collapse/_example/rightSlot.tsx 1`] =
exports[`ssr snapshot test > ssr test src/color-picker/_example/color-mode.tsx 1`] = `"
默认(单色 + 线性渐变)
rgba(0, 82, 217, 1)
仅单色模式
#0052d9
仅线性渐变模式
linear-gradient(45deg, #4facfe 0%, #00f2fe 100%)
"`;
-exports[`ssr snapshot test > ssr test src/color-picker/_example/enable-alpha.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
+exports[`ssr snapshot test > ssr test src/color-picker/_example/enable-alpha.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
-exports[`ssr snapshot test > ssr test src/color-picker/_example/panel.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
+exports[`ssr snapshot test > ssr test src/color-picker/_example/panel.tsx 1`] = `"
请选择
最近使用颜色
系统预设颜色
"`;
exports[`ssr snapshot test > ssr test src/color-picker/_example/recent-color.tsx 1`] = `"
预设最近使用色
请选择
最近使用颜色
系统预设颜色
完全不显示最近使用色
请选择
系统预设颜色
"`;
@@ -524,7 +524,7 @@ exports[`ssr snapshot test > ssr test src/input/_example/format.tsx 1`] = `"
ssr test src/input/_example/group.tsx 1`] = `"
-
"`;
-exports[`ssr snapshot test > ssr test src/input/_example/max-length-count.tsx 1`] = `"
0/10
0/10
0/5
0/5
"`;
+exports[`ssr snapshot test > ssr test src/input/_example/max-length-count.tsx 1`] = `"
0/10
0/10
0/5
0/5
"`;
exports[`ssr snapshot test > ssr test src/input/_example/password.tsx 1`] = `"