From 974f05719e1c40bbf916f6eb5cc019450a680aaa Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sat, 22 Mar 2025 18:29:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20StyleLayer=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=B1=95=E7=A4=BA=20@layer=20?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7=E8=A7=84=E5=88=99=E5=8F=8A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=A4=BA=E4=BE=8B=EF=BC=9B=E6=96=B0=E5=A2=9E=20style.?= =?UTF-8?q?page.vue=20=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/StyleLayer.vue | 81 +++++++++++++++++++++++++++++++++++ src/pages/Tool/fonts.page.vue | 10 +---- src/pages/Tool/style.page.vue | 16 +++++++ typed-router.d.ts | 1 + 4 files changed, 100 insertions(+), 8 deletions(-) create mode 100644 src/components/StyleLayer.vue create mode 100644 src/pages/Tool/style.page.vue diff --git a/src/components/StyleLayer.vue b/src/components/StyleLayer.vue new file mode 100644 index 0000000..cdbb34a --- /dev/null +++ b/src/components/StyleLayer.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/pages/Tool/fonts.page.vue b/src/pages/Tool/fonts.page.vue index 1444a3f..1748774 100644 --- a/src/pages/Tool/fonts.page.vue +++ b/src/pages/Tool/fonts.page.vue @@ -13,16 +13,14 @@ >
https://unocss-preset-chinese-playground.vercel.app/

-
+

🔌 Vite Plugin Webfont DL

Fonts are downloaded directly from Google Fonts

-
{{ JSON.stringify({ $style }, null, 2) }}
- diff --git a/src/pages/Tool/style.page.vue b/src/pages/Tool/style.page.vue new file mode 100644 index 0000000..02a77c3 --- /dev/null +++ b/src/pages/Tool/style.page.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/typed-router.d.ts b/typed-router.d.ts index f719194..40f6ff7 100644 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -30,6 +30,7 @@ declare module 'vue-router/auto-routes' { 'ToolFonts': RouteRecordInfo<'ToolFonts', '/Tool/fonts', Record, Record>, 'ToolI18n': RouteRecordInfo<'ToolI18n', '/Tool/I18n', Record, Record>, 'ToolIcons': RouteRecordInfo<'ToolIcons', '/Tool/Icons', Record, Record>, + 'ToolStyle': RouteRecordInfo<'ToolStyle', '/Tool/style', Record, Record>, 'ToolTsEnumUtil': RouteRecordInfo<'ToolTsEnumUtil', '/Tool/ts-enum-util', Record, Record>, 'UIComponentsAntdV': RouteRecordInfo<'UIComponentsAntdV', '/UI-components/AntdV', Record, Record>, 'UIComponentsInfiniteLoading': RouteRecordInfo<'UIComponentsInfiniteLoading', '/UI-components/infinite-loading', Record, Record>,