agilebuilder-ui 1.1.4-temp4 → 1.1.4-temp6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.4-temp4",
3
+ "version": "1.1.4-temp6",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -410,6 +410,10 @@ export default {
410
410
  pageContext = this.options.pageContext
411
411
  }
412
412
  const isMobile = isMobileBrowser()
413
+ let checkStrictly = false
414
+ if (this.options.checkStrictly) {
415
+ checkStrictly = true
416
+ }
413
417
  return {
414
418
  isLoading: false,
415
419
  currentPage: 1,
@@ -433,6 +437,7 @@ export default {
433
437
  timer2: null,
434
438
  isSql: false, // 是否是sql查询
435
439
  parentProp, // 树状结构数据时,父字段名,默认是id
440
+ checkStrictly,
436
441
  hasLoadData: false,
437
442
  mergeFields,
438
443
  newWidth: null,
@@ -2168,10 +2173,10 @@ export default {
2168
2173
  // 表示更改了排序信息
2169
2174
  searchParam.sorts = this.sortInfo
2170
2175
  }
2171
- if (!searchParam.sorts) {
2172
- searchParam.sorts = []
2173
- }
2174
2176
  if (this.mergeFields && this.mergeFields.length > 0) {
2177
+ if (!searchParam.sorts) {
2178
+ searchParam.sorts = []
2179
+ }
2175
2180
  const mergeFieldsArr = []
2176
2181
  for (const mergeField of this.mergeFields) {
2177
2182
  let flag = true
@@ -2191,10 +2196,6 @@ export default {
2191
2196
  mergeFieldsArr.push(...searchParam.sorts)
2192
2197
  searchParam.sorts = mergeFieldsArr
2193
2198
  }
2194
- debugger
2195
- if (gridParams.options.initSortInfo) {
2196
- searchParam.sorts.push(gridParams.options.initSortInfo)
2197
- }
2198
2199
  // 是否有初始过滤条件
2199
2200
  if (gridParams.options && typeof gridParams.options.initSearchForm !== 'undefined') {
2200
2201
  searchParam.initSearchForm = gridParams.options.initSearchForm
@@ -2980,6 +2981,9 @@ export default {
2980
2981
  }
2981
2982
  treeProps.hasChildren = hasChildren
2982
2983
  }
2984
+ if (this.checkStrictly) {
2985
+ treeProps.checkStrictly = true
2986
+ }
2983
2987
  return treeProps
2984
2988
  },
2985
2989
  refreshSubTableData(data) {