cnhis-design-vue 3.1.46-beta.27 → 3.1.46-beta.29

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.
Files changed (54) hide show
  1. package/es/components/form-config/index.d.ts +6 -6
  2. package/es/components/form-config/src/FormConfig.vue.d.ts +6 -6
  3. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -3
  4. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  5. package/es/components/form-render/index.d.ts +3 -3
  6. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  7. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -3
  8. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  9. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  10. package/es/components/form-render/src/types/index.d.ts +1 -7
  11. package/es/components/iho-table/index.d.ts +12 -0
  12. package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
  13. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  14. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  15. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  16. package/es/components/iho-table/src/plugins/index.js +1 -1
  17. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  18. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
  19. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
  20. package/es/components/iho-table/src/types/index.d.ts +2 -1
  21. package/es/components/index.css +1 -1
  22. package/es/components/info-header/index.d.ts +10 -10
  23. package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -10
  24. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -3
  25. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -3
  26. package/es/components/scale-view/index.d.ts +8 -8
  27. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  28. package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +4 -4
  29. package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
  30. package/es/components/scale-view/src/components/formitem/r-radio.d.ts +4 -4
  31. package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
  32. package/es/components/scale-view/src/hooks/use-component.d.ts +16 -16
  33. package/es/components/scale-view/style/index.css +1 -1
  34. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  35. package/es/components/select-person/index.d.ts +105 -3
  36. package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +88 -0
  37. package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
  38. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
  39. package/es/components/select-person/src/SelectPerson.vue.d.ts +105 -1
  40. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  41. package/es/components/select-person/src/types/enums.d.ts +4 -0
  42. package/es/components/select-person/src/types/enums.js +1 -0
  43. package/es/components/select-person/src/utils/index.d.ts +1 -1
  44. package/es/components/select-person/src/utils/index.js +1 -1
  45. package/es/components/select-person/style/index.css +1 -1
  46. package/es/components/shortcut-setter/index.d.ts +3 -3
  47. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -3
  48. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  49. package/es/shared/package.json.js +1 -1
  50. package/es/shared/types/business.d.ts +6 -0
  51. package/es/shared/utils/business.d.ts +6 -1
  52. package/es/shared/utils/business.js +1 -1
  53. package/es/shared/utils/index.js +1 -1
  54. 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("..").FormOperationalConfig[];
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("..").FormOperationalConfig[];
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("..").FormOperationalConfig[];
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("..").FormOperationalConfig[]>;
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("..").FormOperationalConfig[]>;
2744
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
2745
2745
  };
2746
2746
  linebarAutoHidden: {
2747
2747
  type: BooleanConstructor;
@@ -3209,7 +3209,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3209
3209
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3210
3210
  };
3211
3211
  operationalForm: {
3212
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3212
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3213
3213
  };
3214
3214
  linebarAutoHidden: {
3215
3215
  type: BooleanConstructor;
@@ -3488,7 +3488,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3488
3488
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3489
3489
  };
3490
3490
  operationalForm: {
3491
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3491
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3492
3492
  };
3493
3493
  linebarAutoHidden: {
3494
3494
  type: BooleanConstructor;
@@ -3628,7 +3628,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3628
3628
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3629
3629
  };
3630
3630
  operationalForm: {
3631
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3631
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3632
3632
  };
3633
3633
  linebarAutoHidden: {
3634
3634
  type: BooleanConstructor;
@@ -4096,7 +4096,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4096
4096
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
4097
4097
  };
4098
4098
  operationalForm: {
4099
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
4099
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
4100
4100
  };
4101
4101
  linebarAutoHidden: {
4102
4102
  type: BooleanConstructor;
@@ -4292,7 +4292,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4292
4292
  linebarAutoHidden: boolean;
4293
4293
  bordered: string | boolean;
4294
4294
  uniqueCacheData: boolean;
4295
- operationalForm: import("..").FormOperationalConfig[];
4295
+ operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
4296
4296
  }>>>;
4297
4297
  };
4298
4298
  }>> & {
@@ -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/components/form-render").FormOperationalConfig[];
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/components/form-render").FormOperationalConfig[];
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/components/form-render").FormOperationalConfig[];
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/components/form-render").FormOperationalConfig[]>;
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/components/form-render").FormOperationalConfig[]>;
2738
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
2739
2739
  };
2740
2740
  linebarAutoHidden: {
2741
2741
  type: BooleanConstructor;
@@ -3203,7 +3203,7 @@ declare const _default: import("vue").DefineComponent<{
3203
3203
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3204
3204
  };
3205
3205
  operationalForm: {
3206
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3206
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3207
3207
  };
3208
3208
  linebarAutoHidden: {
3209
3209
  type: BooleanConstructor;
@@ -3482,7 +3482,7 @@ declare const _default: import("vue").DefineComponent<{
3482
3482
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3483
3483
  };
3484
3484
  operationalForm: {
3485
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3485
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3486
3486
  };
3487
3487
  linebarAutoHidden: {
3488
3488
  type: BooleanConstructor;
@@ -3622,7 +3622,7 @@ declare const _default: import("vue").DefineComponent<{
3622
3622
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3623
3623
  };
3624
3624
  operationalForm: {
3625
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3625
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3626
3626
  };
3627
3627
  linebarAutoHidden: {
3628
3628
  type: BooleanConstructor;
@@ -4090,7 +4090,7 @@ declare const _default: import("vue").DefineComponent<{
4090
4090
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
4091
4091
  };
4092
4092
  operationalForm: {
4093
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
4093
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
4094
4094
  };
4095
4095
  linebarAutoHidden: {
4096
4096
  type: BooleanConstructor;
@@ -4284,7 +4284,7 @@ declare const _default: import("vue").DefineComponent<{
4284
4284
  linebarAutoHidden: boolean;
4285
4285
  bordered: string | boolean;
4286
4286
  uniqueCacheData: boolean;
4287
- operationalForm: import("../../../../es/components/form-render").FormOperationalConfig[];
4287
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
4288
4288
  }>>>;
4289
4289
  };
4290
4290
  }>> & {
@@ -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/components/form-render").FormOperationalConfig[]>;
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/components/form-render").FormOperationalConfig[]>;
2311
+ type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
2312
2312
  };
2313
2313
  linebarAutoHidden: {
2314
2314
  type: BooleanConstructor;
@@ -2776,7 +2776,7 @@ declare const _default: import("vue").DefineComponent<{
2776
2776
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2777
2777
  };
2778
2778
  operationalForm: {
2779
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
2779
+ type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
2780
2780
  };
2781
2781
  linebarAutoHidden: {
2782
2782
  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("../../../../../../es/components/form-render").FormOperationalConfig[]>;
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("../../../../../../es/components/form-render").FormOperationalConfig[]>;
323
+ type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
324
324
  };
325
325
  linebarAutoHidden: {
326
326
  type: BooleanConstructor;
@@ -788,7 +788,7 @@ declare const _default: import("vue").DefineComponent<{
788
788
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
789
789
  };
790
790
  operationalForm: {
791
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
791
+ type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
792
792
  };
793
793
  linebarAutoHidden: {
794
794
  type: BooleanConstructor;
@@ -1039,11 +1039,11 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
1039
1039
  declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
1040
1040
  form: {
1041
1041
  type: ObjectConstructor;
1042
- default: () => void;
1042
+ default: () => {};
1043
1043
  };
1044
1044
  item: {
1045
1045
  type: ObjectConstructor;
1046
- default: () => void;
1046
+ default: () => {};
1047
1047
  };
1048
1048
  isLock: {
1049
1049
  type: BooleanConstructor;
@@ -1056,11 +1056,11 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
1056
1056
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1057
1057
  form: {
1058
1058
  type: ObjectConstructor;
1059
- default: () => void;
1059
+ default: () => {};
1060
1060
  };
1061
1061
  item: {
1062
1062
  type: ObjectConstructor;
1063
- default: () => void;
1063
+ default: () => {};
1064
1064
  };
1065
1065
  isLock: {
1066
1066
  type: BooleanConstructor;
@@ -1081,11 +1081,11 @@ declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
1081
1081
  declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
1082
1082
  form: {
1083
1083
  type: ObjectConstructor;
1084
- default: () => void;
1084
+ default: () => {};
1085
1085
  };
1086
1086
  item: {
1087
1087
  type: ObjectConstructor;
1088
- default: () => void;
1088
+ default: () => {};
1089
1089
  };
1090
1090
  isLock: {
1091
1091
  type: BooleanConstructor;
@@ -1098,11 +1098,11 @@ declare const CCheckbox: SFCWithInstall<import("vue").DefineComponent<{
1098
1098
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1099
1099
  form: {
1100
1100
  type: ObjectConstructor;
1101
- default: () => void;
1101
+ default: () => {};
1102
1102
  };
1103
1103
  item: {
1104
1104
  type: ObjectConstructor;
1105
- default: () => void;
1105
+ default: () => {};
1106
1106
  };
1107
1107
  isLock: {
1108
1108
  type: BooleanConstructor;
@@ -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)=>{console.log(e,"--val");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};
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};
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  form: {
3
3
  type: ObjectConstructor;
4
- default: () => void;
4
+ default: () => {};
5
5
  };
6
6
  item: {
7
7
  type: ObjectConstructor;
8
- default: () => void;
8
+ default: () => {};
9
9
  };
10
10
  isLock: {
11
11
  type: BooleanConstructor;
@@ -18,11 +18,11 @@ declare const _default: import("vue").DefineComponent<{
18
18
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  form: {
20
20
  type: ObjectConstructor;
21
- default: () => void;
21
+ default: () => {};
22
22
  };
23
23
  item: {
24
24
  type: ObjectConstructor;
25
- default: () => void;
25
+ default: () => {};
26
26
  };
27
27
  isLock: {
28
28
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as s,NCheckbox as u,NInput as a,NIcon as c}from"naive-ui";import{api as n}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import"xe-utils";import"moment";import h from"../../../../../shared/utils/vexutilsExpand.js";import f from"../composables/choose-common.js";var d=e({name:"RCheckbox",components:{NCheckboxGroup:s,NCheckbox:u,NInput:a,NIcon:c},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,u){var a,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:b,handleDefPreSuffix:v,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(a=e.item)?void 0:a.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{let t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");let l=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",l,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,l;let i=o.options||[],r=e.form[e.item.val_key],s=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(i=(null==(l=o.scoreConfigs)?void 0:l.scoreRules)||[]);let u=[];u=s&&h.isJSON(s)?JSON.parse(s):r,e.inputLock?((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;let i,r=[],s=0,u=o.length;for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e<0){x.othersText=i,!r.includes("other")&&r.push("other");continue}let u=null==(l=t[e])?void 0:l.key;r.indexOf(u)<0&&r.push(u)}x.curCheckboxValue=r,V()})(0,o.dbValue||u,i):((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();let i,r=[],s=0,u=o.length,a=t.some((e=>e.importability||"other"===e.key));for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e>0){let o=null==(l=t[e])?void 0:l.key;!r.includes(o)&&r.push(o)}else t.map((e=>{let o=v(e,s,i,!0,a);o&&!r.includes(o)&&r.push(o)}))}x.curCheckboxValue=r,V()})(o,o.dbValue||u,i)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=(e,o)=>l("span",{class:"scale-choice-img-wrap"},[l("img",{class:"show-picture",src:e.imageUrl},null),l("div",{class:"scale-preview-wrap"},[l(c,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();let t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;let l=t.findIndex((e=>e===o));n({images:t,options:{toolbar:!0,initialViewIndex:l<0?0:l}})})(o,e.imageUrl)},null)])]),T=(o,t)=>l("div",{class:"presuffix-wrap",onClick:g},[o.prefix&&l("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),l(i("n-input"),{value:x.optionsPreSuffixObj[o.key],"onUpdate:value":e=>x.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,onInput:()=>((o,t)=>{let l={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);let i=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",i,e.item,{choiceObj:l,isSetObj:C.value})})(o)},null),o.suffix&&l("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>l("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>l("div",{class:"choose-other",onClick:g},[l(i("n-input"),{value:x.othersText,"onUpdate:value":[e=>x.othersText=e,()=>V(!0)],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),P=e=>C.value&&O.value(e);let I=k.value;return()=>{let o;return l(s,{value:x.curCheckboxValue,"onUpdate:value":[e=>x.curCheckboxValue=e,()=>V(!1)],class:["c-choice-wrap","choice-wrap-"+S],disabled:e.isLock},"function"==typeof(t=o=x.curOptions.map(((e,o)=>l(i("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[b.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!r(t)?o:{default:()=>[o]});var t}}});export{d as default};
1
+ import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as s}from"vue";import{NCheckboxGroup as c,NCheckbox as n,NInput as r,NIcon as u}from"naive-ui";import{api as a}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import"xe-utils";import"moment";import h from"../../../../../shared/utils/vexutilsExpand.js";import f from"../composables/choose-common.js";var d=e({name:"RCheckbox",components:{NCheckboxGroup:c,NCheckbox:n,NInput:r,NIcon:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var r,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:v,handleDefPreSuffix:b,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(r=e.item)?void 0:r.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{const t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");const i=JSON.parse(JSON.stringify(x.curCheckboxValue));n.emit("scaleChange",i,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,i;let l=o.options||[];const s=e.form[e.item.val_key],c=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(l=(null==(i=o.scoreConfigs)?void 0:i.scoreRules)||[]);let n=[];n=c&&h.isJSON(c)?JSON.parse(c):s,e.inputLock?((e,o,t)=>{var i;if(x.curOptions=y(t),!t.length||!o||!o.length)return;const l=[];let s,c=0;const n=o.length;for(;c<n;c++){if(s=o[c],"其他"===s){x.othersText=s,x.curCheckboxValue=["other"],!l.includes("other")&&l.push("other");continue}const e=t.findIndex((e=>e.value===s));if(e<0){x.othersText=s,!l.includes("other")&&l.push("other");continue}const n=null==(i=t[e])?void 0:i.key;l.indexOf(n)<0&&l.push(n)}x.curCheckboxValue=l,V()})(0,o.dbValue||n,l):((e,o,t)=>{var i;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();const l=[],s=o.length;let c,n=0;const r=t.some((e=>e.importability||"other"===e.key));for(;n<s;n++){if(c=o[n],"其他"===c){x.othersText=c,x.curCheckboxValue=["other"],!l.includes("other")&&l.push("other");continue}const e=t.findIndex((e=>e.value===c));if(e>0){const o=null==(i=t[e])?void 0:i.key;!l.includes(o)&&l.push(o)}else t.map((e=>{const o=b(e,n,c,!0,r);o&&!l.includes(o)&&l.push(o)}))}x.curCheckboxValue=l,V()})(o,o.dbValue||n,l)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=e=>i("span",{class:"scale-choice-img-wrap"},[i("img",{class:"show-picture",src:e.imageUrl},null),i("div",{class:"scale-preview-wrap"},[i(u,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();const t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;const i=t.findIndex((e=>e===o));a({images:t,options:{toolbar:!0,initialViewIndex:i<0?0:i}})})(o,e.imageUrl)},null)])]),T=o=>i("div",{class:"presuffix-wrap"},[o.prefix&&i("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),i(l("n-input"),{value:x.optionsPreSuffixObj[o.key],"onUpdate:value":e=>x.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,onInput:()=>(o=>{const t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);const i=JSON.parse(JSON.stringify(x.curCheckboxValue));n.emit("scaleChange",i,e.item,{choiceObj:t,isSetObj:C.value})})(o),onClick:g},null),o.suffix&&i("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>i("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>i("div",{class:"choose-other",onClick:g},[i(l("n-input"),{value:x.othersText,"onUpdate:value":[e=>x.othersText=e,()=>V(!0)],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),P=e=>C.value&&O.value(e),I=k.value;return()=>{let o;return i(c,{value:x.curCheckboxValue,"onUpdate:value":[e=>x.curCheckboxValue=e,()=>V(!1)],class:["c-choice-wrap","choice-wrap-"+S],disabled:e.isLock},"function"==typeof(t=o=x.curOptions.map((e=>i("div",{class:"c-choice-radio-div"},[i(l("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[v.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]})]))))||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?o:{default:()=>[o]});var t}}});export{d as default};
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  form: {
3
3
  type: ObjectConstructor;
4
- default: () => void;
4
+ default: () => {};
5
5
  };
6
6
  item: {
7
7
  type: ObjectConstructor;
8
- default: () => void;
8
+ default: () => {};
9
9
  };
10
10
  isLock: {
11
11
  type: BooleanConstructor;
@@ -18,11 +18,11 @@ declare const _default: import("vue").DefineComponent<{
18
18
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  form: {
20
20
  type: ObjectConstructor;
21
- default: () => void;
21
+ default: () => {};
22
22
  };
23
23
  item: {
24
24
  type: ObjectConstructor;
25
- default: () => void;
25
+ default: () => {};
26
26
  };
27
27
  isLock: {
28
28
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as a}from"vue";import{NRadioGroup as r,NRadio as s,NInput as u,NIcon as n}from"naive-ui";import{api as c}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import f from"../composables/choose-common.js";var v=e({name:"RRadio",components:{NRadioGroup:r,NRadio:s,NInput:u,NIcon:n},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,s){var u,v;const d=o({curvalue:"",othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:h,handleDefPreSuffix:b,choiceUseKey:x,isRadioItem:O,showPreSuffix:j,handleOptions:y,stopClick:g}=f(e,d),k=(null==(v=null==(u=e.item)?void 0:u.setting)?void 0:v.chooseStyleSetting)||1,S=o=>{var t;let i=o.options||[],l=e.form[e.item.val_key];"EVALUATE_RADIO_BLOCK"===e.item.type&&(i=(null==(t=o.scoreConfigs)?void 0:t.scoreRules)||[]);((e,o,t)=>{if(d.curOptions=y(t),!t.length||!o)return;if("EVALUATE_RADIO_BLOCK"===e.type)return d.curvalue=o,void P();let i=t.find((e=>e.value===o));if(i)return d.curvalue=i.key,void P();t.find(((e,t)=>{let i=b(e,t,o);return i&&(d.curvalue=i),!!i||!1}))||(d.othersText=o,d.curvalue="other"),P()})(o,o.dbValue||o.setting.defaultValue||l,i)},P=()=>{let o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};s.emit("scaleChange",d.curvalue,e.item,{choiceObj:o,isSetObj:O.value})};t((()=>e.item),(e=>{e&&Object.keys(e).length&&S(e)}),{immediate:!0});const C=()=>{let o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};d.curvalue="other",s.emit("scaleChange","other",e.item,{choiceObj:o,isSetObj:O.value})},T=(e,o)=>i("span",{class:"scale-choice-img-wrap"},[i("img",{class:"show-picture",src:e.imageUrl},null),i("div",{class:"scale-preview-wrap"},[i(n,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();let t=d.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;let i=t.findIndex((e=>e===o));c({images:t,options:{toolbar:!0,initialViewIndex:i<0?0:i}})})(o,e.imageUrl)},null)])]),w=(o,t)=>i("div",{class:"presuffix-wrap",onClick:g},[o.prefix&&i("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),i(l("n-input"),{value:d.optionsPreSuffixObj[o.key],"onUpdate:value":e=>d.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,"on-update:value":t=>((o,t,i)=>{d.optionsPreSuffixObj[t.key]=o,d.curvalue=t.key;let l={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};console.log(d.optionsPreSuffixObj),s.emit("scaleChange",d.curvalue,e.item,{choiceObj:l,isSetObj:O.value})})(t,o)},null),o.suffix&&i("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),L=e=>i("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),U=o=>i("div",{class:"choose-other",onClick:g},[i(l("n-input"),{value:d.othersText,"onUpdate:value":[e=>d.othersText=e,C],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),I=e=>O.value&&j.value(e);let R=x.value;return()=>{let o;return i(r,{value:d.curvalue,"onUpdate:value":[e=>d.curvalue=e,P],class:["c-choice-wrap","choice-wrap-"+k],disabled:e.isLock},"function"==typeof(t=o=d.curOptions.map(((e,o)=>i(l("n-radio"),{key:e.value,value:e[R]},{default:()=>[h.value(e)&&T(e),I(e)&&w(e),!I(e)&&L(e),e.importability&&U(e)]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!a(t)?o:{default:()=>[o]});var t}}});export{v as default};
1
+ import{defineComponent as e,reactive as o,watch as t,createVNode as i,resolveComponent as l,isVNode as s}from"vue";import{NRadioGroup as a,NRadio as r,NInput as n,NIcon as u}from"naive-ui";import{api as c}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import f from"../composables/choose-common.js";var v=e({name:"RRadio",components:{NRadioGroup:a,NRadio:r,NInput:n,NIcon:u},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,r){var n,v;const d=o({curvalue:"",othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:h,handleDefPreSuffix:b,choiceUseKey:x,isRadioItem:O,showPreSuffix:j,handleOptions:y,stopClick:g}=f(e,d),k=(null==(v=null==(n=e.item)?void 0:n.setting)?void 0:v.chooseStyleSetting)||1,S=o=>{var t;let i=o.options||[];const l=e.form[e.item.val_key];"EVALUATE_RADIO_BLOCK"===e.item.type&&(i=(null==(t=o.scoreConfigs)?void 0:t.scoreRules)||[]);((e,o,t)=>{if(d.curOptions=y(t),!t.length||!o)return;if("EVALUATE_RADIO_BLOCK"===e.type)return d.curvalue=o,void P();const i=t.find((e=>e.value===o));if(i)return d.curvalue=i.key,void P();t.find(((e,t)=>{const i=b(e,t,o);return i&&(d.curvalue=i),!!i||!1}))||(d.othersText=o,d.curvalue="other"),P()})(o,o.dbValue||o.setting.defaultValue||l,i)},P=()=>{const o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};r.emit("scaleChange",d.curvalue,e.item,{choiceObj:o,isSetObj:O.value})};t((()=>e.item),(e=>{e&&Object.keys(e).length&&S(e)}),{immediate:!0});const C=()=>{const o={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};d.curvalue="other",r.emit("scaleChange","other",e.item,{choiceObj:o,isSetObj:O.value})},T=e=>i("span",{class:"scale-choice-img-wrap"},[i("img",{class:"show-picture",src:e.imageUrl},null),i("div",{class:"scale-preview-wrap"},[i(u,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();const t=d.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;const i=t.findIndex((e=>e===o));c({images:t,options:{toolbar:!0,initialViewIndex:i<0?0:i}})})(o,e.imageUrl)},null)])]),w=o=>i("div",{class:"presuffix-wrap"},[o.prefix&&i("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),i(l("n-input"),{value:d.optionsPreSuffixObj[o.key],"onUpdate:value":e=>d.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,"on-update:value":t=>((o,t)=>{d.optionsPreSuffixObj[t.key]=o,d.curvalue=t.key;const i={othersText:d.othersText,optionsPreSuffixObj:d.optionsPreSuffixObj};console.log(d.optionsPreSuffixObj),r.emit("scaleChange",d.curvalue,e.item,{choiceObj:i,isSetObj:O.value})})(t,o),onClick:g},null),o.suffix&&i("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),L=e=>i("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),U=o=>i("div",{class:"choose-other",onClick:g},[i(l("n-input"),{value:d.othersText,"onUpdate:value":[e=>d.othersText=e,C],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),I=e=>O.value&&j.value(e),R=x.value;return()=>{let o;return i(a,{value:d.curvalue,"onUpdate:value":[e=>d.curvalue=e,P],class:["c-choice-wrap","choice-wrap-"+k],disabled:e.isLock},"function"==typeof(t=o=d.curOptions.map((e=>i("div",{class:"c-choice-radio-div"},[i(l("n-radio"),{key:e.value,value:e[R]},{default:()=>[h.value(e)&&T(e),I(e)&&w(e),!I(e)&&L(e),e.importability&&U(e)]})]))))||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?o:{default:()=>[o]});var t}}});export{v as default};
@@ -64,11 +64,11 @@ export declare const componentMap: {
64
64
  RADIO_BLOCK: import("vue").ShallowRef<import("vue").DefineComponent<{
65
65
  form: {
66
66
  type: ObjectConstructor;
67
- default: () => void;
67
+ default: () => {};
68
68
  };
69
69
  item: {
70
70
  type: ObjectConstructor;
71
- default: () => void;
71
+ default: () => {};
72
72
  };
73
73
  isLock: {
74
74
  type: BooleanConstructor;
@@ -81,11 +81,11 @@ export declare const componentMap: {
81
81
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
82
82
  form: {
83
83
  type: ObjectConstructor;
84
- default: () => void;
84
+ default: () => {};
85
85
  };
86
86
  item: {
87
87
  type: ObjectConstructor;
88
- default: () => void;
88
+ default: () => {};
89
89
  };
90
90
  isLock: {
91
91
  type: BooleanConstructor;
@@ -106,11 +106,11 @@ export declare const componentMap: {
106
106
  CHECKBOX_BLOCK: import("vue").ShallowRef<import("vue").DefineComponent<{
107
107
  form: {
108
108
  type: ObjectConstructor;
109
- default: () => void;
109
+ default: () => {};
110
110
  };
111
111
  item: {
112
112
  type: ObjectConstructor;
113
- default: () => void;
113
+ default: () => {};
114
114
  };
115
115
  isLock: {
116
116
  type: BooleanConstructor;
@@ -123,11 +123,11 @@ export declare const componentMap: {
123
123
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
124
124
  form: {
125
125
  type: ObjectConstructor;
126
- default: () => void;
126
+ default: () => {};
127
127
  };
128
128
  item: {
129
129
  type: ObjectConstructor;
130
- default: () => void;
130
+ default: () => {};
131
131
  };
132
132
  isLock: {
133
133
  type: BooleanConstructor;
@@ -1455,11 +1455,11 @@ export declare const componentMap: {
1455
1455
  EVALUATE_RADIO_BLOCK: import("vue").ShallowRef<import("vue").DefineComponent<{
1456
1456
  form: {
1457
1457
  type: ObjectConstructor;
1458
- default: () => void;
1458
+ default: () => {};
1459
1459
  };
1460
1460
  item: {
1461
1461
  type: ObjectConstructor;
1462
- default: () => void;
1462
+ default: () => {};
1463
1463
  };
1464
1464
  isLock: {
1465
1465
  type: BooleanConstructor;
@@ -1472,11 +1472,11 @@ export declare const componentMap: {
1472
1472
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1473
1473
  form: {
1474
1474
  type: ObjectConstructor;
1475
- default: () => void;
1475
+ default: () => {};
1476
1476
  };
1477
1477
  item: {
1478
1478
  type: ObjectConstructor;
1479
- default: () => void;
1479
+ default: () => {};
1480
1480
  };
1481
1481
  isLock: {
1482
1482
  type: BooleanConstructor;
@@ -1497,11 +1497,11 @@ export declare const componentMap: {
1497
1497
  EVALUATE_CHECKBOX_BLOCK: import("vue").ShallowRef<import("vue").DefineComponent<{
1498
1498
  form: {
1499
1499
  type: ObjectConstructor;
1500
- default: () => void;
1500
+ default: () => {};
1501
1501
  };
1502
1502
  item: {
1503
1503
  type: ObjectConstructor;
1504
- default: () => void;
1504
+ default: () => {};
1505
1505
  };
1506
1506
  isLock: {
1507
1507
  type: BooleanConstructor;
@@ -1514,11 +1514,11 @@ export declare const componentMap: {
1514
1514
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1515
1515
  form: {
1516
1516
  type: ObjectConstructor;
1517
- default: () => void;
1517
+ default: () => {};
1518
1518
  };
1519
1519
  item: {
1520
1520
  type: ObjectConstructor;
1521
- default: () => void;
1521
+ default: () => {};
1522
1522
  };
1523
1523
  isLock: {
1524
1524
  type: BooleanConstructor;