From 7a9b0de0c68f28e1d44984cd15e52673b3db8f4a Mon Sep 17 00:00:00 2001 From: Chenhe Date: Sun, 28 Apr 2024 19:54:48 +0800 Subject: [PATCH] improve usage tips in settings page (#140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用占位组件在设置页面展示信息并不恰当,并且此项目作为存储插件的 Example 工程易误导其他开发者。 调整为利用 FormKit `el` 特性实现。 问题背景:https://github.com/halo-dev/halo/issues/5802 **Preview - old** image **Preview - new** image ```release-note 优化调整提示的提示 ``` --- src/main/resources/extensions/settings.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/resources/extensions/settings.yaml b/src/main/resources/extensions/settings.yaml index 37799d9..51176fc 100644 --- a/src/main/resources/extensions/settings.yaml +++ b/src/main/resources/extensions/settings.yaml @@ -7,8 +7,5 @@ spec: - group: basic label: 使用提示 formSchema: - - $formkit: text - help: 请前往 “附件 - 存储策略” 添加策略 - label: 此处不用设置,请前往 “附件 - 存储策略” 添加策略 - name: text - placeholder: 此处不用设置,请前往 “附件 - 存储策略” 添加策略 + - $el: p + children: 请前往 “附件 - 存储策略” 添加策略