JS SDK 3.5.2 CRUD autoGenerateFilter模式下URL传参不能传递给searchable字段,columnsNum设置不生效
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
CRUD开启autoGenerateFilter,URL传参给searchable字段,searchable字段无法获取参数值。设置的columnsNum显示3个,默认只显示2个。
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
`js sdk 3.5.2`
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "page",
"body": [
{
"type": "crud",
"api": "https://aisuda.bce.baidu.com//amis/api/mock2/sample",
"syncLocation": false,
"autoGenerateFilter": {
"columnsNum": 3,
"showBtnToolbar": false
},
"columns": [
{
"name": "id",
"label": "ID",
"searchable": {
"type": "input-text",
"name": "id",
"label": "主键",
"placeholder": "输入id"
}
},
{
"name": "engine",
"label": "Rendering engine"
},
{
"name": "browser",
"label": "Browser",
"searchable": {
"type": "select",
"name": "browser",
"label": "浏览器",
"placeholder": "选择浏览器",
"options": [
{
"label": "Internet Explorer ",
"value": "ie"
},
{
"label": "AOL browser",
"value": "aol"
},
{
"label": "Firefox",
"value": "firefox"
}
]
}
},
{
"name": "platform",
"label": "Platform(s)"
},
{
"name": "version",
"label": "Engine version",
"searchable": {
"type": "input-number",
"name": "version",
"label": "版本号",
"placeholder": "输入版本号",
"mode": "horizontal"
}
},
{
"name": "grade",
"label": "CSS grade"
}
]
}
]
}
```
4. 操作步骤
请简单描述一下复现的操作步骤...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the supplied CRUD schema and reproduce the issue using autoGenerateFilter, URL parameters, searchable fields, and columnsNum: 3. Verify that URL values populate the searchable controls and that three filter columns are displayed; completion means both behaviors work in the JS SDK scenario described.
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