From 042135bd7e72d96aed64b2ffd98a5bda80170fb4 Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Thu, 7 Aug 2025 19:41:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=8E=86?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=BF=AB=E9=80=9F=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=92=8C=E5=B7=A5=E5=85=B7=E6=A0=8F=E8=A1=8C=E4=B8=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 +++ src/view-engine/calendar-exp-view.engine.ts | 34 ++++----------------- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3c65a71..ded1668a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ## [Unreleased] +## Fixed + +- 修复日历导航栏快速搜索和工具栏行为异常 + ## [0.7.41-alpha.17] - 2025-08-07 ### Added diff --git a/src/view-engine/calendar-exp-view.engine.ts b/src/view-engine/calendar-exp-view.engine.ts index 1d8387c0..cc0779a2 100644 --- a/src/view-engine/calendar-exp-view.engine.ts +++ b/src/view-engine/calendar-exp-view.engine.ts @@ -1,13 +1,12 @@ import { ViewController, - ViewEngineBase, - ICalendarExpBarController, ICalendarExpViewEvent, ICalendarExpViewState, } from '@ibiz-template/runtime'; import { IAppDECalendarExplorerView } from '@ibiz/model-core'; +import { ExpViewEngine } from './exp-view.engine'; -export class CalendarExpViewEngine extends ViewEngineBase { +export class CalendarExpViewEngine extends ExpViewEngine { /** * 日历导航视图控制器 * @@ -26,33 +25,12 @@ export class CalendarExpViewEngine extends ViewEngineBase { >; /** - * 树导航栏 - * + * @description 导航栏部件名称 * @readonly + * @type {string} * @memberof CalendarExpViewEngine */ - get calendarExpBar(): ICalendarExpBarController { - return this.view.getController( - 'calendarexpbar', - ) as ICalendarExpBarController; - } - - async onCreated(): Promise { - await super.onCreated(); - const { childNames } = this.view; - childNames.push('calendarexpbar'); - if (!this.view.slotProps.calendarexpbar) { - this.view.slotProps.calendarexpbar = {}; - } - this.view.slotProps.calendarexpbar.srfnav = this.view.state.srfnav; - } - - async onMounted(): Promise { - await super.onMounted(); - const { model } = this.view; - // 默认加载 - if (!this.view.state.noLoadDefault && model.loadDefault) { - this.calendarExpBar.load(); - } + get expBarName(): string { + return 'calendarexpbar'; } } -- Gitee