ソースを参照

Fix #124: change 'queryParams' and 'queryParamsType' default option.

zhixin 11 年 前
コミット
462590836a
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -102,8 +102,8 @@
         url: undefined,
         cache: true,
         contentType: 'application/json',
-        queryParams: function (params) {return {};},
-        queryParamsType: undefined,
+        queryParams: function (params) {return params;},
+        queryParamsType: 'limit', // undefined
         responseHandler: function (res) {return res;},
         pagination: false,
         sidePagination: 'client', // client or server