1.8 crud筛选 重置按钮某些情况下无效
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
初始情况有勾选的,也有没勾选的

如果勾选已勾选下面的字段,没问题,但是勾选上面的字段,无法重置

点击重置无效

1. 你是如何使用 amis 的?
`sdk`
2. amis 版本是什么?
1.8
3. 粘贴有问题的完整 `amis schema` 代码:
`{
"type": "page",
"body": [
{
"type": "crud",
"name": "crud",
"syncLocation": false,
"primaryField": "_id",
"title": "食品抽检合格信息",
"headerToolbar": [
"reload"
],
"autoGenerateFilter": true,
"api": {
"method": "post",
"url": "",
"data": {
"amisExtras": {
"conditions": []
},
"&": "$$"
}
},
"columns": [
{
"name": "_id",
"label": "ID",
"toggled": false
},
{
"name": "bcscqydz",
"label": "标称生产企业地址",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "bcscqydz",
"size": "full",
"label": "标称生产企业地址",
"clearable": true
},
"enableSearch": false
},
{
"name": "bcscqymc",
"label": "标称生产企业名称",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "bcscqymc",
"size": "full",
"label": "标称生产企业名称",
"clearable": true
},
"enableSearch": true
},
{
"name": "bcydwdz",
"label": "被抽样单位所在区域",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "bcydwdz",
"size": "full",
"label": "被抽样单位所在区域",
"clearable": true
},
"enableSearch": false
},
{
"name": "bcydwmc",
"label": "被抽样单位名称",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "bcydwmc",
"size": "full",
"label": "被抽样单位名称",
"clearable": true
},
"enableSearch": true
},
{
"name": "bz",
"label": "备注",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "bz",
"size": "full",
"label": "备注",
"clearable": true
},
"enableSearch": false
},
{
"name": "cybh",
"label": "抽样编号",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "cybh",
"size": "full",
"label": "抽样编号",
"clearable": true
},
"enableSearch": true
},
{
"name": "fl",
"label": "分类",
"sortable": true,
"searchable": {
"type": "input-text",
"name": "fl",
"size": "full",
"label": "分类",
"clearable": true
},
"enableSearch": false
},
{
"type": "operation",
"label": "操作",
"fixed": "right"
}
]
}
]
}`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue from the provided amis SDK schema, focusing on the CRUD component with autoGenerateFilter and mixed toggled columns. Verify that selecting the upper fields causes Reset to have no effect, then confirm that Reset clears the filters and restores the expected state.
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
- 28/100