cnhis-design-vue 3.1.36-beta.4 → 3.1.36-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/big-table/src/components/edit-form/edit-input.js +5 -2
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -4
- package/es/components/iho-table/index.d.ts +44 -20
- package/es/components/iho-table/src/IhoTable.vue.d.ts +44 -20
- package/es/components/iho-table/src/constants/index.d.ts +1 -0
- package/es/components/iho-table/src/constants/index.js +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -2
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +15 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +2 -18
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +7 -2
- package/es/components/iho-table/src/types/index.d.ts +7 -3
- package/es/components/iho-table/src/utils/index.d.ts +6 -1
- package/es/components/iho-table/src/utils/index.js +19 -2
- package/package.json +2 -2
|
@@ -32,11 +32,10 @@ var EditInput = defineComponent({
|
|
|
32
32
|
attrs,
|
|
33
33
|
emit
|
|
34
34
|
}) {
|
|
35
|
-
var _a;
|
|
36
35
|
const {
|
|
37
36
|
formRef
|
|
38
37
|
} = useCommon(props, attrs);
|
|
39
|
-
const __value = ref(props.type === "number" ? (
|
|
38
|
+
const __value = ref(props.type === "number" ? toNumber(attrs.value) : attrs.value);
|
|
40
39
|
const commData = {
|
|
41
40
|
row: props.row,
|
|
42
41
|
column: props.col,
|
|
@@ -71,6 +70,10 @@ var EditInput = defineComponent({
|
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
}
|
|
73
|
+
function toNumber(value) {
|
|
74
|
+
const _value = value != null ? value : void 0;
|
|
75
|
+
return typeof _value === "string" ? !_value ? void 0 : +_value : _value;
|
|
76
|
+
}
|
|
74
77
|
watch(() => attrs.value, (value) => {
|
|
75
78
|
__value.value = value;
|
|
76
79
|
});
|
|
@@ -311,20 +311,21 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
311
311
|
point.prevPoint = prevPoint;
|
|
312
312
|
}
|
|
313
313
|
prevPoint = point || prevPoint;
|
|
314
|
-
point == null ? void 0 : point.bringToFront();
|
|
315
|
-
doPulsePointLine(point, res);
|
|
316
314
|
return point;
|
|
317
315
|
});
|
|
318
316
|
Promise.all(otherList).then((r) => {
|
|
319
317
|
canvas.value.add(...lineListFilter, ...res, ...r);
|
|
320
318
|
res.forEach((point) => {
|
|
321
319
|
point == null ? void 0 : point.bringToFront();
|
|
320
|
+
removePulsePointLine(point, res);
|
|
322
321
|
});
|
|
323
322
|
});
|
|
324
323
|
});
|
|
325
|
-
function
|
|
324
|
+
function removePulsePointLine(point, pointList2) {
|
|
326
325
|
if (point.origin.type === "pulse") {
|
|
327
|
-
const someLeftList = pointList2.filter(
|
|
326
|
+
const someLeftList = pointList2.filter(
|
|
327
|
+
(_point) => _point.left === point.left && _point.origin.type === "pulse"
|
|
328
|
+
);
|
|
328
329
|
if (someLeftList.length > 1) {
|
|
329
330
|
point.leftLine && canvas.value.remove(point.leftLine);
|
|
330
331
|
point.rightLine && canvas.value.remove(point.rightLine);
|
|
@@ -879,6 +879,18 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
879
879
|
trigger?: "default" | "cell" | "row" | undefined;
|
|
880
880
|
highlight?: boolean | undefined;
|
|
881
881
|
range?: boolean | undefined;
|
|
882
|
+
slots?: {
|
|
883
|
+
title?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
884
|
+
radio?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
885
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
886
|
+
default?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
887
|
+
header?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
888
|
+
footer?: string | ((params: import("vxe-table").VxeColumnPropTypes.FooterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
889
|
+
content?: string | ((params: import("vxe-table").VxeColumnPropTypes.ContentSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
890
|
+
filter?: string | ((params: import("vxe-table").VxeColumnPropTypes.FilterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
891
|
+
edit?: string | ((params: import("vxe-table").VxeColumnPropTypes.EditSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
892
|
+
icon?: string | ((params: import("vxe-table").VxeColumnPropTypes.IconSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
893
|
+
} | undefined;
|
|
882
894
|
} | undefined;
|
|
883
895
|
tooltipConfig?: {
|
|
884
896
|
showAll?: boolean | undefined;
|
|
@@ -2082,52 +2094,52 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2082
2094
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2083
2095
|
rowGroupSetting?: {
|
|
2084
2096
|
firstRowGroup?: {
|
|
2085
|
-
groupName
|
|
2097
|
+
groupName?: string | undefined;
|
|
2086
2098
|
title: string;
|
|
2087
2099
|
list: string[];
|
|
2088
2100
|
}[] | undefined;
|
|
2089
2101
|
secondRowGroup?: {
|
|
2090
|
-
groupName
|
|
2102
|
+
groupName?: string | undefined;
|
|
2091
2103
|
title: string;
|
|
2092
2104
|
list: string[];
|
|
2093
2105
|
}[] | undefined;
|
|
2094
2106
|
thirdRowGroup?: {
|
|
2095
|
-
groupName
|
|
2107
|
+
groupName?: string | undefined;
|
|
2096
2108
|
title: string;
|
|
2097
2109
|
list: string[];
|
|
2098
2110
|
}[] | undefined;
|
|
2099
2111
|
fourthRowGroup?: {
|
|
2100
|
-
groupName
|
|
2112
|
+
groupName?: string | undefined;
|
|
2101
2113
|
title: string;
|
|
2102
2114
|
list: string[];
|
|
2103
2115
|
}[] | undefined;
|
|
2104
2116
|
fifthRowGroup?: {
|
|
2105
|
-
groupName
|
|
2117
|
+
groupName?: string | undefined;
|
|
2106
2118
|
title: string;
|
|
2107
2119
|
list: string[];
|
|
2108
2120
|
}[] | undefined;
|
|
2109
2121
|
sixthRowGroup?: {
|
|
2110
|
-
groupName
|
|
2122
|
+
groupName?: string | undefined;
|
|
2111
2123
|
title: string;
|
|
2112
2124
|
list: string[];
|
|
2113
2125
|
}[] | undefined;
|
|
2114
2126
|
seventhRowGroup?: {
|
|
2115
|
-
groupName
|
|
2127
|
+
groupName?: string | undefined;
|
|
2116
2128
|
title: string;
|
|
2117
2129
|
list: string[];
|
|
2118
2130
|
}[] | undefined;
|
|
2119
2131
|
eighthRowGroup?: {
|
|
2120
|
-
groupName
|
|
2132
|
+
groupName?: string | undefined;
|
|
2121
2133
|
title: string;
|
|
2122
2134
|
list: string[];
|
|
2123
2135
|
}[] | undefined;
|
|
2124
2136
|
ninthRowGroup?: {
|
|
2125
|
-
groupName
|
|
2137
|
+
groupName?: string | undefined;
|
|
2126
2138
|
title: string;
|
|
2127
2139
|
list: string[];
|
|
2128
2140
|
}[] | undefined;
|
|
2129
2141
|
tenthRowGroup?: {
|
|
2130
|
-
groupName
|
|
2142
|
+
groupName?: string | undefined;
|
|
2131
2143
|
title: string;
|
|
2132
2144
|
list: string[];
|
|
2133
2145
|
}[] | undefined;
|
|
@@ -3328,6 +3340,18 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3328
3340
|
trigger?: "default" | "cell" | "row" | undefined;
|
|
3329
3341
|
highlight?: boolean | undefined;
|
|
3330
3342
|
range?: boolean | undefined;
|
|
3343
|
+
slots?: {
|
|
3344
|
+
title?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3345
|
+
radio?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3346
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3347
|
+
default?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3348
|
+
header?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3349
|
+
footer?: string | ((params: import("vxe-table").VxeColumnPropTypes.FooterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3350
|
+
content?: string | ((params: import("vxe-table").VxeColumnPropTypes.ContentSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3351
|
+
filter?: string | ((params: import("vxe-table").VxeColumnPropTypes.FilterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3352
|
+
edit?: string | ((params: import("vxe-table").VxeColumnPropTypes.EditSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3353
|
+
icon?: string | ((params: import("vxe-table").VxeColumnPropTypes.IconSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3354
|
+
} | undefined;
|
|
3331
3355
|
} | undefined;
|
|
3332
3356
|
tooltipConfig?: {
|
|
3333
3357
|
showAll?: boolean | undefined;
|
|
@@ -4472,52 +4496,52 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4472
4496
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4473
4497
|
rowGroupSetting?: {
|
|
4474
4498
|
firstRowGroup?: {
|
|
4475
|
-
groupName
|
|
4499
|
+
groupName?: string | undefined;
|
|
4476
4500
|
title: string;
|
|
4477
4501
|
list: string[];
|
|
4478
4502
|
}[] | undefined;
|
|
4479
4503
|
secondRowGroup?: {
|
|
4480
|
-
groupName
|
|
4504
|
+
groupName?: string | undefined;
|
|
4481
4505
|
title: string;
|
|
4482
4506
|
list: string[];
|
|
4483
4507
|
}[] | undefined;
|
|
4484
4508
|
thirdRowGroup?: {
|
|
4485
|
-
groupName
|
|
4509
|
+
groupName?: string | undefined;
|
|
4486
4510
|
title: string;
|
|
4487
4511
|
list: string[];
|
|
4488
4512
|
}[] | undefined;
|
|
4489
4513
|
fourthRowGroup?: {
|
|
4490
|
-
groupName
|
|
4514
|
+
groupName?: string | undefined;
|
|
4491
4515
|
title: string;
|
|
4492
4516
|
list: string[];
|
|
4493
4517
|
}[] | undefined;
|
|
4494
4518
|
fifthRowGroup?: {
|
|
4495
|
-
groupName
|
|
4519
|
+
groupName?: string | undefined;
|
|
4496
4520
|
title: string;
|
|
4497
4521
|
list: string[];
|
|
4498
4522
|
}[] | undefined;
|
|
4499
4523
|
sixthRowGroup?: {
|
|
4500
|
-
groupName
|
|
4524
|
+
groupName?: string | undefined;
|
|
4501
4525
|
title: string;
|
|
4502
4526
|
list: string[];
|
|
4503
4527
|
}[] | undefined;
|
|
4504
4528
|
seventhRowGroup?: {
|
|
4505
|
-
groupName
|
|
4529
|
+
groupName?: string | undefined;
|
|
4506
4530
|
title: string;
|
|
4507
4531
|
list: string[];
|
|
4508
4532
|
}[] | undefined;
|
|
4509
4533
|
eighthRowGroup?: {
|
|
4510
|
-
groupName
|
|
4534
|
+
groupName?: string | undefined;
|
|
4511
4535
|
title: string;
|
|
4512
4536
|
list: string[];
|
|
4513
4537
|
}[] | undefined;
|
|
4514
4538
|
ninthRowGroup?: {
|
|
4515
|
-
groupName
|
|
4539
|
+
groupName?: string | undefined;
|
|
4516
4540
|
title: string;
|
|
4517
4541
|
list: string[];
|
|
4518
4542
|
}[] | undefined;
|
|
4519
4543
|
tenthRowGroup?: {
|
|
4520
|
-
groupName
|
|
4544
|
+
groupName?: string | undefined;
|
|
4521
4545
|
title: string;
|
|
4522
4546
|
list: string[];
|
|
4523
4547
|
}[] | undefined;
|
|
@@ -878,6 +878,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
878
878
|
trigger?: "default" | "cell" | "row" | undefined;
|
|
879
879
|
highlight?: boolean | undefined;
|
|
880
880
|
range?: boolean | undefined;
|
|
881
|
+
slots?: {
|
|
882
|
+
title?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
883
|
+
radio?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
884
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
885
|
+
default?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
886
|
+
header?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
887
|
+
footer?: string | ((params: import("vxe-table").VxeColumnPropTypes.FooterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
888
|
+
content?: string | ((params: import("vxe-table").VxeColumnPropTypes.ContentSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
889
|
+
filter?: string | ((params: import("vxe-table").VxeColumnPropTypes.FilterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
890
|
+
edit?: string | ((params: import("vxe-table").VxeColumnPropTypes.EditSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
891
|
+
icon?: string | ((params: import("vxe-table").VxeColumnPropTypes.IconSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
892
|
+
} | undefined;
|
|
881
893
|
} | undefined;
|
|
882
894
|
tooltipConfig?: {
|
|
883
895
|
showAll?: boolean | undefined;
|
|
@@ -2081,52 +2093,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2081
2093
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2082
2094
|
rowGroupSetting?: {
|
|
2083
2095
|
firstRowGroup?: {
|
|
2084
|
-
groupName
|
|
2096
|
+
groupName?: string | undefined;
|
|
2085
2097
|
title: string;
|
|
2086
2098
|
list: string[];
|
|
2087
2099
|
}[] | undefined;
|
|
2088
2100
|
secondRowGroup?: {
|
|
2089
|
-
groupName
|
|
2101
|
+
groupName?: string | undefined;
|
|
2090
2102
|
title: string;
|
|
2091
2103
|
list: string[];
|
|
2092
2104
|
}[] | undefined;
|
|
2093
2105
|
thirdRowGroup?: {
|
|
2094
|
-
groupName
|
|
2106
|
+
groupName?: string | undefined;
|
|
2095
2107
|
title: string;
|
|
2096
2108
|
list: string[];
|
|
2097
2109
|
}[] | undefined;
|
|
2098
2110
|
fourthRowGroup?: {
|
|
2099
|
-
groupName
|
|
2111
|
+
groupName?: string | undefined;
|
|
2100
2112
|
title: string;
|
|
2101
2113
|
list: string[];
|
|
2102
2114
|
}[] | undefined;
|
|
2103
2115
|
fifthRowGroup?: {
|
|
2104
|
-
groupName
|
|
2116
|
+
groupName?: string | undefined;
|
|
2105
2117
|
title: string;
|
|
2106
2118
|
list: string[];
|
|
2107
2119
|
}[] | undefined;
|
|
2108
2120
|
sixthRowGroup?: {
|
|
2109
|
-
groupName
|
|
2121
|
+
groupName?: string | undefined;
|
|
2110
2122
|
title: string;
|
|
2111
2123
|
list: string[];
|
|
2112
2124
|
}[] | undefined;
|
|
2113
2125
|
seventhRowGroup?: {
|
|
2114
|
-
groupName
|
|
2126
|
+
groupName?: string | undefined;
|
|
2115
2127
|
title: string;
|
|
2116
2128
|
list: string[];
|
|
2117
2129
|
}[] | undefined;
|
|
2118
2130
|
eighthRowGroup?: {
|
|
2119
|
-
groupName
|
|
2131
|
+
groupName?: string | undefined;
|
|
2120
2132
|
title: string;
|
|
2121
2133
|
list: string[];
|
|
2122
2134
|
}[] | undefined;
|
|
2123
2135
|
ninthRowGroup?: {
|
|
2124
|
-
groupName
|
|
2136
|
+
groupName?: string | undefined;
|
|
2125
2137
|
title: string;
|
|
2126
2138
|
list: string[];
|
|
2127
2139
|
}[] | undefined;
|
|
2128
2140
|
tenthRowGroup?: {
|
|
2129
|
-
groupName
|
|
2141
|
+
groupName?: string | undefined;
|
|
2130
2142
|
title: string;
|
|
2131
2143
|
list: string[];
|
|
2132
2144
|
}[] | undefined;
|
|
@@ -3327,6 +3339,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3327
3339
|
trigger?: "default" | "cell" | "row" | undefined;
|
|
3328
3340
|
highlight?: boolean | undefined;
|
|
3329
3341
|
range?: boolean | undefined;
|
|
3342
|
+
slots?: {
|
|
3343
|
+
title?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3344
|
+
radio?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3345
|
+
checkbox?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3346
|
+
default?: string | ((params: import("vxe-table").VxeColumnPropTypes.DefaultSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3347
|
+
header?: string | ((params: import("vxe-table").VxeColumnPropTypes.HeaderSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3348
|
+
footer?: string | ((params: import("vxe-table").VxeColumnPropTypes.FooterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3349
|
+
content?: string | ((params: import("vxe-table").VxeColumnPropTypes.ContentSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3350
|
+
filter?: string | ((params: import("vxe-table").VxeColumnPropTypes.FilterSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3351
|
+
edit?: string | ((params: import("vxe-table").VxeColumnPropTypes.EditSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3352
|
+
icon?: string | ((params: import("vxe-table").VxeColumnPropTypes.IconSlotParams) => import("vxe-table").SlotVNodeType | import("vxe-table").SlotVNodeType[]) | null | undefined;
|
|
3353
|
+
} | undefined;
|
|
3330
3354
|
} | undefined;
|
|
3331
3355
|
tooltipConfig?: {
|
|
3332
3356
|
showAll?: boolean | undefined;
|
|
@@ -4471,52 +4495,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4471
4495
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4472
4496
|
rowGroupSetting?: {
|
|
4473
4497
|
firstRowGroup?: {
|
|
4474
|
-
groupName
|
|
4498
|
+
groupName?: string | undefined;
|
|
4475
4499
|
title: string;
|
|
4476
4500
|
list: string[];
|
|
4477
4501
|
}[] | undefined;
|
|
4478
4502
|
secondRowGroup?: {
|
|
4479
|
-
groupName
|
|
4503
|
+
groupName?: string | undefined;
|
|
4480
4504
|
title: string;
|
|
4481
4505
|
list: string[];
|
|
4482
4506
|
}[] | undefined;
|
|
4483
4507
|
thirdRowGroup?: {
|
|
4484
|
-
groupName
|
|
4508
|
+
groupName?: string | undefined;
|
|
4485
4509
|
title: string;
|
|
4486
4510
|
list: string[];
|
|
4487
4511
|
}[] | undefined;
|
|
4488
4512
|
fourthRowGroup?: {
|
|
4489
|
-
groupName
|
|
4513
|
+
groupName?: string | undefined;
|
|
4490
4514
|
title: string;
|
|
4491
4515
|
list: string[];
|
|
4492
4516
|
}[] | undefined;
|
|
4493
4517
|
fifthRowGroup?: {
|
|
4494
|
-
groupName
|
|
4518
|
+
groupName?: string | undefined;
|
|
4495
4519
|
title: string;
|
|
4496
4520
|
list: string[];
|
|
4497
4521
|
}[] | undefined;
|
|
4498
4522
|
sixthRowGroup?: {
|
|
4499
|
-
groupName
|
|
4523
|
+
groupName?: string | undefined;
|
|
4500
4524
|
title: string;
|
|
4501
4525
|
list: string[];
|
|
4502
4526
|
}[] | undefined;
|
|
4503
4527
|
seventhRowGroup?: {
|
|
4504
|
-
groupName
|
|
4528
|
+
groupName?: string | undefined;
|
|
4505
4529
|
title: string;
|
|
4506
4530
|
list: string[];
|
|
4507
4531
|
}[] | undefined;
|
|
4508
4532
|
eighthRowGroup?: {
|
|
4509
|
-
groupName
|
|
4533
|
+
groupName?: string | undefined;
|
|
4510
4534
|
title: string;
|
|
4511
4535
|
list: string[];
|
|
4512
4536
|
}[] | undefined;
|
|
4513
4537
|
ninthRowGroup?: {
|
|
4514
|
-
groupName
|
|
4538
|
+
groupName?: string | undefined;
|
|
4515
4539
|
title: string;
|
|
4516
4540
|
list: string[];
|
|
4517
4541
|
}[] | undefined;
|
|
4518
4542
|
tenthRowGroup?: {
|
|
4519
|
-
groupName
|
|
4543
|
+
groupName?: string | undefined;
|
|
4520
4544
|
title: string;
|
|
4521
4545
|
list: string[];
|
|
4522
4546
|
}[] | undefined;
|
|
@@ -41,6 +41,7 @@ export declare const VxeEventListenerNameList: Readonly<UnionToTuple<keyof VxeTa
|
|
|
41
41
|
export declare const VxeTableEventNameList: ("toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "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")[];
|
|
42
42
|
export declare const IhoTableRowGroupSequence: readonly ["firstRowGroup", "secondRowGroup", "thirdRowGroup", "fourthRowGroup", "fifthRowGroup", "sixthRowGroup", "seventhRowGroup", "eighthRowGroup", "ninthRowGroup", "tenthRowGroup"];
|
|
43
43
|
export declare const HIGHEST_PRIORITY: number;
|
|
44
|
+
export declare const LOWEST_PRIORITY: number;
|
|
44
45
|
export declare enum EDITABLE_WIDGET_TYPE {
|
|
45
46
|
INPUT = "INPUT",
|
|
46
47
|
SEPARATE = "SEPARATE",
|
|
@@ -109,6 +109,7 @@ const IhoTableRowGroupSequence = Object.freeze([
|
|
|
109
109
|
"tenthRowGroup"
|
|
110
110
|
]);
|
|
111
111
|
const HIGHEST_PRIORITY = -Infinity;
|
|
112
|
+
const LOWEST_PRIORITY = Infinity;
|
|
112
113
|
var EDITABLE_WIDGET_TYPE = /* @__PURE__ */ ((EDITABLE_WIDGET_TYPE2) => {
|
|
113
114
|
EDITABLE_WIDGET_TYPE2["INPUT"] = "INPUT";
|
|
114
115
|
EDITABLE_WIDGET_TYPE2["SEPARATE"] = "SEPARATE";
|
|
@@ -153,4 +154,4 @@ const InjectionIhoTableEventListener = Symbol(
|
|
|
153
154
|
"InjectionIhoTableEventListener"
|
|
154
155
|
);
|
|
155
156
|
|
|
156
|
-
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IHO_TABLE_FIXED_STATUS, IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS, IHO_TABLE_TREE_TYPE, IhoTableCustomEventNameTuple, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableAnnotation, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableEventListener, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableInstance, InjectionIhoTableUUID, VxeEventListenerNameList, VxeTableEventNameList, WIDGET_TYPE };
|
|
157
|
+
export { EDITABLE_WIDGET_TYPE, HIGHEST_PRIORITY, IHO_TABLE_FIXED_STATUS, IHO_TABLE_NUMBER_STATUS, IHO_TABLE_STRING_STATUS, IHO_TABLE_TREE_TYPE, IhoTableCustomEventNameTuple, IhoTableEventNameTuple, IhoTableRowGroupSequence, InjectionIhoTableAnnotation, InjectionIhoTableConfig, InjectionIhoTableEmits, InjectionIhoTableEventListener, InjectionIhoTableFieldList, InjectionIhoTableHandler, InjectionIhoTableInstance, InjectionIhoTableUUID, LOWEST_PRIORITY, VxeEventListenerNameList, VxeTableEventNameList, WIDGET_TYPE };
|
|
@@ -13,7 +13,9 @@ declare class ConfigHooks extends AbstractConfigHooks {
|
|
|
13
13
|
readonly sortConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.SortConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
14
14
|
readonly filterConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.FilterConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
15
15
|
readonly radioConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.RadioConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
16
|
-
readonly checkboxConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.CheckboxConfig
|
|
16
|
+
readonly checkboxConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.CheckboxConfig & Partial<import("vxe-table").VxeTablePropTypes.CheckboxConfig & {
|
|
17
|
+
slots: import("vxe-table").VxeColumnPropTypes.Slots;
|
|
18
|
+
}>, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
17
19
|
readonly expandConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.ExpandConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
18
20
|
readonly treeConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.TreeConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
19
21
|
readonly mouseConfig: SyncWaterfallHook<[undefined, IhoTableConfig] | [import("vxe-table").VxeTablePropTypes.MouseConfig, IhoTableConfig], import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { toRaw, h, inject, createVNode } from 'vue';
|
|
2
2
|
import { widthAppend, arrayed } from '../../../../../shared/utils/index.js';
|
|
3
|
-
import { isFunction, cloneDeep,
|
|
3
|
+
import { isObject, isFunction, cloneDeep, isString } from 'lodash-es';
|
|
4
4
|
import { NEllipsis } from 'naive-ui';
|
|
5
5
|
import Annotation from '../../../../annotation-edit/index.js';
|
|
6
|
-
import { HIGHEST_PRIORITY, IHO_TABLE_FIXED_STATUS, WIDGET_TYPE, InjectionIhoTableAnnotation, InjectionIhoTableConfig } from '../../constants/index.js';
|
|
6
|
+
import { HIGHEST_PRIORITY, IHO_TABLE_FIXED_STATUS, LOWEST_PRIORITY, WIDGET_TYPE, InjectionIhoTableAnnotation, InjectionIhoTableConfig } from '../../constants/index.js';
|
|
7
7
|
import { defineTablePlugin } from '../../hooks/useTablePlugin.js';
|
|
8
8
|
import { IhoTableStatusHelper, IhoTableUtils, IhoTableRenderHelper } from '../../utils/index.js';
|
|
9
9
|
import { getDefaultValue } from '../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js';
|
|
@@ -33,6 +33,19 @@ function lowCodeFieldAdaptorPlugin() {
|
|
|
33
33
|
settingObjAdaptor(result, _field, config);
|
|
34
34
|
return result;
|
|
35
35
|
});
|
|
36
|
+
hooks.fieldHooks.field.tap({
|
|
37
|
+
name: pluginName + "After",
|
|
38
|
+
stage: LOWEST_PRIORITY
|
|
39
|
+
}, (field) => {
|
|
40
|
+
if (isObject(field.slots)) {
|
|
41
|
+
Object.entries(field.slots).forEach(([k, v]) => {
|
|
42
|
+
if (v != null)
|
|
43
|
+
return;
|
|
44
|
+
Reflect.deleteProperty(field.slots, k);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return field;
|
|
48
|
+
});
|
|
36
49
|
}
|
|
37
50
|
});
|
|
38
51
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode, mergeProps } from 'vue';
|
|
2
2
|
import '../../../../../index.js';
|
|
3
3
|
import { EDITABLE_WIDGET_TYPE } from '../../../../constants/index.js';
|
|
4
|
-
import { IhoTableRenderHelper } from '../../../../utils/index.js';
|
|
4
|
+
import { createIhoTableClearActivedInterceptor, IhoTableRenderHelper } from '../../../../utils/index.js';
|
|
5
5
|
import EditDate from './editDate.vue.js';
|
|
6
6
|
import { defineTablePlugin } from '../../../../hooks/useTablePlugin.js';
|
|
7
7
|
|
|
@@ -10,6 +10,7 @@ function dateRendererPlugin() {
|
|
|
10
10
|
return defineTablePlugin({
|
|
11
11
|
name: pluginName,
|
|
12
12
|
vxe(instance) {
|
|
13
|
+
instance.interceptor.add("event.clearActived", createIhoTableClearActivedInterceptor(EDITABLE_WIDGET_TYPE.DATE, (ele) => ele.classList.contains("n-date-panel")));
|
|
13
14
|
instance.renderer.add(EDITABLE_WIDGET_TYPE.DATE, {
|
|
14
15
|
renderCell: IhoTableRenderHelper.createDefaultRenderCell(),
|
|
15
16
|
renderEdit: IhoTableRenderHelper.createRenderEdit(({
|
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
import { createVNode, mergeProps } from 'vue';
|
|
2
|
-
import { findAncestor } from '../../../../../../../shared/utils/index.js';
|
|
3
|
-
import { isObject } from 'lodash-es';
|
|
4
2
|
import '../../../../../index.js';
|
|
5
3
|
import { EDITABLE_WIDGET_TYPE } from '../../../../constants/index.js';
|
|
6
|
-
import { IhoTableRenderHelper } from '../../../../utils/index.js';
|
|
4
|
+
import { createIhoTableClearActivedInterceptor, IhoTableRenderHelper } from '../../../../utils/index.js';
|
|
7
5
|
import EditSelect from './editSelect.js';
|
|
8
6
|
import { getDefaultValue } from './selectUtils.js';
|
|
9
7
|
import { defineTablePlugin } from '../../../../hooks/useTablePlugin.js';
|
|
10
8
|
|
|
11
9
|
function selectRendererPlugin() {
|
|
12
10
|
const pluginName = "selectRendererPlugin";
|
|
13
|
-
function isHTMLElement(target) {
|
|
14
|
-
return isObject(target);
|
|
15
|
-
}
|
|
16
11
|
return defineTablePlugin({
|
|
17
12
|
name: pluginName,
|
|
18
13
|
vxe(instance) {
|
|
19
|
-
instance.interceptor.add("event.clearActived", (
|
|
20
|
-
$event,
|
|
21
|
-
column
|
|
22
|
-
}) => {
|
|
23
|
-
var _a;
|
|
24
|
-
if (((_a = column.editRender) == null ? void 0 : _a.name) !== EDITABLE_WIDGET_TYPE.SELECT)
|
|
25
|
-
return true;
|
|
26
|
-
const target = $event == null ? void 0 : $event.target;
|
|
27
|
-
if (!isHTMLElement(target))
|
|
28
|
-
return true;
|
|
29
|
-
return !findAncestor(target, (ele) => ele.classList.contains("n-base-select-menu-option-wrapper"));
|
|
30
|
-
});
|
|
14
|
+
instance.interceptor.add("event.clearActived", createIhoTableClearActivedInterceptor(EDITABLE_WIDGET_TYPE.SELECT, (ele) => ele.classList.contains("n-base-select-menu-option-wrapper")));
|
|
31
15
|
instance.renderer.add(EDITABLE_WIDGET_TYPE.SELECT, {
|
|
32
16
|
renderCell({
|
|
33
17
|
props
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createVNode, mergeProps } from 'vue';
|
|
|
2
2
|
import '../../../../index.js';
|
|
3
3
|
import { EDITABLE_WIDGET_TYPE } from '../../../constants/index.js';
|
|
4
4
|
import { NTimePicker } from 'naive-ui';
|
|
5
|
-
import { IhoTableRenderHelper } from '../../../utils/index.js';
|
|
5
|
+
import { createIhoTableClearActivedInterceptor, IhoTableRenderHelper } from '../../../utils/index.js';
|
|
6
6
|
import { defineTablePlugin } from '../../../hooks/useTablePlugin.js';
|
|
7
7
|
|
|
8
8
|
function timeRendererPlugin() {
|
|
@@ -10,6 +10,7 @@ function timeRendererPlugin() {
|
|
|
10
10
|
return defineTablePlugin({
|
|
11
11
|
name: pluginName,
|
|
12
12
|
vxe(instance) {
|
|
13
|
+
instance.interceptor.add("event.clearActived", createIhoTableClearActivedInterceptor(EDITABLE_WIDGET_TYPE.TIME, (ele) => ele.classList.contains("n-time-picker-panel")));
|
|
13
14
|
instance.renderer.add(EDITABLE_WIDGET_TYPE.TIME, {
|
|
14
15
|
renderCell: IhoTableRenderHelper.createDefaultRenderCell(),
|
|
15
16
|
renderEdit: IhoTableRenderHelper.createRenderEdit(({
|
|
@@ -19,7 +19,11 @@ function labelRendererPlugin() {
|
|
|
19
19
|
return [];
|
|
20
20
|
const value = JSON.parse(row[column.field]);
|
|
21
21
|
const labels = isArray(value.labels) ? value.labels : parseLabelString(value.labelStr);
|
|
22
|
-
return
|
|
22
|
+
return createVNode("section", {
|
|
23
|
+
"style": {
|
|
24
|
+
display: "flex"
|
|
25
|
+
}
|
|
26
|
+
}, [labels.map(renderLabelItem)]);
|
|
23
27
|
} catch (e) {
|
|
24
28
|
return [];
|
|
25
29
|
}
|
|
@@ -34,7 +38,8 @@ function labelRendererPlugin() {
|
|
|
34
38
|
return createVNode("div", {
|
|
35
39
|
"style": {
|
|
36
40
|
backgroundColor: item.color || "#5585f5",
|
|
37
|
-
color: "white"
|
|
41
|
+
color: "white",
|
|
42
|
+
flex: "1"
|
|
38
43
|
}
|
|
39
44
|
}, [item.labelName]);
|
|
40
45
|
}
|
|
@@ -5,7 +5,7 @@ import { IHO_TABLE_STRING_STATUS, IhoTableCustomEventNameTuple, IhoTableEventNam
|
|
|
5
5
|
import { FilterState } from '../../../../../es/components/iho-table/src/plugins/filterPlugin/types';
|
|
6
6
|
export * from './pluginType';
|
|
7
7
|
export interface IhoTableRowGroupItem {
|
|
8
|
-
groupName
|
|
8
|
+
groupName?: string;
|
|
9
9
|
title: string;
|
|
10
10
|
list: string[];
|
|
11
11
|
}
|
|
@@ -22,6 +22,9 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
22
22
|
columnConfig: {
|
|
23
23
|
seqSlotFn: VxeColumnPropTypes.Slots['default'];
|
|
24
24
|
};
|
|
25
|
+
checkboxConfig: Partial<VxeTableProps['checkboxConfig'] & {
|
|
26
|
+
slots: VxeColumnPropTypes.Slots;
|
|
27
|
+
}>;
|
|
25
28
|
[K: string]: unknown;
|
|
26
29
|
}>;
|
|
27
30
|
export declare type IhoTableFieldItem = {
|
|
@@ -89,9 +92,10 @@ export declare type EventListenerToEventName<T extends string> = T extends `on${
|
|
|
89
92
|
export declare type EventNameToEventListener<T extends string> = T extends `${infer L}${infer R}` ? `on${Uppercase<L>}${R}` : never;
|
|
90
93
|
export declare type IhoTableHandler = Record<'updateConfigRef' | 'updateFieldListRef' | 'updateTableDataRef', () => void>;
|
|
91
94
|
export declare type IhoTableEventNameUnion = TupleToUnion<typeof IhoTableEventNameTuple>;
|
|
92
|
-
export declare type
|
|
95
|
+
export declare type IHoTableKeyboardPayload = IhoTableFormChangePayload & {
|
|
93
96
|
key: string;
|
|
94
|
-
}
|
|
97
|
+
};
|
|
98
|
+
export declare type IhoTableEmitPayload<T extends typeof IhoTableEventNameTuple[number]> = T extends 'formChange' | 'formClick' ? [IhoTableFormChangePayload] : T extends 'keyboard' ? [IHoTableKeyboardPayload] : T extends 'settingClick' ? [] : Parameters<NonNullable<VxeTableEventProps[EventNameToEventListener<Exclude<T, typeof IhoTableCustomEventNameTuple[number]>>]>>;
|
|
95
99
|
export declare type IhoTableAnchorItem = {
|
|
96
100
|
field: string;
|
|
97
101
|
title: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AnyObject, Nullable } from '../../../../../es/shared/types';
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
|
-
import { VxeTableInstance } from 'vxe-table';
|
|
3
|
+
import { VxeTableDefines, VxeTableInstance } from 'vxe-table';
|
|
4
4
|
import { VxeGlobalRendererHandles } from 'vxe-table/types/v-x-e-table/renderer';
|
|
5
5
|
import { EventListenerToEventName, IhoTableConfig, IhoTableFieldItem, LowCodeTableFieldItem } from '../../../../../es/components/iho-table';
|
|
6
|
+
import { EDITABLE_WIDGET_TYPE } from '../../../../../es/components/iho-table/src/constants';
|
|
6
7
|
export declare function IhoTableLog(message: string): void;
|
|
7
8
|
export declare function IhoTableWarn(message: string): void;
|
|
8
9
|
export declare const IhoTableUtils: Readonly<{
|
|
@@ -40,4 +41,8 @@ export declare const IhoTableStatusHelper: Readonly<{
|
|
|
40
41
|
notPositive(value: string | number | undefined | null): boolean;
|
|
41
42
|
notNegative(value: string | number | undefined | null): boolean;
|
|
42
43
|
}>;
|
|
44
|
+
export declare const createIhoTableClearActivedInterceptor: (type: EDITABLE_WIDGET_TYPE, solution: (ele: HTMLElement) => boolean) => ({ $event, column }: {
|
|
45
|
+
$event: Event;
|
|
46
|
+
column: VxeTableDefines.ColumnInfo;
|
|
47
|
+
}) => boolean;
|
|
43
48
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, reactive, unref, toRaw, createVNode } from 'vue';
|
|
2
|
-
import { jsonParse } from '../../../../shared/utils/index.js';
|
|
2
|
+
import { jsonParse, findAncestor } from '../../../../shared/utils/index.js';
|
|
3
3
|
import { promiseTimeout } from '@vueuse/shared';
|
|
4
4
|
import { isNumber, cloneDeep, isString, isObject } from 'lodash-es';
|
|
5
5
|
import { InjectionIhoTableEmits, InjectionIhoTableConfig, IHO_TABLE_STRING_STATUS, IHO_TABLE_NUMBER_STATUS } from '../constants/index.js';
|
|
@@ -146,5 +146,22 @@ const IhoTableStatusHelper = Object.freeze({
|
|
|
146
146
|
return value !== IHO_TABLE_NUMBER_STATUS.NEGATIVE && value !== IHO_TABLE_STRING_STATUS.NEGATIVE;
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
+
const createIhoTableClearActivedInterceptor = (type, solution) => {
|
|
150
|
+
return ({
|
|
151
|
+
$event,
|
|
152
|
+
column
|
|
153
|
+
}) => {
|
|
154
|
+
var _a;
|
|
155
|
+
if (((_a = column.editRender) == null ? void 0 : _a.name) !== type)
|
|
156
|
+
return true;
|
|
157
|
+
const target = $event == null ? void 0 : $event.target;
|
|
158
|
+
if (!isHTMLElement(target))
|
|
159
|
+
return true;
|
|
160
|
+
return !findAncestor(target, solution);
|
|
161
|
+
function isHTMLElement(target2) {
|
|
162
|
+
return isObject(target2);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
};
|
|
149
166
|
|
|
150
|
-
export { IhoTableRenderHelper, IhoTableStatusHelper, IhoTableUtils, IhoTableWarn, getColumnRenderWidth, getEventName, getRowHeight, useIhoTableFormEvent, useUUIDMap };
|
|
167
|
+
export { IhoTableRenderHelper, IhoTableStatusHelper, IhoTableUtils, IhoTableWarn, createIhoTableClearActivedInterceptor, getColumnRenderWidth, getEventName, getRowHeight, useIhoTableFormEvent, useUUIDMap };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.36-beta.
|
|
3
|
+
"version": "3.1.36-beta.6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "262d11985bd131d4c55803a25c026d0ab685472b"
|
|
65
65
|
}
|