cnhis-design-vue 3.2.7-beta.3 → 3.2.7-beta.31
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +87 -87
- package/es/components/base-search/index.d.ts +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/button-print/index.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
- package/es/components/classification/index.d.ts +60 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +60 -5
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.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 +11 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +40 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +40 -3
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +302 -78
- package/es/components/iho-chat/src/Index.vue.d.ts +302 -78
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +35 -13
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +41 -14
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +50 -14
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +24 -4
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +60 -11
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +62 -24
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/hooks/useSession.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +34 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +21 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/directive/drag-move.d.ts +3 -0
- package/es/components/scale-view/src/directive/drag-move.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +16 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/components/time-line/index.d.ts +4 -4
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue2.js +1 -1
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/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/table_style_2.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/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
- 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/iho-table/src/plugins/headerPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as p,h as f}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as S}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as A}from"lodash-es";var L=e({__name:"SelectDynamic",props:{value:{type:Array},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:L}){const N=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(O))]),M=l([]),V=l(),F=l(0),H={class:"select-dynamic-popover"},Q=u((()=>I.multiple)),R=u((()=>{const{widgetCfg:e}=N.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=N.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>F.value>0&&U.value>=F.value)),B=u((()=>{var e;if(Array.isArray(N.value)&&N.value.length>0){const e=N.value;if(X(e),e.includes(O.value)){const e=_.value.find((e=>e.value===O.value)),a=e||O;return Q.value?[a]:JSON.stringify(a)}if(!Q.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=N.value)?e:null})),G=u((()=>{if(Object.keys(R.value).length>0){const{defaultParams:e=[]}=R.value;return w(e)&&!N.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=N.componentCfg,{linkageFieldKeys:l=[]}=a;C(N.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),L("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(V.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(R.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=R.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==S.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=A(t);q.value&&t.unshift(JSON.parse(JSON.stringify(O))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,F.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){V.value=e.trim(),U.value=1,await ee(V.value,U.value)}(e)}),300);async function le(){Object.keys(R.value).length>0&&T&&await ee("",U.value)}async function te(){L("update:value",null),await le()}function ue(e){V.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(Q.value){const l=e.value;return f(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(N.value)&&N.value.length>0){const e=N.value,a=e.indexOf(l.value);a>-1&&(e.splice(a,1),L("update:value",e.length>0?e:null))}}},{default:()=>f("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return f("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":H,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[p(k,r(s(I),{oldValue:N.value,loading:K.value,dynamicOptionInfo:s(R),fieldTitleList:W.value,optionList:_.value,isMultiple:s(Q),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["oldValue","loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{L as default};
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { AnyObject } from '../../../../../../../shared/types';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
|
+
oldValue: {
|
5
|
+
type: PropType<AnyObject[]>;
|
6
|
+
default: () => never[];
|
7
|
+
};
|
4
8
|
dynamicOptionInfo: {
|
5
9
|
type: PropType<AnyObject>;
|
6
10
|
default: () => {};
|
@@ -36,6 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
40
|
}, {
|
37
41
|
selectMinWidth: number;
|
38
42
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
43
|
+
oldValue: {
|
44
|
+
type: PropType<AnyObject[]>;
|
45
|
+
default: () => never[];
|
46
|
+
};
|
39
47
|
dynamicOptionInfo: {
|
40
48
|
type: PropType<AnyObject>;
|
41
49
|
default: () => {};
|
@@ -124,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
124
132
|
ArrowBack: 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<{}>>, {}>;
|
125
133
|
ArrowForward: 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<{}>>, {}>;
|
126
134
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
135
|
+
oldValue: {
|
136
|
+
type: PropType<AnyObject[]>;
|
137
|
+
default: () => never[];
|
138
|
+
};
|
127
139
|
dynamicOptionInfo: {
|
128
140
|
type: PropType<AnyObject>;
|
129
141
|
default: () => {};
|
@@ -162,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
162
174
|
}, {
|
163
175
|
isMultiple: boolean;
|
164
176
|
loading: boolean;
|
177
|
+
oldValue: AnyObject[];
|
165
178
|
dynamicOptionInfo: AnyObject;
|
166
179
|
fieldTitleList: AnyObject[];
|
167
180
|
optionList: AnyObject[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as t,computed as
|
1
|
+
import{defineComponent as e,ref as t,computed as l,withDirectives as a,openBlock as i,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as f,withCtx as m,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as S}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as P}from"../../../../types/enums.js";import{ArrowBack as x,ArrowForward as M}from"@vicons/ionicons5";import{WholeSelectObj as O}from"../../helpers/selectExtraMap.js";const W={key:0,class:"dynamic-header"},_={class:"dynamic-content"},w=["onClick"],V={key:0,class:"content"},j={class:"content"},B={class:"dynamic-pagination"};var C=e({__name:"index",props:{oldValue:{type:Array,default:()=>[]},dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:C}){const z=e,A=t(200),H=l((()=>{var e,t;return null!=(t=null==(e=z.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=l((()=>H.value&&H.value.length>0?H.value.map((e=>{let t="";return z.fieldTitleList.forEach((l=>{l.columnName===e&&(t=l.title)})),t})):[])),N=l((()=>!z.optionList.filter((e=>e.label!=O.label)).length));function R(e){const t=z.curPage+e;C("updatePage",t)}function T({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function K(){}return(t,l)=>a((i(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(i(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(i(),n(d,{key:1},[c(N)?(i(),s(c(g),{key:0,description:"无数据"})):(i(),n(d,{key:1},[c(I)&&c(I).length>1?(i(),n("div",W,[(i(!0),n(d,null,u(c(I),(e=>(i(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",_,[(i(!0),n(d,null,u(e.optionList,(t=>(i(),n("li",{class:f(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,l,a,i;if(!z.isMultiple||e.value===P.WHOLE)return null==(t=z.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void C("updateSelect",[e.value]);null==(l=z.optionList)||l.forEach((e=>{e.value===P.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=z.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));if(z.oldValue&&(null==(i=z.oldValue)?void 0:i.length)>0){const t=[...new Set([...z.oldValue,...n])];return e.actived?C("updateSelect",t):C("updateSelect",t.filter((t=>t!=e.value)))}C("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(P).WHOLE?(i(),n("span",V,r(t.label),1)):(i(!0),n(d,{key:1},u(c(H),(e=>(i(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:m((()=>[v("span",j,r(t[e]),1)])),default:m((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,w)))),128))]),v("div",B,[h(c(L),null,{default:m((()=>[h(c(b),{onClick:l[0]||(l[0]=e=>R(-1)),disabled:e.curPage<=1},{icon:m((()=>[h(c(E),{component:c(x),size:"16"},null,8,["component"])])),default:m((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:l[1]||(l[1]=e=>R(1)),disabled:e.isLastPage},{icon:m((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:m((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(S),{mode:"VR",onMove:T,onEnd:K}]])}});export{C as default};
|
@@ -204,6 +204,10 @@ declare const DateInner: import("vue").DefineComponent<{
|
|
204
204
|
allowedInvalidValue: {
|
205
205
|
type: StringConstructor;
|
206
206
|
};
|
207
|
+
to: {
|
208
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
209
|
+
default: string;
|
210
|
+
};
|
207
211
|
}, {
|
208
212
|
attrs: {
|
209
213
|
[x: string]: unknown;
|
@@ -224,6 +228,10 @@ declare const DateInner: import("vue").DefineComponent<{
|
|
224
228
|
allowedInvalidValue: {
|
225
229
|
type: StringConstructor;
|
226
230
|
};
|
231
|
+
to: {
|
232
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
233
|
+
default: string;
|
234
|
+
};
|
227
235
|
}>> & {
|
228
236
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
229
237
|
}>>;
|
@@ -260,10 +268,15 @@ declare const DateInner: import("vue").DefineComponent<{
|
|
260
268
|
allowedInvalidValue: {
|
261
269
|
type: StringConstructor;
|
262
270
|
};
|
271
|
+
to: {
|
272
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
273
|
+
default: string;
|
274
|
+
};
|
263
275
|
}>> & {
|
264
276
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
265
277
|
}, {
|
266
278
|
updateUnchangedValue: boolean;
|
279
|
+
to: string | false | HTMLElement;
|
267
280
|
}>>;
|
268
281
|
DateQuickBtn: import("vue").DefineComponent<{
|
269
282
|
componentCfg: {
|
@@ -452,6 +465,10 @@ declare const DateOut: import("vue").DefineComponent<{
|
|
452
465
|
allowedInvalidValue: {
|
453
466
|
type: StringConstructor;
|
454
467
|
};
|
468
|
+
to: {
|
469
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
470
|
+
default: string;
|
471
|
+
};
|
455
472
|
}, {
|
456
473
|
attrs: {
|
457
474
|
[x: string]: unknown;
|
@@ -472,6 +489,10 @@ declare const DateOut: import("vue").DefineComponent<{
|
|
472
489
|
allowedInvalidValue: {
|
473
490
|
type: StringConstructor;
|
474
491
|
};
|
492
|
+
to: {
|
493
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
494
|
+
default: string;
|
495
|
+
};
|
475
496
|
}>> & {
|
476
497
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
477
498
|
}>>;
|
@@ -508,10 +529,15 @@ declare const DateOut: import("vue").DefineComponent<{
|
|
508
529
|
allowedInvalidValue: {
|
509
530
|
type: StringConstructor;
|
510
531
|
};
|
532
|
+
to: {
|
533
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
534
|
+
default: string;
|
535
|
+
};
|
511
536
|
}>> & {
|
512
537
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
513
538
|
}, {
|
514
539
|
updateUnchangedValue: boolean;
|
540
|
+
to: string | false | HTMLElement;
|
515
541
|
}>>;
|
516
542
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
517
543
|
componentCfg: {
|
@@ -662,6 +688,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
|
|
662
688
|
allowedInvalidValue: {
|
663
689
|
type: StringConstructor;
|
664
690
|
};
|
691
|
+
to: {
|
692
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
693
|
+
default: string;
|
694
|
+
};
|
665
695
|
}, {
|
666
696
|
attrs: {
|
667
697
|
[x: string]: unknown;
|
@@ -682,6 +712,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
|
|
682
712
|
allowedInvalidValue: {
|
683
713
|
type: StringConstructor;
|
684
714
|
};
|
715
|
+
to: {
|
716
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
717
|
+
default: string;
|
718
|
+
};
|
685
719
|
}>> & {
|
686
720
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
687
721
|
}>>;
|
@@ -718,10 +752,15 @@ declare const DateRangeInner: import("vue").DefineComponent<{
|
|
718
752
|
allowedInvalidValue: {
|
719
753
|
type: StringConstructor;
|
720
754
|
};
|
755
|
+
to: {
|
756
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
757
|
+
default: string;
|
758
|
+
};
|
721
759
|
}>> & {
|
722
760
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
723
761
|
}, {
|
724
762
|
updateUnchangedValue: boolean;
|
763
|
+
to: string | false | HTMLElement;
|
725
764
|
}>>;
|
726
765
|
DateQuickBtn: import("vue").DefineComponent<{
|
727
766
|
componentCfg: {
|
@@ -917,6 +956,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
|
|
917
956
|
allowedInvalidValue: {
|
918
957
|
type: StringConstructor;
|
919
958
|
};
|
959
|
+
to: {
|
960
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
961
|
+
default: string;
|
962
|
+
};
|
920
963
|
}, {
|
921
964
|
attrs: {
|
922
965
|
[x: string]: unknown;
|
@@ -937,6 +980,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
|
|
937
980
|
allowedInvalidValue: {
|
938
981
|
type: StringConstructor;
|
939
982
|
};
|
983
|
+
to: {
|
984
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
985
|
+
default: string;
|
986
|
+
};
|
940
987
|
}>> & {
|
941
988
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
942
989
|
}>>;
|
@@ -973,10 +1020,15 @@ declare const DateRangeOut: import("vue").DefineComponent<{
|
|
973
1020
|
allowedInvalidValue: {
|
974
1021
|
type: StringConstructor;
|
975
1022
|
};
|
1023
|
+
to: {
|
1024
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1025
|
+
default: string;
|
1026
|
+
};
|
976
1027
|
}>> & {
|
977
1028
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
978
1029
|
}, {
|
979
1030
|
updateUnchangedValue: boolean;
|
1031
|
+
to: string | false | HTMLElement;
|
980
1032
|
}>>;
|
981
1033
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
982
1034
|
type: {
|
@@ -1158,7 +1210,7 @@ declare const Select: import("vue").DefineComponent<{
|
|
1158
1210
|
}, {}>;
|
1159
1211
|
declare const SelectDynamic: import("vue").DefineComponent<{
|
1160
1212
|
value: {
|
1161
|
-
type: (
|
1213
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1162
1214
|
};
|
1163
1215
|
componentCfg: {
|
1164
1216
|
type: ObjectConstructor;
|
@@ -1171,7 +1223,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1171
1223
|
};
|
1172
1224
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1173
1225
|
value: {
|
1174
|
-
type: (
|
1226
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1175
1227
|
};
|
1176
1228
|
componentCfg: {
|
1177
1229
|
type: ObjectConstructor;
|
@@ -1201,7 +1253,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1201
1253
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
1202
1254
|
isShowWhole: import("vue").ComputedRef<any>;
|
1203
1255
|
isLastPage: import("vue").ComputedRef<boolean>;
|
1204
|
-
valueCp: import("vue").ComputedRef<string |
|
1256
|
+
valueCp: import("vue").ComputedRef<string | any[] | {
|
1205
1257
|
label: any;
|
1206
1258
|
value: any;
|
1207
1259
|
} | null>;
|
@@ -1222,6 +1274,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1222
1274
|
init: () => void;
|
1223
1275
|
NSelect: any;
|
1224
1276
|
SelectDynamicOption: import("vue").DefineComponent<{
|
1277
|
+
oldValue: {
|
1278
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1279
|
+
default: () => never[];
|
1280
|
+
};
|
1225
1281
|
dynamicOptionInfo: {
|
1226
1282
|
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1227
1283
|
default: () => {};
|
@@ -1257,6 +1313,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1257
1313
|
}, {
|
1258
1314
|
selectMinWidth: number;
|
1259
1315
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1316
|
+
oldValue: {
|
1317
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1318
|
+
default: () => never[];
|
1319
|
+
};
|
1260
1320
|
dynamicOptionInfo: {
|
1261
1321
|
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1262
1322
|
default: () => {};
|
@@ -1345,6 +1405,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1345
1405
|
ArrowBack: 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<{}>>, {}>;
|
1346
1406
|
ArrowForward: 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<{}>>, {}>;
|
1347
1407
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1408
|
+
oldValue: {
|
1409
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1410
|
+
default: () => never[];
|
1411
|
+
};
|
1348
1412
|
dynamicOptionInfo: {
|
1349
1413
|
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
|
1350
1414
|
default: () => {};
|
@@ -1383,6 +1447,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1383
1447
|
}, {
|
1384
1448
|
isMultiple: boolean;
|
1385
1449
|
loading: boolean;
|
1450
|
+
oldValue: import("../../../../../../shared/types").AnyObject[];
|
1386
1451
|
dynamicOptionInfo: import("../../../../../../shared/types").AnyObject;
|
1387
1452
|
fieldTitleList: import("../../../../../../shared/types").AnyObject[];
|
1388
1453
|
optionList: import("../../../../../../shared/types").AnyObject[];
|
@@ -1392,7 +1457,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
1392
1457
|
}>;
|
1393
1458
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1394
1459
|
value: {
|
1395
|
-
type: (
|
1460
|
+
type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
|
1396
1461
|
};
|
1397
1462
|
componentCfg: {
|
1398
1463
|
type: ObjectConstructor;
|
@@ -147,7 +147,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
147
147
|
} | {
|
148
148
|
component: import("vue").DefineComponent<{
|
149
149
|
value: {
|
150
|
-
type: (
|
150
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
151
151
|
};
|
152
152
|
componentCfg: {
|
153
153
|
type: ObjectConstructor;
|
@@ -160,7 +160,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
160
160
|
};
|
161
161
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
162
162
|
value: {
|
163
|
-
type: (
|
163
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
164
164
|
};
|
165
165
|
componentCfg: {
|
166
166
|
type: ObjectConstructor;
|
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
190
190
|
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
191
191
|
isShowWhole: import("vue").ComputedRef<any>;
|
192
192
|
isLastPage: import("vue").ComputedRef<boolean>;
|
193
|
-
valueCp: import("vue").ComputedRef<string |
|
193
|
+
valueCp: import("vue").ComputedRef<string | any[] | {
|
194
194
|
label: any;
|
195
195
|
value: any;
|
196
196
|
} | null>;
|
@@ -211,6 +211,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
211
211
|
init: () => void;
|
212
212
|
NSelect: any;
|
213
213
|
SelectDynamicOption: import("vue").DefineComponent<{
|
214
|
+
oldValue: {
|
215
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
216
|
+
default: () => never[];
|
217
|
+
};
|
214
218
|
dynamicOptionInfo: {
|
215
219
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
216
220
|
default: () => {};
|
@@ -246,6 +250,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
246
250
|
}, {
|
247
251
|
selectMinWidth: number;
|
248
252
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
253
|
+
oldValue: {
|
254
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
255
|
+
default: () => never[];
|
256
|
+
};
|
249
257
|
dynamicOptionInfo: {
|
250
258
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
251
259
|
default: () => {};
|
@@ -334,6 +342,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
334
342
|
ArrowBack: 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<{}>>, {}>;
|
335
343
|
ArrowForward: 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<{}>>, {}>;
|
336
344
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
345
|
+
oldValue: {
|
346
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
347
|
+
default: () => never[];
|
348
|
+
};
|
337
349
|
dynamicOptionInfo: {
|
338
350
|
type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
|
339
351
|
default: () => {};
|
@@ -372,6 +384,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
372
384
|
}, {
|
373
385
|
isMultiple: boolean;
|
374
386
|
loading: boolean;
|
387
|
+
oldValue: import("../../../../../shared/types").AnyObject[];
|
375
388
|
dynamicOptionInfo: import("../../../../../shared/types").AnyObject;
|
376
389
|
fieldTitleList: import("../../../../../shared/types").AnyObject[];
|
377
390
|
optionList: import("../../../../../shared/types").AnyObject[];
|
@@ -381,7 +394,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
381
394
|
}>;
|
382
395
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
383
396
|
value: {
|
384
|
-
type: (
|
397
|
+
type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
|
385
398
|
};
|
386
399
|
componentCfg: {
|
387
400
|
type: ObjectConstructor;
|
@@ -504,6 +517,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
504
517
|
allowedInvalidValue: {
|
505
518
|
type: StringConstructor;
|
506
519
|
};
|
520
|
+
to: {
|
521
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
522
|
+
default: string;
|
523
|
+
};
|
507
524
|
}, {
|
508
525
|
attrs: {
|
509
526
|
[x: string]: unknown;
|
@@ -524,6 +541,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
524
541
|
allowedInvalidValue: {
|
525
542
|
type: StringConstructor;
|
526
543
|
};
|
544
|
+
to: {
|
545
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
546
|
+
default: string;
|
547
|
+
};
|
527
548
|
}>> & {
|
528
549
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
529
550
|
}>>;
|
@@ -560,10 +581,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
560
581
|
allowedInvalidValue: {
|
561
582
|
type: StringConstructor;
|
562
583
|
};
|
584
|
+
to: {
|
585
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
586
|
+
default: string;
|
587
|
+
};
|
563
588
|
}>> & {
|
564
589
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
565
590
|
}, {
|
566
591
|
updateUnchangedValue: boolean;
|
592
|
+
to: string | false | HTMLElement;
|
567
593
|
}>>;
|
568
594
|
DateQuickBtn: import("vue").DefineComponent<{
|
569
595
|
componentCfg: {
|
@@ -766,6 +792,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
766
792
|
allowedInvalidValue: {
|
767
793
|
type: StringConstructor;
|
768
794
|
};
|
795
|
+
to: {
|
796
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
797
|
+
default: string;
|
798
|
+
};
|
769
799
|
}, {
|
770
800
|
attrs: {
|
771
801
|
[x: string]: unknown;
|
@@ -786,6 +816,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
786
816
|
allowedInvalidValue: {
|
787
817
|
type: StringConstructor;
|
788
818
|
};
|
819
|
+
to: {
|
820
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
821
|
+
default: string;
|
822
|
+
};
|
789
823
|
}>> & {
|
790
824
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
791
825
|
}>>;
|
@@ -822,10 +856,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
822
856
|
allowedInvalidValue: {
|
823
857
|
type: StringConstructor;
|
824
858
|
};
|
859
|
+
to: {
|
860
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
861
|
+
default: string;
|
862
|
+
};
|
825
863
|
}>> & {
|
826
864
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
827
865
|
}, {
|
828
866
|
updateUnchangedValue: boolean;
|
867
|
+
to: string | false | HTMLElement;
|
829
868
|
}>>;
|
830
869
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
831
870
|
componentCfg: {
|
@@ -990,6 +1029,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
990
1029
|
allowedInvalidValue: {
|
991
1030
|
type: StringConstructor;
|
992
1031
|
};
|
1032
|
+
to: {
|
1033
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1034
|
+
default: string;
|
1035
|
+
};
|
993
1036
|
}, {
|
994
1037
|
attrs: {
|
995
1038
|
[x: string]: unknown;
|
@@ -1010,6 +1053,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1010
1053
|
allowedInvalidValue: {
|
1011
1054
|
type: StringConstructor;
|
1012
1055
|
};
|
1056
|
+
to: {
|
1057
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1058
|
+
default: string;
|
1059
|
+
};
|
1013
1060
|
}>> & {
|
1014
1061
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1015
1062
|
}>>;
|
@@ -1046,10 +1093,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1046
1093
|
allowedInvalidValue: {
|
1047
1094
|
type: StringConstructor;
|
1048
1095
|
};
|
1096
|
+
to: {
|
1097
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1098
|
+
default: string;
|
1099
|
+
};
|
1049
1100
|
}>> & {
|
1050
1101
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1051
1102
|
}, {
|
1052
1103
|
updateUnchangedValue: boolean;
|
1104
|
+
to: string | false | HTMLElement;
|
1053
1105
|
}>>;
|
1054
1106
|
DateQuickBtn: import("vue").DefineComponent<{
|
1055
1107
|
componentCfg: {
|
@@ -1259,6 +1311,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1259
1311
|
allowedInvalidValue: {
|
1260
1312
|
type: StringConstructor;
|
1261
1313
|
};
|
1314
|
+
to: {
|
1315
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1316
|
+
default: string;
|
1317
|
+
};
|
1262
1318
|
}, {
|
1263
1319
|
attrs: {
|
1264
1320
|
[x: string]: unknown;
|
@@ -1279,6 +1335,10 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1279
1335
|
allowedInvalidValue: {
|
1280
1336
|
type: StringConstructor;
|
1281
1337
|
};
|
1338
|
+
to: {
|
1339
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1340
|
+
default: string;
|
1341
|
+
};
|
1282
1342
|
}>> & {
|
1283
1343
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1284
1344
|
}>>;
|
@@ -1315,10 +1375,15 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
1315
1375
|
allowedInvalidValue: {
|
1316
1376
|
type: StringConstructor;
|
1317
1377
|
};
|
1378
|
+
to: {
|
1379
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
1380
|
+
default: string;
|
1381
|
+
};
|
1318
1382
|
}>> & {
|
1319
1383
|
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1320
1384
|
}, {
|
1321
1385
|
updateUnchangedValue: boolean;
|
1386
|
+
to: string | false | HTMLElement;
|
1322
1387
|
}>>;
|
1323
1388
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1324
1389
|
type: {
|
@@ -1 +1 @@
|
|
1
|
-
import{DataTypeEnums as e,WidgetTypeEnums as t,WidgetOptionEnums as l}from"../types/enums.js";const a=(a,i=[])=>a===e.API?i.map((e=>{var i,n,u,r,p,o,c,d,y,
|
1
|
+
import{DataTypeEnums as e,WidgetTypeEnums as t,WidgetOptionEnums as l}from"../types/enums.js";const a=(a,i=[])=>a===e.API?i.map((e=>{var i,n,u,r,p,o,c,d,s,y,v,m;const E=null!=(n=null==(i=e.optionInfo)?void 0:i.list)?n:[];let f=e.type;return e.type===t.LABEL&&(f=t.SELECTLABEL),e.type===t.SELECT&&!1===(null==(u=null==e?void 0:e.optionInfo)?void 0:u.manualMapping)&&(f=t.SELECTDYNAMIC),e.rangeFilter&&(e.type===t.INPUT_NUMBER&&(f=t.INPUTNUMBER_RANGE),e.type===t.DATE&&(f=t.DATE_RANGE_INNER),e.type===t.DATE_TIME&&(f=t.DATETIME_RANGE_INNER)),{dataType:a,p_name:e.name,p_type:e.dataType,title:e.title,customTitle:e.customTitle,type:f,optionSetting:e.optionType,openAdvancedFilter:e.isShowSearch,filterOutDisplay:e.filterExplicit,filterOutRequired:e.explicitRequired,width:e.width,defValCfg:{value:e.type===t.SELECT&&e.optionType===l.MULTIPLE?null!=(p=null==(r=e.defaultValue)?void 0:r.valueList)?p:[]:null!=(d=null==(c=null==(o=e.defaultValue)?void 0:o.valueList)?void 0:c[0])?d:null,presetVal:e.type===t.SELECT&&e.optionType===l.MULTIPLE?(null==(s=e.defaultValue)?void 0:s.unit)?[null==(y=e.defaultValue)?void 0:y.unit]:[]:null!=(m=null==(v=e.defaultValue)?void 0:v.unit)?m:null},mappingConfig:{mappingMethod:null,mapping:E.map((({name:e,value:t})=>({label:e,value:t})))},remark:e.remark,optionInfo:e.optionInfo,_rawData:e}})):[],i=t=>t.map((t=>{var l;const{title:a,customTitle:i,openAdvancedFilter:n,filterOutDisplay:u,filterOutRequired:r,width:p,optionSetting:o,defValCfg:c,mappingConfig:d,remark:s,_rawData:y}=t,{value:v,presetVal:m}=c,{mapping:E}=d;if(t.dataType===e.API){const{p_name:e,p_type:c,type:d}=t;return{...y,name:e,title:a,customTitle:i,type:d,dataType:c,isShowSearch:n,filterExplicit:u,explicitRequired:r,width:p,optionType:o,defaultValue:{valueList:Array.isArray(v)?v:v?[v]:[],unit:Array.isArray(m)?m[0]:m},optionInfo:{manualMapping:null==(l=null==y?void 0:y.optionInfo)?void 0:l.manualMapping,list:E.map((({label:e,value:t})=>({name:e,value:t})))},remark:s}}return null})).filter((e=>!!e)),n=(e,a)=>e.map((e=>{var i,n,u;const r=((e,t)=>t.find((t=>t.p_name===e)))(e.field_key,a);let p=e.value;p&&!Array.isArray(p)&&(p=[p]);const o=(null==r?void 0:r.type)!==t.SELECT&&(null==r?void 0:r.type)!==t.SELECTDYNAMIC||(null==r?void 0:r.optionSetting)!==l.MULTIPLE?null!=(i=null==p?void 0:p[0])?i:null:null!=p?p:[],c={key:e.field_key,condition:e.con,value:o,presetVal:null!=(n=e.unit)?n:null,dynamicBaseList:null!=(u=null==e?void 0:e.dynamicBaseList)?u:[]};return Object.keys(e).includes("isAccurateSearch")&&(c.isAccurateSearch=e.isAccurateSearch,c.accurateSearchKey=e.accurateSearchKey),c})),u=e=>e.map((e=>{const t={field_key:e.key,con:e.condition,value:Array.isArray(e.value)?e.value:e.value?[e.value]:[],unit:e.presetVal,dynamicBaseList:e.dynamicBaseList||[]};return Object.keys(e).includes("isAccurateSearch")&&(t.isAccurateSearch=e.isAccurateSearch,t.accurateSearchKey=e.accurateSearchKey),t}));export{n as transformConditions,i as transformDataToEnd,a as transformDataToFront,u as transformRawConditions};
|
@@ -90,6 +90,7 @@ export type ISearchConfigType = {
|
|
90
90
|
wordbookValueList?: any;
|
91
91
|
isAccurateSearch?: boolean;
|
92
92
|
accurateSearchKey?: string;
|
93
|
+
dynamicBaseList?: any[];
|
93
94
|
};
|
94
95
|
export type ITreeDataType = {
|
95
96
|
name: string;
|
@@ -211,6 +212,8 @@ export type ISearchParamsType = {
|
|
211
212
|
con: string;
|
212
213
|
value: string[];
|
213
214
|
unit: 'custom' | null;
|
215
|
+
widgetType?: string;
|
216
|
+
dynamicBaseList?: any[];
|
214
217
|
isAccurateSearch?: boolean;
|
215
218
|
accurateSearchKey?: string;
|
216
219
|
};
|
@@ -4,7 +4,7 @@ declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
|
|
4
4
|
type: import("vue").PropType<{
|
5
5
|
type: "default" | "success" | "error" | "warning" | "info";
|
6
6
|
subItem: {
|
7
|
-
title
|
7
|
+
title?: string | undefined;
|
8
8
|
name: string;
|
9
9
|
time: string;
|
10
10
|
extraText?: string | undefined;
|
@@ -19,7 +19,7 @@ declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
|
|
19
19
|
type: import("vue").PropType<{
|
20
20
|
type: "default" | "success" | "error" | "warning" | "info";
|
21
21
|
subItem: {
|
22
|
-
title
|
22
|
+
title?: string | undefined;
|
23
23
|
name: string;
|
24
24
|
time: string;
|
25
25
|
extraText?: string | undefined;
|
@@ -38,7 +38,7 @@ declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
|
|
38
38
|
type: import("vue").PropType<{
|
39
39
|
type: "default" | "success" | "error" | "warning" | "info";
|
40
40
|
subItem: {
|
41
|
-
title
|
41
|
+
title?: string | undefined;
|
42
42
|
name: string;
|
43
43
|
time: string;
|
44
44
|
extraText?: string | undefined;
|
@@ -51,7 +51,7 @@ declare const TimeLine: SFCWithInstall<import("vue").DefineComponent<{
|
|
51
51
|
items: {
|
52
52
|
type: "default" | "success" | "error" | "warning" | "info";
|
53
53
|
subItem: {
|
54
|
-
title
|
54
|
+
title?: string | undefined;
|
55
55
|
name: string;
|
56
56
|
time: string;
|
57
57
|
extraText?: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,openBlock as t,createBlock as a,unref as n,withCtx as l,createElementBlock as s,Fragment as
|
1
|
+
import{defineComponent as e,openBlock as t,createBlock as a,unref as n,withCtx as l,createElementBlock as s,Fragment as i,renderList as p,createTextVNode as r,toDisplayString as u,createCommentVNode as y,createElementVNode as c,createVNode as m}from"vue";import{NTimeline as o,NTimelineItem as f,NSpace as d,NButton as v}from"naive-ui";const _={class:"content"},x={class:"content-name"},k={key:0,class:"content-extra"};var T=e({__name:"TimeLine",props:{items:{type:Array,default:()=>[]}},setup:e=>(T,b)=>(t(),a(n(o),{class:"c-time-line"},{default:l((()=>[(t(!0),s(i,null,p(e.items,((e,o)=>(t(),a(n(f),{key:o,type:e.type},{default:l((()=>[(t(!0),s(i,null,p(e.subItem,((i,p)=>(t(),a(n(d),{key:p,vertical:"",align:"start"},{default:l((()=>[i.title?(t(),a(n(v),{key:0,strong:"",secondary:"",type:e.type},{default:l((()=>[r(u(i.title),1)])),_:2},1032,["type"])):y("v-if",!0),c("div",_,[m(n(d),{justify:"space-between"},{default:l((()=>[c("span",x,u(i.name),1),c("span",null,u(i.time),1)])),_:2},1024),i.extraText?(t(),s("p",k,u(i.extraText),1)):y("v-if",!0),c("p",null,u(i.content),1)])])),_:2},1024)))),128))])),_:2},1032,["type"])))),128))])),_:1}))});export{T as default};
|