下拉选择框请求远端数据data传参问题
Open
need confirm
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
我的下拉框使用source 从远端获取数据发现,当不写data属性的话,会把method等信息当成data,我理解如果没有data属性是否可以考虑不传;
写了data属性请求是正常的
当我去掉data属性
请求参数就是这个样子了
1. 你是如何使用 amis 的?
npm
2. amis 版本是什么?
3.2.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the remote-data dropdown request in amis 3.2.0 using npm, comparing configurations with and without the data property. Trace how the dropdown's source request builds parameters; done means method and related configuration fields are no longer sent as data when data is omitted, while explicit data continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100