From 619537b1becf3314ded4cbf3719b6caf6e871823 Mon Sep 17 00:00:00 2001 From: zhuwei11 Date: Thu, 29 Sep 2022 19:28:21 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-7346=20[Story]=20switch=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E6=96=87=E6=A1=88=E5=B1=95=E7=A4=BA=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?+tooltip=20title=E5=AD=97=E5=8F=B7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id6c080a0981b95c63c0e429c222709041f56207c --- packages/amis-editor/src/plugin/Form/Combo.tsx | 16 ++++++++++++---- packages/amis-editor/src/plugin/Form/Static.tsx | 6 ++++-- packages/amis-editor/src/plugin/Video.tsx | 5 ++++- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/Combo.tsx b/packages/amis-editor/src/plugin/Form/Combo.tsx index fb38ce80c..be97450e9 100644 --- a/packages/amis-editor/src/plugin/Form/Combo.tsx +++ b/packages/amis-editor/src/plugin/Form/Combo.tsx @@ -490,14 +490,20 @@ export class ComboControlPlugin extends BasePlugin { name: 'lazyLoad', label: '懒加载', pipeIn: defaultValue(false), - description: '如果数据比较多,比较卡顿时,可开启此配置项' + labelRemark: { + type: 'remark', + content: '如果数据比较多,比较卡顿时,可开启此配置项。' + } }), getSchemaTpl('switch', { name: 'strictMode', label: '严格模式', pipeIn: defaultValue(true), - description: '如果你希望环境变量的值实时透传到 Combo 中,请关闭此选项。' + labelRemark: { + type: 'remark', + content: '如果你希望环境变量的值实时透传到 Combo 中,请关闭此选项。' + } }), { @@ -515,8 +521,10 @@ export class ComboControlPlugin extends BasePlugin { name: 'nullable', label: '允许为空', pipeIn: defaultValue(false), - description: - '如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。' + labelRemark: { + type: 'remark', + content: '如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。' + } }), { diff --git a/packages/amis-editor/src/plugin/Form/Static.tsx b/packages/amis-editor/src/plugin/Form/Static.tsx index 5c85e6745..02b7c56f1 100644 --- a/packages/amis-editor/src/plugin/Form/Static.tsx +++ b/packages/amis-editor/src/plugin/Form/Static.tsx @@ -96,8 +96,10 @@ export class StaticControlPlugin extends BasePlugin { name: 'quickEdit.saveImmediately', label: '立即保存', visibleOn: 'data.quickEdit', - description: '开启后修改即提交,而不是标记修改批量提交。', - descriptionClassName: 'help-block m-b-none', + labelRemark: { + type: 'remark', + content: '开启后修改即提交,而不是标记修改批量提交。' + }, pipeIn: (value: any) => !!value }), getSchemaTpl('apiControl', { diff --git a/packages/amis-editor/src/plugin/Video.tsx b/packages/amis-editor/src/plugin/Video.tsx index 8a13f99f7..67af1fced 100644 --- a/packages/amis-editor/src/plugin/Video.tsx +++ b/packages/amis-editor/src/plugin/Video.tsx @@ -62,7 +62,10 @@ export class VideoPlugin extends BasePlugin { getSchemaTpl('switch', { name: 'isLive', label: '直播流', - description: '如果是直播流,请勾选,否则有可能不能正常播放。' + labelRemark: { + type: 'remark', + content: '如果是直播流,请勾选,否则有可能不能正常播放。' + } }) ] },