layui table引入了layui-soul-table插件后,载入layui.use(['form','table','laydate','soulTable','tableFilter'], function () {..}出现toolbar上的laydate控件无效,在去除'soulTable','tableFilter',可以正常弹出日期空间。该怎么修改?
<table class="layui-hide" id="myTable2" lay-filter="myTable2" lay-size="sm" style="table-layout: fixed;"></table>
<script type="text/html" id="toolbarDemo">
<div class="layui-input-inline">
<input type="text" class="layui-input" id="ID-laydate-range-datetime" placeholder=" - " style="width:250px; " autocomplete="off">
</div>
<script src="../layui/layui.all.js" charset="utf-8"></script>
<script>
layui.config({
base: '../layui/ext/',
version: 'v1.8.0'
}).extend({
soulTable: 'soulTable',
shortcut: 'shortcut',
tableChild: 'tableChild',
tableMerge: 'tableMerge',
tableFilter: 'tableFilter',
excel: 'excel'
});
layui.use(['form','table','laydate','soulTable','tableFilter'], function () {
var table = layui.table;
var form = layui.form;
var laydate = layui.laydate;
var $ = layui.jquery;
var soulTable = layui.soulTable;
var tableFilter = layui.tableFilter;
var Datefiler = {
elem: '#ID-laydate-range-datetime',//选择器结束时间
type: 'datetime',
range: true,
min:"1970-1-1"
}
laydate.render(Datefiler);
table.render({
elem: '#myTable2'
...
,done: function (res,curr,count) {
soulTable.render(this)
}
});