You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
如题,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