0

我正在使用角度日历,对于我需要的年视图,我已经实现了:

https://www.npmjs.com/package/angular-calendar-year-view

它工作正常,但有一个微调器,我无法关闭。有人现在是代码的一部分,可以关闭微调器吗?

      <angular-calendar-year-view
        *ngSwitchCase="'day'"
        nothingToshowText="An diesem Tag hast du keine ToDo's eingetragen"
        mwlCalendarNextView
        [events]="events"
        [viewDate]="viewDate"
        themecolor="black"
        (eventClicked)="goToEvent($event.event.id)">
      </angular-calendar-year-view>

这就是我实现它的方式。目前,我只是将依赖项中的“微调器”-布尔值设置为 false,但这是废话。

我也尝试过类似的东西

AngularCalendarYearViewComponent.prototype.spinner = false;
AngularCalendarYearViewComponent.prototype.loader = false;

在打字稿文件中,但它也不起作用......

请帮忙

import { DomSanitizer } from '@angular/platform-browser';
import * as ɵngcc0 from '@angular/core';
export declare class AngularCalendarYearViewComponent implements OnInit {
    sanitizer: DomSanitizer;
    // readonly style: import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle;
    themecolor: any;
    events: any[];
    viewDate: Date;
    nothingToshowText: string;
    popoverEnabled: boolean;
    customTemplate: TemplateRef<any>;
    eventClicked: EventEmitter<any>;
    actionClicked: EventEmitter<any>;
    dayClicked: EventEmitter<any>;
    loader: any;
    days: any;
    dayindex: any;
    daydetails: any;
    year: any;
    calendar: any;
    spinner: any;
    constructor(sanitizer: DomSanitizer);
    ngOnInit(): void;
    ngOnChanges(): void;
    initCalendar(date: any): void;
    generateCalendar(month: any, year: any): any[];
    getNbWeeks(month: any, year: any): number;
    dayClickedFn(day: any, month: any): void;
    getTodayEvents(day: any, month: any): void;
    getnbevents(day: any, month: any): {
        nb: number;
        color: string;
    };
    eventClickedFn(event: any): void;
    refresh(date: any): void;
    actionClickedFn(action: any, event?: any): void;
    static ɵfac: ɵngcc0.ɵɵFactoryDef<AngularCalendarYearViewComponent, never>;
    static ɵcmp: ɵngcc0.ɵɵComponentDefWithMeta<AngularCalendarYearViewComponent, "angular-calendar-year-view", never, { "themecolor": "themecolor"; "events": "events"; "viewDate": "viewDate"; "nothingToshowText": "nothingToshowText"; "popoverEnabled": "popoverEnabled"; "customTemplate": "customTemplate"; }, { "eventClicked": "eventClicked"; "actionClicked": "actionClicked"; "dayClicked": "dayClicked"; }, never, never>;
}

//# sourceMappingURL=angular-calendar-year-view.component.d.ts.map

这是依赖

4

1 回答 1

0

您可以使用 CSS 隐藏微调器。

类似的东西对我有用

  &:host ::ng-deep .spinner {
    display: none !important;
  }
于 2021-05-18T17:36:22.143 回答