bixi
Version:
企业级中后台前端解决方案
33 lines (29 loc) • 854 B
text/typescript
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { ITextCol } from '../table.type';
import { ColBase } from './col.base';
export class BixiTableColTextComponent extends ColBase {
col: ITextCol;
get innerStyle() {
let _style: Partial<CSSStyleDeclaration> = {};
if (this.col.ellipsis) {
_style = {
display: 'inline-block',
maxWidth: '100%',
overflow: 'hidden',
textOverflow: 'ellipsis',
verticalAlign: 'middle'
};
}
return _style;
}
}