我有一个网格,我想在 .zul 中设置 auxheader 的宽度,但它不起作用。我正在使用 zk 框架。
<grid id="chartGrid" model="@bind(vm.chartGridModel)" mold="paging"
style="overflow:auto" width="100%" >
<auxhead hflex="2" >
<auxheader hflex="2" align="center" width="200px" label="Date" rowspan="3"/>
</auxhead>
<auxhead hflex="1" children="@bind(vm.legendsFB)" visible="@bind(vm.vFb)" >
<auxheader align="center" width="200px" colspan="1"></auxheader>
<template name="children">
<auxheader align="center" label="@bind(each)" colspan="@bind(
vm.viewType eq '0' ? 3 :2)" hflex="2"/>
</template>
</auxhead>
<columns visible="false"><!-- make it invisible -->
<column width="200px"/><!-- specify width here -->
<column width="150px"/>
<column width="50px"/>
<column width="50px"/>
</columns>
<template name="model">
<row>
<cell align="center" ><label value="@load(each.report_date)"></label>
</cell>
<cell align="center"><label value="@load(each.total_action)"></label>
</cell>
<cell align="center"><label value="@load(each.from_user_male)"></label>
</cell>
<cell align="center"><label value="@load(each.from_user_female)"></label>
</cell>
</row>
</template>
</grid>