From 86d0e5622ddcc9aab601542b8295493fe3bfb1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Sun, 15 Dec 2024 18:45:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=20PrimeVue=20?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8F=92=E4=BB=B6=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=92=8C=E9=80=9A=E7=9F=A5=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E4=BD=BF=E7=94=A8=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=92=8C=E7=BB=84=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/reset-primevue.css | 8 +++ src/components/primevue/dialog-content.vue | 2 +- src/components/primevue/primevue.vue | 62 ++++++++++++++++------ src/main.ts | 61 +++++---------------- src/plugins/eruda.ts | 12 +++++ src/{utils => plugins}/primevue.ts | 35 ++++++++++-- src/plugins/router.ts | 28 ++++++++++ src/plugins/vue-i18n.ts | 19 +++++++ src/router/index.ts | 28 ---------- 9 files changed, 158 insertions(+), 97 deletions(-) create mode 100644 src/plugins/eruda.ts rename src/{utils => plugins}/primevue.ts (78%) create mode 100644 src/plugins/router.ts create mode 100644 src/plugins/vue-i18n.ts delete mode 100644 src/router/index.ts diff --git a/src/assets/reset-primevue.css b/src/assets/reset-primevue.css index 1aec4b2..c46e388 100644 --- a/src/assets/reset-primevue.css +++ b/src/assets/reset-primevue.css @@ -1,6 +1,14 @@ +.p-confirmdialog, .p-toast { max-width: calc(100% - 50px); } .p-toast .p-toast-message-text { margin-top: -0.2rem; } + +.p-floatlabel:has(.p-fileupload) label { + top: var(--p-floatlabel-over-active-top); + transform: translateY(0); + font-size: var(--p-floatlabel-active-font-size); + font-weight: var(--p-floatlabel-label-active-font-weight); +} diff --git a/src/components/primevue/dialog-content.vue b/src/components/primevue/dialog-content.vue index 092e7d0..4edadc1 100644 --- a/src/components/primevue/dialog-content.vue +++ b/src/components/primevue/dialog-content.vue @@ -1,5 +1,5 @@ diff --git a/src/components/primevue/primevue.vue b/src/components/primevue/primevue.vue index dec3665..e85504d 100644 --- a/src/components/primevue/primevue.vue +++ b/src/components/primevue/primevue.vue @@ -1,7 +1,7 @@