mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
38 lines
815 B
JavaScript
38 lines
815 B
JavaScript
/**
|
|
* Created by 7d-vision on 2016/11/7.
|
|
*/
|
|
(function ($) {
|
|
$.buildTable = function ( tableObj ) {
|
|
var tableHtml = '<div class="box"><div class="box-body">';
|
|
if( tableObj.topButton ){
|
|
tableHtml += buildTopButton( tableObj );
|
|
}
|
|
if( tableObj.header ){
|
|
tableHtml += buildHeader( tableObj );
|
|
}
|
|
if( tableObj.data ){
|
|
tableHtml += buildDataList( tableObj );
|
|
}else{
|
|
tableHtml += buildEmptyTable();
|
|
}
|
|
tableHtml += '</div></div>';
|
|
return tableHtml;
|
|
};
|
|
|
|
function buildHeader( tableObj ) {
|
|
|
|
}
|
|
|
|
function buildTopButton( tableObj ) {
|
|
|
|
}
|
|
|
|
function buildDataList( tableObj ) {
|
|
|
|
}
|
|
|
|
function buildEmptyTable() {
|
|
|
|
}
|
|
})(jQuery);
|