From 4df740e22e1297abfe8a31d434fb2a546df58daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=81=87=E8=A7=81=E5=90=8C=E5=AD=A6?= <1875694521@qq.com> Date: Tue, 4 Nov 2025 11:53:38 +0800 Subject: [PATCH] fix(textarea): resize is invalid in styles.textarea (#55579) * fix(textarea): resize is invalid in styles.textarea * chore: bump @rc-component/input@1.1.0 * chore: bump @rc-component/input-number@1.4.1 * update snap * chore: bump @rc-component/input-number@1.5.0 * fix(textarea): resize is invalid in styles.textarea * chore: bump @rc-component/input@1.1.0 * chore: bump @rc-component/input-number@1.4.1 * update snap * chore: bump @rc-component/input-number@1.5.0 * chore: bump @rc-component/mentions@1.4.0 --- .../__snapshots__/demo-extend.test.ts.snap | 66 ++++++------- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/components.test.tsx.snap | 14 +-- .../__snapshots__/demo-extend.test.ts.snap | 22 ++--- .../__snapshots__/demo.test.tsx.snap | 18 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 98 +++++++++---------- .../__snapshots__/demo.test.tsx.snap | 98 +++++++++---------- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/demo-extend.test.ts.snap | 7 +- .../__snapshots__/demo.test.tsx.snap | 7 +- components/input/demo/style-class.tsx | 3 +- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 4 +- .../__tests__/__snapshots__/demo.test.ts.snap | 4 +- .../__snapshots__/demo-extend.test.ts.snap | 16 +-- .../__snapshots__/demo.test.tsx.snap | 12 +-- .../__tests__/__snapshots__/demo.test.ts.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 2 +- .../__snapshots__/demo.test.tsx.snap | 2 +- .../__snapshots__/demo-extend.test.ts.snap | 10 +- .../__tests__/__snapshots__/demo.test.ts.snap | 8 +- package.json | 8 +- 26 files changed, 212 insertions(+), 211 deletions(-) diff --git a/components/color-picker/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/color-picker/__tests__/__snapshots__/demo-extend.test.ts.snap index 760ef9086a..e9072ccd1b 100644 --- a/components/color-picker/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/color-picker/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -301,7 +301,7 @@ Array [
scaleStep:
,
,
,
,
,
,
,
,
,
,
,
,
,
TextArea diff --git a/components/input/__tests__/__snapshots__/demo.test.tsx.snap b/components/input/__tests__/__snapshots__/demo.test.tsx.snap index 6c3edda977..3d6abf1f9a 100644 --- a/components/input/__tests__/__snapshots__/demo.test.tsx.snap +++ b/components/input/__tests__/__snapshots__/demo.test.tsx.snap @@ -496,7 +496,7 @@ Array [ ,
TextArea diff --git a/components/input/demo/style-class.tsx b/components/input/demo/style-class.tsx index 2c1275e56f..44e0a9cbc8 100644 --- a/components/input/demo/style-class.tsx +++ b/components/input/demo/style-class.tsx @@ -5,7 +5,6 @@ import { createStyles } from 'antd-style'; const useStyles = createStyles(({ css, cssVar }) => ({ focusEffect: css` - width: 300px; border-width: ${cssVar.lineWidth}; border-radius: ${cssVar.borderRadius}; transition: box-shadow ${cssVar.motionDurationMid}; @@ -42,7 +41,7 @@ const stylesFnTextArea: TextAreaProps['styles'] = (info) => { if (info.props.showCount) { return { root: { borderColor: '#BDE3C3' }, - textarea: { resize: 'none' }, // TODO: textarea style 目前不起作用,需要修复 + textarea: { resize: 'none' }, count: { color: '#BDE3C3' }, } satisfies TextAreaProps['styles']; } diff --git a/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap index e139fc8025..69edb7c339 100644 --- a/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/notification/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -707,7 +707,7 @@ exports[`renders components/notification/demo/stack.tsx extend context correctly class="ant-space-item" >