From bed3e86d63e8b0557d1acb9aeac4e96c1f79d187 Mon Sep 17 00:00:00 2001 From: Tyh2001 <1469442737@qq.com> Date: Mon, 10 Apr 2023 21:47:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20`FMessage`=20?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E5=BC=B9=E5=87=BA=E4=BD=8D=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.en-US.md | 4 +++ CHANGELOG.md | 4 +++ docs/components/message.md | 33 +++++++++---------- docs/components/notification.md | 10 +++--- docs/docs/changelog.md | 4 +++ .../_hooks/use-message-work/index.ts | 2 ++ .../_hooks/use-message/index.ts | 24 +++++++------- packages/fighting-design/package.json | 4 +-- start/src/App.vue | 2 ++ 9 files changed, 51 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index d05aec9ed1..eef66b494a 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -4,6 +4,10 @@ English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md) +## 0.31.1 (2023-04-10) + +- Fix the issue of incorrect pop-up positions for `FMessage` + ## 0.31.0 (2023-04-10) - Change the default value of `FNotification` component type to null diff --git a/CHANGELOG.md b/CHANGELOG.md index a2428c9e68..2b469afd35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.31.1 (2023-04-10) + +- 修复 `FMessage` 不同弹出位置错误的问题 + ## 0.31.0 (2023-04-10) - `FNotification` 组件 type 默认值改为 null diff --git a/docs/components/message.md b/docs/components/message.md index fdc543a83d..7b6ec55892 100644 --- a/docs/components/message.md +++ b/docs/components/message.md @@ -167,7 +167,9 @@ ::: -## 多个位置 +## 不同位置 + +`placement` 配置项可调整不同弹出位置 ::: demo @@ -183,25 +185,11 @@ ```html - - + + ``` ::: diff --git a/docs/components/notification.md b/docs/components/notification.md index c352052aa3..020dcff0e6 100644 --- a/docs/components/notification.md +++ b/docs/components/notification.md @@ -36,8 +36,6 @@ `notification` 属性可接收 `string` 显示文本,也可接收 `VNode` 自定义消息 -限定最大宽度为`500px` - ::: demo