element table嵌套颜色选择器出现问题
在选择完成颜色后,鼠标点击空白,颜色选择器显示无颜色,但是实际值里有颜色的值
table
ref="singleTable"
:data="MonitoringData"
border
style="width: 100%"
>
table-column type="index" width="50"> table-column>
table-column property="name" label="名称"> table-column>
table-column property="color" label="颜色">
<template slot-scope="scope">
template>
table-column>
table>
正常选择完成
当tableData里有值时,颜色会显示上去,但是选择颜色完成后,颜色会返回到一开始的值,但是tableData里的值变成了新选择的值
这里绑定直接写 scope.row.color 就可以