diff --git a/package.json b/package.json index a7fcf2a..f226fe7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne/modules-dev", - "version": "2.1.19", + "version": "2.1.20", "description": "用于辅助在项目内启动一个规范化组件开发的环境", "publishConfig": { "access": "public", diff --git a/src/ExamplePage.js b/src/ExamplePage.js index a9d12d9..ad3d533 100644 --- a/src/ExamplePage.js +++ b/src/ExamplePage.js @@ -73,10 +73,11 @@ export const ExampleContent = createWithRemoteLoader({ const ExamplePage = createWithRemoteLoader({ modules: ["components-core:Layout@Page", "components-core:Layout@Menu", "components-core:Global@useGlobalContext"] -})(({remoteModules, data, current, items, pageProps = {}}) => { +})(({remoteModules, data, current, menuProps = {}, items, pageProps = {}}) => { const [Page, Menu] = remoteModules; return 0 && } {...pageProps}> + menu={items && items.length > 0 && + } {...pageProps}> }); diff --git a/src/index.js b/src/index.js index b321ebc..75c4f94 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ export {default} from './createEntry'; export {default as FontList} from './FontList'; export {default as Example} from './Example'; -export {default as ExamplePage} from './ExamplePage'; \ No newline at end of file +export {default as ExamplePage, ExampleContent} from './ExamplePage'; \ No newline at end of file