@ibiz-template/runtime 0.7.41-alpha.96 → 0.7.41-alpha.97

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/dist/index.esm.js CHANGED
@@ -29993,7 +29993,7 @@ var MDControlController = class extends ControlController {
29993
29993
  "".concat(this.view.model.id, ".").concat(this.model.name, ".sort")
29994
29994
  );
29995
29995
  } else if (minorSortAppDEFieldId && minorSortDir) {
29996
- const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId);
29996
+ const fieldName = this.fieldIdNameMap.get(minorSortAppDEFieldId) || minorSortAppDEFieldId;
29997
29997
  this.state.sortQuery = "".concat(fieldName.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
29998
29998
  } else if (ibiz.config.mdctrldefaultsort) {
29999
29999
  this.state.sortQuery = ibiz.config.mdctrldefaultsort;
@@ -52177,9 +52177,10 @@ var GridController = class extends MDControlController {
52177
52177
  * @param {string} order 排序顺序
52178
52178
  */
52179
52179
  setSort(fieldId, order) {
52180
+ var _a3;
52180
52181
  let fieldName;
52181
52182
  if (fieldId) {
52182
- fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : this.fieldIdNameMap.get(fieldId).toLowerCase();
52183
+ fieldName = this.state.isAutoGrid ? fieldId.toLowerCase() : ((_a3 = this.fieldIdNameMap.get(fieldId)) == null ? void 0 : _a3.toLowerCase()) || fieldId.toLowerCase();
52183
52184
  }
52184
52185
  super.setSort(fieldName, order);
52185
52186
  }