mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +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://',
|
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',
|
||||||
|
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user