cnhis-design-vue 3.1.44-release.5 → 3.1.45-3.1.45-release.0.0
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/base-search/index.d.ts +0 -6
- package/es/components/base-search/src/index.vue.d.ts +0 -6
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/classification/index.d.ts +553 -75
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +551 -61
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +553 -75
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +1 -1
- package/es/components/classification/src/const/index.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +553 -75
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/fabric-chart/index.d.ts +5 -41
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -41
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/{useBirthProcess.d.ts → birthProcess/useBirthProcess.d.ts} +2 -2
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -0
- package/es/components/fabric-chart/src/hooks/{useBirthProcessChart.d.ts → birthProcess/useBirthProcessChart.d.ts} +3 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/index.d.ts +5 -7
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +6 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/index.d.ts +6 -0
- package/es/components/fabric-chart/src/hooks/temperature/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -0
- package/es/components/fabric-chart/src/hooks/{useCenter.d.ts → temperature/useCenter.d.ts} +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -0
- package/es/components/fabric-chart/src/hooks/{useLeft.d.ts → temperature/useLeft.d.ts} +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useRight.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -0
- package/es/components/fabric-chart/src/hooks/{useShadow.d.ts → temperature/useShadow.d.ts} +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +1 -0
- package/es/components/fabric-chart/src/hooks/{useTemperatureChart.d.ts → temperature/useTemperatureChart.d.ts} +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useTop.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -0
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +3 -3
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +0 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +0 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
- package/es/components/form-render/index.d.ts +0 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +0 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -1
- package/es/components/form-render/src/components/renderer/input.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/iho-table/index.d.ts +2 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +3 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- 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/separateRendererPlugin/editSeparate.vue2.js +1 -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.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +8 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +0 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -1
- package/es/components/picture-clipper/index.d.ts +59 -0
- package/es/components/picture-clipper/index.js +1 -0
- package/es/components/picture-clipper/src/PictureClipper.vue.d.ts +59 -0
- package/es/components/picture-clipper/src/PictureClipper.vue.js +1 -0
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +1 -0
- package/es/components/picture-clipper/style/index.css +1 -0
- package/es/components/quick-search/index.d.ts +0 -6
- package/es/components/quick-search/src/index.vue.d.ts +0 -6
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/shortcut-setter/index.d.ts +0 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +551 -48
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +134 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +140 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts +28 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.d.ts +54 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +61 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +68 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +47 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +551 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +551 -48
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/{Label.vue.d.ts → LabelInner.vue.d.ts} +1 -9
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{SelectLabel.vue.d.ts → LabelOut.vue.d.ts} +1 -9
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +1 -9
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +713 -8
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +0 -6
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -27
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/constants/index.d.ts +3 -0
- package/es/components/table-filter/src/constants/index.js +1 -0
- package/es/components/table-filter/src/directive/resize.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +4 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/fabricjs/index.js +1 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +0 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +0 -1
- package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useBottom.js +0 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +0 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +0 -1
- package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useOther.js +0 -1
- package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useRight.js +0 -1
- package/es/components/fabric-chart/src/hooks/useShadow.js +0 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +0 -1
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useTop.js +0 -1
- package/es/components/fabric-chart/src/utils/utils.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Label.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue2.js +0 -1
- package/es/shared/assets/img/failure.d.ts +0 -2
- package/es/shared/assets/img/failure.js +0 -1
- package/es/shared/assets/img/icon-asc.d.ts +0 -2
- package/es/shared/assets/img/icon-asc.js +0 -1
- package/es/shared/assets/img/icon-desc.d.ts +0 -2
- package/es/shared/assets/img/icon-desc.js +0 -1
- package/es/shared/assets/img/no-permission.d.ts +0 -2
- package/es/shared/assets/img/no-permission.js +0 -1
- package/es/shared/assets/img/nodata.d.ts +0 -2
- package/es/shared/assets/img/nodata.js +0 -1
- package/es/shared/assets/img/notfound.d.ts +0 -2
- package/es/shared/assets/img/notfound.js +0 -1
- package/es/shared/assets/img/qr.d.ts +0 -2
- package/es/shared/assets/img/qr.js +0 -1
- package/es/shared/assets/img/success.d.ts +0 -2
- package/es/shared/assets/img/success.js +0 -1
- package/es/shared/assets/img/video.d.ts +0 -2
- package/es/shared/assets/img/video.js +0 -1
- package/es/shared/assets/img/video_default_cover.d.ts +0 -2
- package/es/shared/assets/img/video_default_cover.js +0 -1
- package/es/shared/assets/img/video_hover.d.ts +0 -2
- package/es/shared/assets/img/video_hover.js +0 -1
- package/es/shared/assets/img/video_play_hover.d.ts +0 -2
- package/es/shared/assets/img/video_play_hover.js +0 -1
- package/es/shared/assets/img/xb_big.d.ts +0 -2
- package/es/shared/assets/img/xb_big.js +0 -1
- package/es/shared/assets/img/xb_small.d.ts +0 -2
- package/es/shared/assets/img/xb_small.js +0 -1
- /package/es/components/fabric-chart/src/{hooks/constant.d.ts → constants/index.d.ts} +0 -0
- /package/es/components/fabric-chart/src/{hooks/constant.js → constants/index.js} +0 -0
- /package/es/components/fabric-chart/src/utils/{utils.d.ts → index.d.ts} +0 -0
- /package/es/components/table-filter/src/components/{render-widget → classify-filter}/components/SelectLabel.vue.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as
|
|
1
|
+
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 下拉框 "),m(T)===m(v).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":E[2]||(E[2]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(v).DATE||m(T)===m(v).DATE_TIME?(a(),t(m(V),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[3]||(E[3]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[4]||(E[4]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(v).SELECTDYNAMIC?(a(),t(m(f),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[5]||(E[5]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(v).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[6]||(E[6]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(v).DATE_RANGE_INNER||m(T)===m(v).DATETIME_RANGE_INNER?(a(),t(m(s),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[7]||(E[7]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[8]||(E[8]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(v).SELECTLABEL?(a(),t(m(C),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[9]||(E[9]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{E as default};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
presetVal: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
paramCfg: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
presetVal: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>>;
|
|
32
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
33
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
34
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
35
|
+
dateType: any;
|
|
36
|
+
valueFormat: import("vue").ComputedRef<string>;
|
|
37
|
+
compType: import("vue").ComputedRef<any>;
|
|
38
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
39
|
+
widgetOptions: import("vue").ComputedRef<{
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[]>;
|
|
43
|
+
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
44
|
+
updateUnchangedValue: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
onConfirm: {
|
|
48
|
+
type: FunctionConstructor;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
attrs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
updateUnchangedValue: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
};
|
|
58
|
+
onConfirm: {
|
|
59
|
+
type: FunctionConstructor;
|
|
60
|
+
};
|
|
61
|
+
}>> & {}>>;
|
|
62
|
+
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
63
|
+
panelInstRef: import("vue").Ref<null>;
|
|
64
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
65
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
66
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
67
|
+
focus: () => any;
|
|
68
|
+
blur: () => any;
|
|
69
|
+
onUpdateShow: (show: boolean) => void;
|
|
70
|
+
onConfirm: (...args: any[]) => void;
|
|
71
|
+
NDatePicker: any;
|
|
72
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
|
+
updateUnchangedValue: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
};
|
|
76
|
+
onConfirm: {
|
|
77
|
+
type: FunctionConstructor;
|
|
78
|
+
};
|
|
79
|
+
}>>, {
|
|
80
|
+
updateUnchangedValue: boolean;
|
|
81
|
+
}>>;
|
|
82
|
+
NSelect: any;
|
|
83
|
+
WidgetValEnums: {
|
|
84
|
+
CUSTOM: string;
|
|
85
|
+
FIRST_VAL: string;
|
|
86
|
+
NOW: string;
|
|
87
|
+
TODAY: string;
|
|
88
|
+
TODAY_START: string;
|
|
89
|
+
TODAY_END: string;
|
|
90
|
+
TOMORROW: string;
|
|
91
|
+
TOMORROW_START: string;
|
|
92
|
+
TOMORROW_END: string;
|
|
93
|
+
YESTERDAY: string;
|
|
94
|
+
YESTERDAY_START: string;
|
|
95
|
+
YESTERDAY_END: string;
|
|
96
|
+
THIS_WEEK: string;
|
|
97
|
+
WEEK_START: string;
|
|
98
|
+
WEEK_END: string;
|
|
99
|
+
NEXT_WEEK: string;
|
|
100
|
+
LAST_WEEK: string;
|
|
101
|
+
THIS_MONTH: string;
|
|
102
|
+
MONTH_START: string;
|
|
103
|
+
MONTH_END: string;
|
|
104
|
+
NEXT_MONTH: string;
|
|
105
|
+
LAST_MONTH: string;
|
|
106
|
+
THIS_QUARTER: string;
|
|
107
|
+
NEXT_QUARTER: string;
|
|
108
|
+
LAST_QUARTER: string;
|
|
109
|
+
THIS_YEAR: string;
|
|
110
|
+
NEXT_YEAR: string;
|
|
111
|
+
LAST_YEAR: string;
|
|
112
|
+
};
|
|
113
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
|
+
paramCfg: {
|
|
115
|
+
type: ObjectConstructor;
|
|
116
|
+
default: null;
|
|
117
|
+
};
|
|
118
|
+
modelValue: {
|
|
119
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
120
|
+
default: null;
|
|
121
|
+
};
|
|
122
|
+
presetVal: {
|
|
123
|
+
type: StringConstructor;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
}>> & {
|
|
127
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
modelValue: string | number | unknown[];
|
|
131
|
+
presetVal: string;
|
|
132
|
+
paramCfg: Record<string, any>;
|
|
133
|
+
}>;
|
|
134
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./Date.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Date.vue"]]);export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,Fragment as r,createVNode as u,unref as o,isRef as p,createBlock as m,createCommentVNode as s}from"vue";import n from"../../../../../date-picker/index.js";import{NSelect as d}from"naive-ui";import{WidgetTypeEnums as i,WidgetValEnums as v}from"../../../types/enums.js";import{generateDefOptionsInApi as f}from"../../../tool/generateDefOptions.js";var y=e({__name:"Date",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:y}){const c=e,g=t({set(e){y("update:modelValue",e)},get:()=>c.modelValue}),T=t({set(e){y("update:presetVal",e)},get:()=>c.presetVal}),C=t((()=>M.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(M.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),M=t((()=>c.paramCfg._rawData.type)),V=t((()=>{var e;return null==(e=c.paramCfg)?void 0:e.mappingConfig})),b=t((()=>{const e=f(M.value,V.value).slice(0);return M.value!==i.DATE&&M.value!==i.DATE_TIME||e.unshift({label:"自定义输入",value:v.CUSTOM}),e}));return(e,t)=>(a(),l(r,null,[u(o(d),{style:{width:"120px"},class:"form-item",to:"body",value:o(T),"onUpdate:value":t[0]||(t[0]=e=>p(T)?T.value=e:null),options:o(b)},null,8,["value","options"]),o(T)===o(v).CUSTOM?(a(),m(o(n),{key:0,class:"form-item",type:o(C),clearable:"",to:"body",valueFormat:o(D),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>p(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):s("v-if",!0)],64))}});export{y as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
presetVal: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
paramCfg: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
presetVal: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>>;
|
|
32
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
33
|
+
startDate: import("vue").Ref<any>;
|
|
34
|
+
endDate: import("vue").Ref<any>;
|
|
35
|
+
valueFormat: import("vue").ComputedRef<string>;
|
|
36
|
+
dateFormat: import("vue").ComputedRef<string>;
|
|
37
|
+
compType: import("vue").ComputedRef<any>;
|
|
38
|
+
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
39
|
+
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
40
|
+
dateType: any;
|
|
41
|
+
widgetOptions: import("vue").ComputedRef<{
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[]>;
|
|
45
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
46
|
+
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
47
|
+
isStartDateDisabled: (ts: number) => boolean;
|
|
48
|
+
isEndDateDisabled: (ts: number) => boolean;
|
|
49
|
+
NSelect: any;
|
|
50
|
+
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
51
|
+
updateUnchangedValue: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
onConfirm: {
|
|
55
|
+
type: FunctionConstructor;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
attrs: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
updateUnchangedValue: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
};
|
|
65
|
+
onConfirm: {
|
|
66
|
+
type: FunctionConstructor;
|
|
67
|
+
};
|
|
68
|
+
}>> & {}>>;
|
|
69
|
+
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
70
|
+
panelInstRef: import("vue").Ref<null>;
|
|
71
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
72
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
73
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
74
|
+
focus: () => any;
|
|
75
|
+
blur: () => any;
|
|
76
|
+
onUpdateShow: (show: boolean) => void;
|
|
77
|
+
onConfirm: (...args: any[]) => void;
|
|
78
|
+
NDatePicker: any;
|
|
79
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
updateUnchangedValue: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
onConfirm: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
};
|
|
86
|
+
}>>, {
|
|
87
|
+
updateUnchangedValue: boolean;
|
|
88
|
+
}>>;
|
|
89
|
+
WidgetValEnums: {
|
|
90
|
+
CUSTOM: string;
|
|
91
|
+
FIRST_VAL: string;
|
|
92
|
+
NOW: string;
|
|
93
|
+
TODAY: string;
|
|
94
|
+
TODAY_START: string;
|
|
95
|
+
TODAY_END: string;
|
|
96
|
+
TOMORROW: string;
|
|
97
|
+
TOMORROW_START: string;
|
|
98
|
+
TOMORROW_END: string;
|
|
99
|
+
YESTERDAY: string;
|
|
100
|
+
YESTERDAY_START: string;
|
|
101
|
+
YESTERDAY_END: string;
|
|
102
|
+
THIS_WEEK: string;
|
|
103
|
+
WEEK_START: string;
|
|
104
|
+
WEEK_END: string;
|
|
105
|
+
NEXT_WEEK: string;
|
|
106
|
+
LAST_WEEK: string;
|
|
107
|
+
THIS_MONTH: string;
|
|
108
|
+
MONTH_START: string;
|
|
109
|
+
MONTH_END: string;
|
|
110
|
+
NEXT_MONTH: string;
|
|
111
|
+
LAST_MONTH: string;
|
|
112
|
+
THIS_QUARTER: string;
|
|
113
|
+
NEXT_QUARTER: string;
|
|
114
|
+
LAST_QUARTER: string;
|
|
115
|
+
THIS_YEAR: string;
|
|
116
|
+
NEXT_YEAR: string;
|
|
117
|
+
LAST_YEAR: string;
|
|
118
|
+
};
|
|
119
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
120
|
+
paramCfg: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default: null;
|
|
123
|
+
};
|
|
124
|
+
modelValue: {
|
|
125
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
126
|
+
default: null;
|
|
127
|
+
};
|
|
128
|
+
presetVal: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: null;
|
|
131
|
+
};
|
|
132
|
+
}>> & {
|
|
133
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
modelValue: string | number | unknown[];
|
|
137
|
+
presetVal: string;
|
|
138
|
+
paramCfg: Record<string, any>;
|
|
139
|
+
}>;
|
|
140
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./DateRange.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","DateRange.vue"]]);export{a as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as o,createVNode as s,unref as n,isRef as m,createCommentVNode as i}from"vue";import{NSelect as v}from"naive-ui";import d from"../../../../../date-picker/index.js";import p from"moment";import{cloneDeep as f,isString as c}from"lodash-es";import{WidgetTypeEnums as y,WidgetValEnums as b}from"../../../types/enums.js";import{widgetDateRangeOptions as D}from"../../../tool/baseOptions.js";const M={key:0,style:{display:"flex"}};var T=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const h=e,E=a(),A=a(),V=l((()=>{let e="";switch(g.value){case y.DATE:e="yyyy-MM-dd";break;case y.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),Y=l((()=>{let e="";switch(g.value){case y.DATE:e="YYYY-MM-DD";break;case y.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),g=l((()=>h.paramCfg._rawData.type)),w=l((()=>g.value===y.DATE?"初始日期":"初始时间")),C=l((()=>g.value===y.DATE?"截止日期":"截止时间")),O=l((()=>g.value.toLowerCase()||y.DATE.toLowerCase())),k=l((()=>{const e=f(D);return e.unshift({label:"自定义输入",value:b.CUSTOM}),e})),x=l({set(e){T("update:presetVal",e)},get:()=>h.presetVal});function U(e,a){switch(a){case"start":E.value=e;break;case"end":A.value=e}const l=E.value?p(E.value).format(Y.value):null,t=A.value?p(A.value).format(Y.value):null;T("update:modelValue",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function _(e){return!!A.value&&e>A.value}function j(e){return!!E.value&&e<E.value}return t((()=>h.modelValue),(e=>{if(e&&c(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(E.value=p(a.trim()).valueOf()),void(l.trim()&&(A.value=p(l.trim()).valueOf()))}E.value=A.value=null}),{immediate:!0}),(e,a)=>(u(),r(o,null,[s(n(v),{style:{width:"120px"},class:"form-item",to:"body",value:n(x),"onUpdate:value":a[0]||(a[0]=e=>m(x)?x.value=e:null),options:n(k)},null,8,["value","options"]),n(x)===n(b).CUSTOM?(u(),r("div",M,[s(n(d),{type:n(O),"default-time":"00:00:00",clearable:"",to:"body",valueFormat:n(V),placeholder:n(w),value:E.value,"is-date-disabled":_,"onUpdate:value":a[1]||(a[1]=e=>U(e,"start"))},null,8,["type","valueFormat","placeholder","value"]),s(n(d),{style:{"margin-left":"5px"},type:n(O),"default-time":"23:59:59",clearable:"",to:"body",valueFormat:n(V),placeholder:n(C),value:A.value,"is-date-disabled":j,"onUpdate:value":a[2]||(a[2]=e=>U(e,"end"))},null,8,["type","valueFormat","placeholder","value"])])):i("v-if",!0)],64))}});export{T as default};
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
}>> & {
|
|
13
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
16
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
17
|
+
NInput: any;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
modelValue: string | number | unknown[];
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./InputFilter.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","InputFilter.vue"]]);export{t as default};
|
package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as l,openBlock as a,createBlock as u,unref as t,isRef as r}from"vue";import{NInput as m}from"naive-ui";var o=e({__name:"InputFilter",props:{modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:o}){const n=e,p=l({set(e){o("update:modelValue",e)},get:()=>n.modelValue});return(e,l)=>(a(),u(t(m),{value:t(p),"onUpdate:value":l[0]||(l[0]=e=>r(p)?p.value=e:null),maxlength:"255",clearable:""},null,8,["value"]))}});export{o as default};
|
package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
}>> & {
|
|
13
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
16
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
17
|
+
NInputNumber: any;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
modelValue: string | number | unknown[];
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./InputNumber.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var u=r(e,[["__file","InputNumber.vue"]]);export{u as default};
|
package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as t,isRef as m}from"vue";import{NInputNumber as r}from"naive-ui";var o=e({__name:"InputNumber",props:{modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:o}){const p=e,n=u({set(e){o("update:modelValue",e)},get:()=>p.modelValue});return(e,u)=>(l(),a(t(r),{class:"form-item",value:t(n),"onUpdate:value":u[0]||(u[0]=e=>m(n)?n.value=e:null)},null,8,["value"]))}});export{o as default};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
paramCfg: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>>;
|
|
23
|
+
startNumber: import("vue").Ref<any>;
|
|
24
|
+
endNumber: import("vue").Ref<any>;
|
|
25
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
26
|
+
handleChange: (val: number | null, key: string) => void;
|
|
27
|
+
NInputGroup: import("vue").DefineComponent<{
|
|
28
|
+
[x: string]: never;
|
|
29
|
+
[x: number]: never;
|
|
30
|
+
[x: symbol]: never;
|
|
31
|
+
}, {
|
|
32
|
+
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
[x: string]: never;
|
|
35
|
+
[x: number]: never;
|
|
36
|
+
[x: symbol]: never;
|
|
37
|
+
}>>, {}>;
|
|
38
|
+
NInputNumber: any;
|
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
paramCfg: {
|
|
41
|
+
type: ObjectConstructor;
|
|
42
|
+
default: null;
|
|
43
|
+
};
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
modelValue: string | number | unknown[];
|
|
52
|
+
paramCfg: Record<string, any>;
|
|
53
|
+
}>;
|
|
54
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./InputNumberGroup.vue2.js";import u from"../../../../../../_virtual/_plugin-vue_export-helper.js";var e=u(r,[["__file","InputNumberGroup.vue"]]);export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as l,watch as u,openBlock as t,createBlock as a,unref as r,withCtx as m,createVNode as n,createElementVNode as i}from"vue";import{NInputGroup as d,NInputNumber as o}from"naive-ui";import{isString as s}from"lodash-es";const p=i("span",{class:"divider"}," ~ ",-1);var v=e({__name:"InputNumberGroup",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null}},emits:["update:modelValue"],setup(e,{emit:i}){const v=e,c=l(),b=l();function f(e,l){var u,t;let a="";switch(l){case"startNumber":a=`${null!=e?e:""} ~ ${null!=(u=b.value)?u:""}`;break;case"endNumber":a=`${null!=(t=c.value)?t:""} ~ ${null!=e?e:""}`}const r=a.split(" ~ ").some((e=>e.trim()));i("update:modelValue",r?a:"")}return u((()=>v.modelValue),(e=>{if(c.value=b.value=null,e&&s(e)&&e.includes("~")){const[l,u]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(u.trim()&&(b.value=Number(u.trim())))}}),{immediate:!0}),(e,l)=>(t(),a(r(d),{class:"render-widget-input-number-group"},{default:m((()=>[n(r(o),{style:{width:"106px"},placeholder:"最小值",value:c.value,"onUpdate:value":l[0]||(l[0]=e=>f(e,"startNumber"))},null,8,["value"]),p,n(r(o),{style:{width:"106px"},placeholder:"最大值",value:b.value,"onUpdate:value":l[1]||(l[1]=e=>f(e,"endNumber"))},null,8,["value"])])),_:1}))}});export{v as default};
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SelectOption } from 'naive-ui';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
paramCfg: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: null;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
paramCfg: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
}>> & {
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
25
|
+
$attrs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
29
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
30
|
+
isLoading: import("vue").Ref<boolean>;
|
|
31
|
+
filterApiConfig: import("../../../../..").AnyObject;
|
|
32
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
33
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
34
|
+
isMultiple: import("vue").ComputedRef<boolean>;
|
|
35
|
+
searchOptions: (keyword: string) => Promise<any>;
|
|
36
|
+
_handleSearch: (query: string) => Promise<void>;
|
|
37
|
+
handleSearch: (query: string) => Promise<void>;
|
|
38
|
+
handleInitData: () => Promise<void>;
|
|
39
|
+
renderLabel: (option: SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>;
|
|
45
|
+
NSelect: any;
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
paramCfg: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: null;
|
|
50
|
+
};
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
}>> & {
|
|
56
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
modelValue: string | number | unknown[];
|
|
59
|
+
paramCfg: Record<string, any>;
|
|
60
|
+
}>;
|
|
61
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./SelectDynamic.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectDynamic.vue"]]);export{t as default};
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as t,inject as o,computed as n,openBlock as l,createBlock as i,unref as r,isRef as s,h as u}from"vue";import{NSelect as p,NTag as c}from"naive-ui";import{WidgetOptionEnums as d}from"../../../types/enums.js";import{useDebounceFn as m}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as y}from"../../../constants/index.js";var g=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:g}){const v=e,{handleGetConfigApi:b}=f(),h=a(),w=t([]),C=t(!1),I=o(y),S=n({set(e){g("update:modelValue",e)},get:()=>v.modelValue}),x=n((()=>{var e;return null==(e=v.paramCfg)?void 0:e.optionSetting})),j=n((()=>x.value===d.MULTIPLE));async function K(e){try{const{dynamicOptionInfo:a}=v.paramCfg.optionInfo;if(a){const{autograph:t,dataSourceId:o,dataSourceType:n,filterKeys:l,showKeys:i,valueKey:r}=a;let s={wordbookId:o,autograph:t,wordbookType:n,fieldKeys:l,page:1};l.length>0&&(s[l[0]]=e),C.value=!0;let u=await b(s,"requestDynamicSelect",{},I);if(u){const{fieldList:e=[],rows:a=[]}=u,t=a.map((e=>({...e,label:e[i[0]],value:e[r]})));return w.value=t,t}}}catch(e){console.log(e)}finally{C.value=!1}}const O=m((async e=>{await async function(e){const{manualMapping:a}=h;if(!a){const a=e.trim();await K(a)}}(e)}),300);async function k(){const{dynamicOptionInfo:e}=v.paramCfg.optionInfo;Object.keys(e).length>0&&I&&await K("")}function T(e){const{dynamicOptionInfo:a}=v.paramCfg.optionInfo,{showKeys:t=[]}=a;return a&&t.length>0?u("div",{class:"select-widget-dynamic-option"},t.map((a=>u("span",{class:"select-widget-dynamic-item"},e[a])))):u("div",e.label)}function V({option:e,handleClose:a}){return j.value?u(c,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>u("div",e.label)}):u("div",e.label)}return k(),(e,a)=>(l(),i(r(p),{to:"body",value:r(S),"onUpdate:value":a[0]||(a[0]=e=>s(S)?S.value=e:null),loading:C.value,options:w.value,remote:!0,"render-label":T,"render-tag":V,multiple:r(j),clearable:"",filterable:"",maxTagCount:"responsive",style:{width:"200px"},onSearch:r(O),onClear:k},null,8,["value","loading","options","multiple","onSearch"]))}});export{g as default};
|
package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
paramCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
widgetType: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
paramCfg: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
widgetType: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
32
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
33
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
34
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
35
|
+
widgetOptions: import("vue").ComputedRef<{
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
NSelect: any;
|
|
40
|
+
WidgetOptionEnums: {
|
|
41
|
+
RADIO: string;
|
|
42
|
+
MULTIPLE: string;
|
|
43
|
+
ALL: string;
|
|
44
|
+
SELECT_TIME: string;
|
|
45
|
+
PAST_TIME: string;
|
|
46
|
+
FUTURE_TIME: string;
|
|
47
|
+
};
|
|
48
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
paramCfg: {
|
|
50
|
+
type: ObjectConstructor;
|
|
51
|
+
default: null;
|
|
52
|
+
};
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
widgetType: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
modelValue: string | number | unknown[];
|
|
65
|
+
widgetType: string;
|
|
66
|
+
paramCfg: Record<string, any>;
|
|
67
|
+
}>;
|
|
68
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./SelectFilter.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","SelectFilter.vue"]]);export{t as default};
|
package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as l,createBlock as a,unref as o,isRef as u}from"vue";import{NSelect as r}from"naive-ui";import{WidgetOptionEnums as p}from"../../../types/enums.js";import{generateDefOptionsInApi as i}from"../../../tool/generateDefOptions.js";var m=e({__name:"SelectFilter",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},widgetType:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:m}){const n=e,d=t({set(e){m("update:modelValue",e)},get:()=>n.modelValue}),s=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.optionSetting})),f=t((()=>{var e;return null==(e=n.paramCfg)?void 0:e.mappingConfig})),g=t((()=>i(n.widgetType,f.value).slice(0)));return(e,t)=>(l(),a(o(r),{style:{width:"200px"},class:"form-item",value:o(d),"onUpdate:value":t[0]||(t[0]=e=>u(d)?d.value=e:null),to:"body",filterable:"",options:o(g),multiple:o(s)===o(p).MULTIPLE,maxTagCount:1},null,8,["value","options","multiple"]))}});export{m as default};
|