From da6c2628d5cf685a73e150759bb07a35c2aa7908 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 6 Jun 2023 15:00:55 +0800 Subject: [PATCH 1/3] =?UTF-8?q?perf:=20`notice`=E6=B6=88=E6=81=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E7=BB=84=E4=BB=B6=E7=A9=BA=E6=95=B0=E6=8D=AE=E6=97=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0`el-empty`=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/notice/index.vue | 40 ++++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/src/layout/components/notice/index.vue b/src/layout/components/notice/index.vue index 7d3ee76a69..3a3772099c 100644 --- a/src/layout/components/notice/index.vue +++ b/src/layout/components/notice/index.vue @@ -22,19 +22,31 @@ notices.value.map(v => (noticesNum.value += v.list.length)); @@ -57,8 +69,6 @@ notices.value.map(v => (noticesNum.value += v.list.length)); } .dropdown-tabs { - width: 330px; - .noticeList-container { padding: 15px 24px 0; } From 04611d8b247fc6dd228613cf26888e5e612229db Mon Sep 17 00:00:00 2001 From: Snlan <36768323+bigsnowballhehe@users.noreply.github.com> Date: Tue, 6 Jun 2023 19:09:20 +0800 Subject: [PATCH 2/3] types: update --- src/views/login/utils/rule.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/login/utils/rule.ts b/src/views/login/utils/rule.ts index 070534a9e0..274ab8a70c 100644 --- a/src/views/login/utils/rule.ts +++ b/src/views/login/utils/rule.ts @@ -12,7 +12,7 @@ export const REGEXP_PWD = /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)(?!^.*[\u4E00-\u9FA5].*$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){8,18}$/; /** 登录校验 */ -const loginRules = reactive({ +const loginRules = reactive({ password: [ { validator: (rule, value, callback) => { @@ -44,7 +44,7 @@ const loginRules = reactive({ }); /** 手机登录校验 */ -const phoneRules = reactive({ +const phoneRules = reactive({ phone: [ { validator: (rule, value, callback) => { @@ -76,7 +76,7 @@ const phoneRules = reactive({ }); /** 忘记密码校验 */ -const updateRules = reactive({ +const updateRules = reactive({ phone: [ { validator: (rule, value, callback) => { From f613a79def29e2f5459bd2edbc9018b009cdaed8 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 7 Jun 2023 11:00:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD=E7=9A=84=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E9=81=AE=E7=BD=A9=E6=9C=AA=E8=A6=86=E7=9B=96=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/search/components/SearchModal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layout/components/search/components/SearchModal.vue b/src/layout/components/search/components/SearchModal.vue index f37838181a..1af85e6ebd 100644 --- a/src/layout/components/search/components/SearchModal.vue +++ b/src/layout/components/search/components/SearchModal.vue @@ -145,6 +145,7 @@ onKeyStroke("ArrowDown", handleDown); :style="{ borderRadius: '6px' }" + append-to-body @opened="inputRef.focus()" @closed="inputRef.blur()" >