官方的 Example 用的是 v-repeat ,在最新的版本已经是 deprecated 了。用 v-for 的话怎么树视图?
[
{
"description": "No longer needed",
"displayName": "Archive",
"folderId": "85c6bd6a-6dc1-4e8f-8db2-09d29cb36be5",
"mutable": false,
"parent": null,
"child": []
},
{
"description": "Main Inbox",
"displayName": "Inbox",
"folderId": "0ccc3ae5-6d26-45a1-96c1-0d7f02bb8f36",
"mutable": false,
"parent": null,
"child": [
{
"description": "Work related emails",
"displayName": "Work",
"folderId": "b55fd3d0-d023-4427-b8d4-a65c8f522802",
"mutable": false,
"parent": "0ccc3ae5-6d26-45a1-96c1-0d7f02bb8f36",
"child": [
{
"description": "About serve",
"displayName": "serve",
"folderId": "408d26f7-c1dc-419f-9688-ce1401db4bef",
"mutable": false,
"parent": "b55fd3d0-d023-4427-b8d4-a65c8f522802",
"child": []
}
]
}
]
}
]
1
CupTools OP nvm, 找到解决方法了
|