cnhis-design-vue 3.1.21-beta.10 → 3.1.21-beta.12

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.
@@ -329,6 +329,14 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
329
329
  showInsertStatus?: boolean | undefined;
330
330
  showAsterisk?: boolean | undefined;
331
331
  autoClear?: boolean | undefined;
332
+ beforeEditMethod?: ((params: {
333
+ row: any;
334
+ rowIndex: number;
335
+ column: import("vxe-table").VxeTableDefines.ColumnInfo;
336
+ columnIndex: number;
337
+ $table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
338
+ $grid: import("vxe-table").VxeGridConstructor | null | undefined;
339
+ }) => boolean) | undefined;
332
340
  activeMethod?: ((params: {
333
341
  row: any;
334
342
  rowIndex: number;
@@ -722,10 +730,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
722
730
  handleCheckAll: () => void;
723
731
  handleCancelAllCheck: () => void;
724
732
  getRowClassName: (params: any) => any;
725
- footerMethod: ({ columns, data }: {
726
- columns: any;
727
- data: any;
728
- }) => any[];
733
+ footerMethod: (payload: any) => any;
729
734
  loadChildrenMethod: ({ row }: {
730
735
  row: any;
731
736
  }) => Promise<any>;
@@ -327,6 +327,14 @@ declare const _default: import("vue").DefineComponent<{
327
327
  showInsertStatus?: boolean | undefined;
328
328
  showAsterisk?: boolean | undefined;
329
329
  autoClear?: boolean | undefined;
330
+ beforeEditMethod?: ((params: {
331
+ row: any;
332
+ rowIndex: number;
333
+ column: import("vxe-table").VxeTableDefines.ColumnInfo;
334
+ columnIndex: number;
335
+ $table: import("vxe-table").VxeTableConstructor & import("vxe-table").VxeTablePrivateMethods;
336
+ $grid: import("vxe-table").VxeGridConstructor | null | undefined;
337
+ }) => boolean) | undefined;
330
338
  activeMethod?: ((params: {
331
339
  row: any;
332
340
  rowIndex: number;
@@ -720,10 +728,7 @@ declare const _default: import("vue").DefineComponent<{
720
728
  handleCheckAll: () => void;
721
729
  handleCancelAllCheck: () => void;
722
730
  getRowClassName: (params: any) => any;
723
- footerMethod: ({ columns, data }: {
724
- columns: any;
725
- data: any;
726
- }) => any[];
731
+ footerMethod: (payload: any) => any;
727
732
  loadChildrenMethod: ({ row }: {
728
733
  row: any;
729
734
  }) => Promise<any>;
@@ -494,7 +494,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
494
494
  } else {
495
495
  col.slots.header = toolTipTitle(item);
496
496
  }
497
- if (!isScanMultiTable2) {
497
+ if (!isScanMultiTable2 && !isFunction(attr.footerMethod) && !isFunction(attr["footer-method"])) {
498
498
  col.slots.footer = "tooltip_footer";
499
499
  }
500
500
  if (props.showNestTable && state.isTree == 0 && ((_g = props.curNestColumnConfig) == null ? void 0 : _g.isTree) == 0) {
@@ -1043,10 +1043,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1043
1043
  };
1044
1044
  return state.selectType === "checkbox" ? selectStyle() : null;
1045
1045
  };
1046
- const footerMethod = ({
1047
- columns,
1048
- data
1049
- }) => {
1046
+ const footerMethod = (payload) => {
1047
+ const {
1048
+ columns,
1049
+ data
1050
+ } = payload;
1051
+ if (isFunction(attr.footerMethod))
1052
+ return attr.spanMethod(footerMethod);
1053
+ if (isFunction(attr["footer-method"]))
1054
+ return attr["footer-method"](payload);
1050
1055
  if (!props.groupCountFields || !props.groupCountFields.length) {
1051
1056
  return [columns.map((column, index) => {
1052
1057
  if (index === 0) {
@@ -63,6 +63,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
63
63
  columnWidth: number;
64
64
  editable: boolean;
65
65
  required: boolean;
66
+ hide: boolean;
66
67
  }[];
67
68
  widthShow: string;
68
69
  widthLarge: string;
@@ -80,6 +81,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
80
81
  columnWidth: number;
81
82
  editable: boolean;
82
83
  required: boolean;
84
+ hide: boolean;
83
85
  }) => {
84
86
  background: string | undefined;
85
87
  };
@@ -104,6 +106,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
104
106
  columnWidth: number;
105
107
  editable: boolean;
106
108
  required: boolean;
109
+ hide: boolean;
107
110
  }) => void;
108
111
  setWidth: () => void;
109
112
  NButton: any;
@@ -292,7 +292,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
292
292
  tag: "ul"
293
293
  }, {
294
294
  item: withCtx(({ element }) => [
295
- createElementVNode("li", {
295
+ !element.hide ? (openBlock(), createElementBlock("li", {
296
+ key: 0,
296
297
  class: "left-style",
297
298
  style: normalizeStyle(leftStyle(element)),
298
299
  onClick: ($event) => handleFieldClick(element)
@@ -379,7 +380,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
379
380
  style: { width: "120px" }
380
381
  }, null, 8, ["value", "onUpdate:value"])
381
382
  ])
382
- ], 12, _hoisted_16)
383
+ ], 12, _hoisted_16)) : createCommentVNode("v-if", true)
383
384
  ]),
384
385
  _: 1
385
386
  }, 8, ["list"])
@@ -11,6 +11,7 @@ declare type Ifields = {
11
11
  columnWidth: number;
12
12
  editable: boolean;
13
13
  required: boolean;
14
+ hide: boolean;
14
15
  [key: string]: any;
15
16
  };
16
17
  declare type Istate = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.21-beta.10",
3
+ "version": "3.1.21-beta.12",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -55,7 +55,7 @@
55
55
  "vue": "^3.2.0",
56
56
  "vue-simple-uploader": "^1.0.0-beta.5",
57
57
  "vuedraggable": "4.1.0",
58
- "vxe-table": "4.2.5",
58
+ "vxe-table": "4.2.6",
59
59
  "xe-utils": "^3.5.4"
60
60
  },
61
61
  "browserslist": [
@@ -66,5 +66,5 @@
66
66
  "iOS 7",
67
67
  "last 3 iOS versions"
68
68
  ],
69
- "gitHead": "1f805dfde99090ac681adb4306b66bb61d819043"
69
+ "gitHead": "b4b62480f246f700b48b026a7a65eef54815713e"
70
70
  }