baidu / baidu/amis

链式下拉框无法通过 size 来改变大小,导致选项显示不全

Open
#4,600 1 comment 0 reactions 0 assignees View on GitHub
enhancement P1
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

链式下拉框无法通过 size 来改变大小,导致选项显示不全

#### 截图或视频:

image

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
sdk

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
1.10.2

4. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "page",
"body": {
"type": "form",
"debug": true,
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"name": "select3",
"size": "lg",
"type": "chained-select",
"label": "级联下拉",
"source": "/amis/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4",
"value": "a,b"
}
]
}
}
```

5. 操作步骤
官网文档粘贴 schema 即可复现。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the chained-select component entry point and reproduce the issue using the supplied AMIS schema in the documentation playground. Trace how the `size` value is passed to the chained dropdown, and consider the issue done when `size: "lg"` changes the control so its options are displayed without clipping.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.