vue版easyui列组有bug

提问 未结 1 173
筱秂尒 1个月前
悬赏:20飞吻
<template>
<div>
<h2>Column Group</h2>
<DataGrid :data="data" style="height:250px">
<GridColumnGroup>
<GridHeaderRow>
<GridColumn :rowspan="2" field="itemid" title="Item ID"></GridColumn>
<GridColumn :rowspan="2" field="name" title="Name"></GridColumn>
<GridColumn :colspan="4" title="Item Details"></GridColumn>
<GridColumn :rowspan="2" field="test1" title="test1"></GridColumn>
<GridColumn :rowspan="2" field="test2" title="test2"></GridColumn>
<GridColumn :rowspan="2" field="test3" title="test3"></GridColumn>
<GridColumn :rowspan="2" field="test4" title="test4"></GridColumn>
<GridColumn :rowspan="2" field="test5" title="test5"></GridColumn>
</GridHeaderRow>
<GridHeaderRow>
<GridColumn field="listprice" title="List Price" align="right"></GridColumn>
<GridColumn field="unitcost" title="Unit Cost" align="right"></GridColumn>
<GridColumn field="attr" title="Attribute" width="30%"></GridColumn>
<GridColumn field="status" title="Status" align="center"></GridColumn>
</GridHeaderRow>
</GridColumnGroup>
</DataGrid>
</div>
</template>

<script>
export default {
data() {
return {
data: []
};
},
created() {
this.data = [
{
code: "FI-SW-01",
name: "Koi",
unitcost: 10.0,
status: "P",
listprice: 36.5,
attr: "Large",
itemid: "EST-1"
}
];
}
};
</script>
回帖
回帖须知
QQ在线咨询
客服 QQ
251122361
微信/手机
18973127736
固定电话
0731-89565588