Browse Source

fixed linting (#6296)

Dustin Utecht 3 years ago
parent
commit
85ac1afa8a

+ 3 - 2
src/extensions/group-by-v2/bootstrap-table-group-by.js

@@ -83,8 +83,9 @@ BootstrapTable.prototype.initSort = function (...args) {
       const groupByFields = this.getGroupByFields()
       const groupValues = []
 
-    $.each(groupByFields, (i, field) => {
-        let value_ = Utils.getItemField(item, field, that.options.escape, item.escape)
+      $.each(groupByFields, (i, field) => {
+        const value_ = Utils.getItemField(item, field, that.options.escape, item.escape)
+
         groupValues.push(value_)
       })
 

+ 4 - 4
src/extensions/print/bootstrap-table-print.js

@@ -133,10 +133,10 @@ $.BootstrapTable = class extends $.BootstrapTable {
     })
   }
 
-    doPrint(data) {
-      var _this2 = this
-      const formatValue = (row, i, column) => {
-      let value_ = Utils.getItemField(row, column.field, _this2.options.escape, column.escape);
+  doPrint (data) {
+    const _this2 = this
+    const formatValue = (row, i, column) => {
+      const value_ = Utils.getItemField(row, column.field, _this2.options.escape, column.escape)
       const value = Utils.calculateObjectValue(column,
         column.printFormatter || column.formatter,
         [value_, row, i], value_)