From ff3ba473c1549004c67ac44cae45832493b9c87d Mon Sep 17 00:00:00 2001 From: "ext.yangyan135" Date: Wed, 24 Dec 2025 23:59:14 +0800 Subject: [PATCH 1/5] =?UTF-8?q?fix:=20=E6=9B=B4=E6=94=B9=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/spec/toast/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/spec/toast/base.ts b/src/types/spec/toast/base.ts index bf0a643784..d5c6de9f54 100644 --- a/src/types/spec/toast/base.ts +++ b/src/types/spec/toast/base.ts @@ -8,7 +8,7 @@ export type ToastSize = Extract | 'base' export type BaseToast = OVERLAY_PROPS & { id: string position: VAlign - title: string + title: ReactNode size: ToastSize icon: ToastIcon content: ReactNode From 748f3e39e903ef93502a52e5a09d540f54322e65 Mon Sep 17 00:00:00 2001 From: "ext.yangyan135" Date: Thu, 25 Dec 2025 14:56:30 +0800 Subject: [PATCH 2/5] =?UTF-8?q?fix:=20label=E6=94=AF=E6=8C=81=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=8D=A2=E8=A1=8C-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/formitem/formitem.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/formitem/formitem.scss b/src/packages/formitem/formitem.scss index 95cc3872fd..6c9b4c87c1 100644 --- a/src/packages/formitem/formitem.scss +++ b/src/packages/formitem/formitem.scss @@ -133,13 +133,13 @@ .nut-form-item-label-right { justify-content: flex-end; padding-right: 24px; - white-space: nowrap; + word-wrap: break-word; } .nut-form-item-label-left { position: relative; padding-left: 12px; - white-space: nowrap; + word-wrap: break-word; } .nut-form-item-top { From d005f1bcb97dd244126f03e049afa60edb687384 Mon Sep 17 00:00:00 2001 From: "ext.yangyan135" Date: Thu, 25 Dec 2025 17:34:32 +0800 Subject: [PATCH 3/5] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/toast/toast.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/packages/toast/toast.tsx b/src/packages/toast/toast.tsx index 4942a6ab8c..0963c0b6a2 100644 --- a/src/packages/toast/toast.tsx +++ b/src/packages/toast/toast.tsx @@ -62,7 +62,10 @@ function show(option: ToastNativeProps | string) { errorMsg(option) return notice({ content: option }) } - errorMsg(option.content) + const checkParam = ['title', 'content'] + Object.entries(option) + .filter(([k, v]) => checkParam.includes(k)) + .forEach(([k, v]) => errorMsg(v)) return notice({ ...option, }) From ec4c2253a3c51be0eea3e3e1f758d66b20571c00 Mon Sep 17 00:00:00 2001 From: "ext.yangyan135" Date: Thu, 25 Dec 2025 17:58:15 +0800 Subject: [PATCH 4/5] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=BB=A5=E5=8F=8D=E6=98=A0=20title=20=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/toast/doc.en-US.md | 2 +- src/packages/toast/doc.md | 2 +- src/packages/toast/doc.taro.md | 2 +- src/packages/toast/doc.zh-TW.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/toast/doc.en-US.md b/src/packages/toast/doc.en-US.md index 7da1b6d3fb..648d670f9b 100644 --- a/src/packages/toast/doc.en-US.md +++ b/src/packages/toast/doc.en-US.md @@ -61,7 +61,7 @@ import { Toast } from '@nutui/nutui-react' | content | Toast content | `React.ReactNode` | `-` | | duration | Toast duration(s), won't disappear if value is 0 | `number` | `2` | | position | Vertical position of toast | `top` \| `center` \| `bottom` | `center` | -| title | title | `string` | `-` | +| title | title | `React.ReactNode` | `-` | | icon | Toast icon | `success` \| `fail` \| `loading` \| `warn` \| `React.ReactNode` | `-` | | size | Text Size | `small` \| `base` \| `large` | `base` | | contentClassName | Toast content class name | `string` | `-` | diff --git a/src/packages/toast/doc.md b/src/packages/toast/doc.md index 3d6d32771e..9f308bc681 100644 --- a/src/packages/toast/doc.md +++ b/src/packages/toast/doc.md @@ -58,7 +58,7 @@ import { Toast } from '@nutui/nutui-react' | --- | --- | --- | --- | | content | 消息文本内容 | `React.ReactNode` | `-` | | duration | 展示时长(秒),值为 0 时,toast 不会自动消失 | `number` | `2` | -| title | 标题 | `string` | `-` | +| title | 标题 | `React.ReactNode` | `-` | | position | toast展示位置 | `top` \| `center` \| `bottom` | `center` | | contentClassName | 自定义内容区类名 | `string` | `-` | | contentStyle | 自定义内容区样式 | `React.CSSProperties` | `-` | diff --git a/src/packages/toast/doc.taro.md b/src/packages/toast/doc.taro.md index 9d735a4019..f9bcc32895 100644 --- a/src/packages/toast/doc.taro.md +++ b/src/packages/toast/doc.taro.md @@ -60,7 +60,7 @@ import { Toast } from '@nutui/nutui-react-taro' | --- | --- | --- | --- | | content | 消息文本内容 | `string` \| `React.ReactNode` | `-` | | duration | 展示时长(秒),值为 0 时,toast 不会自动消失(loading类型默认为0) | `number` | `2` | -| title | 标题 | `string` | `-` | +| title | 标题 | `React.ReactNode` | `-` | | position | toast展示位置 | `top` \| `center` \| `bottom` | `center` | | contentClassName | 自定义内容区类名 | `string` | `-` | | contentStyle | 自定义内容区样式 | `React.CSSProperties` | `-` | diff --git a/src/packages/toast/doc.zh-TW.md b/src/packages/toast/doc.zh-TW.md index 783a2b99c2..ff66f6d449 100644 --- a/src/packages/toast/doc.zh-TW.md +++ b/src/packages/toast/doc.zh-TW.md @@ -59,7 +59,7 @@ import { Toast } from '@nutui/nutui-react' | content | Toast文本內容 | `React.ReactNode` | `-` | | duration | 展示時長(秒)
值為 0 時,toast 不會自動消失 | `number` | `2` | | position | toast展示位置 | `top` \| `center` \| `bottom` | `center` | -| title | 標題 | `string` | `-` | +| title | 標題 | `React.ReactNode` | `-` | | icon | 自定義圖標 | `success` \| `fail` \| `loading` \| `warn` \| `React.ReactNode` | `-` | | size | 文案尺寸,三選一 | `small` \| `base` \| `large` | `base` | | contentClassName | 自定義內容區類名 | `string` | `-` | From a4d2d0555d630dbf6042a40e9766a49315508214 Mon Sep 17 00:00:00 2001 From: "ext.yangyan135" Date: Thu, 25 Dec 2025 20:55:57 +0800 Subject: [PATCH 5/5] =?UTF-8?q?fix:=20=E5=A4=8D=E5=8E=9F-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/formitem/formitem.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/formitem/formitem.scss b/src/packages/formitem/formitem.scss index 6c9b4c87c1..95cc3872fd 100644 --- a/src/packages/formitem/formitem.scss +++ b/src/packages/formitem/formitem.scss @@ -133,13 +133,13 @@ .nut-form-item-label-right { justify-content: flex-end; padding-right: 24px; - word-wrap: break-word; + white-space: nowrap; } .nut-form-item-label-left { position: relative; padding-left: 12px; - word-wrap: break-word; + white-space: nowrap; } .nut-form-item-top {