cnhis-design-vue 3.3.3-beta.7 → 3.3.3-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue.d.ts +18 -16
- package/es/components/audio-sdk/src/Index.vue2.js +40 -5
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +6 -6
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +67 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +67 -2
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +28 -3
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +138 -15
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +35 -6
- package/es/components/button-print/src/utils/print.d.ts +7 -5
- package/es/components/button-print/src/utils/print.js +183 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/callback/src/components/render/popupMaps.d.ts +18 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +555 -10
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +555 -10
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +555 -10
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +555 -10
- package/es/components/date-picker/src/DatePicker.vue2.js +8 -1
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/field-editor/index.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +18 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -5
- package/es/components/field-set/src/FieldSet.vue.d.ts +43 -6
- package/es/components/field-set/src/FieldSet.vue2.js +118 -69
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +6 -5
- package/es/components/field-set/src/components/table-row.vue2.js +21 -6
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/src/types/index.d.ts +3 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +102 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +102 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +63 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +9 -2
- package/es/components/form-config/src/constants/index.d.ts +31 -1
- package/es/components/form-config/src/constants/index.js +150 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +53 -6
- package/es/components/form-config/src/hooks/useLocale.d.ts +6 -0
- package/es/components/form-config/src/hooks/useLocale.js +34 -0
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/form-render/index.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +18 -0
- package/es/components/form-render/src/FormRender.vue2.js +5 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +17 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +4 -2
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
- package/es/components/form-render/src/components/renderer/searchCascade.js +3 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +15 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +2 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +902 -99
- package/es/components/iho-chat/src/Index.vue.d.ts +902 -99
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +181 -8
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +51 -41
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +66 -6
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +158 -57
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +329 -15
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +21 -19
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +235 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +298 -279
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +51 -5
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +3 -3
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +48 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +34 -27
- package/es/components/iho-chat/src/components/ImageLightbox.vue.d.ts +104 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue.js +6 -0
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +307 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +53 -6
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +3 -3
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +93 -30
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +348 -144
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +24 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +38 -25
- package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +51 -4
- package/es/components/iho-chat/src/hooks/useData.js +2 -7
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +160 -0
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +78 -11
- package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
- package/es/components/iho-chat/src/types/index.d.ts +37 -1
- package/es/components/iho-chat/src/utils/emoji.d.ts +1 -1
- package/es/components/iho-chat/src/utils/emoji.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +4 -3
- package/es/components/iho-chat/src/utils/index.js +33 -39
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +8 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +5 -2
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +2 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/info-header/index.d.ts +41 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +56 -22
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +66 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +69 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +45 -3
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -4
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +12 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +12 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
- package/es/components/select-person/src/SelectPerson.vue.js +6 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +795 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +25 -2
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +543 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +32 -10
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +255 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +79 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +256 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +92 -6
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +512 -4
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +554 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +17 -7
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +5 -5
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +25 -7
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/baseOptions.js +8 -1
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +5 -0
- package/es/components/table-filter/src/types/enums.js +7 -2
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +16 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +20 -31
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +205 -78
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +35 -4
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +78 -11
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +16 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +81 -10
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +3 -3
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +6 -5
@@ -84,6 +84,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
84
84
|
businessFormatter: {
|
85
85
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
86
86
|
};
|
87
|
+
nominalAge: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
default: boolean;
|
90
|
+
};
|
87
91
|
schema: {
|
88
92
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
89
93
|
[key: symbol]: any;
|
@@ -256,6 +260,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
256
260
|
type: BooleanConstructor;
|
257
261
|
};
|
258
262
|
lazyRender: BooleanConstructor;
|
263
|
+
linebreaksToTitle: BooleanConstructor;
|
259
264
|
dialogFn: {};
|
260
265
|
}, {
|
261
266
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -288,6 +293,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
288
293
|
businessFormatter: {
|
289
294
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
290
295
|
};
|
296
|
+
nominalAge: {
|
297
|
+
type: BooleanConstructor;
|
298
|
+
default: boolean;
|
299
|
+
};
|
291
300
|
schema: {
|
292
301
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
293
302
|
[key: symbol]: any;
|
@@ -460,6 +469,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
460
469
|
type: BooleanConstructor;
|
461
470
|
};
|
462
471
|
lazyRender: BooleanConstructor;
|
472
|
+
linebreaksToTitle: BooleanConstructor;
|
463
473
|
dialogFn: {};
|
464
474
|
}>> & {
|
465
475
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -637,6 +647,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
637
647
|
feedbackType: "default" | "tooltip";
|
638
648
|
fixMemoLeak: boolean;
|
639
649
|
lazyRender: boolean;
|
650
|
+
linebreaksToTitle: boolean;
|
640
651
|
dialogFn: any;
|
641
652
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
642
653
|
[key: symbol]: any;
|
@@ -853,6 +864,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
853
864
|
businessFormatter: {
|
854
865
|
type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
|
855
866
|
};
|
867
|
+
nominalAge: {
|
868
|
+
type: BooleanConstructor;
|
869
|
+
default: boolean;
|
870
|
+
};
|
856
871
|
schema: {
|
857
872
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
858
873
|
[key: symbol]: any;
|
@@ -1025,6 +1040,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1025
1040
|
type: BooleanConstructor;
|
1026
1041
|
};
|
1027
1042
|
lazyRender: BooleanConstructor;
|
1043
|
+
linebreaksToTitle: BooleanConstructor;
|
1028
1044
|
dialogFn: {};
|
1029
1045
|
}>> & {
|
1030
1046
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
@@ -1059,6 +1075,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
1059
1075
|
feedbackType: "default" | "tooltip";
|
1060
1076
|
fixMemoLeak: boolean;
|
1061
1077
|
lazyRender: boolean;
|
1078
|
+
linebreaksToTitle: boolean;
|
1079
|
+
nominalAge: boolean;
|
1062
1080
|
operationalFormInit: boolean;
|
1063
1081
|
incrementalRender: boolean;
|
1064
1082
|
}>;
|
@@ -217,8 +217,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
217
|
}
|
218
218
|
}()
|
219
219
|
}, {
|
220
|
-
value:
|
221
|
-
|
220
|
+
value: function() {
|
221
|
+
var _a, _b, _c;
|
222
|
+
try {
|
223
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
|
224
|
+
} catch (e) {
|
225
|
+
return "\u5206";
|
226
|
+
}
|
227
|
+
}(),
|
228
|
+
text: function() {
|
229
|
+
var _a, _b, _c;
|
230
|
+
try {
|
231
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
|
232
|
+
} catch (e) {
|
233
|
+
return "\u5206";
|
234
|
+
}
|
235
|
+
}()
|
222
236
|
}, {
|
223
237
|
value: function() {
|
224
238
|
var _a, _b, _c;
|
@@ -92,12 +92,16 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
popoverRef: import("vue").Ref<any>;
|
93
93
|
englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
|
94
94
|
keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
|
95
|
+
numberPanelRef: import("vue").Ref<import("./src/types").KeyboardInstance | undefined>;
|
95
96
|
currentValue: import("vue").Ref<any>;
|
97
|
+
draggableInstance: null;
|
96
98
|
_style: import("vue").ComputedRef<string> | undefined;
|
97
99
|
init: () => import("vue").ComputedRef<string> | undefined;
|
98
100
|
keydown: (key: string | number) => void;
|
99
101
|
onChange: (value: number) => void;
|
100
102
|
select: () => void;
|
103
|
+
setPosition: (position: import("@vueuse/core").Position) => void;
|
104
|
+
getPosition: () => import("@vueuse/core").Position;
|
101
105
|
NPopover: any;
|
102
106
|
NInputNumber: any;
|
103
107
|
NIcon: any;
|
@@ -185,6 +189,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
185
189
|
denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
|
186
190
|
keyboardRef: import("vue").Ref<HTMLElement | null>;
|
187
191
|
inputRef: any;
|
192
|
+
draggableInstance: null;
|
188
193
|
style: import("vue").ComputedRef<string> | undefined;
|
189
194
|
init: () => import("vue").ComputedRef<string> | undefined;
|
190
195
|
setFocus: () => Promise<void>;
|
@@ -196,6 +201,9 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
196
201
|
calculateFraction: () => void;
|
197
202
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
198
203
|
setInputValueStatus: () => void;
|
204
|
+
safeEval: (expression: string) => number;
|
205
|
+
setPosition: (position: import("@vueuse/core").Position) => void;
|
206
|
+
getPosition: () => import("@vueuse/core").Position;
|
199
207
|
NIcon: any;
|
200
208
|
NSpace: any;
|
201
209
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -341,3 +349,4 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
341
349
|
moveOffset: import("@vueuse/core").Position;
|
342
350
|
}>>;
|
343
351
|
export default Keyboard;
|
352
|
+
export type { KeyboardInstance } from './src/types';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { Position } from '@vueuse/core';
|
3
|
+
import type { KeyboardInstance } from './types';
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
4
5
|
mode: {
|
5
6
|
type: PropType<"number" | "day" | "dose" | "english">;
|
@@ -93,12 +94,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
93
94
|
popoverRef: import("vue").Ref<any>;
|
94
95
|
englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
|
95
96
|
keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
|
97
|
+
numberPanelRef: import("vue").Ref<KeyboardInstance | undefined>;
|
96
98
|
currentValue: import("vue").Ref<any>;
|
99
|
+
draggableInstance: null;
|
97
100
|
_style: import("vue").ComputedRef<string> | undefined;
|
98
101
|
init: () => import("vue").ComputedRef<string> | undefined;
|
99
102
|
keydown: (key: string | number) => void;
|
100
103
|
onChange: (value: number) => void;
|
101
104
|
select: () => void;
|
105
|
+
setPosition: (position: Position) => void;
|
106
|
+
getPosition: () => Position;
|
102
107
|
NPopover: any;
|
103
108
|
NInputNumber: any;
|
104
109
|
NIcon: any;
|
@@ -186,6 +191,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
191
|
denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
|
187
192
|
keyboardRef: import("vue").Ref<HTMLElement | null>;
|
188
193
|
inputRef: any;
|
194
|
+
draggableInstance: null;
|
189
195
|
style: import("vue").ComputedRef<string> | undefined;
|
190
196
|
init: () => import("vue").ComputedRef<string> | undefined;
|
191
197
|
setFocus: () => Promise<void>;
|
@@ -197,6 +203,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
203
|
calculateFraction: () => void;
|
198
204
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
199
205
|
setInputValueStatus: () => void;
|
206
|
+
safeEval: (expression: string) => number;
|
207
|
+
setPosition: (position: Position) => void;
|
208
|
+
getPosition: () => Position;
|
200
209
|
NIcon: any;
|
201
210
|
NSpace: any;
|
202
211
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -94,28 +94,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
94
|
const popoverRef = ref();
|
95
95
|
const englishKeyboardRef = ref();
|
96
96
|
const keyboardDragRef = ref();
|
97
|
+
const numberPanelRef = ref();
|
97
98
|
const currentValue = ref();
|
99
|
+
let draggableInstance = null;
|
98
100
|
const _style = init();
|
99
101
|
function init() {
|
100
102
|
if (props.defaultValue) {
|
101
103
|
currentValue.value = props.defaultValue;
|
102
104
|
}
|
103
105
|
if (isDefault.value && props.drag) {
|
104
|
-
|
105
|
-
x,
|
106
|
-
y,
|
107
|
-
style: style2
|
108
|
-
} = useDraggable(englishKeyboardRef, {
|
106
|
+
draggableInstance = useDraggable(englishKeyboardRef, {
|
109
107
|
initialValue: props.positionInitialValue,
|
110
108
|
preventDefault: true,
|
111
109
|
handle: keyboardDragRef,
|
112
|
-
onMove: (position
|
110
|
+
onMove: (position) => {
|
113
111
|
var _a, _b, _c, _d;
|
114
112
|
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
115
113
|
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
116
114
|
}
|
117
115
|
});
|
118
|
-
return
|
116
|
+
return draggableInstance.style;
|
119
117
|
}
|
120
118
|
}
|
121
119
|
function keydown(key) {
|
@@ -134,8 +132,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
132
|
function select() {
|
135
133
|
toSelectInputContent.value = Date.now();
|
136
134
|
}
|
135
|
+
function setPosition(position) {
|
136
|
+
if (draggableInstance) {
|
137
|
+
draggableInstance.x.value = position.x;
|
138
|
+
draggableInstance.y.value = position.y;
|
139
|
+
} else if (numberPanelRef.value) {
|
140
|
+
numberPanelRef.value.setPosition(position);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
function getPosition() {
|
144
|
+
if (draggableInstance) {
|
145
|
+
return {
|
146
|
+
x: draggableInstance.x.value,
|
147
|
+
y: draggableInstance.y.value
|
148
|
+
};
|
149
|
+
} else if (numberPanelRef.value) {
|
150
|
+
return numberPanelRef.value.getPosition();
|
151
|
+
}
|
152
|
+
return {
|
153
|
+
x: 0,
|
154
|
+
y: 0
|
155
|
+
};
|
156
|
+
}
|
137
157
|
expose({
|
138
|
-
select
|
158
|
+
select,
|
159
|
+
setPosition,
|
160
|
+
getPosition
|
139
161
|
});
|
140
162
|
return (_ctx, _cache) => {
|
141
163
|
return !unref(isDefault) && !__props.panel ? (openBlock(), createBlock(unref(NPopover), {
|
@@ -162,7 +184,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
162
184
|
}, null, 8, ["mode", "defaultValue"])]),
|
163
185
|
_: 1
|
164
186
|
}, 8, ["style"])) : !unref(isDefault) && __props.panel ? (openBlock(), createBlock(NumberPanel, mergeProps({
|
165
|
-
key: 1
|
187
|
+
key: 1,
|
188
|
+
ref_key: "numberPanelRef",
|
189
|
+
ref: numberPanelRef
|
166
190
|
}, unref(moveNumberPaneOptions), {
|
167
191
|
style: unref(cssVars)
|
168
192
|
}), null, 16, ["style"])) : (openBlock(), createElementBlock("div", {
|
@@ -81,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
81
|
denominatorValueStatus: Ref<FormValidationStatus>;
|
82
82
|
keyboardRef: Ref<HTMLElement | null>;
|
83
83
|
inputRef: any;
|
84
|
+
draggableInstance: null;
|
84
85
|
style: import("vue").ComputedRef<string> | undefined;
|
85
86
|
init: () => import("vue").ComputedRef<string> | undefined;
|
86
87
|
setFocus: () => Promise<void>;
|
@@ -92,6 +93,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
93
|
calculateFraction: () => void;
|
93
94
|
setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
|
94
95
|
setInputValueStatus: () => void;
|
96
|
+
safeEval: (expression: string) => number;
|
97
|
+
setPosition: (position: Position) => void;
|
98
|
+
getPosition: () => Position;
|
95
99
|
NIcon: any;
|
96
100
|
NSpace: any;
|
97
101
|
ArrowUndoSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
@@ -54,6 +54,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
54
54
|
},
|
55
55
|
emits: ["change"],
|
56
56
|
setup(__props, {
|
57
|
+
expose,
|
57
58
|
emit
|
58
59
|
}) {
|
59
60
|
const props = __props;
|
@@ -76,25 +77,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
76
77
|
const denominatorValueStatus = ref("success");
|
77
78
|
const keyboardRef = ref(null);
|
78
79
|
const inputRef = ref(null);
|
80
|
+
let draggableInstance = null;
|
79
81
|
const style = init();
|
80
82
|
function init() {
|
81
83
|
if (props.defaultValue) {
|
82
84
|
inputValue.value = props.defaultValue.toString();
|
83
85
|
}
|
84
86
|
if (props.drag) {
|
85
|
-
|
86
|
-
x,
|
87
|
-
y,
|
88
|
-
style: style2
|
89
|
-
} = useDraggable(keyboardRef, {
|
87
|
+
draggableInstance = useDraggable(keyboardRef, {
|
90
88
|
initialValue: props.positionInitialValue,
|
91
|
-
onMove: (position
|
89
|
+
onMove: (position) => {
|
92
90
|
var _a, _b, _c, _d;
|
93
91
|
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
94
92
|
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
95
93
|
}
|
96
94
|
});
|
97
|
-
return
|
95
|
+
return draggableInstance.style;
|
98
96
|
}
|
99
97
|
}
|
100
98
|
async function setFocus() {
|
@@ -114,7 +112,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
114
112
|
inputValueStatus.value = "error";
|
115
113
|
return;
|
116
114
|
}
|
117
|
-
|
115
|
+
const result = safeEval(inputValue.value);
|
116
|
+
emit("change", result);
|
118
117
|
setFocus();
|
119
118
|
break;
|
120
119
|
}
|
@@ -134,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
134
133
|
return;
|
135
134
|
keydown("Enter");
|
136
135
|
}
|
137
|
-
async function updateValue(
|
136
|
+
async function updateValue(key) {
|
138
137
|
var _a, _b, _c;
|
139
138
|
const inputRefS = (_c = (_b = (_a = inputRef.value) == null ? void 0 : _a.$childrenRefs) == null ? void 0 : _b.$refs) == null ? void 0 : _c.inputElRef;
|
140
139
|
const {
|
@@ -142,18 +141,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
142
141
|
selectionEnd
|
143
142
|
} = inputRefS;
|
144
143
|
const arr = inputValue.value.split("");
|
145
|
-
if (
|
144
|
+
if (key === "Undo") {
|
146
145
|
const num = selectionStart === selectionEnd ? 1 : selectionEnd - selectionStart;
|
147
146
|
const startIdx = selectionStart === selectionEnd ? selectionStart - 1 : selectionStart;
|
148
147
|
if (inputValue.value && startIdx > -1)
|
149
148
|
arr.splice(startIdx, num);
|
150
149
|
} else {
|
151
|
-
arr.splice(selectionStart, selectionEnd - selectionStart,
|
150
|
+
arr.splice(selectionStart, selectionEnd - selectionStart, key);
|
152
151
|
}
|
153
152
|
inputValue.value = arr.join("");
|
154
153
|
await nextTick();
|
155
154
|
inputRefS.focus();
|
156
|
-
const selectionIdx =
|
155
|
+
const selectionIdx = key === "Undo" ? !selectionStart ? 0 : selectionEnd > selectionStart ? selectionStart : selectionStart - 1 : selectionStart + 1;
|
157
156
|
inputRefS.setSelectionRange(selectionIdx, selectionIdx);
|
158
157
|
setInputValueStatus();
|
159
158
|
}
|
@@ -211,6 +210,40 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
211
210
|
function setInputValueStatus() {
|
212
211
|
inputValueStatus.value = !inputValue.value ? "error" : "success";
|
213
212
|
}
|
213
|
+
function safeEval(expression) {
|
214
|
+
const cleanExpression = expression.replace(/\b0+(\d)/g, "$1").replace(/\b0+\./g, "0.");
|
215
|
+
if (/^\d*\.?\d*$/.test(cleanExpression)) {
|
216
|
+
return parseFloat(cleanExpression) || 0;
|
217
|
+
}
|
218
|
+
try {
|
219
|
+
return new Function("return " + cleanExpression)();
|
220
|
+
} catch (error) {
|
221
|
+
console.error("Expression evaluation error:", error);
|
222
|
+
return 0;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
function setPosition(position) {
|
226
|
+
if (draggableInstance) {
|
227
|
+
draggableInstance.x.value = position.x;
|
228
|
+
draggableInstance.y.value = position.y;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
function getPosition() {
|
232
|
+
if (draggableInstance) {
|
233
|
+
return {
|
234
|
+
x: draggableInstance.x.value,
|
235
|
+
y: draggableInstance.y.value
|
236
|
+
};
|
237
|
+
}
|
238
|
+
return {
|
239
|
+
x: 0,
|
240
|
+
y: 0
|
241
|
+
};
|
242
|
+
}
|
243
|
+
expose({
|
244
|
+
setPosition,
|
245
|
+
getPosition
|
246
|
+
});
|
214
247
|
watch(() => props.value, (value) => inputValue.value = (value || "").toString(), {
|
215
248
|
immediate: true
|
216
249
|
});
|
@@ -238,12 +271,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
238
271
|
class: "margin-offset",
|
239
272
|
"wrap-item": false
|
240
273
|
}, {
|
241
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (
|
274
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key) => {
|
242
275
|
return openBlock(), createElementBlock("span", {
|
243
|
-
key
|
244
|
-
class: normalizeClass(
|
245
|
-
onClick: ($event) => keydown(
|
246
|
-
}, toDisplayString(
|
276
|
+
key,
|
277
|
+
class: normalizeClass(key === "0" ? "is-0" : ""),
|
278
|
+
onClick: ($event) => keydown(key)
|
279
|
+
}, toDisplayString(key), 11, _hoisted_2);
|
247
280
|
}), 128))]),
|
248
281
|
_: 1
|
249
282
|
}), createVNode(unref(NSpace), {
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { Position } from '@vueuse/core';
|
2
|
+
export interface KeyboardInstance {
|
3
|
+
/**
|
4
|
+
* 选择输入内容
|
5
|
+
*/
|
6
|
+
select: () => void;
|
7
|
+
/**
|
8
|
+
* 手动设置键盘位置
|
9
|
+
* @param position 目标位置 { x: number, y: number }
|
10
|
+
*/
|
11
|
+
setPosition: (position: Position) => void;
|
12
|
+
/**
|
13
|
+
* 获取当前键盘位置
|
14
|
+
* @returns 当前位置 { x: number, y: number }
|
15
|
+
*/
|
16
|
+
getPosition: () => Position;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -54,6 +54,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
54
54
|
defaultValue: any;
|
55
55
|
defValueUnit: any;
|
56
56
|
optionSetting: string | undefined;
|
57
|
+
dateShortcuts: any[] | undefined;
|
57
58
|
multiple: boolean;
|
58
59
|
manualMapping: boolean | null | undefined;
|
59
60
|
showWholeOption: boolean | undefined;
|
@@ -77,6 +78,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
77
78
|
accurateSearch: any;
|
78
79
|
extendKey: string;
|
79
80
|
extendType: string;
|
81
|
+
dateShortcuts: any[];
|
80
82
|
}[];
|
81
83
|
getCacheDef: (item: import("..").ISearchType, cacheList: string[]) => string | string[];
|
82
84
|
transformParams: (paramsList: any[]) => any;
|
@@ -56,6 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
56
56
|
defaultValue: any;
|
57
57
|
defValueUnit: any;
|
58
58
|
optionSetting: string | undefined;
|
59
|
+
dateShortcuts: any[] | undefined;
|
59
60
|
multiple: boolean;
|
60
61
|
manualMapping: boolean | null | undefined;
|
61
62
|
showWholeOption: boolean | undefined;
|
@@ -79,6 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
80
|
accurateSearch: any;
|
80
81
|
extendKey: string;
|
81
82
|
extendType: string;
|
83
|
+
dateShortcuts: any[];
|
82
84
|
}[];
|
83
85
|
getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
|
84
86
|
transformParams: (paramsList: any[]) => any;
|
@@ -92,6 +92,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
type: FunctionConstructor;
|
93
93
|
default: () => Promise<{}>;
|
94
94
|
};
|
95
|
+
chunkUploadApiConfig: {
|
96
|
+
type: ObjectConstructor;
|
97
|
+
default: () => {};
|
98
|
+
};
|
95
99
|
fontSizeObj: {
|
96
100
|
type: ObjectConstructor;
|
97
101
|
default: () => {
|
@@ -121,7 +125,16 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
121
125
|
type: ObjectConstructor;
|
122
126
|
default: () => {};
|
123
127
|
};
|
128
|
+
closeConfirm: {
|
129
|
+
type: BooleanConstructor;
|
130
|
+
default: boolean;
|
131
|
+
};
|
132
|
+
closeConfirmText: {
|
133
|
+
type: StringConstructor;
|
134
|
+
default: string;
|
135
|
+
};
|
124
136
|
}, {
|
137
|
+
dialog: import("naive-ui").DialogApi;
|
125
138
|
ScaleViewState: {
|
126
139
|
other: string;
|
127
140
|
form: {};
|
@@ -247,6 +260,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
247
260
|
type: FunctionConstructor;
|
248
261
|
default: () => Promise<{}>;
|
249
262
|
};
|
263
|
+
chunkUploadApiConfig: {
|
264
|
+
type: ObjectConstructor;
|
265
|
+
default: () => {};
|
266
|
+
};
|
250
267
|
fontSizeObj: {
|
251
268
|
type: ObjectConstructor;
|
252
269
|
default: () => {
|
@@ -276,6 +293,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
276
293
|
type: ObjectConstructor;
|
277
294
|
default: () => {};
|
278
295
|
};
|
296
|
+
closeConfirm: {
|
297
|
+
type: BooleanConstructor;
|
298
|
+
default: boolean;
|
299
|
+
};
|
300
|
+
closeConfirmText: {
|
301
|
+
type: StringConstructor;
|
302
|
+
default: string;
|
303
|
+
};
|
279
304
|
}>> & {
|
280
305
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
281
306
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -283,6 +308,15 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
283
308
|
onStartWriteScale?: ((...args: any[]) => any) | undefined;
|
284
309
|
}>>;
|
285
310
|
state: any;
|
311
|
+
formChecker: {
|
312
|
+
setInitialSnapshot: (formData: Record<string, any>) => void;
|
313
|
+
checkFormChange: (newFormData?: Record<string, any> | null) => boolean;
|
314
|
+
getInitialSnapshot: () => Record<string, any> | null;
|
315
|
+
getFormDiff: (newFormData?: Record<string, any> | null) => Record<string, {
|
316
|
+
old: any;
|
317
|
+
new: any;
|
318
|
+
}> | null;
|
319
|
+
};
|
286
320
|
emit: (event: "onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale", ...args: any[]) => void;
|
287
321
|
scaleViewDom: any;
|
288
322
|
countdownDom: any;
|
@@ -352,7 +386,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
352
386
|
};
|
353
387
|
onSubmitData: () => void;
|
354
388
|
onSubmitForm: () => Promise<unknown>;
|
355
|
-
handleScoreJson: () =>
|
389
|
+
handleScoreJson: () => import("../../shared/types").AnyObject;
|
356
390
|
nextLogicEvent: (choiceValue: any, formItem: any, formArray?: any[], isInit?: boolean | undefined) => void;
|
357
391
|
handleDynamicDataRelation: (list: any[], formItem: any, formArray: any[]) => void;
|
358
392
|
scaleChange: (val: any, item: any, config?: any) => void;
|
@@ -364,8 +398,11 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
364
398
|
handleQuery: () => void;
|
365
399
|
init: (configData: any) => Promise<void>;
|
366
400
|
onSubmitDataDebounce: (this: unknown, ...args: any[]) => any;
|
367
|
-
|
401
|
+
getFormChanged: () => boolean;
|
402
|
+
beforeCloseFn: () => Promise<unknown>;
|
403
|
+
cancel: () => Promise<void>;
|
368
404
|
getScaleData: () => any;
|
405
|
+
batchInjectFormNew: (data: import("../../shared/types").AnyObject, skipValid?: boolean) => Promise<void>;
|
369
406
|
isCollection: (e: string) => boolean;
|
370
407
|
NoData: import("vue").DefineComponent<{
|
371
408
|
noDataTip: {
|
@@ -458,6 +495,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
458
495
|
vDrag: {
|
459
496
|
beforeMount(el: any, binding: any): void;
|
460
497
|
};
|
498
|
+
str1: string;
|
499
|
+
str2: string;
|
500
|
+
str3: string;
|
461
501
|
state: {
|
462
502
|
source: string;
|
463
503
|
setAnswered: number;
|
@@ -623,6 +663,9 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
623
663
|
default: number;
|
624
664
|
};
|
625
665
|
}, {
|
666
|
+
str1: string;
|
667
|
+
str2: string;
|
668
|
+
str3: string;
|
626
669
|
state: {
|
627
670
|
source: string;
|
628
671
|
timer: null;
|
@@ -716,6 +759,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
716
759
|
default: () => {};
|
717
760
|
};
|
718
761
|
}, {
|
762
|
+
str1: string;
|
763
|
+
str2: string;
|
764
|
+
str3: string;
|
765
|
+
str4: string;
|
719
766
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
720
767
|
item: {
|
721
768
|
type: ObjectConstructor;
|
@@ -729,6 +776,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
729
776
|
scoreText: import("vue").ComputedRef<"" | "部分">;
|
730
777
|
correctAnswer: import("vue").ComputedRef<any>;
|
731
778
|
answerKeyText: import("vue").ComputedRef<any>;
|
779
|
+
answerStr: import("vue").ComputedRef<string>;
|
732
780
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
733
781
|
item: {
|
734
782
|
type: ObjectConstructor;
|
@@ -756,8 +804,8 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
756
804
|
default: number;
|
757
805
|
};
|
758
806
|
}>> & {}, {
|
759
|
-
maxScore: number;
|
760
807
|
config: Record<string, any>;
|
808
|
+
maxScore: number;
|
761
809
|
}>;
|
762
810
|
DescribeContent: import("vue").DefineComponent<{
|
763
811
|
content: {
|
@@ -874,6 +922,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
874
922
|
type: FunctionConstructor;
|
875
923
|
default: () => Promise<{}>;
|
876
924
|
};
|
925
|
+
chunkUploadApiConfig: {
|
926
|
+
type: ObjectConstructor;
|
927
|
+
default: () => {};
|
928
|
+
};
|
877
929
|
fontSizeObj: {
|
878
930
|
type: ObjectConstructor;
|
879
931
|
default: () => {
|
@@ -903,6 +955,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
903
955
|
type: ObjectConstructor;
|
904
956
|
default: () => {};
|
905
957
|
};
|
958
|
+
closeConfirm: {
|
959
|
+
type: BooleanConstructor;
|
960
|
+
default: boolean;
|
961
|
+
};
|
962
|
+
closeConfirmText: {
|
963
|
+
type: StringConstructor;
|
964
|
+
default: string;
|
965
|
+
};
|
906
966
|
}>> & {
|
907
967
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
908
968
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
@@ -930,12 +990,15 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
930
990
|
uploadFileUrl: string;
|
931
991
|
ak: string;
|
932
992
|
getChunkUploadConfig: Function;
|
993
|
+
chunkUploadApiConfig: Record<string, any>;
|
933
994
|
fontSizeObj: Record<string, any>;
|
934
995
|
hasExtendBtn: boolean;
|
935
996
|
printingHideBtn: boolean;
|
936
997
|
isGeneratePrintPdf: boolean;
|
937
998
|
combinationParmas: Record<string, any>;
|
938
999
|
allQuery: Record<string, any>;
|
1000
|
+
closeConfirm: boolean;
|
1001
|
+
closeConfirmText: string;
|
939
1002
|
}>>;
|
940
1003
|
declare const CRadio: SFCWithInstall<import("vue").DefineComponent<{
|
941
1004
|
form: {
|