有数据,但是页面展示不出来
js:
let data = {"msg":"success","code":0,"querySqlResult":[{"columnList":[{"columnName":"rt_jzjy_entrust.cust_no","columnValue":"21038147 "},{"columnName":"rt_jzjy_entrust.entrust_date","columnValue":"20160725"},{"columnName":"rt_jzjy_entrust.entrust_time","columnValue":"09:15:30"}]}],"columnNameList":["rt_jzjy_entrust.cust_no","rt_jzjy_entrust.entrust_date","rt_jzjy_entrust.entrust_time"]}
this.sqldata = []
this.sqltablecolumn = data.columnNameList
data.querySqlResult.forEach(item=> {
let obj = {}
item.columnList.forEach(child=>{
obj[child.columnName] = child.columnValue
})
this.sqldata.push(obj)
})
html:
<el-table :data="sqldata" max-height="500">
<el-table-column
show-overflow-tooltip
v-for="(item,index) in sqltablecolumn"
:property="item"
:key="index"
:label="item">
</el-table-column>
</el-table>
请问这是什么原因造成的
property的属性值不能包含点
更新:附element-ui部分源码