element-ui el-table in the dynamic display line change control based on the line data scope.row


Joined the Bank's data scope.row, its data format
{
        "propertyId": 4,
        "propertyName": "标题",
        "propertyType": 0
 }

If there is v-show = "scope.row.edit", because this scope.row had no edit field, when changing the value of the edit vue of methods, the reaction is not immediately in the view.

It can only bound field scope.row already exists, but it is a problem arises, changes of field data will change the binding reaction in the form data.

Last Solution: Bind scope.row.propertyId, does not change its value, change its type, whether according to its type setting button

Guess you like

Origin www.cnblogs.com/ckmouse/p/11490604.html