How does Table realize the five columns of the table in elementUI, and determine which column the data is displayed in according to the ID of the data?

I hope those who have experience in using it can help answer it, at least those who can understand the meaning of data of table in element

because you don"t know what tableData is, you may not know what the problem I described means. Thank you for your hard work.

if my table has five columns

the lable in the first column is 1, and then it is 2, 3, 4, 5

.

clipboard.png

then

tableData=dataList

dataList={data1,data2}

data1={id:4}
data2={id:1}

if the id of data is 1, there are objects in column 1, and so do others.
how should this be achieved?

how to obtain and judge column.lable = = row.id?

whether you can customize some properties on lable, or whether element has attributes that provide convenient customization, I don"t think it"s good to use lable to judge, and lable should not display 1, 2, 3, 4, etc.

Apr.02,2021

  

No need to use: filtered-value

Menu