fix(common-table): common-table 在移动设备上部分内容不显示

This commit is contained in:
禾几海
2021-03-11 21:00:10 +08:00
parent 1c5423ebb2
commit ea83364c12

View File

@@ -115,7 +115,7 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
showFieldSetting = () => this.settingModalVisible = true; showFieldSetting = () => this.settingModalVisible = true;
cancel = () => this.settingModalVisible = false; cancel = () => this.settingModalVisible = false;
calculateVisibleFieldLength = () => this.filedData.filter(value => value.show).length; calculateVisibleFieldLength = () => this.visibleFieldLength = this.filedData.filter(value => value.show).length;
ok() { ok() {
this.calculateVisibleFieldLength(); this.calculateVisibleFieldLength();