From fb450d08b29ca86696f171a875d9417b29194c56 Mon Sep 17 00:00:00 2001 From: Linzp Date: Tue, 11 Aug 2026 14:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E4=BB=B6=E9=A1=B5=20Page=20tit?= =?UTF-8?q?le=20=E7=BB=9F=E4=B8=80=E4=B8=BA=E5=A4=A7=E9=A9=BC=E5=B3=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 展示名经 camel-case 转换,避免 kebab-case 等原始目录名直接出现在标题。 Co-authored-by: Cursor --- package.json | 2 +- src/ExamplePage.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 20ba5f9..554fc06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne/modules-dev", - "version": "2.4.4", + "version": "2.4.5", "description": "用于辅助在项目内启动一个规范化组件开发的环境", "publishConfig": { "access": "public", diff --git a/src/ExamplePage.js b/src/ExamplePage.js index cb6e18d..c6c8c8c 100644 --- a/src/ExamplePage.js +++ b/src/ExamplePage.js @@ -6,6 +6,7 @@ import style from './example.module.scss'; import classnames from 'classnames'; import ExampleDriver from '@kne/example-driver'; import {createWithRemoteLoader} from '@kne/remote-loader'; +import camelCase from '@kne/camel-case'; import Highlight from './Highlight'; import ExampleDriverContext from './ExampleDriverContext'; @@ -69,7 +70,7 @@ const ExamplePage = createWithRemoteLoader({ modules: ["components-core:Layout@Page", "components-core:Layout@Menu", "components-core:Global@useGlobalContext"] })(({remoteModules, data, current, menuProps = {}, items, pageProps = {}}) => { const [Page, Menu] = remoteModules; - return 0 && } {...pageProps}>