cnhis-design-vue 3.1.50-beta.20 → 3.1.50-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/form-config/index.d.ts +160 -18
- package/es/components/form-config/src/FormConfig.vue.d.ts +161 -19
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +7 -7
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +121 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -0
- package/es/components/form-config/src/constants/index.d.ts +19 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +7 -3
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -19
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +13 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/shortcut-setter/index.d.ts +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +20 -0
- package/es/shared/utils/business.d.ts +1 -2
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.d.ts +3 -3
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -150,7 +150,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
150
150
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
151
151
|
requestInstance: import("..").RequestInstance;
|
|
152
152
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
153
|
-
lowCodeReactions: import("
|
|
153
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
154
154
|
linebarAutoHidden: boolean;
|
|
155
155
|
bordered: string | boolean;
|
|
156
156
|
uniqueCacheData: boolean;
|
|
@@ -311,7 +311,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
311
311
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
312
312
|
requestInstance: import("..").RequestInstance;
|
|
313
313
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
314
|
-
lowCodeReactions: import("
|
|
314
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
315
315
|
linebarAutoHidden: boolean;
|
|
316
316
|
bordered: string | boolean;
|
|
317
317
|
uniqueCacheData: boolean;
|
|
@@ -478,7 +478,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
478
478
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
479
479
|
requestInstance: import("..").RequestInstance;
|
|
480
480
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
481
|
-
lowCodeReactions: import("
|
|
481
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
482
482
|
linebarAutoHidden: boolean;
|
|
483
483
|
bordered: string | boolean;
|
|
484
484
|
uniqueCacheData: boolean;
|
|
@@ -719,7 +719,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
719
719
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
720
720
|
requestInstance: import("..").RequestInstance;
|
|
721
721
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
722
|
-
lowCodeReactions: import("
|
|
722
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
723
723
|
linebarAutoHidden: boolean;
|
|
724
724
|
bordered: string | boolean;
|
|
725
725
|
uniqueCacheData: boolean;
|
|
@@ -2698,7 +2698,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2698
2698
|
default: boolean;
|
|
2699
2699
|
};
|
|
2700
2700
|
lowCodeReactions: {
|
|
2701
|
-
type: import("vue").PropType<import("
|
|
2701
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2702
2702
|
};
|
|
2703
2703
|
operationalForm: {
|
|
2704
2704
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2843,7 +2843,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2843
2843
|
default: boolean;
|
|
2844
2844
|
};
|
|
2845
2845
|
lowCodeReactions: {
|
|
2846
|
-
type: import("vue").PropType<import("
|
|
2846
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2847
2847
|
};
|
|
2848
2848
|
operationalForm: {
|
|
2849
2849
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3002,7 +3002,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3002
3002
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
3003
3003
|
requestInstance: import("..").RequestInstance;
|
|
3004
3004
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
3005
|
-
lowCodeReactions: import("
|
|
3005
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
3006
3006
|
linebarAutoHidden: boolean;
|
|
3007
3007
|
bordered: string | boolean;
|
|
3008
3008
|
uniqueCacheData: boolean;
|
|
@@ -3413,7 +3413,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3413
3413
|
default: boolean;
|
|
3414
3414
|
};
|
|
3415
3415
|
lowCodeReactions: {
|
|
3416
|
-
type: import("vue").PropType<import("
|
|
3416
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3417
3417
|
};
|
|
3418
3418
|
operationalForm: {
|
|
3419
3419
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3699,7 +3699,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3699
3699
|
default: boolean;
|
|
3700
3700
|
};
|
|
3701
3701
|
lowCodeReactions: {
|
|
3702
|
-
type: import("vue").PropType<import("
|
|
3702
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3703
3703
|
};
|
|
3704
3704
|
operationalForm: {
|
|
3705
3705
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3844,7 +3844,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3844
3844
|
default: boolean;
|
|
3845
3845
|
};
|
|
3846
3846
|
lowCodeReactions: {
|
|
3847
|
-
type: import("vue").PropType<import("
|
|
3847
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3848
3848
|
};
|
|
3849
3849
|
operationalForm: {
|
|
3850
3850
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -4003,7 +4003,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4003
4003
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
4004
4004
|
requestInstance: import("..").RequestInstance;
|
|
4005
4005
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
4006
|
-
lowCodeReactions: import("
|
|
4006
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
4007
4007
|
linebarAutoHidden: boolean;
|
|
4008
4008
|
bordered: string | boolean;
|
|
4009
4009
|
uniqueCacheData: boolean;
|
|
@@ -4414,7 +4414,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4414
4414
|
default: boolean;
|
|
4415
4415
|
};
|
|
4416
4416
|
lowCodeReactions: {
|
|
4417
|
-
type: import("vue").PropType<import("
|
|
4417
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
4418
4418
|
};
|
|
4419
4419
|
operationalForm: {
|
|
4420
4420
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -4620,7 +4620,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4620
4620
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
4621
4621
|
requestInstance: import("..").RequestInstance;
|
|
4622
4622
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
4623
|
-
lowCodeReactions: import("
|
|
4623
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
4624
4624
|
linebarAutoHidden: boolean;
|
|
4625
4625
|
bordered: string | boolean;
|
|
4626
4626
|
uniqueCacheData: boolean;
|
|
@@ -150,7 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
150
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
151
151
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
152
152
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
153
|
-
lowCodeReactions: import("../../../../es/
|
|
153
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
154
154
|
linebarAutoHidden: boolean;
|
|
155
155
|
bordered: string | boolean;
|
|
156
156
|
uniqueCacheData: boolean;
|
|
@@ -309,7 +309,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
309
309
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
310
310
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
311
311
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
312
|
-
lowCodeReactions: import("../../../../es/
|
|
312
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
313
313
|
linebarAutoHidden: boolean;
|
|
314
314
|
bordered: string | boolean;
|
|
315
315
|
uniqueCacheData: boolean;
|
|
@@ -472,7 +472,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
472
472
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
473
473
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
474
474
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
475
|
-
lowCodeReactions: import("../../../../es/
|
|
475
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
476
476
|
linebarAutoHidden: boolean;
|
|
477
477
|
bordered: string | boolean;
|
|
478
478
|
uniqueCacheData: boolean;
|
|
@@ -713,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
713
713
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
714
714
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
715
715
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
716
|
-
lowCodeReactions: import("../../../../es/
|
|
716
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
717
717
|
linebarAutoHidden: boolean;
|
|
718
718
|
bordered: string | boolean;
|
|
719
719
|
uniqueCacheData: boolean;
|
|
@@ -2692,7 +2692,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2692
2692
|
default: boolean;
|
|
2693
2693
|
};
|
|
2694
2694
|
lowCodeReactions: {
|
|
2695
|
-
type: PropType<import("../../../../es/
|
|
2695
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2696
2696
|
};
|
|
2697
2697
|
operationalForm: {
|
|
2698
2698
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2837,7 +2837,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2837
2837
|
default: boolean;
|
|
2838
2838
|
};
|
|
2839
2839
|
lowCodeReactions: {
|
|
2840
|
-
type: PropType<import("../../../../es/
|
|
2840
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2841
2841
|
};
|
|
2842
2842
|
operationalForm: {
|
|
2843
2843
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2996,7 +2996,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2996
2996
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2997
2997
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2998
2998
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
2999
|
-
lowCodeReactions: import("../../../../es/
|
|
2999
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
3000
3000
|
linebarAutoHidden: boolean;
|
|
3001
3001
|
bordered: string | boolean;
|
|
3002
3002
|
uniqueCacheData: boolean;
|
|
@@ -3407,7 +3407,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3407
3407
|
default: boolean;
|
|
3408
3408
|
};
|
|
3409
3409
|
lowCodeReactions: {
|
|
3410
|
-
type: PropType<import("../../../../es/
|
|
3410
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3411
3411
|
};
|
|
3412
3412
|
operationalForm: {
|
|
3413
3413
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3693,7 +3693,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3693
3693
|
default: boolean;
|
|
3694
3694
|
};
|
|
3695
3695
|
lowCodeReactions: {
|
|
3696
|
-
type: PropType<import("../../../../es/
|
|
3696
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3697
3697
|
};
|
|
3698
3698
|
operationalForm: {
|
|
3699
3699
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3838,7 +3838,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3838
3838
|
default: boolean;
|
|
3839
3839
|
};
|
|
3840
3840
|
lowCodeReactions: {
|
|
3841
|
-
type: PropType<import("../../../../es/
|
|
3841
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
3842
3842
|
};
|
|
3843
3843
|
operationalForm: {
|
|
3844
3844
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -3997,7 +3997,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3997
3997
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
3998
3998
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
3999
3999
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
4000
|
-
lowCodeReactions: import("../../../../es/
|
|
4000
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
4001
4001
|
linebarAutoHidden: boolean;
|
|
4002
4002
|
bordered: string | boolean;
|
|
4003
4003
|
uniqueCacheData: boolean;
|
|
@@ -4408,7 +4408,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4408
4408
|
default: boolean;
|
|
4409
4409
|
};
|
|
4410
4410
|
lowCodeReactions: {
|
|
4411
|
-
type: PropType<import("../../../../es/
|
|
4411
|
+
type: PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
4412
4412
|
};
|
|
4413
4413
|
operationalForm: {
|
|
4414
4414
|
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -4612,7 +4612,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4612
4612
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
4613
4613
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
4614
4614
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
4615
|
-
lowCodeReactions: import("../../../../es/
|
|
4615
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
4616
4616
|
linebarAutoHidden: boolean;
|
|
4617
4617
|
bordered: string | boolean;
|
|
4618
4618
|
uniqueCacheData: boolean;
|
|
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
117
117
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
118
118
|
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
119
119
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
120
|
-
lowCodeReactions: import("
|
|
120
|
+
lowCodeReactions: import("../../../..").FormLowCodeReactions.Config[];
|
|
121
121
|
linebarAutoHidden: boolean;
|
|
122
122
|
bordered: string | boolean;
|
|
123
123
|
uniqueCacheData: boolean;
|
|
@@ -205,7 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
205
|
businessFormatter: import("../../../..").FormBusinessFormatter;
|
|
206
206
|
requestInstance: import("../../../..").RequestInstance;
|
|
207
207
|
enterToNextWidget: boolean | ((fieldItem: import("../../../..").FieldItem) => boolean | void);
|
|
208
|
-
lowCodeReactions: import("
|
|
208
|
+
lowCodeReactions: import("../../../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
209
209
|
linebarAutoHidden: boolean;
|
|
210
210
|
bordered: string | boolean;
|
|
211
211
|
uniqueCacheData: boolean;
|
|
@@ -272,7 +272,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
272
272
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
273
273
|
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
274
274
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
275
|
-
lowCodeReactions: import("../../../../../../es/
|
|
275
|
+
lowCodeReactions: import("../../../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
276
276
|
linebarAutoHidden: boolean;
|
|
277
277
|
bordered: string | boolean;
|
|
278
278
|
uniqueCacheData: boolean;
|
|
@@ -2251,7 +2251,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2251
2251
|
default: boolean;
|
|
2252
2252
|
};
|
|
2253
2253
|
lowCodeReactions: {
|
|
2254
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2254
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2255
2255
|
};
|
|
2256
2256
|
operationalForm: {
|
|
2257
2257
|
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2396,7 +2396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2396
2396
|
default: boolean;
|
|
2397
2397
|
};
|
|
2398
2398
|
lowCodeReactions: {
|
|
2399
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2399
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2400
2400
|
};
|
|
2401
2401
|
operationalForm: {
|
|
2402
2402
|
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2555,7 +2555,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2555
2555
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
2556
2556
|
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
2557
2557
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
2558
|
-
lowCodeReactions: import("../../../../../../es/
|
|
2558
|
+
lowCodeReactions: import("../../../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2559
2559
|
linebarAutoHidden: boolean;
|
|
2560
2560
|
bordered: string | boolean;
|
|
2561
2561
|
uniqueCacheData: boolean;
|
|
@@ -2966,7 +2966,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2966
2966
|
default: boolean;
|
|
2967
2967
|
};
|
|
2968
2968
|
lowCodeReactions: {
|
|
2969
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2969
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2970
2970
|
};
|
|
2971
2971
|
operationalForm: {
|
|
2972
2972
|
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -177,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
177
|
default: boolean;
|
|
178
178
|
};
|
|
179
179
|
lowCodeReactions: {
|
|
180
|
-
type: import("vue").PropType<import("
|
|
180
|
+
type: import("vue").PropType<import("../../../..").FormLowCodeReactions.Config[]>;
|
|
181
181
|
};
|
|
182
182
|
operationalForm: {
|
|
183
183
|
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
@@ -322,7 +322,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
322
322
|
default: boolean;
|
|
323
323
|
};
|
|
324
324
|
lowCodeReactions: {
|
|
325
|
-
type: import("vue").PropType<import("
|
|
325
|
+
type: import("vue").PropType<import("../../../..").FormLowCodeReactions.Config[]>;
|
|
326
326
|
};
|
|
327
327
|
operationalForm: {
|
|
328
328
|
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
@@ -481,7 +481,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
481
481
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
482
482
|
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
483
483
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
484
|
-
lowCodeReactions: import("
|
|
484
|
+
lowCodeReactions: import("../../../..").FormLowCodeReactions.Config[];
|
|
485
485
|
linebarAutoHidden: boolean;
|
|
486
486
|
bordered: string | boolean;
|
|
487
487
|
uniqueCacheData: boolean;
|
|
@@ -892,7 +892,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
892
892
|
default: boolean;
|
|
893
893
|
};
|
|
894
894
|
lowCodeReactions: {
|
|
895
|
-
type: import("vue").PropType<import("
|
|
895
|
+
type: import("vue").PropType<import("../../../..").FormLowCodeReactions.Config[]>;
|
|
896
896
|
};
|
|
897
897
|
operationalForm: {
|
|
898
898
|
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\
|
|
1
|
+
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}});export{B as default};
|
|
@@ -95,12 +95,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
-
/**
|
|
99
|
-
* 取消勾选树节点
|
|
100
|
-
* baseKeys:基准值
|
|
101
|
-
* currentTree:当前树节点
|
|
102
|
-
* value:树节点的key值
|
|
103
|
-
*/
|
|
104
98
|
value: string | number;
|
|
105
99
|
}) => void>>;
|
|
106
100
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -1885,7 +1885,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1885
1885
|
default: boolean;
|
|
1886
1886
|
};
|
|
1887
1887
|
lowCodeReactions: {
|
|
1888
|
-
type: import("vue").PropType<import("
|
|
1888
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1889
1889
|
};
|
|
1890
1890
|
operationalForm: {
|
|
1891
1891
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2030,7 +2030,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2030
2030
|
default: boolean;
|
|
2031
2031
|
};
|
|
2032
2032
|
lowCodeReactions: {
|
|
2033
|
-
type: import("vue").PropType<import("
|
|
2033
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2034
2034
|
};
|
|
2035
2035
|
operationalForm: {
|
|
2036
2036
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2189,7 +2189,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2189
2189
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
2190
2190
|
requestInstance: import("..").RequestInstance;
|
|
2191
2191
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2192
|
-
lowCodeReactions: import("
|
|
2192
|
+
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2193
2193
|
linebarAutoHidden: boolean;
|
|
2194
2194
|
bordered: string | boolean;
|
|
2195
2195
|
uniqueCacheData: boolean;
|
|
@@ -2600,7 +2600,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2600
2600
|
default: boolean;
|
|
2601
2601
|
};
|
|
2602
2602
|
lowCodeReactions: {
|
|
2603
|
-
type: import("vue").PropType<import("
|
|
2603
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2604
2604
|
};
|
|
2605
2605
|
operationalForm: {
|
|
2606
2606
|
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -1887,7 +1887,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1887
1887
|
default: boolean;
|
|
1888
1888
|
};
|
|
1889
1889
|
lowCodeReactions: {
|
|
1890
|
-
type: import("vue").PropType<import("../../../../es/
|
|
1890
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
1891
1891
|
};
|
|
1892
1892
|
operationalForm: {
|
|
1893
1893
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2032,7 +2032,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2032
2032
|
default: boolean;
|
|
2033
2033
|
};
|
|
2034
2034
|
lowCodeReactions: {
|
|
2035
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2035
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2036
2036
|
};
|
|
2037
2037
|
operationalForm: {
|
|
2038
2038
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -2191,7 +2191,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2191
2191
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2192
2192
|
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2193
2193
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2194
|
-
lowCodeReactions: import("../../../../es/
|
|
2194
|
+
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2195
2195
|
linebarAutoHidden: boolean;
|
|
2196
2196
|
bordered: string | boolean;
|
|
2197
2197
|
uniqueCacheData: boolean;
|
|
@@ -2602,7 +2602,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2602
2602
|
default: boolean;
|
|
2603
2603
|
};
|
|
2604
2604
|
lowCodeReactions: {
|
|
2605
|
-
type: import("vue").PropType<import("../../../../es/
|
|
2605
|
+
type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
|
|
2606
2606
|
};
|
|
2607
2607
|
operationalForm: {
|
|
2608
2608
|
type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
@@ -111,6 +111,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
readonly type: PropType<(string | number)[] | null>;
|
|
112
112
|
readonly default: null;
|
|
113
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* 拖拽完成
|
|
116
|
+
*/
|
|
114
117
|
readonly disabled: {
|
|
115
118
|
readonly type: PropType<boolean | undefined>;
|
|
116
119
|
readonly default: undefined;
|
package/es/env.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
25
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|
|
25
|
+
|