ap-dev 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,7 +84,7 @@ export default {
84
84
  default: '',
85
85
  memo: `数据加载参数<br>
86
86
  <span class="api-memo">注:对象内容见示例。</span>`,
87
- code: `<div class="api-code">oloadOptions: {
87
+ code: `<div class="api-code">loadOptions: {
88
88
  url: "/xxx",// 数据请求路径
89
89
  data: () => {
90
90
  // 数据请求参数
@@ -96,10 +96,11 @@ export default {
96
96
  error() {
97
97
  console.log("数据请求失败回调")
98
98
  },
99
- // 树值映射
99
+ // 树值映射:默认如下
100
100
  treeKey: {
101
101
  idKey: "fdId", // id
102
- parentKey: "fdParentId", // parentId
102
+ parentKey: "fdParentId", // 父id
103
+ sortKey: "fdSort", // 排序
103
104
  childrenKey: "children", // 子节点参数
104
105
  label: "fdName" // 显示参数
105
106
  },
@@ -159,6 +160,12 @@ export default {
159
160
  default: '',
160
161
  memo: `一键排序更加`,
161
162
  code: `updateSortListUrl: "/apm/xxx",`
163
+ },{
164
+ name: 'sortByTree',
165
+ type: '布尔',
166
+ default: 'true',
167
+ memo: `一键排序方式:true按树顺序 false按树节点顺序`,
168
+ code: `sortByTree: false,`
162
169
  },{
163
170
  name: 'resetForm',
164
171
  type: '方法',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",