cnhis-design-vue 3.1.41-beta.0 → 3.1.41-beta.10

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 (141) hide show
  1. package/es/components/button-print/src/utils/print.d.ts +1 -1
  2. package/es/components/button-print/src/utils/print.js +1 -1
  3. package/es/components/form-config/index.d.ts +14 -2
  4. package/es/components/form-config/src/FormConfig.vue.d.ts +14 -2
  5. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -1
  6. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  7. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -1
  8. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  9. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  10. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  11. package/es/components/form-config/src/types/index.d.ts +1 -0
  12. package/es/components/form-render/index.d.ts +4 -1
  13. package/es/components/form-render/index.js +1 -1
  14. package/es/components/form-render/src/FormRender.vue.d.ts +4 -1
  15. package/es/components/form-render/src/FormRender.vue.js +1 -1
  16. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -1
  17. package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
  18. package/es/components/form-render/src/components/renderer/formItem.d.ts +7 -0
  19. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  20. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  21. package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
  22. package/es/components/form-render/src/components/renderer/select.js +1 -1
  23. package/es/components/form-render/src/constants/index.d.ts +2 -0
  24. package/es/components/form-render/src/constants/index.js +1 -1
  25. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
  26. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  27. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  28. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  29. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  30. package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
  31. package/es/components/form-render/src/hooks/useFormField.js +1 -1
  32. package/es/components/form-render/src/hooks/useFormGraph.d.ts +6 -0
  33. package/es/components/form-render/src/hooks/useFormGraph.js +1 -0
  34. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  35. package/es/components/form-render/src/types/fieldItem.d.ts +7 -1
  36. package/es/components/form-render/src/types/index.d.ts +1 -1
  37. package/es/components/form-render/src/utils/dom.d.ts +2 -1
  38. package/es/components/form-render/src/utils/dom.js +1 -1
  39. package/es/components/iho-table/index.d.ts +5 -5
  40. package/es/components/iho-table/index.js +1 -1
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -5
  42. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  43. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  44. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  45. package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
  46. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
  47. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
  48. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
  49. package/es/components/iho-table/src/plugins/index.js +1 -1
  50. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
  51. package/es/components/iho-table/src/types/index.d.ts +6 -6
  52. package/es/components/iho-table/src/utils/index.js +1 -1
  53. package/es/components/iho-table/style/index.css +1 -1
  54. package/es/components/index.css +1 -1
  55. package/es/components/index.js +1 -1
  56. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  57. package/es/components/recommend-search/index.d.ts +10 -10
  58. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +10 -10
  59. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
  60. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
  61. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
  62. package/es/components/scale-view/index.d.ts +1 -2
  63. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -2
  64. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  65. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  66. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  67. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  68. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  69. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  70. package/es/components/scale-view/style/index.css +1 -1
  71. package/es/components/shortcut-setter/index.d.ts +6 -1
  72. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -1
  73. package/es/components/steps-wheel/index.d.ts +1 -1
  74. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  75. package/es/components/table-filter/index.d.ts +1171 -7721
  76. package/es/components/table-filter/index.js +1 -1
  77. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +42 -3529
  78. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  79. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +486 -2454
  80. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  81. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  82. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  83. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
  84. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  85. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +45 -5
  86. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  87. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  88. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  89. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +456 -0
  90. package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
  91. package/es/components/table-filter/src/components/{search-modal/set-classification.vue.d.ts → set-classification/index.vue.d.ts} +37 -818
  92. package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
  93. package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
  94. package/es/components/table-filter/src/hooks/export.js +1 -1
  95. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +3 -3
  96. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  97. package/es/components/table-filter/src/hooks/useMixins.d.ts +3 -2
  98. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  99. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  100. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +47 -1188
  101. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  102. package/es/components/table-filter/src/types/index.d.ts +4 -14
  103. package/es/components/table-filter/style/index.css +1 -1
  104. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  105. package/package.json +2 -2
  106. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  107. package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
  108. package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
  109. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
  110. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -1
  111. package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -71
  112. package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  113. package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1119
  114. package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  115. package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
  116. package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
  117. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
  118. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  119. package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
  120. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
  121. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
  122. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  123. package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
  124. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  125. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
  126. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  127. package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
  128. package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
  129. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
  130. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  131. package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
  132. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
  133. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1217
  134. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  135. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  136. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  137. package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
  138. package/es/components/table-filter/src/const/dataOptions.js +0 -1
  139. package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
  140. package/es/components/table-filter/src/directive/preventReClick.js +0 -1
  141. /package/es/components/table-filter/src/components/table-modal/{TableModal.vue.d.ts → index.vue.d.ts} +0 -0
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as t,ref as n,computed as i,watch as o,nextTick as a,openBlock as l,createElementBlock as s,createCommentVNode as c,createElementVNode as r,createVNode as u,mergeProps as d,unref as v,withCtx as p,createTextVNode as f,toDisplayString as m,withDirectives as h,vShow as g,withModifiers as C,Fragment as k,renderList as b,normalizeClass as y,isRef as S}from"vue";import{useMessage as _,NButton as L,NPopover as O,NIcon as j,NInputGroup as A,NInput as N,NTooltip as w,NPopconfirm as x,NModal as T,NCard as I}from"naive-ui";import E from"axios";import{FileTray as z,Close as J}from"@vicons/ionicons5";import U from"xe-utils";import"moment";import F from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import D from"../components/search-condition/SearchCondition.vue.js";import R from"../../../../shared/components/TextOverTooltip/TextOverTooltip.vue.js";import W from"./search-class-name.vue.js";import P from"../hooks/useTableSearchCon.js";import q from"../../../../_virtual/plugin-vue_export-helper.js";const B={class:"search-professional-container"},H={class:"left-content"},M={class:"left-content-btn"},$={class:"right-content"},G={class:"list"},K={class:"list-title"},Q=r("span",{class:"list-title-parent"},"父类名称",-1),V={class:"list-title-name"},X=r("span",null,"筛选名称",-1),Y=r("h4",{class:"name"},"筛选名称",-1),Z={class:"search-condition-f-content"},ee={class:"search-condition-f-footer"},te=r("span",{class:"list-title-name"},m("创建人"),-1),ne=r("span",{class:"list-title-btn"},"操作",-1),ie={class:"list-content"},oe=["onClick"],ae={class:"list-content-parent"},le={class:"list-content-name"},se={class:"list-content-name"},ce={class:"list-content-btn"},re={class:"svg-wrap"};var ue=q(e({__name:"search-professional-model",props:{originConditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},searchFieldLimit:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]}},emits:["changeShowName","changeSearch","handleItemClick","reloadClassification"],setup(e,{emit:q}){const ue=e,{validConObj:de}=P(),ve=t(),pe=E.create({}),fe=_();let me=n(null),he=n(null),ge=n(null),Ce=n(),ke=n(),be=n(!1),ye=n(""),Se=n({visible:!1,keyWord:""}),_e=n(""),Le=n();const Oe={},je=i((()=>((null==ue?void 0:ue.searchFieldList)||[]).filter((e=>"operatorColumn"!==e.columnName)))),Ae=i((()=>{var e,t;return(null==(t=null==(e=ke.value)?void 0:e.conObj)?void 0:t.length)||0})),Ne=i((()=>"string"==typeof ye.value&&ye.value?ue.originConditionList.filter((e=>e.name.includes(ye.value))):ue.originConditionList)),we=i((()=>{var e;return"edit"==(null==(e=Ce.value)?void 0:e.from)?"保存模板":"另存为模板"}));function xe(){he.value.addAction({noDefault:!0}),a((()=>{let e=me.value;e.scrollTop=e.scrollHeight}))}function Te(){he.value.checkActionList()?(q("changeSearch","all",{},{},[]),q("changeShowName","全部数据"),ke.value=Oe):(_e.value="search",he.value.saveAdd()),ue.originConditionList.forEach((e=>{e.checked=!1}))}function Ie(){_e.value="SaveToClass",he.value.saveAdd()}function Ee(e){"search"===_e.value?function(e){let t=null==e?void 0:e.setting;U.isJSON(t)&&(t=JSON.parse(t));ke.value=t,q("changeSearch","",t,{},[t]),q("changeShowName","自定义筛选")}(e):"SaveToClass"===_e.value&&function(e){be.value=!0,Le.value=e,a((()=>{ge.value.init()}))}(e)}function ze(e){Ce.value=Object.assign({},e,{from:"edit"}),a((()=>{he.value.handleInitConditions()}))}function Je(e){Ce.value=Object.assign({},e,{from:"copy"}),a((()=>{he.value.handleInitConditions()}))}function Ue(e){let t="";for(const n in e)t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n])+"&";return t=t.slice(0,-1),t}function Fe(){let e=ge.value.handleGetParams();if(!e)return;let t=Le.value.setting;U.isJSON(t)&&(t=JSON.parse(t),Object.assign(t,e)),Le.value.setting=JSON.stringify(t),function(e){const t=JSON.parse(e.setting);if(!de(t.conObj,je.value,ue.searchFieldLimit))return;Object.assign(e,{tableId:ve.tableId,conditionList:JSON.stringify(ue.originConditionList)}),pe({url:"/tableList/saveTableCondiTion",method:"post",data:e,transformRequest:[Ue]}).then((({data:e})=>{"SUCCESS"==e.result?(De(),q("reloadClassification"),he.value.cancelSaveAdd(),a((()=>{he.value.addAction()}))):fe.error(e.resultMsg)}))}(Le.value)}function De(){be.value=!1}function Re(){Se.value.visible=!1}function We(){ye.value=Se.value.keyWord,Se.value.visible=!1}function Pe(){We()}return o((()=>ue.originConditionList),(e=>{e.length>0&&function(){let e=ue.originConditionList.find((e=>e.isDefault)),t="全部数据";if(e)e.checked=!0,ke.value=e,e.isEdit?ze(e):Je(e),t=e.name||"全部数据",q("changeShowName",t);else if("全部数据"===t){const e=Object.assign({},{from:"copy"});Ce.value=e}}()}),{deep:!0,immediate:!0}),(e,t)=>(l(),s("div",B,[c(" 左侧筛选分类设置 "),r("div",H,[r("div",{ref_key:"comWrap",ref:me,class:"left-content-com"},[u(D,d(e.$attrs,{ref_key:"conditionRef",ref:he,searchFieldList:v(je),actionList_prop:v(Ce),showItemName:!1,isCnHis:!1,saveEmpty:!0,isOnlyCondition:!1,hideAddBtn:!0,isInSearch:!0,source:"search-professional",onSaveAdd:Ee}),null,16,["searchFieldList","actionList_prop"])],512),r("div",M,[u(v(L),{onClick:xe},{default:p((()=>[f(" 添加条件 ")])),_:1}),u(v(L),{type:"primary",onClick:Te},{default:p((()=>[f(" 查询 ")])),_:1}),u(v(L),{type:"primary",onClick:Ie},{default:p((()=>[f(m(v(we)),1)])),_:1}),h(r("span",{class:"selected-item-del",onClick:t[0]||(t[0]=e=>function(e=!0){he.value.cancelSaveAdd(),ke.value=Oe,Ce.value=Oe,ue.originConditionList.forEach((e=>{e.checked=!1})),a((()=>{e&&q("changeSearch","all",{},{},[]),he.value.addAction(),q("changeShowName","全部数据")}))}(!0))},[u(v(F),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),f(" 清空筛选 "),r("span",null,"("+m(v(Ae))+")",1)],512),[[g,v(Ae)>0]])])]),c(" 右侧筛选分类列表 "),r("div",$,[r("div",G,[r("div",K,[Q,r("span",V,[X,u(v(O),{show:v(Se).visible,"onUpdate:show":t[3]||(t[3]=e=>v(Se).visible=e),placement:"bottom",trigger:"click"},{trigger:p((()=>[u(v(j),{component:v(z),class:"svg-icon-filter",onClick:t[1]||(t[1]=C((()=>{}),["prevent","stop"]))},null,8,["component"])])),default:p((()=>[Y,r("div",Z,[u(v(A),null,{default:p((()=>[u(v(N),{value:v(Se).keyWord,"onUpdate:value":t[2]||(t[2]=e=>v(Se).keyWord=e),placeholder:"请输入关键字",style:{width:"200px"}},null,8,["value"]),u(v(L),{type:"primary",ghost:"",onClick:Pe},{default:p((()=>[f("搜索")])),_:1})])),_:1})]),r("div",ee,[u(v(L),{ghost:"",onClick:Re,style:{"margin-right":"10px"}},{default:p((()=>[f("取消")])),_:1}),u(v(L),{type:"primary",onClick:We},{default:p((()=>[f("筛选")])),_:1})])])),_:1},8,["show"])]),te,ne]),r("ul",ie,[r("template",null,[(l(!0),s(k,null,b(v(Ne),((e,n)=>(l(),s("li",{key:e.sid,class:y({checked:e.checked}),onClick:t=>function(e){const t=e.checked?{}:e;ke.value=t,ue.originConditionList.forEach((t=>{t.sid!=e.sid||t.checked?t.checked=!1:t.checked=!0}));let n=Array.isArray(ue.treeData)&&ue.treeData.find((t=>t.name==e.displayCategory));if(q("handleItemClick",e,0,n||{},0),0===Object.keys(ke.value||{}).length)return he.value.cancelSaveAdd(),Ce.value=Oe,void a((()=>{he.value.addAction()}));"copy"==(e.isEdit?"edit":"copy")?Je(e):ze(e)}(e)},[r("span",ae,[u(v(R),{content:e.displayCategory},null,8,["content"])]),r("span",le,[u(v(R),{content:e.name},null,8,["content"])]),r("span",se,[u(v(R),{content:e.createdByName},null,8,["content"])]),r("span",ce,[c(" 编辑 "),h(r("template",null,[u(v(w),null,{trigger:p((()=>[u(v(F),{onClick:C((t=>ze(e)),["prevent","stop"]),"icon-class":"xitongtubiaoliebiaocaozuoanniubianjixiugai",class:"svg-icon-btn"},null,8,["onClick"])])),default:p((()=>[f(" 编辑 ")])),_:2},1024)],512),[[g,e.isEdit]]),c(" 复制 "),u(v(w),null,{trigger:p((()=>[u(v(F),{onClick:C((t=>Je(e)),["prevent","stop"]),"icon-class":"xitongtubiaoliebiaocaozuoanniufuzhi",class:"svg-icon-btn"},null,8,["onClick"])])),default:p((()=>[f(" 复制 ")])),_:2},1024),c(" 删除 "),h(r("template",null,[u(v(x),{onClick:t[5]||(t[5]=C((()=>{}),["prevent","stop"])),onPositiveClick:t=>function(e,t){if(!e)return void fe.info("请选择行");let n={id:e.sid};pe({url:"/tableList/deleteTableCondiTion",method:"post",data:n,transformRequest:[Ue]}).then((({data:e})=>{"SUCCESS"==e.result?(fe.success("删除成功"),ue.originConditionList.splice(t,1)):fe.error(e.resultMsg)}))}(e,n)},{trigger:p((()=>[u(v(F),{onClick:t[4]||(t[4]=C((()=>{}),["prevent","stop"])),"class-name":"svg-icon-btn is-danger thumb","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"})])),default:p((()=>[f(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])],512),[[g,e.isEdit]])])],10,oe)))),128))])])])]),c(" 保存到分类弹窗 "),u(v(T),{show:v(be),"onUpdate:show":t[6]||(t[6]=e=>S(be)?be.value=e:be=e),maskClosable:!1,class:"quickSearch-saveToClass-modal",closable:!1,centered:"",onPositiveClick:Fe,onNegativeClick:De},{default:p((()=>[u(v(I),{title:"保存到分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[r("div",re,[u(v(j),{component:v(J),size:"24",onClick:De},null,8,["component"])])])),footer:p((()=>[u(v(L),{onClick:De},{default:p((()=>[f("取消")])),_:1}),u(v(L),{type:"info",onClick:Fe},{default:p((()=>[f("保存")])),_:1})])),default:p((()=>[u(W,d({ref_key:"className",ref:ge},e.$attrs,{actionList_prop:v(Ce)}),null,16,["actionList_prop"])])),_:1})])),_:1},8,["show"])]))}}),[["__file","search-professional-model.vue"]]);export{ue as default};
@@ -1,119 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- value: {
3
- type: ObjectConstructor;
4
- default: () => void;
5
- };
6
- format: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- disabled: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- isDetail: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- defaultValue: {
19
- type: ObjectConstructor;
20
- default: () => {};
21
- };
22
- itemData: {
23
- type: ObjectConstructor;
24
- default: () => {};
25
- };
26
- shortcutFieldsList: {
27
- type: ArrayConstructor;
28
- default: () => never[];
29
- };
30
- }, {
31
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
32
- value: {
33
- type: ObjectConstructor;
34
- default: () => void;
35
- };
36
- format: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- disabled: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- isDetail: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- defaultValue: {
49
- type: ObjectConstructor;
50
- default: () => {};
51
- };
52
- itemData: {
53
- type: ObjectConstructor;
54
- default: () => {};
55
- };
56
- shortcutFieldsList: {
57
- type: ArrayConstructor;
58
- default: () => never[];
59
- };
60
- }>> & {
61
- onChange?: ((...args: any[]) => any) | undefined;
62
- }>>;
63
- emits: (event: "change", ...args: any[]) => void;
64
- ageValue: any;
65
- showType: import("vue").ComputedRef<string>;
66
- isDisabled: import("vue").ComputedRef<boolean>;
67
- handleInitDefaultValue: () => void;
68
- checkType: (val: any) => string;
69
- handlefillVal: (val?: any) => void;
70
- handleYearChange: (e: any) => void;
71
- handleMonthChange: (e: any) => void;
72
- handleDayChange: (e: any) => void;
73
- getvalue: (e: any) => any;
74
- valueChange: (val: string, key: string) => void;
75
- checkVal: (val: string, key: string) => boolean;
76
- handleProrate: () => void;
77
- triggerChange: (changedValue: any) => void;
78
- NInputNumber: any;
79
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
80
- value: {
81
- type: ObjectConstructor;
82
- default: () => void;
83
- };
84
- format: {
85
- type: StringConstructor;
86
- default: string;
87
- };
88
- disabled: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
92
- isDetail: {
93
- type: BooleanConstructor;
94
- default: boolean;
95
- };
96
- defaultValue: {
97
- type: ObjectConstructor;
98
- default: () => {};
99
- };
100
- itemData: {
101
- type: ObjectConstructor;
102
- default: () => {};
103
- };
104
- shortcutFieldsList: {
105
- type: ArrayConstructor;
106
- default: () => never[];
107
- };
108
- }>> & {
109
- onChange?: ((...args: any[]) => any) | undefined;
110
- }, {
111
- value: Record<string, any>;
112
- disabled: boolean;
113
- isDetail: boolean;
114
- defaultValue: Record<string, any>;
115
- format: string;
116
- itemData: Record<string, any>;
117
- shortcutFieldsList: unknown[];
118
- }>;
119
- export default _default;
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as n,createElementBlock as i,normalizeClass as u,unref as s,Fragment as d,createVNode as o,createCommentVNode as c,createBlock as r,createElementVNode as f}from"vue";import{NInputNumber as y}from"naive-ui";import m from"../../../../../_virtual/plugin-vue_export-helper.js";const v=f("span",{class:"age-com-suffix"},"岁",-1),p=f("span",{class:"age-com-suffix"},"月",-1),b=f("span",{class:"age-com-suffix"},"日",-1);var g=m(e({__name:"index",props:{value:{type:Object,default:()=>{}},format:{type:String,default:"YYYY-MM-DD"},disabled:{type:Boolean,default:!1},isDetail:{type:Boolean,default:!1},defaultValue:{type:Object,default:()=>({})},itemData:{type:Object,default:()=>({})},shortcutFieldsList:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:f}){const m=e;let g=a({year:null,month:null,day:null,days:null}),j=t((()=>m.format&&"[object String]"==D(m.format)?m.format.toUpperCase():"YYYY-MM-DD")),h=t((()=>m.disabled||!1));function D(e){return Object.prototype.toString.call(e)}function Y(e){x(e,"year")}function O(e){x(e,"month")}function k(e){x(e,"day")}function x(e,a){let t=parseInt(e,10);(isNaN(t)||function(e,a){return e>{day:31,month:12,year:200}[a]}(e,a))&&(t=""),M({[a]:t})}function M(e){Object.assign(g.value,e),function(){const e=e=>e||0;let a=365*e(g.value.year)+30*e(g.value.month)+e(g.value.day);g.value.days=a||0}();const{year:a=0,month:t=0,day:l=0,days:n=""}=g.value;f("change",Object.assign({},{year:a,month:t,day:l,days:n}))}return l((()=>m.defaultValue),(()=>{Object.keys(m.defaultValue||{}).length&&M({...m.defaultValue})}),{immediate:!0}),l((()=>m.value),(e=>{!function(e={}){if(0===Object.keys(e||{}).length)Object.assign(g.value,{year:null,month:null,day:null,days:null});else{let a=D(e);["[object String]","[object Number]"].includes(a)?x(e,"year"):"[object Object]"==a&&Object.assign(g.value,{...e})}}(e)}),{immediate:!0}),(a,t)=>(n(),i("div",{class:u(["container age-com-block",{"form-item-disabled":e.isDetail}])},[s(j).includes("YYYY")?(n(),i(d,{key:0},[o(s(y),{value:s(g).year,"onUpdate:value":[t[0]||(t[0]=e=>s(g).year=e),Y],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"]),v],64)):c("v-if",!0),s(j).includes("MM")?(n(),i(d,{key:1},[o(s(y),{value:s(g).month,"onUpdate:value":[t[1]||(t[1]=e=>s(g).month=e),O],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"]),p],64)):c("v-if",!0),s(j).includes("DD")?(n(),i(d,{key:2},[s(j).includes("DD")?(n(),r(s(y),{key:0,value:s(g).day,"onUpdate:value":[t[2]||(t[2]=e=>s(g).day=e),k],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"])):c("v-if",!0),b],64)):c("v-if",!0)],2))}}),[["__file","index.vue"]]);export{g as default};
@@ -1,199 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- title: {
3
- type: (NumberConstructor | StringConstructor)[];
4
- };
5
- list: {
6
- type: ArrayConstructor;
7
- default: never[];
8
- };
9
- currentTempId: {
10
- type: (NumberConstructor | StringConstructor)[];
11
- };
12
- }, {
13
- BTNOBJ: {
14
- copy: string;
15
- pencil: string;
16
- delete: string;
17
- add: string;
18
- download: string;
19
- label: string;
20
- queding: string;
21
- del: string;
22
- };
23
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
24
- title: {
25
- type: (NumberConstructor | StringConstructor)[];
26
- };
27
- list: {
28
- type: ArrayConstructor;
29
- default: never[];
30
- };
31
- currentTempId: {
32
- type: (NumberConstructor | StringConstructor)[];
33
- };
34
- }>> & {
35
- onShowDrawer?: ((...args: any[]) => any) | undefined;
36
- onClickGroupBtn?: ((...args: any[]) => any) | undefined;
37
- }>>;
38
- emit: (event: "showDrawer" | "clickGroupBtn", ...args: any[]) => void;
39
- btnObj: import("vue").Ref<{
40
- copy: string;
41
- pencil: string;
42
- delete: string;
43
- add: string;
44
- download: string;
45
- label: string;
46
- queding: string;
47
- del: string;
48
- }>;
49
- handleSelect: (key: string, option: any) => void;
50
- showDrawer: (btn: any, j: number) => void;
51
- clickBtn: (btn: any, j: number) => void;
52
- NButton: any;
53
- NDropdown: any;
54
- TextOverTooltip: import("vue").DefineComponent<{
55
- content: {
56
- type: (NumberConstructor | StringConstructor)[];
57
- required: false;
58
- };
59
- className: {
60
- type: StringConstructor;
61
- required: false;
62
- };
63
- refName: {
64
- type: StringConstructor;
65
- required: false;
66
- };
67
- effect: {
68
- type: StringConstructor;
69
- required: false;
70
- default: string;
71
- };
72
- placement: {
73
- type: StringConstructor;
74
- required: false;
75
- default: string;
76
- };
77
- tooltipTitle: {
78
- type: (NumberConstructor | StringConstructor)[];
79
- required: false;
80
- default: string;
81
- };
82
- isAlias: {
83
- type: BooleanConstructor;
84
- required: false;
85
- };
86
- }, {
87
- props: {
88
- content?: string | number | undefined;
89
- className?: string | undefined;
90
- refName?: string | undefined;
91
- effect: string;
92
- placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
93
- tooltipTitle: string | number;
94
- isAlias?: boolean | undefined;
95
- };
96
- isDisabledTooltip: import("vue").Ref<boolean>;
97
- curContent: import("vue").ComputedRef<string>;
98
- $refName: any;
99
- onMouseOver: (str: any) => void;
100
- onMouseOut: () => void;
101
- NTooltip: any;
102
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
103
- content: {
104
- type: (NumberConstructor | StringConstructor)[];
105
- required: false;
106
- };
107
- className: {
108
- type: StringConstructor;
109
- required: false;
110
- };
111
- refName: {
112
- type: StringConstructor;
113
- required: false;
114
- };
115
- effect: {
116
- type: StringConstructor;
117
- required: false;
118
- default: string;
119
- };
120
- placement: {
121
- type: StringConstructor;
122
- required: false;
123
- default: string;
124
- };
125
- tooltipTitle: {
126
- type: (NumberConstructor | StringConstructor)[];
127
- required: false;
128
- default: string;
129
- };
130
- isAlias: {
131
- type: BooleanConstructor;
132
- required: false;
133
- };
134
- }>>, {
135
- effect: string;
136
- placement: string;
137
- tooltipTitle: string | number;
138
- isAlias: boolean;
139
- }>;
140
- SvgIcon: import("vue").DefineComponent<{
141
- iconClass: {
142
- type: StringConstructor;
143
- required: true;
144
- default: string;
145
- };
146
- title: {
147
- type: StringConstructor;
148
- required: false;
149
- default: string;
150
- };
151
- className: {
152
- type: StringConstructor;
153
- required: false;
154
- };
155
- }, {
156
- props: {
157
- iconClass: string;
158
- title: string;
159
- className?: string | undefined;
160
- };
161
- iconName: import("vue").ComputedRef<string>;
162
- svgClass: import("vue").ComputedRef<string>;
163
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
- iconClass: {
165
- type: StringConstructor;
166
- required: true;
167
- default: string;
168
- };
169
- title: {
170
- type: StringConstructor;
171
- required: false;
172
- default: string;
173
- };
174
- className: {
175
- type: StringConstructor;
176
- required: false;
177
- };
178
- }>>, {
179
- title: string;
180
- iconClass: string;
181
- }>;
182
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("showDrawer" | "clickGroupBtn")[], "showDrawer" | "clickGroupBtn", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
183
- title: {
184
- type: (NumberConstructor | StringConstructor)[];
185
- };
186
- list: {
187
- type: ArrayConstructor;
188
- default: never[];
189
- };
190
- currentTempId: {
191
- type: (NumberConstructor | StringConstructor)[];
192
- };
193
- }>> & {
194
- onShowDrawer?: ((...args: any[]) => any) | undefined;
195
- onClickGroupBtn?: ((...args: any[]) => any) | undefined;
196
- }, {
197
- list: unknown[];
198
- }>;
199
- export default _default;
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,openBlock as o,createElementBlock as r,createVNode as i,unref as n,withCtx as l}from"vue";import{NDropdown as p,NButton as u}from"naive-ui";import c from"../../../../../shared/components/TextOverTooltip/TextOverTooltip.vue.js";import s from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import a from"../../../../../_virtual/plugin-vue_export-helper.js";const d={class:"buttonGroup-com-block"};var m=a(e({__name:"ButtonGroup",props:{title:{type:[String,Number]},list:{type:Array,default:[]},currentTempId:{type:[String,Number]}},emits:["showDrawer","clickGroupBtn"],setup(e,{emit:a}){const m=e;function f(e,t){const o=m.list.findIndex((e=>e.sid==t.sid));"ADD"==t.type?function(e,t){a("showDrawer",e,t)}(t,o):"LINK"!=t.type&&"0"==m.currentTempId&&function(e,t){a("clickGroupBtn",e,t)}(t,o)}return t({copy:"copy",pencil:"edit",delete:"delete",add:"plus-circle",download:"download",label:"tag",queding:"check",del:"close"}),(t,a)=>(o(),r("div",d,[i(n(p),{trigger:"hover",options:e.list,"key-field":"sid","label-field":"alias",onSelect:f},{default:l((()=>[i(n(u),{type:"primary",class:"group-btn"},{default:l((()=>[i(n(c),{refName:"buttonGroupTitle",class:"group-left",content:e.title},null,8,["content"]),i(n(s),{"icon-class":"xitongtubiaoliebiaocaozuoanniuzhankai"})])),_:1})])),_:1},8,["options"])]))}}),[["__file","ButtonGroup.vue"]]);export{m as default};
@@ -1,2 +0,0 @@
1
- declare const getBtnIcon: any;
2
- export default getBtnIcon;
@@ -1 +0,0 @@
1
- import{h as n}from"vue";const o={props:["data","btnObj"],functional:!0,render:function(o){const i=o.data||{},t=o.data||{};return i.icon?"only_icon"!==i.showStyle&&t[i.icon]?n("n-icon",{class:"custom-icon",type:t[i.icon]}):n("svg-icon",{iconClass:i.icon,style:{marginRight:"8px"}}):i.iconSetting?n("svg-icon",{iconClass:JSON.parse(i.iconSetting).icon,style:{marginRight:"8px"}}):void 0}};export{o as default};
@@ -1,90 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { ISearchType } from '../../../../../../es/components/table-filter/src/types';
3
- declare const _default: import("vue").DefineComponent<{
4
- item: {
5
- type: PropType<ISearchType>;
6
- default: () => {
7
- value: never[];
8
- };
9
- };
10
- handleGetConfigApi: {
11
- type: FunctionConstructor;
12
- default: () => void;
13
- };
14
- filterApiConfig: {
15
- type: ObjectConstructor;
16
- };
17
- outFilterChange: {
18
- type: FunctionConstructor;
19
- default: () => void;
20
- };
21
- }, {
22
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
23
- item: {
24
- type: PropType<ISearchType>;
25
- default: () => {
26
- value: never[];
27
- };
28
- };
29
- handleGetConfigApi: {
30
- type: FunctionConstructor;
31
- default: () => void;
32
- };
33
- filterApiConfig: {
34
- type: ObjectConstructor;
35
- };
36
- outFilterChange: {
37
- type: FunctionConstructor;
38
- default: () => void;
39
- };
40
- }>> & {}>>;
41
- quickInputSelect: any;
42
- treeData: import("vue").Ref<{
43
- label: string;
44
- key: string;
45
- selectable: boolean;
46
- scopedSlots: {
47
- title: string;
48
- };
49
- }[]>;
50
- handleMaxTagCount: import("vue").ComputedRef<(item: ISearchType) => 0 | 1>;
51
- showRemoveIcon: import("vue").ComputedRef<boolean>;
52
- init: () => Promise<void>;
53
- handleMaxTag: () => string;
54
- handleRequestedOptions: (item: ISearchType) => Promise<any>;
55
- getSearchDefParams: (item: ISearchType) => any;
56
- formatField: (value: any) => any;
57
- hanldeGetCascadelabel: (v?: never[], k?: {}) => any;
58
- handleInitTreeData: (list: any, config: ISearchType) => void;
59
- hanldeSetTreeDef: () => void;
60
- maxTagPlaceholder: (item: ISearchType) => number;
61
- treeSelect: (key: string, vnode: any) => void;
62
- change: () => void;
63
- handleDisabledTreeData: (list?: any, config?: any) => void;
64
- createSuffixIcon: () => void;
65
- NTreeSelect: any;
66
- NSpin: any;
67
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
68
- item: {
69
- type: PropType<ISearchType>;
70
- default: () => {
71
- value: never[];
72
- };
73
- };
74
- handleGetConfigApi: {
75
- type: FunctionConstructor;
76
- default: () => void;
77
- };
78
- filterApiConfig: {
79
- type: ObjectConstructor;
80
- };
81
- outFilterChange: {
82
- type: FunctionConstructor;
83
- default: () => void;
84
- };
85
- }>>, {
86
- item: ISearchType;
87
- handleGetConfigApi: Function;
88
- outFilterChange: Function;
89
- }>;
90
- export default _default;
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as l,onMounted as i,watch as a,getCurrentInstance as n,openBlock as o,createBlock as r,unref as u,normalizeStyle as c,normalizeClass as s,withCtx as d,createElementBlock as p,createVNode as v,createCommentVNode as f}from"vue";import{NTreeSelect as m,NSpin as h}from"naive-ui";import y from"xe-utils";import"moment";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const w={key:0,class:"init-key-loading",slot:"title",style:{color:"#08c"}};var _=g(e({__name:"tree-select",props:{item:{type:Object,default:()=>({value:[]})},handleGetConfigApi:{type:Function,default:()=>{}},filterApiConfig:{type:Object},outFilterChange:{type:Function,default:()=>{}}},setup(e){const g=e,_=t(null),b=t([{label:"_init_key_",key:"_init_key_",selectable:!1,scopedSlots:{title:"title"}}]);let k=l((()=>function(e){let t=function(e){return Array.isArray(e.value)?e.value.length:1}(e);return t<=1?1:0})),C=l((()=>{var e;let t=g.item.value,l=1==(null==(e=null==g?void 0:g.item)?void 0:e.filterExplicit);if(Array.isArray(t)&&l){let e=t.length;if(1==g.item.explicitRequired)return e>1}return!0}));function x(e=[],t={}){if(Array.isArray(e)&&e.length){const l=[];return e.forEach((e=>{let i=function(e){let t=e;try{return t&&"string"==typeof t&&t.startsWith("###")&&(t=t.slice(3),t=JSON.parse(t),t=t.change_text),t||""}catch(e){return""}}(t[e]);l.push(i)})),0==l.length?"":l.join(" ")}return""}function A(e=[],t){var l;let{showKeys:i=[],field_key:a=""}=(null==(l=null==t?void 0:t.setting)?void 0:l.wordbook)||{};e.forEach(((e,l)=>{let n=y.stringToValue(e[a],"value");e.myLabel=x(i,e)||n,e.key=e.theUniqueKey,e.title=e.myLabel,e.value=`${n}<&=&>${l}<&=&>${e.key}`,e.children&&e.children.length&&A(e.children,t)}))}function q(e,t){}function O(){}function S(e=[],t={}){e.forEach(((e,l)=>{let i=!t.showRemoveIcon&&g.item.value.includes(e.value);e.disabled=i,e.children&&e.children.length&&S(e.children,t)}))}return i((()=>{!async function(){try{let e=await async function(e){let t=function(e){var t;let l={},{params:i=[],autograph:a,filterKeys:n,id:o,wordbookType:r}=(null==(t=null==e?void 0:e.settingObj)?void 0:t.wordbook)||{};i&&i.forEach((e=>{l[e.p_name]=e.p_value}));a&&(l.autograph=a);let u=Array.isArray(n)?JSON.stringify(n):n;return{wordbookId:o,fieldKeys:u,wordbookType:r||"WORDBOOK",isLevelLazyLoad:!1,...l}}(e);return await g.handleGetConfigApi(t,"requestGetWordbookData",{fields:e},g.filterApiConfig)}(g.item),{result:t,map:l}=e.data;if("SUCCESS"!==t)return void(b.value=[]);let i=l.rows||[];i&&(A(i,g.item),b.value=i.map((e=>({...e,label:e.value}))))}catch(e){console.log(e),b.value=[]}finally{!function(){var e,t;let l=1==(null==(e=null==g?void 0:g.item)?void 0:e.filterExplicit);if("firstOption"===((null==(t=null==g?void 0:g.item)?void 0:t.explicitDefaultVal)||"")&&l){let e=b.value[0];g.item.value=(null==e?void 0:e.value)?[null==e?void 0:e.value]:[],"function"==typeof g.outFilterChange&&g.outFilterChange({type:"outSearchInit"})}}()}}(),function(){let e=_.value;if(!e)return;let t=e.$el;if(!t)return;let l=t.querySelector(".ant-select-selection--multiple");if(!l.querySelector(".quick-input-select-span")){let e=document.createElement("span");e.className="quick-input-select-span";let t='<i aria-label="图标: down" class="anticon anticon-down ant-select-arrow-icon"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></i>';e.innerHTML=t,l.appendChild(e)}}()})),a((()=>g.item),(e=>{var t;let l=null==(t=n())?void 0:t.ctx;S(b.value,{showRemoveIcon:C.value}),l.$forceUpdate()}),{immediate:!0,deep:!0}),(t,l)=>(o(),r(u(m),{value:e.item.value,"onUpdate:value":[l[0]||(l[0]=t=>e.item.value=t),O],maxTagCount:u(k)(e.item),multiple:"",filterable:"",clearable:"",style:c(`width: ${e.item.advanceColWidth||160}px`),class:s([!u(C)&&"c-a-tree-select-show-hide-icon","c-a-quick-input-tree-mul"]),options:b.value,allowClear:1!=e.item.explicitRequired,placeholder:e.item.placeholder||`请选择${e.item.alias||e.item.title}`,"onUpdate:indeterminateKeys":q},{action:d((({key:e,value:t})=>["_init_key_"===e?(o(),p("span",w,[v(u(h),{tip:"加载中..."},null,8,["tip"])])):f("v-if",!0)])),_:1},8,["value","maxTagCount","style","class","options","allowClear","placeholder"]))}}),[["__file","tree-select.vue"]]);export{_ as default};
@@ -1,113 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { ISearchType } from '../../../../../../es/components/table-filter/src/types';
3
- declare const _default: import("vue").DefineComponent<{
4
- item: {
5
- type: PropType<ISearchType>;
6
- default: () => void;
7
- };
8
- maxTagPlaceholder: {
9
- type: FunctionConstructor;
10
- default: () => {};
11
- };
12
- outFilterChange: {
13
- type: FunctionConstructor;
14
- default: () => {};
15
- };
16
- handleWordBookSearch: {
17
- type: FunctionConstructor;
18
- default: () => {};
19
- };
20
- dropdownVisibleChange: {
21
- type: FunctionConstructor;
22
- default: () => {};
23
- };
24
- source: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- fetchingWordbook: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- }, {
33
- quickInputSelect: any;
34
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
35
- item: {
36
- type: PropType<ISearchType>;
37
- default: () => void;
38
- };
39
- maxTagPlaceholder: {
40
- type: FunctionConstructor;
41
- default: () => {};
42
- };
43
- outFilterChange: {
44
- type: FunctionConstructor;
45
- default: () => {};
46
- };
47
- handleWordBookSearch: {
48
- type: FunctionConstructor;
49
- default: () => {};
50
- };
51
- dropdownVisibleChange: {
52
- type: FunctionConstructor;
53
- default: () => {};
54
- };
55
- source: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- fetchingWordbook: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- }>> & {}>>;
64
- handleMaxTagCount: import("vue").ComputedRef<(item: ISearchType) => 0 | 1>;
65
- isnoPages: import("vue").ComputedRef<boolean>;
66
- hasShowKeys: import("vue").ComputedRef<boolean>;
67
- showRemoveIcon: import("vue").ComputedRef<boolean>;
68
- mode: import("vue").ComputedRef<boolean>;
69
- renderList: import("vue").ComputedRef<any>;
70
- createSuffixIcon: () => void;
71
- filterOption: (...arg: any) => any;
72
- handleSearchChangePage: (type: string) => void;
73
- handleChange: () => void;
74
- NSelect: any;
75
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
76
- item: {
77
- type: PropType<ISearchType>;
78
- default: () => void;
79
- };
80
- maxTagPlaceholder: {
81
- type: FunctionConstructor;
82
- default: () => {};
83
- };
84
- outFilterChange: {
85
- type: FunctionConstructor;
86
- default: () => {};
87
- };
88
- handleWordBookSearch: {
89
- type: FunctionConstructor;
90
- default: () => {};
91
- };
92
- dropdownVisibleChange: {
93
- type: FunctionConstructor;
94
- default: () => {};
95
- };
96
- source: {
97
- type: StringConstructor;
98
- default: string;
99
- };
100
- fetchingWordbook: {
101
- type: BooleanConstructor;
102
- default: boolean;
103
- };
104
- }>>, {
105
- item: ISearchType;
106
- source: string;
107
- outFilterChange: Function;
108
- maxTagPlaceholder: Function;
109
- handleWordBookSearch: Function;
110
- dropdownVisibleChange: Function;
111
- fetchingWordbook: boolean;
112
- }>;
113
- export default _default;
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as l,onMounted as i,openBlock as a,createBlock as n,unref as o,normalizeClass as u,normalizeStyle as r,createCommentVNode as c}from"vue";import{NSelect as s}from"naive-ui";import"xe-utils";import"moment";import m from"../../../../../_virtual/plugin-vue_export-helper.js";var d=m(e({__name:"multi-select",props:{item:{type:Object,default:()=>{}},maxTagPlaceholder:{type:Function,default:()=>({})},outFilterChange:{type:Function,default:()=>({})},handleWordBookSearch:{type:Function,default:()=>({})},dropdownVisibleChange:{type:Function,default:()=>({})},source:{type:String,default:""},fetchingWordbook:{type:Boolean,default:!1}},setup(e){const m=e,d=t(null);let p=l((()=>function(e){return m.maxTagPlaceholder(e)<=1?1:0}));l((()=>{const{searchPageConfig:e}=m.item||{};return!e||e.page<=1&&!e.hasNextPage}));let v=l((()=>{var e,t,l;return((null==(l=null==(t=null==(e=null==m?void 0:m.item)?void 0:e.setting)?void 0:t.wordbook)?void 0:l.showKeys)||[]).length>0})),h=l((()=>{var e;let t=m.item.value,l=1==(null==(e=null==m?void 0:m.item)?void 0:e.filterExplicit);if(Array.isArray(t)&&l){let e=t.length;if(1==m.item.explicitRequired)return e>1}return!0})),f=l((()=>{var e;return"0"===String(null==(e=null==m?void 0:m.item)?void 0:e.advanceOptionSetting)})),g=l((()=>{var e,t;return"SelectMuiWordBook"==m.item.comType?m.item.dataSource.map(((e,t)=>{const l=m.item.hasFieldList&&e.showKeys?e.showKeys.split("<&=&>").join(" "):e._show_title||e.showKeys||e.myName;return{...e,value:e.myName,label:l,disabled:0===t&&v.value&&m.item.hasFieldList||!h.value&&m.item.value&&m.item.value.includes(e.myName)}})):null==(t=null==(e=m.item)?void 0:e.labelList)?void 0:t.map(((e,t)=>({...e,value:t,label:e.labelName||"",disabled:!h.value&&m.item.value&&m.item.value.includes(t)})))}));function y(){f.value&&m.outFilterChange()}return i((()=>{!function(){if(f.value)return;let e=d.value;if(!e)return;let t=e.$el;if(!t)return;let l=t.querySelector(".ant-select-selection--multiple");if(!l.querySelector(".quick-input-select-span")){let e=document.createElement("span");e.className="quick-input-select-span";let t='<i aria-label="图标: down" class="anticon anticon-down ant-select-arrow-icon"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></i>';e.innerHTML=t,l.appendChild(e)}}()})),(t,l)=>"SelectMui"==e.item.com?(a(),n(o(s),{key:0,ref_key:"quickInputSelect",ref:d,class:u(["quick-input-select",{"quick-input-select-mul":o(p)(e.item)>0}]),multiple:!o(f),placeholder:e.item.placeholder||`请选择${e.item.alias||e.item.title}`,style:r({width:`${e.item.advanceColWidth||160}px`}),maxTagCount:o(p)(e.item),filterable:"",value:e.item.value,"onUpdate:value":[l[0]||(l[0]=t=>e.item.value=t),y],onSearch:l[1]||(l[1]=t=>e.handleWordBookSearch(t,e.item)),"onUpdate:show":l[2]||(l[2]=t=>e.dropdownVisibleChange(t,e.item)),clearable:1!=e.item.explicitRequired,options:o(g)},null,8,["class","multiple","placeholder","style","maxTagCount","value","clearable","options"])):c("v-if",!0)}}),[["__file","multi-select.vue"]]);export{d as default};