There is one thing I don't quite understand about the deployment function of the iview table component.

expandable table demo

as shown in the figure, it is said in the document that sets an item of row data data _ expanded to true, to expand the current row by default but it doesn"t have an example. I"m not sure where this attribute should be added


"" ,

Jul.07,2021

I'm stuck here, too. I didn't get a reply from the subject of the private message before. Today, when I was reading the official documents, I suddenly came up with an alternative. I hope the students who have a better solution can put forward some suggestions.
document [ https://www.iviewui.com/compo.]

enable the extension function by setting an entry for columns data and specifying type: 'expand',.
set _ expanded to true, for the row data data to expand the current row by default, and set _ disableExpand to disable the current row expansion function.
  

this issue has been resolved.
the solution is as follows.
vue uses a data-driven view. So is iview. The
document says that you need to add unfold judgment to data when rendering.
so, when you click a button in a row, you just need to change the current data.
is the data data that you bind to the table.
deeply copy the original data data to the new data, then set the _ expanded property of the current column you are clicking on the new array to true
, and then reassign the new array to the data array shown in the table. A data replacement was completed. What unfolds is yours at the forefront. I hope to adopt it.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac954-47ead.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac954-47ead.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?