From a00e3ca55780438d68299b0f2304db656e666a54 Mon Sep 17 00:00:00 2001 From: XiaoDaiGua-Ray <443547225@qq.com> Date: Sun, 28 Jan 2024 15:40:04 +0800 Subject: [PATCH] version: 4.6.2-beta1.2 --- CHANGELOG.md | 11 ++++++++ package.json | 2 +- src/components/RQRCode/src/index.scss | 11 ++++++-- src/components/RQRCode/src/index.tsx | 35 +++++++++++++++----------- src/hooks/template/index.ts | 1 + src/hooks/template/useAppNavigation.ts | 6 ++--- src/hooks/template/useBadge.ts | 22 ++++++++++++++++ src/hooks/template/useSiderBar.ts | 4 +++ src/router/type.ts | 2 +- src/styles/naive.scss | 11 ++++++++ src/views/dashboard/index.tsx | 8 +++--- 11 files changed, 88 insertions(+), 25 deletions(-) create mode 100644 src/hooks/template/useBadge.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b182dcc..d3f82be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGE LOG +## 4.6.2-beta1.2 + +## Feats + +- 优化 `AppMenu Extra` 标记样式,现在不会因为菜单标题过长将标记挤出去 +- 优化 `RQRCode` 组件样式,在 `error` 状态下会模糊显示二维码 + +## Fixes + +- 修复 `close` 方法会关闭最后一个标签的问题,现在如果当前的 `getMenuTagOptions` 长度为 `1`,则不会关闭标签页 + ## 4.6.2-beta1.1 ## Feats diff --git a/package.json b/package.json index 1c1f0724..a58c50fc 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ray-template", "private": false, - "version": "4.6.2-beta1.1", + "version": "4.6.2-beta1.2", "type": "module", "engines": { "node": "^18.0.0 || >=20.0.0", diff --git a/src/components/RQRCode/src/index.scss b/src/components/RQRCode/src/index.scss index 4c97667a..d2faefad 100644 --- a/src/components/RQRCode/src/index.scss +++ b/src/components/RQRCode/src/index.scss @@ -15,6 +15,7 @@ @include flexCenter; flex-direction: column; gap: 18px 0; + border-radius: 3px; & .ray-qrcode__error-content { text-align: center; @@ -23,8 +24,14 @@ color: #ffffff; } } +} - & .n-spin-content--spinning img { - filter: blur(6px); +.ray-qrcode { + &.ray-qrcode--loading img { + filter: blur(4px); + } + + &.ray-qrcode--error img { + filter: blur(4px); } } diff --git a/src/components/RQRCode/src/index.tsx b/src/components/RQRCode/src/index.tsx index fce8c31e..2adfd018 100644 --- a/src/components/RQRCode/src/index.tsx +++ b/src/components/RQRCode/src/index.tsx @@ -154,32 +154,39 @@ export default defineComponent({ } }, render() { + const { + qrcodeURL, + status, + loadingDescription, + errorDescription, + $slots, + errorActionDescription, + } = this + const { errorActionClick } = this + return ( -