Now there is a requirement. The last row of the table is the total. The total should be fixed at the bottom of the table. Has anyone implemented it?
欧阳克2017-06-30 10:01:29
You are using elementui, just set show-summary to true. You can take a look at elementUI’s official website
PHP中文网2017-06-30 10:01:29
If you write it yourself
1. First get the first row of tr (non-title), and make the width of each td into an array
2. Get the last row of tr, change the position to fixed, set the position, and then add the td of the last row Fixed width, corresponding to the td of the first row