amis icon indicating copy to clipboard operation
amis copied to clipboard

schema加载数据

Open chenyphaaa opened this issue 6 years ago • 1 comments

实现场景:

想在schema中加载import的数据

存在的问题:

不能识别为数据

当前方案

//routes为另一个文件中导出的数组
import {routes} from "./index";
//想在options数组中加载进去
 "options": [
                    {
                        "ref": "1",
                        valueField:"path",
                        "children": "${routes}"
                    },
]

chenyphaaa avatar Sep 09 '20 09:09 chenyphaaa

你这个直接是这样就好了

{
    ref: "1",
    valueField: "path",
    children: routes
}

RickCole21 avatar Sep 14 '20 02:09 RickCole21