import { GanttControlBase } from '../../../widgets'; import { throttle } from '@ibizstudio/runtime'; /** * 甘特部件基类 * * @export * @class AppGanttBase * @extends {GanttControlBase} */ export class AppGanttBase extends GanttControlBase { /** * 绘制 * * @memberof AppGanttBase */ render() { if (!this.controlIsLoaded) { return null; } const { controlClassNames } = this.renderOptions; return (
{this.tasks.length > 0 ? ( throttle(this.taskClick, [$event], this)} on-task-item-expand={(task: any) => this.taskItemExpand(task)} > ) : (
{this.$t('app.commonwords.nodata')}
)}
); } }