@rdkmaster/jigsaw-labs
Version:
Jigsaw, the next generation component set for RDK
47 lines (37 loc) • 1.09 kB
text/typescript
import {Component, ContentChild, Input, TemplateRef, Type, ViewChild} from '@angular/core';
import {IDynamicInstantiatable} from "../common";
({
selector: 'jigsaw-tab-pane, j-tab-pane',
template: `
<ng-template #label>
{{title}}
<ng-content select="[jigsaw-title]"></ng-content>
</ng-template>
`
})
export class JigsawTabPane {
()
public title: string;
()
public disabled: boolean = false;
()
public hidden: boolean = false;
/**
* @deprecated use `lazy` instead
*
* @internal
*/
()
public async: boolean = true; // 默认异步加载
/**
* 为true时,Tab页的视图延将被迟到该Tab页被打开的时候才被初始化。
*
* @type {boolean}
*/
()
public lazy: boolean = true;
()
public initData: Object;
('label') label: TemplateRef<any> | Type<IDynamicInstantiatable>;
(TemplateRef) content: TemplateRef<any> | Type<IDynamicInstantiatable>;
}