From 9a2b1175bd17023b10f5f5f1ddbed19ec3a7b9cd Mon Sep 17 00:00:00 2001 From: zhuwei11 Date: Fri, 30 Sep 2022 17:12:04 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0bcba892d1f29dd1b0d89a5f8f48ab9ed99c2727 --- packages/amis-editor/src/plugin/Form/Combo.tsx | 15 ++++++++++++--- packages/amis-editor/src/plugin/Form/Static.tsx | 5 ++++- packages/amis-editor/src/plugin/Video.tsx | 5 ++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/Combo.tsx b/packages/amis-editor/src/plugin/Form/Combo.tsx index be97450e9..ffbadefef 100644 --- a/packages/amis-editor/src/plugin/Form/Combo.tsx +++ b/packages/amis-editor/src/plugin/Form/Combo.tsx @@ -491,7 +491,10 @@ export class ComboControlPlugin extends BasePlugin { label: '懒加载', pipeIn: defaultValue(false), labelRemark: { - type: 'remark', + className: 'm-l-xs', + trigger: 'click', + rootClose: true, + placement: 'left', content: '如果数据比较多,比较卡顿时,可开启此配置项。' } }), @@ -501,7 +504,10 @@ export class ComboControlPlugin extends BasePlugin { label: '严格模式', pipeIn: defaultValue(true), labelRemark: { - type: 'remark', + className: 'm-l-xs', + trigger: 'click', + rootClose: true, + placement: 'left', content: '如果你希望环境变量的值实时透传到 Combo 中,请关闭此选项。' } }), @@ -522,7 +528,10 @@ export class ComboControlPlugin extends BasePlugin { label: '允许为空', pipeIn: defaultValue(false), labelRemark: { - type: 'remark', + className: 'm-l-xs', + trigger: 'click', + rootClose: true, + placement: 'left', content: '如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。' } }), diff --git a/packages/amis-editor/src/plugin/Form/Static.tsx b/packages/amis-editor/src/plugin/Form/Static.tsx index 02b7c56f1..6be968ad6 100644 --- a/packages/amis-editor/src/plugin/Form/Static.tsx +++ b/packages/amis-editor/src/plugin/Form/Static.tsx @@ -97,7 +97,10 @@ export class StaticControlPlugin extends BasePlugin { label: '立即保存', visibleOn: 'data.quickEdit', labelRemark: { - type: 'remark', + className: 'm-l-xs', + trigger: 'click', + rootClose: true, + placement: 'left', content: '开启后修改即提交,而不是标记修改批量提交。' }, pipeIn: (value: any) => !!value diff --git a/packages/amis-editor/src/plugin/Video.tsx b/packages/amis-editor/src/plugin/Video.tsx index 67af1fced..fee653224 100644 --- a/packages/amis-editor/src/plugin/Video.tsx +++ b/packages/amis-editor/src/plugin/Video.tsx @@ -63,7 +63,10 @@ export class VideoPlugin extends BasePlugin { name: 'isLive', label: '直播流', labelRemark: { - type: 'remark', + className: 'm-l-xs', + trigger: 'click', + rootClose: true, + placement: 'left', content: '如果是直播流,请勾选,否则有可能不能正常播放。' } })