cnhis-design-vue 3.1.42-beta.7 → 3.1.42-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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/base-search/index.d.ts +2 -2
- package/es/components/base-search/src/index.vue.d.ts +2 -2
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/hooks/useEvent.js +1 -1
- package/es/components/big-table/src/hooks/useFormat.js +1 -1
- package/es/components/big-table/src/hooks/useNestTable.js +1 -1
- package/es/components/big-table/src/hooks/useTableParse.js +1 -1
- package/es/components/big-table/src/utils.d.ts +11 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/bpmn-workflow/index.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
- package/es/components/button-print/index.d.ts +32 -7
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +32 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +2 -2
- package/es/components/classification/style/index.css +1 -1
- package/es/components/config-provider/src/ConfigProvider.js +1 -1
- package/es/components/config-provider/src/interface.d.ts +4 -4
- package/es/components/date-picker/index.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
- package/es/components/field-set/index.d.ts +26 -81
- package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +83 -42
- package/es/components/form-config/src/FormConfig.vue.d.ts +83 -42
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +27 -13
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +44 -23
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +19 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +27 -13
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -13
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +27 -13
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +38 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +36 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -1
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +11 -5
- package/es/components/form-render/src/types/index.d.ts +4 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +24 -5
- package/es/components/iho-table/src/IhoTable.vue.d.ts +24 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +3 -2
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -237
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +1 -4
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +4 -16
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +25 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +28 -5
- package/es/components/iho-table/src/types/pluginType.d.ts +12 -22
- package/es/components/iho-table/src/utils/index.d.ts +8 -3
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +56 -27
- package/es/components/info-header/src/InfoHeader.vue.d.ts +56 -27
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +27 -13
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +28 -13
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/src/constants/index.js +1 -1
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/map/index.d.ts +2 -14
- package/es/components/map/src/Map.vue.d.ts +1 -14
- package/es/components/map/src/types/index.d.ts +19 -0
- package/es/components/map/src/types/index.js +1 -0
- package/es/components/recommend-search/index.d.ts +13 -128
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
- package/es/components/recommend-search/src/constant/index.d.ts +3 -0
- package/es/components/recommend-search/src/constant/index.js +1 -1
- package/es/components/scale-view/index.d.ts +38 -224
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +37 -224
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +1 -43
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -42
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +8 -8
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +5 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +74 -4
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -1
- package/es/components/scale-view/src/hooks/use-event.js +1 -1
- package/es/components/scale-view/src/types/index.d.ts +7 -0
- package/es/components/scale-view/src/types/index.js +1 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/scale-view/style/scale-view-iconfont.ttf +0 -0
- package/es/components/search-cascader/index.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +12 -1
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +8 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/src/constants/index.d.ts +1 -0
- package/es/components/search-cascader/src/constants/index.js +1 -1
- package/es/components/select-label/index.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +199 -10
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +131 -0
- package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
- package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +186 -9
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/utils/index.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +32 -16
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -16
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/src/constants/index.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/types/index.d.ts +11 -2
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/components/vod-chunk-upload/index.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +25 -24
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -1
- package/es/shared/{mixins → hooks}/index.d.ts +1 -0
- package/es/shared/{mixins → hooks}/index.js +1 -1
- package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
- package/es/shared/hooks/useDateTime.js +1 -0
- package/es/shared/package.json.js +1 -0
- package/es/shared/utils/anime.d.ts +1 -1
- package/es/shared/utils/anime.js +1 -1
- package/es/shared/utils/index.d.ts +3 -14
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/vexutils.d.ts +2 -2
- package/es/shared/utils/vexutils.js +1 -1
- package/es/shared/utils/vexutilsExpand.d.ts +254 -0
- package/es/shared/utils/vexutilsExpand.js +1 -0
- package/package.json +65 -65
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/mixins/useDateTime.js +0 -1
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -1
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
- /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
- /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
- /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
- /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as
|
|
1
|
+
import{defineComponent as e,reactive as o,watch as t,createVNode as l,resolveComponent as i,isVNode as r}from"vue";import{NCheckboxGroup as s,NCheckbox as u,NInput as a,NIcon as c}from"naive-ui";import{api as n}from"v-viewer";import{SearchOutline as p}from"@vicons/ionicons5";import"xe-utils";import"moment";import h from"../../../../../shared/utils/vexutilsExpand.js";import f from"../composables/choose-common.js";var d=e({name:"RCheckbox",components:{NCheckboxGroup:s,NCheckbox:u,NInput:a,NIcon:c},props:{form:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},isLock:{type:Boolean,default:!1},inputLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,u){var a,d;const x=o({curCheckboxValue:[],othersText:"",curOptions:[],optionsPreSuffixObj:{}}),{choiceColor:m,showImgWrap:b,handleDefPreSuffix:v,choiceUseKey:k,isCheckboxItem:C,showPreSuffix:O,handleOptions:y,stopClick:g}=f(e,x),S=(null==(d=null==(a=e.item)?void 0:a.setting)?void 0:d.chooseStyleSetting)||1,V=o=>{let t={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};o&&!x.curCheckboxValue.includes("other")&&x.curCheckboxValue.push("other");let l=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",l,e.item,{choiceObj:t,isSetObj:C.value})},j=o=>{var t,l;let i=o.options||[],r=e.form[e.item.val_key],s=null==(t=null==o?void 0:o.setting)?void 0:t.defaultValue;"EVALUATE_CHECKBOX_BLOCK"===e.item.type&&(i=(null==(l=o.scoreConfigs)?void 0:l.scoreRules)||[]);let u=[];u=s&&h.isJSON(s)?JSON.parse(s):r,e.inputLock?((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;let i,r=[],s=0,u=o.length;for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e<0){x.othersText=i,!r.includes("other")&&r.push("other");continue}let u=null==(l=t[e])?void 0:l.key;r.indexOf(u)<0&&r.push(u)}x.curCheckboxValue=r,V()})(0,o.dbValue||u,i):((e,o,t)=>{var l;if(x.curOptions=y(t),!t.length||!o||!o.length)return;if("EVALUATE_CHECKBOX_BLOCK"===e.type)return x.curCheckboxValue=o,void V();let i,r=[],s=0,u=o.length,a=t.some((e=>e.importability||"other"===e.key));for(;s<u;s++){if(i=o[s],"其他"===i){x.othersText=i,x.curCheckboxValue=["other"],!r.includes("other")&&r.push("other");continue}let e=t.findIndex((e=>e.value===i));if(e>0){let o=null==(l=t[e])?void 0:l.key;!r.includes(o)&&r.push(o)}else t.map((e=>{let o=v(e,s,i,!0,a);o&&!r.includes(o)&&r.push(o)}))}x.curCheckboxValue=r,V()})(o,o.dbValue||u,i)};t((()=>e.item),(e=>{e&&Object.keys(e).length&&j(e)}),{immediate:!0});const L=(e,o)=>l("span",{class:"scale-choice-img-wrap"},[l("img",{class:"show-picture",src:e.imageUrl},null),l("div",{class:"scale-preview-wrap"},[l(c,{size:"24",color:"#fff",component:p,onClick:o=>((e,o)=>{e.preventDefault(),e.stopPropagation();let t=x.curOptions.map((e=>e.imageUrl)).filter(Boolean);if(!t.length)return;let l=t.findIndex((e=>e===o));n({images:t,options:{toolbar:!0,initialViewIndex:l<0?0:l}})})(o,e.imageUrl)},null)])]),T=(o,t)=>l("div",{class:"presuffix-wrap",onClick:g},[o.prefix&&l("span",{class:"prefix-span",style:{color:m.value(o)}},[o.prefix]),l(i("n-input"),{value:x.optionsPreSuffixObj[o.key],"onUpdate:value":e=>x.optionsPreSuffixObj[o.key]=e,disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1,onInput:()=>((o,t)=>{let l={othersText:x.othersText,optionsPreSuffixObj:x.optionsPreSuffixObj};x.curCheckboxValue.includes(o.key)||x.curCheckboxValue.push(o.key);let i=JSON.parse(JSON.stringify(x.curCheckboxValue));u.emit("scaleChange",i,e.item,{choiceObj:l,isSetObj:C.value})})(o)},null),o.suffix&&l("span",{class:"suffix-span",style:{color:m.value(o)}},[o.suffix])]),w=e=>l("span",{style:{color:m.value(e)},class:"other-span"},[e.label]),N=o=>l("div",{class:"choose-other",onClick:g},[l(i("n-input"),{value:x.othersText,"onUpdate:value":[e=>x.othersText=e,()=>V(!0)],disabled:e.isLock||e.inputLock,style:{color:m.value(o)},placeholder:"请输入",bordered:!1},null)]),P=e=>C.value&&O.value(e);let I=k.value;return()=>{let o;return l(s,{value:x.curCheckboxValue,"onUpdate:value":[e=>x.curCheckboxValue=e,()=>V(!1)],class:["c-choice-wrap","choice-wrap-"+S],disabled:e.isLock},"function"==typeof(t=o=x.curOptions.map(((e,o)=>l(i("n-checkbox"),{key:e.value,value:e[I]},{default:()=>[b.value(e)&&L(e),P(e)&&T(e),!P(e)&&w(e),e.importability&&N(e)]}))))||"[object Object]"===Object.prototype.toString.call(t)&&!r(t)?o:{default:()=>[o]});var t}}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,computed as a,createVNode as l,resolveComponent as r,createTextVNode as u}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import s from"
|
|
1
|
+
import{defineComponent as e,reactive as t,computed as a,createVNode as l,resolveComponent as r,createTextVNode as u}from"vue";import{NTimePicker as n,NDatePicker as i}from"naive-ui";import"xe-utils";import s from"moment";import d from"../../../../../shared/utils/vexutilsExpand.js";var o=e({name:"RDatetime",components:{NTimePicker:n,NDatePicker:i},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,n){var i,o,m,g,p;const c=null==(i=e.item)?void 0:i.type,f=null==(m=null==(o=e.item)?void 0:o.setting)?void 0:m.startToStop,b="DATE"===c?"date":null==(p=null==(g=e.item)?void 0:g.setting)?void 0:p.dateType,v="HH:mm:ss",D=t({rangeValue:[null,null],dateValue:null}),V=a((()=>"datetime"==b?"datetimerange":"daterange")),N=e=>{let t=D.rangeValue[1];return!!t&&e>Number(new Date(t).getHours())},w=(e,t)=>{if(null===t)return!1;let a=D.rangeValue[1];if(!a)return!1;let l=Number(new Date(a).getHours()),r=Number(new Date(a).getMinutes());return!(t<l)&&e>r},k=(e,t,a)=>{if(null===a||null===t)return!1;let l=D.rangeValue[1];if(!l)return!1;let r=Number(new Date(l).getHours()),u=Number(new Date(l).getMinutes()),n=Number(new Date(l).getSeconds());return!(a<r)&&(!(t<u)&&e>=n)},y=e=>{let t=D.rangeValue[0];return!!t&&e<Number(new Date(t).getHours())},H=(e,t)=>{if(null===t)return!1;let a=D.rangeValue[0];if(!a)return!1;let l=Number(new Date(a).getHours()),r=Number(new Date(a).getMinutes());return!(t>l)&&e<r},S=(e,t,a)=>{if(null===a||null===t)return!1;let l=D.rangeValue[0];if(!l)return!1;let r=Number(new Date(l).getHours()),u=Number(new Date(l).getMinutes()),n=Number(new Date(l).getSeconds());return!(a>r)&&(!(t>u)&&e<=n)},M=(t,a,l)=>{let r="start"===l?1:0,u=D.rangeValue[r];u&&(u=s(u).format(v)),"start"!==l?n.emit("scaleChange",[u||"",a],e.item):n.emit("scaleChange",[a,u||""],e.item)},O=(t,a)=>{n.emit("scaleChange",a,e.item)};return(e=>{if(console.log(e,"time---val---"),d.isJSON(e)&&(e=JSON.parse(e)),!e||d.isEmpty(e))return;let t=JSON.parse(JSON.stringify(e));if("TIME"!==c&&"time"!=b)D.dateValue=e;else{if(1!=f)return void(D.dateValue=e);if(!Array.isArray(t)||!t.length)return;let a=t[0]?s(t[0],v).valueOf():"",l=t[1]?s(t[1],v).valueOf():"",r=a&&d.isValidDate(new Date(a))?a:null,u=l&&d.isValidDate(new Date(l))?l:null;D.rangeValue=[r,u]}})(e.form[e.item.val_key]),()=>"TIME"===c||"time"==b?1==f?l("div",{class:"c-time-range"},[l(r("n-time-picker"),{value:D.rangeValue[0],"onUpdate:value":[e=>D.rangeValue[0]=e,(e,t)=>M(0,t,"start")],clearable:!0,disabled:e.isLock,isHourDisabled:N,isMinuteDisabled:w,isSecondDisabled:k},null),u(" - "),l(r("n-time-picker"),{value:D.rangeValue[1],"onUpdate:value":[e=>D.rangeValue[1]=e,(e,t)=>M(0,t,"end")],clearable:!0,disabled:e.isLock,isHourDisabled:y,isMinuteDisabled:H,isSecondDisabled:S},null)]):l(r("n-time-picker"),{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,clearable:!0,disabled:e.isLock,"onUpdate:value":O},null):l(r("n-date-picker"),"date"!==b&&"datetime"!==b||1!=f?{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,type:b,clearable:!0,disabled:e.isLock,"onUpdate:value":O}:{"formatted-value":D.dateValue,"onUpdate:formatted-value":e=>D.dateValue=e,type:V.value,clearable:!0,disabled:e.isLock,"onUpdate:value":O},null)}});export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as o,reactive as e,createVNode as t,resolveComponent as a}from"vue";import{NModal as i,NInput as n,NIcon as p}from"naive-ui";import
|
|
1
|
+
import{defineComponent as o,reactive as e,createVNode as t,resolveComponent as a}from"vue";import{NModal as i,NInput as n,NIcon as p}from"naive-ui";import"xe-utils";import"moment";import s from"../../../../../shared/utils/vexutilsExpand.js";import{AlertCircleOutline as l}from"@vicons/ionicons5";import m from"../../../../map/index.js";var c=o({name:"RMap",components:{NModal:i,NInput:n,NIcon:p,CMap:m},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1},locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["scaleChange"],setup(o,i){let n=o.form[o.item.val_key];const p=e({mapVisible:!1,mapLocation:""}),c=o=>{if(s.isJSON(o)){const e=JSON.parse(o);return e.address||e.name}return""};p.mapLocation=c(n);const r=e=>{const{locationProp:t,isInit:a}=e;p.mapLocation=c(t),i.emit("scaleChange",t,o.item),p.mapVisible=!1},d=()=>{o.isLock||(p.mapVisible=!0)};return()=>t("div",{class:{"c-map-container":!o.isLock}},[t(a("n-input"),{value:p.mapLocation,disabled:!0,class:"map-input","on-click":d,placeholder:"请选择"},{prefix:()=>t(a("n-icon"),{size:"18",component:l},null)}),t(a("n-modal"),{class:"c-scale-map-modal",show:p.mapVisible,"onUpdate:show":o=>p.mapVisible=o,preset:"card",style:{width:"800px",height:"80vh"}},{default:()=>[t(m,{locationProp:o.locationProp,ak:o.ak,onSelectLocation:r},null)]})])}});export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as i,createVNode as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as i,createVNode as t,createTextVNode as a,resolveComponent as n,Fragment as o}from"vue";import{NButton as s,NIcon as c,NSpace as r,useDialog as m}from"naive-ui";import u from"./standard-modal.js";import p from"./sign-com.js";import{EyeOutline as v,TrashOutline as d}from"@vicons/ionicons5";import{api as g}from"v-viewer";var f=e({name:"RSign",components:{NButton:s,NIcon:c,NSpace:r,StandardModal:u,SignCom:p},props:{form:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isLock:{type:Boolean,default:!1}},emits:["scaleChange"],setup(e,s){const r=l(null),u=l(!1),p=l([]),f=m(),k=i((()=>{var l,i;return(null==(i=null==(l=e.item)?void 0:l.setting)?void 0:i.limitPic)||1})),C=i((()=>p.value.length<k.value&&!e.isLock));(()=>{const l=e.form[e.item.val_key];l&&Array.isArray(l)&&l.length&&(p.value=l)})();const h=()=>{u.value=!1},y=()=>{r.value.reset()},b=()=>{r.value.generate().then((l=>{console.log(l),p.value.push(l),s.emit("scaleChange",p.value,e.item),h()})).catch((e=>{console.log(e)}))},w=()=>{e.isLock||(u.value=!0)},x=()=>t("div",{class:"sigan-content-wrap"},[p.value.map(((l,i)=>t("div",{class:"sign-item"},[t("img",{src:l.url},null),t("div",null,[t(c,{component:v,onClick:()=>(e=>{const l=p.value.map((e=>e.url)).filter(Boolean);l.length&&g({images:l,options:{toolbar:!0,initialViewIndex:e}})})(i)},null),!e.isLock&&t(c,{component:d,onClick:()=>(l=>{e.isLock||f.warning({title:"提示",content:"确认要删除签名吗?",positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{p.value.splice(l,1),s.emit("scaleChange",p.value,e.item)},onNegativeClick(){}})})(i)},null)])]))),C.value&&t("div",{class:"add-sign-wrap",onClick:w},[t("i",{class:"scale-view-iconfont icon-scale-view-qianming"},null),t("span",null,[a("添加签名")])])]),L=()=>t(n("standard-modal"),{class:"r-sign-modal",visible:u.value,title:e.item.title,modalWidth:"652px",modalHeight:"476px",handleOk:b,cancel:h},{default:()=>t(n("sign-com"),{ref:r,isCrop:!0},null),action:()=>t(o,null,[t(n("n-space"),null,{default:()=>[t(n("n-button"),{size:"small",onClick:h},{default:()=>[a("取消")]}),t(n("n-button"),{size:"small",onClick:y,type:"primary"},{default:()=>[a("重签")]}),t(n("n-button"),{size:"small",onClick:b,type:"primary"},{default:()=>[a("确认")]})]})])});return()=>t("div",{class:"c-sign-wrap"},[x(),L()])}});export{f as default};
|
|
@@ -21,17 +21,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
};
|
|
22
22
|
handleOk: {
|
|
23
23
|
type: FunctionConstructor;
|
|
24
|
-
default: () =>
|
|
24
|
+
default: () => {};
|
|
25
25
|
};
|
|
26
26
|
cancel: {
|
|
27
27
|
type: FunctionConstructor;
|
|
28
|
-
default: () =>
|
|
28
|
+
default: () => {};
|
|
29
29
|
};
|
|
30
30
|
visible: {
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "onClose")[], "onClose" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
35
|
title: {
|
|
36
36
|
type: (StringConstructor | FunctionConstructor)[];
|
|
37
37
|
default: string;
|
|
@@ -54,25 +54,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
};
|
|
55
55
|
handleOk: {
|
|
56
56
|
type: FunctionConstructor;
|
|
57
|
-
default: () =>
|
|
57
|
+
default: () => {};
|
|
58
58
|
};
|
|
59
59
|
cancel: {
|
|
60
60
|
type: FunctionConstructor;
|
|
61
|
-
default: () =>
|
|
61
|
+
default: () => {};
|
|
62
62
|
};
|
|
63
63
|
visible: {
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
69
68
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
visible: boolean;
|
|
72
71
|
closable: boolean;
|
|
72
|
+
title: string | Function;
|
|
73
|
+
visible: boolean;
|
|
73
74
|
modalWidth: string;
|
|
74
75
|
modalHeight: string;
|
|
75
|
-
title: string | Function;
|
|
76
76
|
handleOk: Function;
|
|
77
77
|
changeSize: boolean;
|
|
78
78
|
cancel: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as e,computed as i,reactive as t,ref as l,createVNode as a,resolveComponent as n}from"vue";import{NModal as o,NButton as s,NTooltip as d}from"naive-ui";var c=e({name:"StandardModal",components:{NModal:o,NButton:s,NTooltip:d},props:{title:{type:[Function,String],default:""},changeSize:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},modalWidth:{type:String,default:""},modalHeight:{type:String,default:""},handleOk:{type:Function,default:()=>({})},cancel:{type:Function,default:()=>({})},visible:{type:Boolean,default:!1}},emits:["update:visible","onClose"],setup(e,o){const s=i((()=>e.modalWidth||"50vw")),d=i((()=>e.modalHeight||"50vh")),c=t({modalWidth:s.value,modalHeight:d.value,maxHeight:"620px",isChangeWindow:!1}),u=l(!1),h=()=>{e.handleOk()},v=()=>{e.cancel(),o.emit("update:visible",!1)},g=()=>{const i=null==e?void 0:e.title,t=typeof i;return a("div",{class:"n-dialog__title-content"},["string"===t?a("div",null,[i]):null,"function"===t?a("div",null,[i()]):null,a("div",{class:"svg-wrap"},[e.changeSize?a("i",{onClick:()=>(document.body.clientHeight,void Object.assign(c,{isChangeWindow:!c.isChangeWindow,modalWidth:c.modalWidth===s.value?"100vw":s.value,modalHeight:c.modalHeight===d.value?"100vh":d.value})),class:u.value?"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaozuixiaohua2":"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaozuidahua"},null):null,e.closable?a("i",{class:"scale-view-iconfont icon-scale-view-menzhenyishengzhanxitongtubiaoguanbi",onClick:()=>v()},null):null])])};return()=>(()=>{const i={...o.slots};return i.header||(i.header=g),a(n("n-modal"),{class:"c-scale-modal-container",show:e.visible,"mask-closable":!1,"show-icon":!1,closable:!1,style:{width:c.modalWidth,height:c.modalHeight},preset:"dialog","positive-text":"确认","negative-text":"取消","on-positive-click":h,"on-negative-click":v,positiveButtonProps:{type:"primary"}},{...i})})()}});export{c as default};
|
package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
isAlias?: boolean | undefined;
|
|
42
42
|
};
|
|
43
43
|
isDisabledTooltip: import("vue").Ref<boolean>;
|
|
44
|
-
curContent: import("vue").ComputedRef<string>;
|
|
44
|
+
curContent: import("vue").ComputedRef<string | number>;
|
|
45
45
|
$refName: any;
|
|
46
46
|
onMouseOver: (str: any) => void;
|
|
47
47
|
onMouseOut: () => void;
|
|
@@ -5,7 +5,7 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
|
|
|
5
5
|
width: string;
|
|
6
6
|
height: string;
|
|
7
7
|
transform: string;
|
|
8
|
-
} |
|
|
8
|
+
} | undefined>;
|
|
9
9
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
10
10
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
11
11
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import n from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!n.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=a(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),E=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),w=e((()=>e=>X(e))),y=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i} <span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),j=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),P=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),D=e((()=>e=>{var t;if(U.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!n.isValidDate(new Date(r)))return v;const c=a(r).add(s,"minutes").diff(a(),"seconds",!0);return v&&c<=0})),x=e((()=>"customList"===o.type?"保存":"提交")),V=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),N=e((()=>({getCascadeOptions:o.getCascadeOptions}))),$=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),K=e((()=>({ak:o.ak}))),I=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),M=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),q={RSelectCom:V.value,RCascaderCom:N.value,RUploadCom:$.value,RMapCom:K.value,RVodChunkUploadCom:I.value,CSelectLabelCom:M.value},J=e((()=>(e,t)=>{var a;const n=i[e.type],o=q[n]||{},r={form:l.form,item:e,index:t,isLock:j.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),X=(e,t)=>{if(e.hide)return!1;const{form:a={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&n.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=n.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=n.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=z(t);return n.isArray(a[o])?a[o].some((t=>e.value.includes(t))):e.value.includes(a[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},z=e=>e.databaseTitle||e.title,H=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},Q=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),W=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:c,isFormBoldOpen:C,scaleStyle:S,handlePageClass:E,isShowItem:w,handleShowQuestionNumber:y,hasScore:L,isPreviewScale:O,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:F,componentDisable:j,showEvaluateLabel:P,showAnswerParse:D,tipMsg:x,propsConfig:J,showEvent:X,formKey:z,evaluatePageProps:Q,evaluateCountdownProps:W,skipCover:b,scaleEdit:U}};export{o as ScaleViewComputed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{handleQueryParams as e,getQueryVariable as t}from"../utils/judge-types.js";import a from"./use-noData.js";import
|
|
1
|
+
import{handleQueryParams as e,getQueryVariable as t}from"../utils/judge-types.js";import a from"./use-noData.js";import"xe-utils";import"moment";import i from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as n}from"./use-component.js";import{useEvent as l}from"./use-event.js";import{ScaleViewComputed as s}from"./scaleview-computed.js";import{ScaleViewValidate as r}from"./scaleview-validate.js";import{useDialog as o}from"naive-ui";const u=(u,v,c,f)=>{const d=o(),{setNoData:m}=a(),{hasEvaluateResultSetting:p,hasparamsEvaluate:g,hasDefault:S,formKey:E}=s(u,v,f),{formatRules:C}=r(u,v,f),{nextLogicEvent:O}=l(u,v),A=e=>{const t=null==e?void 0:e.evaluateStartTime;t&&!i.isValidDate(new Date(t))&&i.isValidDate(new Date(Number(t)))&&(e.evaluateStartTime=Number(t))},y=()=>{var t;if(!p.value)return!!S.value&&("evaluateResultSetting"in v.config||(v.config.evaluateResultSetting={}),(t=>{let a=e();g.value&&(a=v.paramsEvaluate),a.evaname&&(t.evaluateName=a.evaname),a.evadesc&&(t.evaluateExplain=a.evadesc),a.evast&&(t.evaluateStartTime=a.evast),a.evadur&&(t.evaluateTime=a.evadur),a.evaan&&("true"===a.evaan||a.evaan,t.evaluateAnswer=a.evaan),A(t)})(v.config.evaluateResultSetting),v.showEvaluatePage=!0,void(v.showEvaluateCountdownWrap=!0));const{evaluateResultSetting:a={}}=v.config;if(!a||!Object.keys(a).length)return;v.showEvaluateCountdownWrap=!0;const{evaluateStartTime:n}=a,{evaluateName:l}=(null==(t=v.originConfig)?void 0:t.evaluateResultSetting)||{};if(n)return!(!i.isValidDate(new Date(n))&&!l)&&void(v.showEvaluatePage=!0);v.showEvaluatePage=!0},h=(e,t)=>{const a=e.find((e=>t===e.value));return a?a.key:t},R=(e,t)=>{if(["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(t)&&e&&(e&&i.isJSON(e)&&(e=JSON.parse(e)),e.length))return!0},L=t=>{var a,n;if(!t||!t.length)return;const l=e();if((null==u?void 0:u.noBtn)||(null==l?void 0:l.noBtn))return;const s=t.find((e=>"FRONT_ADDRESS"===e.type));if(!s||!Object.keys(s).length)return;let r;if(s.setting&&i.isJSON(s.setting)&&(r=JSON.parse(s.setting)),!r||!Object.keys(r).length)return;if(1==(null==l?void 0:l.redirect)||1==(null==(a=u.params)?void 0:a.redirect)||3==l.isEdit||3==(null==(n=u.params)?void 0:n.isEdit))return;const{frontAddress:o}=r;if(o){const e=window.location.href;let t="?";o.includes("?")&&(t="&");return`${o}${t}redirect_url=${encodeURIComponent(e)}`}},N=e=>{const t=["evaname","evadesc","evast","evadur","evaan"],a={};for(const i in e){const n=e[i];t.includes(i)&&n&&(a[i]=n)}return a},b=t=>{if(!t||!Object.keys(t).length)return;let a=e()||{};g.value&&(a=v.paramsEvaluate);const i={evaluateName:"evaname",evaluateExplain:"evadesc",evaluateStartTime:"evast",evaluateTime:"evadur",evaluateAnswer:"evaan"};for(const e in t){const n=t[e];if(n&&"evaluateAnswer"!=e&&"string"==typeof n&&n.includes("${")){const i=n.replace(/\$\{([^}]+)\}/g,((e,t)=>{let i;return t.startsWith("form.")&&(i=a[t.split(".")[1]]),i||""}));t[e]=i}else{let n=a[i[e]];"evaluateAnswer"==e&&(n="true"===n||1==n),a[i[e]]&&(t[e]=n)}}if(S.value){const e={evaname:"evaluateName",evadesc:"evaluateExplain",evast:"evaluateStartTime",evadur:"evaluateTime",evaan:"evaluateAnswer"};["evaname","evadesc","evast","evadur","evaan"].forEach((i=>{const n=e[i];if(!t[n]){let e=a[i];"evaan"==i&&(e="true"===e||1==e),a[i]&&(t[n]=e)}}))}A(t)},T=e=>{let t=1;return e.map((a=>{const l=E(a);(l||"").replace(/\n/g,""),a.showTitle=a.title,a.val_key=l,a.renderCom=n[a.type],a.isShow=!0,Object.keys(a).forEach((e=>{i.isJSON(a[e])&&"LOCATION"!=a.type&&(a[e]=JSON.parse(a[e]))}));var s;return["LINEBAR","TITLE","PROMPT","IMGCARD","RICH_TEXT"].indexOf(a.type)<0&&!a.hide&&(a.softcode=t++),("SELECT"==(s=a.type)||"RADIO_BLOCK"==s||"CHECKBOX_BLOCK"==s||"SEARCH_CASCADE"==s||"EVALUATE_RADIO_BLOCK"==s||"EVALUATE_CHECKBOX_BLOCK"==s||"EVALUATE_SELECT"==s)&&(((e,t)=>{R(e,t)&&e.forEach(((e,t)=>{"other"!==e.key&&(e.key=t+1),(e.prefix||e.suffix)&&(e.value=e.prefix||e.suffix)}))})(a.options,a.type),"SEARCH_CASCADE"!=a.type&&(a.dbValue?O(a.dbValue,a,e):a.setting.defaultValue&&O(a.setting.defaultValue,a,e))),a})).map((t=>(((e,t)=>{const a=i.isString(t.relationLogic)?JSON.parse(t.relationLogic):t.relationLogic,{condition:n}=a||{};n&&n.length&&(n.forEach((t=>{const a=e.find((e=>e.seq==t.subject_seq));if(!a)return;if(!R(a.options,a.type))return;let i=t.value;Array.isArray(i)?(i=i.map((e=>h(a.options,e))),t.value=i):t.value=h(a.options,i)})),t.relationLogic=a)})(e,t),(e=>{const{nextLogic:t,options:a,type:i}=e||{};if(!t||!R(a,i))return;const{condition:n}=t||{};n&&n.length&&n.forEach((e=>{let t=e.value;Array.isArray(t)?(t=t.map((e=>h(a,e))),e.value=t):e.value=h(a,t)}))})(t),"CHECKBOX_BLOCK"===t.type&&t.dbValue&&!Array.isArray(t.dbValue)&&"customList"===u.type&&(t.dbValue=t.dbValue.split(",").filter((e=>!!e))),t)))},w=e=>{const a={};let n;return e.forEach((e=>{var l,s,r,o;const c=e.val_key,{type:f}=e;let d;if(e.dbValue)d=e.dbValue;else if(3==(null==(l=e.setting)?void 0:l.defValType)){const a=null==(r=null==(s=e.setting)?void 0:s.outDefaultValue)?void 0:r.urlKey;if(a){const i=a.split(",");if(i.length>1){const e=i.map((e=>{const a=t(e,v,u.params);return a?decodeURIComponent(a):null})).filter(Boolean);e.length&&(d=e)}else{let a=t(i[0],v,u.params);a&&(a=decodeURIComponent(a),d="CHECKBOX_BLOCK"==e.type?a.split():a)}}}switch(f){case"LOCATION":a[c]=d||"";break;case"SEARCH_CASCADE":case"UPFILE":case"UPPICTURE":a[c]=d||[];break;case"ADDRESS":a[c]=d||"",v.defaultAddress=d||{};break;case"LABEL":a[c]=d||{},i.isObject(d)?v.labelSelectedList=(null==d?void 0:d.labels)||[]:Array.isArray(d)?v.labelSelectedList=d:v.labelSelectedList=[];break;case"TITLE":a[c]=e.title;break;case"IMGCARD":a[c]=(null==(o=e.setting)?void 0:o.imgUrl)||"";break;case"CHECKBOX_BLOCK":d&&!Array.isArray(d)&&"customList"===u.type?a[c]=d.split(",").filter((e=>!!e)):(n=d||e.setting.defaultValue,i.isJSON(n)&&(n=JSON.parse(n)),a[c]=n);break;default:n=d||e.setting.defaultValue,i.isJSON(n)&&(n=JSON.parse(n)),a[c]=n}})),a};return{initForm:e=>{var t;let{list:a=[],map:n={},isFinished:l=!1}=e;const s=L(a);if(s)return void(window.location.href=s);if(n.maxScore&&(v.maxScore=n.maxScore),v.isFinished=l,e.isNotFilled)return v.spinning=!1,v.hasFrontAddress=!1,void m(!0,"未查询到量表填写记录");if(e.isLackCustomer&&d.info({title:"已设置填写次数限制",content:"请在包含用户信息的环境中打开此量表",maskClosable:!1,onPositiveClick(){c("onCloseSetting")}}),v.config=n,"evaluateResultConfig"in n&&i.isJSON(n.evaluateResultConfig)&&(v.config.evaluateResultConfig=JSON.parse(n.evaluateResultConfig)),"evaluateResultSetting"in n&&i.isJSON(n.evaluateResultSetting)&&(v.config.evaluateResultSetting=JSON.parse(n.evaluateResultSetting),(null==(t=v.config)?void 0:t.randomId)&&v.config.evaluateResultSetting&&(v.config.evaluateResultSetting.evaluateName=v.config.name,v.config.evaluateResultSetting.evaluateExplain=v.config.remark)),v.originConfig=JSON.parse(JSON.stringify(v.config)),u.params&&Object.keys(u.params).length){const e=N(u.params);e&&Object.keys(e).length&&(v.paramsEvaluate=e)}b(v.config.evaluateResultSetting),y(),v.defaultFormArray=JSON.parse(JSON.stringify(a));const r=v.filterArr;a=a.filter((e=>!r.includes(e.type))),v.formArray=T(a||[]),v.form=w(v.formArray),v.rules=C(v.formArray),v.fontSize=e.fontSize,v.spinning=!1,v.hasFrontAddress=!1}}};export{u as ScaleViewInit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isOnlyOptions as t,getQueryVariable as e}from"../utils/judge-types.js";import i from"
|
|
1
|
+
import{isOnlyOptions as t,getQueryVariable as e}from"../utils/judge-types.js";import"xe-utils";import i from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{ScaleViewComputed as r}from"./scaleview-computed.js";const n=(n,o,a,f)=>{const{showEvent:p,formKey:m}=r(n,o,f),d=()=>{const e=Object.assign({},o.form,o.submitForm),s={};if(!Object.keys(e).length)return{};for(const r in e){const a=o.formArray.find((t=>m(t)==r));if(r&&a){let f;if(a&&a.databaseTitle&&(f=a.databaseTitle),"customList"==n.type&&a&&a.setting&&1!=a.setting.startToStop&&e[r]&&"DATETIME"==a.type&&(a.setting&&"time"==a.setting.dateType&&e[r]&&(e[r]=i().format("YYYY-MM-DD ")+e[r]),a.setting&&"date"==a.setting.dateType&&e[r]&&(e[r]=i(e[r]).format("YYYY-MM-DD ")+i().format("HH:mm:ss"))),s[f||r]=e[r]?e[r]:null,t(a.type)){const{options:t}=a,i=a.val_key,n=o.choiceComObj[i],f=e[r];if("RADIO_BLOCK"===a.type&&f&&(s[i]=l(f,t,n)),"CHECKBOX_BLOCK"===a.type&&(null==f?void 0:f.length)){const e=u(f,t,n);s[i]=e}}}else s[r]=e[r]}return s},u=(t,e,i)=>{const s=[];let r,n=0;for(;n<t.length;n++){r=t[n];const o=e.find(((t,e)=>e+1===r));if(o&&!o.prefix&&!o.suffix){s.push(o.value);continue}const a=l(r,e,i);s.push(a)}return s},l=(t,e,i)=>{const{othersText:s,optionsPreSuffixObj:r={}}=i||{};if("other"===t)return s||"其他";const n=e.find(((e,i)=>i+1===t));if(!n)return;if(!n.prefix&&!n.suffix)return n.value;let o=r[t]||"";return n.prefix?o=n.prefix+o:o+=n.suffix,o};return{submitMethod:()=>{const t=o.defaultFormArray.find((t=>"SPREAD_PARAMS"===t.type));if(t){s.isJSON(t.setting)&&(t.setting=JSON.parse(t.setting));const i=m(t);o.submitForm[i]=t.setting.spreadParams.domains.map((t=>{const i={};return"1"==t.valueType?i[t.name]=t.value:"2"==t.valueType&&(i[t.name]=e(t.value,o,n.params)),i}))}const i=o.defaultFormArray.find((t=>"CHECKBOX_BLOCK"==t.type));i&&Array.isArray(o.form[i.title])&&"customList"===n.type&&(o.form[i.title]=o.form[i.title].join(","));const r=d();let a;if("customList"===n.type)a={definedListId:n.ids.guage_id,dbId:n.ids.db_id,scoreJson:JSON.stringify(r)};else{const{guageId:t,randomId:e}=o.config;a=Object.assign(n.params,{guageId:t,scoreJson:JSON.stringify(r),randomId:e})}o.shareId&&(a.shareId=o.shareId);const f=o.defaultFormArray.find((t=>"SUCCESS_TIP"===t.type));if(f){const t=s.isJSON(f.setting)?JSON.parse(f.setting):f.setting;a.tipSetting=JSON.stringify({tipMode:t.tipMode,tipType:t.tipType,tipText:t.tipText,tipApi:t.tipApi})}const u=o.defaultFormArray.find((t=>"CALLBACK_INTERFACE"===t.type));let l=!1;u&&(l=p(u,!0));return{params:a,hasCallbackItem:u,isCallback:l}}}};export{n as ScaleViewSubmit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"xe-utils";import"moment";import e from"../../../../shared/utils/vexutilsExpand.js";import{ScaleViewComputed as r}from"./scaleview-computed.js";const t=(t,i,n)=>{const{formKey:s}=r(t,i,n),o=(e,r)=>{let{address:t}=r||{};return!!t||new Error("必填")},l=(e,r)=>{if(!r||!Object.keys(r).length)return new Error("必填");let{labelStr:t,labels:i=[]}=r;return!(!t||!i.length)||new Error("必填")},a=(e,r)=>{let t=(i=r,Object.prototype.toString.call(i));var i;if("[object Object]"==t){if(r&&Object.keys(r).length)return!0}else if("[object Array]"==t){if(r&&r.length)return!0}else if("[object Number]"==t){if(r||0===r)return!0}else if(r)return!0;return new Error("必填")},u=["LABEL","ADDRESS"];return{formatRules:r=>{const n={};return r.forEach((r=>{let c=r.val_key;if(n[c]=[],r.required&&!u.includes(r.type)&&n[c].push({required:r.required,message:"必填",trigger:"change",validator:a}),"MOBILE"==r.type&&r.validation)n[c].push({pattern:/^1[3456789]\d{9}$/,message:"格式错误",trigger:"blur"});else if("ID_CARD"==r.type&&r.validation)n[c].push({pattern:/^\d{6}(((19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|x|X))|(\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}))$/,message:"格式错误",trigger:"blur"});else if("ADDRESS"==r.type&&r.required)(r=>{let t={addressType:"province-city-district-address"};return t=e.isJSON(r.setting)?JSON.parse(r.setting):r.setting,t.addressType.includes("address")})(r)&&n[c].push({validator:o,trigger:"change"});else if("LABEL"==r.type&&r.required)n[c].push({validator:l,trigger:"change"});else if("DATETIME"==r.type&&"customList"==t.type){let t=(r=>{let t=r.setting;return e.isJSON(t)&&(t=JSON.parse(t)),t.dateMaxType})(r);if(!t)return;let i={1:"checkDateMaxCur",2:"checkDateMaxSet",3:"checkDateMaxOther"};n[c].push({validator:(e,n)=>i[t](e,n,r),trigger:"change"})}else"RADIO_BLOCK"===r.type?(i.choiceComObj[s(r)]={},n[c].push({validator:(e,t)=>((e,r,t)=>{if(!r)return!0;let{options:n}=t;if(!n.length||"other"===r)return!0;const o=s(t);let{optionsPreSuffixObj:l={}}=i.choiceComObj[o]||{},a=n.find(((e,t)=>t+1===r));if(!a||a.importability)return!0;if((a.prefix||a.suffix)&&!l[r])return new Error("请完善选项");return!0})(0,t,r),trigger:["change","blur"]})):"CHECKBOX_BLOCK"===r.type&&(i.choiceComObj[s(r)]={},n[c].push({validator:(e,t)=>((e,r,t)=>{if(!r||!r.length)return!0;let{options:n}=t;if(!n.length)return!0;let o,l=0,a=r.length;const u=s(t);let{optionsPreSuffixObj:c={}}=i.choiceComObj[u]||{};for(;l<a;l++){if(o=r[l],"other"===o)continue;let e=n.find(((e,r)=>r+1===o));if(e&&!e.importability&&(e.prefix||e.suffix)&&!c[o])return new Error("请完善选项")}return!0})(0,t,r),trigger:["change","blur"]}))})),n}}};export{t as ScaleViewValidate};
|
|
@@ -1007,8 +1007,8 @@ export declare const componentMap: {
|
|
|
1007
1007
|
}>> & {
|
|
1008
1008
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
1009
1009
|
}, {
|
|
1010
|
-
selectedList: any[];
|
|
1011
1010
|
item: any;
|
|
1011
|
+
selectedList: any[];
|
|
1012
1012
|
isDetail: boolean;
|
|
1013
1013
|
isLock: boolean;
|
|
1014
1014
|
sourceType: string;
|
|
@@ -1125,7 +1125,6 @@ export declare const componentMap: {
|
|
|
1125
1125
|
type: ObjectConstructor;
|
|
1126
1126
|
default: () => {};
|
|
1127
1127
|
};
|
|
1128
|
-
defList: (ArrayConstructor | StringConstructor)[];
|
|
1129
1128
|
source: StringConstructor;
|
|
1130
1129
|
limitNum: {
|
|
1131
1130
|
default: number;
|
|
@@ -1190,7 +1189,6 @@ export declare const componentMap: {
|
|
|
1190
1189
|
type: ObjectConstructor;
|
|
1191
1190
|
default: () => {};
|
|
1192
1191
|
};
|
|
1193
|
-
defList: (ArrayConstructor | StringConstructor)[];
|
|
1194
1192
|
source: StringConstructor;
|
|
1195
1193
|
limitNum: {
|
|
1196
1194
|
default: number;
|
|
@@ -1317,12 +1315,84 @@ export declare const componentMap: {
|
|
|
1317
1315
|
RemoveCircleSharp: 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<{}>>, {}>;
|
|
1318
1316
|
videoImg: string;
|
|
1319
1317
|
success: string;
|
|
1318
|
+
Draggable: import("vue").DefineComponent<{
|
|
1319
|
+
list: {
|
|
1320
|
+
type: ArrayConstructor;
|
|
1321
|
+
required: boolean;
|
|
1322
|
+
default: any;
|
|
1323
|
+
};
|
|
1324
|
+
modelValue: {
|
|
1325
|
+
type: ArrayConstructor;
|
|
1326
|
+
required: boolean;
|
|
1327
|
+
default: any;
|
|
1328
|
+
};
|
|
1329
|
+
itemKey: {
|
|
1330
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
1331
|
+
required: boolean;
|
|
1332
|
+
};
|
|
1333
|
+
clone: {
|
|
1334
|
+
type: FunctionConstructor;
|
|
1335
|
+
default: (original: any) => any;
|
|
1336
|
+
};
|
|
1337
|
+
tag: {
|
|
1338
|
+
type: StringConstructor;
|
|
1339
|
+
default: string;
|
|
1340
|
+
};
|
|
1341
|
+
move: {
|
|
1342
|
+
type: FunctionConstructor;
|
|
1343
|
+
default: any;
|
|
1344
|
+
};
|
|
1345
|
+
componentData: {
|
|
1346
|
+
type: ObjectConstructor;
|
|
1347
|
+
required: boolean;
|
|
1348
|
+
default: any;
|
|
1349
|
+
};
|
|
1350
|
+
}, unknown, {
|
|
1351
|
+
error: boolean;
|
|
1352
|
+
}, {
|
|
1353
|
+
realList(): any;
|
|
1354
|
+
getKey(): any;
|
|
1355
|
+
}, {
|
|
1356
|
+
getUnderlyingVm(domElement: any): any;
|
|
1357
|
+
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
1358
|
+
emitChanges(evt: any): void;
|
|
1359
|
+
alterList(onList: any): void;
|
|
1360
|
+
spliceList(): void;
|
|
1361
|
+
updatePosition(oldIndex: any, newIndex: any): void;
|
|
1362
|
+
getRelatedContextFromMoveEvent({ to, related }: {
|
|
1363
|
+
to: any;
|
|
1364
|
+
related: any;
|
|
1365
|
+
}): any;
|
|
1366
|
+
getVmIndexFromDomIndex(domIndex: any): any;
|
|
1367
|
+
onDragStart(evt: any): void;
|
|
1368
|
+
onDragAdd(evt: any): void;
|
|
1369
|
+
onDragRemove(evt: any): void;
|
|
1370
|
+
onDragUpdate(evt: any): void;
|
|
1371
|
+
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
1372
|
+
onDragMove(evt: any, originalEvent: any): any;
|
|
1373
|
+
onDragEnd(): void;
|
|
1374
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1375
|
+
move: Function;
|
|
1376
|
+
tag: string;
|
|
1377
|
+
clone: Function;
|
|
1378
|
+
list: unknown[];
|
|
1379
|
+
modelValue: unknown[];
|
|
1380
|
+
componentData: Record<string, any>;
|
|
1381
|
+
} & {
|
|
1382
|
+
itemKey?: string | Function | undefined;
|
|
1383
|
+
}>, {
|
|
1384
|
+
move: Function;
|
|
1385
|
+
tag: string;
|
|
1386
|
+
clone: Function;
|
|
1387
|
+
list: unknown[];
|
|
1388
|
+
modelValue: unknown[];
|
|
1389
|
+
componentData: Record<string, any>;
|
|
1390
|
+
}>;
|
|
1320
1391
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1321
1392
|
formData: {
|
|
1322
1393
|
type: ObjectConstructor;
|
|
1323
1394
|
default: () => {};
|
|
1324
1395
|
};
|
|
1325
|
-
defList: (ArrayConstructor | StringConstructor)[];
|
|
1326
1396
|
source: StringConstructor;
|
|
1327
1397
|
limitNum: {
|
|
1328
1398
|
default: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as e,computed as t,onMounted as u,onUnmounted as n}from"vue";import a from"moment";import r from"
|
|
1
|
+
import{reactive as e,computed as t,onMounted as u,onUnmounted as n}from"vue";import a from"moment";import"xe-utils";import r from"../../../../shared/utils/vexutilsExpand.js";const i=(i,l,o)=>{const{emit:v}=o,s=e({totalLen:0,timer:null,countdownStr:"",isTimeOut:!1,countdownRed:!1,filterArr:["LINEBAR","TITLE","CALLBACK_INTERFACE","SPREAD_PARAMS","REDIRECT","FRONT_ADDRESS","PROMPT","IMGCARD","RETURN_PATH","RICH_TEXT","SUCCESS_TIP"]}),m=t((()=>{var e;return null==(e=i.evaluateResultSetting)?void 0:e.evaluateStartTime})),d=t((()=>{const e=new Date(m.value);return!!r.isValidDate(e)&&e})),T=t((()=>{const{evaluateTime:e}=i.evaluateResultSetting;return+e})),c=t((()=>{if(!f.value)return!1;if(!T.value)return!1;const e=a(m.value).add(T.value,"minutes").valueOf();return l.curTime>=e||i.isFinished})),S=t((()=>c.value||l.banStart?"测评已结束":"开始测评")),R=t((()=>d.value&&!s.isTimeOut||c.value)),f=t((()=>!(!m.value||!d.value))),E=t((()=>{if(!m.value)return T.value;if(!T.value)return!1;if(d.value)return!0;const e=a(m.value).add(T.value,"minutes").valueOf();return l.curTime<e}));u((()=>{g()})),n((()=>{g()}));const w=e=>{g();const t=e-(new Date).getTime();if(t<=0)return s.countdownStr="00:00:00",s.isTimeOut=!0,void("countdown"==l.source&&v("closeEvaluateCountdown"));t<=9e5&&!s.countdownRed&&(s.countdownRed=!0);let u=parseInt(String(t/1e3/60/60/24))+"",n=parseInt(String(t/1e3/60/60%24)),a=parseInt(String(t/1e3/60%60)),r=parseInt(String(t/1e3%60));u&&(u+=":"),n=n>9?n+":":"0"+n+":",a=a>9?a+":":"0"+a+":",r=r>9?r:"0"+r,s.countdownStr=`${u}${n}${a}${r}`,s.timer=setTimeout((function(){w(e)}),1e3)},g=()=>{s.timer&&clearTimeout(s.timer),s.countdownRed=!1};return{evaluateState:s,evaluateStartTime:m,getEvaluateStartTime:d,getEvaluateText:S,showCountdown:E,showRange:f,getTotalLen:()=>{var e;const t=null==(e=i.formArray)?void 0:e.filter((e=>!s.filterArr.includes(e.type)&&!e.hide));t&&t.length&&(s.totalLen=t.length)},countdown:w,clearTimer:g,disabledEvaluate:R,isBanStart:()=>{if(!m.value||!T.value)return!1;if(!d.value)return!1;const e=a(m.value).add(T.value,"minutes").valueOf();return(new Date).getTime()>=e},getEvaluateTime:T}};export{i as useEvaluate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"xe-utils";import"moment";import e from"../../../../shared/utils/vexutilsExpand.js";const t=(t,i)=>{const n=e=>e.databaseTitle||e.title;return{nextLogicEvent:(t,o,s=[],l)=>{const{nextLogic:r,seq:c}=o;if(r&&r.next_logic_is&&r.condition.length){let _=9999,a=0;l||(_=((e=[])=>{const t=e.map((e=>"end"==e.next_subject?9999:+(e.next_subject||9999)));return Math.max.call(null,...t)})(r.condition),a=((e,t)=>{const{seq:o}=e;let s,l=t.map((e=>!!(e.seq>o&&e.isShow&&e.__isLogic__)&&e)),r=0,c=0,_=l.length;for(;c<_;c++){s=l[c];let e=i.form[n(s)];if(!e)continue;if(Array.isArray(e)&&!e.length)continue;const{nextLogic:t,seq:o,__isLogic__:_,__lastSeq__:a}=s;if(t.next_logic_is&&t.condition.length&&a){r=a;break}}return r})(o,s)),r.condition.some((n=>{const{value:l,next_subject:f}=n,m="end"==f?9999:f;if(a&&a>c&&a<_&&(_=a),"condition"==r.next_logic){let e=!1;if(e=Array.isArray(t)?t.includes(l):t===l,o.__isLogic__=e,o.__lastSeq__=c+1,e)return s.forEach((e=>{if(e.seq>c&&e.seq<m){e.isShow=!1;const t=e.val_key;i.form[t]&&(i.form[t]="")}else e.seq>=m&&e.seq<_&&(e.isShow=!0)})),!0;s.forEach((e=>{e.seq>c&&e.seq<m&&(e.isShow=!0)}))}else if("uncondition"==r.next_logic){let n=e.isEmpty(t);o.__isLogic__=!n,o.__lastSeq__=c+1,s.forEach((e=>{const t=e.val_key;e.seq>c&&e.seq<m&&(e.isShow=n,n||i.form[t]&&(i.form[t]=""))}))}}))}},handleDynamicDataRelation:(e,t,n)=>{let{targetSource:o}=t;if(!o||!Object.keys(o).length)return;if(!o.target_id)return;let{relationParam:s=[]}=o;s.length&&s.forEach((t=>{let o=n.find((e=>e.seq===t.relationElement));const s=o.val_key;if(o)if(e.length){let n=e.map((e=>e[t.relationField]||"/"))||"";i.form[s]=n.join(",")}else i.form[s]=""}))}}};export{t as useEvent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-choice-wrap .n-radio-input{height:14px;width:14px}.c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-choice-wrap .choose-other{flex:1}.c-choice-wrap .other-span{word-break:break-all}.c-choice-wrap.choice-wrap-1 label{width:100%}.c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 label{width:50%}.c-choice-wrap.choice-wrap-3 label{width:33%}.c-choice-wrap.choice-wrap-4 label{width:25%}.c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-bottom:50px;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale.c-scale-nobtn{padding-bottom:4px}.c-scale .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;padding-bottom:10px;transform-origin:0 0;width:100%}.c-scale .scale-container.scale-container-nopadding{height:100%}.c-scale .scale-container.scale-container-hasfooter{height:calc(100% - 50px)}.c-scale .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale .no-data-tip{height:100%;width:100%}.c-scale .lb-title{text-align:center}.c-scale .map-container{cursor:pointer}.c-scale .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale .linebar-div .n-divider{margin-top:4px}.c-scale .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale .img-card{width:100%}.main{box-sizing:border-box}.main .scale-label-required{font-weight:700}.main .required-text{color:#e02828;font-weight:700}.main .score-i{word-break:keep-all}.main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;bottom:0;box-sizing:border-box;display:flex;height:50px;left:0;position:absolute;width:100%}.footer .n-button+.n-button{margin-left:8px}.rich-text-content{word-break:break-all}.rich-text-content p{margin-bottom:0}.rich-text-content img{max-width:100%}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-answerParse .answer-key{line-height:20px}.c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-answerParse .answer-key span{word-break:break-all}.c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-answerParse.answerParse-success .answer-res{background:#91c850}.c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-evaluateCountdown .countdown span{line-height:18px}.c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-totalScore-warp div+div{margin-top:4px}.c-totalScore-warp span{color:#090909;font-weight:500}.c-totalScore-warp .score-result{color:#2d7aff}.c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap .svg-icon{color:#000;font-size:32px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.sign-com-wrap>span{color:#585858}.sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale li,.c-scale ul{list-style:none;margin:0;padding:0}.c-scale .n-input{text-align:left;width:100%}.c-scale .n-form-item{--n-label-height:unset!important}.c-scale .c-scle-form-item>.n-form-item-blank{display:block}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-address{max-width:500px}.c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-collection,.c-scale-collection .img-card{width:100%}.c-scale-collection.scale-collection-title{text-align:center}.c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-time-range{align-items:center;display:flex}.c-map-container{cursor:pointer;width:100%}.c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-upload{width:100%}.c-scale-upload .n-upload-file-list{display:flex}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
1
|
+
@font-face{font-family:scale-view-iconfont;src:url(scale-view-iconfont.ttf?t=1682489008262) format("truetype")}.scale-view-iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:scale-view-iconfont!important;font-size:14px;font-style:normal}.icon-scale-view-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-scale-view-shijian:before{content:"\e8c5"}.icon-scale-view-qianming:before{content:"\e6ca"}.icon-scale-view-cuo:before{content:"\e6e5"}.icon-scale-view-dui:before{content:"\e7c8"}.icon-scale-view-dengpao:before{content:"\e719"}.c-scale-view-block .c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-scale-view-block .c-choice-wrap .n-radio-input{height:14px;width:14px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-scale-view-block .c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-scale-view-block .c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-scale-view-block .c-choice-wrap .choose-other{flex:1}.c-scale-view-block .c-choice-wrap .other-span{word-break:break-all}.c-scale-view-block .c-choice-wrap.choice-wrap-1 label{width:100%}.c-scale-view-block .c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-scale-view-block .c-choice-wrap.choice-wrap-2 label{width:50%}.c-scale-view-block .c-choice-wrap.choice-wrap-3 label{width:33%}.c-scale-view-block .c-choice-wrap.choice-wrap-4 label{width:25%}.c-scale-view-block .c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block .c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-scale-view-block .c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-scale-view-block .c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-scale-view-block .c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale-view-block{box-sizing:border-box;color:rgba(0,0,0,.65);display:flex;flex-direction:column;height:100%;overflow:hidden;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale-view-block .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;transform-origin:0 0;width:100%}.c-scale-view-block .scale-container.scale-container-nopadding{display:flex;flex-direction:column;height:100%}.c-scale-view-block .scale-container.scale-container-hasfooter{flex:1}.c-scale-view-block .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale-view-block .lb-title{text-align:center}.c-scale-view-block .map-container{cursor:pointer}.c-scale-view-block .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale-view-block .linebar-div .n-divider{margin-top:4px}.c-scale-view-block .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale-view-block .img-card{width:100%}.c-scale-view-block .main{box-sizing:border-box}.c-scale-view-block .main .scale-label-required{font-weight:700}.c-scale-view-block .main .required-text{color:#e02828;font-weight:700}.c-scale-view-block .main .score-i{word-break:keep-all}.c-scale-view-block .main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.c-scale-view-block .main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.c-scale-view-block .footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;box-sizing:border-box;display:flex;flex-basis:50px;height:50px;width:100%}.c-scale-view-block .footer .n-button+.n-button{margin-left:8px}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-scale-view-block .c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-scale-view-block .c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-scale-view-block .c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-scale-view-block .c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-scale-view-block .c-answerParse .answer-key{line-height:20px}.c-scale-view-block .c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-key span{word-break:break-all}.c-scale-view-block .c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-scale-view-block .c-answerParse.answerParse-success .answer-res{background:#91c850}.c-scale-view-block .c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-scale-view-block .c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-scale-view-block .c-evaluateCountdown .countdown span{line-height:18px}.c-scale-view-block .c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-scale-view-block .c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-scale-view-block .c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-scale-view-block .c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-scale-view-block .c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-scale-view-block .c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-scale-view-block .c-totalScore-warp div+div{margin-top:4px}.c-scale-view-block .c-totalScore-warp span{color:#090909;font-weight:500}.c-scale-view-block .c-totalScore-warp .score-result{color:#2d7aff}.c-scale-view-block .c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap .scale-view-iconfont{color:#000;font-size:32px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.c-scale-view-block .sign-com-wrap>span{color:#585858}.c-scale-view-block .sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale-view-block li,.c-scale-view-block ul{list-style:none;margin:0;padding:0}.c-scale-view-block .n-input{text-align:left;width:100%}.c-scale-view-block .n-form-item{--n-label-height:unset!important}.c-scale-view-block .c-scle-form-item>.n-form-item-blank{display:block}.c-scale-view-block .no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.c-scale-view-block .no-data-tip>img{max-width:70%;width:260px}.c-scale-view-block .no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.c-scale-view-block .no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-view-block .c-scale-address{max-width:500px}.c-scale-view-block .c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-view-block .c-scale-collection,.c-scale-view-block .c-scale-collection .img-card{width:100%}.c-scale-view-block .c-scale-collection.scale-collection-title{text-align:center}.c-scale-view-block .c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-view-block .c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-view-block .c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-view-block .c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-scale-view-block .c-time-range{align-items:center;display:flex}.c-scale-view-block .c-map-container{cursor:pointer;width:100%}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-scale-view-block .c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-view-block .c-scale-upload{width:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list{display:flex}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-view-block .c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-view-block .c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-view-block .c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.c-scale-view-block .text-over-tooltip-components{display:inline-block;max-width:98%}.c-scale-view-block .text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-scale-view-block .text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.c-scale-view-block .text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.c-scale-view-block .text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
Binary file
|
|
@@ -101,9 +101,11 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
101
101
|
emitValue: (value: string | import("../../../es/shared/types").AnyObject[]) => void;
|
|
102
102
|
onClear: () => void;
|
|
103
103
|
onClick: (evt: Event) => void;
|
|
104
|
+
onKeydown: (evt: KeyboardEvent) => void;
|
|
104
105
|
cssVariable: {
|
|
105
106
|
'--menu-width': number;
|
|
106
107
|
};
|
|
108
|
+
eventBus: import("../../../es/shared/types").AnyObject;
|
|
107
109
|
uuid: string;
|
|
108
110
|
show: import("vue").Ref<boolean> | import("vue").WritableComputedRef<boolean>;
|
|
109
111
|
patternContent: import("vue").Ref<string>;
|
|
@@ -114,11 +116,13 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
114
116
|
inputRef: import("vue").Ref<any>;
|
|
115
117
|
popoverRef: import("vue").Ref<any>;
|
|
116
118
|
currentNode: import("vue").Ref<import("../../../es/shared/types").AnyObject | undefined>;
|
|
119
|
+
cursorNode: import("vue").Ref<import("../../../es/shared/types").AnyObject | undefined>;
|
|
117
120
|
loadingNode: import("vue").Ref<import("../../../es/shared/types").Nullable<import("../../../es/shared/types").AnyObject>>;
|
|
118
121
|
search: (payload?: {
|
|
119
122
|
type: "search" | "update";
|
|
120
123
|
node: import("../../../es/shared/types").AnyObject;
|
|
121
124
|
} | undefined, keyword?: string | undefined) => Promise<void>;
|
|
125
|
+
changeCursorNode: (node: import("../../../es/shared/types").AnyObject) => void;
|
|
122
126
|
NInput: any;
|
|
123
127
|
NPopover: any;
|
|
124
128
|
SearchMenu: import("vue").DefineComponent<{
|
|
@@ -141,7 +145,10 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
141
145
|
currentNode: {
|
|
142
146
|
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
143
147
|
};
|
|
144
|
-
|
|
148
|
+
cursorNode: {
|
|
149
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
150
|
+
};
|
|
151
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
152
|
childKey: {
|
|
146
153
|
type: StringConstructor;
|
|
147
154
|
default: string;
|
|
@@ -161,8 +168,12 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
161
168
|
currentNode: {
|
|
162
169
|
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
163
170
|
};
|
|
171
|
+
cursorNode: {
|
|
172
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
173
|
+
};
|
|
164
174
|
}>> & {
|
|
165
175
|
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onChangeCursor?: ((...args: any[]) => any) | undefined;
|
|
166
177
|
}, {
|
|
167
178
|
options: import("../../../es/shared/types").AnyObject[];
|
|
168
179
|
valueKey: string;
|