|
|
@@ -20,7 +20,13 @@
|
|
|
<!-- 复选框 -->
|
|
|
<li v-if="selection" class="check-cls" ><span @click="selectItem(item,i)" class="fdcheck" :class="{check_active:item.hasAuth}"></span></li>
|
|
|
<!-- -->
|
|
|
- <li v-for="(sub,j) in header" :class="{ themetxt: sub.fontweight, showWhenHover: sub.showWhenHover, multiLine: sub.key === 'name' }" :key='j' :style="{textAlign:item.textAlign, width:sub.width ? sub.width+'px':(100/header.length)+'%'}">
|
|
|
+ <li
|
|
|
+ v-for="(sub,j) in header"
|
|
|
+ :key='j'
|
|
|
+ :style="{textAlign:item.textAlign, width:sub.width ? sub.width+'px':(100/header.length)+'%'}"
|
|
|
+ :class="{ themetxt: sub.fontweight, showWhenHover: sub.showWhenHover, multiLine: sub.key === 'name' }"
|
|
|
+ :title="sub.key === 'name'? item[sub.key]: ''"
|
|
|
+ >
|
|
|
<slot :data='item[sub.key]' :item="item" :sub='sub' name='item'></slot>
|
|
|
</li>
|
|
|
</ul>
|