From 3e6b41a6084fe3e1b4f78aa1fd133c05f4c93902 Mon Sep 17 00:00:00 2001 From: Linzp Date: Fri, 3 Apr 2026 10:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/ExamplePage.js | 5 +++-- src/index.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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