cnhis-design-vue 3.1.46-beta.27 → 3.1.46-beta.29

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.
Files changed (54) hide show
  1. package/es/components/form-config/index.d.ts +6 -6
  2. package/es/components/form-config/src/FormConfig.vue.d.ts +6 -6
  3. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -3
  4. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  5. package/es/components/form-render/index.d.ts +3 -3
  6. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  7. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -3
  8. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  9. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  10. package/es/components/form-render/src/types/index.d.ts +1 -7
  11. package/es/components/iho-table/index.d.ts +12 -0
  12. package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
  13. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  14. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  15. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  16. package/es/components/iho-table/src/plugins/index.js +1 -1
  17. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  18. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
  19. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
  20. package/es/components/iho-table/src/types/index.d.ts +2 -1
  21. package/es/components/index.css +1 -1
  22. package/es/components/info-header/index.d.ts +10 -10
  23. package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -10
  24. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -3
  25. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -3
  26. package/es/components/scale-view/index.d.ts +8 -8
  27. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  28. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +4 -4
  29. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  30. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +4 -4
  31. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  32. package/es/components/scale-view/src/hooks/use-component.d.ts +16 -16
  33. package/es/components/scale-view/style/index.css +1 -1
  34. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  35. package/es/components/select-person/index.d.ts +105 -3
  36. package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +88 -0
  37. package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
  38. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
  39. package/es/components/select-person/src/SelectPerson.vue.d.ts +105 -1
  40. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  41. package/es/components/select-person/src/types/enums.d.ts +4 -0
  42. package/es/components/select-person/src/types/enums.js +1 -0
  43. package/es/components/select-person/src/utils/index.d.ts +1 -1
  44. package/es/components/select-person/src/utils/index.js +1 -1
  45. package/es/components/select-person/style/index.css +1 -1
  46. package/es/components/shortcut-setter/index.d.ts +3 -3
  47. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -3
  48. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  49. package/es/shared/package.json.js +1 -1
  50. package/es/shared/types/business.d.ts +6 -0
  51. package/es/shared/utils/business.d.ts +6 -1
  52. package/es/shared/utils/business.js +1 -1
  53. package/es/shared/utils/index.js +1 -1
  54. package/package.json +2 -2
@@ -7132,7 +7132,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7132
7132
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
7133
7133
  };
7134
7134
  operationalForm: {
7135
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
7135
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
7136
7136
  };
7137
7137
  linebarAutoHidden: {
7138
7138
  type: BooleanConstructor;
@@ -7272,7 +7272,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7272
7272
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
7273
7273
  };
7274
7274
  operationalForm: {
7275
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
7275
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
7276
7276
  };
7277
7277
  linebarAutoHidden: {
7278
7278
  type: BooleanConstructor;
@@ -7740,7 +7740,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7740
7740
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
7741
7741
  };
7742
7742
  operationalForm: {
7743
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
7743
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
7744
7744
  };
7745
7745
  linebarAutoHidden: {
7746
7746
  type: BooleanConstructor;
@@ -13159,7 +13159,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13159
13159
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
13160
13160
  };
13161
13161
  operationalForm: {
13162
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
13162
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
13163
13163
  };
13164
13164
  linebarAutoHidden: {
13165
13165
  type: BooleanConstructor;
@@ -13299,7 +13299,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13299
13299
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
13300
13300
  };
13301
13301
  operationalForm: {
13302
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
13302
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
13303
13303
  };
13304
13304
  linebarAutoHidden: {
13305
13305
  type: BooleanConstructor;
@@ -13767,7 +13767,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
13767
13767
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
13768
13768
  };
13769
13769
  operationalForm: {
13770
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
13770
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
13771
13771
  };
13772
13772
  linebarAutoHidden: {
13773
13773
  type: BooleanConstructor;
@@ -7134,7 +7134,7 @@ declare const _default: import("vue").DefineComponent<{
7134
7134
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
7135
7135
  };
7136
7136
  operationalForm: {
7137
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
7137
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
7138
7138
  };
7139
7139
  linebarAutoHidden: {
7140
7140
  type: BooleanConstructor;
@@ -7274,7 +7274,7 @@ declare const _default: import("vue").DefineComponent<{
7274
7274
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
7275
7275
  };
7276
7276
  operationalForm: {
7277
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
7277
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
7278
7278
  };
7279
7279
  linebarAutoHidden: {
7280
7280
  type: BooleanConstructor;
@@ -7742,7 +7742,7 @@ declare const _default: import("vue").DefineComponent<{
7742
7742
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
7743
7743
  };
7744
7744
  operationalForm: {
7745
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
7745
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
7746
7746
  };
7747
7747
  linebarAutoHidden: {
7748
7748
  type: BooleanConstructor;
@@ -13161,7 +13161,7 @@ declare const _default: import("vue").DefineComponent<{
13161
13161
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
13162
13162
  };
13163
13163
  operationalForm: {
13164
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
13164
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
13165
13165
  };
13166
13166
  linebarAutoHidden: {
13167
13167
  type: BooleanConstructor;
@@ -13301,7 +13301,7 @@ declare const _default: import("vue").DefineComponent<{
13301
13301
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
13302
13302
  };
13303
13303
  operationalForm: {
13304
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
13304
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
13305
13305
  };
13306
13306
  linebarAutoHidden: {
13307
13307
  type: BooleanConstructor;
@@ -13769,7 +13769,7 @@ declare const _default: import("vue").DefineComponent<{
13769
13769
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
13770
13770
  };
13771
13771
  operationalForm: {
13772
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
13772
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
13773
13773
  };
13774
13774
  linebarAutoHidden: {
13775
13775
  type: BooleanConstructor;
@@ -147,7 +147,7 @@ declare const _default: import("vue").DefineComponent<{}, {
147
147
  type: import("vue").PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
148
148
  };
149
149
  operationalForm: {
150
- type: import("vue").PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
150
+ type: import("vue").PropType<import("../../..").FormOperationalConfig[]>;
151
151
  };
152
152
  linebarAutoHidden: {
153
153
  type: BooleanConstructor;
@@ -287,7 +287,7 @@ declare const _default: import("vue").DefineComponent<{}, {
287
287
  type: import("vue").PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
288
288
  };
289
289
  operationalForm: {
290
- type: import("vue").PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
290
+ type: import("vue").PropType<import("../../..").FormOperationalConfig[]>;
291
291
  };
292
292
  linebarAutoHidden: {
293
293
  type: BooleanConstructor;
@@ -755,7 +755,7 @@ declare const _default: import("vue").DefineComponent<{}, {
755
755
  type: import("vue").PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
756
756
  };
757
757
  operationalForm: {
758
- type: import("vue").PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
758
+ type: import("vue").PropType<import("../../..").FormOperationalConfig[]>;
759
759
  };
760
760
  linebarAutoHidden: {
761
761
  type: BooleanConstructor;
@@ -5278,7 +5278,7 @@ declare const _default: import("vue").DefineComponent<{
5278
5278
  type: PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
5279
5279
  };
5280
5280
  operationalForm: {
5281
- type: PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
5281
+ type: PropType<import("../../../../../es/shared/types").FormOperationalConfig[]>;
5282
5282
  };
5283
5283
  linebarAutoHidden: {
5284
5284
  type: BooleanConstructor;
@@ -5418,7 +5418,7 @@ declare const _default: import("vue").DefineComponent<{
5418
5418
  type: PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
5419
5419
  };
5420
5420
  operationalForm: {
5421
- type: PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
5421
+ type: PropType<import("../../../../../es/shared/types").FormOperationalConfig[]>;
5422
5422
  };
5423
5423
  linebarAutoHidden: {
5424
5424
  type: BooleanConstructor;
@@ -5886,7 +5886,7 @@ declare const _default: import("vue").DefineComponent<{
5886
5886
  type: PropType<import("../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
5887
5887
  };
5888
5888
  operationalForm: {
5889
- type: PropType<import("../../../../../es/components/form-render").FormOperationalConfig[]>;
5889
+ type: PropType<import("../../../../../es/shared/types").FormOperationalConfig[]>;
5890
5890
  };
5891
5891
  linebarAutoHidden: {
5892
5892
  type: BooleanConstructor;
@@ -134,7 +134,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
134
134
  type: import("vue").PropType<import("./src/types").FormLowCodeReactions.Config[]>;
135
135
  };
136
136
  operationalForm: {
137
- type: import("vue").PropType<import("./src/types").FormOperationalConfig[]>;
137
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
138
138
  };
139
139
  linebarAutoHidden: {
140
140
  type: BooleanConstructor;
@@ -274,7 +274,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
274
274
  type: import("vue").PropType<import("./src/types").FormLowCodeReactions.Config[]>;
275
275
  };
276
276
  operationalForm: {
277
- type: import("vue").PropType<import("./src/types").FormOperationalConfig[]>;
277
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
278
278
  };
279
279
  linebarAutoHidden: {
280
280
  type: BooleanConstructor;
@@ -742,7 +742,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
742
742
  type: import("vue").PropType<import("./src/types").FormLowCodeReactions.Config[]>;
743
743
  };
744
744
  operationalForm: {
745
- type: import("vue").PropType<import("./src/types").FormOperationalConfig[]>;
745
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
746
746
  };
747
747
  linebarAutoHidden: {
748
748
  type: BooleanConstructor;
@@ -1,7 +1,7 @@
1
- import { AnyObject } from '../../../../es/shared/types';
1
+ import { AnyObject, FormOperationalConfig } from '../../../../es/shared/types';
2
2
  import { Component, FunctionalComponent, PropType } from 'vue';
3
3
  import { RequestInstance } from './hooks';
4
- import { FieldItem, FieldVisitor, FormBusinessFormatter, FormLowCodeReactions, FormOperationalConfig } from './types';
4
+ import { FieldItem, FieldVisitor, FormBusinessFormatter, FormLowCodeReactions } from './types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  fieldList: {
7
7
  type: PropType<FieldItem[]>;
@@ -132,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{}, {
132
132
  type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
133
133
  };
134
134
  operationalForm: {
135
- type: import("vue").PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
135
+ type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
136
136
  };
137
137
  linebarAutoHidden: {
138
138
  type: BooleanConstructor;
@@ -272,7 +272,7 @@ declare const _default: import("vue").DefineComponent<{}, {
272
272
  type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
273
273
  };
274
274
  operationalForm: {
275
- type: import("vue").PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
275
+ type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
276
276
  };
277
277
  linebarAutoHidden: {
278
278
  type: BooleanConstructor;
@@ -740,7 +740,7 @@ declare const _default: import("vue").DefineComponent<{}, {
740
740
  type: import("vue").PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
741
741
  };
742
742
  operationalForm: {
743
- type: import("vue").PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
743
+ type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
744
744
  };
745
745
  linebarAutoHidden: {
746
746
  type: BooleanConstructor;
@@ -1,6 +1,6 @@
1
+ import { FormOperationalConfig } from '../../../../../es/shared/types';
1
2
  import { Form } from '@formily/core';
2
3
  import { ComputedRef } from 'vue';
3
- import { FormOperationalConfig } from '../../../../../es/components/form-render';
4
4
  export declare function useOperationalForm(operationalForm: ComputedRef<FormOperationalConfig[] | undefined>, formModel: Form): {
5
5
  operationalFormHandler: (field: string) => void;
6
6
  triggerAllOperationalFormHandler: () => void;
@@ -1 +1 @@
1
- import{isArray as e,isString as t,isNumber as a}from"lodash-es";function n(n,r){function o(t){return e(t)&&!!t.length}function l(e,n=!0){e.forEach((e=>{const o=r.getFormState().values,l=e.operationFormParam.reduce(((e,t)=>(e[t=t.replace(/^table\./,"")]=+o[t],e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let u=new Function("table",`return ${i}`)(l);t(u)&&(u=+u),u=a(u)?isNaN(u)?"":u.toFixed(+e.operationalPrecision):"",(n||null==r.getValuesIn(e.operationalResult))&&r.setValuesIn(e.operationalResult,u)}))}return{operationalFormHandler:function(e){if(!o(n.value))return;const t=n.value.filter((t=>t.operationFormParam.includes(`table.${e}`)));t.length&&l(t)},triggerAllOperationalFormHandler:function(){o(n.value)&&l(n.value,!1)}}}export{n as useOperationalForm};
1
+ import"../../../../shared/utils/index.js";import{getOperationalFormHandler as s}from"../../../../shared/utils/business.js";function e(e,t){return s(e,(s=>t.getValuesIn(s)),((s,e)=>t.setValuesIn(s,e)))}export{e as useOperationalForm};
@@ -1,5 +1,5 @@
1
1
  import { AsyncQueue } from '../../../../../es/shared/hooks';
2
- import { AnyObject, LOW_CODE_VALUE_RELATION, UndefinedAble } from '../../../../../es/shared/types';
2
+ import { AnyObject, FormOperationalConfig, LOW_CODE_VALUE_RELATION, UndefinedAble } from '../../../../../es/shared/types';
3
3
  import { DataField, Field, Form } from '@formily/core';
4
4
  import { ISchema } from '@formily/json-schema/esm/types';
5
5
  import { Component, FunctionalComponent } from 'vue';
@@ -91,12 +91,6 @@ export declare type FormBusinessFormatter = (payload: {
91
91
  value: unknown;
92
92
  type: FIELD_BUSINESS_TYPE;
93
93
  }) => unknown;
94
- export declare type FormOperationalConfig = {
95
- operationFormParam: string[];
96
- operationalRule: string;
97
- operationalPrecision: string;
98
- operationalResult: string;
99
- };
100
94
  export declare namespace FormLowCodeReactions {
101
95
  type ConObj = {
102
96
  con: LOW_CODE_VALUE_RELATION;
@@ -2171,6 +2171,12 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
2171
2171
  enable?: boolean | undefined;
2172
2172
  usePreset?: boolean | undefined;
2173
2173
  } | undefined;
2174
+ operationForm?: {
2175
+ operationFormParam: string[];
2176
+ operationalRule: string;
2177
+ operationalPrecision: string;
2178
+ operationalResult: string;
2179
+ }[] | undefined;
2174
2180
  }>;
2175
2181
  updateConfigRefDebounced: () => void;
2176
2182
  updateConfigRef: () => void;
@@ -4591,6 +4597,12 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
4591
4597
  enable?: boolean | undefined;
4592
4598
  usePreset?: boolean | undefined;
4593
4599
  } | undefined;
4600
+ operationForm?: {
4601
+ operationFormParam: string[];
4602
+ operationalRule: string;
4603
+ operationalPrecision: string;
4604
+ operationalResult: string;
4605
+ }[] | undefined;
4594
4606
  }>;
4595
4607
  configChanged: boolean;
4596
4608
  fieldChanged: boolean;
@@ -2170,6 +2170,12 @@ declare const _default: import("vue").DefineComponent<{
2170
2170
  enable?: boolean | undefined;
2171
2171
  usePreset?: boolean | undefined;
2172
2172
  } | undefined;
2173
+ operationForm?: {
2174
+ operationFormParam: string[];
2175
+ operationalRule: string;
2176
+ operationalPrecision: string;
2177
+ operationalResult: string;
2178
+ }[] | undefined;
2173
2179
  }>;
2174
2180
  updateConfigRefDebounced: () => void;
2175
2181
  updateConfigRef: () => void;
@@ -4590,6 +4596,12 @@ declare const _default: import("vue").DefineComponent<{
4590
4596
  enable?: boolean | undefined;
4591
4597
  usePreset?: boolean | undefined;
4592
4598
  } | undefined;
4599
+ operationForm?: {
4600
+ operationFormParam: string[];
4601
+ operationalRule: string;
4602
+ operationalPrecision: string;
4603
+ operationalResult: string;
4604
+ }[] | undefined;
4593
4605
  }>;
4594
4606
  configChanged: boolean;
4595
4607
  fieldChanged: boolean;
@@ -1 +1 @@
1
- import{mergeWith as e,isObject as o}from"lodash-es";import{HIGHEST_PRIORITY as i}from"../../constants/index.js";import{defineTablePlugin as t}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as s}from"../../utils/index.js";function n(){const n="defaultTablePlugin";return t({name:n,vxe(e){e.setup({zIndex:3e3})},apply(t){t.configHooks.config.tap({name:n,stage:i},(o=>{const i=e({border:!0,showSeq:!0,columnConfig:{resizable:!0},rowConfig:{height:36,useKey:!0,isHover:!0,isCurrent:!0,keyField:"theUniqueKey"},showOverflow:"title",editConfig:{trigger:"click",mode:"cell"}},o,{height:o.height?"auto":void 0});return i.selectType=o.selectType||(s.isPositive(o.isBatchSelect)?"checkbox":s.isPositive(o.isSingleSelect)?"radio":void 0),i})),t.configHooks.mouseConfig.tap({name:n,stage:i},((e,i)=>o(i.keyboardConfig)?Object.assign({selected:!!i.keyboardConfig.isEdit},e):e))}})}export{n as defaultConfigPlugin};
1
+ import{mergeWith as e,isObject as o}from"lodash-es";import{HIGHEST_PRIORITY as i}from"../../constants/index.js";import{defineTablePlugin as t}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as s}from"../../utils/index.js";function n(){const n="defaultTablePlugin";return t({name:n,vxe(e){e.setup({zIndex:3e3})},apply(t){t.configHooks.config.tap({name:n,stage:i},(o=>{const i=e({border:!0,showSeq:!0,columnConfig:{resizable:!0},rowConfig:{height:36,useKey:!0,isHover:!0,isCurrent:!0,keyField:"theUniqueKey"},showOverflow:"title",showHeaderOverflow:"title",editConfig:{trigger:"click",mode:"cell"}},o,{height:o.height?"auto":void 0});return i.selectType=o.selectType||(s.isPositive(o.isBatchSelect)?"checkbox":s.isPositive(o.isSingleSelect)?"radio":void 0),i})),t.configHooks.mouseConfig.tap({name:n,stage:i},((e,i)=>o(i.keyboardConfig)?Object.assign({selected:!!i.keyboardConfig.isEdit},e):e))}})}export{n as defaultConfigPlugin};
@@ -12,9 +12,9 @@ declare const _default: import("vue").DefineComponent<{
12
12
  required: true;
13
13
  };
14
14
  }>> & {}>>;
15
+ $table: (VxeTableConstructor & VxeTablePrivateMethods & VxeTableMethods) | undefined;
15
16
  optionsRef: import("vue").ComputedRef<import("vxe-table").VxeTableDefines.FilterOption[] & VxeColumnPropTypes.Filter[]>;
16
17
  checkedRef: import("vue").WritableComputedRef<string[]>;
17
- $table: (VxeTableConstructor & VxeTablePrivateMethods & VxeTableMethods) | undefined;
18
18
  checkedCacheRef: import("vue").Ref<string[]>;
19
19
  searchFilterText: import("vue").Ref<string>;
20
20
  close: () => void;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as l,inject as a,ref as t,onDeactivated as u,openBlock as n,createElementBlock as o,unref as r,createBlock as i,createCommentVNode as v,createElementVNode as s,createVNode as c,isRef as d,withCtx as p,normalizeStyle as f,Fragment as h,renderList as m,toDisplayString as y,createTextVNode as _}from"vue";import{widthAppend as b}from"../../../../../shared/utils/index.js";import{useVirtualList as g}from"@vueuse/core";import{isNumber as k}from"lodash-es";import{NInput as C,NCheckbox as $,NCheckboxGroup as S,NButtonGroup as x,NButton as L}from"naive-ui";const U={class:"iho-table__filterWrapper"},j={class:"iho-table__filterListItem"},w={class:"iho-table__filterFooter"};var E=e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const E=e,F=l((()=>{var e,l,a;return null!=(a=null==(l=null==(e=E.payload)?void 0:e.column)?void 0:l.filters)?a:[]})),I=l({get:()=>F.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),set(e){if(E.payload)return F.value.forEach((l=>{E.payload.$panel.changeOption(null,e.includes(l.value),l)})),E.payload.$panel.confirmFilter(new CustomEvent("click"))}}),O=a("$xetable"),P=t([...I.value]),W=t("");function q(){O&&(O.reactData.filterStore.visible=!1)}u(q);const z=l((()=>{var e,l;if(!E.payload||!E.payload.column)return 10;const{filterCapacity:a}=null!=(l=null==(e=E.payload.column.editRender)?void 0:e.props)?l:{};return k(a)&&a>0?a:10})),{list:D,containerProps:H,wrapperProps:R}=g(l((()=>W.value?F.value.filter((e=>`${e.label}`.includes(W.value))):F.value)),{itemHeight:32,overscan:3}),A=l((()=>!!P.value.length&&P.value.length!==F.value.length)),B=l({get:()=>P.value.length===F.value.length&&0!==F.value.length,set:e=>{P.value=e?F.value.map((e=>e.value)):[]}}),G=l((()=>({...H.style,height:b(32*z.value)})));function J(){I.value=P.value,q()}function K(){P.value=[]}return(e,l)=>(n(),o("section",U,[r(F).length>5?(n(),i(r(C),{key:0,value:W.value,"onUpdate:value":l[0]||(l[0]=e=>W.value=e)},null,8,["value"])):v("v-if",!0),s("div",j,[c(r($),{label:"全选",checked:r(B),"onUpdate:checked":l[1]||(l[1]=e=>d(B)?B.value=e:null),indeterminate:r(A)},null,8,["checked","indeterminate"])]),c(r(S),{value:P.value,"onUpdate:value":l[3]||(l[3]=e=>P.value=e)},{default:p((()=>[s("section",{ref:r(H).ref,style:f(r(G)),onScroll:l[2]||(l[2]=(...e)=>r(H).onScroll&&r(H).onScroll(...e)),class:"iho-table__filterListWrapper"},[s("section",{style:f(r(R).style)},[(n(!0),o(h,null,m(r(D),(e=>(n(),o("div",{class:"iho-table__filterListItem",key:e.data.value},[c(r($),{value:e.data.value,label:e.data.label},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),s("footer",w,[s("section",null,y(`已选择${P.value.length}项`),1),c(r(x),{size:"small"},{default:p((()=>[c(r(L),{onClick:K},{default:p((()=>[_("清空")])),_:1}),c(r(L),{onClick:q},{default:p((()=>[_("取消")])),_:1}),c(r(L),{type:"primary",onClick:J},{default:p((()=>[_("确定")])),_:1})])),_:1})])]))}});export{E as default};
1
+ import{defineComponent as e,inject as l,computed as a,ref as t,onDeactivated as u,openBlock as n,createElementBlock as o,unref as r,createBlock as i,createCommentVNode as c,createElementVNode as s,createVNode as v,isRef as d,withCtx as p,normalizeStyle as f,Fragment as h,renderList as m,toDisplayString as y,createTextVNode as _}from"vue";import{widthAppend as b}from"../../../../../shared/utils/index.js";import{useVirtualList as g}from"@vueuse/core";import{isNumber as k}from"lodash-es";import{NInput as L,NCheckbox as x,NCheckboxGroup as C,NButtonGroup as D,NButton as S}from"naive-ui";const $={class:"iho-table__filterWrapper"},I={class:"iho-table__filterListItem"},Y={class:"iho-table__filterFooter"};var U=e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const U=e,j=l("$xetable"),w=a((()=>{var e,l,a;return null!=(a=null==(l=null==(e=U.payload)?void 0:e.column)?void 0:l.filters)?a:[]})),E=a({get:()=>w.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),set(e){if(!U.payload)return;if(w.value.forEach((l=>{U.payload.$panel.changeOption(null,e.includes(l.value),l)})),!j)return t();const{startIndex:l,endIndex:a}=j.internalData.scrollYStore;function t(){U.payload.$panel.confirmFilter(new CustomEvent("click"))}0===l&&1===a||j.reactData.scrollYLoad?t():(j.reactData.scrollYLoad=!0,t(),j.reactData.scrollYLoad=!1)}}),F=t([...E.value]),O=t("");function P(){j&&(j.reactData.filterStore.visible=!1)}u(P);const W=a((()=>{var e,l;if(!U.payload||!U.payload.column)return 10;const{filterCapacity:a}=null!=(l=null==(e=U.payload.column.editRender)?void 0:e.props)?l:{};return k(a)&&a>0?a:10})),{list:q,containerProps:z,wrapperProps:H}=g(a((()=>O.value?w.value.filter((e=>`${e.label}`.includes(O.value))):w.value)),{itemHeight:32,overscan:3}),R=a((()=>!!F.value.length&&F.value.length!==w.value.length)),A=a({get:()=>F.value.length===w.value.length&&0!==w.value.length,set:e=>{F.value=e?w.value.map((e=>e.value)):[]}}),B=a((()=>({...z.style,height:b(32*W.value)})));function G(){E.value=F.value,P()}function J(){F.value=[]}return(e,l)=>(n(),o("section",$,[r(w).length>5?(n(),i(r(L),{key:0,value:O.value,"onUpdate:value":l[0]||(l[0]=e=>O.value=e)},null,8,["value"])):c("v-if",!0),s("div",I,[v(r(x),{label:"全选",checked:r(A),"onUpdate:checked":l[1]||(l[1]=e=>d(A)?A.value=e:null),indeterminate:r(R)},null,8,["checked","indeterminate"])]),v(r(C),{value:F.value,"onUpdate:value":l[3]||(l[3]=e=>F.value=e)},{default:p((()=>[s("section",{ref:r(z).ref,style:f(r(B)),onScroll:l[2]||(l[2]=(...e)=>r(z).onScroll&&r(z).onScroll(...e)),class:"iho-table__filterListWrapper"},[s("section",{style:f(r(H).style)},[(n(!0),o(h,null,m(r(q),(e=>(n(),o("div",{class:"iho-table__filterListItem",key:e.data.value},[v(r(x),{value:e.data.value,label:e.data.label},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),s("footer",Y,[s("section",null,y(`已选择${F.value.length}项`),1),v(r(D),{size:"small"},{default:p((()=>[v(r(S),{onClick:J},{default:p((()=>[_("清空")])),_:1}),v(r(S),{onClick:P},{default:p((()=>[_("取消")])),_:1}),v(r(S),{type:"primary",onClick:G},{default:p((()=>[_("确定")])),_:1})])),_:1})])]))}});export{U as default};
@@ -1 +1 @@
1
- import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./fieldConnectionPlugin/index.js";import*as n from"./filterDaterangeRenderPlugin/index.js";import*as d from"./filterRenderPlugin/index.js";import*as s from"./highLightSetPlugin.js";import*as t from"./keyboardEventPlugin/index.js";import*as l from"./lowCodeFieldAdaptorPlugin/index.js";import*as g from"./maxCheckSizePlugin.js";import*as u from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as P from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as a from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as m from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as x from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as f from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as p from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as j from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as R from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as b from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as w from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as c from"./rowClickPlugin/index.js";import*as h from"./rowDragPlugin/index.js";import*as W from"./rowGroupSettingPlugin/index.js";import*as C from"./varialbleHeightPlugin/index.js";import*as k from"./virtualTreePlugin/index.js";import{separateMetaModule as v}from"../../../../shared/utils/index.js";var S=v(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./fieldConnectionPlugin/index.ts":i,"./filterDaterangeRenderPlugin/index.tsx":n,"./filterRenderPlugin/index.tsx":d,"./highLightSetPlugin.tsx":s,"./keyboardEventPlugin/index.ts":t,"./lowCodeFieldAdaptorPlugin/index.tsx":l,"./maxCheckSizePlugin.ts":g,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":u,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":o,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":P,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":a,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":m,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":x,"./rendererPlugins/widgets/checkRendererPlugin.tsx":f,"./rendererPlugins/widgets/colorRendererPlugin.tsx":p,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":j,"./rendererPlugins/widgets/labelRendererPlugin.tsx":R,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":b,"./rendererPlugins/widgets/seqRendererPlugin.tsx":w,"./rowClickPlugin/index.ts":c,"./rowDragPlugin/index.ts":h,"./rowGroupSettingPlugin/index.ts":W,"./varialbleHeightPlugin/index.tsx":C,"./virtualTreePlugin/index.ts":k}));export{S as default};
1
+ import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./fieldConnectionPlugin/index.js";import*as n from"./filterDaterangeRenderPlugin/index.js";import*as d from"./filterRenderPlugin/index.js";import*as s from"./highLightSetPlugin.js";import*as t from"./keyboardEventPlugin/index.js";import*as l from"./lowCodeFieldAdaptorPlugin/index.js";import*as g from"./maxCheckSizePlugin.js";import*as u from"./operationalFormPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as a from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as P from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as m from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as x from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as f from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as p from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as j from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as R from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as b from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as w from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as c from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as h from"./rowClickPlugin/index.js";import*as W from"./rowDragPlugin/index.js";import*as C from"./rowGroupSettingPlugin/index.js";import*as k from"./varialbleHeightPlugin/index.js";import*as v from"./virtualTreePlugin/index.js";import{separateMetaModule as S}from"../../../../shared/utils/index.js";var D=S(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./fieldConnectionPlugin/index.ts":i,"./filterDaterangeRenderPlugin/index.tsx":n,"./filterRenderPlugin/index.tsx":d,"./highLightSetPlugin.tsx":s,"./keyboardEventPlugin/index.ts":t,"./lowCodeFieldAdaptorPlugin/index.tsx":l,"./maxCheckSizePlugin.ts":g,"./operationalFormPlugin/index.ts":u,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":o,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":a,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":P,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":m,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":x,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":f,"./rendererPlugins/widgets/checkRendererPlugin.tsx":p,"./rendererPlugins/widgets/colorRendererPlugin.tsx":j,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":R,"./rendererPlugins/widgets/labelRendererPlugin.tsx":b,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":w,"./rendererPlugins/widgets/seqRendererPlugin.tsx":c,"./rowClickPlugin/index.ts":h,"./rowDragPlugin/index.ts":W,"./rowGroupSettingPlugin/index.ts":C,"./varialbleHeightPlugin/index.tsx":k,"./virtualTreePlugin/index.ts":v}));export{D as default};
@@ -1 +1 @@
1
- import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as d,cloneDeep as r,isString as a}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as f,IHO_TABLE_FIXED_STATUS as c,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as R,IhoTableRenderHelper as x}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:f},((f,m,b)=>{const w=f,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"title",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:c[w.isFixed],...w,title:w.alias||w.title};return function(e,r){const f={default:r.slotFn,header:r.headerSlotFn,edit:r.editSlotFn,footer:r.footerSlotFn,...r.slots};if(d(r.checkEditStatus)){const{default:e}=f;d(e)&&(f.default=l=>r.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const c=f.header;f.header=e=>function(e,t,r){var f;const c=l(h),m=l(v),p=e.column||{},b=n(null==c?void 0:c.value)&&!1!==t.annotation,g=x.isEditableColumn(m.value,p),R=x.hasFilter(t)||x.hasDateFiler(t),j=null==(f=t.titlePrefix)?void 0:f.content,w=a(r)?r:d(r)?r(e):null;let P=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[p.field];e&&(P=o(e).some((e=>e.required)))}return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:s(Math.max(0,p.renderWidth-20-(P?14:0)-(b?18:0)-(R?23:0)-(g?22:0)-(j?20:0)-(p.sortable?23:0)))}},[null!=w?w:i("div",{style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:p.title},[p.title])]),b?i(u,{modelValue:c.value[p.field],"onUpdate:modelValue":e=>c.value[p.field]=e},null):null])}(e,r,c),e.slots=f}(P,w),function(t,l,i){var o,s;const a=r(e(l));a.componentProps={size:"mini"===i.size?"small":i.size,...a.componentProps},t.editRender={autofocus:"input",name:R.getCellType(l),props:a},t.editRender.enabled=!Reflect.get(p,t.editRender.name),d(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&d(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&g.notPositive(l.settingObj.isHide))}(P,w,b),P})),b.fieldHooks.field.tap({name:w+"After",stage:m},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{w as lowCodeFieldAdaptorPlugin};
1
+ import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as a,cloneDeep as d,isString as r}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as c,IHO_TABLE_FIXED_STATUS as f,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as x,IhoTableRenderHelper as R}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:c},((c,m,b)=>{const w=c,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"title",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:f[w.isFixed],...w,title:w.alias||w.title};return function(e,d){const c={default:d.slotFn,header:d.headerSlotFn,edit:d.editSlotFn,footer:d.footerSlotFn,...d.slots};if(a(d.checkEditStatus)){const{default:e}=c;a(e)&&(c.default=l=>d.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const f=c.header;c.header=e=>function(e,t,d){var c;const f=l(h),m=l(v),p=l("$xetable"),b=e.column||{},g=n(null==f?void 0:f.value)&&!1!==t.annotation,x=R.isEditableColumn(m.value,b),j=R.hasFilter(t)||R.hasDateFiler(t),w=null==(c=t.titlePrefix)?void 0:c.content,P=r(d)?d:a(d)?d(e):null;let F=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[b.field];e&&(F=o(e).some((e=>e.required)))}const S=m.value.border?Math.max(2,Math.ceil(p.reactData.scrollbarWidth/p.reactData.tableColumn.length)):1;return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:s(Math.max(0,b.renderWidth-20-S-(F?14:0)-(g?18:0)-(j?23:0)-(x?22:0)-(w?20:0)-(b.sortable?23:0)))}},[null!=P?P:i("div",{style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[b.title])]),g?i(u,{modelValue:f.value[b.field],"onUpdate:modelValue":e=>f.value[b.field]=e},null):null])}(e,d,f),e.slots=c}(P,w),function(t,l,i){var o,s;const r=d(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={autofocus:"input",name:x.getCellType(l),props:r},t.editRender.enabled=!Reflect.get(p,t.editRender.name),a(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&a(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&g.notPositive(l.settingObj.isHide))}(P,w,b),P})),b.fieldHooks.field.tap({name:w+"After",stage:m},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{w as lowCodeFieldAdaptorPlugin};
@@ -0,0 +1 @@
1
+ export declare function operationalFormPlugin(): import("../../../../../../es/components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import"../../../../../shared/utils/index.js";import"../../../index.js";import{isFunction as o}from"lodash-es";import{defineTablePlugin as n}from"../../hooks/useTablePlugin.js";import{getOperationalFormHandler as r}from"../../../../../shared/utils/business.js";function i(){const i="operationalFormPlugin";return n({name:i,apply(n){n.configHooks.config.tap(i,(n=>{const i=n.onFormChange;return n.onFormChange=function(t){const{column:e,row:s}=t;!function(o){return r(n.operationForm,(n=>o[n]),((n,r)=>o[n]=r)).operationalFormHandler}(s)(e.field),o(i)&&i(t)},n}))}})}export{i as operationalFormPlugin};
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble, BindEventSettingItem, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
2
2
  import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes } from 'vxe-table';
3
3
  import { VxeTableListeners } from 'vxe-table/types/table';
4
4
  import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
@@ -41,6 +41,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
41
41
  usePreset: boolean;
42
42
  [K: string]: any;
43
43
  }>;
44
+ operationForm: FormOperationalConfig[];
44
45
  [K: string]: unknown;
45
46
  }>;
46
47
  export declare type IhoTableFieldItem = {