过滤器控件和固定列:分组在一起时,列输入文本消失

时间:2019-06-29 05:15:28

标签: bootstrap-table

“过滤器控制和固定列”列输入文本在组合在一起时会消失

import bootstrap-table v1.15.2&,所有的CSS和js都需要导入

<table id="table"
   data-filter-control="true"  data-filter-show-clear="true"
   data-search="true" data-show-columns="true"
   data-minimum-count-columns="2"
   data-pagination="true"   class="table table-bordered">
      <thead>
        <tr>
           <th data-field="id">ID</th>
           <th data-field="name" data-filter-control="input">Item Name</th>
           <th data-field="price" data-filter-control="select">Item Price</th>
           <th data-field="name1" data-filter-control="input">Item Name</th>
           <th data-field="pr1ice1" data-filter-control="select">Item Price</th>
           <th data-field="nam1e1" data-filter-control="input">Item Name</th>
           <th data-field="price1" data-filter-control="select">Item Price</th>
           <th data-field="nam1e" data-filter-control="input">Item Name</th>
           <th data-field="pric1e" data-filter-control="select">Item Price</th>
           <th data-field="na1me" data-filter-control="input">Item Name</th>
           <th data-field="pri1ce" data-filter-control="select">Item Price</th>
        </tr>
     </thead>
</table>


<script>
    $(function() { $('#table').bootstrapTable() })
    $("#table").bootstrapTable('destroy').bootstrapTable({
        fixedColumns: true,
        stickyHeader: true,
        fixedNumber: 4 
    });
</script>

我希望使用data-filter-control的输入的输出可以显示输入词。但是,当我导入fixedColumns时,输入文本会消失

0 个答案:

没有答案