cnhis-design-vue 3.1.52-beta.4 → 3.1.52-beta.6

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.
Files changed (70) hide show
  1. package/README.md +87 -87
  2. package/es/components/callback/src/components/render/popupMaps.d.ts +1 -1
  3. package/es/components/classification/index.d.ts +40 -6
  4. package/es/components/classification/src/components/search-filter/index.vue.d.ts +40 -6
  5. package/es/components/classification/src/components/set-classification/index.vue.d.ts +40 -6
  6. package/es/components/classification/src/index.vue.d.ts +40 -6
  7. package/es/components/date-picker/index.d.ts +20 -3
  8. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -3
  9. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  10. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  11. package/es/components/form-config/index.d.ts +2 -2
  12. package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
  13. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  14. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
  15. package/es/components/form-render/index.d.ts +1 -1
  16. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  17. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
  18. package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -2
  19. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  20. package/es/components/form-render/src/types/index.d.ts +2 -2
  21. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +20 -3
  22. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -3
  23. package/es/components/info-header/index.d.ts +2 -2
  24. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
  25. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
  26. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
  27. package/es/components/recommend-search/index.d.ts +1 -1
  28. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -1
  29. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  30. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  31. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  32. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  33. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
  34. package/es/components/shortcut-setter/index.d.ts +1 -1
  35. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  36. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  37. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +40 -6
  38. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +20 -3
  39. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +20 -3
  40. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +40 -6
  41. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +40 -6
  42. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +20 -3
  43. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +20 -3
  44. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +20 -3
  45. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +20 -3
  46. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +80 -12
  47. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +80 -12
  48. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  49. package/es/env.d.ts +25 -25
  50. package/es/shared/assets/img/failure.png.js +1 -1
  51. package/es/shared/assets/img/no-permission.png.js +1 -1
  52. package/es/shared/assets/img/nodata.png.js +1 -1
  53. package/es/shared/assets/img/notfound.png.js +1 -1
  54. package/es/shared/assets/img/qr.png.js +1 -1
  55. package/es/shared/assets/img/success.png.js +1 -1
  56. package/es/shared/assets/img/video.png.js +1 -1
  57. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  58. package/es/shared/assets/img/xb_big.png.js +1 -1
  59. package/es/shared/assets/img/xb_small.png.js +1 -1
  60. package/es/shared/hooks/useDateTime.d.ts +7 -2
  61. package/es/shared/hooks/useDateTime.js +1 -1
  62. package/es/shared/package.json.js +1 -1
  63. package/package.json +2 -2
  64. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  65. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  66. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  67. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  68. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  69. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  70. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
1
+ import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
@@ -1 +1 @@
1
- import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}});export{B as default};
1
+ import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}_.labelSelectedEdit=[...r],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[r(W)?(n(),s("div",A,O)):d("v-if",!0),o(c("div",K,[c("div",j,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}});export{B as default};
@@ -95,6 +95,12 @@ declare const _default: import("vue").DefineComponent<{
95
95
  };
96
96
  readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
97
97
  actionType: "check" | "uncheck";
98
+ /**
99
+ * 取消勾选树节点
100
+ * baseKeys:基准值
101
+ * currentTree:当前树节点
102
+ * value:树节点的key值
103
+ */
98
104
  value: string | number;
99
105
  }) => void>>;
100
106
  readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as i,Fragment as n,unref as s,createElementVNode as c,toDisplayString as o,normalizeStyle as d,renderList as u,normalizeClass as h,createTextVNode as p,createCommentVNode as f,createBlock as v}from"vue";import{useMessage as y,NEmpty as m}from"naive-ui";import{isEqual as k}from"lodash-es";import{useVirtualList as _}from"@vueuse/core";const g={class:"searchOrgAndStaff"},N={key:0,class:"searchOption"},S={class:"search_title"},C=["onClick"],b={class:"title"},x=["title"],D={class:"desc"},O={key:1,class:"SearchOption"},$={class:"search_title"},F=["onClick"],T={class:"title"},A={class:"desc"};var K=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})}},emits:["notifyCheck","notifyClear"],setup(e,{emit:K}){var P;const w=e,E=y(),H=t((()=>{var e;return null!=(e=w.searchFilter.itemHeight)?e:300})),W=t((()=>Math.floor(H.value/50))),j=null!=(P=t((()=>w.treeData.filter((e=>!e.children)))))?P:[],{list:I,containerProps:M,wrapperProps:q}=_(j,{itemHeight:50,overscan:W.value}),z=t((()=>({...M.style,height:`${H.value}px`}))),B=t((()=>w.treeData.filter((e=>e.children&&e.children.length>0)))),{list:G,containerProps:J,wrapperProps:L}=_(B,{itemHeight:50,overscan:W.value}),Q=t((()=>({...J.style,height:`${H.value}px`}))),R=l(w.checkedKeys),U=l([]);function V(e){var t;if(R.value.find((t=>t===e.key)))return void E.info(`${e.title}已被选择`);if(e.disabled)return void E.info(`${e.title}已被禁用`);switch((null==(t=e.children)?void 0:t.length)>0?"org":"staff"){case"org":!function(e,t,l){t.children.length>0&&Z(t.children);X(e,t,l)}(R.value,e,e.key);break;case"staff":X(R.value,e,e.key)}K("notifyCheck",R.value),(null==w?void 0:w.searchFilter.multiple)||K("notifyClear")}function X(e,t,l){var a;if(!(null==t?void 0:t.parentNode))return R.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return R.value=e,E.info(`${t.title}已存在于${t.tempTitle}中`),!1;if(t.parentNode.children){const a=t.parentNode.children.every((t=>[...e,l].includes(t.key)));if(a){const l=null==t?void 0:t.parentNode.children.map((e=>e.key)),r=e.filter((e=>!l.includes(e)));return a&&Y(r,t.parentNode),!1}}X(e,t.parentNode,l)}function Y(e,t){if(!t.parentNode||t.parentNode.children.length>1)return R.value=[...e,t.key],!1;Y(e,t.parentNode)}function Z(e){e.forEach((e=>{var t;if(R.value.includes(e.key)){const t=R.value.indexOf(e.key);R.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&Z(e.children)}))}function ee(e,t){const l=w.checkedKeys;return!!e&&(l.includes(e.key)?(U.value.push(t),!1):void ee(e.parentNode,t))}return a((()=>w.treeData),(e=>{e&&e.length>0&&(U.value=[],e.forEach((e=>{ee(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>w.checkedKeys),((e,t)=>{k(e,t)||w.treeData.length>0&&(U.value=[],R.value=e,w.treeData.forEach((e=>{ee(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,y;return r(),i("div",g,[e.treeData.length>0?(r(),i(n,{key:0},[s(j).length>0?(r(),i("div",N,[c("h4",S,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(M).ref,style:d(s(I).length>s(W)?s(z):{}),onScroll:l[0]||(l[0]=(...e)=>s(M).onScroll&&s(M).onScroll(...e))},[c("section",{style:d(s(q).style)},[(r(!0),i(n,null,u(s(I),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item user_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",b,[p(o(e.data.title)+" ",1),c("span",{class:"user_item_expand",title:e.data.title_expand_strs},o(e.data.title_expand_strs),9,x)]),c("p",D,o(e.data.tempTitle),1)],10,C)])))),128))],4)],36)])):f("v-if",!0),s(B).length>0?(r(),i("div",O,[c("h4",$,o(null==(y=e.searchFilter)?void 0:y.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(J).ref,style:d(s(G).length>s(W)?s(Q):{}),onScroll:l[1]||(l[1]=(...e)=>s(J).onScroll&&s(J).onScroll(...e))},[c("section",{style:d(s(L).style)},[(r(!0),i(n,null,u(s(G),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",T,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("p",A,o(e.data.tempTitle),1)],10,F)])))),128))],4)],36)])):f("v-if",!0)],64)):(r(),v(s(m),{key:1,description:"暂无数据"}))])}}});export{K as default};
1
+ import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as i,Fragment as n,unref as s,createElementVNode as c,toDisplayString as o,normalizeStyle as d,renderList as u,normalizeClass as h,createTextVNode as p,createCommentVNode as f,createBlock as v}from"vue";import{useMessage as y,NEmpty as m}from"naive-ui";import{isEqual as k}from"lodash-es";import{useVirtualList as _}from"@vueuse/core";const g={class:"searchOrgAndStaff"},N={key:0,class:"searchOption"},S={class:"search_title"},C=["onClick"],b={class:"title"},x=["title"],D={class:"desc"},O={key:1,class:"SearchOption"},$={class:"search_title"},F=["onClick"],T={class:"title"},A={class:"desc"};var K=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})}},emits:["notifyCheck","notifyClear"],setup(e,{emit:K}){var P;const w=e,E=y(),H=t((()=>{var e;return null!=(e=w.searchFilter.itemHeight)?e:300})),W=t((()=>Math.floor(H.value/50))),j=null!=(P=t((()=>w.treeData.filter((e=>!e.children)))))?P:[],{list:I,containerProps:M,wrapperProps:q}=_(j,{itemHeight:50,overscan:W.value}),z=t((()=>({...M.style,height:`${H.value}px`}))),B=t((()=>w.treeData.filter((e=>e.children&&e.children.length>0)))),{list:G,containerProps:J,wrapperProps:L}=_(B,{itemHeight:50,overscan:W.value}),Q=t((()=>({...J.style,height:`${H.value}px`}))),R=l(w.checkedKeys),U=l([]);function V(e){var t;if(R.value.find((t=>t===e.key)))return void E.info(`${e.title}已被选择`);if(e.disabled)return void E.info(`${e.title}已被禁用`);switch((null==(t=e.children)?void 0:t.length)>0?"org":"staff"){case"org":!function(e,t,l){t.children.length>0&&Z(t.children);X(e,t,l)}(R.value,e,e.key);break;case"staff":X(R.value,e,e.key)}K("notifyCheck",R.value),(null==w?void 0:w.searchFilter.multiple)||K("notifyClear")}function X(e,t,l){var a;if(!(null==t?void 0:t.parentNode))return R.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return R.value=e,E.info(`${t.title}已存在于${t.tempTitle}中`),!1;if(t.parentNode.children){const a=t.parentNode.children.every((t=>[...e,l].includes(t.key)));if(a){const l=null==t?void 0:t.parentNode.children.map((e=>e.key)),r=e.filter((e=>!l.includes(e)));return a&&Y(r,t.parentNode),!1}}X(e,t.parentNode,l)}function Y(e,t){if(!t.parentNode||t.parentNode.children.length>1)return R.value=[...e,t.key],!1;Y(e,t.parentNode)}function Z(e){e.forEach((e=>{var t;if(R.value.includes(e.key)){const t=R.value.indexOf(e.key);R.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&Z(e.children)}))}function ee(e,t){const l=w.checkedKeys;return!!e&&(l.includes(e.key)?(U.value.push(t),!1):void ee(e.parentNode,t))}return a((()=>w.treeData),(e=>{e&&e.length>0&&(U.value=[],e.forEach((e=>{ee(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>w.checkedKeys),((e,t)=>{k(e,t)||w.treeData.length>0&&(U.value=[],R.value=e,w.treeData.forEach((e=>{ee(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,y;return r(),i("div",g,[e.treeData.length>0?(r(),i(n,{key:0},[s(j).length>0?(r(),i("div",N,[c("h4",S,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(M).ref,style:d(s(I).length>s(W)?s(z):{}),onScroll:l[0]||(l[0]=(...e)=>s(M).onScroll&&s(M).onScroll(...e))},[c("section",{style:d(s(q).style)},[(r(!0),i(n,null,u(s(I),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item user_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",b,[p(o(e.data.title)+" ",1),c("span",{class:"user_item_expand",title:e.data.title_expand_strs},o(e.data.title_expand_strs),9,x)]),c("span",D,o(e.data.tempTitle),1)],10,C)])))),128))],4)],36)])):f("v-if",!0),s(B).length>0?(r(),i("div",O,[c("h4",$,o(null==(y=e.searchFilter)?void 0:y.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(J).ref,style:d(s(G).length>s(W)?s(Q):{}),onScroll:l[1]||(l[1]=(...e)=>s(J).onScroll&&s(J).onScroll(...e))},[c("section",{style:d(s(L).style)},[(r(!0),i(n,null,u(s(G),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:h(["search_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",T,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("span",A,o(e.data.tempTitle),1)],10,F)])))),128))],4)],36)])):f("v-if",!0)],64)):(r(),v(s(m),{key:1,description:"暂无数据"}))])}}});export{K as default};
@@ -2320,7 +2320,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2320
2320
  onKeydown: (event: KeyboardEvent) => Promise<void>;
2321
2321
  clearSpan: (uuid: string) => void;
2322
2322
  exposeEvent: {
2323
- validate(path?: string, { force }?: {
2323
+ validate(path?: string | ((field: import("@formily/core").Field<any, any, any, any>) => boolean), { force }?: {
2324
2324
  force?: boolean | undefined;
2325
2325
  }): Promise<void>;
2326
2326
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -2322,7 +2322,7 @@ declare const _default: import("vue").DefineComponent<{
2322
2322
  onKeydown: (event: KeyboardEvent) => Promise<void>;
2323
2323
  clearSpan: (uuid: string) => void;
2324
2324
  exposeEvent: {
2325
- validate(path?: string, { force }?: {
2325
+ validate(path?: string | ((field: import("../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
2326
2326
  force?: boolean | undefined;
2327
2327
  }): Promise<void>;
2328
2328
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -111,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
111
111
  readonly type: PropType<(string | number)[] | null>;
112
112
  readonly default: null;
113
113
  };
114
- /**
115
- * 拖拽完成
116
- */
117
114
  readonly disabled: {
118
115
  readonly type: PropType<boolean | undefined>;
119
116
  readonly default: undefined;
@@ -103,6 +103,9 @@ declare const _default: import("vue").DefineComponent<{
103
103
  onConfirm: {
104
104
  type: FunctionConstructor;
105
105
  };
106
+ formattedValue: {
107
+ type: StringConstructor;
108
+ };
106
109
  }, {
107
110
  attrs: {
108
111
  [x: string]: unknown;
@@ -114,9 +117,17 @@ declare const _default: import("vue").DefineComponent<{
114
117
  onConfirm: {
115
118
  type: FunctionConstructor;
116
119
  };
117
- }>> & {}>>;
120
+ formattedValue: {
121
+ type: StringConstructor;
122
+ };
123
+ }>> & {
124
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
125
+ }>>;
126
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
118
127
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
119
128
  panelInstRef: import("vue").Ref<null>;
129
+ placeholder: import("vue").Ref<any>;
130
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
120
131
  isDateTime: import("vue").ComputedRef<boolean>;
121
132
  formatRef: import("vue").ComputedRef<string>;
122
133
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -125,15 +136,21 @@ declare const _default: import("vue").DefineComponent<{
125
136
  handleConfirm: (target: HTMLInputElement) => void;
126
137
  onUpdateShow: (show: boolean) => void;
127
138
  onConfirm: (...args: any[]) => Promise<void>;
139
+ isOtherValue: (value?: string) => boolean;
128
140
  NDatePicker: any;
129
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
141
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
142
  updateUnchangedValue: {
131
143
  type: BooleanConstructor;
132
144
  };
133
145
  onConfirm: {
134
146
  type: FunctionConstructor;
135
147
  };
136
- }>>, {
148
+ formattedValue: {
149
+ type: StringConstructor;
150
+ };
151
+ }>> & {
152
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
153
+ }, {
137
154
  updateUnchangedValue: boolean;
138
155
  }>>;
139
156
  NSelect: any;
@@ -696,6 +713,9 @@ declare const _default: import("vue").DefineComponent<{
696
713
  onConfirm: {
697
714
  type: FunctionConstructor;
698
715
  };
716
+ formattedValue: {
717
+ type: StringConstructor;
718
+ };
699
719
  }, {
700
720
  attrs: {
701
721
  [x: string]: unknown;
@@ -707,9 +727,17 @@ declare const _default: import("vue").DefineComponent<{
707
727
  onConfirm: {
708
728
  type: FunctionConstructor;
709
729
  };
710
- }>> & {}>>;
730
+ formattedValue: {
731
+ type: StringConstructor;
732
+ };
733
+ }>> & {
734
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
735
+ }>>;
736
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
711
737
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
712
738
  panelInstRef: import("vue").Ref<null>;
739
+ placeholder: import("vue").Ref<any>;
740
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
713
741
  isDateTime: import("vue").ComputedRef<boolean>;
714
742
  formatRef: import("vue").ComputedRef<string>;
715
743
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -718,15 +746,21 @@ declare const _default: import("vue").DefineComponent<{
718
746
  handleConfirm: (target: HTMLInputElement) => void;
719
747
  onUpdateShow: (show: boolean) => void;
720
748
  onConfirm: (...args: any[]) => Promise<void>;
749
+ isOtherValue: (value?: string) => boolean;
721
750
  NDatePicker: any;
722
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
751
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
723
752
  updateUnchangedValue: {
724
753
  type: BooleanConstructor;
725
754
  };
726
755
  onConfirm: {
727
756
  type: FunctionConstructor;
728
757
  };
729
- }>>, {
758
+ formattedValue: {
759
+ type: StringConstructor;
760
+ };
761
+ }>> & {
762
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
763
+ }, {
730
764
  updateUnchangedValue: boolean;
731
765
  }>>;
732
766
  WidgetValEnums: {
@@ -60,6 +60,9 @@ declare const _default: import("vue").DefineComponent<{
60
60
  onConfirm: {
61
61
  type: FunctionConstructor;
62
62
  };
63
+ formattedValue: {
64
+ type: StringConstructor;
65
+ };
63
66
  }, {
64
67
  attrs: {
65
68
  [x: string]: unknown;
@@ -71,9 +74,17 @@ declare const _default: import("vue").DefineComponent<{
71
74
  onConfirm: {
72
75
  type: FunctionConstructor;
73
76
  };
74
- }>> & {}>>;
77
+ formattedValue: {
78
+ type: StringConstructor;
79
+ };
80
+ }>> & {
81
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
82
+ }>>;
83
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
75
84
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
76
85
  panelInstRef: import("vue").Ref<null>;
86
+ placeholder: import("vue").Ref<any>;
87
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
77
88
  isDateTime: import("vue").ComputedRef<boolean>;
78
89
  formatRef: import("vue").ComputedRef<string>;
79
90
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -82,15 +93,21 @@ declare const _default: import("vue").DefineComponent<{
82
93
  handleConfirm: (target: HTMLInputElement) => void;
83
94
  onUpdateShow: (show: boolean) => void;
84
95
  onConfirm: (...args: any[]) => Promise<void>;
96
+ isOtherValue: (value?: string) => boolean;
85
97
  NDatePicker: any;
86
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
98
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
87
99
  updateUnchangedValue: {
88
100
  type: BooleanConstructor;
89
101
  };
90
102
  onConfirm: {
91
103
  type: FunctionConstructor;
92
104
  };
93
- }>>, {
105
+ formattedValue: {
106
+ type: StringConstructor;
107
+ };
108
+ }>> & {
109
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
110
+ }, {
94
111
  updateUnchangedValue: boolean;
95
112
  }>>;
96
113
  NSelect: any;
@@ -73,6 +73,9 @@ declare const _default: import("vue").DefineComponent<{
73
73
  onConfirm: {
74
74
  type: FunctionConstructor;
75
75
  };
76
+ formattedValue: {
77
+ type: StringConstructor;
78
+ };
76
79
  }, {
77
80
  attrs: {
78
81
  [x: string]: unknown;
@@ -84,9 +87,17 @@ declare const _default: import("vue").DefineComponent<{
84
87
  onConfirm: {
85
88
  type: FunctionConstructor;
86
89
  };
87
- }>> & {}>>;
90
+ formattedValue: {
91
+ type: StringConstructor;
92
+ };
93
+ }>> & {
94
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
95
+ }>>;
96
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
88
97
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
89
98
  panelInstRef: import("vue").Ref<null>;
99
+ placeholder: import("vue").Ref<any>;
100
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
90
101
  isDateTime: import("vue").ComputedRef<boolean>;
91
102
  formatRef: import("vue").ComputedRef<string>;
92
103
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -95,15 +106,21 @@ declare const _default: import("vue").DefineComponent<{
95
106
  handleConfirm: (target: HTMLInputElement) => void;
96
107
  onUpdateShow: (show: boolean) => void;
97
108
  onConfirm: (...args: any[]) => Promise<void>;
109
+ isOtherValue: (value?: string) => boolean;
98
110
  NDatePicker: any;
99
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
100
112
  updateUnchangedValue: {
101
113
  type: BooleanConstructor;
102
114
  };
103
115
  onConfirm: {
104
116
  type: FunctionConstructor;
105
117
  };
106
- }>>, {
118
+ formattedValue: {
119
+ type: StringConstructor;
120
+ };
121
+ }>> & {
122
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
123
+ }, {
107
124
  updateUnchangedValue: boolean;
108
125
  }>>;
109
126
  WidgetValEnums: {
@@ -60,6 +60,9 @@ declare const Date: import("vue").DefineComponent<{
60
60
  onConfirm: {
61
61
  type: FunctionConstructor;
62
62
  };
63
+ formattedValue: {
64
+ type: StringConstructor;
65
+ };
63
66
  }, {
64
67
  attrs: {
65
68
  [x: string]: unknown;
@@ -71,9 +74,17 @@ declare const Date: import("vue").DefineComponent<{
71
74
  onConfirm: {
72
75
  type: FunctionConstructor;
73
76
  };
74
- }>> & {}>>;
77
+ formattedValue: {
78
+ type: StringConstructor;
79
+ };
80
+ }>> & {
81
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
82
+ }>>;
83
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
75
84
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
76
85
  panelInstRef: import("vue").Ref<null>;
86
+ placeholder: import("vue").Ref<any>;
87
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
77
88
  isDateTime: import("vue").ComputedRef<boolean>;
78
89
  formatRef: import("vue").ComputedRef<string>;
79
90
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -82,15 +93,21 @@ declare const Date: import("vue").DefineComponent<{
82
93
  handleConfirm: (target: HTMLInputElement) => void;
83
94
  onUpdateShow: (show: boolean) => void;
84
95
  onConfirm: (...args: any[]) => Promise<void>;
96
+ isOtherValue: (value?: string) => boolean;
85
97
  NDatePicker: any;
86
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
98
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
87
99
  updateUnchangedValue: {
88
100
  type: BooleanConstructor;
89
101
  };
90
102
  onConfirm: {
91
103
  type: FunctionConstructor;
92
104
  };
93
- }>>, {
105
+ formattedValue: {
106
+ type: StringConstructor;
107
+ };
108
+ }>> & {
109
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
110
+ }, {
94
111
  updateUnchangedValue: boolean;
95
112
  }>>;
96
113
  NSelect: any;
@@ -653,6 +670,9 @@ declare const DateRange: import("vue").DefineComponent<{
653
670
  onConfirm: {
654
671
  type: FunctionConstructor;
655
672
  };
673
+ formattedValue: {
674
+ type: StringConstructor;
675
+ };
656
676
  }, {
657
677
  attrs: {
658
678
  [x: string]: unknown;
@@ -664,9 +684,17 @@ declare const DateRange: import("vue").DefineComponent<{
664
684
  onConfirm: {
665
685
  type: FunctionConstructor;
666
686
  };
667
- }>> & {}>>;
687
+ formattedValue: {
688
+ type: StringConstructor;
689
+ };
690
+ }>> & {
691
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
692
+ }>>;
693
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
668
694
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
669
695
  panelInstRef: import("vue").Ref<null>;
696
+ placeholder: import("vue").Ref<any>;
697
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
670
698
  isDateTime: import("vue").ComputedRef<boolean>;
671
699
  formatRef: import("vue").ComputedRef<string>;
672
700
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -675,15 +703,21 @@ declare const DateRange: import("vue").DefineComponent<{
675
703
  handleConfirm: (target: HTMLInputElement) => void;
676
704
  onUpdateShow: (show: boolean) => void;
677
705
  onConfirm: (...args: any[]) => Promise<void>;
706
+ isOtherValue: (value?: string) => boolean;
678
707
  NDatePicker: any;
679
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
708
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
680
709
  updateUnchangedValue: {
681
710
  type: BooleanConstructor;
682
711
  };
683
712
  onConfirm: {
684
713
  type: FunctionConstructor;
685
714
  };
686
- }>>, {
715
+ formattedValue: {
716
+ type: StringConstructor;
717
+ };
718
+ }>> & {
719
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
720
+ }, {
687
721
  updateUnchangedValue: boolean;
688
722
  }>>;
689
723
  WidgetValEnums: {
@@ -223,6 +223,9 @@ declare const _default: import("vue").DefineComponent<{
223
223
  onConfirm: {
224
224
  type: FunctionConstructor;
225
225
  };
226
+ formattedValue: {
227
+ type: StringConstructor;
228
+ };
226
229
  }, {
227
230
  attrs: {
228
231
  [x: string]: unknown;
@@ -234,9 +237,17 @@ declare const _default: import("vue").DefineComponent<{
234
237
  onConfirm: {
235
238
  type: FunctionConstructor;
236
239
  };
237
- }>> & {}>>;
240
+ formattedValue: {
241
+ type: StringConstructor;
242
+ };
243
+ }>> & {
244
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
245
+ }>>;
246
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
238
247
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
239
248
  panelInstRef: import("vue").Ref<null>;
249
+ placeholder: import("vue").Ref<any>;
250
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
240
251
  isDateTime: import("vue").ComputedRef<boolean>;
241
252
  formatRef: import("vue").ComputedRef<string>;
242
253
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -245,15 +256,21 @@ declare const _default: import("vue").DefineComponent<{
245
256
  handleConfirm: (target: HTMLInputElement) => void;
246
257
  onUpdateShow: (show: boolean) => void;
247
258
  onConfirm: (...args: any[]) => Promise<void>;
259
+ isOtherValue: (value?: string) => boolean;
248
260
  NDatePicker: any;
249
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
261
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
250
262
  updateUnchangedValue: {
251
263
  type: BooleanConstructor;
252
264
  };
253
265
  onConfirm: {
254
266
  type: FunctionConstructor;
255
267
  };
256
- }>>, {
268
+ formattedValue: {
269
+ type: StringConstructor;
270
+ };
271
+ }>> & {
272
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
273
+ }, {
257
274
  updateUnchangedValue: boolean;
258
275
  }>>;
259
276
  NSelect: any;
@@ -816,6 +833,9 @@ declare const _default: import("vue").DefineComponent<{
816
833
  onConfirm: {
817
834
  type: FunctionConstructor;
818
835
  };
836
+ formattedValue: {
837
+ type: StringConstructor;
838
+ };
819
839
  }, {
820
840
  attrs: {
821
841
  [x: string]: unknown;
@@ -827,9 +847,17 @@ declare const _default: import("vue").DefineComponent<{
827
847
  onConfirm: {
828
848
  type: FunctionConstructor;
829
849
  };
830
- }>> & {}>>;
850
+ formattedValue: {
851
+ type: StringConstructor;
852
+ };
853
+ }>> & {
854
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
855
+ }>>;
856
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
831
857
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
832
858
  panelInstRef: import("vue").Ref<null>;
859
+ placeholder: import("vue").Ref<any>;
860
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
833
861
  isDateTime: import("vue").ComputedRef<boolean>;
834
862
  formatRef: import("vue").ComputedRef<string>;
835
863
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -838,15 +866,21 @@ declare const _default: import("vue").DefineComponent<{
838
866
  handleConfirm: (target: HTMLInputElement) => void;
839
867
  onUpdateShow: (show: boolean) => void;
840
868
  onConfirm: (...args: any[]) => Promise<void>;
869
+ isOtherValue: (value?: string) => boolean;
841
870
  NDatePicker: any;
842
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
871
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
843
872
  updateUnchangedValue: {
844
873
  type: BooleanConstructor;
845
874
  };
846
875
  onConfirm: {
847
876
  type: FunctionConstructor;
848
877
  };
849
- }>>, {
878
+ formattedValue: {
879
+ type: StringConstructor;
880
+ };
881
+ }>> & {
882
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
883
+ }, {
850
884
  updateUnchangedValue: boolean;
851
885
  }>>;
852
886
  WidgetValEnums: {
@@ -90,6 +90,9 @@ declare const _default: import("vue").DefineComponent<{
90
90
  onConfirm: {
91
91
  type: FunctionConstructor;
92
92
  };
93
+ formattedValue: {
94
+ type: StringConstructor;
95
+ };
93
96
  }, {
94
97
  attrs: {
95
98
  [x: string]: unknown;
@@ -101,9 +104,17 @@ declare const _default: import("vue").DefineComponent<{
101
104
  onConfirm: {
102
105
  type: FunctionConstructor;
103
106
  };
104
- }>> & {}>>;
107
+ formattedValue: {
108
+ type: StringConstructor;
109
+ };
110
+ }>> & {
111
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
112
+ }>>;
113
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
105
114
  datePickerRef: import("vue").Ref<AnyObject | null>;
106
115
  panelInstRef: import("vue").Ref<null>;
116
+ placeholder: import("vue").Ref<any>;
117
+ currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
107
118
  isDateTime: import("vue").ComputedRef<boolean>;
108
119
  formatRef: import("vue").ComputedRef<string>;
109
120
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -112,15 +123,21 @@ declare const _default: import("vue").DefineComponent<{
112
123
  handleConfirm: (target: HTMLInputElement) => void;
113
124
  onUpdateShow: (show: boolean) => void;
114
125
  onConfirm: (...args: any[]) => Promise<void>;
126
+ isOtherValue: (value?: string) => boolean;
115
127
  NDatePicker: any;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
128
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
117
129
  updateUnchangedValue: {
118
130
  type: BooleanConstructor;
119
131
  };
120
132
  onConfirm: {
121
133
  type: FunctionConstructor;
122
134
  };
123
- }>>, {
135
+ formattedValue: {
136
+ type: StringConstructor;
137
+ };
138
+ }>> & {
139
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
140
+ }, {
124
141
  updateUnchangedValue: boolean;
125
142
  }>>;
126
143
  DateQuickBtn: import("vue").DefineComponent<{