Skip to content

Commit 82967e6

Browse files
committed
refactor(cli): rename children to items to fix changes with vitepress api
Related Issues: DevCloudFE#1879
1 parent 69917a5 commit 82967e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/devui-vue/devui-cli/templates/vitepress-sidebar.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const { isReadyToRelease } = require('../shared/utils');
1414
// return { text, link: `/${SITES_COMPONENTS_DIR_NAME}/${kebabCase(name)}/`, status }
1515
// }
1616

17-
function buildCategoryOptions(text, children = []) {
18-
return { text, children };
17+
function buildCategoryOptions(text, items = []) {
18+
return { text, items };
1919
}
2020

2121
function generateZhMenus(componentsInfo) {
@@ -72,7 +72,7 @@ exports.createVitepressSidebarTemplates = (componentsInfo = []) => {
7272
},
7373
{
7474
"text": "Design Token",
75-
"children": DESIGN_TOKENS_INFO
75+
"items": DESIGN_TOKENS_INFO
7676
},
7777
],
7878
handler: generateZhMenus,
@@ -94,7 +94,7 @@ exports.createVitepressSidebarTemplates = (componentsInfo = []) => {
9494
},
9595
{
9696
"text": "Design Token",
97-
"children": DESIGN_TOKENS_INFO
97+
"items": DESIGN_TOKENS_INFO
9898
},
9999
],
100100
handler: generateEnMenus,

0 commit comments

Comments
 (0)