+ return `
- {{ t('home.version') }}:v0.4.4
- {{ t('home.changelog') }}
+ {{ t('home.version') }}:0.4.4
{{ t('home.download') }}:5463
@@ -121,18 +114,27 @@ export default {
}
diff --git a/src/component/checkbox/index.vue b/src/component/checkbox/index.vue
index 2b114f0b..40472e9e 100644
--- a/src/component/checkbox/index.vue
+++ b/src/component/checkbox/index.vue
@@ -105,7 +105,7 @@ const handleClick = function () {
:lay-skin="skin"
>
-
+
diff --git a/src/provider/index.vue b/src/provider/index.vue
index 9b57ae5e..6999c4c3 100644
--- a/src/provider/index.vue
+++ b/src/provider/index.vue
@@ -40,20 +40,26 @@ const changeLocales = (lang: string, locales: any, merge: boolean) => {
const changeTheme = (theme: string) => {
if (theme === "dark") {
- enableDarkMode({
- mode: 1,
- brightness: 100,
- contrast: 90,
- sepia: 0,
- // darkSchemeTextColor: 'rgba(255, 255, 255, 0.9)',
- // darkSchemeBackgroundColor: '#22272E'
- }, {
+ enableDarkMode(
+ {
+ mode: 1,
+ brightness: 100,
+ contrast: 90,
+ sepia: 0,
+ // darkSchemeTextColor: 'rgba(255, 255, 255, 0.9)',
+ // darkSchemeBackgroundColor: '#22272E'
+ },
+ {
invert: [],
css: ``,
- ignoreInlineStyle: ['.layui-colorpicker-trigger-span','div.layui-color-picker *'],
+ ignoreInlineStyle: [
+ ".layui-colorpicker-trigger-span",
+ "div.layui-color-picker *",
+ ],
ignoreImageAnalysis: [],
disableStyleSheetsProxy: false,
- });
+ }
+ );
} else {
disableDarkMode();
}
From f2145945cbb146a31ed4815b91ce3acdf5dc23dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Wed, 30 Mar 2022 18:38:47 +0800
Subject: [PATCH 09/13] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=20dark=20?=
=?UTF-8?q?=E4=B8=BB=E9=A2=98=E9=80=82=E9=85=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/src/view/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/example/src/view/index.vue b/example/src/view/index.vue
index 04e89c51..616a5c28 100644
--- a/example/src/view/index.vue
+++ b/example/src/view/index.vue
@@ -203,7 +203,7 @@ body {
color: #fff;
color: #213547;
font-size: 52px;
- opacity: 0.9;
+ opacity: 0.82;
}
.web-font-desc {
font-size: 76px;
From 020a260279497eb0da6f01ba16aa1d3917ab604a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Wed, 30 Mar 2022 21:16:15 +0800
Subject: [PATCH 10/13] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=96=87?=
=?UTF-8?q?=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/docs/zh-CN/guide/dark.md | 17 ++++++
example/src/layouts/Layout.vue | 2 +-
example/src/router/zh-CN.ts | 5 ++
example/src/view/guide.vue | 5 ++
example/src/view/index.vue | 90 +++++++++++++++++++-------------
5 files changed, 83 insertions(+), 36 deletions(-)
diff --git a/example/docs/zh-CN/guide/dark.md b/example/docs/zh-CN/guide/dark.md
index e69de29b..d5d73128 100644
--- a/example/docs/zh-CN/guide/dark.md
+++ b/example/docs/zh-CN/guide/dark.md
@@ -0,0 +1,17 @@
+::: title 夜间模式
+:::
+
+::: describe 默认情况下, 网站主题为日间模式。若需启用深夜模式, 使用 config-provider 组件。
+:::
+
+```
+