bixi
Version:
企业级中后台前端解决方案
31 lines (26 loc) • 908 B
text/typescript
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { isNullOrUndefined } from '@bixi/core/utils';
import { ITimeCol } from '../table.type';
import { ColBase } from './col.base';
export class BixiTableColTimeComponent extends ColBase {
_col: ITimeCol;
get col(): ITimeCol {
return this._col;
}
set col(options: ITimeCol) {
this._col = options;
this._col.relative = isNullOrUndefined(options.relative) ? true : options.relative;
}
}