cnhis-design-vue 3.1.21-beta.0 → 3.1.21-beta.10
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/index.d.ts +13 -11
- package/es/components/big-table/src/BigTable.vue.d.ts +13 -11
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +24 -16
- package/es/components/big-table/src/bigTableProps.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
- package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
- package/es/components/big-table/src/hooks/useEdit2.js +3 -2
- package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
- package/es/components/big-table/src/hooks/useFormat2.js +11 -2
- package/es/components/button-print/index.d.ts +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
- package/es/components/drag-layout/index.d.ts +1 -1
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +9 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
- package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
- package/es/components/form-config/index.d.ts +3 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +3 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/index2.js +4 -5
- package/es/components/form-render/src/FormRender.js +3 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/cascader.js +3 -4
- package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
- package/es/components/form-render/src/components/renderer/combination.js +2 -4
- package/es/components/form-render/src/components/renderer/complex.js +1 -4
- package/es/components/form-render/src/components/renderer/date.js +12 -3
- package/es/components/form-render/src/components/renderer/formItem.js +1 -4
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio.js +1 -3
- package/es/components/form-render/src/components/renderer/search.js +11 -17
- package/es/components/form-render/src/components/renderer/select.js +13 -19
- package/es/components/form-render/src/components/renderer/switch.js +2 -5
- package/es/components/form-render/src/components/renderer/textarea.js +2 -5
- package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +13 -4
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
- package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
- package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
- package/es/components/form-render/src/hooks/usePresetScope2.js +1 -4
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +4 -1
- package/es/components/form-render/src/utils/index.js +27 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -1
- package/es/components/index2.js +0 -3
- package/es/components/info-header/index.d.ts +32 -9
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.js +9 -10
- package/es/components/info-header/src/InfoHeader.vue.d.ts +33 -9
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +2 -2
- package/es/components/select-label/index.d.ts +4 -4
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +2 -2
- package/es/components/select-label/src/SelectLabel.vue.d.ts +2 -2
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +2 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/time-line/index.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
- package/es/components/form-table/index.d.ts +0 -4019
- package/es/components/form-table/index.js +0 -1
- package/es/components/form-table/index2.js +0 -10
- package/es/components/form-table/src/FormTable.js +0 -474
- package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
- package/es/components/form-table/src/components/index.d.ts +0 -3778
- package/es/components/form-table/src/components/index.js +0 -1
- package/es/components/form-table/src/components/index2.js +0 -40
- package/es/components/form-table/src/components/table-age.js +0 -235
- package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
- package/es/components/form-table/src/components/table-date-picker.js +0 -179
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
- package/es/components/form-table/src/components/table-digital.js +0 -141
- package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-input-password.js +0 -141
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
- package/es/components/form-table/src/components/table-input.js +0 -127
- package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
- package/es/components/form-table/src/components/table-month-picker.js +0 -104
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
- package/es/components/form-table/src/components/table-search-more.js +0 -6
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
- package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-search.js +0 -6
- package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
- package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
- package/es/components/form-table/src/components/table-select-multiple.js +0 -164
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
- package/es/components/form-table/src/components/table-select.js +0 -159
- package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
- package/es/components/form-table/src/components/table-textarea.js +0 -157
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
- package/es/components/form-table/src/components/table-time-picker.js +0 -150
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
- package/es/components/form-table/src/components/table-tree-select.js +0 -285
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
- package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
- package/es/components/form-table/src/configs/index.d.ts +0 -35
- package/es/components/form-table/src/configs/index.js +0 -1
- package/es/components/form-table/src/configs/index2.js +0 -67
- package/es/components/form-table/src/hooks/index.d.ts +0 -5
- package/es/components/form-table/src/hooks/index.js +0 -5
- package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
- package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
- package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
- package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
- package/es/components/form-table/src/hooks/useDateType.js +0 -1
- package/es/components/form-table/src/hooks/useDateType2.js +0 -160
- package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
- package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
- package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
- package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
- package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
- package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
- package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
- package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
- package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
- package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
- package/es/components/form-table/src/hooks/useSearch.js +0 -1
- package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
- package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
- package/es/components/form-table/src/hooks/useValidate.js +0 -1
- package/es/components/form-table/src/hooks/useValidate2.js +0 -480
- package/es/components/form-table/src/types/index.d.ts +0 -11
- package/es/components/form-table/src/types/index.js +0 -1
- package/es/components/form-table/style/index.css +0 -1
|
@@ -200,7 +200,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
200
200
|
resetInlineBatchEdit: FunctionConstructor;
|
|
201
201
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
202
202
|
anchor: {
|
|
203
|
-
type:
|
|
203
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
|
|
204
204
|
default: () => never[];
|
|
205
205
|
};
|
|
206
206
|
}, {
|
|
@@ -547,12 +547,15 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
547
547
|
resetInlineBatchEdit: FunctionConstructor;
|
|
548
548
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
549
549
|
anchor: {
|
|
550
|
-
type:
|
|
550
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
|
|
551
551
|
default: () => never[];
|
|
552
552
|
};
|
|
553
553
|
}>> & {
|
|
554
554
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
555
555
|
}>>;
|
|
556
|
+
attr: {
|
|
557
|
+
[x: string]: unknown;
|
|
558
|
+
};
|
|
556
559
|
formatData: (data?: {
|
|
557
560
|
tableList: any[];
|
|
558
561
|
fieldList: any[];
|
|
@@ -579,6 +582,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
579
582
|
'border-color': any;
|
|
580
583
|
color?: undefined;
|
|
581
584
|
};
|
|
585
|
+
getAttr: (field: string) => any;
|
|
582
586
|
imgs2imgArr: (imgs: any) => any;
|
|
583
587
|
parseDurationValue: (v: any, duration: any) => string | undefined;
|
|
584
588
|
parseCombinationValue: (value: any, setting: any) => any;
|
|
@@ -599,11 +603,12 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
599
603
|
rowIndex: any;
|
|
600
604
|
};
|
|
601
605
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
602
|
-
onFormChange: ({ value, row, column, index }: {
|
|
606
|
+
onFormChange: ({ value, row, column, index, type }: {
|
|
603
607
|
value: string | number | null;
|
|
604
608
|
row: any;
|
|
605
609
|
column: any;
|
|
606
610
|
index: number;
|
|
611
|
+
type?: string | undefined;
|
|
607
612
|
}) => void;
|
|
608
613
|
getDefaultValue: (params: any, item: any) => any;
|
|
609
614
|
isAboutNestTable: import("vue").ComputedRef<any>;
|
|
@@ -621,9 +626,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
621
626
|
$event: KeyboardEvent;
|
|
622
627
|
}) => void;
|
|
623
628
|
scroll: (params: any) => void;
|
|
624
|
-
attr: {
|
|
625
|
-
[x: string]: unknown;
|
|
626
|
-
};
|
|
627
629
|
currentCheckedKeys: import("vue").ComputedRef<never[]>;
|
|
628
630
|
visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
|
|
629
631
|
singleCheckedKey: import("vue").ComputedRef<string>;
|
|
@@ -701,7 +703,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
701
703
|
handleFilterChangeAll: (val: any, field: any) => void;
|
|
702
704
|
handleFilterChange: (value: any, name: any, field: any) => void;
|
|
703
705
|
handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
|
|
704
|
-
handleFilterClearAll: (
|
|
706
|
+
handleFilterClearAll: (columnName: any) => false | undefined;
|
|
705
707
|
handleCancelFilter: () => void;
|
|
706
708
|
mergeQuickSearchConfig: (filterFields: any, props: any) => void;
|
|
707
709
|
handleFilter: (field: any) => void;
|
|
@@ -713,7 +715,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
713
715
|
setGroupTreeExpand: () => void;
|
|
714
716
|
resetTableInlineEditStatus: () => false | undefined;
|
|
715
717
|
renderAnnotation: (columnConfig: import("../../../es/shared/types").AnyObject) => JSX.Element | null;
|
|
716
|
-
toolTipTitle: (item: any, type: any) => any[] | (() => any
|
|
718
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any);
|
|
717
719
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
718
720
|
getOtherConfigInit: () => any;
|
|
719
721
|
refreshTable: () => void;
|
|
@@ -883,7 +885,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
883
885
|
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
884
886
|
class: import("vue").Ref<string | undefined>;
|
|
885
887
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
886
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
888
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
887
889
|
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
888
890
|
[key: string]: any;
|
|
889
891
|
}> | (() => import("vue").VNodeChild)>;
|
|
@@ -1116,13 +1118,13 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1116
1118
|
resetInlineBatchEdit: FunctionConstructor;
|
|
1117
1119
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
1118
1120
|
anchor: {
|
|
1119
|
-
type:
|
|
1121
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
|
|
1120
1122
|
default: () => never[];
|
|
1121
1123
|
};
|
|
1122
1124
|
}>> & {
|
|
1123
1125
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
1124
1126
|
}, {
|
|
1125
|
-
anchor:
|
|
1127
|
+
anchor: import("../../../es/shared/types").AnyObject[];
|
|
1126
1128
|
data: unknown[];
|
|
1127
1129
|
showFooter: boolean;
|
|
1128
1130
|
columnConfig: Record<string, any>;
|
|
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
198
198
|
resetInlineBatchEdit: FunctionConstructor;
|
|
199
199
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
200
200
|
anchor: {
|
|
201
|
-
type:
|
|
201
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
|
|
202
202
|
default: () => never[];
|
|
203
203
|
};
|
|
204
204
|
}, {
|
|
@@ -545,12 +545,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
545
545
|
resetInlineBatchEdit: FunctionConstructor;
|
|
546
546
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
547
547
|
anchor: {
|
|
548
|
-
type:
|
|
548
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
|
|
549
549
|
default: () => never[];
|
|
550
550
|
};
|
|
551
551
|
}>> & {
|
|
552
552
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
553
553
|
}>>;
|
|
554
|
+
attr: {
|
|
555
|
+
[x: string]: unknown;
|
|
556
|
+
};
|
|
554
557
|
formatData: (data?: {
|
|
555
558
|
tableList: any[];
|
|
556
559
|
fieldList: any[];
|
|
@@ -577,6 +580,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
580
|
'border-color': any;
|
|
578
581
|
color?: undefined;
|
|
579
582
|
};
|
|
583
|
+
getAttr: (field: string) => any;
|
|
580
584
|
imgs2imgArr: (imgs: any) => any;
|
|
581
585
|
parseDurationValue: (v: any, duration: any) => string | undefined;
|
|
582
586
|
parseCombinationValue: (value: any, setting: any) => any;
|
|
@@ -597,11 +601,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
597
601
|
rowIndex: any;
|
|
598
602
|
};
|
|
599
603
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
600
|
-
onFormChange: ({ value, row, column, index }: {
|
|
604
|
+
onFormChange: ({ value, row, column, index, type }: {
|
|
601
605
|
value: string | number | null;
|
|
602
606
|
row: any;
|
|
603
607
|
column: any;
|
|
604
608
|
index: number;
|
|
609
|
+
type?: string | undefined;
|
|
605
610
|
}) => void;
|
|
606
611
|
getDefaultValue: (params: any, item: any) => any;
|
|
607
612
|
isAboutNestTable: import("vue").ComputedRef<any>;
|
|
@@ -619,9 +624,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
619
624
|
$event: KeyboardEvent;
|
|
620
625
|
}) => void;
|
|
621
626
|
scroll: (params: any) => void;
|
|
622
|
-
attr: {
|
|
623
|
-
[x: string]: unknown;
|
|
624
|
-
};
|
|
625
627
|
currentCheckedKeys: import("vue").ComputedRef<never[]>;
|
|
626
628
|
visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
|
|
627
629
|
singleCheckedKey: import("vue").ComputedRef<string>;
|
|
@@ -699,7 +701,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
699
701
|
handleFilterChangeAll: (val: any, field: any) => void;
|
|
700
702
|
handleFilterChange: (value: any, name: any, field: any) => void;
|
|
701
703
|
handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
|
|
702
|
-
handleFilterClearAll: (
|
|
704
|
+
handleFilterClearAll: (columnName: any) => false | undefined;
|
|
703
705
|
handleCancelFilter: () => void;
|
|
704
706
|
mergeQuickSearchConfig: (filterFields: any, props: any) => void;
|
|
705
707
|
handleFilter: (field: any) => void;
|
|
@@ -711,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
711
713
|
setGroupTreeExpand: () => void;
|
|
712
714
|
resetTableInlineEditStatus: () => false | undefined;
|
|
713
715
|
renderAnnotation: (columnConfig: import("../../../shared/types").AnyObject) => JSX.Element | null;
|
|
714
|
-
toolTipTitle: (item: any, type: any) => any[] | (() => any
|
|
716
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any);
|
|
715
717
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
716
718
|
getOtherConfigInit: () => any;
|
|
717
719
|
refreshTable: () => void;
|
|
@@ -881,7 +883,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
881
883
|
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
882
884
|
class: import("vue").Ref<string | undefined>;
|
|
883
885
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
884
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
886
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
885
887
|
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
886
888
|
[key: string]: any;
|
|
887
889
|
}> | (() => import("vue").VNodeChild)>;
|
|
@@ -1114,13 +1116,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1114
1116
|
resetInlineBatchEdit: FunctionConstructor;
|
|
1115
1117
|
resetBatchEditRowStatus: FunctionConstructor;
|
|
1116
1118
|
anchor: {
|
|
1117
|
-
type:
|
|
1119
|
+
type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
|
|
1118
1120
|
default: () => never[];
|
|
1119
1121
|
};
|
|
1120
1122
|
}>> & {
|
|
1121
1123
|
[x: `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
1122
1124
|
}, {
|
|
1123
|
-
anchor:
|
|
1125
|
+
anchor: import("../../../shared/types").AnyObject[];
|
|
1124
1126
|
data: unknown[];
|
|
1125
1127
|
showFooter: boolean;
|
|
1126
1128
|
columnConfig: Record<string, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, nextTick, createVNode, h, resolveComponent, Teleport, createTextVNode, watch, openBlock, createElementBlock, Fragment, createBlock, unref, withCtx, renderList, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { isFunction, isArray } from 'lodash-es';
|
|
3
3
|
import bigTableState from './bigTableState2.js';
|
|
4
4
|
import bigTableProps from './bigTableProps2.js';
|
|
5
5
|
import bigTableEmits from './bigTableEmits2.js';
|
|
@@ -57,11 +57,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
const xGrid = ref({});
|
|
58
58
|
const copyState = XEUtils.clone(bigTableState, true);
|
|
59
59
|
const state = reactive(copyState);
|
|
60
|
+
const attr = useAttrs();
|
|
60
61
|
const {
|
|
61
62
|
formatData,
|
|
62
63
|
htmlToText,
|
|
63
|
-
getBtnStyle
|
|
64
|
-
|
|
64
|
+
getBtnStyle,
|
|
65
|
+
getAttr
|
|
66
|
+
} = useFormat(state, attr);
|
|
65
67
|
const {
|
|
66
68
|
imgs2imgArr,
|
|
67
69
|
parseDurationValue,
|
|
@@ -104,7 +106,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
104
106
|
keyDown,
|
|
105
107
|
scroll
|
|
106
108
|
} = useEvent(props, state, emit, xGrid, anchorEvent);
|
|
107
|
-
const attr = useAttrs();
|
|
108
109
|
const currentCheckedKeys = computed(() => {
|
|
109
110
|
var _a;
|
|
110
111
|
return ((_a = state.checkedRows) == null ? void 0 : _a.map((row) => row[props.primaryKey])) || [];
|
|
@@ -433,8 +434,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
433
434
|
let filterField = false;
|
|
434
435
|
let filterItems = [];
|
|
435
436
|
try {
|
|
436
|
-
const fieldSetting = JSON.parse(item.fieldSetting);
|
|
437
|
-
|
|
437
|
+
const fieldSetting = JSON.parse(item.fieldSetting || "{}");
|
|
438
|
+
let notParticipatingSearch = (fieldSetting == null ? void 0 : fieldSetting.notParticipatingSearch) || "";
|
|
439
|
+
filterField = notParticipatingSearch != 1 && ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
|
|
438
440
|
filterItems = (_c2 = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c2.map((item2) => item2.value[0]);
|
|
439
441
|
} catch (e) {
|
|
440
442
|
}
|
|
@@ -831,7 +833,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
831
833
|
}, [createVNode("span", null, [createTextVNode("\u5DF2\u9009\u62E9"), field.CONVERT.length, createTextVNode("\u9879")]), createVNode(NButton, {
|
|
832
834
|
"class": "checkbox-btn checkbox-btn-clear",
|
|
833
835
|
"text": true,
|
|
834
|
-
"onClick": () => handleFilterClearAll(
|
|
836
|
+
"onClick": () => handleFilterClearAll(item.columnName)
|
|
835
837
|
}, {
|
|
836
838
|
default: () => [createTextVNode("\u6E05\u7A7A")]
|
|
837
839
|
})]) : null, createVNode("div", null, [createVNode(NButton, {
|
|
@@ -911,7 +913,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
911
913
|
field.searchFilterCONVERT = value;
|
|
912
914
|
_beforeSearchConvert = XEUtils.clone(value, true);
|
|
913
915
|
};
|
|
914
|
-
const handleFilterClearAll = (
|
|
916
|
+
const handleFilterClearAll = (columnName) => {
|
|
917
|
+
const field = state.filterFields[columnName];
|
|
918
|
+
if (!field)
|
|
919
|
+
return false;
|
|
915
920
|
field.indeterminate = false;
|
|
916
921
|
field.checkAll = false;
|
|
917
922
|
state.filterFields[field.columnName].CONVERT = [];
|
|
@@ -970,6 +975,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
970
975
|
if (name && tooltipTitle && name !== tooltipTitle) {
|
|
971
976
|
isAlias = !!tooltipTitle;
|
|
972
977
|
}
|
|
978
|
+
if (isFunction(item.headerSlotFn))
|
|
979
|
+
return () => item.headerSlotFn(item);
|
|
973
980
|
if (type === "format")
|
|
974
981
|
return [createVNode(script, {
|
|
975
982
|
"tooltipTitle": tooltipTitle,
|
|
@@ -2278,7 +2285,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2278
2285
|
formatData,
|
|
2279
2286
|
xGrid,
|
|
2280
2287
|
loadColumn,
|
|
2281
|
-
loadData
|
|
2288
|
+
loadData,
|
|
2289
|
+
handleFilterClearAll
|
|
2282
2290
|
});
|
|
2283
2291
|
return (_ctx, _cache) => {
|
|
2284
2292
|
var _a;
|
|
@@ -2331,20 +2339,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2331
2339
|
"cell-class-name": _ctx.columnConfig.cellClassName || null,
|
|
2332
2340
|
"row-config": {
|
|
2333
2341
|
...state.rowConfig,
|
|
2334
|
-
...
|
|
2342
|
+
...unref(getAttr)("row-config")
|
|
2335
2343
|
},
|
|
2336
2344
|
"show-footer": _ctx.showFooter && !props.isInlineOperating,
|
|
2337
2345
|
"footer-method": footerMethod,
|
|
2338
2346
|
"sort-config": {
|
|
2339
2347
|
trigger: "cell",
|
|
2340
2348
|
remote: true,
|
|
2341
|
-
...
|
|
2349
|
+
...unref(getAttr)("sort-config")
|
|
2342
2350
|
},
|
|
2343
2351
|
"span-method": colspanMethod,
|
|
2344
2352
|
"footer-span-method": footerRowspanMethod,
|
|
2345
2353
|
"tooltip-config": {
|
|
2346
2354
|
enterable: false,
|
|
2347
|
-
...
|
|
2355
|
+
...unref(getAttr)("tooltip-config")
|
|
2348
2356
|
},
|
|
2349
2357
|
"checkbox-config": {
|
|
2350
2358
|
checkField: "checked",
|
|
@@ -2354,18 +2362,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2354
2362
|
trigger: "cell",
|
|
2355
2363
|
reserve: true,
|
|
2356
2364
|
highlight: true,
|
|
2357
|
-
...
|
|
2365
|
+
...unref(getAttr)("checkbox-config")
|
|
2358
2366
|
},
|
|
2359
2367
|
"radio-config": {
|
|
2360
2368
|
checkField: "checked",
|
|
2361
2369
|
trigger: "cell",
|
|
2362
2370
|
reserve: true,
|
|
2363
2371
|
highlight: true,
|
|
2364
|
-
...
|
|
2372
|
+
...unref(getAttr)("radio-config")
|
|
2365
2373
|
},
|
|
2366
2374
|
"scroll-y": {
|
|
2367
2375
|
gt: 50,
|
|
2368
|
-
...
|
|
2376
|
+
...unref(getAttr)("scroll-y")
|
|
2369
2377
|
},
|
|
2370
2378
|
"row-style": unref(getRowStyle),
|
|
2371
2379
|
"edit-config": state.editConfig,
|
|
@@ -2376,7 +2384,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2376
2384
|
toggleMethod: unref(toggleExpandMethod),
|
|
2377
2385
|
iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
|
|
2378
2386
|
iconClose: "iconfont icon-a-xitongtubiaotianjia",
|
|
2379
|
-
...
|
|
2387
|
+
...unref(getAttr)("expand-config")
|
|
2380
2388
|
},
|
|
2381
2389
|
"keyboard-config": _ctx.columnConfig.keyboardConfig || {},
|
|
2382
2390
|
"edit-rules": _ctx.columnConfig.editRules || {},
|
|
@@ -36,20 +36,21 @@ var EditInput = defineComponent({
|
|
|
36
36
|
formRef
|
|
37
37
|
} = useCommon(props, attrs);
|
|
38
38
|
const __value = ref(attrs.value);
|
|
39
|
+
const commData = {
|
|
40
|
+
row: props.row,
|
|
41
|
+
column: props.col,
|
|
42
|
+
index: props.index
|
|
43
|
+
};
|
|
39
44
|
const onUpdateValue = (value) => {
|
|
40
45
|
emit("formChange", {
|
|
41
46
|
value,
|
|
42
|
-
|
|
43
|
-
column: props.col,
|
|
44
|
-
index: props.index
|
|
47
|
+
...commData
|
|
45
48
|
});
|
|
46
49
|
};
|
|
47
50
|
function onBlur() {
|
|
48
51
|
emit("formChange", {
|
|
49
52
|
value: __value.value,
|
|
50
|
-
|
|
51
|
-
column: props.col,
|
|
52
|
-
index: props.index
|
|
53
|
+
...commData
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
const config = {
|
|
@@ -68,7 +69,14 @@ var EditInput = defineComponent({
|
|
|
68
69
|
}), null) : createVNode(NInputNumber, mergeProps({
|
|
69
70
|
"ref": formRef
|
|
70
71
|
}, attrs, config, {
|
|
71
|
-
"
|
|
72
|
+
"value": __value.value,
|
|
73
|
+
"onUpdate:value": ($event) => __value.value = $event,
|
|
74
|
+
"onUpdateValue": onUpdateValue,
|
|
75
|
+
"onBlur": () => emit("formChange", {
|
|
76
|
+
value: __value.value,
|
|
77
|
+
...commData,
|
|
78
|
+
type: "blur"
|
|
79
|
+
})
|
|
72
80
|
}), null);
|
|
73
81
|
}
|
|
74
82
|
});
|
|
@@ -326,11 +326,12 @@ export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) =>
|
|
|
326
326
|
initEditTable: () => Promise<void>;
|
|
327
327
|
deleteRow: (row: any, col: any, index: number) => void;
|
|
328
328
|
onClickSelectTable: (row: any) => Promise<void>;
|
|
329
|
-
onFormChange: ({ value, row, column, index }: {
|
|
329
|
+
onFormChange: ({ value, row, column, index, type }: {
|
|
330
330
|
value: number | string | null;
|
|
331
331
|
row: any;
|
|
332
332
|
column: any;
|
|
333
333
|
index: number;
|
|
334
|
+
type?: string | undefined;
|
|
334
335
|
}) => void;
|
|
335
336
|
getDefaultValue: (params: any, item: any) => any;
|
|
336
337
|
};
|
|
@@ -60,7 +60,8 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
60
60
|
value,
|
|
61
61
|
row,
|
|
62
62
|
column,
|
|
63
|
-
index
|
|
63
|
+
index,
|
|
64
|
+
type
|
|
64
65
|
}) => {
|
|
65
66
|
var _a, _b;
|
|
66
67
|
let oldValue = row[column.columnName];
|
|
@@ -84,7 +85,7 @@ const useEdit = (props, state, emit, xGrid) => {
|
|
|
84
85
|
if (((column == null ? void 0 : column.formType) === "date" || (column == null ? void 0 : column.formType) === "time") && !value) {
|
|
85
86
|
row[column.columnName] = void 0;
|
|
86
87
|
}
|
|
87
|
-
emit("formChange", { value, row, column, index, oldValue });
|
|
88
|
+
emit("formChange", { value, row, column, index, oldValue, ...type ? { type } : {} });
|
|
88
89
|
};
|
|
89
90
|
const getDefaultValue = (params, item) => {
|
|
90
91
|
var _a;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
2
|
+
export declare const useFormat: (state: any, attr: AnyObject) => {
|
|
2
3
|
formatData: (data?: {
|
|
3
4
|
tableList: any[];
|
|
4
5
|
fieldList: any[];
|
|
@@ -25,4 +26,5 @@ export declare const useFormat: (state: any) => {
|
|
|
25
26
|
'border-color': any;
|
|
26
27
|
color?: undefined;
|
|
27
28
|
};
|
|
29
|
+
getAttr: (field: string) => any;
|
|
28
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils';
|
|
2
2
|
import 'moment';
|
|
3
3
|
|
|
4
|
-
const useFormat = (state) => {
|
|
4
|
+
const useFormat = (state, attr) => {
|
|
5
5
|
const formatData = (data = {
|
|
6
6
|
tableList: [],
|
|
7
7
|
fieldList: [],
|
|
@@ -482,10 +482,19 @@ const useFormat = (state) => {
|
|
|
482
482
|
"border-color": v.color
|
|
483
483
|
};
|
|
484
484
|
};
|
|
485
|
+
function getAttr(field) {
|
|
486
|
+
if (attr[field])
|
|
487
|
+
return attr[field];
|
|
488
|
+
const newField = field.replace(/-(\w)/g, ($0, $1) => {
|
|
489
|
+
return $1.toUpperCase();
|
|
490
|
+
});
|
|
491
|
+
return attr[newField] || {};
|
|
492
|
+
}
|
|
485
493
|
return {
|
|
486
494
|
formatData,
|
|
487
495
|
htmlToText,
|
|
488
|
-
getBtnStyle
|
|
496
|
+
getBtnStyle,
|
|
497
|
+
getAttr
|
|
489
498
|
};
|
|
490
499
|
};
|
|
491
500
|
|
|
@@ -383,7 +383,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
383
383
|
key: string;
|
|
384
384
|
render: () => import("vue").VNodeChild;
|
|
385
385
|
}[]>;
|
|
386
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
386
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
387
387
|
readonly label: StringConstructor;
|
|
388
388
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
389
389
|
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -387,7 +387,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
387
387
|
key: string;
|
|
388
388
|
render: () => import("vue").VNodeChild;
|
|
389
389
|
}[]>;
|
|
390
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
390
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
391
391
|
readonly label: StringConstructor;
|
|
392
392
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
393
393
|
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
key: string;
|
|
211
211
|
render: () => import("vue").VNodeChild;
|
|
212
212
|
}[]>;
|
|
213
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
213
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
214
214
|
readonly label: StringConstructor;
|
|
215
215
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
216
216
|
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -205,7 +205,7 @@ declare const DragLayout: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
205
205
|
} | null>;
|
|
206
206
|
validate: import("naive-ui/es/form/src/interface").FormItemValidate;
|
|
207
207
|
restoreValidation: () => void;
|
|
208
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
208
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
209
209
|
readonly label: StringConstructor;
|
|
210
210
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
211
211
|
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -205,7 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
205
|
} | null>;
|
|
206
206
|
validate: import("naive-ui/es/form/src/interface").FormItemValidate;
|
|
207
207
|
restoreValidation: () => void;
|
|
208
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
208
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
209
209
|
readonly label: StringConstructor;
|
|
210
210
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
211
211
|
readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, createVNode, Teleport, withDirectives, vShow } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, createVNode, Teleport, withDirectives, vShow } from 'vue';
|
|
2
2
|
import { NSpace, NInputNumber } from 'naive-ui';
|
|
3
3
|
import useStyle from './useStyle2.js';
|
|
4
4
|
import { onClickOutside } from '@vueuse/core';
|
|
@@ -31,9 +31,11 @@ var PopupMenu = defineComponent({
|
|
|
31
31
|
slots,
|
|
32
32
|
emit
|
|
33
33
|
}) {
|
|
34
|
+
let setNoShow = false;
|
|
34
35
|
const popupRef = ref(null);
|
|
35
36
|
onClickOutside(popupRef, (event) => {
|
|
36
|
-
emit("update:show", false);
|
|
37
|
+
!setNoShow && emit("update:show", false);
|
|
38
|
+
setNoShow = false;
|
|
37
39
|
});
|
|
38
40
|
const {
|
|
39
41
|
left
|
|
@@ -81,6 +83,11 @@ var PopupMenu = defineComponent({
|
|
|
81
83
|
});
|
|
82
84
|
}
|
|
83
85
|
}
|
|
86
|
+
watch(() => props.show, (value) => {
|
|
87
|
+
if (value) {
|
|
88
|
+
setNoShow = true;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
84
91
|
return () => {
|
|
85
92
|
return createVNode(Teleport, {
|
|
86
93
|
"to": ".c-fabric-chart"
|
|
@@ -64,7 +64,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
64
64
|
left.yScaleValue.forEach((scaleValue) => {
|
|
65
65
|
drawPositionLine(scaleValue);
|
|
66
66
|
scaleValue.dataList.forEach((item, dataIndex) => {
|
|
67
|
-
|
|
67
|
+
if (scaleValue.type !== "temperature" || item.enable) {
|
|
68
|
+
drawPolyLine(item, dataIndex, scaleValue);
|
|
69
|
+
}
|
|
68
70
|
});
|
|
69
71
|
});
|
|
70
72
|
drawShaDow();
|
|
@@ -228,13 +230,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
228
230
|
});
|
|
229
231
|
}
|
|
230
232
|
function drawPolyLine(item, dataIndex, scaleValue) {
|
|
231
|
-
const {
|
|
232
|
-
pointAttr = {},
|
|
233
|
-
lineAttr = {},
|
|
234
|
-
type: pointType = "circle",
|
|
235
|
-
upArrowShow = false,
|
|
236
|
-
limitValueShow = false
|
|
237
|
-
} = item;
|
|
238
233
|
const {
|
|
239
234
|
type,
|
|
240
235
|
noRiseStyle = {},
|
|
@@ -242,13 +237,22 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
242
237
|
reduceStyle = {},
|
|
243
238
|
pacemaker = {},
|
|
244
239
|
upArrowStyle = {},
|
|
245
|
-
limitValueStyle = {}
|
|
240
|
+
limitValueStyle = {},
|
|
241
|
+
dataList = []
|
|
246
242
|
} = scaleValue;
|
|
247
243
|
const pointList = [];
|
|
248
244
|
const lineList = [];
|
|
249
245
|
const otherList = [];
|
|
250
246
|
item.list.forEach((v, index) => {
|
|
251
|
-
var _a
|
|
247
|
+
var _a;
|
|
248
|
+
const _item = type !== "temperature" ? item : dataList.find((_v) => _v.key === v.key);
|
|
249
|
+
const {
|
|
250
|
+
pointAttr = {},
|
|
251
|
+
lineAttr = {},
|
|
252
|
+
type: pointType = "circle",
|
|
253
|
+
upArrowShow = false,
|
|
254
|
+
limitValueShow = false
|
|
255
|
+
} = _item;
|
|
252
256
|
const points = getPointer(v, scaleValue);
|
|
253
257
|
const nextV = item.list[index + 1];
|
|
254
258
|
const nextPoint = getPointer(nextV, scaleValue);
|
|
@@ -330,9 +334,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
330
334
|
line = drawLine([...points, ...nextPoint], {
|
|
331
335
|
...lineAttr
|
|
332
336
|
});
|
|
333
|
-
} else if (points && !nextPoint && !v.breakpoint
|
|
334
|
-
const
|
|
335
|
-
const nextLinePoint = getPointer(nextV2, scaleValue);
|
|
337
|
+
} else if (points && !nextPoint && !v.breakpoint) {
|
|
338
|
+
const nextLinePoint = getPointer(nextV, scaleValue);
|
|
336
339
|
line = nextLinePoint ? drawLine([...points, ...nextLinePoint], {
|
|
337
340
|
...lineAttr
|
|
338
341
|
}) : null;
|
|
@@ -373,12 +376,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
373
376
|
} else {
|
|
374
377
|
if (points) {
|
|
375
378
|
pointAttrNew.leftLine = null;
|
|
376
|
-
if (type == "temperature" && index === 0) {
|
|
377
|
-
const objLine = [...prevLines].find((v2) => v2.dataIndex === dataIndex - 1);
|
|
378
|
-
if (objLine) {
|
|
379
|
-
pointAttrNew.leftLine = objLine.line;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
379
|
point = drawPoint(currentPointType, {
|
|
383
380
|
left: points[0],
|
|
384
381
|
top: points[1],
|
|
@@ -526,7 +523,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
526
523
|
emits("add", {
|
|
527
524
|
data: {
|
|
528
525
|
time: getXValue(item.pointer.x),
|
|
529
|
-
value: getYValue(item.origin.type, item.pointer.y)
|
|
526
|
+
value: getYValue(item.origin.type, item.pointer.y),
|
|
527
|
+
...item.origin.type !== "temperature" ? {} : { key: item.origin.key }
|
|
530
528
|
},
|
|
531
529
|
...item.origin
|
|
532
530
|
});
|
|
@@ -536,6 +534,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
536
534
|
value: target.origin.data.value
|
|
537
535
|
};
|
|
538
536
|
data[`${item.type}`] = item.value;
|
|
537
|
+
if (target.origin.type === "temperature") {
|
|
538
|
+
data["key"] = target.origin.key;
|
|
539
|
+
}
|
|
539
540
|
emits("change", {
|
|
540
541
|
...target.origin,
|
|
541
542
|
data
|