fix:复制影响打开页面 && 变量赋值组件切换显示问题 && 打开页面不展示页面名称

Change-Id: I6cbc86ac311d647fc37825bde79aef731e25db18
This commit is contained in:
pianruijie 2022-07-27 16:02:26 +08:00
parent 6c616c1017
commit 69f2ae47bc
2 changed files with 5 additions and 3 deletions

View File

@ -57,7 +57,8 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
placeholder: 'http://', placeholder: 'http://',
mode: 'horizontal', mode: 'horizontal',
size: 'lg', size: 'lg',
required: true required: true,
visibleOn: 'data.actionType === "url"'
}, },
{ {
type: 'combo', type: 'combo',
@ -108,7 +109,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
<div> <div>
<span className="variable-left variable-right"> <span className="variable-left variable-right">
{info?.args?.__pageName} {info?.args?.pageName}
</span> </span>
</div> </div>
@ -692,7 +693,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
mode: 'horizontal', mode: 'horizontal',
label: '输入序号', label: '输入序号',
placeholder: '请输入待更新序号', placeholder: '请输入待更新序号',
visibleOn: `data.__comboType && __comboType === 'appoint'` visibleOn: `data.__comboType && __comboType === 'appoint' && data.__rendererName && __rendererName === 'combo'`
}, },
{ {
type: 'combo', type: 'combo',

View File

@ -560,6 +560,7 @@ export const renderCmptActionSelect = (
if (form.data.actionType === 'setValue') { if (form.data.actionType === 'setValue') {
// todo:这里会闪一下需要从amis查下问题 // todo:这里会闪一下需要从amis查下问题
form.setValueByName('args.value', []); form.setValueByName('args.value', []);
form.setValueByName('args.__comboType', undefined);
form.setValueByName('args.__valueInput', undefined); form.setValueByName('args.__valueInput', undefined);
if (SELECT_PROPS_CONTAINER.includes(rendererType)) { if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
form.setValueByName('__setValueDs', variables.filter(item => item.value !== '$$id')); form.setValueByName('__setValueDs', variables.filter(item => item.value !== '$$id'));