fix: the problem that can't hide check box of StandardTable.vue; 🐛

修复:StandardTable.vue 组件不能隐藏勾选框的问题;
master
iczer 4 years ago
parent 08e40f1a31
commit 182ea21a29
  1. 4
      src/components/table/StandardTable.vue

@ -1,7 +1,7 @@
<template>
<div class="standard-table">
<div class="alert">
<a-alert type="info" :show-icon="true">
<a-alert type="info" :show-icon="true" v-if="selectedRows">
<div class="message" slot="message">
已选择&nbsp;<a>{{selectedRows.length}}</a>&nbsp; <a class="clear" @click="onClear">清空</a>
<template v-for="(item, index) in needTotalList" >
@ -21,7 +21,7 @@
:rowKey="rowKey"
:pagination="pagination"
@change="onChange"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: updateSelect}"
:rowSelection="selectedRows ? {selectedRowKeys: selectedRowKeys, onChange: updateSelect} : undefined"
>
<template slot-scope="text, record, index" :slot="slot" v-for="slot in scopedSlots">
<slot :name="slot" v-bind="{text, record, index}"></slot>

Loading…
Cancel
Save