浏览代码

Merge pull request #4142 from TantumLabs/patch-1

Fix auto-refresh icon
文翼 6 年之前
父节点
当前提交
fcc3202b3d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/auto-refresh/bootstrap-table-auto-refresh.js

+ 1 - 1
src/extensions/auto-refresh/bootstrap-table-auto-refresh.js

@@ -17,7 +17,7 @@
     });
 
     $.extend($.fn.bootstrapTable.defaults.icons, {
-        autoRefresh: 'glyphicon-time icon-time'
+        autoRefresh: $.fn.bootstrapTable.utils.bootstrapVersion === 4 ? 'fa-clock' : 'glyphicon-time icon-time'
     });
 
     $.extend($.fn.bootstrapTable.locales, {