crud在body中filter-group无法获取page的initApi数据 #7873
Unanswered
JokerCrying
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如题,amis配置如下
{
"aside": [
"\n
{
"type": "divider"
},
{
"className": "font-bold",
"source": "${navSource}",
"stacked": true,
"type": "nav"
}
],
"body": [
{
"columns": [
{
"label": "id",
"name": "id",
"type": "text"
},
{
"label": "name",
"name": "name",
"type": "text"
}
],
"filter": {
"actions": [
{
"icon": "fa fa-refresh fa-spin",
"label": "重置",
"level": "default",
"size": "sm",
"type": "reset"
},
{
"icon": "fa fa-search",
"label": "查找",
"level": "primary",
"size": "sm",
"type": "submit"
}
],
"body": [
{
"label": "品质",
"name": "ship",
"size": "md",
"source": "${fliterSource.ship}",
"type": "select"
},
{
"label": "限制",
"name": "limits",
"size": "md",
"source": "${filterSource.limits}",
"type": "select"
},
{
"label": "外观",
"name": "appearance",
"size": "md",
"source": "${filterSource.appearence}",
"type": "select"
}
],
"mode": "inline",
"title": "",
"type": "group"
},
"footerToolbar": [
"switch-per-page",
"statistics",
"pagination"
],
"perPageField": "per_page",
"syncLocation": false,
"type": "crud"
}
],
"initApi": "get:/source/getXXXSource"
"debug": true,
"type": "page"
}
那么现在问题来了,边栏里的nav可以直接拿到navSource,但是在curd中的fliter中就无法拿到filterSource,是新bug还是本来就有这个问题,可以解决一下吗
Beta Was this translation helpful? Give feedback.
All reactions