cnhis-design-vue 3.1.22-beta.1 → 3.1.22-beta.2
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/README.md +123 -123
- package/es/components/big-table/index.d.ts +0 -8
- package/es/components/big-table/index2.js +0 -2
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -8
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-render/src/components/renderer/combination.d.ts +7 -0
- package/es/components/form-render/src/components/renderer/combination.js +4 -1
- package/es/components/grid/index2.js +0 -2
- package/es/components/iho-table/index.d.ts +4011 -11
- package/es/components/iho-table/index2.js +1 -0
- package/es/components/iho-table/src/IhoTable.js +13 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4011 -11
- package/es/components/iho-table/src/constants/index.d.ts +5 -0
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +66 -1
- package/es/components/iho-table/src/hooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +34 -3
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +14 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +39 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +61 -60
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +3 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/index2.js +7 -5
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.d.ts +2 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +7 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/inputs/inputRendererPlugins.js +44 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.d.ts → widgets/checkRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{checkRendererPlugin.js → widgets/checkRendererPlugin.js} +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.d.ts → widgets/colorRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{colorRendererPlugin.js → widgets/colorRendererPlugin.js} +6 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.d.ts → widgets/defaultRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{defaultRendererPlugin.js → widgets/defaultRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.d.ts +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/index.js +6 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.d.ts → widgets/labelRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{labelRendererPlugin.js → widgets/labelRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +89 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.d.ts → widgets/seqRendererPlugin.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/{seqRendererPlugin.js → widgets/seqRendererPlugin.js} +3 -3
- package/es/components/iho-table/src/types/index.d.ts +7 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +14 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/index2.js +12 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +3 -3
- package/es/shared/utils/loadVxe.d.ts +0 -2
- package/es/shared/utils/loadVxe.js +0 -1
- package/es/shared/utils/loadVxe2.js +0 -12
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Nullable } from '../../../../../es/shared/types';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
|
+
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
3
4
|
import { IhoTableConfig } from '../../../../../es/components/iho-table';
|
|
4
5
|
export declare enum WIDGET_TYPE {
|
|
5
6
|
DEFAULT = "DEFAULT",
|
|
@@ -36,5 +37,9 @@ export declare enum WIDGET_TYPE {
|
|
|
36
37
|
BANK_CARD = "BANK_CARD",
|
|
37
38
|
SEQUENCE = "SEQUENCE"
|
|
38
39
|
}
|
|
40
|
+
export declare const IhoEventNameList: Readonly<Array<keyof VxeTableEventProps>>;
|
|
41
|
+
export declare enum INPUT_TYPE {
|
|
42
|
+
INPUT = "INPUT"
|
|
43
|
+
}
|
|
39
44
|
export declare const InjectionIhoTableConfig: InjectionKey<Ref<Nullable<IhoTableConfig>>>;
|
|
40
45
|
export declare const InjectionIhoTableEmits: InjectionKey<(event: string, ...args: unknown[]) => void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InjectionIhoTableConfig, InjectionIhoTableEmits, WIDGET_TYPE } from './index2.js';
|
|
1
|
+
export { INPUT_TYPE, IhoEventNameList, InjectionIhoTableConfig, InjectionIhoTableEmits, WIDGET_TYPE } from './index2.js';
|
|
@@ -34,7 +34,72 @@ var WIDGET_TYPE = /* @__PURE__ */ ((WIDGET_TYPE2) => {
|
|
|
34
34
|
WIDGET_TYPE2["SEQUENCE"] = "SEQUENCE";
|
|
35
35
|
return WIDGET_TYPE2;
|
|
36
36
|
})(WIDGET_TYPE || {});
|
|
37
|
+
const IhoEventNameList = Object.freeze([
|
|
38
|
+
"onKeydownStart",
|
|
39
|
+
"onKeydown",
|
|
40
|
+
"onKeydownEnd",
|
|
41
|
+
"onPaste",
|
|
42
|
+
"onCopy",
|
|
43
|
+
"onCut",
|
|
44
|
+
"onCurrentChange",
|
|
45
|
+
"onRadioChange",
|
|
46
|
+
"onCheckboxChange",
|
|
47
|
+
"onCheckboxAll",
|
|
48
|
+
"onCheckboxRangeStart",
|
|
49
|
+
"onCheckboxRangeChange",
|
|
50
|
+
"onCheckboxRangeEnd",
|
|
51
|
+
"onCellClick",
|
|
52
|
+
"onCellDblclick",
|
|
53
|
+
"onCellMenu",
|
|
54
|
+
"onCellMouseenter",
|
|
55
|
+
"onCellMouseleave",
|
|
56
|
+
"onHeaderCellClick",
|
|
57
|
+
"onHeaderCellDblclick",
|
|
58
|
+
"onHeaderCellMenu",
|
|
59
|
+
"onFooterCellClick",
|
|
60
|
+
"onFooterCellDblclick",
|
|
61
|
+
"onFooterCellMenu",
|
|
62
|
+
"onSortChange",
|
|
63
|
+
"onFilterChange",
|
|
64
|
+
"onFilterVisible",
|
|
65
|
+
"onResizableChange",
|
|
66
|
+
"onToggleRowExpand",
|
|
67
|
+
"onToggleTreeExpand",
|
|
68
|
+
"onMenuClick",
|
|
69
|
+
"onEditClosed",
|
|
70
|
+
"onEditActived",
|
|
71
|
+
"onEditDisabled",
|
|
72
|
+
"onValidError",
|
|
73
|
+
"onScroll",
|
|
74
|
+
"onCustom",
|
|
75
|
+
"onOpenFnr",
|
|
76
|
+
"onFnrChange",
|
|
77
|
+
"onFnrFind",
|
|
78
|
+
"onFnrFindAll",
|
|
79
|
+
"onFnrReplace",
|
|
80
|
+
"onFnrReplaceAll",
|
|
81
|
+
"onCellAreaCopy",
|
|
82
|
+
"onCellAreaCut",
|
|
83
|
+
"onCellAreaPaste",
|
|
84
|
+
"onCellAreaMerge",
|
|
85
|
+
"onClearCellAreaMerge",
|
|
86
|
+
"onHeaderCellAreaSelection",
|
|
87
|
+
"onCellAreaSelectionStart",
|
|
88
|
+
"onCellAreaSelectionDrag",
|
|
89
|
+
"onCellAreaSelectionEnd",
|
|
90
|
+
"onCellAreaExtensionStart",
|
|
91
|
+
"onCellAreaExtensionDrag",
|
|
92
|
+
"onCellAreaExtensionEnd",
|
|
93
|
+
"onCellAreaArrowsStart",
|
|
94
|
+
"onCellAreaArrowsEnd",
|
|
95
|
+
"onActiveCellChangeStart",
|
|
96
|
+
"onActiveCellChangeEnd"
|
|
97
|
+
]);
|
|
98
|
+
var INPUT_TYPE = /* @__PURE__ */ ((INPUT_TYPE2) => {
|
|
99
|
+
INPUT_TYPE2["INPUT"] = "INPUT";
|
|
100
|
+
return INPUT_TYPE2;
|
|
101
|
+
})(INPUT_TYPE || {});
|
|
37
102
|
const InjectionIhoTableConfig = Symbol("injectionIhoTableConfig ");
|
|
38
103
|
const InjectionIhoTableEmits = Symbol("InjectionIhoTableEmits ");
|
|
39
104
|
|
|
40
|
-
export { InjectionIhoTableConfig, InjectionIhoTableEmits, WIDGET_TYPE };
|
|
105
|
+
export { INPUT_TYPE, IhoEventNameList, InjectionIhoTableConfig, InjectionIhoTableEmits, WIDGET_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks } from './tapHooks/index2.js';
|
|
1
|
+
export { applyTableConfigHooks, applyTableEventHooks, applyTableFieldHooks, createTableHooks } from './tapHooks/index2.js';
|
|
2
2
|
export { defineTablePlugin, useTablePlugin } from './useTablePlugin2.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
1
2
|
import { IhoTableConfig, IhoTableFieldItem, TableHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
2
3
|
export declare const createTableHooks: () => Readonly<{
|
|
3
4
|
configHooks: import("../../../../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
@@ -6,3 +7,4 @@ export declare const createTableHooks: () => Readonly<{
|
|
|
6
7
|
}>;
|
|
7
8
|
export declare function applyTableConfigHooks(hooks: TableHooks, config: IhoTableConfig): IhoTableConfig;
|
|
8
9
|
export declare function applyTableFieldHooks(hooks: TableHooks, fieldList: IhoTableFieldItem[], config: IhoTableConfig): IhoTableFieldItem[];
|
|
10
|
+
export declare function applyTableEventHooks(hooks: TableHooks, config: IhoTableConfig): Record<keyof VxeTableEventProps, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks } from './index2.js';
|
|
1
|
+
export { applyTableConfigHooks, applyTableEventHooks, applyTableFieldHooks, createTableHooks } from './index2.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { arrayed } from '../../../../../shared/utils/index2.js';
|
|
2
2
|
import { cloneDeep } from 'lodash-es';
|
|
3
|
+
import { IhoEventNameList } from '../../constants/index2.js';
|
|
3
4
|
import { useEventHooks } from './useEventHooks2.js';
|
|
4
5
|
import { useConfigHooks } from './useConfigHooks2.js';
|
|
5
6
|
import { useFieldHooks } from './useFieldHooks2.js';
|
|
@@ -19,8 +20,28 @@ const createTableHooks = (() => {
|
|
|
19
20
|
})();
|
|
20
21
|
function applyTableConfigHooks(hooks, config) {
|
|
21
22
|
const result = hooks.configHooks.config.call(cloneDeep(config));
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
const propertyHooks = [
|
|
24
|
+
"rowConfig",
|
|
25
|
+
"editConfig",
|
|
26
|
+
"columnConfig",
|
|
27
|
+
"resizableConfig",
|
|
28
|
+
"seqConfig",
|
|
29
|
+
"sortConfig",
|
|
30
|
+
"filterConfig",
|
|
31
|
+
"radioConfig",
|
|
32
|
+
"checkboxConfig",
|
|
33
|
+
"expandConfig",
|
|
34
|
+
"treeConfig",
|
|
35
|
+
"mouseConfig",
|
|
36
|
+
"menuConfig",
|
|
37
|
+
"keyboardConfig",
|
|
38
|
+
"scrollY",
|
|
39
|
+
"scrollX",
|
|
40
|
+
"editRules"
|
|
41
|
+
];
|
|
42
|
+
propertyHooks.forEach((hookName) => {
|
|
43
|
+
result[hookName] = hooks.configHooks[hookName].call(result[hookName], result);
|
|
44
|
+
});
|
|
24
45
|
return result;
|
|
25
46
|
}
|
|
26
47
|
function applyTableFieldHooks(hooks, fieldList, config) {
|
|
@@ -46,5 +67,15 @@ function applyTableFieldHooks(hooks, fieldList, config) {
|
|
|
46
67
|
return finFieldList;
|
|
47
68
|
}, []);
|
|
48
69
|
}
|
|
70
|
+
function applyTableEventHooks(hooks, config) {
|
|
71
|
+
const handler = (eventName, payload) => {
|
|
72
|
+
var _a;
|
|
73
|
+
(_a = hooks.eventHooks[eventName]) == null ? void 0 : _a.promise(payload, config);
|
|
74
|
+
};
|
|
75
|
+
return IhoEventNameList.reduce((result, eventName) => {
|
|
76
|
+
result[eventName] = (payload) => handler(eventName, payload);
|
|
77
|
+
return result;
|
|
78
|
+
}, {});
|
|
79
|
+
}
|
|
49
80
|
|
|
50
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createTableHooks };
|
|
81
|
+
export { applyTableConfigHooks, applyTableEventHooks, applyTableFieldHooks, createTableHooks };
|
|
@@ -6,6 +6,20 @@ declare class ConfigHooks extends AbstractConfigHooks {
|
|
|
6
6
|
readonly rowConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.RowConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
7
7
|
readonly editConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.EditConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
8
8
|
readonly columnConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ColumnConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
9
|
+
readonly resizableConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ResizableConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
10
|
+
readonly seqConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.SeqConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
11
|
+
readonly sortConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.SortConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
12
|
+
readonly filterConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.FilterConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
13
|
+
readonly radioConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.RadioConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
14
|
+
readonly checkboxConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.CheckboxConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
15
|
+
readonly expandConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ExpandConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
16
|
+
readonly treeConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.TreeConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
17
|
+
readonly mouseConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.MouseConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
18
|
+
readonly menuConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.MenuConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
19
|
+
readonly keyboardConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.KeyboardConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
20
|
+
readonly scrollY: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ScrollY, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
21
|
+
readonly scrollX: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ScrollX, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
22
|
+
readonly editRules: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.EditRules, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
9
23
|
}
|
|
10
24
|
export declare function useConfigHooks(): {
|
|
11
25
|
create: () => ConfigHooks;
|
|
@@ -16,7 +16,45 @@ class ConfigHooks extends AbstractConfigHooks {
|
|
|
16
16
|
this.config = new SyncWaterfallHook(["config"]);
|
|
17
17
|
this.rowConfig = new SyncWaterfallHook(["rowConfig", "config"]);
|
|
18
18
|
this.editConfig = new SyncWaterfallHook(["editConfig", "config"]);
|
|
19
|
-
this.columnConfig = new SyncWaterfallHook([
|
|
19
|
+
this.columnConfig = new SyncWaterfallHook([
|
|
20
|
+
"columnConfig",
|
|
21
|
+
"config"
|
|
22
|
+
]);
|
|
23
|
+
this.resizableConfig = new SyncWaterfallHook([
|
|
24
|
+
"resizableConfig",
|
|
25
|
+
"config"
|
|
26
|
+
]);
|
|
27
|
+
this.seqConfig = new SyncWaterfallHook(["seqConfig", "config"]);
|
|
28
|
+
this.sortConfig = new SyncWaterfallHook(["sortConfig", "config"]);
|
|
29
|
+
this.filterConfig = new SyncWaterfallHook([
|
|
30
|
+
"filterConfig",
|
|
31
|
+
"config"
|
|
32
|
+
]);
|
|
33
|
+
this.radioConfig = new SyncWaterfallHook([
|
|
34
|
+
"radioConfig",
|
|
35
|
+
"config"
|
|
36
|
+
]);
|
|
37
|
+
this.checkboxConfig = new SyncWaterfallHook([
|
|
38
|
+
"checkboxConfig",
|
|
39
|
+
"config"
|
|
40
|
+
]);
|
|
41
|
+
this.expandConfig = new SyncWaterfallHook([
|
|
42
|
+
"expandConfig",
|
|
43
|
+
"config"
|
|
44
|
+
]);
|
|
45
|
+
this.treeConfig = new SyncWaterfallHook(["treeConfig", "config"]);
|
|
46
|
+
this.mouseConfig = new SyncWaterfallHook([
|
|
47
|
+
"mouseConfig",
|
|
48
|
+
"config"
|
|
49
|
+
]);
|
|
50
|
+
this.menuConfig = new SyncWaterfallHook(["menuConfig", "config"]);
|
|
51
|
+
this.keyboardConfig = new SyncWaterfallHook([
|
|
52
|
+
"keyboardConfig",
|
|
53
|
+
"config"
|
|
54
|
+
]);
|
|
55
|
+
this.scrollY = new SyncWaterfallHook(["scrollY", "config"]);
|
|
56
|
+
this.scrollX = new SyncWaterfallHook(["scrollX", "config"]);
|
|
57
|
+
this.editRules = new SyncWaterfallHook(["editRules", "config"]);
|
|
20
58
|
}
|
|
21
59
|
}
|
|
22
60
|
function useConfigHooks() {
|
|
@@ -1,65 +1,66 @@
|
|
|
1
1
|
import { AsyncParallelHook } from '../../../../../../es/shared/utils/tapable';
|
|
2
2
|
import { VxeTableEvents } from 'vxe-table/types/table';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
3
|
+
import { AbstractEventHooks } from '../../../../../../es/components/iho-table/src/types';
|
|
4
|
+
declare class EventHooks extends AbstractEventHooks {
|
|
5
|
+
readonly onKeydownStart: AsyncParallelHook<[VxeTableEvents.KeydownStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
6
|
+
readonly onKeydown: AsyncParallelHook<[VxeTableEvents.Keydown, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
7
|
+
readonly onKeydownEnd: AsyncParallelHook<[VxeTableEvents.KeydownEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
8
|
+
readonly onPaste: AsyncParallelHook<[VxeTableEvents.Paste, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
9
|
+
readonly onCopy: AsyncParallelHook<[VxeTableEvents.Copy, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
10
|
+
readonly onCut: AsyncParallelHook<[VxeTableEvents.Cut, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
11
|
+
readonly onCurrentChange: AsyncParallelHook<[VxeTableEvents.CurrentChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
12
|
+
readonly onRadioChange: AsyncParallelHook<[VxeTableEvents.RadioChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
13
|
+
readonly onCheckboxChange: AsyncParallelHook<[VxeTableEvents.CheckboxChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
14
|
+
readonly onCheckboxAll: AsyncParallelHook<[VxeTableEvents.CheckboxAll, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
15
|
+
readonly onCheckboxRangeStart: AsyncParallelHook<[VxeTableEvents.CheckboxRangeStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
16
|
+
readonly onCheckboxRangeChange: AsyncParallelHook<[VxeTableEvents.CheckboxRangeChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
17
|
+
readonly onCheckboxRangeEnd: AsyncParallelHook<[VxeTableEvents.CheckboxRangeEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
18
|
+
readonly onCellClick: AsyncParallelHook<[VxeTableEvents.CellClick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
19
|
+
readonly onCellDblclick: AsyncParallelHook<[VxeTableEvents.CellDblclick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
20
|
+
readonly onCellMenu: AsyncParallelHook<[VxeTableEvents.CellMenu, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
21
|
+
readonly onCellMouseenter: AsyncParallelHook<[VxeTableEvents.CellMouseenter, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
22
|
+
readonly onCellMouseleave: AsyncParallelHook<[VxeTableEvents.CellMouseleave, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
23
|
+
readonly onHeaderCellClick: AsyncParallelHook<[VxeTableEvents.HeaderCellClick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
24
|
+
readonly onHeaderCellDblclick: AsyncParallelHook<[VxeTableEvents.HeaderCellDblclick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
25
|
+
readonly onHeaderCellMenu: AsyncParallelHook<[VxeTableEvents.HeaderCellMenu, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
26
|
+
readonly onFooterCellClick: AsyncParallelHook<[VxeTableEvents.FooterCellClick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
27
|
+
readonly onFooterCellDblclick: AsyncParallelHook<[VxeTableEvents.FooterCellDblclick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
28
|
+
readonly onFooterCellMenu: AsyncParallelHook<[VxeTableEvents.FooterCellMenu, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
29
|
+
readonly onSortChange: AsyncParallelHook<[VxeTableEvents.SortChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
30
|
+
readonly onFilterChange: AsyncParallelHook<[VxeTableEvents.FilterChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
31
|
+
readonly onFilterVisible: AsyncParallelHook<[VxeTableEvents.FilterVisible, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
32
|
+
readonly onResizableChange: AsyncParallelHook<[VxeTableEvents.ResizableChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
33
|
+
readonly onToggleRowExpand: AsyncParallelHook<[VxeTableEvents.ToggleRowExpand, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
34
|
+
readonly onToggleTreeExpand: AsyncParallelHook<[VxeTableEvents.ToggleTreeExpand, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
35
|
+
readonly onMenuClick: AsyncParallelHook<[VxeTableEvents.MenuClick, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
36
|
+
readonly onEditClosed: AsyncParallelHook<[VxeTableEvents.EditClosed, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
37
|
+
readonly onEditActived: AsyncParallelHook<[VxeTableEvents.EditActived, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
38
|
+
readonly onEditDisabled: AsyncParallelHook<[VxeTableEvents.EditDisabled, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
39
|
+
readonly onValidError: AsyncParallelHook<[VxeTableEvents.ValidError, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
40
|
+
readonly onScroll: AsyncParallelHook<[VxeTableEvents.Scroll, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
41
|
+
readonly onCustom: AsyncParallelHook<[VxeTableEvents.Custom, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
42
|
+
readonly onOpenFnr: AsyncParallelHook<[VxeTableEvents.OpenFnr, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
43
|
+
readonly onFnrChange: AsyncParallelHook<[VxeTableEvents.FnrChange, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
44
|
+
readonly onFnrFind: AsyncParallelHook<[VxeTableEvents.FnrFind, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
45
|
+
readonly onFnrFindAll: AsyncParallelHook<[VxeTableEvents.FnrFindAll, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
46
|
+
readonly onFnrReplace: AsyncParallelHook<[VxeTableEvents.FnrReplace, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
47
|
+
readonly onFnrReplaceAll: AsyncParallelHook<[VxeTableEvents.FnrReplaceAll, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
48
|
+
readonly onCellAreaCopy: AsyncParallelHook<[VxeTableEvents.CellAreaCopy, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
49
|
+
readonly onCellAreaCut: AsyncParallelHook<[VxeTableEvents.CellAreaCut, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
50
|
+
readonly onCellAreaPaste: AsyncParallelHook<[VxeTableEvents.CellAreaPaste, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
51
|
+
readonly onCellAreaMerge: AsyncParallelHook<[VxeTableEvents.CellAreaMerge, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
52
|
+
readonly onClearCellAreaMerge: AsyncParallelHook<[VxeTableEvents.ClearCellAreaMerge, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
53
|
+
readonly onHeaderCellAreaSelection: AsyncParallelHook<[VxeTableEvents.HeaderCellAreaSelection, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
54
|
+
readonly onCellAreaSelectionStart: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
55
|
+
readonly onCellAreaSelectionDrag: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionDrag, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
56
|
+
readonly onCellAreaSelectionEnd: AsyncParallelHook<[VxeTableEvents.CellAreaSelectionEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
57
|
+
readonly onCellAreaExtensionStart: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
58
|
+
readonly onCellAreaExtensionDrag: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionDrag, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
59
|
+
readonly onCellAreaExtensionEnd: AsyncParallelHook<[VxeTableEvents.CellAreaExtensionEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
60
|
+
readonly onCellAreaArrowsStart: AsyncParallelHook<[VxeTableEvents.CellAreaArrowsStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
61
|
+
readonly onCellAreaArrowsEnd: AsyncParallelHook<[VxeTableEvents.CellAreaArrowsEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
62
|
+
readonly onActiveCellChangeStart: AsyncParallelHook<[VxeTableEvents.ActiveCellChangeStart, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
63
|
+
readonly onActiveCellChangeEnd: AsyncParallelHook<[VxeTableEvents.ActiveCellChangeEnd, import("../../../../../../es/components/iho-table/src/types").IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
63
64
|
}
|
|
64
65
|
export declare function useEventHooks(): {
|
|
65
66
|
create: () => EventHooks;
|
|
@@ -8,9 +8,11 @@ import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
|
8
8
|
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
9
|
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
10
|
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
+
import { AbstractEventHooks } from '../../types/pluginType2.js';
|
|
11
12
|
|
|
12
|
-
class EventHooks {
|
|
13
|
+
class EventHooks extends AbstractEventHooks {
|
|
13
14
|
constructor() {
|
|
15
|
+
super(...arguments);
|
|
14
16
|
this.onKeydownStart = new AsyncParallelHook(["event", "config"]);
|
|
15
17
|
this.onKeydown = new AsyncParallelHook(["event", "config"]);
|
|
16
18
|
this.onKeydownEnd = new AsyncParallelHook(["event", "config"]);
|
|
@@ -15,7 +15,7 @@ function defaultConfigPlugin() {
|
|
|
15
15
|
columnConfig: { resizable: true },
|
|
16
16
|
rowConfig: { height: 32, isHover: true, isCurrent: true, keyField: "theUniqueKey" },
|
|
17
17
|
editConfig: {
|
|
18
|
-
trigger: "
|
|
18
|
+
trigger: "click",
|
|
19
19
|
mode: "cell",
|
|
20
20
|
autoClear: false,
|
|
21
21
|
showIcon: false
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { defaultConfigPlugin } from './defaultConfigPlugin/index2.js';
|
|
2
2
|
export { lowCodeFieldAdaptorPlugin } from './lowCodeFieldAdaptorPlugin/index2.js';
|
|
3
|
-
export { labelRendererPlugin } from './rendererPlugins/labelRendererPlugin.js';
|
|
4
|
-
export { defaultRendererPlugin } from './rendererPlugins/defaultRendererPlugin.js';
|
|
5
|
-
export { colorRendererPlugin } from './rendererPlugins/colorRendererPlugin.js';
|
|
6
|
-
export { seqRendererPlugin } from './rendererPlugins/seqRendererPlugin.js';
|
|
7
|
-
export { checkRendererPlugin } from './rendererPlugins/checkRendererPlugin.js';
|
|
3
|
+
export { labelRendererPlugin } from './rendererPlugins/widgets/labelRendererPlugin.js';
|
|
4
|
+
export { defaultRendererPlugin } from './rendererPlugins/widgets/defaultRendererPlugin.js';
|
|
5
|
+
export { colorRendererPlugin } from './rendererPlugins/widgets/colorRendererPlugin.js';
|
|
6
|
+
export { seqRendererPlugin } from './rendererPlugins/widgets/seqRendererPlugin.js';
|
|
7
|
+
export { checkRendererPlugin } from './rendererPlugins/widgets/checkRendererPlugin.js';
|
|
8
|
+
export { pictureRendererPlugin } from './rendererPlugins/widgets/pictureRendererPlugin.js';
|
|
9
|
+
export { inputRendererPlugins } from './rendererPlugins/inputs/inputRendererPlugins.js';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { defaultConfigPlugin } from './defaultConfigPlugin/index2.js';
|
|
2
2
|
export { lowCodeFieldAdaptorPlugin } from './lowCodeFieldAdaptorPlugin/index2.js';
|
|
3
|
-
export { labelRendererPlugin } from './rendererPlugins/labelRendererPlugin.js';
|
|
4
|
-
export { defaultRendererPlugin } from './rendererPlugins/defaultRendererPlugin.js';
|
|
5
|
-
export { colorRendererPlugin } from './rendererPlugins/colorRendererPlugin.js';
|
|
6
|
-
export { seqRendererPlugin } from './rendererPlugins/seqRendererPlugin.js';
|
|
7
|
-
export { checkRendererPlugin } from './rendererPlugins/checkRendererPlugin.js';
|
|
3
|
+
export { labelRendererPlugin } from './rendererPlugins/widgets/labelRendererPlugin.js';
|
|
4
|
+
export { defaultRendererPlugin } from './rendererPlugins/widgets/defaultRendererPlugin.js';
|
|
5
|
+
export { colorRendererPlugin } from './rendererPlugins/widgets/colorRendererPlugin.js';
|
|
6
|
+
export { seqRendererPlugin } from './rendererPlugins/widgets/seqRendererPlugin.js';
|
|
7
|
+
export { checkRendererPlugin } from './rendererPlugins/widgets/checkRendererPlugin.js';
|
|
8
|
+
export { pictureRendererPlugin } from './rendererPlugins/widgets/pictureRendererPlugin.js';
|
|
9
|
+
export { inputRendererPlugins } from './rendererPlugins/inputs/inputRendererPlugins.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { pick } from 'lodash-es';
|
|
2
|
+
import { WIDGET_TYPE } from '../../constants/index2.js';
|
|
2
3
|
import { defineTablePlugin } from '../../hooks/useTablePlugin2.js';
|
|
3
4
|
|
|
4
5
|
function lowCodeFieldAdaptorPlugin() {
|
|
@@ -16,6 +17,7 @@ function lowCodeFieldAdaptorPlugin() {
|
|
|
16
17
|
};
|
|
17
18
|
if (_field.settingObj) {
|
|
18
19
|
result.editRender = { name: _field.settingObj.attr || "DEFAULT" };
|
|
20
|
+
result.editRender.enabled = !Reflect.get(WIDGET_TYPE, result.editRender.name);
|
|
19
21
|
}
|
|
20
22
|
return result;
|
|
21
23
|
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { labelRendererPlugin } from './labelRendererPlugin.js';
|
|
2
|
-
export { defaultRendererPlugin } from './defaultRendererPlugin.js';
|
|
3
|
-
export { colorRendererPlugin } from './colorRendererPlugin.js';
|
|
4
|
-
export { seqRendererPlugin } from './seqRendererPlugin.js';
|
|
5
|
-
export { checkRendererPlugin } from './checkRendererPlugin.js';
|
|
1
|
+
export { labelRendererPlugin } from './widgets/labelRendererPlugin.js';
|
|
2
|
+
export { defaultRendererPlugin } from './widgets/defaultRendererPlugin.js';
|
|
3
|
+
export { colorRendererPlugin } from './widgets/colorRendererPlugin.js';
|
|
4
|
+
export { seqRendererPlugin } from './widgets/seqRendererPlugin.js';
|
|
5
|
+
export { checkRendererPlugin } from './widgets/checkRendererPlugin.js';
|
|
6
|
+
export { pictureRendererPlugin } from './widgets/pictureRendererPlugin.js';
|
|
7
|
+
export { inputRendererPlugins } from './inputs/inputRendererPlugins.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './inputRendererPlugins';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { inputRendererPlugins } from './inputRendererPlugins.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function inputRendererPlugins(): import("../../../../../../../es/components/iho-table").TablePlugin;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createVNode, inject } from 'vue';
|
|
2
|
+
import { NInput } from 'naive-ui';
|
|
3
|
+
import '../../../../index2.js';
|
|
4
|
+
import { INPUT_TYPE, InjectionIhoTableEmits } from '../../../constants/index2.js';
|
|
5
|
+
import { defineTablePlugin } from '../../../hooks/useTablePlugin2.js';
|
|
6
|
+
|
|
7
|
+
function inputRendererPlugins() {
|
|
8
|
+
const pluginName = "inputRendererPlugins";
|
|
9
|
+
return defineTablePlugin({
|
|
10
|
+
name: pluginName,
|
|
11
|
+
vxe(instance) {
|
|
12
|
+
instance.renderer.add(INPUT_TYPE.INPUT, {
|
|
13
|
+
renderCell(renderOpts, {
|
|
14
|
+
row,
|
|
15
|
+
column
|
|
16
|
+
}) {
|
|
17
|
+
return [createVNode("span", null, [row[column.field]])];
|
|
18
|
+
},
|
|
19
|
+
renderEdit(renderOpts, {
|
|
20
|
+
row,
|
|
21
|
+
column,
|
|
22
|
+
$rowIndex
|
|
23
|
+
}) {
|
|
24
|
+
const emit = inject(InjectionIhoTableEmits);
|
|
25
|
+
function onBlur() {
|
|
26
|
+
emit("formChange", {
|
|
27
|
+
value: row[column.field],
|
|
28
|
+
row,
|
|
29
|
+
column,
|
|
30
|
+
index: $rowIndex
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return [createVNode(NInput, {
|
|
34
|
+
"value": row[column.field],
|
|
35
|
+
"onUpdate:value": ($event) => row[column.field] = $event,
|
|
36
|
+
"onBlur": onBlur
|
|
37
|
+
}, null)];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { inputRendererPlugins };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function checkRendererPlugin(): import("
|
|
1
|
+
export declare function checkRendererPlugin(): import("../../../../../../../es/components/iho-table").TablePlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { defineTablePlugin } from '
|
|
1
|
+
import '../../../../index2.js';
|
|
2
|
+
import { defineTablePlugin } from '../../../hooks/useTablePlugin2.js';
|
|
3
3
|
|
|
4
4
|
function checkRendererPlugin() {
|
|
5
5
|
const pluginName = "checkRendererPlugin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function colorRendererPlugin(): import("
|
|
1
|
+
export declare function colorRendererPlugin(): import("../../../../../../../es/components/iho-table").TablePlugin;
|