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