Combo InputGroup 组件联动不生效
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
在 combo 组件使用 inputGroup 组件联动 visibleOn 不生效
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
`sdk`
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
`3.6.1`
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"debug": true,
"body": [
{
"name": "roleQueryGroup",
"items": [
{
"name": "T9RCK0Ld",
"body": [
{
"name": "queryRoleType",
"options": [
{
"label": "角色ID",
"value": "roleId"
},
{
"label": "角色名",
"value": "roleName"
}
],
"type": "select",
"selectFirst": true,
"label": "查询类型"
},
{
"name": "roleId",
"visibleOn": "this.queryRoleType=='roleId'",
"type": "input-text",
"label": "角色Id"
},
{
"name": "roleName",
"visibleOn": "this.queryRoleType=='roleName'",
"type": "input-text",
"label": "角色名"
}
],
"type": "input-group"
}
],
"type": "combo",
"label": "角色"
}
],
"mode": "horizontal",
"type": "form"
}
```
4. 操作步骤
请简单描述一下复现的操作步骤...
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in the SDK with the supplied combo and input-group schema, then trace how visibleOn evaluates queryRoleType inside the combo. The fix is done when switching between roleId and roleName updates the corresponding input visibility as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100