How to set up vue+element-ui to click the button to make the lines expand and fold

clipboard.png

clipboard.png

clipboard.png

try to use the official website attribute default-expand-all to click on the switch status value, but it doesn"t work. Is there any solution

?
Sep.16,2021

use expand-row-keys, to store the key of the row to be expanded in an array, and then bind it to expand-row-keys

Menu