diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e71bcca6c5ef801975ee07bb8df76e253df184..2c4da7596b9a5a7fb73e7041e4074f352baa591a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ - 修复数据选择(下拉)点击取消按钮未清空数据 - 修复图标菜单、列表菜单、门户部件响应式样式异常,在小屏幕下内容显示不全 - 修复分割容器分割线较窄的问题,修复流布局,卡片,多数据部件分组锚点文字过小问题,修复工具栏自定义位置时可重复点击生成多个工具栏的问题,修复搜索栏样式异常问题 +- 修复模态、抽屉中多数据、卡片等部件无法垂直滚动 +- 修复分页导航上分页时在ios中出现溢出省略异常 +- 修复markdown编辑器在ios中光标错位异常 ## [0.7.41-alpha.21] - 2025-11-28 diff --git a/src/common/tab-layout/tab-default-layout/tab-default-layout.tsx b/src/common/tab-layout/tab-default-layout/tab-default-layout.tsx index 36d7b653e43d935e27512621e4c7e0af9a436f54..15f8a196aa45ea8fff3eec4e777a769f16efe981 100644 --- a/src/common/tab-layout/tab-default-layout/tab-default-layout.tsx +++ b/src/common/tab-layout/tab-default-layout/tab-default-layout.tsx @@ -16,7 +16,11 @@ export const TabDefaultLayout = defineComponent({ }, render() { let content = ( - + {this.tabPages.map(tab => { if (tab.isHidden) return; diff --git a/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx b/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx index 1b929fe9b564b5b93478277262f7bfd479e8ff07..4763f5eb7c644e6971ed5d4b7c9a60baf5ad0e5a 100644 --- a/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx +++ b/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx @@ -129,6 +129,9 @@ const IBizMarkDown: any = defineComponent({ }; const setCherryContent2 = (val: string) => { editorPreview.value?.setMarkdown(val, true); + // 修复ios中光标错位 + editor.value?.refreshPreviewer(); + editorPreview.value?.refreshPreviewer(); }; watch( () => props.value, diff --git a/src/mob-app/router/index.ts b/src/mob-app/router/index.ts index e61b653219cc28d64e35a72c597a429fa51adcf6..045aad3b85457b066bc50f088fddfca11e926325 100644 --- a/src/mob-app/router/index.ts +++ b/src/mob-app/router/index.ts @@ -9,7 +9,6 @@ import { Modal, RouteConst, ViewMode } from '@ibiz-template/runtime'; import { isNilOrEmpty } from 'qx-util'; import { AppRedirectView } from '@ibiz-template/vue3-util'; import qs from 'qs'; -import { AuthGuard } from '../guard'; import { RouterShell, HomeView, ModalRouterShell } from '../components'; import { DownloadView, LoginView, View404 } from '../../view'; import { useViewStack } from '../../util'; @@ -29,6 +28,17 @@ const getPropsCallback = (depth: number) => { export class AppRouter { private static router?: Router; + private static authGuard: ( + context: IParams, + notLogin?: boolean, + ) => Promise; + + static setAuthGuard( + authGuard: (context: IParams, notLogin?: boolean) => Promise, + ): void { + this.authGuard = authGuard; + } + static getAppContext(route: RouteLocationNormalized): IParams { let appContext: IParams = {}; if ( @@ -62,7 +72,7 @@ export class AppRouter { if (!isNilOrEmpty(ibiz.appData)) { next(); } else { - const authority = await AuthGuard(this.getAppContext(_to)); + const authority = await this.authGuard(this.getAppContext(_to)); if (authority) { next(); } else { @@ -163,7 +173,7 @@ export class AppRouter { name: 'loginView', meta: { preset: true }, beforeEnter: async (_to, _from, next) => { - await AuthGuard(this.getAppContext(_to), false); + await this.authGuard(this.getAppContext(_to), false); next(); }, component: LoginView, diff --git a/src/util/app-drawer/app-drawer-component.tsx b/src/util/app-drawer/app-drawer-component.tsx index b4a3ede3702a988d392c9f9e65d30f22ded5190b..c0d3372ae43d2e139e2b7091cae121a2f350c1dc 100644 --- a/src/util/app-drawer/app-drawer-component.tsx +++ b/src/util/app-drawer/app-drawer-component.tsx @@ -105,7 +105,7 @@ export const AppDrawerComponent = defineComponent({ return (