浏览代码

Merge branch 'develop' into develop

文翼 4 年之前
父节点
当前提交
99c2783201

+ 1 - 1
package.json

@@ -21,7 +21,7 @@
     "foreach-cli": "^1.8.1",
     "glob": "^7.1.4",
     "headr": "^0.0.4",
-    "node-sass": "^6.0.0",
+    "node-sass": "^7.0.0",
     "npm-run-all": "^4.1.5",
     "rimraf": "^3.0.2",
     "rollup": "^2.6.1",

+ 3 - 5
src/extensions/cookie/bootstrap-table-cookie.js

@@ -511,16 +511,14 @@ $.BootstrapTable = class extends $.BootstrapTable {
       throw new Error('Could not parse the json of the sortPriority cookie!', sortPriorityCookie)
     }
 
-    // sortOrder
-    this.options.sortOrder = undefined
-    // sortName
-    this.options.sortName = undefined
-
     if (!sortPriorityCookie) {
       // sortOrder
       this.options.sortOrder = sortOrderCookie ? sortOrderCookie : this.options.sortOrder
       // sortName
       this.options.sortName = sortOrderNameCookie ? sortOrderNameCookie : this.options.sortName
+    } else {
+      this.options.sortOrder = undefined
+      this.options.sortName = undefined
     }
 
     // sortPriority

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

@@ -277,7 +277,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
     const table = buildTable(data, this.options.columns)
     const newWin = window.open('')
 
-    newWin.document.write(this.options.printPageBuilder.call(this, table))
+    const calculatedPrintPage = Utils.calculateObjectValue(this, this.options.printPageBuilder, [table], printPageBuilderDefault(table))
+
+    newWin.document.write(calculatedPrintPage)
     newWin.document.close()
     newWin.focus()
     newWin.print()

+ 110 - 0
src/locale/bootstrap-table-hi-IN.js

@@ -0,0 +1,110 @@
+/**
+ * Bootstrap Table Hindi translation
+ * Author: Saurabh Sharma <saurabhsharma2u@gmail.com>
+ */
+
+$.fn.bootstrapTable.locales['hi-IN'] = {
+  formatCopyRows () {
+    return 'पंक्तियों की कॉपी करें'
+  },
+  formatPrint () {
+    return 'प्रिंट'
+  },
+  formatLoadingMessage () {
+    return 'लोड हो रहा है कृपया प्रतीक्षा करें'
+  },
+  formatRecordsPerPage (pageNumber) {
+    return `${pageNumber} प्रति पृष्ठ पंक्तियाँ`
+  },
+  formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
+    if (
+      totalNotFiltered !== undefined &&
+      totalNotFiltered > 0 &&
+      totalNotFiltered > totalRows
+    ) {
+      return `${pageFrom} - ${pageTo} पक्तिया ${totalRows} में से ( ${totalNotFiltered} पक्तिया)`
+    }
+
+    return `${pageFrom} - ${pageTo} पक्तिया ${totalRows} में से`
+  },
+  formatSRPaginationPreText () {
+    return 'पिछला पृष्ठ'
+  },
+  formatSRPaginationPageText (page) {
+    return `${page} पृष्ठ पर`
+  },
+  formatSRPaginationNextText () {
+    return 'अगला पृष्ठ'
+  },
+  formatDetailPagination (totalRows) {
+    return `${totalRows} पंक्तियां`
+  },
+  formatClearSearch () {
+    return 'सर्च क्लिअर करें'
+  },
+  formatSearch () {
+    return 'सर्च'
+  },
+  formatNoMatches () {
+    return 'मेल खाते रिकॉर्ड नही मिले'
+  },
+  formatPaginationSwitch () {
+    return 'छुपाओ/दिखाओ पृष्ठ संख्या'
+  },
+  formatPaginationSwitchDown () {
+    return 'दिखाओ पृष्ठ संख्या'
+  },
+  formatPaginationSwitchUp () {
+    return 'छुपाओ पृष्ठ संख्या'
+  },
+  formatRefresh () {
+    return 'रिफ्रेश'
+  },
+  formatToggle () {
+    return 'टॉगल'
+  },
+  formatToggleOn () {
+    return 'कार्ड दृश्य दिखाएं'
+  },
+  formatToggleOff () {
+    return 'कार्ड दृश्य छुपाएं'
+  },
+  formatColumns () {
+    return 'कॉलम'
+  },
+  formatColumnsToggleAll () {
+    return 'टॉगल आल'
+  },
+  formatFullscreen () {
+    return 'पूर्ण स्क्रीन'
+  },
+  formatAllRows () {
+    return 'सब'
+  },
+  formatAutoRefresh () {
+    return 'ऑटो रिफ्रेश'
+  },
+  formatExport () {
+    return 'एक्सपोर्ट डाटा'
+  },
+  formatJumpTo () {
+    return 'जाओ'
+  },
+  formatAdvancedSearch () {
+    return 'एडवांस सर्च'
+  },
+  formatAdvancedCloseButton () {
+    return 'बंद करे'
+  },
+  formatFilterControlSwitch () {
+    return 'छुपाओ/दिखाओ कंट्रोल्स'
+  },
+  formatFilterControlSwitchHide () {
+    return 'छुपाओ कंट्रोल्स'
+  },
+  formatFilterControlSwitchShow () {
+    return 'दिखाओ कंट्रोल्स'
+  }
+}
+
+$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['hi-IN'])