cnhis-design-vue 3.1.30-beta.4 → 3.1.30-beta.6
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/form-render/src/utils/business.js +24 -2
- package/es/components/iho-table/index.d.ts +62 -1
- package/es/components/iho-table/src/IhoTable.js +30 -16
- package/es/components/iho-table/src/IhoTable.vue.d.ts +62 -1
- package/es/components/iho-table/src/constants/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +3 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +6 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +4 -8
- package/es/components/iho-table/src/types/index.d.ts +7 -3
- package/es/components/index.css +1 -1
- package/es/components/keyboard/index.d.ts +81 -12
- package/es/components/keyboard/src/Keyboard.js +196 -171
- package/es/components/keyboard/src/Keyboard.vue.d.ts +83 -22
- package/es/components/keyboard/src/components/InputNumber.js +13 -6
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +17 -2
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +20 -15
- package/package.json +2 -2
|
@@ -56,7 +56,7 @@ function parseBirthday(birthday) {
|
|
|
56
56
|
result.hours = differenceInHours(d, birthDate);
|
|
57
57
|
return result;
|
|
58
58
|
}
|
|
59
|
-
function parseAge2Birthday(age, ageUnit, formatter = "yyyy-MM-dd") {
|
|
59
|
+
function parseAge2Birthday(age, ageUnit, formatter = "yyyy-MM-dd HH:mm") {
|
|
60
60
|
var _a;
|
|
61
61
|
const result = new Date();
|
|
62
62
|
const handlerMap = {
|
|
@@ -68,10 +68,32 @@ function parseAge2Birthday(age, ageUnit, formatter = "yyyy-MM-dd") {
|
|
|
68
68
|
[FIELD_AGE_UNIT.YEAR]: () => decreaseDate(result, "FullYear", age)
|
|
69
69
|
};
|
|
70
70
|
(_a = handlerMap[ageUnit]) == null ? void 0 : _a.call(handlerMap);
|
|
71
|
-
return format(result, formatter);
|
|
71
|
+
return format(eraseDateMantissa(result, ageUnit), formatter);
|
|
72
72
|
function decreaseDate(date, type, num) {
|
|
73
73
|
date[`set${type}`](date[`get${type}`]() - num);
|
|
74
74
|
}
|
|
75
|
+
function eraseDateMantissa(date, unit) {
|
|
76
|
+
const unitSequence = [
|
|
77
|
+
{
|
|
78
|
+
[FIELD_AGE_UNIT.DAY]: "Date",
|
|
79
|
+
[FIELD_AGE_UNIT.WEEK]: "Date",
|
|
80
|
+
[FIELD_AGE_UNIT.MONTH]: "Date",
|
|
81
|
+
[FIELD_AGE_UNIT.YEAR]: "Date"
|
|
82
|
+
},
|
|
83
|
+
{ [FIELD_AGE_UNIT.HOUR]: "Hours" },
|
|
84
|
+
{ [FIELD_AGE_UNIT.MINUTE]: "Minutes" }
|
|
85
|
+
];
|
|
86
|
+
const index = unitSequence.findIndex((unitItem) => Reflect.has(unitItem, unit));
|
|
87
|
+
if (~index) {
|
|
88
|
+
unitSequence.slice(index + 1).forEach((unitItem) => {
|
|
89
|
+
Object.values(unitItem).forEach((unitType) => {
|
|
90
|
+
date[`set${unitType}`](unitType === "Date" ? 1 : 0);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
date.setSeconds(0);
|
|
95
|
+
return date;
|
|
96
|
+
}
|
|
75
97
|
}
|
|
76
98
|
function parseAge2FromContext(context) {
|
|
77
99
|
return context.hours < 24 ? { ageUnit: FIELD_AGE_UNIT.HOUR, age: context.hours < 2 ? 1 : context.hours } : context.day < 30 ? { ageUnit: FIELD_AGE_UNIT.DAY, age: context.day } : context.day < 365 ? { ageUnit: FIELD_AGE_UNIT.MONTH, age: context.month } : { ageUnit: FIELD_AGE_UNIT.YEAR, age: context.year };
|
|
@@ -101,7 +101,6 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
101
101
|
}>>;
|
|
102
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;
|
|
103
103
|
uuid: string;
|
|
104
|
-
uuidRef: import("vue").Ref<string>;
|
|
105
104
|
$table: import("vue").Ref<import("vxe-table").VxeTableInstance | undefined>;
|
|
106
105
|
hooks: Readonly<{
|
|
107
106
|
configHooks: import("../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
@@ -2013,6 +2012,65 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2013
2012
|
adaptive?: boolean | undefined;
|
|
2014
2013
|
} | undefined;
|
|
2015
2014
|
params?: any;
|
|
2015
|
+
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
2016
|
+
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
2017
|
+
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
2018
|
+
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
2019
|
+
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
2020
|
+
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
2021
|
+
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
2022
|
+
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
2023
|
+
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
2024
|
+
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
2025
|
+
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
2026
|
+
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
2027
|
+
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
2028
|
+
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
2029
|
+
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
2030
|
+
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
2031
|
+
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
2032
|
+
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
2033
|
+
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
2034
|
+
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
2035
|
+
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
2036
|
+
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
2037
|
+
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
2038
|
+
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
2039
|
+
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
2040
|
+
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
2041
|
+
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
2042
|
+
onFilterVisible?: ((params: import("vxe-table").VxeTableDefines.FilterVisibleEventParams) => void) | undefined;
|
|
2043
|
+
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
2044
|
+
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
2045
|
+
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
2046
|
+
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
2047
|
+
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
2048
|
+
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
2049
|
+
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
2050
|
+
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
2051
|
+
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
2052
|
+
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
2053
|
+
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
2054
|
+
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
2055
|
+
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
2056
|
+
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
2057
|
+
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
2058
|
+
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
2059
|
+
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
2060
|
+
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
2061
|
+
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
2062
|
+
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
2063
|
+
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
2064
|
+
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
2065
|
+
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
2066
|
+
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
2067
|
+
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
2068
|
+
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
2069
|
+
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
2070
|
+
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
2071
|
+
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
2072
|
+
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
2073
|
+
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
2016
2074
|
uuid?: string | undefined;
|
|
2017
2075
|
showSeq?: boolean | undefined;
|
|
2018
2076
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
@@ -2071,6 +2129,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2071
2129
|
anchorList?: string[] | undefined;
|
|
2072
2130
|
}>;
|
|
2073
2131
|
updateConfigRef: () => void;
|
|
2132
|
+
_updateConfigRef: () => void;
|
|
2074
2133
|
fieldListRef: import("vue").Ref<{
|
|
2075
2134
|
[x: string]: unknown;
|
|
2076
2135
|
property?: string | undefined;
|
|
@@ -2372,9 +2431,11 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2372
2431
|
annotation?: boolean | undefined;
|
|
2373
2432
|
}[]>;
|
|
2374
2433
|
updateFieldListRef: () => void;
|
|
2434
|
+
_updateFieldListRef: () => void;
|
|
2375
2435
|
dataTransfer: (data: import("../../../es/shared/types").AnyObject[]) => Promise<import("../../../es/shared/types").AnyObject[]>;
|
|
2376
2436
|
tableDataRef: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
2377
2437
|
updateTableDataRef: () => Promise<void>;
|
|
2438
|
+
_updateTableDataRef: () => Promise<void>;
|
|
2378
2439
|
tableHandler: import("../../../es/components/iho-table/src/types").IhoTableHandler;
|
|
2379
2440
|
eventListener: import("./src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
|
2380
2441
|
eventHookHandler: Record<keyof import("vxe-table").VxeTableEventProps, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, createVNode, mergeProps, withCtx, Fragment, renderList } from 'vue';
|
|
1
|
+
import { defineComponent, provide, ref, computed, watch, resolveComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, 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';
|
|
@@ -28,29 +28,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
const props = __props;
|
|
29
29
|
provide(InjectionIhoTableEmits, emits);
|
|
30
30
|
const uuid = uuidGenerator();
|
|
31
|
-
|
|
32
|
-
provide(InjectionIhoTableUUID, uuidRef);
|
|
31
|
+
provide(InjectionIhoTableUUID, uuid);
|
|
33
32
|
const $table = ref();
|
|
34
33
|
provide(InjectionIhoTableInstance, $table);
|
|
35
34
|
const hooks = createTableHooks();
|
|
36
35
|
const configRef = ref({ uuid: (_b = (_a = props.tableConfig) == null ? void 0 : _a.uuid) != null ? _b : uuid });
|
|
37
36
|
provide(InjectionIhoTableConfig, configRef);
|
|
38
|
-
const updateConfigRef = useDebounceFn(
|
|
37
|
+
const updateConfigRef = useDebounceFn(_updateConfigRef, 10);
|
|
38
|
+
function _updateConfigRef() {
|
|
39
39
|
configRef.value = applyTableConfigHooks(hooks, props.tableConfig);
|
|
40
|
-
configRef.value.uuid =
|
|
41
|
-
}
|
|
40
|
+
configRef.value.uuid = uuid;
|
|
41
|
+
}
|
|
42
42
|
const fieldListRef = ref([]);
|
|
43
43
|
provide(InjectionIhoTableFieldList, fieldListRef);
|
|
44
|
-
const updateFieldListRef = useDebounceFn(
|
|
44
|
+
const updateFieldListRef = useDebounceFn(_updateFieldListRef, 10);
|
|
45
|
+
function _updateFieldListRef() {
|
|
45
46
|
fieldListRef.value = applyTableFieldHooks(hooks, props.fieldList, configRef.value);
|
|
46
|
-
}
|
|
47
|
+
}
|
|
47
48
|
const dataTransfer = createDataTransfer(hooks, configRef, $table);
|
|
48
49
|
const tableDataRef = ref([]);
|
|
49
|
-
const updateTableDataRef = useDebounceFn(
|
|
50
|
+
const updateTableDataRef = useDebounceFn(_updateTableDataRef, 10);
|
|
51
|
+
async function _updateTableDataRef() {
|
|
50
52
|
var _a2;
|
|
51
53
|
tableDataRef.value = await dataTransfer(props.tableData);
|
|
52
54
|
(_a2 = $table.value) == null ? void 0 : _a2.recalculate(true);
|
|
53
|
-
}
|
|
55
|
+
}
|
|
54
56
|
const tableHandler = { updateTableDataRef, updateConfigRef, updateFieldListRef };
|
|
55
57
|
provide(InjectionIhoTableHandler, tableHandler);
|
|
56
58
|
const eventListener = provideIhoTableEventListener();
|
|
@@ -70,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
72
|
updateFieldListRef();
|
|
71
73
|
updateTableDataRef();
|
|
72
74
|
},
|
|
73
|
-
{
|
|
75
|
+
{ deep: true }
|
|
74
76
|
);
|
|
75
77
|
watch(
|
|
76
78
|
() => props.fieldList,
|
|
@@ -78,9 +80,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
80
|
updateFieldListRef();
|
|
79
81
|
updateTableDataRef();
|
|
80
82
|
},
|
|
81
|
-
{
|
|
83
|
+
{ deep: true }
|
|
82
84
|
);
|
|
83
|
-
watch(() => props.tableData, updateTableDataRef
|
|
85
|
+
watch(() => props.tableData, updateTableDataRef);
|
|
86
|
+
_updateConfigRef();
|
|
87
|
+
_updateFieldListRef();
|
|
88
|
+
_updateTableDataRef();
|
|
84
89
|
const { header, footer } = createDomInsertComponent(hooks);
|
|
85
90
|
expose({ $table });
|
|
86
91
|
hooks.setupHooks.setup.call(configRef, fieldListRef);
|
|
@@ -91,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
96
|
createVNode(_component_vxe_table, mergeProps({
|
|
92
97
|
ref_key: "$table",
|
|
93
98
|
ref: $table
|
|
94
|
-
}, unref(bindProperties), { data: tableDataRef.value }), {
|
|
99
|
+
}, unref(bindProperties), { data: tableDataRef.value }), createSlots({
|
|
95
100
|
default: withCtx(() => [
|
|
96
101
|
(openBlock(true), createElementBlock(Fragment, null, renderList(fieldListRef.value, (field) => {
|
|
97
102
|
return openBlock(), createBlock(unref(ColumnComponent), {
|
|
@@ -101,8 +106,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
106
|
}, null, 8, ["field", "annotation"]);
|
|
102
107
|
}), 128))
|
|
103
108
|
]),
|
|
104
|
-
_:
|
|
105
|
-
},
|
|
109
|
+
_: 2
|
|
110
|
+
}, [
|
|
111
|
+
renderList(_ctx.$slots, (k, v) => {
|
|
112
|
+
return {
|
|
113
|
+
name: v,
|
|
114
|
+
fn: withCtx(() => [
|
|
115
|
+
renderSlot(_ctx.$slots, v)
|
|
116
|
+
])
|
|
117
|
+
};
|
|
118
|
+
})
|
|
119
|
+
]), 1040, ["data"]),
|
|
106
120
|
(openBlock(), createBlock(resolveDynamicComponent(unref(footer))))
|
|
107
121
|
]);
|
|
108
122
|
};
|
|
@@ -100,7 +100,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
100
|
}>>;
|
|
101
101
|
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;
|
|
102
102
|
uuid: string;
|
|
103
|
-
uuidRef: import("vue").Ref<string>;
|
|
104
103
|
$table: import("vue").Ref<VxeTableInstance | undefined>;
|
|
105
104
|
hooks: Readonly<{
|
|
106
105
|
configHooks: import("../../../../es/components/iho-table/src/types").AbstractConfigHooks;
|
|
@@ -2012,6 +2011,65 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2012
2011
|
adaptive?: boolean | undefined;
|
|
2013
2012
|
} | undefined;
|
|
2014
2013
|
params?: any;
|
|
2014
|
+
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
2015
|
+
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
2016
|
+
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
2017
|
+
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
2018
|
+
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
2019
|
+
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
2020
|
+
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
2021
|
+
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
2022
|
+
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
2023
|
+
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
2024
|
+
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
2025
|
+
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
2026
|
+
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
2027
|
+
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
2028
|
+
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
2029
|
+
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
2030
|
+
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
2031
|
+
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
2032
|
+
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
2033
|
+
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
2034
|
+
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
2035
|
+
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
2036
|
+
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
2037
|
+
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
2038
|
+
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
2039
|
+
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
2040
|
+
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
2041
|
+
onFilterVisible?: ((params: import("vxe-table").VxeTableDefines.FilterVisibleEventParams) => void) | undefined;
|
|
2042
|
+
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
2043
|
+
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
2044
|
+
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
2045
|
+
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
2046
|
+
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
2047
|
+
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
2048
|
+
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
2049
|
+
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
2050
|
+
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
2051
|
+
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
2052
|
+
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
2053
|
+
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
2054
|
+
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
2055
|
+
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
2056
|
+
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
2057
|
+
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
2058
|
+
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
2059
|
+
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
2060
|
+
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
2061
|
+
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
2062
|
+
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
2063
|
+
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
2064
|
+
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
2065
|
+
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
2066
|
+
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
2067
|
+
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
2068
|
+
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
2069
|
+
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
2070
|
+
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
2071
|
+
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
2072
|
+
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
2015
2073
|
uuid?: string | undefined;
|
|
2016
2074
|
showSeq?: boolean | undefined;
|
|
2017
2075
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
@@ -2070,6 +2128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2070
2128
|
anchorList?: string[] | undefined;
|
|
2071
2129
|
}>;
|
|
2072
2130
|
updateConfigRef: () => void;
|
|
2131
|
+
_updateConfigRef: () => void;
|
|
2073
2132
|
fieldListRef: import("vue").Ref<{
|
|
2074
2133
|
[x: string]: unknown;
|
|
2075
2134
|
property?: string | undefined;
|
|
@@ -2371,9 +2430,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2371
2430
|
annotation?: boolean | undefined;
|
|
2372
2431
|
}[]>;
|
|
2373
2432
|
updateFieldListRef: () => void;
|
|
2433
|
+
_updateFieldListRef: () => void;
|
|
2374
2434
|
dataTransfer: (data: AnyObject[]) => Promise<AnyObject[]>;
|
|
2375
2435
|
tableDataRef: import("vue").Ref<AnyObject[]>;
|
|
2376
2436
|
updateTableDataRef: () => Promise<void>;
|
|
2437
|
+
_updateTableDataRef: () => Promise<void>;
|
|
2377
2438
|
tableHandler: IhoTableHandler;
|
|
2378
2439
|
eventListener: import("../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
|
2379
2440
|
eventHookHandler: Record<keyof import("vxe-table").VxeTableEventProps, any>;
|
|
@@ -60,7 +60,7 @@ export declare const IhoTableEventNameTuple: readonly ["formChange", "settingCli
|
|
|
60
60
|
export declare const InjectionIhoTableConfig: InjectionKey<Ref<IhoTableConfig>>;
|
|
61
61
|
export declare const InjectionIhoTableFieldList: InjectionKey<Ref<IhoTableFieldItem[]>>;
|
|
62
62
|
export declare const InjectionIhoTableEmits: InjectionKey<(<T extends typeof IhoTableEventNameTuple[number]>(event: T, ...args: IhoTableEmitPayload<T>) => void)>;
|
|
63
|
-
export declare const InjectionIhoTableUUID: InjectionKey<
|
|
63
|
+
export declare const InjectionIhoTableUUID: InjectionKey<string>;
|
|
64
64
|
export declare const InjectionIhoTableInstance: InjectionKey<Ref<UndefinedAble<VxeTableInstance>>>;
|
|
65
65
|
export declare const InjectionIhoTableHandler: InjectionKey<IhoTableHandler>;
|
|
66
66
|
export declare const InjectionIhoTableEventListener: InjectionKey<IhoTableEventListener>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { arrayed } from '../../../../../shared/utils/index.js';
|
|
2
2
|
import { unref, defineComponent } from 'vue';
|
|
3
|
-
import { cloneDeep, isArray } from 'lodash-es';
|
|
3
|
+
import { cloneDeep, isArray, isFunction } from 'lodash-es';
|
|
4
4
|
import { VxeEventListenerNameList } from '../../constants/index.js';
|
|
5
5
|
import { useDataHooks } from './useDataHooks.js';
|
|
6
6
|
import { useDomInsertHooks } from './useDomInsertHooks.js';
|
|
@@ -105,6 +105,8 @@ function createTableEventHandlers({
|
|
|
105
105
|
emits(getEventName(eventListenerName), payload);
|
|
106
106
|
eventListener.trigger(getEventName(eventListenerName), payload);
|
|
107
107
|
}
|
|
108
|
+
const configEvent = unref(config)[eventListenerName];
|
|
109
|
+
isFunction(configEvent) && configEvent(payload);
|
|
108
110
|
(_a = hooks.eventHooks[eventListenerName]) == null ? void 0 : _a.promise(payload, { $table: unref($table), ...context }, unref(config));
|
|
109
111
|
};
|
|
110
112
|
return VxeEventListenerNameList.reduce((result, eventName) => {
|
|
@@ -5,5 +5,5 @@ export declare function useTableContext(): {
|
|
|
5
5
|
tableEmit: <T extends "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">(event: T, ...args: import("../types").IhoTableEmitPayload<T>) => void;
|
|
6
6
|
eventListener: import("./tapHooks/useEventHooks").IhoTableEventListener;
|
|
7
7
|
$table: import("vue").Ref<import("../../../../shared/types").UndefinedAble<import("vxe-table").VxeTableInstance>>;
|
|
8
|
-
uuid:
|
|
8
|
+
uuid: string;
|
|
9
9
|
};
|
|
@@ -11,12 +11,12 @@ function lowCodeFieldAdaptorPlugin() {
|
|
|
11
11
|
hooks.fieldHooks.field.tap({ name: pluginName, stage: HIGHEST_PRIORITY }, (field) => {
|
|
12
12
|
const _field = field;
|
|
13
13
|
const result = {
|
|
14
|
+
className: _field.bold ? "iho-table__boldCell" : "",
|
|
14
15
|
field: _field.columnName,
|
|
15
|
-
|
|
16
|
-
showOverflow: "tooltip",
|
|
16
|
+
showOverflow: Reflect.has(_field, "showOverflow") ? _field.showOverflow : "tooltip",
|
|
17
17
|
visible: _field.isShow !== IHO_TABLE_NUMBER_STATUS.NEGATIVE,
|
|
18
|
-
|
|
19
|
-
...pick(_field, ["title", "treeNode", "
|
|
18
|
+
width: _field.colWidth,
|
|
19
|
+
...pick(_field, ["title", "treeNode", "resizable"])
|
|
20
20
|
};
|
|
21
21
|
settingObjAdaptor(result, _field);
|
|
22
22
|
return result;
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode, inject } from 'vue';
|
|
1
|
+
import { createVNode, inject, mergeProps } from 'vue';
|
|
2
2
|
import { NInput } from 'naive-ui';
|
|
3
3
|
import '../../../../index.js';
|
|
4
4
|
import { EDITABLE_WIDGET_TYPE, InjectionIhoTableEmits } from '../../../constants/index.js';
|
|
@@ -16,7 +16,9 @@ function inputRendererPlugin() {
|
|
|
16
16
|
}) {
|
|
17
17
|
return [createVNode("span", null, [row[column.field]])];
|
|
18
18
|
},
|
|
19
|
-
renderEdit(
|
|
19
|
+
renderEdit({
|
|
20
|
+
props
|
|
21
|
+
}, {
|
|
20
22
|
row,
|
|
21
23
|
column,
|
|
22
24
|
$rowIndex
|
|
@@ -30,11 +32,11 @@ function inputRendererPlugin() {
|
|
|
30
32
|
index: $rowIndex
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
return [createVNode(NInput, {
|
|
35
|
+
return [createVNode(NInput, mergeProps({
|
|
34
36
|
"value": row[column.field],
|
|
35
37
|
"onUpdate:value": ($event) => row[column.field] = $event,
|
|
36
38
|
"onBlur": onBlur
|
|
37
|
-
}, null)];
|
|
39
|
+
}, props == null ? void 0 : props.componentProps), null)];
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, inject,
|
|
1
|
+
import { reactive, inject, createVNode, toRaw, onBeforeUnmount } from 'vue';
|
|
2
2
|
import { traverse } from '../../../../../../../shared/utils/index.js';
|
|
3
3
|
import { isFunction } from 'lodash-es';
|
|
4
4
|
import '../../../../../index.js';
|
|
@@ -31,7 +31,7 @@ function separateRendererPlugins() {
|
|
|
31
31
|
}) {
|
|
32
32
|
var _a;
|
|
33
33
|
const uuid = inject(InjectionIhoTableUUID);
|
|
34
|
-
const separateRow = getSeparateRowData(
|
|
34
|
+
const separateRow = getSeparateRowData(uuid, row);
|
|
35
35
|
return createVNode("section", null, [(_a = separateRow == null ? void 0 : separateRow.separateData) == null ? void 0 : _a[column.field]]);
|
|
36
36
|
},
|
|
37
37
|
renderEdit(renderOpts, {
|
|
@@ -40,7 +40,7 @@ function separateRendererPlugins() {
|
|
|
40
40
|
}) {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
const uuid = inject(InjectionIhoTableUUID);
|
|
43
|
-
const separateRow = getSeparateRowData(
|
|
43
|
+
const separateRow = getSeparateRowData(uuid, row);
|
|
44
44
|
const height = getRowHeight();
|
|
45
45
|
const slots = {};
|
|
46
46
|
if (isFunction((_a = renderOpts.props) == null ? void 0 : _a.separateSlot)) {
|
|
@@ -67,7 +67,7 @@ function separateRendererPlugins() {
|
|
|
67
67
|
function getSeparateColumn(fieldList2) {
|
|
68
68
|
return fieldList2.reduce((res, field) => {
|
|
69
69
|
traverse(field, (item) => {
|
|
70
|
-
isSeparateColumn(item) && res.push(item);
|
|
70
|
+
isSeparateColumn(item) && res.push(toRaw(item));
|
|
71
71
|
});
|
|
72
72
|
return res;
|
|
73
73
|
}, []);
|
|
@@ -144,10 +144,6 @@ function separateRendererPlugins() {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
hooks.setupHooks.setup.tap(pluginName, (config) => {
|
|
147
|
-
if (config.value.uuid) {
|
|
148
|
-
separateRowMap.set(config.value.uuid, /* @__PURE__ */ new WeakMap());
|
|
149
|
-
separateColumnMap.set(config.value.uuid, []);
|
|
150
|
-
}
|
|
151
147
|
onBeforeUnmount(() => {
|
|
152
148
|
if (config.value.uuid) {
|
|
153
149
|
separateRowMap.delete(config.value.uuid);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyObject, TupleToUnion } from '../../../../../es/shared/types';
|
|
2
2
|
import { VxeTableProps, VxeTableDefines } from 'vxe-table';
|
|
3
3
|
import { VxeTableEventProps } from 'vxe-table/types/table';
|
|
4
|
-
import { IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
|
|
4
|
+
import { IhoTableEventNameTuple, IhoTableRowGroupSequence, VxeEventListenerNameList } from '../../../../../es/components/iho-table/src/constants';
|
|
5
5
|
export * from './pluginType';
|
|
6
6
|
export interface IhoTableRowGroupItem {
|
|
7
7
|
groupName: string;
|
|
@@ -9,6 +9,8 @@ export interface IhoTableRowGroupItem {
|
|
|
9
9
|
list: string[];
|
|
10
10
|
}
|
|
11
11
|
export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
12
|
+
[K in typeof VxeEventListenerNameList[number]]: (...payload: IhoTableEmitPayload<EventListenerToEventName<K>>) => void;
|
|
13
|
+
}> & Partial<{
|
|
12
14
|
uuid: string;
|
|
13
15
|
showSeq: boolean;
|
|
14
16
|
selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
|
|
@@ -34,11 +36,13 @@ export declare type LowCodeTableFieldItem = {
|
|
|
34
36
|
} & Partial<{
|
|
35
37
|
id: number | string;
|
|
36
38
|
title: string;
|
|
37
|
-
colWidth:
|
|
39
|
+
colWidth: VxeTableDefines.ColumnInfo['width'];
|
|
38
40
|
settingObj: LowCodeTableSettingObj;
|
|
39
41
|
treeNode: boolean;
|
|
40
42
|
isShow: 0 | 1;
|
|
41
|
-
|
|
43
|
+
componentProps: AnyObject;
|
|
44
|
+
showOverflow: VxeTableDefines.ColumnInfo['showOverflow'];
|
|
45
|
+
}> & Partial<Pick<VxeTableDefines.ColumnInfo, 'resizable'>>;
|
|
42
46
|
export declare type IhoFormChangePayload = {
|
|
43
47
|
column: IhoTableFieldItem;
|
|
44
48
|
row: AnyObject;
|