From 4560268a12afd1e42c1e5c11fb49b64b369566df Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 2 Aug 2023 22:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=87=E6=8D=A2=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 11 +++++++++++ templates/modules/widgets/nav-right.html | 16 ++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/settings.yaml b/settings.yaml index 0c7eff45..14a843fa 100644 --- a/settings.yaml +++ b/settings.yaml @@ -73,6 +73,15 @@ spec: value: true - label: 关闭 value: false + - $formkit: radio + name: darkMode + label: 切换模式 + value: true + options: + - label: 打开 + value: true + - label: 关闭 + value: false - group: top label: 顶部 @@ -121,6 +130,8 @@ spec: value: false - $formkit: attachment name: index_video + key: index_video + id: index_video if: $get(enable_above).value && $get(enable_above_video).value label: 动态壁纸 placeholder: 请填写动态壁纸地址 diff --git a/templates/modules/widgets/nav-right.html b/templates/modules/widgets/nav-right.html index b818a79d..29c3974e 100644 --- a/templates/modules/widgets/nav-right.html +++ b/templates/modules/widgets/nav-right.html @@ -20,6 +20,14 @@ + +
+ - - -