浏览代码

added support for the print extension

NAME 5 年之前
父节点
当前提交
cb30e7f1cb

+ 2 - 1
src/extensions/print/bootstrap-table-print.js

@@ -66,7 +66,8 @@ $.extend($.fn.bootstrapTable.COLUMN_DEFAULTS, {
 
 
 $.extend($.fn.bootstrapTable.defaults.icons, {
 $.extend($.fn.bootstrapTable.defaults.icons, {
   print: {
   print: {
-    bootstrap3: 'glyphicon-print icon-share'
+    bootstrap3: 'glyphicon-print icon-share',
+    'bootstrap-table': 'icon-printer'
   }[$.fn.bootstrapTable.theme] || 'fa-print'
   }[$.fn.bootstrapTable.theme] || 'fa-print'
 })
 })
 
 

+ 8 - 5
src/themes/bootstrap-table/font.scss

@@ -1,10 +1,10 @@
 @font-face {
 @font-face {
   font-family: 'bootstrap-table';
   font-family: 'bootstrap-table';
-  src:  url('fonts/bootstrap-table.eot?gpxx6w');
-  src:  url('fonts/bootstrap-table.eot?gpxx6w#iefix') format('embedded-opentype'),
-  url('fonts/bootstrap-table.ttf?gpxx6w') format('truetype'),
-  url('fonts/bootstrap-table.woff?gpxx6w') format('woff'),
-  url('fonts/bootstrap-table.svg?gpxx6w#bootstrap-table') format('svg');
+  src:  url('fonts/bootstrap-table.eot?gh2p5u');
+  src:  url('fonts/bootstrap-table.eot?gh2p5u#iefix') format('embedded-opentype'),
+  url('fonts/bootstrap-table.ttf?gh2p5u') format('truetype'),
+  url('fonts/bootstrap-table.woff?gh2p5u') format('woff'),
+  url('fonts/bootstrap-table.svg?gh2p5u#bootstrap-table') format('svg');
   font-weight: normal;
   font-weight: normal;
   font-style: normal;
   font-style: normal;
   font-display: block;
   font-display: block;
@@ -49,6 +49,9 @@
 .icon-move:before {
 .icon-move:before {
   content: "\e903";
   content: "\e903";
 }
 }
+.icon-printer:before {
+  content: "\e90b";
+}
 .icon-refresh-cw:before {
 .icon-refresh-cw:before {
   content: "\e904";
   content: "\e904";
 }
 }

二进制
src/themes/bootstrap-table/fonts/bootstrap-table.eot


文件差异内容过多而无法显示
+ 1 - 0
src/themes/bootstrap-table/fonts/bootstrap-table.svg


二进制
src/themes/bootstrap-table/fonts/bootstrap-table.ttf


二进制
src/themes/bootstrap-table/fonts/bootstrap-table.woff