use data-table instead lay-table

This commit is contained in:
xiaomlove
2022-09-08 19:14:01 +08:00
parent bbc4d72ea6
commit 7434fb5252
9 changed files with 348 additions and 7 deletions
+22
View File
@@ -3,4 +3,26 @@
return [
'next' => 'Next »',
'previous' => '« Previous',
"decimal" => "",
"emptyTable" => "No data available in table",
"info" => "Showing _START_ to _END_ of _TOTAL_ entries",
"infoEmpty" => "Showing 0 to 0 of 0 entries",
"infoFiltered" => "(filtered from _MAX_ total entries)",
"infoPostFix" => "",
"thousands" => ",",
"lengthMenu" => "Show _MENU_ entries",
"loadingRecords" => "Loading...",
"processing" => "",
"search" => "Search:",
"zeroRecords" => "No matching records found",
"paginate" => [
"first" => "First",
"last" => "Last",
"next" => "Next",
"previous" => "Previous"
],
"aria" => [
"sortAscending" => ": activate to sort column ascending",
"sortDescending"=> ": activate to sort column descending"
]
];
+22
View File
@@ -3,4 +3,26 @@
return [
'next' => '下一页 »',
'previous' => '« 上一页',
"decimal" => "",
"emptyTable" => "无数据",
"info" => "当前展示第 _START_ 至第 _END_ 条,共 _TOTAL_ 条记录",
"infoEmpty" => "当前展示第 0 条至第 0 条,共 0 条记录",
"infoFiltered" => "(筛选自 _MAX_ 条记录)",
"infoPostFix" => "",
"thousands" => ",",
"lengthMenu" => "每页展示 _MENU_ 条记录",
"loadingRecords" => "加载中...",
"processing" => "",
"search" => "搜索:",
"zeroRecords" => "没有发现任何匹配的记录",
"paginate" => [
"first" => "首页",
"last" => "尾页",
"next" => "下一页",
"previous" => "上一页"
],
"aria" => [
"sortAscending" => ": 升序排序",
"sortDescending"=> ": 降序排序"
]
];
+22
View File
@@ -3,4 +3,26 @@
return [
'next' => '下一頁 »',
'previous' => '« 上一頁',
"decimal" => "",
"emptyTable" => "無數據",
"info" => "當前展示第 _START_ 至第 _END_ 條,共 _TOTAL_ 條記錄",
"infoEmpty" => "當前展示第 0 條至第 0 條,共 0 條記錄",
"infoFiltered" => "(篩選自 _MAX_ 條記錄)",
"infoPostFix" => "",
"thousands" => ",",
"lengthMenu" => "每頁展示 _MENU_ 條記錄",
"loadingRecords" => "加載中...",
"processing" => "",
"search" => "搜索:",
"zeroRecords" => "沒有發現任何匹配的記錄",
"paginate" => [
"first" => "首頁",
"last" => "尾頁",
"next" => "下一頁",
"previous" => "上一頁"
],
"aria" => [
"sortAscending" => ": 升序排序",
"sortDescending"=> ": 降序排序"
]
];
+31
View File
@@ -0,0 +1,31 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/styles/sprites.css">
<link rel="stylesheet" href="/vendor/layui/css/layui.css">
<link rel="stylesheet" href="/vendor/datatables-1.12.1/datatables.min.css">
@stack('css')
<script type="text/javascript" src="/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="/vendor/layui/layui.js"></script>
<script type="text/javascript" src="/vendor/datatables-1.12.1/datatables.min.js"></script>
@stack('scripts')
<script>
var nexusDataTableConfig = {{ \Illuminate\Support\Js::from([
'processing' => true,
'serverSide' => true,
'searching' => false,
'ordering' => false,
'columnDefs' => [
[
'targets' => '_all',
'className' => 'dt-body-center dt-head-center'
]
],
'language' => nexus_trans('pagination')
]) }};
</script>
</head>
<body>
@yield('content')
</body>
</html>