diff --git a/packages/amis-editor/src/renderer/event-control/actions.tsx b/packages/amis-editor/src/renderer/event-control/actions.tsx
index 2763d2c2e..1f7d710ac 100644
--- a/packages/amis-editor/src/renderer/event-control/actions.tsx
+++ b/packages/amis-editor/src/renderer/event-control/actions.tsx
@@ -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[] => {
打开
- {info?.args?.__pageName}
+ {info?.args?.pageName}
页面
@@ -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',
diff --git a/packages/amis-editor/src/renderer/event-control/helper.tsx b/packages/amis-editor/src/renderer/event-control/helper.tsx
index 3a52be717..002cadcba 100644
--- a/packages/amis-editor/src/renderer/event-control/helper.tsx
+++ b/packages/amis-editor/src/renderer/event-control/helper.tsx
@@ -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'));