cnhis-design-vue 3.1.35-beta.7 → 3.1.35-beta.8

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.
@@ -729,7 +729,10 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
729
729
  records: any;
730
730
  }) => void;
731
731
  radioOnChange: (rowData?: {}) => void;
732
- sortChange: (params: any) => false | undefined;
732
+ sortChange: ({ property, order }: {
733
+ property: any;
734
+ order: any;
735
+ }) => false | undefined;
733
736
  showDrawer: () => void;
734
737
  handleCellMouseenter: ({ column, $event }: {
735
738
  column: any;
@@ -728,7 +728,10 @@ declare const _default: import("vue").DefineComponent<{
728
728
  records: any;
729
729
  }) => void;
730
730
  radioOnChange: (rowData?: {}) => void;
731
- sortChange: (params: any) => false | undefined;
731
+ sortChange: ({ property, order }: {
732
+ property: any;
733
+ order: any;
734
+ }) => false | undefined;
732
735
  showDrawer: () => void;
733
736
  handleCellMouseenter: ({ column, $event }: {
734
737
  column: any;
@@ -1543,11 +1543,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1543
1543
  ...row
1544
1544
  }]);
1545
1545
  };
1546
- const sortChange = (params) => {
1546
+ const sortChange = ({
1547
+ property,
1548
+ order
1549
+ }) => {
1550
+ var _a;
1547
1551
  if (props.isInlineOperating)
1548
1552
  return false;
1549
1553
  Object.values(state.filterFields).forEach((item) => item.filterSort = null);
1550
- emit("sortChange", params);
1554
+ const column = (_a = props.columnConfig.fieldList) == null ? void 0 : _a.find((item) => item.columnName === property);
1555
+ emit("sortChange", {
1556
+ prop: property,
1557
+ order,
1558
+ column
1559
+ });
1551
1560
  };
1552
1561
  const showDrawer = () => {
1553
1562
  const theads = xGrid.value.$el.childNodes[0].childNodes[1].childNodes[0].getElementsByClassName("mycolumn");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.35-beta.7",
3
+ "version": "3.1.35-beta.8",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "729db00ab64f15badc393c12e590b98351d3ba6d"
64
+ "gitHead": "e51dcca5953ba852986adb6553afbe518ffc0540"
65
65
  }