diff --git a/CHANGELOG.md b/CHANGELOG.md index a3c65a710c06c09b86cdc4e9b1f8f09b6b76a807..ded1668a42dff286962228e4ed7559cd03a01131 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 1d8387c0168196cfe9b678cbdd4d1dd582928565..cc0779a2fe145697be26b5fd0b460f9f9572e165 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'; } }