From ddcba22c3e964519c711f7019e356275f13d6a9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com>
Date: Sun, 12 May 2024 15:53:20 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20wot=20=E4=B8=BB=E9=A2=98=E8=89=B2?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
manifest.config.ts | 1 +
src/layouts/default.vue | 6 ++++--
src/layouts/demo.vue | 6 ++++--
src/manifest.json | 3 ++-
src/style/index.scss | 6 ++++++
5 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/manifest.config.ts b/manifest.config.ts
index 4cc4e1f..6f8667a 100644
--- a/manifest.config.ts
+++ b/manifest.config.ts
@@ -89,6 +89,7 @@ export default defineManifestConfig({
},
'mp-alipay': {
usingComponents: true,
+ styleIsolation: 'shared',
},
'mp-baidu': {
usingComponents: true,
diff --git a/src/layouts/default.vue b/src/layouts/default.vue
index 5a296ff..80ed2dc 100644
--- a/src/layouts/default.vue
+++ b/src/layouts/default.vue
@@ -1,5 +1,7 @@
-
+
-
+
+
+
diff --git a/src/layouts/demo.vue b/src/layouts/demo.vue
index 44407ec..80ed2dc 100644
--- a/src/layouts/demo.vue
+++ b/src/layouts/demo.vue
@@ -1,5 +1,7 @@
-
+
-
+
+
+
diff --git a/src/manifest.json b/src/manifest.json
index f6ad007..0999421 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -59,7 +59,8 @@
"usingComponents": true
},
"mp-alipay": {
- "usingComponents": true
+ "usingComponents": true,
+ "styleIsolation": "shared"
},
"mp-baidu": {
"usingComponents": true
diff --git a/src/style/index.scss b/src/style/index.scss
index 3456387..466319f 100644
--- a/src/style/index.scss
+++ b/src/style/index.scss
@@ -5,3 +5,9 @@
padding-top: 4px;
color: red;
}
+
+:root,
+page {
+ // 修改按钮背景色
+ --wot-button-primary-bg-color: green;
+}