zhixin 6 年之前
父节点
当前提交
f8d75ffaf9

+ 274 - 0
dist/themes/bulma/bootstrap-table-bulma.css

@@ -0,0 +1,274 @@
+@charset "UTF-8";
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ * https://github.com/wenzhixin/bootstrap-table/
+ * theme: https://github.com/jgthms/bulma/
+ */
+.bootstrap-table .fixed-table-toolbar:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-toolbar .bs-bars,
+.bootstrap-table .fixed-table-toolbar .search,
+.bootstrap-table .fixed-table-toolbar .columns {
+  position: relative;
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group {
+  display: inline-block;
+  margin-left: -1px !important;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:first-child > .btn {
+  border-top-left-radius: 4px;
+  border-bottom-left-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:last-child > .btn {
+  border-top-right-radius: 4px;
+  border-bottom-right-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group > .btn {
+  border-radius: 0;
+}
+.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu {
+  text-align: left;
+  max-height: 300px;
+  overflow: auto;
+}
+.bootstrap-table .fixed-table-toolbar .columns label {
+  display: block;
+  padding: 3px 20px;
+  clear: both;
+  font-weight: normal;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-toolbar .columns-left {
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .columns-right {
+  margin-left: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu {
+  right: 0;
+  left: auto;
+}
+.bootstrap-table .fixed-table-container {
+  position: relative;
+  clear: both;
+}
+.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
+  border-bottom: 1px solid #dbdbdb;
+}
+.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
+  border-left: 1px solid #dbdbdb;
+  border-right: 1px solid #dbdbdb;
+}
+.bootstrap-table .fixed-table-container.fixed-height .table thead th {
+  border-bottom: 1px solid #dbdbdb;
+}
+.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th {
+  border-bottom: 1px solid #32383e;
+}
+.bootstrap-table .fixed-table-container .fixed-table-header {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body {
+  overflow-x: auto;
+  overflow-y: auto;
+  height: 100%;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
+  display: none;
+  position: absolute;
+  top: 42px;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  z-index: 99;
+  background-color: #fff;
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table {
+  width: 100%;
+  margin-bottom: 0 !important;
+}
+.bootstrap-table .fixed-table-container .table th,
+.bootstrap-table .fixed-table-container .table td {
+  vertical-align: middle;
+  box-sizing: border-box;
+}
+.bootstrap-table .fixed-table-container .table thead th {
+  vertical-align: bottom;
+  padding: 0;
+  margin: 0;
+}
+.bootstrap-table .fixed-table-container .table thead th:focus {
+  outline: 0 solid transparent;
+}
+.bootstrap-table .fixed-table-container .table thead th.detail {
+  width: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .th-inner {
+  padding: 0.75rem;
+  vertical-align: bottom;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.bootstrap-table .fixed-table-container .table thead th .sortable {
+  cursor: pointer;
+  background-position: right;
+  background-repeat: no-repeat;
+  padding-right: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .both {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC");
+}
+.bootstrap-table .fixed-table-container .table thead th .asc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==");
+}
+.bootstrap-table .fixed-table-container .table thead th .desc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ");
+}
+.bootstrap-table .fixed-table-container .table tbody tr.selected td {
+  background-color: #fafafa;
+}
+.bootstrap-table .fixed-table-container .table tbody tr.no-records-found {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title {
+  font-weight: bold;
+  display: inline-block;
+  min-width: 30%;
+  text-align: left !important;
+}
+.bootstrap-table .fixed-table-container .table .bs-checkbox {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table input[type=radio],
+.bootstrap-table .fixed-table-container .table input[type=checkbox] {
+  margin: 0 auto !important;
+}
+.bootstrap-table .fixed-table-container .table.table-sm .th-inner {
+  padding: 0.3rem;
+}
+.bootstrap-table .fixed-table-container .fixed-table-footer {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-pagination:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail,
+.bootstrap-table .fixed-table-pagination > .pagination {
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
+  line-height: 34px;
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list {
+  display: inline-block;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group {
+  position: relative;
+  display: inline-block;
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination {
+  margin: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination a {
+  padding: 6px 12px;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a {
+  color: #c8c8c8;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:before {
+  content: "⬅";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:after {
+  content: "➡";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.disabled a {
+  pointer-events: none;
+  cursor: default;
+}
+.bootstrap-table.fullscreen {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 1050;
+  width: 100% !important;
+  background: #FFF;
+}
+
+/* calculate scrollbar width */
+div.fixed-table-scroll-inner {
+  width: 100%;
+  height: 200px;
+}
+
+div.fixed-table-scroll-outer {
+  top: 0;
+  left: 0;
+  visibility: hidden;
+  width: 200px;
+  height: 150px;
+  overflow: hidden;
+}
+
+.bootstrap-table .float-left {
+  float: left;
+}
+.bootstrap-table .float-right {
+  float: right;
+}
+.bootstrap-table .fixed-table-toolbar .search input {
+  width: auto;
+}
+.bootstrap-table .fixed-table-toolbar .columns {
+  margin-right: 0;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown {
+  padding: 0;
+  margin: 0;
+  border: 0;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown .button {
+  border-bottom-left-radius: 0;
+  border-top-left-radius: 0;
+  border-bottom-right-radius: 4px;
+  border-top-right-radius: 4px;
+  margin-right: 0;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown .dropdown-content {
+  box-shadow: none;
+  border: 1px solid #dbdbdb;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown label.dropdown-item {
+  padding: 5px 20px;
+}
+.bootstrap-table .fixed-table-pagination .ui.dropdown {
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination .is-up .fa-angle-down:before {
+  content: "";
+}
+.bootstrap-table .fixed-table-pagination .pagination-link.disabled {
+  background-color: #dbdbdb;
+  border-color: #dbdbdb;
+  box-shadow: none;
+  color: #7a7a7a;
+  opacity: 0.5;
+  cursor: not-allowed;
+}
+
+/*# sourceMappingURL=bootstrap-table-bulma.css.map */

+ 168 - 0
dist/themes/bulma/bootstrap-table-bulma.js

@@ -0,0 +1,168 @@
+(function (global, factory) {
+  if (typeof define === "function" && define.amd) {
+    define([], factory);
+  } else if (typeof exports !== "undefined") {
+    factory();
+  } else {
+    var mod = {
+      exports: {}
+    };
+    factory();
+    global.bootstrapTableBulma = mod.exports;
+  }
+})(this, function () {
+  'use strict';
+
+  function _classCallCheck(instance, Constructor) {
+    if (!(instance instanceof Constructor)) {
+      throw new TypeError("Cannot call a class as a function");
+    }
+  }
+
+  var _createClass = function () {
+    function defineProperties(target, props) {
+      for (var i = 0; i < props.length; i++) {
+        var descriptor = props[i];
+        descriptor.enumerable = descriptor.enumerable || false;
+        descriptor.configurable = true;
+        if ("value" in descriptor) descriptor.writable = true;
+        Object.defineProperty(target, descriptor.key, descriptor);
+      }
+    }
+
+    return function (Constructor, protoProps, staticProps) {
+      if (protoProps) defineProperties(Constructor.prototype, protoProps);
+      if (staticProps) defineProperties(Constructor, staticProps);
+      return Constructor;
+    };
+  }();
+
+  function _possibleConstructorReturn(self, call) {
+    if (!self) {
+      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+    }
+
+    return call && (typeof call === "object" || typeof call === "function") ? call : self;
+  }
+
+  var _get = function get(object, property, receiver) {
+    if (object === null) object = Function.prototype;
+    var desc = Object.getOwnPropertyDescriptor(object, property);
+
+    if (desc === undefined) {
+      var parent = Object.getPrototypeOf(object);
+
+      if (parent === null) {
+        return undefined;
+      } else {
+        return get(parent, property, receiver);
+      }
+    } else if ("value" in desc) {
+      return desc.value;
+    } else {
+      var getter = desc.get;
+
+      if (getter === undefined) {
+        return undefined;
+      }
+
+      return getter.call(receiver);
+    }
+  };
+
+  function _inherits(subClass, superClass) {
+    if (typeof superClass !== "function" && superClass !== null) {
+      throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
+    }
+
+    subClass.prototype = Object.create(superClass && superClass.prototype, {
+      constructor: {
+        value: subClass,
+        enumerable: false,
+        writable: true,
+        configurable: true
+      }
+    });
+    if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
+  }
+
+  /**
+   * @author zhixin wen <wenzhixin2010@gmail.com>
+   * https://github.com/wenzhixin/bootstrap-table/
+   * theme: https://github.com/jgthms/bulma/
+   */
+
+  (function ($) {
+    $.extend($.fn.bootstrapTable.defaults, {
+      classes: 'table is-bordered is-hoverable',
+      buttonsPrefix: '',
+      buttonsClass: 'button'
+    });
+
+    $.BootstrapTable = function (_$$BootstrapTable) {
+      _inherits(_class, _$$BootstrapTable);
+
+      function _class() {
+        _classCallCheck(this, _class);
+
+        return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
+      }
+
+      _createClass(_class, [{
+        key: 'initConstants',
+        value: function initConstants() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initConstants', this).call(this);
+
+          this.constants.theme = 'bulma';
+
+          this.constants.classes.buttonsGroup = 'buttons has-addons';
+          this.constants.classes.buttonsDropdown = 'button dropdown is-right';
+          this.constants.classes.input = 'input';
+          this.constants.classes.paginationDropdown = 'ui dropdown';
+          this.constants.classes.dropup = 'is-up';
+          this.constants.classes.dropdownActive = 'is-active';
+          this.constants.classes.paginationActive = 'is-current';
+
+          this.constants.html.toobarDropdow = ['<div class="dropdown-menu"><div class="dropdown-content">', '</div></div>'];
+          this.constants.html.toobarDropdowItem = '<label class="dropdown-item">%s</label>';
+          this.constants.html.pageDropdown = ['<div class="dropdown-menu"><div class="dropdown-content">', '</div></div>'];
+          this.constants.html.pageDropdownItem = '<a class="dropdown-item %s" href="#">%s</a>';
+          this.constants.html.dropdownCaret = '<span class="icon is-small"><i class="fas fa-angle-down" aria-hidden="true"></i></span>';
+          this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'], this.constants.html.paginationItem = '<li><a class="page-item pagination-link%s" href="#">%s</a></li>';
+        }
+      }, {
+        key: 'initToolbar',
+        value: function initToolbar() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initToolbar', this).call(this);
+          if (this.options.showColumns) {
+            this._initDropdown();
+          }
+        }
+      }, {
+        key: 'initPagination',
+        value: function initPagination() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initPagination', this).call(this);
+          if (this.options.pagination && !this.options.onlyInfoPagination) {
+            this._initDropdown();
+          }
+        }
+      }, {
+        key: '_initDropdown',
+        value: function _initDropdown($el) {
+          var $dropdowns = this.$container.find('.dropdown:not(.is-hoverable)');
+
+          $dropdowns.off('click').on('click', function (e) {
+            e.stopPropagation();
+            $(e.currentTarget).toggleClass('is-active');
+          });
+
+          $(document).off('click.bs.dropdown.bulma').on('click.bs.dropdown.bulma', function () {
+            $dropdowns.removeClass('is-active');
+          });
+        }
+      }]);
+
+      return _class;
+    }($.BootstrapTable);
+  })(jQuery);
+});

文件差异内容过多而无法显示
+ 10 - 0
dist/themes/bulma/bootstrap-table-bulma.min.css


文件差异内容过多而无法显示
+ 10 - 0
dist/themes/bulma/bootstrap-table-bulma.min.js


+ 268 - 0
dist/themes/foundation/bootstrap-table-foundation.css

@@ -0,0 +1,268 @@
+@charset "UTF-8";
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ * https://github.com/wenzhixin/bootstrap-table/
+ * theme: https://github.com/jgthms/bulma/
+ */
+.bootstrap-table .fixed-table-toolbar:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-toolbar .bs-bars,
+.bootstrap-table .fixed-table-toolbar .search,
+.bootstrap-table .fixed-table-toolbar .columns {
+  position: relative;
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group {
+  display: inline-block;
+  margin-left: -1px !important;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:first-child > .btn {
+  border-top-left-radius: 4px;
+  border-bottom-left-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:last-child > .btn {
+  border-top-right-radius: 4px;
+  border-bottom-right-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group > .btn {
+  border-radius: 0;
+}
+.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu {
+  text-align: left;
+  max-height: 300px;
+  overflow: auto;
+}
+.bootstrap-table .fixed-table-toolbar .columns label {
+  display: block;
+  padding: 3px 20px;
+  clear: both;
+  font-weight: normal;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-toolbar .columns-left {
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .columns-right {
+  margin-left: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu {
+  right: 0;
+  left: auto;
+}
+.bootstrap-table .fixed-table-container {
+  position: relative;
+  clear: both;
+}
+.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
+  border-bottom: 1px solid #f1f1f1;
+}
+.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
+  border-left: 1px solid #f1f1f1;
+  border-right: 1px solid #f1f1f1;
+}
+.bootstrap-table .fixed-table-container.fixed-height .table thead th {
+  border-bottom: 1px solid #f1f1f1;
+}
+.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th {
+  border-bottom: 1px solid #32383e;
+}
+.bootstrap-table .fixed-table-container .fixed-table-header {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body {
+  overflow-x: auto;
+  overflow-y: auto;
+  height: 100%;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
+  display: none;
+  position: absolute;
+  top: 42px;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  z-index: 99;
+  background-color: #fff;
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table {
+  width: 100%;
+  margin-bottom: 0 !important;
+}
+.bootstrap-table .fixed-table-container .table th,
+.bootstrap-table .fixed-table-container .table td {
+  vertical-align: middle;
+  box-sizing: border-box;
+}
+.bootstrap-table .fixed-table-container .table thead th {
+  vertical-align: bottom;
+  padding: 0;
+  margin: 0;
+}
+.bootstrap-table .fixed-table-container .table thead th:focus {
+  outline: 0 solid transparent;
+}
+.bootstrap-table .fixed-table-container .table thead th.detail {
+  width: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .th-inner {
+  padding: 0.75rem;
+  vertical-align: bottom;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.bootstrap-table .fixed-table-container .table thead th .sortable {
+  cursor: pointer;
+  background-position: right;
+  background-repeat: no-repeat;
+  padding-right: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .both {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC");
+}
+.bootstrap-table .fixed-table-container .table thead th .asc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==");
+}
+.bootstrap-table .fixed-table-container .table thead th .desc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ");
+}
+.bootstrap-table .fixed-table-container .table tbody tr.selected td {
+  background-color: #f9f9f9;
+}
+.bootstrap-table .fixed-table-container .table tbody tr.no-records-found {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title {
+  font-weight: bold;
+  display: inline-block;
+  min-width: 30%;
+  text-align: left !important;
+}
+.bootstrap-table .fixed-table-container .table .bs-checkbox {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table input[type=radio],
+.bootstrap-table .fixed-table-container .table input[type=checkbox] {
+  margin: 0 auto !important;
+}
+.bootstrap-table .fixed-table-container .table.table-sm .th-inner {
+  padding: 0.3rem;
+}
+.bootstrap-table .fixed-table-container .fixed-table-footer {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-pagination:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail,
+.bootstrap-table .fixed-table-pagination > .pagination {
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
+  line-height: 34px;
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list {
+  display: inline-block;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group {
+  position: relative;
+  display: inline-block;
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination {
+  margin: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination a {
+  padding: 6px 12px;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a {
+  color: #c8c8c8;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:before {
+  content: "⬅";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:after {
+  content: "➡";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.disabled a {
+  pointer-events: none;
+  cursor: default;
+}
+.bootstrap-table.fullscreen {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 1050;
+  width: 100% !important;
+  background: #FFF;
+}
+
+/* calculate scrollbar width */
+div.fixed-table-scroll-inner {
+  width: 100%;
+  height: 200px;
+}
+
+div.fixed-table-scroll-outer {
+  top: 0;
+  left: 0;
+  visibility: hidden;
+  width: 200px;
+  height: 150px;
+  overflow: hidden;
+}
+
+.bootstrap-table .float-left {
+  float: left;
+}
+.bootstrap-table .float-right {
+  float: right;
+}
+.bootstrap-table .fixed-table-toolbar .search input {
+  height: 2.5293rem;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button .button {
+  padding: 0;
+  border: none;
+  margin: 0;
+  vertical-align: top;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button .button:hover .menu {
+  background: #fff;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button .menu li {
+  padding: 5px 0;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button .menu li label {
+  white-space: nowrap;
+  text-align: left;
+}
+.bootstrap-table .fixed-table-toolbar input,
+.bootstrap-table .fixed-table-toolbar .button {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination .button {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination .dropup .fa-angle-down:before {
+  content: "";
+}
+.bootstrap-table .dropdown-pane {
+  width: auto;
+  padding: 0.5rem;
+}
+
+/*# sourceMappingURL=bootstrap-table-foundation.css.map */

+ 173 - 0
dist/themes/foundation/bootstrap-table-foundation.js

@@ -0,0 +1,173 @@
+(function (global, factory) {
+  if (typeof define === "function" && define.amd) {
+    define([], factory);
+  } else if (typeof exports !== "undefined") {
+    factory();
+  } else {
+    var mod = {
+      exports: {}
+    };
+    factory();
+    global.bootstrapTableFoundation = mod.exports;
+  }
+})(this, function () {
+  'use strict';
+
+  function _classCallCheck(instance, Constructor) {
+    if (!(instance instanceof Constructor)) {
+      throw new TypeError("Cannot call a class as a function");
+    }
+  }
+
+  var _createClass = function () {
+    function defineProperties(target, props) {
+      for (var i = 0; i < props.length; i++) {
+        var descriptor = props[i];
+        descriptor.enumerable = descriptor.enumerable || false;
+        descriptor.configurable = true;
+        if ("value" in descriptor) descriptor.writable = true;
+        Object.defineProperty(target, descriptor.key, descriptor);
+      }
+    }
+
+    return function (Constructor, protoProps, staticProps) {
+      if (protoProps) defineProperties(Constructor.prototype, protoProps);
+      if (staticProps) defineProperties(Constructor, staticProps);
+      return Constructor;
+    };
+  }();
+
+  function _possibleConstructorReturn(self, call) {
+    if (!self) {
+      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+    }
+
+    return call && (typeof call === "object" || typeof call === "function") ? call : self;
+  }
+
+  var _get = function get(object, property, receiver) {
+    if (object === null) object = Function.prototype;
+    var desc = Object.getOwnPropertyDescriptor(object, property);
+
+    if (desc === undefined) {
+      var parent = Object.getPrototypeOf(object);
+
+      if (parent === null) {
+        return undefined;
+      } else {
+        return get(parent, property, receiver);
+      }
+    } else if ("value" in desc) {
+      return desc.value;
+    } else {
+      var getter = desc.get;
+
+      if (getter === undefined) {
+        return undefined;
+      }
+
+      return getter.call(receiver);
+    }
+  };
+
+  function _inherits(subClass, superClass) {
+    if (typeof superClass !== "function" && superClass !== null) {
+      throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
+    }
+
+    subClass.prototype = Object.create(superClass && superClass.prototype, {
+      constructor: {
+        value: subClass,
+        enumerable: false,
+        writable: true,
+        configurable: true
+      }
+    });
+    if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
+  }
+
+  /**
+   * @author zhixin wen <wenzhixin2010@gmail.com>
+   * https://github.com/wenzhixin/bootstrap-table/
+   * theme: https://github.com/zurb/foundation-sites
+   */
+
+  (function ($) {
+    $.extend($.fn.bootstrapTable.defaults, {
+      classes: 'table hover',
+      buttonsPrefix: '',
+      buttonsClass: 'button'
+    });
+
+    $.BootstrapTable = function (_$$BootstrapTable) {
+      _inherits(_class, _$$BootstrapTable);
+
+      function _class() {
+        _classCallCheck(this, _class);
+
+        return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
+      }
+
+      _createClass(_class, [{
+        key: 'initConstants',
+        value: function initConstants() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initConstants', this).call(this);
+
+          this.constants.theme = 'foundation';
+
+          this.constants.classes.buttonsGroup = 'button-group';
+          this.constants.classes.buttonsDropdown = 'button dropdown-container';
+          this.constants.classes.paginationDropdown = '';
+          this.constants.classes.dropdownActive = 'is-active';
+          this.constants.classes.paginationActive = 'current';
+
+          this.constants.html.toobarDropdow = ['<ul class="dropdown-pane" id="toolbar-dropdown" data-dropdown><ul class="vertical menu">', '</ul></div>'];
+          this.constants.html.toobarDropdowItem = '<li><label class="dropdown-item">%s</label></li>';
+          this.constants.html.pageDropdown = ['<ul class="dropdown-pane" id="page-list-dropdown" data-dropdown><ul class="vertical menu">', '</ul></ul>'];
+          this.constants.html.pageDropdownItem = '<li class="dropdown-item %s"><a href="#">%s</a></li>';
+          this.constants.html.dropdownCaret = '<i class="fa fa-angle-down"></i>';
+          this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'], this.constants.html.paginationItem = '<li><a class="page-item%s" href="#">%s</a></li>';
+        }
+      }, {
+        key: 'initToolbar',
+        value: function initToolbar() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initToolbar', this).call(this);
+
+          if (this.options.showColumns) {
+            this.$toolbar.find('.keep-open').attr('data-toggle', 'toolbar-dropdown');
+            var $pane = this.$toolbar.find('.dropdown-pane').attr('data-position', 'bottom').attr('data-alignment', 'right');
+            new window.Foundation.Dropdown($pane);
+            this._initDropdown();
+          }
+        }
+      }, {
+        key: 'initPagination',
+        value: function initPagination() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initPagination', this).call(this);
+
+          if (this.options.pagination && !this.options.onlyInfoPagination) {
+            this.$pagination.find('.dropdown-toggle').attr('data-toggle', 'page-list-dropdown');
+            var $pane = this.$pagination.find('.dropdown-pane').attr('data-position', 'top').attr('data-alignment', 'left');
+            new window.Foundation.Dropdown($pane);
+          }
+        }
+      }, {
+        key: '_initDropdown',
+        value: function _initDropdown($el) {
+          var $dropdowns = this.$container.find('.dropdown-container');
+
+          $dropdowns.off('click').on('click', function (e) {
+            e.stopPropagation();
+            $dropdowns.find('.dropdown-pane').foundation('toggle');
+          });
+
+          $(document).off('click.bs.dropdown.foundation').on('click.bs.dropdown.foundation', function () {
+            $dropdowns.find('.dropdown-pane').foundation('close');
+          });
+        }
+      }]);
+
+      return _class;
+    }($.BootstrapTable);
+  })(jQuery);
+});

文件差异内容过多而无法显示
+ 10 - 0
dist/themes/foundation/bootstrap-table-foundation.min.css


文件差异内容过多而无法显示
+ 10 - 0
dist/themes/foundation/bootstrap-table-foundation.min.js


+ 253 - 0
dist/themes/materialize/bootstrap-table-materialize.css

@@ -0,0 +1,253 @@
+@charset "UTF-8";
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ * https://github.com/wenzhixin/bootstrap-table/
+ * theme: https://github.com/jgthms/bulma/
+ */
+.bootstrap-table .fixed-table-toolbar:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-toolbar .bs-bars,
+.bootstrap-table .fixed-table-toolbar .search,
+.bootstrap-table .fixed-table-toolbar .columns {
+  position: relative;
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group {
+  display: inline-block;
+  margin-left: -1px !important;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:first-child > .btn {
+  border-top-left-radius: 4px;
+  border-bottom-left-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:last-child > .btn {
+  border-top-right-radius: 4px;
+  border-bottom-right-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group > .btn {
+  border-radius: 0;
+}
+.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu {
+  text-align: left;
+  max-height: 300px;
+  overflow: auto;
+}
+.bootstrap-table .fixed-table-toolbar .columns label {
+  display: block;
+  padding: 3px 20px;
+  clear: both;
+  font-weight: normal;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-toolbar .columns-left {
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .columns-right {
+  margin-left: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu {
+  right: 0;
+  left: auto;
+}
+.bootstrap-table .fixed-table-container {
+  position: relative;
+  clear: both;
+}
+.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
+  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
+}
+.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
+  border-left: 1px solid rgba(0, 0, 0, 0.12);
+  border-right: 1px solid rgba(0, 0, 0, 0.12);
+}
+.bootstrap-table .fixed-table-container.fixed-height .table thead th {
+  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
+}
+.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th {
+  border-bottom: 1px solid #32383e;
+}
+.bootstrap-table .fixed-table-container .fixed-table-header {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body {
+  overflow-x: auto;
+  overflow-y: auto;
+  height: 100%;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
+  display: none;
+  position: absolute;
+  top: 42px;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  z-index: 99;
+  background-color: #fff;
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table {
+  width: 100%;
+  margin-bottom: 0 !important;
+}
+.bootstrap-table .fixed-table-container .table th,
+.bootstrap-table .fixed-table-container .table td {
+  vertical-align: middle;
+  box-sizing: border-box;
+}
+.bootstrap-table .fixed-table-container .table thead th {
+  vertical-align: bottom;
+  padding: 0;
+  margin: 0;
+}
+.bootstrap-table .fixed-table-container .table thead th:focus {
+  outline: 0 solid transparent;
+}
+.bootstrap-table .fixed-table-container .table thead th.detail {
+  width: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .th-inner {
+  padding: 0.75rem;
+  vertical-align: bottom;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.bootstrap-table .fixed-table-container .table thead th .sortable {
+  cursor: pointer;
+  background-position: right;
+  background-repeat: no-repeat;
+  padding-right: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .both {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC");
+}
+.bootstrap-table .fixed-table-container .table thead th .asc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==");
+}
+.bootstrap-table .fixed-table-container .table thead th .desc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ");
+}
+.bootstrap-table .fixed-table-container .table tbody tr.selected td {
+  background-color: rgba(242, 242, 242, 0.5);
+}
+.bootstrap-table .fixed-table-container .table tbody tr.no-records-found {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title {
+  font-weight: bold;
+  display: inline-block;
+  min-width: 30%;
+  text-align: left !important;
+}
+.bootstrap-table .fixed-table-container .table .bs-checkbox {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table input[type=radio],
+.bootstrap-table .fixed-table-container .table input[type=checkbox] {
+  margin: 0 auto !important;
+}
+.bootstrap-table .fixed-table-container .table.table-sm .th-inner {
+  padding: 0.3rem;
+}
+.bootstrap-table .fixed-table-container .fixed-table-footer {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-pagination:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail,
+.bootstrap-table .fixed-table-pagination > .pagination {
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
+  line-height: 34px;
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list {
+  display: inline-block;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group {
+  position: relative;
+  display: inline-block;
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination {
+  margin: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination a {
+  padding: 6px 12px;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a {
+  color: #c8c8c8;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:before {
+  content: "⬅";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:after {
+  content: "➡";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.disabled a {
+  pointer-events: none;
+  cursor: default;
+}
+.bootstrap-table.fullscreen {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 1050;
+  width: 100% !important;
+  background: #FFF;
+}
+
+/* calculate scrollbar width */
+div.fixed-table-scroll-inner {
+  width: 100%;
+  height: 200px;
+}
+
+div.fixed-table-scroll-outer {
+  top: 0;
+  left: 0;
+  visibility: hidden;
+  width: 200px;
+  height: 150px;
+  overflow: hidden;
+}
+
+.bootstrap-table .float-left {
+  float: left;
+}
+.bootstrap-table .float-right {
+  float: right;
+}
+.bootstrap-table .fixed-table-toolbar .columns > .btn {
+  margin-left: 3px;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open {
+  display: inline;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open li label {
+  padding-top: 13px;
+}
+.bootstrap-table .fixed-table-footer {
+  border-top: 1px solid rgba(0, 0, 0, 0.12);
+}
+.bootstrap-table .fixed-table-pagination .page-list i {
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination .pagination li {
+  height: 36px;
+}
+
+/*# sourceMappingURL=bootstrap-table-materialize.css.map */

+ 171 - 0
dist/themes/materialize/bootstrap-table-materialize.js

@@ -0,0 +1,171 @@
+(function (global, factory) {
+  if (typeof define === "function" && define.amd) {
+    define([], factory);
+  } else if (typeof exports !== "undefined") {
+    factory();
+  } else {
+    var mod = {
+      exports: {}
+    };
+    factory();
+    global.bootstrapTableMaterialize = mod.exports;
+  }
+})(this, function () {
+  'use strict';
+
+  function _classCallCheck(instance, Constructor) {
+    if (!(instance instanceof Constructor)) {
+      throw new TypeError("Cannot call a class as a function");
+    }
+  }
+
+  var _createClass = function () {
+    function defineProperties(target, props) {
+      for (var i = 0; i < props.length; i++) {
+        var descriptor = props[i];
+        descriptor.enumerable = descriptor.enumerable || false;
+        descriptor.configurable = true;
+        if ("value" in descriptor) descriptor.writable = true;
+        Object.defineProperty(target, descriptor.key, descriptor);
+      }
+    }
+
+    return function (Constructor, protoProps, staticProps) {
+      if (protoProps) defineProperties(Constructor.prototype, protoProps);
+      if (staticProps) defineProperties(Constructor, staticProps);
+      return Constructor;
+    };
+  }();
+
+  function _possibleConstructorReturn(self, call) {
+    if (!self) {
+      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+    }
+
+    return call && (typeof call === "object" || typeof call === "function") ? call : self;
+  }
+
+  var _get = function get(object, property, receiver) {
+    if (object === null) object = Function.prototype;
+    var desc = Object.getOwnPropertyDescriptor(object, property);
+
+    if (desc === undefined) {
+      var parent = Object.getPrototypeOf(object);
+
+      if (parent === null) {
+        return undefined;
+      } else {
+        return get(parent, property, receiver);
+      }
+    } else if ("value" in desc) {
+      return desc.value;
+    } else {
+      var getter = desc.get;
+
+      if (getter === undefined) {
+        return undefined;
+      }
+
+      return getter.call(receiver);
+    }
+  };
+
+  function _inherits(subClass, superClass) {
+    if (typeof superClass !== "function" && superClass !== null) {
+      throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
+    }
+
+    subClass.prototype = Object.create(superClass && superClass.prototype, {
+      constructor: {
+        value: subClass,
+        enumerable: false,
+        writable: true,
+        configurable: true
+      }
+    });
+    if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
+  }
+
+  /**
+   * @author zhixin wen <wenzhixin2010@gmail.com>
+   * https://github.com/wenzhixin/bootstrap-table/
+   * theme: https://github.com/jgthms/bulma/
+   */
+
+  (function ($) {
+    $.extend($.fn.bootstrapTable.defaults, {
+      classes: 'table highlight',
+      buttonsPrefix: '',
+      buttonsClass: 'waves-effect waves-light btn',
+      iconsPrefix: 'material-icons',
+      icons: {
+        paginationSwitchDown: 'grid_on',
+        paginationSwitchUp: 'grid_off',
+        refresh: 'refresh',
+        toggleOff: 'tablet',
+        toggleOn: 'tablet_android',
+        columns: 'view_list',
+        detailOpen: 'add',
+        detailClose: 'remove',
+        fullscreen: 'fullscreen'
+      }
+    });
+
+    $.BootstrapTable = function (_$$BootstrapTable) {
+      _inherits(_class, _$$BootstrapTable);
+
+      function _class() {
+        _classCallCheck(this, _class);
+
+        return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
+      }
+
+      _createClass(_class, [{
+        key: 'initConstants',
+        value: function initConstants() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initConstants', this).call(this);
+
+          this.constants.theme = 'materialize';
+
+          this.constants.classes.buttonsGroup = '';
+          this.constants.classes.buttonsDropdown = '';
+          this.constants.classes.input = 'input-field';
+          this.constants.classes.input = '';
+          this.constants.classes.paginationDropdown = '';
+
+          this.constants.html.toobarDropdow = ['<ul id="toolbar-dropdown" class="dropdown-content">', '</ul>'];
+          this.constants.html.toobarDropdowItem = '<li><label>%s</label></li>';
+          this.constants.html.pageDropdown = ['<ul id="page-list-dropdown" class="dropdown-content">', '</ul>'];
+          this.constants.html.pageDropdownItem = '<li><a class="%s" href="#">%s</a></li>';
+          this.constants.html.dropdownCaret = '<i class="material-icons">arrow_drop_down</i>';
+          this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'], this.constants.html.paginationItem = '<li class="waves-effect page-item%s"><a href="#">%s</a></li>';
+          this.constants.html.icon = '<i class="%s">%s</i>';
+        }
+      }, {
+        key: 'initToolbar',
+        value: function initToolbar() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initToolbar', this).call(this);
+
+          if (this.options.showColumns) {
+            this.$toolbar.find('.dropdown-toggle').attr('data-target', 'toolbar-dropdown').dropdown({
+              alignment: 'right',
+              constrainWidth: false,
+              closeOnClick: false
+            });
+          }
+        }
+      }, {
+        key: 'initPagination',
+        value: function initPagination() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initPagination', this).call(this);
+
+          if (this.pagination && !this.options.onlyInfoPagination) {
+            this.$pagination.find('.dropdown-toggle').attr('data-target', 'page-list-dropdown').dropdown();
+          }
+        }
+      }]);
+
+      return _class;
+    }($.BootstrapTable);
+  })(jQuery);
+});

文件差异内容过多而无法显示
+ 10 - 0
dist/themes/materialize/bootstrap-table-materialize.min.css


文件差异内容过多而无法显示
+ 10 - 0
dist/themes/materialize/bootstrap-table-materialize.min.js


+ 269 - 0
dist/themes/semantic/bootstrap-table-semantic.css

@@ -0,0 +1,269 @@
+@charset "UTF-8";
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ * https://github.com/wenzhixin/bootstrap-table/
+ * theme: https://github.com/Semantic-Org/Semantic-UI
+ */
+.bootstrap-table .fixed-table-toolbar:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-toolbar .bs-bars,
+.bootstrap-table .fixed-table-toolbar .search,
+.bootstrap-table .fixed-table-toolbar .columns {
+  position: relative;
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group {
+  display: inline-block;
+  margin-left: -1px !important;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:first-child > .btn {
+  border-top-left-radius: 4px;
+  border-bottom-left-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group:last-child > .btn {
+  border-top-right-radius: 4px;
+  border-bottom-right-radius: 4px;
+}
+.bootstrap-table .fixed-table-toolbar .columns .btn-group > .btn-group > .btn {
+  border-radius: 0;
+}
+.bootstrap-table .fixed-table-toolbar .columns .dropdown-menu {
+  text-align: left;
+  max-height: 300px;
+  overflow: auto;
+}
+.bootstrap-table .fixed-table-toolbar .columns label {
+  display: block;
+  padding: 3px 20px;
+  clear: both;
+  font-weight: normal;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-toolbar .columns-left {
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .columns-right {
+  margin-left: 5px;
+}
+.bootstrap-table .fixed-table-toolbar .pull-right .dropdown-menu {
+  right: 0;
+  left: auto;
+}
+.bootstrap-table .fixed-table-container {
+  position: relative;
+  clear: both;
+}
+.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer) {
+  border-bottom: 1px solid rgba(34, 36, 38, 0.1);
+}
+.bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
+  border-left: 1px solid rgba(34, 36, 38, 0.1);
+  border-right: 1px solid rgba(34, 36, 38, 0.1);
+}
+.bootstrap-table .fixed-table-container.fixed-height .table thead th {
+  border-bottom: 1px solid rgba(34, 36, 38, 0.1);
+}
+.bootstrap-table .fixed-table-container.fixed-height .table-dark thead th {
+  border-bottom: 1px solid #32383e;
+}
+.bootstrap-table .fixed-table-container .fixed-table-header {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body {
+  overflow-x: auto;
+  overflow-y: auto;
+  height: 100%;
+}
+.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
+  display: none;
+  position: absolute;
+  top: 42px;
+  right: 0;
+  bottom: 0;
+  left: 0;
+  z-index: 99;
+  background-color: #fff;
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table {
+  width: 100%;
+  margin-bottom: 0 !important;
+}
+.bootstrap-table .fixed-table-container .table th,
+.bootstrap-table .fixed-table-container .table td {
+  vertical-align: middle;
+  box-sizing: border-box;
+}
+.bootstrap-table .fixed-table-container .table thead th {
+  vertical-align: bottom;
+  padding: 0;
+  margin: 0;
+}
+.bootstrap-table .fixed-table-container .table thead th:focus {
+  outline: 0 solid transparent;
+}
+.bootstrap-table .fixed-table-container .table thead th.detail {
+  width: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .th-inner {
+  padding: 0.75rem;
+  vertical-align: bottom;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.bootstrap-table .fixed-table-container .table thead th .sortable {
+  cursor: pointer;
+  background-position: right;
+  background-repeat: no-repeat;
+  padding-right: 30px;
+}
+.bootstrap-table .fixed-table-container .table thead th .both {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC");
+}
+.bootstrap-table .fixed-table-container .table thead th .asc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==");
+}
+.bootstrap-table .fixed-table-container .table thead th .desc {
+  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ");
+}
+.bootstrap-table .fixed-table-container .table tbody tr.selected td {
+  background-color: rgba(0, 0, 0, 0.075);
+}
+.bootstrap-table .fixed-table-container .table tbody tr.no-records-found {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table tbody tr .card-view .card-view-title {
+  font-weight: bold;
+  display: inline-block;
+  min-width: 30%;
+  text-align: left !important;
+}
+.bootstrap-table .fixed-table-container .table .bs-checkbox {
+  text-align: center;
+}
+.bootstrap-table .fixed-table-container .table input[type=radio],
+.bootstrap-table .fixed-table-container .table input[type=checkbox] {
+  margin: 0 auto !important;
+}
+.bootstrap-table .fixed-table-container .table.table-sm .th-inner {
+  padding: 0.3rem;
+}
+.bootstrap-table .fixed-table-container .fixed-table-footer {
+  overflow: hidden;
+}
+.bootstrap-table .fixed-table-pagination:after {
+  content: "";
+  display: block;
+  clear: both;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail,
+.bootstrap-table .fixed-table-pagination > .pagination {
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .pagination-info {
+  line-height: 34px;
+  margin-right: 5px;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list {
+  display: inline-block;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group {
+  position: relative;
+  display: inline-block;
+  vertical-align: middle;
+}
+.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group .dropdown-menu {
+  margin-bottom: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination {
+  margin: 0;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination a {
+  padding: 6px 12px;
+  line-height: 1.428571429;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a {
+  color: #c8c8c8;
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:before {
+  content: "⬅";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.page-intermediate a:after {
+  content: "➡";
+}
+.bootstrap-table .fixed-table-pagination > .pagination ul.pagination li.disabled a {
+  pointer-events: none;
+  cursor: default;
+}
+.bootstrap-table.fullscreen {
+  position: fixed;
+  top: 0;
+  left: 0;
+  z-index: 1050;
+  width: 100% !important;
+  background: #FFF;
+}
+
+/* calculate scrollbar width */
+div.fixed-table-scroll-inner {
+  width: 100%;
+  height: 200px;
+}
+
+div.fixed-table-scroll-outer {
+  top: 0;
+  left: 0;
+  visibility: hidden;
+  width: 200px;
+  height: 150px;
+  overflow: hidden;
+}
+
+.bootstrap-table .fixed-table-container.fixed-height:not(.has-footer),
+.bootstrap-table .fixed-table-body {
+  border-bottom-left-radius: 0.28571429rem;
+  border-bottom-right-radius: 0.28571429rem;
+}
+.bootstrap-table .float-left {
+  float: left;
+}
+.bootstrap-table .float-right {
+  float: right;
+}
+.bootstrap-table .fixed-table-toolbar .search input {
+  padding-top: 0.60714286rem;
+  padding-bottom: 0.60714286rem;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown {
+  padding: 0;
+}
+.bootstrap-table .fixed-table-toolbar .keep-open.button.dropdown .button {
+  border-top-left-radius: 0;
+  border-bottom-left-radius: 0;
+}
+.bootstrap-table .fixed-table-toolbar .ui.buttons .button:last-child .button {
+  border-top-right-radius: 0.285714rem;
+  border-bottom-right-radius: 0.28571429rem;
+}
+.bootstrap-table .fixed-table-header .table {
+  border-bottom-left-radius: 0;
+  border-bottom-right-radius: 0;
+  border-bottom: none;
+}
+.bootstrap-table .table {
+  background: transparent;
+}
+.bootstrap-table .table thead th[data-not-first-th] {
+  border-left: 1px solid rgba(34, 36, 38, 0.1) !important;
+}
+.bootstrap-table .dropup i.icon.dropdown:before {
+  content: "";
+}
+
+/*# sourceMappingURL=bootstrap-table-semantic.css.map */

+ 151 - 0
dist/themes/semantic/bootstrap-table-semantic.js

@@ -0,0 +1,151 @@
+(function (global, factory) {
+  if (typeof define === "function" && define.amd) {
+    define([], factory);
+  } else if (typeof exports !== "undefined") {
+    factory();
+  } else {
+    var mod = {
+      exports: {}
+    };
+    factory();
+    global.bootstrapTableSemantic = mod.exports;
+  }
+})(this, function () {
+  'use strict';
+
+  function _classCallCheck(instance, Constructor) {
+    if (!(instance instanceof Constructor)) {
+      throw new TypeError("Cannot call a class as a function");
+    }
+  }
+
+  var _createClass = function () {
+    function defineProperties(target, props) {
+      for (var i = 0; i < props.length; i++) {
+        var descriptor = props[i];
+        descriptor.enumerable = descriptor.enumerable || false;
+        descriptor.configurable = true;
+        if ("value" in descriptor) descriptor.writable = true;
+        Object.defineProperty(target, descriptor.key, descriptor);
+      }
+    }
+
+    return function (Constructor, protoProps, staticProps) {
+      if (protoProps) defineProperties(Constructor.prototype, protoProps);
+      if (staticProps) defineProperties(Constructor, staticProps);
+      return Constructor;
+    };
+  }();
+
+  function _possibleConstructorReturn(self, call) {
+    if (!self) {
+      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+    }
+
+    return call && (typeof call === "object" || typeof call === "function") ? call : self;
+  }
+
+  var _get = function get(object, property, receiver) {
+    if (object === null) object = Function.prototype;
+    var desc = Object.getOwnPropertyDescriptor(object, property);
+
+    if (desc === undefined) {
+      var parent = Object.getPrototypeOf(object);
+
+      if (parent === null) {
+        return undefined;
+      } else {
+        return get(parent, property, receiver);
+      }
+    } else if ("value" in desc) {
+      return desc.value;
+    } else {
+      var getter = desc.get;
+
+      if (getter === undefined) {
+        return undefined;
+      }
+
+      return getter.call(receiver);
+    }
+  };
+
+  function _inherits(subClass, superClass) {
+    if (typeof superClass !== "function" && superClass !== null) {
+      throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
+    }
+
+    subClass.prototype = Object.create(superClass && superClass.prototype, {
+      constructor: {
+        value: subClass,
+        enumerable: false,
+        writable: true,
+        configurable: true
+      }
+    });
+    if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
+  }
+
+  /**
+   * @author zhixin wen <wenzhixin2010@gmail.com>
+   * https://github.com/wenzhixin/bootstrap-table/
+   * theme: https://github.com/Semantic-Org/Semantic-UI
+   */
+
+  (function ($) {
+    $.extend($.fn.bootstrapTable.defaults, {
+      classes: 'ui selectable celled table',
+      buttonsPrefix: '',
+      buttonsClass: 'ui button'
+    });
+
+    $.BootstrapTable = function (_$$BootstrapTable) {
+      _inherits(_class, _$$BootstrapTable);
+
+      function _class() {
+        _classCallCheck(this, _class);
+
+        return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
+      }
+
+      _createClass(_class, [{
+        key: 'initConstants',
+        value: function initConstants() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initConstants', this).call(this);
+
+          this.constants.theme = 'semantic';
+
+          this.constants.classes.buttonsGroup = 'ui buttons';
+          this.constants.classes.buttonsDropdown = 'ui button dropdown';
+          this.constants.classes.inputGroup = 'ui input';
+          this.constants.classes.paginationDropdown = 'ui dropdown';
+
+          this.constants.html.toobarDropdow = ['<div class="menu">', '</div>'];
+          this.constants.html.toobarDropdowItem = '<label class="item">%s</label>';
+          this.constants.html.pageDropdown = ['<div class="menu">', '</div>'];
+          this.constants.html.pageDropdownItem = '<a class="item %s" href="#">%s</a>';
+          this.constants.html.dropdownCaret = '<i class="dropdown icon"></i>';
+          this.constants.html.pagination = ['<div class="ui pagination menu%s">', '</div>'], this.constants.html.paginationItem = '<a class="page-item item%s" href="#">%s</a>';
+        }
+      }, {
+        key: 'initToolbar',
+        value: function initToolbar() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initToolbar', this).call(this);
+          if (this.options.showColumns) {
+            this.$toolbar.find('.button.dropdown').dropdown();
+          }
+        }
+      }, {
+        key: 'initPagination',
+        value: function initPagination() {
+          _get(_class.prototype.__proto__ || Object.getPrototypeOf(_class.prototype), 'initPagination', this).call(this);
+          if (this.options.pagination && !this.options.onlyInfoPagination) {
+            this.$pagination.find('.dropdown').dropdown();
+          }
+        }
+      }]);
+
+      return _class;
+    }($.BootstrapTable);
+  })(jQuery);
+});

文件差异内容过多而无法显示
+ 10 - 0
dist/themes/semantic/bootstrap-table-semantic.min.css


文件差异内容过多而无法显示
+ 10 - 0
dist/themes/semantic/bootstrap-table-semantic.min.js