mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:17:54 +08:00
fix:复制影响打开页面 && 变量赋值组件切换显示问题 && 打开页面不展示页面名称
Change-Id: I6cbc86ac311d647fc37825bde79aef731e25db18
This commit is contained in:
parent
6c616c1017
commit
69f2ae47bc
@ -57,7 +57,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
placeholder: 'http://',
|
||||
mode: 'horizontal',
|
||||
size: 'lg',
|
||||
required: true
|
||||
required: true,
|
||||
visibleOn: 'data.actionType === "url"'
|
||||
},
|
||||
{
|
||||
type: 'combo',
|
||||
@ -108,7 +109,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
<div>
|
||||
打开
|
||||
<span className="variable-left variable-right">
|
||||
{info?.args?.__pageName}
|
||||
{info?.args?.pageName}
|
||||
</span>
|
||||
页面
|
||||
</div>
|
||||
@ -692,7 +693,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
mode: 'horizontal',
|
||||
label: '输入序号',
|
||||
placeholder: '请输入待更新序号',
|
||||
visibleOn: `data.__comboType && __comboType === 'appoint'`
|
||||
visibleOn: `data.__comboType && __comboType === 'appoint' && data.__rendererName && __rendererName === 'combo'`
|
||||
},
|
||||
{
|
||||
type: 'combo',
|
||||
|
@ -560,6 +560,7 @@ export const renderCmptActionSelect = (
|
||||
if (form.data.actionType === 'setValue') {
|
||||
// todo:这里会闪一下,需要从amis查下问题
|
||||
form.setValueByName('args.value', []);
|
||||
form.setValueByName('args.__comboType', undefined);
|
||||
form.setValueByName('args.__valueInput', undefined);
|
||||
if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
|
||||
form.setValueByName('__setValueDs', variables.filter(item => item.value !== '$$id'));
|
||||
|
Loading…
Reference in New Issue
Block a user