cnhis-design-vue 3.1.41-beta.35 → 3.1.41-beta.37

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 (74) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +286 -0
  3. package/es/components/base-search/index.js +1 -0
  4. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +1 -4
  5. package/es/components/base-search/src/index.vue.js +1 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/classification/index.d.ts +1013 -0
  8. package/es/components/classification/index.js +1 -0
  9. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +9 -9
  10. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  11. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  12. package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +1 -3
  13. package/es/components/classification/src/const/index.d.ts +2 -0
  14. package/es/components/classification/src/const/index.js +1 -0
  15. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +6 -6
  16. package/es/components/classification/src/index.vue.js +1 -0
  17. package/es/components/classification/style/iconfont.ttf +0 -0
  18. package/es/components/classification/style/index.css +1 -0
  19. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  21. package/es/components/index.css +1 -1
  22. package/es/components/index.d.ts +3 -1
  23. package/es/components/index.js +1 -1
  24. package/es/components/quick-search/index.d.ts +712 -0
  25. package/es/components/quick-search/index.js +1 -0
  26. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +21 -8
  27. package/es/components/quick-search/src/index.vue.js +1 -0
  28. package/es/components/quick-search/style/index.css +1 -0
  29. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  30. package/es/components/table-filter/index.d.ts +0 -1997
  31. package/es/components/table-filter/index.js +1 -1
  32. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -1
  33. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  34. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  35. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  36. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  37. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  38. package/es/components/table-filter/src/tool/transformData.js +1 -1
  39. package/es/env.d.ts +24 -24
  40. package/package.json +2 -2
  41. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  42. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  43. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  44. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  45. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  46. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  47. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  48. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  49. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  50. package/es/components/table-filter/src/const/index.d.ts +0 -5
  51. package/es/components/table-filter/src/const/index.js +0 -1
  52. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  53. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  54. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  55. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  56. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  57. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  58. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  59. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  60. package/es/components/table-filter/src/tool/utils.js +0 -1
  61. package/es/components/table-filter/style/index.css +0 -1
  62. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  63. package/es/shared/utils/tapable/index.d.ts +0 -139
  64. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  65. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  66. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  67. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  68. /package/es/components/{table-filter → base-search}/style/iconfont.ttf +0 -0
  69. /package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +0 -0
  70. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js +0 -0
  71. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  72. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  73. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  74. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as a,createElementBlock as r,createElementVNode as n,withDirectives as s,createCommentVNode as u,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import b from"../components/render-widget/index.vue.js";import k from"../hooks/useMixins.js";import x from"../hooks/useAdvanced.js";import S from"../hooks/useRenderWidget.js";import{NButton as _,NIcon as j}from"naive-ui";import{Search as C}from"@vicons/ionicons5";import{cloneDeep as F}from"lodash-es";import R from"../../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},I={class:"base-container"},Q={class:"base-ul"},V=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),A={key:1,class:"baseli"},O={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=R(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:R}){const W=e,{outQuickSearchFn:w}=k(),{isRender:z,getRenderSearchConObj:B,isExistDefValByRenderWidget:D,resetRenderWidgetValue:E}=S(),{transformData:N}=x(),P=t(null),U=t(null),$=t(0),M=t(0),T=t(0),G=t(0),H=t(!1),J=t(!1),K=t([]),X=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function Y(e){var t;if(J.value)return;let l=P.value;if(!l)return;J.value=!0,$.value=l.clientWidth,M.value=2===W.classificationIndex?160:0,T.value=(null==(t=U.value)?void 0:t.clientWidth)||0;let i=M.value+T.value,a=$.value-i;G.value=a,e.type&&"resize"===e.type&&function(){if(K.value.length>0)return;J.value=!1}()}function Z(){g.debounce(Y({type:"resize"}),300)}function ee(){R("foldQuickSearch",!0)}function te(e={}){!function(e,t=!1,l={}){let i=[];K.value.length>0&&(i=F(K.value));R("onFilterSearch",e,t,i,l)}(le()||[],!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=B(i);a&&t.push(a)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{E(e)})),w.handlerInitSearchItem(e)}(K.value),R("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){K.value=[];let t=F(N(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=t,w.handlerInitSearchItem(K.value),K.value.some((e=>z(e)?D(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>K),(()=>{const e=le()||[];R("getFilterParam",e),H.value=!!e.length}),{immediate:!0,deep:!0}),(t,l)=>(a(),r("div",q,[n("div",I,[s((a(),r("div",{class:"bease-left",ref_key:"baseLeft",ref:P},[n("ul",Q,[u(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(X)?(a(),r("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:U},[f(c(_),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[V,m(" 筛选 "+h(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):u("v-if",!0),u(" start--筛选外显--start "),(a(!0),r(p,null,v(K.value,(e=>(a(),r(p,null,[e.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):u("v-if",!0)],64)))),256)),u(" end--筛选外显--end "),u(" 查询按钮 "),K.value&&K.value.length>0?(a(),r("li",A,[f(c(_),{type:"primary",onClick:te,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(C),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):u("v-if",!0),u(" 重置按钮 "),H.value?(a(),r("li",O,[f(c(_),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):u("v-if",!0)])])),[[c(y),Z]])])]))}}),[["__file","BaseSearch.vue"]]);export{W as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onActivated as a,onBeforeMount as o,onMounted as s,nextTick as d,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as f,normalizeStyle as p,withDirectives as m,createVNode as g,createTextVNode as v,toDisplayString as C,createCommentVNode as y,createElementVNode as k,Fragment as S,renderList as b,createBlock as x,withCtx as _}from"vue";import{NIcon as O,NTooltip as w}from"naive-ui";import{Repeat as I,SettingsOutline as L,ChevronDown as z,ChevronForward as j,Checkmark as B,Close as N,ChevronUp as P}from"@vicons/ionicons5";import M from"../components/set-classification/index.vue.js";import A from"../directive/flexibleResize.js";import{root_isShowResetButton as E}from"../const/index.js";import J from"../hooks/useMixins.js";import T from"../../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"Classification-com",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:me}=J(),ge=i(),ve=n(null);let Ce=n(150),ye=n(!1),ke=n([]),Se=n([]),be=n([]),xe=n(2),_e=n(""),Oe=n({name:"全部数据",sid:"all_data"}),we=n([]),Ie=n([]),Le=n(""),ze=n(!1),je=n("全部数据");l(E,n(pe.isShowResetButton));let Be=t((()=>0===xe.value?{marginRight:"8px"}:2===xe.value?{display:"inline-block"}:{})),Ne=t((()=>{let e=Se.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){je.value=e.name;let l=function(e){let i=[];return ke.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1),T("changeSearch",Boolean("all_data"===e.sid),e,n,l)}function Ee(){let e="";if(2===xe.value)e=0;else{let i=xe.value;e=++i}Ce.value=150,Je(e)}async function Je(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await me(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){ze.value=!0,Fe(!1)}function Re(e){ze.value=e}function Fe(e){ye.value=void 0===e?!ye.value:e}function We(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==pe.conditionSid.indexOf(e.item.sid)&&T("changeSearch",!0,{name:"全部数据",sid:"all_data",selected:!0}),pe.tableId)&&Object.keys(pe.conditionMap).length>0){ke.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=pe.conditionMap;be.value=JSON.parse(JSON.stringify(n)),Ie.value=e||[],Se.value=JSON.parse(JSON.stringify(n));const l={name:"全部数据",sid:"all_data"};Se.value.unshift(l);let t=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&t.push(i)})),t.unshift({name:"全部数据",sid:"all_data"}),ke.value=t,0===xe.value&&(i=!0,ke.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function qe(e){try{await We(e)}catch(e){console.log(e)}}function Ge({distance:e}){const i=Ce.value+e;Ce.value=Math.min(Math.max(i,50),650)}function Qe(){Je(xe.value,Ce.value)}async function $e(){await Ke(pe.tableId),Ve()}async function De(e){await Ke(pe.tableId),He()}function Ve(e){He(e).then((e=>{}))}function He(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:pe.conditionMap;return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=ge.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=ge.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=ge.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await me(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{qe({})})),o((()=>{qe({})})),s((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();ve&&i.includes(ve.value)||Fe(!1)}))}))})),c((()=>pe.tableId),(e=>{e&&(Ve(!0),_e.value!==e&&(_e.value=e))}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(xe.value=e)}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationWidth),(e=>{e&&(Ce.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+f(xe)]),style:p(f(Be))},[0===f(xe)?m((r(),h("div",{key:0,class:"tree-type classify-0",style:p({width:f(Ce)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",R,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])):y("v-if",!0),k("ul",F,[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[k("span",null,C(i.name),1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,q),i.open?(r(!0),h(S,{key:0},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",Q,C(e.name||Ue(e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,G)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,W))],2)):y("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(r(),h("div",$,[k("div",D,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[V,v(" 清空筛选 ")])])):y("v-if",!0)],4)),[[f(A),{mode:"VR",onMove:Ge,onEnd:Qe}]]):y("v-if",!0),1===f(xe)?(r(),h(S,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||f(be).filter((e=>e.isShow)).length>0?(r(),h("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",K,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[v(" 全部数据 "),f(Oe).digital||0===f(Oe).digital?(r(),h(S,{key:0},[v(" ("+C(f(Oe).digital||0)+") ",1)],64)):y("v-if",!0)],2),k("div",U,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])])):y("v-if",!0),k("ul",{class:"tile",style:p({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(S,{key:1},[k("span",Y,C(e.name),1),k("div",Z,[(r(!0),h(S,null,b(e.children,((i,n)=>(r(),h(S,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},C(i.name||Ue(i.isPublic)),11,ee)):y("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},C(e.name)+" "+C(e.digital),11,X))])):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",ie,[k("div",ne,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&0!==e.children.length?(r(!0),h(S,{key:1},b(e.children,((i,n)=>(r(),h(S,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(C(i.name)+" ",1),g(f(O),{component:f(N),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):y("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(C(e.name)+" ",1),g(f(O),{component:f(N),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[le,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],64)):y("v-if",!0),2===f(xe)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ve},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[g(f(w),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",te,C(f(Ne)),1)])),default:_((()=>[k("span",ae,C(f(Ne)),1)])),_:1}),g(f(O),{component:f(ye)?f(P):f(z)},null,8,["component"])]),f(ye)?(r(),h("div",oe,[k("ul",{class:"tree",style:p({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[v(C(i.name)+C(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),g(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,ce)):y("v-if",!0),i.open?(r(!0),h(S,{key:1},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",null,C(e.name||Ue(null==e?void 0:e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,re)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h(S,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,se),k("div",de,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"tree-footer-icon",onClick:Ee},[g(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"tree-footer-icon",onClick:Te},[g(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])],64))],2)):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",he,[k("div",ue,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[fe,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],512)):y("v-if",!0),y(" 弹出弹窗 "),g(M,{ref:"search",searchFieldList:e.searchFieldList,conditionList:f(we),displayCategoryList:f(Ie),settingId:f(Le),tableId:e.tableId,classifyModal:f(ze),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","Classification-com.vue"]]);export{pe as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as i,onBeforeUnmount as t,watch as l,openBlock as a,createBlock as o,unref as n,normalizeClass as u,withCtx as d,createVNode as s,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as f}from"vue";import{NModal as h,NCard as p,NButton as m}from"naive-ui";import x from"../classify-filter/index.vue.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const b={class:"svg-wrap"},y={class:"flex_right"};var _=g(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:g,emit:_}){const w=e,k=i(w.visible),z=i(!1),A=i("860px");let C=i({maxHeight:"496px",height:"496px",overflowY:"auto"}),L=i(null),S=null;function H(){F(),S=setTimeout((()=>{L&&L.value.handleInitConditions()}),30)}function F(){S&&clearTimeout(S)}function T(){L&&L.value.saveAdd()}function j(){k.value=!1,_("cancelSaveAdd"),A.value="860px",C.value={height:"496px",maxHeight:"496px",overflowY:"auto"},z.value=!1,L&&L.value.cancelSaveAdd()}function $(){z.value=!z.value;let e=document.body.clientHeight;"860px"===A.value?(A.value="100%",C.value.maxHeight=`${e}px`,C.value.height=`${e}px`):(A.value="860px",C.value.maxHeight="496px",C.value.height="")}return t((()=>{F()})),l((()=>w.visible),(e=>{k.value=e,e&&H()})),g({cancelSaveAdd:j}),(e,i)=>(a(),o(n(h),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":z.value}]),show:k.value,"onUpdate:show":i[0]||(i[0]=e=>k.value=e),maskClosable:!1,width:A.value,bodyStyle:n(C),closable:!1,centered:"",onPositiveClick:T,onNegativeClick:j},{default:d((()=>[s(n(p),{style:c({width:A.value,...n(C)}),title:w.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[r("div",b,[r("i",{onClick:$,class:u(["iconfont-table-filter",z.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),r("i",{onClick:j,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[r("div",y,[s(n(m),{onClick:j},{default:d((()=>[v("取消")])),_:1}),s(n(m),{type:"info",onClick:T},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[s(x,f(e.$attrs,{ref_key:"conditionApiRef",ref:L,searchFieldList:w.searchFieldList,conditionList:w.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{_ as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var h=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const h=e,b=u(),{handleGetConfigApi:A}=C();let L=i(h.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:h.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},h.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},h.filterApiConfig))return;O&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},h.filterApiConfig))return;b.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else b.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:h.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},h.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>h.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>h.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>T),(e=>{e||(S.value={})})),(i,t)=>(a(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{h as default};
@@ -1,5 +0,0 @@
1
- import { Ref, InjectionKey } from 'vue';
2
- import { IeditTableWrapperItem } from '../types';
3
- export declare const GROUP_TITLE_KEY = "group-show-title";
4
- export declare const root_isShowResetButton: InjectionKey<Ref<boolean>>;
5
- export declare const InjecteditTableWrapper: InjectionKey<Ref<IeditTableWrapperItem>>;
@@ -1 +0,0 @@
1
- const o="group-show-title",t=Symbol("root_isShowResetButton"),e=Symbol("editTableWrapper");export{o as GROUP_TITLE_KEY,e as InjecteditTableWrapper,t as root_isShowResetButton};
@@ -1,8 +0,0 @@
1
- import moment from 'moment';
2
- import 'moment/locale/zh-cn';
3
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
4
- export default function (): {
5
- validConObj: (conObj: any, fieldList: ISearchType[], fieldSearchLimit: any) => any;
6
- getSearchDefValueByLimit: (field: ISearchType, searchLimit?: any) => "" | moment.Moment[];
7
- formatSearchLimit: (limitList: any, freeze?: boolean) => any;
8
- };
@@ -1 +0,0 @@
1
- import e from"moment";import"moment/locale/zh-cn";import{useMessage as t}from"naive-ui";const n=t();function r(){function t(e){e=Number(e)||0;const t=Math.floor(e/12),n=e%12;return(t?`${t}年`:"")+(n?6==n?"半"+(t?"":"年"):`${n}个月`:"")}return{validConObj:function(r,o,i){if(!i||!(null==r?void 0:r.length)||!(null==o?void 0:o.length))return!0;const u=o.reduce(((e,t,n)=>(e[t.columnName]=n,e)),{});return r.every((r=>{const c=r.field_key,l=o[u[c]],a=i[c];return!l||!a||("time"!==a.type||((r,o,i)=>{let u=i.value,c=0;const l=u;if(!u)return!0;const a={TODAY:1/30,TOMORROW:1/30,YESTERDAY:1/30,THIS_WEEK:7/30,NEXT_WEEK:7/30,LAST_WEEK:7/30,THIS_MONTH:1,NEXT_MONTH:1,LAST_MONTH:1,THIS_SEASON:3,NEXT_SEASON:3,LAST_SEASON:3,THIS_YEAR:12,NEXT_YEAR:12,LAST_YEAR:12},f={HOUR:1/24/30,DAY:1/30,WEEK:7/30,MONTH:1,QUARTER:3,YEAR:12},E=r.con;if("IN"===E){const{start_val:t,end_val:i}=r;if(!t&&i||t&&!i)return void n.warning(`请选择${o.title}${t?"截止":"起始"}日期`);t&&i&&(c=e(i).valueOf(),u=e(t).add(l,"month").valueOf())}else if(a[E])c=a[E];else if(",IN_THE_PAST,IN_THE_FUTURE,".includes(`,${E},`)){const{value:e,unit:t}=r,n=f[t]||1;c=Math.floor(Number(e)*Number(n)*100)/100}else if(",IN_THE_PAST_DI,IN_THE_FUTURE_DI,".includes(`,${E},`)){const{unit:e}=r;c=f[e]||0}const T=c<=u;if(!T){const e=o.title||"";n.warning(`${e}最大查询跨度${t(i.value)}`)}return T})(r,l,a))}))},getSearchDefValueByLimit:function(t,n){if(n){const r=n[t.columnName];if(r&&"time"===r.type){const{way:t,defValue:n}=r,o=1==t,i=e(),u=i.clone().add("month",n*(o?-1:1));return o?[u,i]:[i,u]}}return""},formatSearchLimit:function(e,n=!0){const r={time(e){const{value:n,defValue:r}=e;return`默认查询${t(r)},最大查询跨度${t(n)}`}},o=e.reduce(((e,t)=>{const{key:n}=t;if(n){const o=r[t.type]?r[t.type](t):"";e[n]={...t,tips:o}}return e}),{});return n?Object.freeze(o):o}}}export{r as default};
@@ -1,12 +0,0 @@
1
- import { ISearchType } from '../../../../../es/components/table-filter/src/types';
2
- export default function (): {
3
- wordBookutils: {
4
- hasArray: (arr: ISearchType[]) => boolean;
5
- handleWordbookData(item: any, data: any, params: any): {
6
- rows: never[];
7
- hasFieldList: boolean;
8
- searchPageConfig: {};
9
- };
10
- getTitleHeader(fieldList: ISearchType[], renderKey: any): any;
11
- };
12
- };
@@ -1 +0,0 @@
1
- import e from"xe-utils";import"moment";function t(){const t="<&=&>",a={hasArray:e=>Array.isArray(e)&&e.length>0,handleWordbookData(o,s,r){const{setting:n={}}=o,{showKeys:i=[],defaultValue:l,defaultValueTitle:u}=n.wordbook||{};let h=null,d=[],m=!1,c={};if(l&&u&&(h={myName:l,showKeys:u}),s&&s.result){const n=(null==s?void 0:s.reqParams)||{},{page:l,hasNextPage:u,fieldList:y}=s.map;c=Object.assign(o.searchPageConfig,{page:l,hasNextPage:u,isRequest:!0,keyword:(null==r?void 0:r.keyword)||void 0,asyncCount:(null==n?void 0:n.asyncCount)||void 0});const g=s.map.rows.map((a=>{const s=[];i.forEach((t=>{const o=e.stringToValue(a[t],"change_text");s.push(o)}));const r=e.stringToValue(a[o.setting.wordbook.field_key],"value");return Object.assign(a,{myName:r,showKeys:s.join(t),_show_title:s.join(" ")})})),f={};if(d=g.reduce(((e,t)=>(!f[t.myName]&&(f[t.myName]=e.push(t)),e)),[]),h&&d.unshift(h),a.hasArray(y)&&a.hasArray(i)&&i.length>1){const e=a.getTitleHeader(y,i);d.unshift({myName:e,showKeys:e,sid:Math.random()}),m=!0}}return{rows:d,hasFieldList:m,searchPageConfig:c}},getTitleHeader(e,a){const o=[];let s=[];s=Array.isArray(a)?[...a]:[a],s.forEach((t=>{for(let a=0;a<e.length;a++)if(t===e[a].columnName){o.push(`${e[a].title}`);break}}));return o.join(t)}};return{wordBookutils:a}}export{t as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as l,computed as a,watch as t,openBlock as i,createElementBlock as n,createElementVNode as o,Fragment as s,renderList as u,unref as c,normalizeClass as r,createCommentVNode as d,toDisplayString as v,createBlock as f,createVNode as m,withCtx as p,createTextVNode as h,withDirectives as g,vShow as k,isRef as b}from"vue";import{useMessage as y,NModal as C,NCard as S,NIcon as x,NButton as _,NForm as w,NFormItem as A,NInput as q}from"naive-ui";import{CloseOutline as F,AddOutline as j}from"@vicons/ionicons5";import I from"../hooks/useMixins.js";import L from"../hooks/useRenderWidget.js";import R from"../hooks/useAdvanced.js";import"moment/locale/zh-cn";import{cloneDeep as T}from"lodash-es";import U from"../components/render-widget/index.vue.js";import V from"../../../../_virtual/plugin-vue_export-helper.js";const z={class:"quick-search-block quick-search-table"},E={class:"quick-row"},Q={class:"quick-item-title"},B={class:"quick-item-col"},D={class:"svg-wrap"},O={class:"flex_right"},N={class:"class-filter-content"},P={class:"quickSearch-content"},W=o("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],G={key:0,class:"s-content"};var J=V(e({__name:"QuickSearch",props:{searchFieldList:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:V,emit:J}){const H=e,K={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},X=y(),{handleGetConfigApi:Y,outQuickSearchFn:Z}=I(),{initRenderWidgetCfg:$,getRenderSearchConObj:ee,resetRenderWidgetValue:le}=L(),{transformData:ae}=R(),te=l(null),ie=l({classname:""});let ne=l(!1),oe=l([]),se=l([]),ue=l(!1),ce=l(""),re=a((()=>!!se.value.length&&se.value.some((e=>e.isAdd)))),de=a((()=>(e,l="name")=>e.alias||e[l]));function ve(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=ee(t);i&&l.push(i)}return l.filter((e=>e.value))}(oe.value)||[]}function fe(){var e;null==(e=te.value)||e.validate((e=>{var l;if(e)return;let a=ve();a.length||(a=[]);let t=null==(l=se.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await Y(e,"requestSaveTableCondiTion",{},H.filterApiConfig))return;ne.value=!1,null==(l=te.value)||l.restoreValidation(),ie.value.classname="",se.value=[],ke()}catch(e){console.log(e)}}({tableId:H.tableId||"",setting:JSON.stringify({displayCategory:t,name:ie.value.classname,conObj:a}),conditionList:"[]"})}))}function me(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),ue.value=!0}function pe(){ue.value=!1,ce.value&&(se.value.forEach((e=>e.selected=!1)),se.value.push({disabled:!0,value:ce.value,selected:!0,isAdd:!0}),ce.value="")}function he(e,l){!function(e,l){se.value.splice(e,1)}(e)}function ge(){ne.value=!1}function ke(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{le(e)})),Z.handlerInitSearchItem(oe.value)}(oe.value),J("clearQuickSearchConfig")}return t((()=>H.searchFieldList),(e=>{e&&e.length>0&&function(){let e=T(ae(H.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];setTimeout((()=>{oe.value=e||[],Z.handlerInitSearchItem(oe.value)}))}()}),{immediate:!0,deep:!0}),t((()=>oe),(()=>{const e=ve()||[];J("getFilterParam",e)}),{deep:!0}),V({openSaveToCalss:function(){let e=ve();e&&(e.length>0?ne.value=!0:X.warning("请设置搜索条件"))},clearData:ke,onFilterSearch:function(){let e=ve()||[];return J("onFilterSearch",e,!1),oe.value}}),(e,l)=>(i(),n("div",null,[o("div",z,[(i(!0),n(s,null,u(c(oe),(e=>(i(),n("div",{class:r(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[o("div",E,[d(" title "),o("div",Q,[o("span",null,v(c(de)(e,"title"))+"  ",1)]),d(" content "),o("div",B,[d(" 直接渲染组件 "),e.isRender?(i(),f(U,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):d("v-if",!0)])])],2)))),128))]),d(" 保存到分类的弹窗 "),m(c(C),{show:c(ne),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:fe,onNegativeClick:ge,class:"classification-modal-block"},{default:p((()=>[m(c(S),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":p((()=>[o("div",D,[m(c(x),{component:c(F),size:"24",onClick:ge},null,8,["component"])])])),footer:p((()=>[o("div",O,[m(c(_),{onClick:ge},{default:p((()=>[h("取消")])),_:1}),m(c(_),{type:"info",onClick:fe},{default:p((()=>[h("确认")])),_:1})])])),default:p((()=>[o("div",N,[m(c(w),{ref_key:"formRef",ref:te,"label-placement":"left",rules:K,model:ie.value},{default:p((()=>[m(c(A),{label:"筛选集名称",path:"classname"},{default:p((()=>[m(c(q),{value:ie.value.classname,"onUpdate:value":l[0]||(l[0]=e=>ie.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),o("div",P,[W,(i(!0),n(s,null,u(c(se),((e,l)=>(i(),n("div",{class:r(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(se.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(i(),n("div",G,[o("span",null,v(e.value),1)])):(i(),f(c(q),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),m(c(x),{component:c(F),class:"anticon-close",size:"20",onClick:e=>he(l)},null,8,["component","onClick"])],42,M)))),128)),c(re)?d("v-if",!0):(i(),n(s,{key:0},[g(m(c(_),{dashed:"",icon:"plus",class:"ant-btn",onClick:me},{default:p((()=>[m(c(x),{component:c(j),size:"20"},null,8,["component"]),h("添加分类 ")])),_:1},512),[[k,!c(ue)]]),g(m(c(q),{style:{width:"100px"},class:"edit-tag",value:c(ce),"onUpdate:value":l[1]||(l[1]=e=>b(ce)?ce.value=e:ce=e),valueModifiers:{trim:!0},onBlur:pe,maxLength:10},null,8,["value"]),[[k,c(ue)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","QuickSearch.vue"]]);export{J as default};
@@ -1,39 +0,0 @@
1
- import moment from 'moment';
2
- declare const timeDomain: {
3
- TODAY(): moment.Moment[];
4
- TOMORROW(): moment.Moment[];
5
- YESTERDAY(): moment.Moment[];
6
- THIS_WEEK(): moment.Moment[];
7
- NEXT_WEEK(): moment.Moment[];
8
- UP_WEEK(): moment.Moment[];
9
- THIS_MONTH(): moment.Moment[];
10
- NEXT_MONTH(): moment.Moment[];
11
- UP_MONTH(): moment.Moment[];
12
- THIS_SEASON(): moment.Moment[];
13
- NEXT_SEASON(): moment.Moment[];
14
- UP_SEASON(): moment.Moment[];
15
- THIS_YEAR(): moment.Moment[];
16
- UP_YEAR(): moment.Moment[];
17
- NEXT_YEAR(): moment.Moment[];
18
- getMonth(difference?: number): moment.Moment[];
19
- getQuarter(difference?: number): moment.Moment[];
20
- getYear(difference?: number): moment.Moment[];
21
- /**
22
- * 获取前 i 周的周一和周日日期,并以数组的方式返回。
23
- * 当 i=1,获取的是上周一和上周日的日期;
24
- * 当 i=2,获取的是上上周一和上上周日的日期
25
- * ...以此类推
26
- * @param i
27
- */
28
- getLastWeek(i: number): moment.Moment[];
29
- /**
30
- * 获取后 i 周的周一和周日日期,并以数组的方式返回。
31
- * 当 i=1,获取的是下周一和下周日的日期;
32
- * 当 i=2,获取的是下下周一和下下周日的日期
33
- * ...以此类推
34
- * @param i
35
- */
36
- getNextWeek(i: number): moment.Moment[];
37
- getTimeDomain(type: string, format?: string): any;
38
- };
39
- export default timeDomain;
@@ -1 +0,0 @@
1
- import t from"moment";const e={TODAY:()=>[t().startOf("day"),t().endOf("day")],TOMORROW:()=>[t().add(1,"days").startOf("days"),t().add(1,"days").endOf("days")],YESTERDAY:()=>[t().subtract(1,"days").startOf("days"),t().subtract(1,"days").endOf("days")],THIS_WEEK:()=>[t().startOf("week"),t().endOf("week")],NEXT_WEEK:()=>e.getNextWeek(1),UP_WEEK:()=>e.getLastWeek(1),THIS_MONTH:()=>e.getMonth(0),NEXT_MONTH:()=>e.getMonth(1),UP_MONTH:()=>e.getMonth(-1),THIS_SEASON:()=>e.getQuarter(0),NEXT_SEASON:()=>e.getQuarter(1),UP_SEASON:()=>e.getQuarter(-1),THIS_YEAR:()=>e.getYear(0),UP_YEAR:()=>e.getYear(-1),NEXT_YEAR:()=>e.getYear(1),getMonth(e=0){const a=t().month()+e;return[t().month(a).startOf("month"),t().month(a).endOf("month")]},getQuarter(e=0){const a=t().quarter()+e;return[t().quarter(a).startOf("quarter"),t().quarter(a).endOf("quarter")]},getYear(e=0){const a=t().year()+e;return[t().year(a).startOf("year"),t().year(a).endOf("year")]},getLastWeek(e){const a=parseInt(t().format("E"));return[t().subtract(a+7*e-1,"days").startOf("days"),t().subtract(a+7*(e-1),"days").endOf("days")]},getNextWeek(e){const a=parseInt(t().format("E"));return[t().add(7-a+7*(e-1)+1,"days").startOf("days"),t().add(7-a+7*e,"days").endOf("days")]},getTimeDomain(t,a){if(e[t]){const r=e[t]();return"string"==typeof a?r.map((e=>e.format(t))):r}return[]}};export{e as default};
@@ -1,4 +0,0 @@
1
- export declare const isString: (val: any) => boolean;
2
- export declare const isEmpty: (obj: any) => boolean;
3
- export declare const paramsToPrintValue: (item: any) => any;
4
- export declare const isNil: (val: any) => boolean;
@@ -1 +0,0 @@
1
- const t=Object.prototype.toString,r=r=>"[object String]"===t.call(r),e=t=>{for(const r in t)return!1;return!0},n=t=>{if(!e(t))return Object.keys(t).forEach((e=>{if(r(t[e])){if(t[e]&&t[e].startsWith("###{")){const r=JSON.parse(t[e].replace("###",""));t[e]=r.change_text}t[e]&&t[e].startsWith("{")&&JSON.parse(t[e]).objs&&(t[e]=JSON.parse(t[e]).objStr)}})),t},o=t=>null==t||null==t;export{e as isEmpty,o as isNil,r as isString,n as paramsToPrintValue};
@@ -1 +0,0 @@
1
- @font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:8px}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:8px;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
@@ -1,86 +0,0 @@
1
- declare const draggableComponent: import('vue').DefineComponent<
2
- {
3
- list: {
4
- type: ArrayConstructor;
5
- required: boolean;
6
- default: any;
7
- };
8
- modelValue: {
9
- type: ArrayConstructor;
10
- required: boolean;
11
- default: any;
12
- };
13
- itemKey: {
14
- type: (FunctionConstructor | StringConstructor)[];
15
- required: boolean;
16
- };
17
- clone: {
18
- type: FunctionConstructor;
19
- default: (original: any) => any;
20
- };
21
- tag: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- move: {
26
- type: FunctionConstructor;
27
- default: any;
28
- };
29
- componentData: {
30
- type: ObjectConstructor;
31
- required: boolean;
32
- default: any;
33
- };
34
- },
35
- unknown,
36
- {
37
- error: boolean;
38
- },
39
- {
40
- realList(): any;
41
- getKey(): any;
42
- },
43
- {
44
- getUnderlyingVm(domElement: any): any;
45
- getUnderlyingPotencialDraggableComponent(htmElement: any): any;
46
- emitChanges(evt: any): void;
47
- alterList(onList: any): void;
48
- spliceList(): void;
49
- updatePosition(oldIndex: any, newIndex: any): void;
50
- getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
51
- getVmIndexFromDomIndex(domIndex: any): any;
52
- onDragStart(evt: any): void;
53
- onDragAdd(evt: any): void;
54
- onDragRemove(evt: any): void;
55
- onDragUpdate(evt: any): void;
56
- computeFutureIndex(relatedContext: any, evt: any): any;
57
- onDragMove(evt: any, originalEvent: any): any;
58
- onDragEnd(): void;
59
- },
60
- import('vue').ComponentOptionsMixin,
61
- import('vue').ComponentOptionsMixin,
62
- any[],
63
- any,
64
- import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
65
- Readonly<
66
- {
67
- move: Function;
68
- tag: string;
69
- clone: Function;
70
- list: unknown[];
71
- modelValue: unknown[];
72
- componentData: Record<string, any>;
73
- } & {
74
- itemKey?: string | Function;
75
- }
76
- >,
77
- {
78
- move: Function;
79
- tag: string;
80
- clone: Function;
81
- list: unknown[];
82
- modelValue: unknown[];
83
- componentData: Record<string, any>;
84
- }
85
- >;
86
- export default draggableComponent;
@@ -1,139 +0,0 @@
1
- type FixedSizeArray<T extends number, U> = T extends 0
2
- ? void[]
3
- : ReadonlyArray<U> & {
4
- 0: U;
5
- length: T;
6
- };
7
- type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
8
- type Append<T extends any[], U> = {
9
- 0: [U];
10
- 1: [T[0], U];
11
- 2: [T[0], T[1], U];
12
- 3: [T[0], T[1], T[2], U];
13
- 4: [T[0], T[1], T[2], T[3], U];
14
- 5: [T[0], T[1], T[2], T[3], T[4], U];
15
- 6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
16
- 7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
17
- 8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
18
- }[Measure<T['length']>];
19
- type AsArray<T> = T extends any[] ? T : [T];
20
-
21
- declare class UnsetAdditionalOptions {
22
- _UnsetAdditionalOptions: true;
23
- }
24
- type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
25
-
26
- type Callback<E, T> = (error: E | null, result?: T) => void;
27
- type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
28
-
29
- type FullTap = Tap & {
30
- type: 'sync' | 'async' | 'promise';
31
- fn: Function;
32
- };
33
-
34
- type Tap = TapOptions & {
35
- name: string;
36
- };
37
-
38
- type TapOptions = {
39
- before?: string;
40
- stage?: number;
41
- };
42
-
43
- interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
44
- name?: string;
45
- tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
46
- call?: (...args: any[]) => void;
47
- loop?: (...args: any[]) => void;
48
- error?: (err: Error) => void;
49
- result?: (result: R) => void;
50
- done?: () => void;
51
- register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
52
- }
53
-
54
- type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
55
-
56
- declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
57
- constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
58
- name: string | undefined;
59
- taps: FullTap[];
60
- intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
61
- isUsed(): boolean;
62
- callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
63
- promise(...args: AsArray<T>): Promise<R>;
64
- tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
65
- withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
66
- }
67
-
68
- export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
69
- call(...args: AsArray<T>): R;
70
- }
71
-
72
- export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
73
- export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
74
- export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
75
- T,
76
- AsArray<T>[0],
77
- AdditionalOptions
78
- > {}
79
-
80
- declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
81
- tapAsync(
82
- options: string | (Tap & IfSet<AdditionalOptions>),
83
- fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
84
- ): void;
85
- tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
86
- }
87
-
88
- export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
89
- T,
90
- void,
91
- AdditionalOptions
92
- > {}
93
- export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
94
- T,
95
- R,
96
- AdditionalOptions
97
- > {}
98
- export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
99
- T,
100
- void,
101
- AdditionalOptions
102
- > {}
103
- export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
104
- T,
105
- R,
106
- AdditionalOptions
107
- > {}
108
- export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
109
- T,
110
- void,
111
- AdditionalOptions
112
- > {}
113
- export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
114
- T,
115
- AsArray<T>[0],
116
- AdditionalOptions
117
- > {}
118
-
119
- type HookFactory<H> = (key: any, hook?: H) => H;
120
-
121
- interface HookMapInterceptor<H> {
122
- factory?: HookFactory<H>;
123
- }
124
-
125
- export class HookMap<H> {
126
- constructor(factory: HookFactory<H>, name?: string);
127
- name: string | undefined;
128
- get(key: any): H | undefined;
129
- for(key: any): H;
130
- intercept(interceptor: HookMapInterceptor<H>): void;
131
- }
132
-
133
- export class MultiHook<H> {
134
- constructor(hooks: H[], name?: string);
135
- name: string | undefined;
136
- tap(options: string | Tap, fn?: Function): void;
137
- tapAsync(options: string | Tap, fn?: Function): void;
138
- tapPromise(options: string | Tap, fn?: Function): void;
139
- }