浏览代码

Update 'queryParams' and 'queryParamsType' default docs.

zhixin 11 年之前
父节点
当前提交
16f4630c94
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      README.md
  2. 2 2
      docs/docs.js

+ 1 - 0
README.md

@@ -22,6 +22,7 @@ The table displays data in a tabular format and offers rich support to radio, ch
 - [x] Fix #117: Add `updateRow` method.
 - [x] Fix #96, #103: apply `class` option to td elements.
 - [x] Fix #97: add `sortable` class to header cells instead of `cursor: pointer`.
+- [x] Fix #124: change 'queryParams' and 'queryParamsType' default option.
 
 ## Features
 

+ 2 - 2
docs/docs.js

@@ -192,7 +192,7 @@ $(function () {
                     type: 'Function',
                     description: 'When request remote data, sending additional parameters by format the queryParams, the parameters object contains: <br>pageSize, pageNumber, searchText, sortName, sortOrder.',
                     description_zh: '远程数据请求时,可以通过queryParams来格式化所需要的数据信息,参数(对象)包含了:<br>pageSize, pageNumber, searchText, sortName, sortOrder。',
-                    'default': 'function(params) {<br>return {};<br>}',
+                    'default': 'function(params) {<br>return params;<br>}',
                     example: 'server-side-pagination-table'
                 },
                 {
@@ -201,7 +201,7 @@ $(function () {
                     type: 'String',
                     description: 'Set "limit" to send query params width RESTFul type.',
                     description_zh: '设置为“limit”可以发送标准的RESTFul类型的参数请求。',
-                    'default': 'undefined',
+                    'default': 'limit',
                     example: ''
                 },
                 {