From 0c54ae67756ae9b0914eee7ffb5f0185166f419e Mon Sep 17 00:00:00 2001
From: Huang <596417202@qq.com>
Date: Tue, 29 Nov 2022 15:51:02 +0800
Subject: [PATCH] =?UTF-8?q?perf-unocss.config=E9=85=8D=E7=BD=AE=E5=89=8D?=
=?UTF-8?q?=E7=BC=80,=E6=96=B9=E4=BE=BF=E5=90=8E=E9=9D=A2=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/AppProvider/inedx.vue | 2 +-
src/pages/demo/index.vue | 2 +-
src/pages/index/index.vue | 4 ++--
src/pagesA/list/test1/index.vue | 6 ++++--
unocss.config.js | 4 ++--
5 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/components/AppProvider/inedx.vue b/src/components/AppProvider/inedx.vue
index 8ae85b7..3137207 100644
--- a/src/components/AppProvider/inedx.vue
+++ b/src/components/AppProvider/inedx.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue
index e8b07c7..360b4e5 100644
--- a/src/pages/demo/index.vue
+++ b/src/pages/demo/index.vue
@@ -12,7 +12,7 @@
页面构建中...
-
+
List1 →
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 289fef8..5af38c1 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -29,10 +29,10 @@
是否是Vue3: {{ isVue3 }}
- 当前平台: {{ platform }}
+ 当前平台: {{ platform }}
Get Started →
- uno css
+ uno css
diff --git a/src/pagesA/list/test1/index.vue b/src/pagesA/list/test1/index.vue
index f42e494..78d9ce9 100644
--- a/src/pagesA/list/test1/index.vue
+++ b/src/pagesA/list/test1/index.vue
@@ -8,7 +8,9 @@
};
- Test1
- Test2 →
+ Test1
+ Test2 →
diff --git a/unocss.config.js b/unocss.config.js
index 7256f73..a462c4d 100644
--- a/unocss.config.js
+++ b/unocss.config.js
@@ -26,7 +26,7 @@ const transformRules = {
',': '-r222-',
};
-const prefix = `un-`;
+const prefix = `_u_`;
export default defineConfig({
presets: [
@@ -47,7 +47,7 @@ export default defineConfig({
shortcuts: [
{
'border-base': 'border border-gray-500_10',
- 'un-center': 'un-flex un-justify-center un-items-center',
+ _u_center: '_u_flex _u_justify-center _u_items-center',
},
],
theme: {},