cnhis-design-vue 3.1.46-release.3 → 3.1.46
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/button-print/src/utils/print.js +1 -1
- package/es/components/form-config/index.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue.d.ts +67 -16
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -7
- 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 +1 -1
- package/es/components/form-render/index.d.ts +5 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -3
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +16 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +32 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +16 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
- package/es/components/form-render/src/types/index.d.ts +1 -7
- package/es/components/iho-table/index.d.ts +12 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +14 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +14 -12
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -4
- 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/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +153 -14
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +106 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +150 -12
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +4 -0
- package/es/components/select-person/src/types/enums.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -5
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -5
- package/es/components/steps-wheel/index.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +16 -0
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- 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 +6 -0
- package/es/shared/utils/business.d.ts +6 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
|
@@ -150,7 +150,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
150
150
|
linebarAutoHidden: boolean;
|
|
151
151
|
bordered: string | boolean;
|
|
152
152
|
uniqueCacheData: boolean;
|
|
153
|
-
operationalForm: import("
|
|
153
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
154
154
|
}>>>;
|
|
155
155
|
};
|
|
156
156
|
}, {
|
|
@@ -305,7 +305,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
305
305
|
linebarAutoHidden: boolean;
|
|
306
306
|
bordered: string | boolean;
|
|
307
307
|
uniqueCacheData: boolean;
|
|
308
|
-
operationalForm: import("
|
|
308
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
309
309
|
}>>>;
|
|
310
310
|
};
|
|
311
311
|
}>> & {
|
|
@@ -470,7 +470,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
470
470
|
linebarAutoHidden: boolean;
|
|
471
471
|
bordered: string | boolean;
|
|
472
472
|
uniqueCacheData: boolean;
|
|
473
|
-
operationalForm: import("
|
|
473
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
474
474
|
}>>;
|
|
475
475
|
};
|
|
476
476
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2601,7 +2601,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2601
2601
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2602
2602
|
};
|
|
2603
2603
|
operationalForm: {
|
|
2604
|
-
type: import("vue").PropType<import("
|
|
2604
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2605
2605
|
};
|
|
2606
2606
|
linebarAutoHidden: {
|
|
2607
2607
|
type: BooleanConstructor;
|
|
@@ -2741,7 +2741,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2741
2741
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
2742
2742
|
};
|
|
2743
2743
|
operationalForm: {
|
|
2744
|
-
type: import("vue").PropType<import("
|
|
2744
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
2745
2745
|
};
|
|
2746
2746
|
linebarAutoHidden: {
|
|
2747
2747
|
type: BooleanConstructor;
|
|
@@ -2802,6 +2802,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2802
2802
|
triggerAllReactionsHandler: () => void;
|
|
2803
2803
|
operationalFormHandler: (field: string) => void;
|
|
2804
2804
|
triggerAllOperationalFormHandler: () => void;
|
|
2805
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2805
2806
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2806
2807
|
[key: symbol]: any;
|
|
2807
2808
|
[key: `x-${string}`]: any;
|
|
@@ -2917,7 +2918,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2917
2918
|
"x-read-pretty"?: boolean | undefined;
|
|
2918
2919
|
"x-compile-omitted"?: string[] | undefined;
|
|
2919
2920
|
}>>;
|
|
2920
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2921
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2921
2922
|
clearSpan: (uuid: string) => void;
|
|
2922
2923
|
exposeEvent: {
|
|
2923
2924
|
validate(path?: string): Promise<void>;
|
|
@@ -3209,7 +3210,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3209
3210
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3210
3211
|
};
|
|
3211
3212
|
operationalForm: {
|
|
3212
|
-
type: import("vue").PropType<import("
|
|
3213
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3213
3214
|
};
|
|
3214
3215
|
linebarAutoHidden: {
|
|
3215
3216
|
type: BooleanConstructor;
|
|
@@ -3488,7 +3489,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3488
3489
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3489
3490
|
};
|
|
3490
3491
|
operationalForm: {
|
|
3491
|
-
type: import("vue").PropType<import("
|
|
3492
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3492
3493
|
};
|
|
3493
3494
|
linebarAutoHidden: {
|
|
3494
3495
|
type: BooleanConstructor;
|
|
@@ -3628,7 +3629,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3628
3629
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
3629
3630
|
};
|
|
3630
3631
|
operationalForm: {
|
|
3631
|
-
type: import("vue").PropType<import("
|
|
3632
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
3632
3633
|
};
|
|
3633
3634
|
linebarAutoHidden: {
|
|
3634
3635
|
type: BooleanConstructor;
|
|
@@ -3689,6 +3690,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3689
3690
|
triggerAllReactionsHandler: () => void;
|
|
3690
3691
|
operationalFormHandler: (field: string) => void;
|
|
3691
3692
|
triggerAllOperationalFormHandler: () => void;
|
|
3693
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
3692
3694
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3693
3695
|
[key: symbol]: any;
|
|
3694
3696
|
[key: `x-${string}`]: any;
|
|
@@ -3804,7 +3806,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3804
3806
|
"x-read-pretty"?: boolean | undefined;
|
|
3805
3807
|
"x-compile-omitted"?: string[] | undefined;
|
|
3806
3808
|
}>>;
|
|
3807
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
3809
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
3808
3810
|
clearSpan: (uuid: string) => void;
|
|
3809
3811
|
exposeEvent: {
|
|
3810
3812
|
validate(path?: string): Promise<void>;
|
|
@@ -4096,7 +4098,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4096
4098
|
type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
|
|
4097
4099
|
};
|
|
4098
4100
|
operationalForm: {
|
|
4099
|
-
type: import("vue").PropType<import("
|
|
4101
|
+
type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
|
|
4100
4102
|
};
|
|
4101
4103
|
linebarAutoHidden: {
|
|
4102
4104
|
type: BooleanConstructor;
|
|
@@ -4292,7 +4294,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4292
4294
|
linebarAutoHidden: boolean;
|
|
4293
4295
|
bordered: string | boolean;
|
|
4294
4296
|
uniqueCacheData: boolean;
|
|
4295
|
-
operationalForm: import("
|
|
4297
|
+
operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
|
|
4296
4298
|
}>>>;
|
|
4297
4299
|
};
|
|
4298
4300
|
}>> & {
|
|
@@ -150,7 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
150
|
linebarAutoHidden: boolean;
|
|
151
151
|
bordered: string | boolean;
|
|
152
152
|
uniqueCacheData: boolean;
|
|
153
|
-
operationalForm: import("../../../../es/
|
|
153
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
154
154
|
}>>>;
|
|
155
155
|
};
|
|
156
156
|
}, {
|
|
@@ -303,7 +303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
303
303
|
linebarAutoHidden: boolean;
|
|
304
304
|
bordered: string | boolean;
|
|
305
305
|
uniqueCacheData: boolean;
|
|
306
|
-
operationalForm: import("../../../../es/
|
|
306
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
307
307
|
}>>>;
|
|
308
308
|
};
|
|
309
309
|
}>> & {
|
|
@@ -464,7 +464,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
464
464
|
linebarAutoHidden: boolean;
|
|
465
465
|
bordered: string | boolean;
|
|
466
466
|
uniqueCacheData: boolean;
|
|
467
|
-
operationalForm: import("../../../../es/
|
|
467
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
468
468
|
}>>;
|
|
469
469
|
};
|
|
470
470
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -2595,7 +2595,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2595
2595
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2596
2596
|
};
|
|
2597
2597
|
operationalForm: {
|
|
2598
|
-
type: PropType<import("../../../../es/
|
|
2598
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2599
2599
|
};
|
|
2600
2600
|
linebarAutoHidden: {
|
|
2601
2601
|
type: BooleanConstructor;
|
|
@@ -2735,7 +2735,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2735
2735
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2736
2736
|
};
|
|
2737
2737
|
operationalForm: {
|
|
2738
|
-
type: PropType<import("../../../../es/
|
|
2738
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2739
2739
|
};
|
|
2740
2740
|
linebarAutoHidden: {
|
|
2741
2741
|
type: BooleanConstructor;
|
|
@@ -2796,6 +2796,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2796
2796
|
triggerAllReactionsHandler: () => void;
|
|
2797
2797
|
operationalFormHandler: (field: string) => void;
|
|
2798
2798
|
triggerAllOperationalFormHandler: () => void;
|
|
2799
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2799
2800
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2800
2801
|
[key: symbol]: any;
|
|
2801
2802
|
[key: `x-${string}`]: any;
|
|
@@ -2911,7 +2912,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2911
2912
|
"x-read-pretty"?: boolean | undefined;
|
|
2912
2913
|
"x-compile-omitted"?: string[] | undefined;
|
|
2913
2914
|
}>>;
|
|
2914
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2915
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2915
2916
|
clearSpan: (uuid: string) => void;
|
|
2916
2917
|
exposeEvent: {
|
|
2917
2918
|
validate(path?: string): Promise<void>;
|
|
@@ -3203,7 +3204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3203
3204
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3204
3205
|
};
|
|
3205
3206
|
operationalForm: {
|
|
3206
|
-
type: PropType<import("../../../../es/
|
|
3207
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3207
3208
|
};
|
|
3208
3209
|
linebarAutoHidden: {
|
|
3209
3210
|
type: BooleanConstructor;
|
|
@@ -3482,7 +3483,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3482
3483
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3483
3484
|
};
|
|
3484
3485
|
operationalForm: {
|
|
3485
|
-
type: PropType<import("../../../../es/
|
|
3486
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3486
3487
|
};
|
|
3487
3488
|
linebarAutoHidden: {
|
|
3488
3489
|
type: BooleanConstructor;
|
|
@@ -3622,7 +3623,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3622
3623
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
3623
3624
|
};
|
|
3624
3625
|
operationalForm: {
|
|
3625
|
-
type: PropType<import("../../../../es/
|
|
3626
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
3626
3627
|
};
|
|
3627
3628
|
linebarAutoHidden: {
|
|
3628
3629
|
type: BooleanConstructor;
|
|
@@ -3683,6 +3684,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3683
3684
|
triggerAllReactionsHandler: () => void;
|
|
3684
3685
|
operationalFormHandler: (field: string) => void;
|
|
3685
3686
|
triggerAllOperationalFormHandler: () => void;
|
|
3687
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
3686
3688
|
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
3687
3689
|
[key: symbol]: any;
|
|
3688
3690
|
[key: `x-${string}`]: any;
|
|
@@ -3798,7 +3800,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3798
3800
|
"x-read-pretty"?: boolean | undefined;
|
|
3799
3801
|
"x-compile-omitted"?: string[] | undefined;
|
|
3800
3802
|
}>>;
|
|
3801
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
3803
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
3802
3804
|
clearSpan: (uuid: string) => void;
|
|
3803
3805
|
exposeEvent: {
|
|
3804
3806
|
validate(path?: string): Promise<void>;
|
|
@@ -4090,7 +4092,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4090
4092
|
type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
4091
4093
|
};
|
|
4092
4094
|
operationalForm: {
|
|
4093
|
-
type: PropType<import("../../../../es/
|
|
4095
|
+
type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
|
|
4094
4096
|
};
|
|
4095
4097
|
linebarAutoHidden: {
|
|
4096
4098
|
type: BooleanConstructor;
|
|
@@ -4284,7 +4286,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4284
4286
|
linebarAutoHidden: boolean;
|
|
4285
4287
|
bordered: string | boolean;
|
|
4286
4288
|
uniqueCacheData: boolean;
|
|
4287
|
-
operationalForm: import("../../../../es/
|
|
4289
|
+
operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
|
|
4288
4290
|
}>>>;
|
|
4289
4291
|
};
|
|
4290
4292
|
}>> & {
|
|
@@ -2168,7 +2168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2168
2168
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2169
2169
|
};
|
|
2170
2170
|
operationalForm: {
|
|
2171
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2171
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2172
2172
|
};
|
|
2173
2173
|
linebarAutoHidden: {
|
|
2174
2174
|
type: BooleanConstructor;
|
|
@@ -2308,7 +2308,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2308
2308
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2309
2309
|
};
|
|
2310
2310
|
operationalForm: {
|
|
2311
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2311
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2312
2312
|
};
|
|
2313
2313
|
linebarAutoHidden: {
|
|
2314
2314
|
type: BooleanConstructor;
|
|
@@ -2369,6 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2369
2369
|
triggerAllReactionsHandler: () => void;
|
|
2370
2370
|
operationalFormHandler: (field: string) => void;
|
|
2371
2371
|
triggerAllOperationalFormHandler: () => void;
|
|
2372
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
2372
2373
|
schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
2373
2374
|
[key: symbol]: any;
|
|
2374
2375
|
[key: `x-${string}`]: any;
|
|
@@ -2484,7 +2485,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2484
2485
|
"x-read-pretty"?: boolean | undefined;
|
|
2485
2486
|
"x-compile-omitted"?: string[] | undefined;
|
|
2486
2487
|
}>>;
|
|
2487
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2488
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2488
2489
|
clearSpan: (uuid: string) => void;
|
|
2489
2490
|
exposeEvent: {
|
|
2490
2491
|
validate(path?: string): Promise<void>;
|
|
@@ -2776,7 +2777,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2776
2777
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
2777
2778
|
};
|
|
2778
2779
|
operationalForm: {
|
|
2779
|
-
type: import("vue").PropType<import("../../../../../../es/
|
|
2780
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
|
|
2780
2781
|
};
|
|
2781
2782
|
linebarAutoHidden: {
|
|
2782
2783
|
type: BooleanConstructor;
|
|
@@ -180,7 +180,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
180
180
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
181
181
|
};
|
|
182
182
|
operationalForm: {
|
|
183
|
-
type: import("vue").PropType<import("
|
|
183
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
184
184
|
};
|
|
185
185
|
linebarAutoHidden: {
|
|
186
186
|
type: BooleanConstructor;
|
|
@@ -320,7 +320,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
320
320
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
321
321
|
};
|
|
322
322
|
operationalForm: {
|
|
323
|
-
type: import("vue").PropType<import("
|
|
323
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
324
324
|
};
|
|
325
325
|
linebarAutoHidden: {
|
|
326
326
|
type: BooleanConstructor;
|
|
@@ -381,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
triggerAllReactionsHandler: () => void;
|
|
382
382
|
operationalFormHandler: (field: string) => void;
|
|
383
383
|
triggerAllOperationalFormHandler: () => void;
|
|
384
|
+
wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
|
|
384
385
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
385
386
|
[key: symbol]: any;
|
|
386
387
|
[key: `x-${string}`]: any;
|
|
@@ -496,7 +497,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
496
497
|
"x-read-pretty"?: boolean | undefined;
|
|
497
498
|
"x-compile-omitted"?: string[] | undefined;
|
|
498
499
|
}>>;
|
|
499
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
500
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
500
501
|
clearSpan: (uuid: string) => void;
|
|
501
502
|
exposeEvent: {
|
|
502
503
|
validate(path?: string): Promise<void>;
|
|
@@ -788,7 +789,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
788
789
|
type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
|
|
789
790
|
};
|
|
790
791
|
operationalForm: {
|
|
791
|
-
type: import("vue").PropType<import("
|
|
792
|
+
type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
|
|
792
793
|
};
|
|
793
794
|
linebarAutoHidden: {
|
|
794
795
|
type: BooleanConstructor;
|
|
@@ -586,7 +586,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
586
586
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
587
587
|
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
588
588
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
589
|
-
scoreText: import("vue").ComputedRef<"
|
|
589
|
+
scoreText: import("vue").ComputedRef<"" | "部分">;
|
|
590
590
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
591
591
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
592
592
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -584,7 +584,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
584
584
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
585
585
|
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
586
586
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
587
|
-
scoreText: import("vue").ComputedRef<"
|
|
587
|
+
scoreText: import("vue").ComputedRef<"" | "部分">;
|
|
588
588
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
589
589
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
590
590
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as n,openBlock as i,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import w from"./hooks/use-noData.js";import{getScaleViewState as h}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=h(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ne,resetNodata:ie}=w(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:we,skipCover:he,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ie(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ne(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));n((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{let{choiceObj:o,isSetObj:n}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,_e(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":n&&($.choiceComObj[t.val_key]=o),_e(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":_e(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}he.value&&!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?"),Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},n=o.field,i=o.message,l=$.formArray.find((e=>e.databaseTitle===n));return l&&(n=l.title),ee.error(n+i),e(!1),!1}{const t=Oe();e(t)}}))})),Me=()=>{G("onCloseSetting")};return X({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(i(),l("div",K,[s(' <template v-if="state.spinning">\
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as n,openBlock as i,createElementBlock as l,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import w from"./hooks/use-noData.js";import{getScaleViewState as h}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as O}from"./hooks/scaleview-submit.js";import{handleQueryParams as _,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";const K={class:"c-scale-view-block"},V=["innerHTML"],H={key:0,class:"required-text"},U={key:1,class:"evalute-label"},W=["onClick"],J=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Y={key:1,class:"footer"};var X=e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:X,emit:G}){const Q=e,{ScaleViewState:Z}=h(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ne,resetNodata:ie}=w(),le=_(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:we,skipCover:he,scaleEdit:Ee}=E(Q,$,{query:le}),{initForm:Ae}=A(Q,$,G,{query:le}),{submitMethod:Oe}=O(Q,$,G,{query:le}),{nextLogicEvent:_e,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=le;e&&($.shareId=e)})();const Te=e=>{try{ie(),Ae(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ne(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));n((()=>{Ae(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Oe(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{let{choiceObj:o,isSetObj:n}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,_e(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":n&&($.choiceComObj[t.val_key]=o),_e(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":_e(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}he.value&&!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?"),Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},n=o.field,i=o.message,l=$.formArray.find((e=>e.databaseTitle===n));return l&&(n=l.title),ee.error(n+i),e(!1),!1}{const t=Oe();e(t)}}))})),Me=()=>{G("onCloseSetting")};return X({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(i(),l("div",K,[s(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(i(),l(r,{key:0},[u(oe).noData?(i(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(i(),l(r,{key:1},[u(fe)&&!u(he)?(i(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(i(),l(r,{key:1},[u(ge)?(i(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(we),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(i(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(i(!0),l(r,null,y($.formArray,((e,t)=>(i(),l(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(i(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,V),u(re)(e)?(i(),l("span",H,"(必填)")):s("v-if",!0),u(be)(e)?(i(),l("span",U,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(i(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let n=await o(e.id);n&&($.evatipMap[e.id]||($.evatipMap[e.id]=n,De(n)))})(e)},[J,k(" 查看提示 ")],8,W)):s("v-if",!0)])),default:g((()=>[(i(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(i(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(i(),l("div",Y,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(i(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(i(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k(" 保存 ")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}});export{X as default};
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
answerSuccess: import("vue").ComputedRef<boolean>;
|
|
15
15
|
answerIcon: import("vue").ComputedRef<"icon-scale-view-dui" | "icon-scale-view-cuo">;
|
|
16
16
|
answerResText: import("vue").ComputedRef<"部分正确" | "回答正确" | "回答错误">;
|
|
17
|
-
scoreText: import("vue").ComputedRef<"
|
|
17
|
+
scoreText: import("vue").ComputedRef<"" | "部分">;
|
|
18
18
|
correctAnswer: import("vue").ComputedRef<any>;
|
|
19
19
|
answerKeyText: import("vue").ComputedRef<any>;
|
|
20
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as s,openBlock as r,createElementBlock as n,normalizeClass as i,unref as a,createElementVNode as l,createTextVNode as t,toDisplayString as c,createCommentVNode as o}from"vue";const u={class:"answer-res-wrap"},v={class:"answer-res"},d={key:0},w={key:0,class:"correct-answer"},p=l("p",null,"正确答案:",-1),m={class:"answer-key"},f=l("p",null,"答案解析:",-1);var y=e({__name:"AnswerParse",props:{item:{type:Object,default:()=>({})}},setup(e){const y=e,P=s((()=>{var e;return(null==(e=y.item)?void 0:e.questionScore)||0})),q=s((()=>{var e;return(null==(e=y.item)?void 0:e.questionScore)>0})),S=s((()=>q.value?"icon-scale-view-dui":"icon-scale-view-cuo")),k=s((()=>"questionPartScore"in y.item?"部分正确":q.value?"回答正确":"回答错误")),g=s((()=>"questionPartScore"in y.item?"部分":"
|
|
1
|
+
import{defineComponent as e,computed as s,openBlock as r,createElementBlock as n,normalizeClass as i,unref as a,createElementVNode as l,createTextVNode as t,toDisplayString as c,createCommentVNode as o}from"vue";const u={class:"answer-res-wrap"},v={class:"answer-res"},d={key:0},w={key:0,class:"correct-answer"},p=l("p",null,"正确答案:",-1),m={class:"answer-key"},f=l("p",null,"答案解析:",-1);var y=e({__name:"AnswerParse",props:{item:{type:Object,default:()=>({})}},setup(e){const y=e,P=s((()=>{var e;return(null==(e=y.item)?void 0:e.questionScore)||0})),q=s((()=>{var e;return(null==(e=y.item)?void 0:e.questionScore)>0})),S=s((()=>q.value?"icon-scale-view-dui":"icon-scale-view-cuo")),k=s((()=>"questionPartScore"in y.item?"部分正确":q.value?"回答正确":"回答错误")),g=s((()=>"questionPartScore"in y.item?"部分":"")),A=s((()=>{var e;let{correctAnswer:s}=(null==(e=y.item)?void 0:e.scoreConfigs)||{};return s})),C=s((()=>{var e;let{answerKey:s}=(null==(e=y.item)?void 0:e.scoreConfigs)||{};return s||"无"}));return(e,s)=>(r(),n("div",{class:i(["c-answerParse",{"answerParse-success":a(q)}])},[l("div",u,[l("div",v,[l("i",{class:i(["scale-view-iconfont",a(S)])},null,2),t(" "+c(a(k)),1)]),a(q)?(r(),n("div",d,c(a(g))+"得分:"+c(a(P))+"分",1)):o("v-if",!0)]),a(A)?(r(),n("div",w,[p,l("span",null,c(a(A)),1)])):o("v-if",!0),l("div",m,[f,l("span",null,c(a(C)),1)])],2))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,onMounted as
|
|
1
|
+
import{defineComponent as e,reactive as t,onMounted as a,watch as o,openBlock as n,createElementBlock as l,normalizeClass as u,unref as r,createElementVNode as s,toDisplayString as d,createCommentVNode as i,createTextVNode as c}from"vue";import{useEvaluate as w}from"../hooks/use-evaluate.js";import v from"moment";const m=s("i",{class:"scale-view-iconfont icon-scale-view-shijian"},null,-1),f={class:"answered-wrap"};var p=e({__name:"EvaluateCountdown",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},form:{type:Object,default:()=>({})},currentTime:{default:(new Date).getTime()},showEvaluateCountdown:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:p,emit:y}){const b=e,j=t({source:"countdown",setAnswered:0}),{evaluateState:h,evaluateStartTime:g,showCountdown:A,getTotalLen:C,countdown:O,clearTimer:T}=w(b,j,{emit:y});a((()=>{(()=>{C();let{evaluateTime:e}=b.evaluateResultSetting;if(!A.value||!e)return;let t=(g.value?v(g.value):v()).add(e,"minutes");T(),O(t)})()})),o((()=>b.form),(e=>{(e||Object.keys(e).length)&&(e=>{var t;let a=null==(t=b.formArray)?void 0:t.filter((e=>!h.filterArr.includes(e.type)));if(!a||!a.length)return;let o={};a.forEach((t=>{const a=t.databaseTitle||t.title;o[a]=e[a]}));let n=0;for(let e in o){let t=o[e],a=(l=t,Object.prototype.toString.call(l));"[object Object]"==a?t&&Object.keys(t).length&&n++:"[object Array]"==a?t&&t.length&&n++:"[object Number]"==a?(t||0===t)&&n++:t&&n++}var l;j.setAnswered=n})(e)}),{immediate:!0,deep:!0});return p({getCountdownObj:()=>({setAnswered:j.setAnswered,totalLen:h.totalLen})}),(e,t)=>(n(),l("div",{class:u(["c-evaluateCountdown",{"evaluateCountdown-hasTime":b.showEvaluateCountdown}])},[b.showEvaluateCountdown?(n(),l("div",{key:0,class:u(["countdown",{"countdown-red":r(h).countdownRed}])},[s("span",null,d(r(h).countdownStr),1),m],2)):i("v-if",!0),s("div",f,[c(" 作答情况: "+d(j.setAnswered)+"/ ",1),s("span",null,d(r(h).totalLen),1)])],2))}});export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,onMounted as a,openBlock as l,createElementBlock as u,createElementVNode as i,toDisplayString as n,createCommentVNode as s,unref as v,createVNode as r,withCtx as o,createTextVNode as m,Fragment as d}from"vue";import{useEvaluate as g}from"../hooks/use-evaluate.js";import c from"moment";import{NButton as f}from"naive-ui";const p={class:"c-evaluate-page"},S={class:"evaluate-container"},y={key:0,class:"evaluate-name"},R={key:1,class:"evaluate-explain"},b={class:"evaluate-score"},w=i("span",null,"
|
|
1
|
+
import{defineComponent as e,reactive as t,onMounted as a,openBlock as l,createElementBlock as u,createElementVNode as i,toDisplayString as n,createCommentVNode as s,unref as v,createVNode as r,withCtx as o,createTextVNode as m,Fragment as d}from"vue";import{useEvaluate as g}from"../hooks/use-evaluate.js";import c from"moment";import{NButton as f}from"naive-ui";const p={class:"c-evaluate-page"},S={class:"evaluate-container"},y={key:0,class:"evaluate-name"},R={key:1,class:"evaluate-explain"},b={class:"evaluate-score"},w=i("span",null,"测评总数",-1),T=i("span",null,"测评总分",-1),k={key:0},E=i("span",null,"测评时间(分钟)",-1),Y={key:2,class:"evaluate-time-range"};var x=e({__name:"EvaluatePage",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},isFinished:{type:Boolean,default:!1},maxScore:{type:Number,default:0}},emits:["writeGuage","closeEvaluateCountdown"],setup(e,{emit:x}){const h=e,D=t({source:"page",timer:null,curTime:(new Date).getTime(),timeRange:"",banStart:!1}),{evaluateState:j,evaluateStartTime:C,getEvaluateTime:H,getEvaluateStartTime:M,getEvaluateText:O,showCountdown:G,showRange:N,getTotalLen:$,countdown:_,clearTimer:A,disabledEvaluate:B,isBanStart:L}=g(h,D,{emit:x});a((()=>{F()}));const F=()=>{$(),P()},P=()=>{if(!h.evaluateResultSetting||!Object.keys(h.evaluateResultSetting).length)return;if(N.value){let e=c(C.value).format("YYYY年MM月DD日HH:mm:ss");if(H.value){let t=c(C.value).add(H.value,"minutes").format("YYYY年MM月DD日HH:mm:ss");D.timeRange=`${e}~${t}`}else D.timeRange=`${e}`}if(!C.value)return;let e=M.value;if(!e)return;let t=e.getTime();A(),_(t)},q=()=>{console.log("触发---writeGuage"),A();let e=L();D.banStart=e,D.banStart||x("writeGuage",G.value)};return(e,t)=>(l(),u("div",p,[i("div",S,[h.evaluateResultSetting.evaluateName?(l(),u("h4",y,n(h.evaluateResultSetting.evaluateName),1)):s("v-if",!0),h.evaluateResultSetting.evaluateExplain?(l(),u("div",R,[i("div",null,n(h.evaluateResultSetting.evaluateExplain),1)])):s("v-if",!0),i("ul",b,[i("li",null,[i("div",null,n(v(j).totalLen),1),w]),i("li",null,[i("div",null,n(h.maxScore),1),T]),v(H)?(l(),u("li",k,[i("div",null,n(v(H)),1),E])):s("v-if",!0)]),v(N)?(l(),u("div",Y,n(D.timeRange),1)):s("v-if",!0),r(v(f),{class:"evaluate-btn",type:"primary",onClick:q,disabled:v(B)||D.banStart},{default:o((()=>[m(n(v(O))+" ",1),!v(j).isTimeOut&&v(j).countdownStr?(l(),u(d,{key:0},[m(" ("+n(v(j).countdownStr)+") ",1)],64)):s("v-if",!0)])),_:1},8,["disabled"])])]))}});export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import n from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!n.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=a(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),E=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),w=e((()=>e=>X(e))),y=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i} <span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),j=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),P=e((()=>e=>({EVALUATE_RADIO_BLOCK:"
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import n from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!n.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=a(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),E=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),w=e((()=>e=>X(e))),y=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i} <span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),j=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),P=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选",EVALUATE_CHECKBOX_BLOCK:"多选"}[e.type]))),D=e((()=>e=>{var t;if(U.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!n.isValidDate(new Date(r)))return v;const c=a(r).add(s,"minutes").diff(a(),"seconds",!0);return v&&c<=0})),x=e((()=>"customList"===o.type?"保存":"提交")),V=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),N=e((()=>({getCascadeOptions:o.getCascadeOptions}))),$=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),K=e((()=>({ak:o.ak}))),I=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),M=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),q={RSelectCom:V.value,RCascaderCom:N.value,RUploadCom:$.value,RMapCom:K.value,RVodChunkUploadCom:I.value,CSelectLabelCom:M.value},J=e((()=>(e,t)=>{var a;const n=i[e.type],o=q[n]||{},r={form:l.form,item:e,index:t,isLock:j.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),X=(e,t)=>{if(e.hide)return!1;const{form:a={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&n.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=n.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=n.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=z(t);return n.isArray(a[o])?a[o].some((t=>e.value.includes(t))):e.value.includes(a[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},z=e=>e.databaseTitle||e.title,H=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},Q=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),W=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:c,isFormBoldOpen:C,scaleStyle:S,handlePageClass:E,isShowItem:w,handleShowQuestionNumber:y,hasScore:L,isPreviewScale:O,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:F,componentDisable:j,showEvaluateLabel:P,showAnswerParse:D,tipMsg:x,propsConfig:J,showEvent:X,formKey:z,evaluatePageProps:Q,evaluateCountdownProps:W,skipCover:b,scaleEdit:U}};export{o as ScaleViewComputed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as
|
|
1
|
+
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as r,watch as o,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as c,withCtx as v,createVNode as d,createElementVNode as p,renderSlot as f}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import{useEventBus as y,useVModel as m,onClickOutside as g,useDebounceFn as b}from"@vueuse/core";import"date-fns";import{isString as w,isArray as k,isObject as S,isFunction as K}from"lodash-es";import{uuidGenerator as C}from"../../../shared/utils/index.js";import{NOOP as N}from"@vue/shared";import{NPopover as _,NInput as P}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionKeyboardEventBus as x,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{SearchMenu as W}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150}},emits:["update:value","focus","update:show"],setup(e,{expose:L,emit:T}){const V=e,B=h();function E(){var e;e=[],Promise.resolve(K(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>T("update:value",e)),N)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&O()}const R=e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||z.value?M.emit(e.key,e):O()},$=a((()=>({"--menu-width":V.menuWidth}))),M=y("cascaderKeydown"),q=C(),z=m(V,"show",T);l(j,a((()=>V.checkAbleLevel))),l(x,M);const D=t(""),G=a((()=>w(V.value)&&V.value?V.value:k(V.value)&&V.value.length?V.value.map((e=>S(e)?e[V.labelKey]:e)).join(" / "):V.editPlaceholder)),H=a({get:()=>z.value?D.value:w(V.value)?V.value:k(V.value)?V.value.reduce(((e,a,l)=>0===l?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){D.value=e,le(void 0,e)}});function J(e){T("focus",e)}function O(){z.value||(z.value=!0,D.value="",le())}async function Q(){var e;z.value=!1,null==(e=X.value)||e.blur()}const X=t();g(X,(e=>{var a;if(!z.value)return;const l=e;if(!l.target)return Q();!function(e){let a=!1,l=e;for(;l;){if(l.id===q){a=!0;break}l=l.parentElement}return a}(l.target)?Q():null==(a=X.value)||a.focus()}));const Y=t(),Z=t(),ee=t(),ae=t(null);l(A,ae),l(U,a((()=>V.value)));const le=b((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(K(V.search)&&V.search({...o,isLeaf:!0}));ae.value=o;const e=await(K(V.search)&&V.search(o,a));Z.value=S(e)||k(e)?e:o}finally{ae.value=null,await r(),null==(l=Y.value)||l.syncPosition()}}),400),te=e=>{ee.value=e};return o((()=>V.show),(e=>{e&&(ee.value={})})),L({getWidth(){var e;if(!X.value)return 0;const a=null==(e=X.value)?void 0:e.$el;return a?a.clientWidth:void 0},setCursor(e){ee.value=e}}),(a,l)=>(u(),n(s(_),{class:"search-cascader",trigger:"manual",show:s(z),"onUpdate:show":l[1]||(l[1]=e=>i(z)?z.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(s($)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Y},{trigger:v((()=>[d(s(P),{class:"search-cascader__input",placeholder:s(z)?s(G):e.placeholder,clearable:e.clearable,onClear:E,value:s(H),"onUpdate:value":l[0]||(l[0]=e=>i(H)?H.value=e:null),ref_key:"inputRef",ref:X,onFocus:J,onClick:I,onKeydown:R},null,8,["placeholder","clearable","value"])])),default:v((()=>[p("section",{id:s(q)},[d(s(W),{style:c(s(B)),"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(le),onChangeCursor:te,"current-node":Z.value,"cursor-node":ee.value},{empty:v((()=>[f(a.$slots,"empty")])),_:3},8,["style","label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","width"]))}});export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,withModifiers as
|
|
1
|
+
import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,onBeforeUnmount as l,withModifiers as c}from"vue";import{traverse as s}from"../../../../shared/utils/index.js";import{Reload as u,ChevronForward as i}from"@vicons/ionicons5";import{NOOP as d}from"@vue/shared";import{useVirtualList as p}from"@vueuse/core";import{isArray as f,isFunction as v,isNumber as y,isEqual as h,isString as m}from"lodash-es";import{NCheckbox as N}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as C,InjectionSearchCascaderCheckAbleLevel as b,InjectionKeyboardEventBus as k}from"../constants/index.js";const K=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:r}){const o=n((()=>e.options)),{list:s,containerProps:v,wrapperProps:K}=p(o,{itemHeight:32,overscan:5}),_=a(g),x=a(C),A=a(b),S=a(k),j=n((()=>y(A.value)&&A.value<=e.level));function w(e){return Object.keys(e).length<=0}function I(r){return e.cursorNode==r}function O(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(f(x.value))return h(o(t,e.valueKey),o(x.value,e.valueKey));if(m(x.value)){const r=x.value.split("/").map((e=>e.trim()));return h(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function R(e){const r=v.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}function T(t,n){if("ArrowUp"===t){if(w(e.cursorNode))return;const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=0===t?o.value.length-1:t-1,n=o.value[e];r("changeCursor",n),R(e+3)}}if("ArrowRight"===t){if(w(e.cursorNode))return;r("nodeClick",{type:"search",node:e.cursorNode}),r("changeCursor",{})}if("ArrowDown"===t){if(w(e.cursorNode))return r("changeCursor",o.value[0]);const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=t>=o.value.length-1?0:t+1,n=o.value[e];r("changeCursor",n),R(e+1)}}if("ArrowLeft"===t&&e.activeNodes.length){const t=e.activeNodes.slice(-1);r("changeCursor",t[0])}"Enter"===t&&function(){if(!w(e.cursorNode))Reflect.set(n,"stopCapture",!0),j.value?r("nodeClick",{type:"update",node:e.cursorNode}):r("nodeClick",{type:"search",node:e.cursorNode})}()}return l((()=>{S.off(T)})),S.on(T),()=>t("div",{class:"search-cascader__optionWrapper",ref:v.ref,style:v.style,onScroll:v.onScroll},[t("div",{style:K.value.style},[s.value.map((o=>{return t("div",{class:["search-cascader__option",{"search-cascader__option--active":(n=o.data,(null==(a=e.activeNodes)?void 0:a.includes(n))||I(o.data))}],onClick:()=>r("nodeClick",{type:"search",node:o.data}),title:o.data[e.labelKey]},[t("div",{class:"search-cascader__optionText"},[j.value?t(N,{style:{marginRight:"8px"},checked:O(o.data),onClick:c(d,["stop"]),onUpdateChecked:e=>e&&function(e){r("nodeClick",{type:"update",node:e})}(o.data)},null):null,t("span",{class:{"search-cascader__optionText--active":O(o.data)}},[o.data[e.labelKey]])]),_.value===o.data?t(u,{class:"rotate"},null):o.data.isLeaf?null:t(i,null,null)]);var n,a}))])])}}),_=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:n,emit:a}){const l=r([]);function c(r,o){return t(K,{level:o+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:l.value,onNodeClick:e=>a("nodeClick",e),onChangeCursor:e=>a("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return s(r,((r,o)=>{e.currentNode===r&&(t=!0,o())}),["children"]),t}function i(){var r,t;if(!f(e.options)||!e.currentNode)return[];const o=[e.options];let n=e.options;for(l.value.length=0;f(n);){const r=n.find(u);if(!r)break;l.value.push(r),n=r[e.childKey],o.push(n)}if(e.cursorNode){const n=o.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(n>=0&&!(null==(t=null==(r=e.cursorNode)?void 0:r.children)?void 0:t.length)){const e=o.slice(0,n+1);return l.value.splice(n,o.length),e}}return o}return()=>t("section",{class:"search-cascader__menuWrapper"},[f(e.options)&&e.options.length?e.currentNode?i().map(c):c(e.options,0):t("section",{class:"search-cascader__emptyWrapper"},[v(n.empty)?n.empty():t("section",null,[o("empty")])])])}});export{_ as SearchMenu};
|
|
@@ -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};
|