@lm_fe/components_m 0.1.201 → 0.2.2
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 +0 -0
- package/dist/BaseEditPanel/BaseEditPanelFormFC.d.ts +3 -0
- package/dist/BaseEditPanel/PanelWithChildFC.d.ts +10 -15
- package/dist/BaseList/index.d.ts +2 -2
- package/dist/BaseList/methods/index.d.ts +1 -4
- package/dist/BaseListOld/methods/index.d.ts +1 -5
- package/dist/BaseModalForm/DynamicForm.d.ts +0 -24
- package/dist/BaseModalForm/PatientList/index.d.ts +2 -2
- package/dist/BaseModalForm/index.d.ts +2 -2
- package/dist/BusinessComponents/BloodPressure/index.d.ts +2 -1
- package/dist/BusinessComponents/DiagnosisListInduced/index.d.ts +2 -1
- package/dist/BusinessComponents/DiagnosisListv2/template/index.d.ts +1 -2
- package/dist/BusinessComponents/HighriskGrade/index.d.ts +1 -1
- package/dist/BusinessComponents/HighriskSign/index.d.ts +1 -1
- package/dist/BusinessComponents/InspectionResultTextarea/utils.d.ts +0 -8
- package/dist/BusinessComponents/LaborProcess/index.d.ts +3 -3
- package/dist/BusinessComponents/NurseChildren/index.d.ts +5 -5
- package/dist/BusinessComponents/NurseChildren2/index.d.ts +1 -2
- package/dist/BusinessComponents/NursingFetusv2/index.d.ts +1 -2
- package/dist/BusinessComponents/NursingFetusv3/index.d.ts +3 -3
- package/dist/BusinessComponents/PregnancyHistory/config/index-table.d.ts +1 -1
- package/dist/BusinessComponents/ResultTextarea/index copy.d.ts +13 -0
- package/dist/BusinessComponents/ResultTextarea/index.d.ts +1 -1
- package/dist/BusinessComponents/ResultTextarea/utils.d.ts +0 -8
- package/dist/BusinessComponents/TemplateTexDeathclassification1/index.d.ts +2 -1
- package/dist/BusinessComponents/TemplateTextareav2/components/TemplateSelect.d.ts +2 -1
- package/dist/BusinessComponents/TreatmentProgram/TreatmentProgramTable/index.d.ts +3 -4
- package/dist/BusinessComponents/UltrosoundResultTextarea/utils.d.ts +0 -8
- package/dist/ConfigComponents/CheckboxWithInput/index.d.ts +2 -1
- package/dist/ConfigComponents/InputWithRange/index.d.ts +2 -1
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/default.d.ts +3 -3
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/gysy.d.ts +11 -11
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/indx.d.ts +14 -14
- package/dist/ConfigComponents/NeonatalScaleExamination/table.d.ts +4 -4
- package/dist/ConfigComponents/NormalNursingTable/table.d.ts +1 -1
- package/dist/ConfigComponents/ObserMagnesiumsulphateTable/table.d.ts +3 -3
- package/dist/ConfigComponents/PastDeliveryNursingTable/table.d.ts +6 -6
- package/dist/ConfigComponents/PreDeliverNursingTable/table/default.d.ts +4 -4
- package/dist/ConfigComponents/SpecialNursingTable/table.d.ts +2 -2
- package/dist/FU_components/ArrayInput/index copy.d.ts +4 -0
- package/dist/FU_components/ArrayInput/index.d.ts +1 -4
- package/dist/FU_components/ArrayInput/types.d.ts +8 -9
- package/dist/FU_components/ArrayPanel/Display.d.ts +0 -1
- package/dist/FU_components/ArrayPanel/Inner.d.ts +5 -3
- package/dist/FU_components/CommonFormTabs/index.d.ts +1 -1
- package/dist/FU_components/CommonFormTabs/types.d.ts +4 -2
- package/dist/FU_components/CommonFormTabs/utils.d.ts +4 -0
- package/dist/FU_components/DateRange/index copy.d.ts +7 -0
- package/dist/FU_components/DateRange/index.d.ts +1 -7
- package/dist/FU_components/DateTimeInput/Inner.d.ts +2 -0
- package/dist/FU_components/DateTimeInput/index.d.ts +3 -1
- package/dist/FU_components/FormSection/FormSectionForm.d.ts +4 -0
- package/dist/FU_components/FormSection/RenderFormSectionComponent.d.ts +3 -3
- package/dist/FU_components/FormSection/form_control.d.ts +9 -0
- package/dist/FU_components/FormSection/helper.d.ts +7 -7
- package/dist/FU_components/FormSection/types.d.ts +4 -1
- package/dist/FU_components/FormSection/use_chrono.d.ts +17 -2
- package/dist/FU_components/HbvdnaInput/index.d.ts +2 -1
- package/dist/FU_components/HighriskGradeColorSpan/index.d.ts +1 -1
- package/dist/FU_components/IdNOButton/index copy.d.ts +1 -1
- package/dist/FU_components/MchcDriverStatus/Inner.d.ts +1 -1
- package/dist/FU_components/MyAutoComplete/index copy.d.ts +4 -0
- package/dist/FU_components/MyAutoComplete/index.d.ts +1 -4
- package/dist/FU_components/MyAutoComplete/types.d.ts +1 -1
- package/dist/FU_components/MyBaseList/methods/index.d.ts +1 -1
- package/dist/FU_components/MyBaseTable/strategies.d.ts +0 -5
- package/dist/FU_components/MyButton/{index.d.ts → index copy.d.ts } +1 -1
- package/dist/FU_components/MyEditTable/Inner.d.ts +4 -0
- package/dist/FU_components/MyEditTable/index.d.ts +2 -19
- package/dist/FU_components/MyEditTable/types.d.ts +16 -0
- package/dist/FU_components/MyReferralOrganizationSelect/index.d.ts +1 -1
- package/dist/FU_components/MySearchSelect/index.d.ts +2 -1
- package/dist/FU_components/MySelect/index.d.ts +1 -8
- package/dist/FU_components/MySelect/types.d.ts +3 -5
- package/dist/FU_components/OkButton/index.d.ts +2 -7
- package/dist/FU_components/PressureInput/index.d.ts +4 -0
- package/dist/FU_components/ResultTextarea/index.d.ts +19 -0
- package/dist/FU_components/index.d.ts +1 -3
- package/dist/FU_components/types.d.ts +1 -12
- package/dist/GeneralComponents/CaseTemplete/Inner.d.ts +4 -1
- package/dist/GeneralComponents/CheckboxGroupObject/index.d.ts +1 -1
- package/dist/GeneralComponents/CheckboxWithInput_gold/components.d.ts +200 -45
- package/dist/GeneralComponents/CheckboxWithInput_gold/index.d.ts +1 -5
- package/dist/GeneralComponents/CheckboxWithInput_gold/types.d.ts +1 -1
- package/dist/GeneralComponents/CheckboxWithInput_gold/utils.d.ts +0 -4
- package/dist/GeneralComponents/CustomIcon/index.d.ts +0 -1
- package/dist/GeneralComponents/DatePicker/Inner.d.ts +1 -1
- package/dist/GeneralComponents/DatePicker/index.d.ts +2 -2
- package/dist/GeneralComponents/DatePicker/utils.d.ts +35 -0
- package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy.d.ts +3 -24
- package/dist/GeneralComponents/EditInTable/components.d.ts +1 -1
- package/dist/GeneralComponents/EditInTable/index.d.ts +2 -2
- package/dist/GeneralComponents/EditInTable/utils.d.ts +6 -1
- package/dist/GeneralComponents/ImageUploadPreview/Inner.d.ts +2 -1
- package/dist/GeneralComponents/ImageUploadPreview/index.d.ts +2 -1
- package/dist/GeneralComponents/InputNumber/index.d.ts +4 -4
- package/dist/GeneralComponents/MobileEditor/Inner.d.ts +6 -9
- package/dist/GeneralComponents/MobileEditor/index.d.ts +3 -2
- package/dist/GeneralComponents/UploadFile/index.d.ts +9 -1
- package/dist/GeneralComponents/UploadFileUrlEdit/index.d.ts +2 -1
- package/dist/MyForm/components/Base/CheckboxWithExtra.d.ts +3 -2
- package/dist/MyForm/components/MyButton/index.d.ts +1 -1
- package/dist/MyForm/components/MySelect/DefaultSelect.d.ts +3 -2
- package/dist/MyForm/components/MyTable/index.d.ts +1 -1
- package/dist/MyForm/components/MyTable/index2.d.ts +1 -1
- package/dist/MyForm/components/_MyFormComponent.d.ts +252 -0
- package/dist/MyForm/components/business/NormalButton/index.d.ts +1 -1
- package/dist/MyForm/components/business/PdProcedure/config/table.d.ts +1 -1
- package/dist/MyForm/components/business/PregnancyHistory/MyForm_Business_PregnancyHistory.d.ts +1 -1
- package/dist/MyForm/components/business/PregnancyHistory/config.d.ts +37 -9
- package/dist/MyForm/components/business/TextareaWithBtn/index.d.ts +4 -7
- package/dist/MyForm/form_new.d.ts +20 -1
- package/dist/a_chunks/.root.js +73 -130
- package/dist/a_chunks/.root10.js +124 -319
- package/dist/a_chunks/.root100.js +22 -393
- package/dist/a_chunks/.root101.js +83 -987
- package/dist/a_chunks/.root102.js +13 -278
- package/dist/a_chunks/.root103.js +83 -128
- package/dist/a_chunks/.root104.js +64 -277
- package/dist/a_chunks/.root105.js +133 -492
- package/dist/a_chunks/.root106.js +45 -106
- package/dist/a_chunks/.root107.js +43 -210
- package/dist/a_chunks/.root108.js +71 -174
- package/dist/a_chunks/.root109.js +38 -910
- package/dist/a_chunks/.root11.js +55 -89
- package/dist/a_chunks/.root110.js +46 -939
- package/dist/a_chunks/.root111.js +188 -169
- package/dist/a_chunks/.root112.js +16 -414
- package/dist/a_chunks/.root113.js +23 -257
- package/dist/a_chunks/.root114.js +1994 -163
- package/dist/a_chunks/.root115.js +33 -343
- package/dist/a_chunks/.root116.js +67 -150
- package/dist/a_chunks/.root117.js +35 -124
- package/dist/a_chunks/.root118.js +49 -523
- package/dist/a_chunks/.root119.js +58 -580
- package/dist/a_chunks/.root12.js +133 -117
- package/dist/a_chunks/.root120.js +62 -277
- package/dist/a_chunks/.root121.js +75 -512
- package/dist/a_chunks/.root122.js +75 -633
- package/dist/a_chunks/.root123.js +29 -669
- package/dist/a_chunks/.root124.js +57 -273
- package/dist/a_chunks/.root125.js +107 -200
- package/dist/a_chunks/.root126.js +179 -81
- package/dist/a_chunks/.root127.js +85 -792
- package/dist/a_chunks/.root128.js +108 -260
- package/dist/a_chunks/.root129.js +172 -1085
- package/dist/a_chunks/.root13.js +284 -119
- package/dist/a_chunks/.root130.js +200 -532
- package/dist/a_chunks/.root131.js +2 -242
- package/dist/a_chunks/.root132.js +185 -131
- package/dist/a_chunks/.root133.js +324 -180
- package/dist/a_chunks/.root134.js +13 -409
- package/dist/a_chunks/.root135.js +160 -1135
- package/dist/a_chunks/.root14.js +251 -316
- package/dist/a_chunks/.root15.js +58 -266
- package/dist/a_chunks/.root16.js +74 -240
- package/dist/a_chunks/.root17.js +38 -127
- package/dist/a_chunks/.root18.js +87 -148
- package/dist/a_chunks/.root19.js +182 -109
- package/dist/a_chunks/.root2.js +97 -163
- package/dist/a_chunks/.root20.js +237 -157
- package/dist/a_chunks/.root21.js +19 -258
- package/dist/a_chunks/.root22.js +20 -320
- package/dist/a_chunks/.root23.js +197 -20
- package/dist/a_chunks/.root24.js +190 -89
- package/dist/a_chunks/.root25.js +73 -196
- package/dist/a_chunks/.root26.js +102 -257
- package/dist/a_chunks/.root27.js +69 -142
- package/dist/a_chunks/.root28.js +79 -375
- package/dist/a_chunks/.root29.js +34 -542
- package/dist/a_chunks/.root3.js +103 -170
- package/dist/a_chunks/.root30.js +19 -2226
- package/dist/a_chunks/.root31.js +50 -279
- package/dist/a_chunks/.root32.js +49 -81
- package/dist/a_chunks/.root33.js +49 -84
- package/dist/a_chunks/.root34.js +200 -223
- package/dist/a_chunks/.root35.js +112 -279
- package/dist/a_chunks/.root36.js +136 -158
- package/dist/a_chunks/.root37.js +19 -146
- package/dist/a_chunks/.root38.js +101 -78
- package/dist/a_chunks/.root39.js +581 -34
- package/dist/a_chunks/.root4.js +635 -1056
- package/dist/a_chunks/.root40.js +25 -268
- package/dist/a_chunks/.root41.js +312 -18
- package/dist/a_chunks/.root42.js +138 -192
- package/dist/a_chunks/.root43.js +62 -128
- package/dist/a_chunks/.root44.js +264 -36
- package/dist/a_chunks/.root45.js +257 -20
- package/dist/a_chunks/.root46.js +2274 -47
- package/dist/a_chunks/.root47.js +490 -227
- package/dist/a_chunks/.root48.js +190 -160
- package/dist/a_chunks/.root49.js +168 -74
- package/dist/a_chunks/.root5.js +98 -349
- package/dist/a_chunks/.root50.js +146 -190
- package/dist/a_chunks/.root51.js +379 -305
- package/dist/a_chunks/.root52.js +237 -101
- package/dist/a_chunks/.root53.js +29 -296
- package/dist/a_chunks/.root54.js +69 -23
- package/dist/a_chunks/.root55.js +71 -660
- package/dist/a_chunks/.root56.js +356 -3320
- package/dist/a_chunks/.root57.js +206 -544
- package/dist/a_chunks/.root58.js +275 -185
- package/dist/a_chunks/.root59.js +150 -147
- package/dist/a_chunks/.root6.js +1003 -188
- package/dist/a_chunks/.root60.js +132 -882
- package/dist/a_chunks/.root61.js +288 -98
- package/dist/a_chunks/.root62.js +293 -213
- package/dist/a_chunks/.root63.js +299 -294
- package/dist/a_chunks/.root64.js +295 -450
- package/dist/a_chunks/.root65.js +924 -458
- package/dist/a_chunks/.root66.js +58 -1053
- package/dist/a_chunks/.root67.js +813 -255
- package/dist/a_chunks/.root68.js +892 -192
- package/dist/a_chunks/.root69.js +80 -1070
- package/dist/a_chunks/.root7.js +269 -725
- package/dist/a_chunks/.root70.js +333 -830
- package/dist/a_chunks/.root71.js +155 -376
- package/dist/a_chunks/.root72.js +245 -204
- package/dist/a_chunks/.root73.js +76 -148
- package/dist/a_chunks/.root74.js +54 -344
- package/dist/a_chunks/.root75.js +610 -530
- package/dist/a_chunks/.root76.js +34 -533
- package/dist/a_chunks/.root77.js +140 -328
- package/dist/a_chunks/.root78.js +472 -286
- package/dist/a_chunks/.root79.js +199 -2292
- package/dist/a_chunks/.root8.js +128 -163
- package/dist/a_chunks/.root80.js +476 -168
- package/dist/a_chunks/.root81.js +530 -535
- package/dist/a_chunks/.root82.js +565 -248
- package/dist/a_chunks/.root83.js +126 -242
- package/dist/a_chunks/.root84.js +14 -241
- package/dist/a_chunks/.root85.js +678 -430
- package/dist/a_chunks/.root86.js +161 -317
- package/dist/a_chunks/.root87.js +455 -88
- package/dist/a_chunks/.root88.js +175 -98
- package/dist/a_chunks/.root89.js +63 -237
- package/dist/a_chunks/.root9.js +93 -675
- package/dist/a_chunks/.root90.js +108 -348
- package/dist/a_chunks/.root91.js +331 -124
- package/dist/a_chunks/.root92.js +438 -139
- package/dist/a_chunks/.root93.js +102 -434
- package/dist/a_chunks/.root94.js +821 -346
- package/dist/a_chunks/.root95.js +39 -214
- package/dist/a_chunks/.root96.js +57 -349
- package/dist/a_chunks/.root97.js +274 -510
- package/dist/a_chunks/.root98.js +22 -366
- package/dist/a_chunks/.root99.js +57 -375
- package/dist/a_chunks/Inner.js +149 -262
- package/dist/a_chunks/TableEditableCell.js +12 -10
- package/dist/a_chunks/TemplateModal.js +111 -132
- package/dist/a_chunks/deathclassification.js +17 -33
- package/dist/a_chunks/index.js +2930 -5417
- package/dist/a_chunks/index2.js +2 -4
- package/dist/doctor-end/index.d.ts +0 -2
- package/dist/index.d.ts +3 -8
- package/dist/index.js +8 -77
- package/dist/layout/header.d.ts +0 -1
- package/dist/modals/index.d.ts +1 -16
- package/dist/modals/meta.d.ts +1 -16
- package/dist/newly-component/hepatitis-new-baby/components/Form.d.ts +2 -1
- package/dist/newly-component/hepatitis-new-baby/index.d.ts +2 -1
- package/dist/selects/NormalSelect/index.d.ts +1 -1
- package/dist/selects/SelectWithNo/index copy.d.ts +2 -0
- package/dist/selects/SelectWithNo/index.d.ts +2 -2
- package/dist/utils/InterceptComponent.d.ts +1 -0
- package/dist/utils/dictionary.d.ts +2 -13
- package/dist/utils/format.d.ts +4 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/useMarshal.d.ts +3 -3
- package/dist/utils/utils.d.ts +0 -4
- package/package.json +32 -19
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/BaseTable.d.ts +0 -5
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/EditInTableNoForm.d.ts +0 -51
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/index.d.ts +0 -49
- package/dist/ConfigComponents/OxytocinNursingTable/index.d.ts +0 -2
- package/dist/ConfigComponents/OxytocinNursingTable/table/default.d.ts +0 -255
- package/dist/ConfigComponents/OxytocinNursingTable/table/gysy.d.ts +0 -234
- package/dist/ConfigComponents/OxytocinNursingTable/table/index.d.ts +0 -3
- package/dist/ConfigComponents/RevertEditInTable/index.d.ts +0 -1
- package/dist/FU_components/FormSection/utils.d.ts +0 -81
- package/dist/FU_components/SimpleForm/components/TabForm/index.d.ts +0 -14
- package/dist/FU_components/SimpleForm/components/extra/Custom.d.ts +0 -5
- package/dist/FU_components/SimpleForm/components/extra/SimpleSelect.d.ts +0 -6
- package/dist/FU_components/SimpleForm/index.d.ts +0 -45
- package/dist/FU_components/SimpleForm/types/help.d.ts +0 -3
- package/dist/FU_components/SimpleForm/types/lmTypes.d.ts +0 -85
- package/dist/FU_components/SimpleForm/types/metaTypes.d.ts +0 -28
- package/dist/GeneralComponents/CustomFormField/index.d.ts +0 -12
- package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy 2.d.ts +0 -24
- package/dist/GeneralComponents/IconSelect/index.d.ts +0 -5
- package/dist/GeneralComponents/SelectTable/index.d.ts +0 -44
- package/dist/GeneralComponents/SoDiaoEditor/config.d.ts +0 -44
- package/dist/GeneralComponents/SoDiaoEditor/index.d.ts +0 -11
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root100.js.map +0 -1
- package/dist/a_chunks/.root101.js.map +0 -1
- package/dist/a_chunks/.root102.js.map +0 -1
- package/dist/a_chunks/.root103.js.map +0 -1
- package/dist/a_chunks/.root104.js.map +0 -1
- package/dist/a_chunks/.root105.js.map +0 -1
- package/dist/a_chunks/.root106.js.map +0 -1
- package/dist/a_chunks/.root107.js.map +0 -1
- package/dist/a_chunks/.root108.js.map +0 -1
- package/dist/a_chunks/.root109.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root110.js.map +0 -1
- package/dist/a_chunks/.root111.js.map +0 -1
- package/dist/a_chunks/.root112.js.map +0 -1
- package/dist/a_chunks/.root113.js.map +0 -1
- package/dist/a_chunks/.root114.js.map +0 -1
- package/dist/a_chunks/.root115.js.map +0 -1
- package/dist/a_chunks/.root116.js.map +0 -1
- package/dist/a_chunks/.root117.js.map +0 -1
- package/dist/a_chunks/.root118.js.map +0 -1
- package/dist/a_chunks/.root119.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root120.js.map +0 -1
- package/dist/a_chunks/.root121.js.map +0 -1
- package/dist/a_chunks/.root122.js.map +0 -1
- package/dist/a_chunks/.root123.js.map +0 -1
- package/dist/a_chunks/.root124.js.map +0 -1
- package/dist/a_chunks/.root125.js.map +0 -1
- package/dist/a_chunks/.root126.js.map +0 -1
- package/dist/a_chunks/.root127.js.map +0 -1
- package/dist/a_chunks/.root128.js.map +0 -1
- package/dist/a_chunks/.root129.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root130.js.map +0 -1
- package/dist/a_chunks/.root131.js.map +0 -1
- package/dist/a_chunks/.root132.js.map +0 -1
- package/dist/a_chunks/.root133.js.map +0 -1
- package/dist/a_chunks/.root134.js.map +0 -1
- package/dist/a_chunks/.root135.js.map +0 -1
- package/dist/a_chunks/.root136.js +0 -507
- package/dist/a_chunks/.root136.js.map +0 -1
- package/dist/a_chunks/.root137.js +0 -570
- package/dist/a_chunks/.root137.js.map +0 -1
- package/dist/a_chunks/.root138.js +0 -197
- package/dist/a_chunks/.root138.js.map +0 -1
- package/dist/a_chunks/.root139.js +0 -903
- package/dist/a_chunks/.root139.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root140.js +0 -267
- package/dist/a_chunks/.root140.js.map +0 -1
- package/dist/a_chunks/.root141.js +0 -179
- package/dist/a_chunks/.root141.js.map +0 -1
- package/dist/a_chunks/.root142.js +0 -114
- package/dist/a_chunks/.root142.js.map +0 -1
- package/dist/a_chunks/.root143.js +0 -133
- package/dist/a_chunks/.root143.js.map +0 -1
- package/dist/a_chunks/.root144.js +0 -351
- package/dist/a_chunks/.root144.js.map +0 -1
- package/dist/a_chunks/.root145.js +0 -99
- package/dist/a_chunks/.root145.js.map +0 -1
- package/dist/a_chunks/.root146.js +0 -136
- package/dist/a_chunks/.root146.js.map +0 -1
- package/dist/a_chunks/.root147.js +0 -445
- package/dist/a_chunks/.root147.js.map +0 -1
- package/dist/a_chunks/.root148.js +0 -618
- package/dist/a_chunks/.root148.js.map +0 -1
- package/dist/a_chunks/.root149.js +0 -329
- package/dist/a_chunks/.root149.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root150.js +0 -381
- package/dist/a_chunks/.root150.js.map +0 -1
- package/dist/a_chunks/.root151.js +0 -299
- package/dist/a_chunks/.root151.js.map +0 -1
- package/dist/a_chunks/.root152.js +0 -105
- package/dist/a_chunks/.root152.js.map +0 -1
- package/dist/a_chunks/.root153.js +0 -117
- package/dist/a_chunks/.root153.js.map +0 -1
- package/dist/a_chunks/.root154.js +0 -101
- package/dist/a_chunks/.root154.js.map +0 -1
- package/dist/a_chunks/.root155.js +0 -279
- package/dist/a_chunks/.root155.js.map +0 -1
- package/dist/a_chunks/.root156.js +0 -91
- package/dist/a_chunks/.root156.js.map +0 -1
- package/dist/a_chunks/.root157.js +0 -154
- package/dist/a_chunks/.root157.js.map +0 -1
- package/dist/a_chunks/.root158.js +0 -213
- package/dist/a_chunks/.root158.js.map +0 -1
- package/dist/a_chunks/.root159.js +0 -122
- package/dist/a_chunks/.root159.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root160.js +0 -123
- package/dist/a_chunks/.root160.js.map +0 -1
- package/dist/a_chunks/.root161.js +0 -45
- package/dist/a_chunks/.root161.js.map +0 -1
- package/dist/a_chunks/.root162.js +0 -46
- package/dist/a_chunks/.root162.js.map +0 -1
- package/dist/a_chunks/.root163.js +0 -77
- package/dist/a_chunks/.root163.js.map +0 -1
- package/dist/a_chunks/.root164.js +0 -206
- package/dist/a_chunks/.root164.js.map +0 -1
- package/dist/a_chunks/.root165.js +0 -108
- package/dist/a_chunks/.root165.js.map +0 -1
- package/dist/a_chunks/.root166.js +0 -108
- package/dist/a_chunks/.root166.js.map +0 -1
- package/dist/a_chunks/.root167.js +0 -2074
- package/dist/a_chunks/.root167.js.map +0 -1
- package/dist/a_chunks/.root168.js +0 -112
- package/dist/a_chunks/.root168.js.map +0 -1
- package/dist/a_chunks/.root169.js +0 -147
- package/dist/a_chunks/.root169.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root170.js +0 -114
- package/dist/a_chunks/.root170.js.map +0 -1
- package/dist/a_chunks/.root171.js +0 -59
- package/dist/a_chunks/.root171.js.map +0 -1
- package/dist/a_chunks/.root172.js +0 -69
- package/dist/a_chunks/.root172.js.map +0 -1
- package/dist/a_chunks/.root173.js +0 -146
- package/dist/a_chunks/.root173.js.map +0 -1
- package/dist/a_chunks/.root174.js +0 -112
- package/dist/a_chunks/.root174.js.map +0 -1
- package/dist/a_chunks/.root175.js +0 -113
- package/dist/a_chunks/.root175.js.map +0 -1
- package/dist/a_chunks/.root176.js +0 -109
- package/dist/a_chunks/.root176.js.map +0 -1
- package/dist/a_chunks/.root177.js +0 -129
- package/dist/a_chunks/.root177.js.map +0 -1
- package/dist/a_chunks/.root178.js +0 -182
- package/dist/a_chunks/.root178.js.map +0 -1
- package/dist/a_chunks/.root179.js +0 -253
- package/dist/a_chunks/.root179.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root180.js +0 -458
- package/dist/a_chunks/.root180.js.map +0 -1
- package/dist/a_chunks/.root181.js +0 -1511
- package/dist/a_chunks/.root181.js.map +0 -1
- package/dist/a_chunks/.root182.js +0 -91
- package/dist/a_chunks/.root182.js.map +0 -1
- package/dist/a_chunks/.root183.js +0 -115
- package/dist/a_chunks/.root183.js.map +0 -1
- package/dist/a_chunks/.root184.js +0 -1202
- package/dist/a_chunks/.root184.js.map +0 -1
- package/dist/a_chunks/.root185.js +0 -83
- package/dist/a_chunks/.root185.js.map +0 -1
- package/dist/a_chunks/.root186.js +0 -267
- package/dist/a_chunks/.root186.js.map +0 -1
- package/dist/a_chunks/.root187.js +0 -18
- package/dist/a_chunks/.root187.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root26.js.map +0 -1
- package/dist/a_chunks/.root27.js.map +0 -1
- package/dist/a_chunks/.root28.js.map +0 -1
- package/dist/a_chunks/.root29.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root30.js.map +0 -1
- package/dist/a_chunks/.root31.js.map +0 -1
- package/dist/a_chunks/.root32.js.map +0 -1
- package/dist/a_chunks/.root33.js.map +0 -1
- package/dist/a_chunks/.root34.js.map +0 -1
- package/dist/a_chunks/.root35.js.map +0 -1
- package/dist/a_chunks/.root36.js.map +0 -1
- package/dist/a_chunks/.root37.js.map +0 -1
- package/dist/a_chunks/.root38.js.map +0 -1
- package/dist/a_chunks/.root39.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root40.js.map +0 -1
- package/dist/a_chunks/.root41.js.map +0 -1
- package/dist/a_chunks/.root42.js.map +0 -1
- package/dist/a_chunks/.root43.js.map +0 -1
- package/dist/a_chunks/.root44.js.map +0 -1
- package/dist/a_chunks/.root45.js.map +0 -1
- package/dist/a_chunks/.root46.js.map +0 -1
- package/dist/a_chunks/.root47.js.map +0 -1
- package/dist/a_chunks/.root48.js.map +0 -1
- package/dist/a_chunks/.root49.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root50.js.map +0 -1
- package/dist/a_chunks/.root51.js.map +0 -1
- package/dist/a_chunks/.root52.js.map +0 -1
- package/dist/a_chunks/.root53.js.map +0 -1
- package/dist/a_chunks/.root54.js.map +0 -1
- package/dist/a_chunks/.root55.js.map +0 -1
- package/dist/a_chunks/.root56.js.map +0 -1
- package/dist/a_chunks/.root57.js.map +0 -1
- package/dist/a_chunks/.root58.js.map +0 -1
- package/dist/a_chunks/.root59.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root60.js.map +0 -1
- package/dist/a_chunks/.root61.js.map +0 -1
- package/dist/a_chunks/.root62.js.map +0 -1
- package/dist/a_chunks/.root63.js.map +0 -1
- package/dist/a_chunks/.root64.js.map +0 -1
- package/dist/a_chunks/.root65.js.map +0 -1
- package/dist/a_chunks/.root66.js.map +0 -1
- package/dist/a_chunks/.root67.js.map +0 -1
- package/dist/a_chunks/.root68.js.map +0 -1
- package/dist/a_chunks/.root69.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root70.js.map +0 -1
- package/dist/a_chunks/.root71.js.map +0 -1
- package/dist/a_chunks/.root72.js.map +0 -1
- package/dist/a_chunks/.root73.js.map +0 -1
- package/dist/a_chunks/.root74.js.map +0 -1
- package/dist/a_chunks/.root75.js.map +0 -1
- package/dist/a_chunks/.root76.js.map +0 -1
- package/dist/a_chunks/.root77.js.map +0 -1
- package/dist/a_chunks/.root78.js.map +0 -1
- package/dist/a_chunks/.root79.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root80.js.map +0 -1
- package/dist/a_chunks/.root81.js.map +0 -1
- package/dist/a_chunks/.root82.js.map +0 -1
- package/dist/a_chunks/.root83.js.map +0 -1
- package/dist/a_chunks/.root84.js.map +0 -1
- package/dist/a_chunks/.root85.js.map +0 -1
- package/dist/a_chunks/.root86.js.map +0 -1
- package/dist/a_chunks/.root87.js.map +0 -1
- package/dist/a_chunks/.root88.js.map +0 -1
- package/dist/a_chunks/.root89.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/.root90.js.map +0 -1
- package/dist/a_chunks/.root91.js.map +0 -1
- package/dist/a_chunks/.root92.js.map +0 -1
- package/dist/a_chunks/.root93.js.map +0 -1
- package/dist/a_chunks/.root94.js.map +0 -1
- package/dist/a_chunks/.root95.js.map +0 -1
- package/dist/a_chunks/.root96.js.map +0 -1
- package/dist/a_chunks/.root97.js.map +0 -1
- package/dist/a_chunks/.root98.js.map +0 -1
- package/dist/a_chunks/.root99.js.map +0 -1
- package/dist/a_chunks/Inner.js.map +0 -1
- package/dist/a_chunks/TableEditableCell.js.map +0 -1
- package/dist/a_chunks/TemplateModal.js.map +0 -1
- package/dist/a_chunks/_commonjsHelpers.js +0 -22
- package/dist/a_chunks/_commonjsHelpers.js.map +0 -1
- package/dist/a_chunks/common-table-item.js +0 -771
- package/dist/a_chunks/common-table-item.js.map +0 -1
- package/dist/a_chunks/data.js +0 -570
- package/dist/a_chunks/data.js.map +0 -1
- package/dist/a_chunks/deathclassification.js.map +0 -1
- package/dist/a_chunks/func.js +0 -277
- package/dist/a_chunks/func.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/a_chunks/index2.js.map +0 -1
- package/dist/a_chunks/index3.js +0 -479
- package/dist/a_chunks/index3.js.map +0 -1
- package/dist/a_chunks/index4.js +0 -119
- package/dist/a_chunks/index4.js.map +0 -1
- package/dist/a_chunks/requestMethods.js +0 -56
- package/dist/a_chunks/requestMethods.js.map +0 -1
- package/dist/curve/components/BmiCanvas/index.d.ts +0 -29
- package/dist/curve/components/FetusCanvas/config.d.ts +0 -3
- package/dist/curve/components/FetusCanvas/index.d.ts +0 -26
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +0 -9
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +0 -3
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +0 -84
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +0 -28
- package/dist/curve/components/Pregnogram/index.d.ts +0 -19
- package/dist/curve/components/api.d.ts +0 -23
- package/dist/curve/components-new/BmiCanvas/index.d.ts +0 -22
- package/dist/curve/components-new/FetusCanvas/config.d.ts +0 -3
- package/dist/curve/components-new/FetusCanvas/index.d.ts +0 -19
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +0 -9
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +0 -3
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +0 -84
- package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +0 -21
- package/dist/curve/components-new/Pregnogram/index.d.ts +0 -13
- package/dist/curve/data.d.ts +0 -120
- package/dist/curve/func.d.ts +0 -9
- package/dist/curve/index.d.ts +0 -5
- package/dist/curve/intro-steps.d.ts +0 -7
- package/dist/doctor-end/DiagReminder_copy/index.d.ts +0 -3
- package/dist/doctor-end/ScarredUterus/index.d.ts +0 -15
- package/dist/doctor-end/SyphilisManagement/index.d.ts +0 -15
- package/dist/doctor-end/Thrombus/index.d.ts +0 -22
- package/dist/doctor-end/high-risk-warn/add-diagnoses/add-diagnoses.d.ts +0 -11
- package/dist/doctor-end/high-risk-warn/high-risk-warn.d.ts +0 -15
- package/dist/doctor-end/high-risk-warn/util.d.ts +0 -12
- package/dist/doctor-end/message-multiterm-modal/message-multiterm-modal.d.ts +0 -11
- package/dist/index.js.map +0 -1
- package/dist/layout/components/MenuSearch/Inner.d.ts +0 -7
- package/dist/layout/components/MenuSearch/index.d.ts +0 -1
- package/dist/layout/index.d.ts +0 -1
- package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +0 -2
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +0 -22
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
- package/dist/modals/entries/modal_form/index.d.ts +0 -27
- package/dist/modals/entries/print_modal/index.d.ts +0 -3
- package/dist/modals/entries/template_modal3/EditModal.d.ts +0 -1
- package/dist/modals/entries/template_modal3/common.d.ts +0 -4
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +0 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +0 -19
- package/dist/modals/entries/template_modal3/index copy.d.ts +0 -22
- package/dist/modals/entries/template_modal3/index.d.ts +0 -18
- package/dist/modals/entries/template_modal3/methods/index.d.ts +0 -15
- package/dist/modals/entries/template_modal3/types.d.ts +0 -28
- package/dist/modals/entries/test/index.d.ts +0 -6
- package/dist/modals/entries/text_search/index.d.ts +0 -8
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +0 -7
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/index.d.ts +0 -9
- package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +0 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +0 -9
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/components.d.ts +0 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +0 -28
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/utils.d.ts +0 -9
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +0 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +0 -3
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +0 -5
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +0 -6
- package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +0 -8
- package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
- package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/index.d.ts +0 -20
- package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/util.d.ts +0 -66
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +0 -13
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +0 -9
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +0 -13
- package/dist/utils/adapter.d.ts +0 -97
- /package/dist/FU_components/MyBaseList/{_MyBaseList.d.ts → _MyBaseList copy.d.ts} +0 -0
package/dist/a_chunks/.root39.js
CHANGED
|
@@ -3,47 +3,594 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
|
-
import 'antd
|
|
9
|
-
import
|
|
11
|
+
import { Checkbox } from 'antd';
|
|
12
|
+
import { get, map, isUndefined, isNull, isString, isEmpty, isObject, isArray } from 'lodash';
|
|
10
13
|
import React, { Component } from 'react';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
import { a as styleInject, M as MyComponent, o as isObj, p as convertExtraEditors, q as getObjectFormArray } from './index.js';
|
|
15
|
+
import classnames from 'classnames';
|
|
16
|
+
import { otherOptions } from '@lm_fe/env';
|
|
17
|
+
import '@lm_fe/provoke';
|
|
18
|
+
import '@lm_fe/components';
|
|
19
|
+
import '@lm_fe/utils';
|
|
20
|
+
import 'dayjs';
|
|
21
|
+
import '@lm_fe/service';
|
|
22
|
+
import 'reconnecting-websocket';
|
|
23
|
+
import 'store';
|
|
24
|
+
var css_248z$1 = ".custom-my-form {\n width: 100%;\n padding: 8px;\n margin: 0 auto;\n}\n.custom-my-form #components-select-demo-search-box .code-box-demo .ant-select {\n margin: 0 !important;\n}\n.custom-my-form .custom-my-form {\n width: 100% !important;\n padding: 0;\n}\n.custom-my-form .input-cover {\n font-weight: 600;\n color: #150f55;\n}\n.checkox-with-extra {\n display: flex;\n flex-direction: row;\n min-width: 64px;\n margin-right: 16px;\n}\n.checkox-with-extra .extra-editors {\n display: flex;\n}\n.checkox-with-extra .extra-editors > .extra-editors-label {\n width: 120px;\n padding-right: 10px;\n font-size: smaller;\n text-align: right;\n}\n.checkox-with-extra .extra-editors > .editor {\n width: calc(100% - 60px);\n}\n.checkox-with-extra .extra-editors .ant-input {\n padding-right: 4px;\n padding-left: 4px;\n}\n.checkox-with-extra .ant-checkbox-wrapper {\n display: flex;\n align-items: center;\n}\n.global-issue-input .noborder .ant-select-selector .ant-select-selection-search-input {\n border-bottom: none !important;\n}\n.global-issue-input .noborder .ant-select-selector {\n flex-wrap: nowrap;\n}\n";
|
|
25
|
+
styleInject(css_248z$1);
|
|
26
|
+
var CheckboxWithExtra = /*#__PURE__*/function (_Component) {
|
|
27
|
+
function CheckboxWithExtra() {
|
|
28
|
+
var _this;
|
|
29
|
+
_classCallCheck(this, CheckboxWithExtra);
|
|
30
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
31
|
+
args[_key] = arguments[_key];
|
|
32
|
+
}
|
|
33
|
+
_this = _callSuper(this, CheckboxWithExtra, [].concat(args));
|
|
34
|
+
_defineProperty(_this, "handleChange", function (value, name, index) {
|
|
35
|
+
var _this$props = _this.props,
|
|
36
|
+
checkboxValue = _this$props.checkboxValue,
|
|
37
|
+
editorsValue = _this$props.editorsValue,
|
|
38
|
+
onChange = _this$props.onChange;
|
|
39
|
+
if (name === 'checkboxValue') {
|
|
40
|
+
onChange({
|
|
41
|
+
checkboxValue: value,
|
|
42
|
+
editorsValue: editorsValue
|
|
43
|
+
});
|
|
44
|
+
} else if (name === 'editorValue') {
|
|
45
|
+
var newEditorsValue = editorsValue.map(function (editorValue) {
|
|
46
|
+
return editorValue;
|
|
47
|
+
});
|
|
48
|
+
newEditorsValue[index] = value;
|
|
49
|
+
onChange({
|
|
50
|
+
checkboxValue: checkboxValue,
|
|
51
|
+
editorsValue: newEditorsValue
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(_this, "a", {});
|
|
56
|
+
_defineProperty(_this, "renderExtra", function (editorsValue) {
|
|
57
|
+
var _this$props$editors = _this.props.editors,
|
|
58
|
+
editors = _this$props$editors === void 0 ? [] : _this$props$editors;
|
|
59
|
+
if (!editors || editors.length === 0) return null;
|
|
60
|
+
return editors.map(function (editor, index) {
|
|
61
|
+
if (!editor.input_type) return null;
|
|
62
|
+
var RenderComponent = MyComponent[editor.input_type];
|
|
63
|
+
var style = get(editor, "style") || {
|
|
64
|
+
'min-width': get(editor, "specialStyle.minWidth")
|
|
65
|
+
};
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
key: index,
|
|
68
|
+
className: "extra-editors",
|
|
69
|
+
style: style
|
|
70
|
+
}, editor.label ? /*#__PURE__*/React.createElement("span", {
|
|
71
|
+
className: "extra-editors-label"
|
|
72
|
+
}, editor.label) : null, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: classnames('editor', {
|
|
74
|
+
'global-issue-input': get(editors, '0.isIssue')
|
|
75
|
+
}),
|
|
76
|
+
style: get(editors, '[0]style')
|
|
77
|
+
}, /*#__PURE__*/React.createElement(RenderComponent, _objectSpread(_objectSpread({
|
|
78
|
+
value: editorsValue === null ? null : editorsValue[index]
|
|
79
|
+
}, editor), {}, {
|
|
80
|
+
onChange: function onChange(value) {
|
|
81
|
+
return _this.handleChange(value, 'editorValue', index);
|
|
82
|
+
}
|
|
83
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: "unit"
|
|
85
|
+
}, /*#__PURE__*/React.createElement("span", null, editor.unit)));
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
return _this;
|
|
15
89
|
}
|
|
16
|
-
_inherits(
|
|
17
|
-
return _createClass(
|
|
90
|
+
_inherits(CheckboxWithExtra, _Component);
|
|
91
|
+
return _createClass(CheckboxWithExtra, [{
|
|
18
92
|
key: "render",
|
|
19
93
|
value: function render() {
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
94
|
+
var _this2 = this;
|
|
95
|
+
var _this$props2 = this.props,
|
|
96
|
+
checkboxValue = _this$props2.checkboxValue,
|
|
97
|
+
editorsValue = _this$props2.editorsValue,
|
|
98
|
+
editors = _this$props2.editors;
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: "checkox-with-extra"
|
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: classnames('checkbox', {
|
|
103
|
+
'global-issue-checkbox': get(editors, '0.isIssue') && checkboxValue
|
|
104
|
+
})
|
|
105
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
106
|
+
checked: checkboxValue,
|
|
107
|
+
onChange: function onChange(e) {
|
|
108
|
+
return _this2.handleChange(e.target.checked, 'checkboxValue', -1);
|
|
109
|
+
}
|
|
110
|
+
}, this.props.children)), checkboxValue ? this.renderExtra(editorsValue) : null);
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
}(Component);
|
|
114
|
+
var css_248z = ".custom-checkbox {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n}\n.multiple-checkbox {\n display: flex;\n flex-wrap: wrap;\n}\n.checkbox-input-need-fill-width .checkox-with-extra:first-child {\n float: left;\n}\n.checkbox-input-need-fill-width .checkox-with-extra .extra-editors {\n flex: 1;\n}\n.check-box .ant-checkbox-inner {\n width: 20px;\n height: 20px;\n}\n.check-box .ant-checkbox-inner::after {\n left: 31%;\n}\n";
|
|
115
|
+
styleInject(css_248z);
|
|
116
|
+
|
|
117
|
+
// http://ccs.lian-med.com/zentaopms/www/story-view-777.html
|
|
118
|
+
// 解决 checkbox 为 有 的时候 width 对齐
|
|
119
|
+
var CheckboxInputNeedFillWidth = /*#__PURE__*/function (_Component2) {
|
|
120
|
+
function CheckboxInputNeedFillWidth() {
|
|
121
|
+
var _this3;
|
|
122
|
+
_classCallCheck(this, CheckboxInputNeedFillWidth);
|
|
123
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
124
|
+
args[_key2] = arguments[_key2];
|
|
125
|
+
}
|
|
126
|
+
_this3 = _callSuper(this, CheckboxInputNeedFillWidth, [].concat(args));
|
|
127
|
+
_defineProperty(_this3, "handleChange", function (val, key) {
|
|
128
|
+
var onChange = _this3.props.onChange;
|
|
129
|
+
// 反选问题
|
|
130
|
+
if (!val.checkboxValue) {
|
|
131
|
+
onChange({
|
|
132
|
+
checkboxValue: null,
|
|
133
|
+
editorsValue: ' '
|
|
134
|
+
}, _this3.props.value.key);
|
|
135
|
+
} else {
|
|
136
|
+
onChange({
|
|
137
|
+
checkboxValue: key,
|
|
138
|
+
editorsValue: val.editorsValue
|
|
139
|
+
}, _this3.props.value.key);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return _this3;
|
|
143
|
+
}
|
|
144
|
+
_inherits(CheckboxInputNeedFillWidth, _Component2);
|
|
145
|
+
return _createClass(CheckboxInputNeedFillWidth, [{
|
|
146
|
+
key: "render",
|
|
147
|
+
value: function render() {
|
|
148
|
+
var _this4 = this;
|
|
149
|
+
var _this$props3 = this.props,
|
|
150
|
+
value = _this$props3.value,
|
|
151
|
+
_this$props3$options = _this$props3.options,
|
|
152
|
+
options = _this$props3$options === void 0 ? [] : _this$props3$options,
|
|
153
|
+
_this$props3$editors = _this$props3.editors,
|
|
154
|
+
editors = _this$props3$editors === void 0 ? [] : _this$props3$editors,
|
|
155
|
+
disabled = _this$props3.disabled;
|
|
156
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: "checkbox-input-need-fill-width"
|
|
158
|
+
}, map(options, function (option, key) {
|
|
159
|
+
var editorIndex = editors.findIndex(function (editor) {
|
|
160
|
+
return editor.key === option.value;
|
|
161
|
+
});
|
|
162
|
+
return /*#__PURE__*/React.createElement(CheckboxWithExtra, {
|
|
163
|
+
disabled: disabled,
|
|
164
|
+
key: key,
|
|
165
|
+
onChange: function onChange(val) {
|
|
166
|
+
return _this4.handleChange(val, option.value);
|
|
167
|
+
},
|
|
168
|
+
checkboxValue: value.checkboxValue === option.value,
|
|
169
|
+
editorsValue: value.editorsValue,
|
|
170
|
+
editors: editorIndex !== -1 ? editors[editorIndex].editors : []
|
|
171
|
+
}, option.label);
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
}]);
|
|
175
|
+
}(Component);
|
|
176
|
+
var CustomCheckbox = /*#__PURE__*/function (_Component3) {
|
|
177
|
+
function CustomCheckbox() {
|
|
178
|
+
var _this5;
|
|
179
|
+
_classCallCheck(this, CustomCheckbox);
|
|
180
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
181
|
+
args[_key3] = arguments[_key3];
|
|
182
|
+
}
|
|
183
|
+
_this5 = _callSuper(this, CustomCheckbox, [].concat(args));
|
|
184
|
+
_defineProperty(_this5, "handleChange", function (val, key) {
|
|
185
|
+
var onChange = _this5.props.onChange;
|
|
186
|
+
// 反选问题
|
|
187
|
+
if (!val.checkboxValue) {
|
|
188
|
+
onChange({
|
|
189
|
+
checkboxValue: null,
|
|
190
|
+
editorsValue: ' '
|
|
191
|
+
}, _this5.props.value.key);
|
|
192
|
+
} else {
|
|
193
|
+
onChange({
|
|
194
|
+
checkboxValue: key,
|
|
195
|
+
editorsValue: val.editorsValue
|
|
196
|
+
}, _this5.props.value.key);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
return _this5;
|
|
200
|
+
}
|
|
201
|
+
_inherits(CustomCheckbox, _Component3);
|
|
202
|
+
return _createClass(CustomCheckbox, [{
|
|
203
|
+
key: "render",
|
|
204
|
+
value: function render() {
|
|
205
|
+
var _this6 = this;
|
|
206
|
+
var _this$props4 = this.props,
|
|
207
|
+
value = _this$props4.value,
|
|
208
|
+
_this$props4$options = _this$props4.options,
|
|
209
|
+
options = _this$props4$options === void 0 ? [] : _this$props4$options,
|
|
210
|
+
_this$props4$editors = _this$props4.editors,
|
|
211
|
+
editors = _this$props4$editors === void 0 ? [] : _this$props4$editors,
|
|
212
|
+
disabled = _this$props4.disabled;
|
|
213
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
214
|
+
className: "custom-checkbox"
|
|
215
|
+
}, map(options, function (option, key) {
|
|
216
|
+
var editorIndex = editors.findIndex(function (editor) {
|
|
217
|
+
return editor.key === option.value;
|
|
218
|
+
});
|
|
219
|
+
return /*#__PURE__*/React.createElement(CheckboxWithExtra, {
|
|
220
|
+
disabled: disabled,
|
|
221
|
+
key: key,
|
|
222
|
+
onChange: function onChange(val) {
|
|
223
|
+
return _this6.handleChange(val, option.value);
|
|
224
|
+
},
|
|
225
|
+
checkboxValue: value.checkboxValue === option.value,
|
|
226
|
+
editorsValue: value.editorsValue,
|
|
227
|
+
editors: editorIndex !== -1 ? editors[editorIndex].editors : []
|
|
228
|
+
}, option.label);
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
}]);
|
|
232
|
+
}(Component);
|
|
233
|
+
var GroupCheckbox = /*#__PURE__*/function (_Component4) {
|
|
234
|
+
function GroupCheckbox() {
|
|
235
|
+
var _this7;
|
|
236
|
+
_classCallCheck(this, GroupCheckbox);
|
|
237
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
238
|
+
args[_key4] = arguments[_key4];
|
|
239
|
+
}
|
|
240
|
+
_this7 = _callSuper(this, GroupCheckbox, [].concat(args));
|
|
241
|
+
_defineProperty(_this7, "handleChange", function (val) {
|
|
242
|
+
var _this7$props = _this7.props,
|
|
243
|
+
value = _this7$props.value,
|
|
244
|
+
onChange = _this7$props.onChange,
|
|
245
|
+
_this7$props$radio = _this7$props.radio,
|
|
246
|
+
radio = _this7$props$radio === void 0 ? true : _this7$props$radio;
|
|
247
|
+
if (val.length !== 0) {
|
|
248
|
+
if (radio) {
|
|
249
|
+
// 单选
|
|
250
|
+
if (value.length !== 0) {
|
|
251
|
+
onChange(val.filter(function (v) {
|
|
252
|
+
return v !== value[0];
|
|
253
|
+
}));
|
|
254
|
+
} else {
|
|
255
|
+
onChange(val[0]);
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
onChange(val);
|
|
259
|
+
}
|
|
260
|
+
} else {
|
|
261
|
+
onChange(val);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
return _this7;
|
|
265
|
+
}
|
|
266
|
+
_inherits(GroupCheckbox, _Component4);
|
|
267
|
+
return _createClass(GroupCheckbox, [{
|
|
268
|
+
key: "showIssue",
|
|
269
|
+
value: function showIssue() {
|
|
270
|
+
var _this$props5 = this.props,
|
|
271
|
+
issue = _this$props5.issue,
|
|
272
|
+
value = _this$props5.value;
|
|
273
|
+
var bool = false;
|
|
274
|
+
if (issue) {
|
|
275
|
+
if (value[0] == issue[0]) bool = true;
|
|
276
|
+
}
|
|
277
|
+
return bool;
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
key: "render",
|
|
281
|
+
value: function render() {
|
|
282
|
+
var value = this.props.value;
|
|
283
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
284
|
+
className: classnames({
|
|
285
|
+
'group-issue-checkbox': this.showIssue()
|
|
286
|
+
})
|
|
287
|
+
}, /*#__PURE__*/React.createElement(Checkbox.Group, {
|
|
288
|
+
disabled: this.props.disabled,
|
|
289
|
+
options: this.props.options || [],
|
|
290
|
+
onChange: this.handleChange,
|
|
291
|
+
value: value
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
}]);
|
|
295
|
+
}(Component);
|
|
296
|
+
var NONE = 'none';
|
|
297
|
+
var MultipleCheckbox = /*#__PURE__*/function (_Component5) {
|
|
298
|
+
function MultipleCheckbox() {
|
|
299
|
+
var _this8;
|
|
300
|
+
_classCallCheck(this, MultipleCheckbox);
|
|
301
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
302
|
+
args[_key5] = arguments[_key5];
|
|
303
|
+
}
|
|
304
|
+
_this8 = _callSuper(this, MultipleCheckbox, [].concat(args));
|
|
305
|
+
_defineProperty(_this8, "handleChange", function (val, key) {
|
|
306
|
+
var _this8$props = _this8.props,
|
|
307
|
+
_this8$props$radio = _this8$props.radio,
|
|
308
|
+
radio = _this8$props$radio === void 0 ? true : _this8$props$radio,
|
|
309
|
+
value = _this8$props.value,
|
|
310
|
+
onChange = _this8$props.onChange;
|
|
311
|
+
if (radio) {
|
|
312
|
+
// 单选 循环 将选中值置true,非选中值置为false
|
|
313
|
+
// 选中【无】时会把其他都置为false
|
|
314
|
+
value.forEach(function (item) {
|
|
315
|
+
if (item.key === key) {
|
|
316
|
+
onChange({
|
|
317
|
+
checkboxValue: val.checkboxValue,
|
|
318
|
+
editorsValue: val.editorsValue
|
|
319
|
+
}, item.key);
|
|
320
|
+
} else {
|
|
321
|
+
onChange({
|
|
322
|
+
checkboxValue: false,
|
|
323
|
+
editorsValue: ' '
|
|
324
|
+
}, item.key);
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
} else {
|
|
328
|
+
if (key === NONE) {
|
|
329
|
+
value.forEach(function (item) {
|
|
330
|
+
onChange({
|
|
331
|
+
checkboxValue: false,
|
|
332
|
+
editorsValue: ''
|
|
333
|
+
}, item.key);
|
|
334
|
+
});
|
|
335
|
+
} else {
|
|
336
|
+
onChange(val, key);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
// 判断是否选中无的选项
|
|
341
|
+
_defineProperty(_this8, "isSelectNone", function (value) {
|
|
342
|
+
var flag = true;
|
|
343
|
+
var count = 0;
|
|
344
|
+
for (var i = 0; i < value.length; i++) {
|
|
345
|
+
if (isUndefined(value[i].checkboxValue) || isNull(value[i].checkboxValue)) count++;
|
|
346
|
+
// 有其中一个选中了
|
|
347
|
+
if (value[i].checkboxValue) {
|
|
348
|
+
flag = false;
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
if (count === value.length) flag = undefined;
|
|
353
|
+
return flag;
|
|
354
|
+
});
|
|
355
|
+
// 这这里加入一个无的选项,当选中此选项时,对象下所有都设为空
|
|
356
|
+
_defineProperty(_this8, "renderCheckbox", function () {
|
|
357
|
+
var _this8$props2 = _this8.props,
|
|
358
|
+
value = _this8$props2.value,
|
|
359
|
+
_this8$props2$editors = _this8$props2.editors,
|
|
360
|
+
editors = _this8$props2$editors === void 0 ? [] : _this8$props2$editors,
|
|
361
|
+
disabled = _this8$props2.disabled;
|
|
362
|
+
var renderDOM = [];
|
|
363
|
+
// 加入 无 选项
|
|
364
|
+
renderDOM.push(/*#__PURE__*/React.createElement(CheckboxWithExtra, {
|
|
365
|
+
disabled: disabled,
|
|
366
|
+
key: NONE,
|
|
367
|
+
onChange: function onChange(val) {
|
|
368
|
+
return _this8.handleChange(val, NONE);
|
|
42
369
|
},
|
|
43
|
-
|
|
44
|
-
|
|
370
|
+
checkboxValue: _this8.isSelectNone(value),
|
|
371
|
+
editorsValue: [],
|
|
372
|
+
editors: []
|
|
373
|
+
}, "\u65E0"));
|
|
374
|
+
var _loop = function _loop(i) {
|
|
375
|
+
var index = editors.findIndex(function (editor) {
|
|
376
|
+
return editor.key === value[i].key;
|
|
377
|
+
});
|
|
378
|
+
renderDOM.push(/*#__PURE__*/React.createElement(CheckboxWithExtra, {
|
|
379
|
+
disabled: disabled,
|
|
380
|
+
key: i,
|
|
381
|
+
onChange: function onChange(val) {
|
|
382
|
+
return _this8.handleChange(val, value[i].key);
|
|
383
|
+
},
|
|
384
|
+
checkboxValue: value[i].checkboxValue,
|
|
385
|
+
editorsValue: value[i].editorsValue,
|
|
386
|
+
editors: index !== -1 ? editors[index].editors : []
|
|
387
|
+
}, value[i].label));
|
|
388
|
+
};
|
|
389
|
+
for (var i = 0; i < value.length; i++) {
|
|
390
|
+
_loop(i);
|
|
391
|
+
}
|
|
392
|
+
return renderDOM;
|
|
393
|
+
});
|
|
394
|
+
return _this8;
|
|
395
|
+
}
|
|
396
|
+
_inherits(MultipleCheckbox, _Component5);
|
|
397
|
+
return _createClass(MultipleCheckbox, [{
|
|
398
|
+
key: "render",
|
|
399
|
+
value: function render() {
|
|
400
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
401
|
+
className: "multiple-checkbox"
|
|
402
|
+
}, this.renderCheckbox());
|
|
403
|
+
}
|
|
404
|
+
}]);
|
|
405
|
+
}(Component); // TODO 这个的结构以及判断过于复杂,可以考虑重构
|
|
406
|
+
var MyCheckbox = /*#__PURE__*/function (_Component6) {
|
|
407
|
+
function MyCheckbox() {
|
|
408
|
+
var _this9;
|
|
409
|
+
_classCallCheck(this, MyCheckbox);
|
|
410
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
411
|
+
args[_key6] = arguments[_key6];
|
|
412
|
+
}
|
|
413
|
+
_this9 = _callSuper(this, MyCheckbox, [].concat(args));
|
|
414
|
+
_defineProperty(_this9, "checkbox", {
|
|
415
|
+
"default": function _default(input_props, value, _onChange) {
|
|
416
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
417
|
+
checked: value,
|
|
418
|
+
onChange: function onChange(e) {
|
|
419
|
+
return _onChange(e.target.checked);
|
|
420
|
+
},
|
|
421
|
+
disabled: _this9.props.disabled
|
|
422
|
+
});
|
|
423
|
+
},
|
|
424
|
+
multiple: function multiple(input_props) {
|
|
425
|
+
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
426
|
+
var onChange = arguments.length > 2 ? arguments[2] : undefined;
|
|
427
|
+
var editors = [];
|
|
428
|
+
if (!isObj(value)) {
|
|
429
|
+
value = {};
|
|
430
|
+
}
|
|
431
|
+
var r = input_props.renderData.map(function (item) {
|
|
432
|
+
// 统一输入规范,所以在这个位置提取
|
|
433
|
+
if (item.extraEditors) {
|
|
434
|
+
editors.push(item.extraEditors[0]);
|
|
435
|
+
}
|
|
436
|
+
return {
|
|
437
|
+
checkboxValue: value[item.key],
|
|
438
|
+
editorsValue: item.extraEditors && item.extraEditors[0].editors.length > 1 ? convertExtraEditors(value["".concat(item.key, "Note")]) : [value["".concat(item.key, "Note")]],
|
|
439
|
+
key: item.key,
|
|
440
|
+
label: item.label
|
|
441
|
+
};
|
|
442
|
+
});
|
|
443
|
+
var handleChange = function handleChange(val, key) {
|
|
444
|
+
// 判断editors的数量决定保存为object还是string
|
|
445
|
+
var index = input_props.renderData.findIndex(function (item) {
|
|
446
|
+
return item.key === key;
|
|
447
|
+
});
|
|
448
|
+
if (index === -1) {
|
|
449
|
+
console.error("\u5728renderData\u4E2D\u627E\u4E0D\u5230".concat(key));
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
var newObj = {};
|
|
453
|
+
if (!val.checkboxValue) {
|
|
454
|
+
// 后台目前 使用 “” 保存,会保存不了
|
|
455
|
+
newObj = _defineProperty(_defineProperty({}, key, false), "".concat(key, "Note"), ' ');
|
|
456
|
+
} else {
|
|
457
|
+
newObj = _defineProperty(_defineProperty({}, key, val.checkboxValue), "".concat(key, "Note"), '');
|
|
458
|
+
if (Array.isArray(input_props.renderData[index].extraEditors)) {
|
|
459
|
+
if (input_props.renderData[index].extraEditors[0].editors.length <= 1) {
|
|
460
|
+
newObj["".concat(key, "Note")] = val.editorsValue ? val.editorsValue[0] || ' ' : ' ';
|
|
461
|
+
} else {
|
|
462
|
+
newObj["".concat(key, "Note")] = JSON.stringify(getObjectFormArray(val.editorsValue));
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
onChange(Object.assign(value, newObj));
|
|
467
|
+
};
|
|
468
|
+
return /*#__PURE__*/React.createElement(MultipleCheckbox, {
|
|
469
|
+
disabled: _this9.props.disabled,
|
|
470
|
+
value: r,
|
|
471
|
+
onChange: handleChange,
|
|
472
|
+
radio: input_props.radio,
|
|
473
|
+
editors: editors
|
|
474
|
+
});
|
|
475
|
+
},
|
|
476
|
+
custom: function custom(input_props, value, onChange) {
|
|
477
|
+
var renderData = input_props.renderData,
|
|
478
|
+
_input_props$radio = input_props.radio,
|
|
479
|
+
radio = _input_props$radio === void 0 ? true : _input_props$radio,
|
|
480
|
+
inputNeedFillWidth = input_props.inputNeedFillWidth;
|
|
481
|
+
var allOptions = isString(renderData[0].options) ? otherOptions[renderData[0].options] : renderData[0].options;
|
|
482
|
+
if (renderData.length !== 1) return /*#__PURE__*/React.createElement("span", null, "custom\u578Bcheckbox\u4E2DrenderData\u957F\u5EA6\u4E3A1");
|
|
483
|
+
var r = {
|
|
484
|
+
checkboxValue: '',
|
|
485
|
+
editorsValue: '',
|
|
486
|
+
key: renderData[0].key,
|
|
487
|
+
options: []
|
|
488
|
+
};
|
|
489
|
+
var keyNote = get(renderData, '0.keyNote') ? get(renderData, '0.keyNote') : "".concat(renderData[0].key, "Note");
|
|
490
|
+
if (value && renderData[0].key in value) {
|
|
491
|
+
r = {
|
|
492
|
+
checkboxValue: get(value, renderData[0].key),
|
|
493
|
+
editorsValue: get(renderData, '0.extraEditors') && !isEmpty(get(renderData, '0.extraEditors.0.editors')) ? convertExtraEditors(get(value, keyNote)) : [get(value, keyNote)],
|
|
494
|
+
key: renderData[0].key
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
var handleChange = function handleChange(val, key) {
|
|
498
|
+
if (!isObject(value)) {
|
|
499
|
+
value = {};
|
|
500
|
+
}
|
|
501
|
+
var index = input_props.renderData.findIndex(function (item) {
|
|
502
|
+
return item.key === key;
|
|
503
|
+
});
|
|
504
|
+
if (index === -1) {
|
|
505
|
+
console.error("\u5728renderData\u4E2D\u627E\u4E0D\u5230".concat(key));
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
var newObj = {};
|
|
509
|
+
// 这里要考虑一个0的情况
|
|
510
|
+
if (val.checkboxValue === false) {
|
|
511
|
+
newObj = _defineProperty(_defineProperty({}, key, false), keyNote, ' ');
|
|
512
|
+
} else {
|
|
513
|
+
newObj = _defineProperty(_defineProperty({}, key, val.checkboxValue), keyNote, ' ');
|
|
514
|
+
if (isArray(input_props.renderData[index].extraEditors)) {
|
|
515
|
+
if (input_props.renderData[index].extraEditors[0] && input_props.renderData[index].extraEditors[0].editors.length <= 1) {
|
|
516
|
+
if (value[key] === val.checkboxValue) {
|
|
517
|
+
newObj[keyNote] = val.editorsValue ? val.editorsValue[0] || '' : '';
|
|
518
|
+
}
|
|
519
|
+
} else {
|
|
520
|
+
newObj[keyNote] = JSON.stringify(getObjectFormArray(val.editorsValue));
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
onChange(newObj);
|
|
525
|
+
};
|
|
526
|
+
return inputNeedFillWidth ? (/*#__PURE__*/React.createElement(CheckboxInputNeedFillWidth, {
|
|
527
|
+
disabled: _this9.props.disabled,
|
|
528
|
+
value: r,
|
|
529
|
+
onChange: handleChange,
|
|
530
|
+
radio: radio,
|
|
531
|
+
options: allOptions,
|
|
532
|
+
editors: renderData[0].extraEditors
|
|
533
|
+
})) : (/*#__PURE__*/React.createElement(CustomCheckbox, {
|
|
534
|
+
disabled: _this9.props.disabled,
|
|
535
|
+
value: r,
|
|
536
|
+
onChange: handleChange,
|
|
537
|
+
radio: radio,
|
|
538
|
+
options: allOptions,
|
|
539
|
+
editors: renderData[0].extraEditors
|
|
540
|
+
}));
|
|
541
|
+
},
|
|
542
|
+
group: function group(input_props, value, onChange) {
|
|
543
|
+
var _input_props$options = input_props.options,
|
|
544
|
+
options = _input_props$options === void 0 ? [] : _input_props$options,
|
|
545
|
+
_input_props$radio2 = input_props.radio,
|
|
546
|
+
radio = _input_props$radio2 === void 0 ? true : _input_props$radio2,
|
|
547
|
+
issue = input_props.issue;
|
|
548
|
+
var allOptions = isString(options) ? otherOptions[options] : options;
|
|
549
|
+
// 现在只做单选的,多选格式确定下来再做
|
|
550
|
+
var handleChange = function handleChange(val) {
|
|
551
|
+
if (val.length && val.length !== 0) {
|
|
552
|
+
if (radio) {
|
|
553
|
+
onChange(val[0]);
|
|
554
|
+
} else {
|
|
555
|
+
console.warn('group型checkbox多选尚未处理');
|
|
556
|
+
// onChange(val[0]);
|
|
557
|
+
}
|
|
558
|
+
} else {
|
|
559
|
+
onChange(val);
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
return /*#__PURE__*/React.createElement(GroupCheckbox, {
|
|
563
|
+
disabled: _this9.props.disabled,
|
|
564
|
+
value: [value],
|
|
565
|
+
onChange: function onChange(val) {
|
|
566
|
+
return handleChange(val);
|
|
567
|
+
},
|
|
568
|
+
radio: radio,
|
|
569
|
+
options: allOptions,
|
|
570
|
+
editors: [],
|
|
571
|
+
issue: issue
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
_defineProperty(_this9, "renderCheckbox", function () {
|
|
576
|
+
var _this9$props = _this9.props,
|
|
577
|
+
input_props = _this9$props.input_props,
|
|
578
|
+
value = _this9$props.value,
|
|
579
|
+
onChange = _this9$props.onChange;
|
|
580
|
+
var _input_props$type = input_props.type,
|
|
581
|
+
type = _input_props$type === void 0 ? 'default' : _input_props$type;
|
|
582
|
+
return _this9.checkbox[type || 'default'](input_props, value, onChange);
|
|
583
|
+
});
|
|
584
|
+
return _this9;
|
|
585
|
+
}
|
|
586
|
+
_inherits(MyCheckbox, _Component6);
|
|
587
|
+
return _createClass(MyCheckbox, [{
|
|
588
|
+
key: "render",
|
|
589
|
+
value: function render() {
|
|
590
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
591
|
+
className: "check-box"
|
|
592
|
+
}, this.renderCheckbox());
|
|
45
593
|
}
|
|
46
594
|
}]);
|
|
47
595
|
}(Component);
|
|
48
|
-
export {
|
|
49
|
-
//# sourceMappingURL=.root39.js.map
|
|
596
|
+
export { MyCheckbox as default };
|