Javascript matColumnDef复制9中component.ts中的表属性
我有一个问题,我仍然无法理解,我需要有人指导我如何继续。我的.ts中有这个表:Javascript matColumnDef复制9中component.ts中的表属性,javascript,html,angular,angular9,Javascript,Html,Angular,Angular9,我有一个问题,我仍然无法理解,我需要有人指导我如何继续。我的.ts中有这个表: @Input() 列:TableColumn[]=[ {label:'Id',property:'idSupplierCompany',type:'text',visible:true,cssClasses:['font-small']}, {label:'Nome',property:'supplierName',type:'text',visible:true,cssClasses:['font-small']
@Input()
列:TableColumn[]=[
{label:'Id',property:'idSupplierCompany',type:'text',visible:true,cssClasses:['font-small']},
{label:'Nome',property:'supplierName',type:'text',visible:true,cssClasses:['font-small']},
{label:'Cnpj',property:'Cnpj',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Rua',property:'street',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Número',property:'number',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'Bairro',property:'neighbory',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
{label:'CEP',property:'zipCode',type:'text',visible:true,cssClasses:['text-secondary','font-small']},
您有*ngIf=“column.type==='text'&&column.property!=='cnpj'
和*ngIf=“column.type=='text'&&column.property=='zipCode'
,因此当column.property为'zipCode'时,可以复制该列