amis
amis copied to clipboard
schema加载数据
实现场景:
想在schema中加载import的数据
存在的问题:
不能识别为数据
当前方案
//routes为另一个文件中导出的数组
import {routes} from "./index";
//想在options数组中加载进去
"options": [
{
"ref": "1",
valueField:"path",
"children": "${routes}"
},
]
你这个直接是这样就好了
{
ref: "1",
valueField: "path",
children: routes
}