Problems encountered in using table controls of elementUI in vue-cli

Technical note: vue-cli+elementUI table control
Business scenario description:

1.tabletable
2.end_date
3.
4.10>;10>ago

solution:
use the row-class-name attribute in the elementUI talbe control to determine whether to include the specified field-> calculate the time interval, and finally use the time interval to determine whether to change the value in the data to achieve the purpose of controlling the star color
problem: there is an endless cycle in the rendering list, and the rowClass method has been running all the time. Ask all the great gods for advice

template

scriptdata

scriptmethods

Feb.28,2021

this is probably how it is solved. I just finished it, it's a little ugly, and then optimize it. Hey, hey,

Menu