cnhis-design-vue 3.1.30-beta.7 → 3.1.31-beta.0
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/es/components/button-print/index.d.ts +1268 -0
- package/es/components/button-print/index.js +1 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1269 -3
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +86 -44
- package/es/components/button-print/src/components/IdentityVerification.js +42 -11
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1253 -0
- package/es/components/button-print/src/components/edit.js +142 -0
- package/es/components/button-print/src/components/edit.vue.d.ts +1237 -0
- package/es/components/button-print/src/utils/browserPrint.d.ts +1 -0
- package/es/components/button-print/src/utils/browserPrint.js +40 -0
- package/es/components/button-print/src/utils/index.d.ts +1 -0
- package/es/components/button-print/src/utils/index.js +1 -0
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +16 -9
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/iho-table/index.d.ts +45 -39
- package/es/components/iho-table/index.js +1 -0
- package/es/components/iho-table/src/IhoTable.js +9 -4
- package/es/components/iho-table/src/IhoTable.vue.d.ts +45 -39
- package/es/components/iho-table/src/components/IhoTableColumn.js +8 -5
- package/es/components/iho-table/src/constants/index.d.ts +1 -1
- package/es/components/iho-table/src/constants/index.js +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.js +189 -0
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +126 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +74 -0
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +11 -0
- package/es/components/iho-table/src/plugins/filterPlugin/types.js +8 -0
- package/es/components/iho-table/src/plugins/index.js +14 -12
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +4 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +14 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +12 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +5 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +14 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +17 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +2 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +2 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +12 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +8 -2
- package/es/components/iho-table/src/types/index.d.ts +36 -10
- package/es/components/iho-table/src/utils/index.d.ts +12 -1
- package/es/components/iho-table/src/utils/index.js +36 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -0
- package/es/shared/types/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useBrowserPrint(data: Blob, mode: string): void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function useBrowserPrint(data, mode) {
|
|
2
|
+
if (!data)
|
|
3
|
+
return console.log("\u6587\u6863\u6D41\u4E0D\u5B58\u5728\uFF01");
|
|
4
|
+
const blob = new Blob([data], { type: "application/pdf;charset=utf-8" });
|
|
5
|
+
const src = window.URL.createObjectURL(blob);
|
|
6
|
+
switch (mode) {
|
|
7
|
+
case "printDirect":
|
|
8
|
+
{
|
|
9
|
+
const iframe = document.createElement("iframe");
|
|
10
|
+
iframe.style.display = "none";
|
|
11
|
+
iframe.style.pageBreakBefore = "always";
|
|
12
|
+
iframe.src = src;
|
|
13
|
+
document.body.appendChild(iframe);
|
|
14
|
+
iframe.onload = () => {
|
|
15
|
+
var _a;
|
|
16
|
+
iframe.focus();
|
|
17
|
+
(_a = iframe.contentWindow) == null ? void 0 : _a.print();
|
|
18
|
+
window.URL.revokeObjectURL(iframe.src);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
break;
|
|
22
|
+
case "preview":
|
|
23
|
+
window.open(src);
|
|
24
|
+
break;
|
|
25
|
+
default:
|
|
26
|
+
{
|
|
27
|
+
const a = document.createElement("a");
|
|
28
|
+
a.style.display = "none";
|
|
29
|
+
a.href = src;
|
|
30
|
+
a.download = "";
|
|
31
|
+
document.body.appendChild(a);
|
|
32
|
+
a.click();
|
|
33
|
+
document.body.removeChild(a);
|
|
34
|
+
window.URL.revokeObjectURL(a.href);
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { useBrowserPrint };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}
|
|
1
|
+
.dropdown-button{border-color:#d5d5d5!important;color:#212121}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}
|
|
@@ -14,7 +14,7 @@ export declare class BusinessCollector {
|
|
|
14
14
|
private getType;
|
|
15
15
|
private getValueByField;
|
|
16
16
|
getValueByType(type: FIELD_BUSINESS_TYPE): unknown;
|
|
17
|
-
setValueByType(type: FIELD_BUSINESS_TYPE, value: unknown,
|
|
17
|
+
setValueByType(type: FIELD_BUSINESS_TYPE, value: unknown, beforeChange?: () => void): void;
|
|
18
18
|
registerChangeBusiness(type: FIELD_BUSINESS_TYPE, handler: () => void): this;
|
|
19
19
|
registerBlurBusiness(type: FIELD_BUSINESS_TYPE, handler: () => void): this;
|
|
20
20
|
private changeHandlerMap;
|
|
@@ -39,11 +39,12 @@ class BusinessCollector {
|
|
|
39
39
|
const field = this.getField(type);
|
|
40
40
|
return field ? this.getValueByField(field) : null;
|
|
41
41
|
}
|
|
42
|
-
setValueByType(type, value,
|
|
42
|
+
setValueByType(type, value, beforeChange) {
|
|
43
43
|
const field = this.getField(type);
|
|
44
44
|
field && this.formModel.setFieldState(field, (state) => {
|
|
45
|
-
if (
|
|
45
|
+
if (state.value === value)
|
|
46
46
|
return;
|
|
47
|
+
isFunction(beforeChange) && beforeChange();
|
|
47
48
|
state.value = this.formatter({ value, type, fieldKey: field });
|
|
48
49
|
});
|
|
49
50
|
}
|
|
@@ -71,35 +72,41 @@ function useBusinessBinding() {
|
|
|
71
72
|
}
|
|
72
73
|
const info = parseIdCard(idCard);
|
|
73
74
|
const { age, ageUnit } = parseAge2FromContext(info);
|
|
74
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit);
|
|
75
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.AGE, age);
|
|
75
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit, () => ageTypeHandlerLock++);
|
|
76
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.AGE, age, () => ageTypeHandlerLock++);
|
|
76
77
|
this.setValueByType(FIELD_BUSINESS_TYPE.SEX, info.sex);
|
|
77
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.BIRTHDAY, info.birthday);
|
|
78
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.BIRTHDAY, info.birthday, () => birthdayHandlerLock++);
|
|
78
79
|
setSexDisabled.call(this, true);
|
|
79
80
|
function setSexDisabled(value) {
|
|
80
81
|
const sexField = this.getFieldInstanceByType(FIELD_BUSINESS_TYPE.SEX);
|
|
81
82
|
isField(sexField) && (sexField.disabled = value);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
85
|
+
let birthdayHandlerLock = 0;
|
|
84
86
|
function handlerBirthdayType() {
|
|
87
|
+
if (birthdayHandlerLock > 0)
|
|
88
|
+
return birthdayHandlerLock--;
|
|
85
89
|
const birthday = this.getValueByType(FIELD_BUSINESS_TYPE.BIRTHDAY);
|
|
86
90
|
if (!isString(birthday))
|
|
87
91
|
return;
|
|
88
92
|
const { age, ageUnit } = parseAge2FromContext(parseBirthday(birthday));
|
|
89
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit);
|
|
90
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.AGE, age);
|
|
93
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.AGE_UNIT, ageUnit, () => ageTypeHandlerLock++);
|
|
94
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.AGE, age, () => ageTypeHandlerLock++);
|
|
91
95
|
}
|
|
96
|
+
let ageTypeHandlerLock = 0;
|
|
92
97
|
function handlerAgeType() {
|
|
98
|
+
if (ageTypeHandlerLock > 0)
|
|
99
|
+
return ageTypeHandlerLock--;
|
|
93
100
|
const age = this.getValueByType(FIELD_BUSINESS_TYPE.AGE);
|
|
94
101
|
const ageUnit = this.getValueByType(FIELD_BUSINESS_TYPE.AGE_UNIT);
|
|
95
102
|
if (!isString(age) && !isNumber(age) || age === "")
|
|
96
103
|
return;
|
|
97
104
|
if (!isString(ageUnit) || ageUnit === "")
|
|
98
105
|
return;
|
|
99
|
-
this.setValueByType(FIELD_BUSINESS_TYPE.BIRTHDAY, parseAge2Birthday(+age, ageUnit));
|
|
106
|
+
this.setValueByType(FIELD_BUSINESS_TYPE.BIRTHDAY, parseAge2Birthday(+age, ageUnit), () => birthdayHandlerLock++);
|
|
100
107
|
}
|
|
101
108
|
function create(formModel, formatter) {
|
|
102
|
-
return new BusinessCollector(formModel, formatter).registerChangeBusiness(FIELD_BUSINESS_TYPE.ID_CARD, handlerIdCardType).registerChangeBusiness(FIELD_BUSINESS_TYPE.AGE_UNIT, handlerAgeType).
|
|
109
|
+
return new BusinessCollector(formModel, formatter).registerChangeBusiness(FIELD_BUSINESS_TYPE.ID_CARD, handlerIdCardType).registerChangeBusiness(FIELD_BUSINESS_TYPE.AGE_UNIT, handlerAgeType).registerChangeBusiness(FIELD_BUSINESS_TYPE.AGE, handlerAgeType).registerChangeBusiness(FIELD_BUSINESS_TYPE.BIRTHDAY, handlerBirthdayType);
|
|
103
110
|
}
|
|
104
111
|
return { create };
|
|
105
112
|
}
|
|
@@ -10,7 +10,7 @@ function parseIdCard(idCardNo) {
|
|
|
10
10
|
const year = (birthYearSpan == 2 ? "19" : "") + certificateNo.substr(6, birthYearSpan);
|
|
11
11
|
const month = certificateNo.substr(6 + birthYearSpan, 2);
|
|
12
12
|
const day = certificateNo.substr(8 + birthYearSpan, 2);
|
|
13
|
-
res.birthday = year + "-" + month + "-" + day + " 00:00
|
|
13
|
+
res.birthday = year + "-" + month + "-" + day + " 00:00";
|
|
14
14
|
const d = new Date();
|
|
15
15
|
const monthFloor = d.getMonth() + 1 < parseInt(month, 10) || d.getMonth() + 1 == parseInt(month, 10) && d.getDate() < parseInt(day, 10) ? 1 : 0;
|
|
16
16
|
Object.assign(res, parseBirthday(res.birthday));
|
|
@@ -98,8 +98,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
98
98
|
onActiveCellChangeStart?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
onActiveCellChangeEnd?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
onSettingClick?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onFormClick?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
101
103
|
}>>;
|
|
102
|
-
emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", ...args: any[]) => void;
|
|
104
|
+
emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "filter" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", ...args: any[]) => void;
|
|
103
105
|
uuid: string;
|
|
104
106
|
$table: import("vue").Ref<import("vxe-table").VxeTableInstance | undefined>;
|
|
105
107
|
hooks: Readonly<{
|
|
@@ -272,7 +274,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
272
274
|
} | undefined;
|
|
273
275
|
autofocus?: string | undefined;
|
|
274
276
|
autoselect?: boolean | undefined;
|
|
275
|
-
defaultValue?: string | number | object | any[] | {
|
|
277
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
278
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
279
|
+
}) => any) | {
|
|
276
280
|
exec: (string: string) => RegExpExecArray | null;
|
|
277
281
|
test: (string: string) => boolean;
|
|
278
282
|
readonly source: string;
|
|
@@ -293,9 +297,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
293
297
|
[Symbol.search]: (string: string) => number;
|
|
294
298
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
295
299
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
296
|
-
} |
|
|
297
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
298
|
-
}) => any) | {
|
|
300
|
+
} | {
|
|
299
301
|
toString: () => string;
|
|
300
302
|
toDateString: () => string;
|
|
301
303
|
toTimeString: () => string;
|
|
@@ -575,7 +577,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
575
577
|
} | undefined;
|
|
576
578
|
autofocus?: string | undefined;
|
|
577
579
|
autoselect?: boolean | undefined;
|
|
578
|
-
defaultValue?: string | number | object | any[] | {
|
|
580
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
581
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
582
|
+
}) => any) | {
|
|
579
583
|
exec: (string: string) => RegExpExecArray | null;
|
|
580
584
|
test: (string: string) => boolean;
|
|
581
585
|
readonly source: string;
|
|
@@ -596,9 +600,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
596
600
|
[Symbol.search]: (string: string) => number;
|
|
597
601
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
598
602
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
599
|
-
} |
|
|
600
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
601
|
-
}) => any) | {
|
|
603
|
+
} | {
|
|
602
604
|
toString: () => string;
|
|
603
605
|
toDateString: () => string;
|
|
604
606
|
toTimeString: () => string;
|
|
@@ -769,6 +771,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
769
771
|
resizable?: boolean | undefined;
|
|
770
772
|
width?: import("vxe-table").VxeColumnPropTypes.Width | undefined;
|
|
771
773
|
minWidth?: import("vxe-table").VxeColumnPropTypes.MinWidth | undefined;
|
|
774
|
+
seqSlotFn: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
772
775
|
} | undefined;
|
|
773
776
|
rowConfig?: {
|
|
774
777
|
useKey?: boolean | undefined;
|
|
@@ -1037,7 +1040,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1037
1040
|
} | undefined;
|
|
1038
1041
|
autofocus?: string | undefined;
|
|
1039
1042
|
autoselect?: boolean | undefined;
|
|
1040
|
-
defaultValue?: string | number | object | any[] | {
|
|
1043
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
1044
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
1045
|
+
}) => any) | {
|
|
1041
1046
|
exec: (string: string) => RegExpExecArray | null;
|
|
1042
1047
|
test: (string: string) => boolean;
|
|
1043
1048
|
readonly source: string;
|
|
@@ -1058,9 +1063,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1058
1063
|
[Symbol.search]: (string: string) => number;
|
|
1059
1064
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
1060
1065
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
1061
|
-
} |
|
|
1062
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
1063
|
-
}) => any) | {
|
|
1066
|
+
} | {
|
|
1064
1067
|
toString: () => string;
|
|
1065
1068
|
toDateString: () => string;
|
|
1066
1069
|
toTimeString: () => string;
|
|
@@ -1396,7 +1399,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1396
1399
|
} | undefined;
|
|
1397
1400
|
autofocus?: string | undefined;
|
|
1398
1401
|
autoselect?: boolean | undefined;
|
|
1399
|
-
defaultValue?: string | number | object | any[] | {
|
|
1402
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
1403
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
1404
|
+
}) => any) | {
|
|
1400
1405
|
exec: (string: string) => RegExpExecArray | null;
|
|
1401
1406
|
test: (string: string) => boolean;
|
|
1402
1407
|
readonly source: string;
|
|
@@ -1417,9 +1422,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1417
1422
|
[Symbol.search]: (string: string) => number;
|
|
1418
1423
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
1419
1424
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
1420
|
-
} |
|
|
1421
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
1422
|
-
}) => any) | {
|
|
1425
|
+
} | {
|
|
1423
1426
|
toString: () => string;
|
|
1424
1427
|
toDateString: () => string;
|
|
1425
1428
|
toTimeString: () => string;
|
|
@@ -2037,7 +2040,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2037
2040
|
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
2038
2041
|
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
2039
2042
|
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
2040
|
-
onSortChange?: ((
|
|
2043
|
+
onSortChange?: ((payload_0: import("../../../es/components/iho-table/src/types").IhoTableFilterPayload) => void) | undefined;
|
|
2041
2044
|
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
2042
2045
|
onFilterVisible?: ((params: import("vxe-table").VxeTableDefines.FilterVisibleEventParams) => void) | undefined;
|
|
2043
2046
|
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
@@ -2256,7 +2259,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2256
2259
|
} | undefined;
|
|
2257
2260
|
autofocus?: string | undefined;
|
|
2258
2261
|
autoselect?: boolean | undefined;
|
|
2259
|
-
defaultValue?: string | number | object | any[] | {
|
|
2262
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
2263
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2264
|
+
}) => any) | {
|
|
2260
2265
|
exec: (string: string) => RegExpExecArray | null;
|
|
2261
2266
|
test: (string: string) => boolean;
|
|
2262
2267
|
readonly source: string;
|
|
@@ -2277,9 +2282,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2277
2282
|
[Symbol.search]: (string: string) => number;
|
|
2278
2283
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
2279
2284
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
2280
|
-
} |
|
|
2281
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2282
|
-
}) => any) | {
|
|
2285
|
+
} | {
|
|
2283
2286
|
toString: () => string;
|
|
2284
2287
|
toDateString: () => string;
|
|
2285
2288
|
toTimeString: () => string;
|
|
@@ -2659,7 +2662,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2659
2662
|
} | undefined;
|
|
2660
2663
|
autofocus?: string | undefined;
|
|
2661
2664
|
autoselect?: boolean | undefined;
|
|
2662
|
-
defaultValue?: string | number | object | any[] | {
|
|
2665
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
2666
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2667
|
+
}) => any) | {
|
|
2663
2668
|
exec: (string: string) => RegExpExecArray | null;
|
|
2664
2669
|
test: (string: string) => boolean;
|
|
2665
2670
|
readonly source: string;
|
|
@@ -2680,9 +2685,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2680
2685
|
[Symbol.search]: (string: string) => number;
|
|
2681
2686
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
2682
2687
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
2683
|
-
} |
|
|
2684
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2685
|
-
}) => any) | {
|
|
2688
|
+
} | {
|
|
2686
2689
|
toString: () => string;
|
|
2687
2690
|
toDateString: () => string;
|
|
2688
2691
|
toTimeString: () => string;
|
|
@@ -2962,7 +2965,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2962
2965
|
} | undefined;
|
|
2963
2966
|
autofocus?: string | undefined;
|
|
2964
2967
|
autoselect?: boolean | undefined;
|
|
2965
|
-
defaultValue?: string | number | object | any[] | {
|
|
2968
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
2969
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2970
|
+
}) => any) | {
|
|
2966
2971
|
exec: (string: string) => RegExpExecArray | null;
|
|
2967
2972
|
test: (string: string) => boolean;
|
|
2968
2973
|
readonly source: string;
|
|
@@ -2983,9 +2988,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2983
2988
|
[Symbol.search]: (string: string) => number;
|
|
2984
2989
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
2985
2990
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
2986
|
-
} |
|
|
2987
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
2988
|
-
}) => any) | {
|
|
2991
|
+
} | {
|
|
2989
2992
|
toString: () => string;
|
|
2990
2993
|
toDateString: () => string;
|
|
2991
2994
|
toTimeString: () => string;
|
|
@@ -3156,6 +3159,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3156
3159
|
resizable?: boolean | undefined;
|
|
3157
3160
|
width?: import("vxe-table").VxeColumnPropTypes.Width | undefined;
|
|
3158
3161
|
minWidth?: import("vxe-table").VxeColumnPropTypes.MinWidth | undefined;
|
|
3162
|
+
seqSlotFn: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3159
3163
|
} | undefined;
|
|
3160
3164
|
rowConfig?: {
|
|
3161
3165
|
useKey?: boolean | undefined;
|
|
@@ -3424,7 +3428,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3424
3428
|
} | undefined;
|
|
3425
3429
|
autofocus?: string | undefined;
|
|
3426
3430
|
autoselect?: boolean | undefined;
|
|
3427
|
-
defaultValue?: string | number | object | any[] | {
|
|
3431
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
3432
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
3433
|
+
}) => any) | {
|
|
3428
3434
|
exec: (string: string) => RegExpExecArray | null;
|
|
3429
3435
|
test: (string: string) => boolean;
|
|
3430
3436
|
readonly source: string;
|
|
@@ -3445,9 +3451,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3445
3451
|
[Symbol.search]: (string: string) => number;
|
|
3446
3452
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
3447
3453
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
3448
|
-
} |
|
|
3449
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
3450
|
-
}) => any) | {
|
|
3454
|
+
} | {
|
|
3451
3455
|
toString: () => string;
|
|
3452
3456
|
toDateString: () => string;
|
|
3453
3457
|
toTimeString: () => string;
|
|
@@ -3783,7 +3787,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3783
3787
|
} | undefined;
|
|
3784
3788
|
autofocus?: string | undefined;
|
|
3785
3789
|
autoselect?: boolean | undefined;
|
|
3786
|
-
defaultValue?: string | number | object | any[] | {
|
|
3790
|
+
defaultValue?: string | number | object | any[] | ((params: {
|
|
3791
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
3792
|
+
}) => any) | {
|
|
3787
3793
|
exec: (string: string) => RegExpExecArray | null;
|
|
3788
3794
|
test: (string: string) => boolean;
|
|
3789
3795
|
readonly source: string;
|
|
@@ -3804,9 +3810,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3804
3810
|
[Symbol.search]: (string: string) => number;
|
|
3805
3811
|
[Symbol.split]: (string: string, limit?: number | undefined) => string[];
|
|
3806
3812
|
[Symbol.matchAll]: (str: string) => IterableIterator<RegExpMatchArray>;
|
|
3807
|
-
} |
|
|
3808
|
-
column: import("vxe-table").VxeTableDefines.ColumnInfo;
|
|
3809
|
-
}) => any) | {
|
|
3813
|
+
} | {
|
|
3810
3814
|
toString: () => string;
|
|
3811
3815
|
toDateString: () => string;
|
|
3812
3816
|
toTimeString: () => string;
|
|
@@ -4475,7 +4479,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4475
4479
|
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
4476
4480
|
};
|
|
4477
4481
|
}>>, {}>;
|
|
4478
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[], "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4482
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "filter" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd")[], "filter" | "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4479
4483
|
tableConfig: {
|
|
4480
4484
|
type: import("vue").PropType<import("../../../es/components/iho-table/src/types").IhoTableConfig>;
|
|
4481
4485
|
default: () => {};
|
|
@@ -4553,6 +4557,8 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4553
4557
|
onActiveCellChangeStart?: ((...args: any[]) => any) | undefined;
|
|
4554
4558
|
onActiveCellChangeEnd?: ((...args: any[]) => any) | undefined;
|
|
4555
4559
|
onSettingClick?: ((...args: any[]) => any) | undefined;
|
|
4560
|
+
onFormClick?: ((...args: any[]) => any) | undefined;
|
|
4561
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
4556
4562
|
}, {
|
|
4557
4563
|
fieldList: import("../../../es/components/iho-table/src/types").LowCodeTableFieldItem[];
|
|
4558
4564
|
tableConfig: import("../../../es/components/iho-table/src/types").IhoTableConfig;
|
|
@@ -16,6 +16,7 @@ import '../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
|
16
16
|
import '../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
17
17
|
import '../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
18
18
|
export { AbstractConfigHooks, AbstractDataHooks, AbstractDomInsertHooks, AbstractEventHooks, AbstractFieldHooks, AbstractSetupHooks } from './src/types/pluginType.js';
|
|
19
|
+
import './src/utils/index.js';
|
|
19
20
|
import { useTablePlugin } from './src/hooks/useTablePlugin.js';
|
|
20
21
|
export { defineTablePlugin, useTablePlugin } from './src/hooks/useTablePlugin.js';
|
|
21
22
|
export { useColumnConfigAdaptor } from './src/hooks/useColumnConfigAdaptor.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent,
|
|
1
|
+
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock, unref, createBlock, resolveDynamicComponent, createVNode, mergeProps, createSlots, withCtx, Fragment, renderList, renderSlot } from 'vue';
|
|
2
2
|
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
3
|
import { useDebounceFn } from '@vueuse/core';
|
|
4
4
|
import { VxeEventListenerNameList, InjectionIhoTableEmits, InjectionIhoTableUUID, InjectionIhoTableInstance, InjectionIhoTableConfig, InjectionIhoTableFieldList, InjectionIhoTableHandler } from './constants/index.js';
|
|
@@ -9,7 +9,7 @@ import { getEventName } from './utils/index.js';
|
|
|
9
9
|
import ColumnComponent from './components/IhoTableColumn.js';
|
|
10
10
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
11
11
|
|
|
12
|
-
const _hoisted_1 =
|
|
12
|
+
const _hoisted_1 = ["id"];
|
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
__name: "IhoTable",
|
|
15
15
|
props: {
|
|
@@ -21,6 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
emits: [
|
|
22
22
|
"formChange",
|
|
23
23
|
"settingClick",
|
|
24
|
+
"formClick",
|
|
25
|
+
"filter",
|
|
24
26
|
...VxeEventListenerNameList.map(getEventName)
|
|
25
27
|
],
|
|
26
28
|
setup(__props, { expose, emit: emits }) {
|
|
@@ -91,7 +93,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
93
|
hooks.setupHooks.setup.call(configRef, fieldListRef);
|
|
92
94
|
return (_ctx, _cache) => {
|
|
93
95
|
const _component_vxe_table = resolveComponent("vxe-table");
|
|
94
|
-
return openBlock(), createElementBlock("section",
|
|
96
|
+
return openBlock(), createElementBlock("section", {
|
|
97
|
+
class: "iho-table",
|
|
98
|
+
id: unref(uuid)
|
|
99
|
+
}, [
|
|
95
100
|
(openBlock(), createBlock(resolveDynamicComponent(unref(header)))),
|
|
96
101
|
createVNode(_component_vxe_table, mergeProps({
|
|
97
102
|
ref_key: "$table",
|
|
@@ -118,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
123
|
})
|
|
119
124
|
]), 1040, ["data"]),
|
|
120
125
|
(openBlock(), createBlock(resolveDynamicComponent(unref(footer))))
|
|
121
|
-
]);
|
|
126
|
+
], 8, _hoisted_1);
|
|
122
127
|
};
|
|
123
128
|
}
|
|
124
129
|
});
|