xc-computent 0.3.0 → 0.3.1

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.
@@ -1 +1 @@
1
- (function(p,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("element-plus"),require("vue-types"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","vue-types","@iconify/vue"],o):(p=typeof globalThis<"u"?globalThis:p||self,o(p.Computent={},p.Vue,p.ElementPlus,p.VueTypes,p.Iconify))})(this,function(p,o,uo,Io,Mo){"use strict";const Lo=["disabled"],mo={key:0,class:"comp-btn__spinner"},jo={key:1,class:"comp-btn__icon"},Oo={class:"comp-btn__content"},Ro=o.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["click"],setup(s,{emit:l}){const a=s,t=l,d=c=>{!a.disabled&&!a.loading&&t("click",c)};return(c,w)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["comp-btn",`comp-btn--${c.variant}`,`comp-btn--${c.size}`,{"comp-btn--loading":c.loading,"comp-btn--disabled":c.disabled||c.loading}]),disabled:c.disabled||c.loading,onClick:d},[c.loading?(o.openBlock(),o.createElementBlock("span",mo)):o.createCommentVNode("",!0),c.$slots.icon&&!c.loading?(o.openBlock(),o.createElementBlock("span",jo,[o.renderSlot(c.$slots,"icon",{},void 0,!0)])):o.createCommentVNode("",!0),o.createElementVNode("span",Oo,[o.renderSlot(c.$slots,"default",{},void 0,!0)])],10,Lo))}}),G=(s,l)=>{const a=s.__vccOpts||s;for(const[t,d]of l)a[t]=d;return a},Q=G(Ro,[["__scopeId","data-v-7c40bef2"]]),qo={key:0,class:"comp-badge__dot"},Go={class:"comp-badge__content"},U=G(o.defineComponent({__name:"Badge",props:{type:{default:"default"},variant:{default:"subtle"},dot:{type:Boolean,default:!1}},setup(s){return(l,a)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["comp-badge",`comp-badge--${l.type}`,`comp-badge--${l.variant}`,{"comp-badge--has-dot":l.dot}])},[l.dot?(o.openBlock(),o.createElementBlock("span",qo)):o.createCommentVNode("",!0),o.createElementVNode("span",Go,[o.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),[["__scopeId","data-v-158f78af"]]),Wo={class:"comp-input-wrapper"},X=G(o.defineComponent({__name:"Input",props:{size:{default:"default"},placeholder:{default:"Please enter..."}},setup(s){return(l,a)=>{const t=o.resolveComponent("el-input");return o.openBlock(),o.createElementBlock("div",Wo,[o.createVNode(t,o.mergeProps(l.$attrs,{size:l.size,placeholder:l.placeholder,class:"comp-el-input"}),o.createSlots({_:2},[o.renderList(l.$slots,(d,c)=>({name:c,fn:o.withCtx(w=>[o.renderSlot(l.$slots,c,o.normalizeProps(o.guardReactiveProps(w||{})),void 0,!0)])}))]),1040,["size","placeholder"])])}}}),[["__scopeId","data-v-e8d4db36"]]),Ao=Object.freeze(Object.defineProperty({__proto__:null,iconMap:{"xc-revert":"grommet-icons:revert","xc-progress":"nrk:progress","xc-upload":"bytesize:upload","xc-download":"bytesize:download","xc-author":"hugeicons:authorized","xc-lock":"hugeicons:folder-locked","xc-unlock":"hugeicons:folder-unlocked","xc-setting":"uil:setting","xc-link":"material-symbols:link","xc-cancel":"mdi:cancel-circle-outline","xc-shelves":"material-symbols:shelves","xc-settle":"f7:money-yen-circle","xc-invoice":"hugeicons:money-add-02","xc-cancel-invoice":"hugeicons:money-not-found-03","xc-start-use":"formkit:start","xc-reduce":"icon-park-outline:reduce","xc-pass":"codicon:pass","xc-expire":"pajamas:expire","xc-pause":"tabler:clock-pause","xc-review":"mdi:account-check-outline"}},Symbol.toStringTag,{value:"Module"})),Ho={"xc-add":"bi:plus-lg","xc-edit":"bi:pencil-square","xc-delete":"bi:trash","xc-copy":"bi:copy","xc-file":"bi:file-earmark-text","xc-search":"bi:search","xc-reset":"bi:arrow-repeat","xc-more":"icon-park-outline:more-two","xc-view":"hugeicons:property-view","xc-export":"bx:export","xc-refresh":"bi:arrow-clockwise","xc-question":"mage:question-mark-circle-fill"};function Jo(){const s=Object.assign({"./modules/publicWelfare.ts":Ao}),l={};for(const a of Object.values(s))Object.assign(l,a.iconMap||{});return Object.assign(l,Ho),l}const W=Io.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});W.extend([{name:"style",getter:!0,type:[String,Object],default:void 0}]);const Ko={namespace:"v",elNamespace:"el"},Qo=()=>{const s=Ko;return{variables:s,getPrefixCls:a=>`${s.namespace}-${a}`}},Uo={key:0,"aria-hidden":"true"},Xo=["xlink:href"],Yo=o.defineComponent({__name:"Icon",props:{icon:W.string,color:W.string,size:W.number.def(16)},setup(s){const{getPrefixCls:l}=Qo(),a=l("icon"),t=s,d=o.computed(()=>t.icon.startsWith("svg-icon:")),c=o.computed(()=>o.unref(d)?`#icon-${t.icon.split("svg-icon:")[1]}`:t.icon),w=o.computed(()=>{const{color:x,size:B}=t;return{fontSize:`${B}px`,color:x}});return(x,B)=>(o.openBlock(),o.createBlock(o.unref(uo.ElIcon),{class:o.normalizeClass(o.unref(a)),size:s.size,color:s.color},{default:o.withCtx(()=>[d.value?(o.openBlock(),o.createElementBlock("svg",Uo,[o.createElementVNode("use",{"xlink:href":c.value},null,8,Xo)])):(o.openBlock(),o.createBlock(o.unref(Mo.Icon),{key:1,icon:c.value,style:o.normalizeStyle(w.value)},null,8,["icon","style"]))]),_:1},8,["class","size","color"]))}}),b=o.defineComponent({name:"IconMap",inheritAttrs:!1,props:{icon:{type:String,default:""},size:{type:Number,default:null}},setup(s,{attrs:l}){const a=Jo(),t=o.computed(()=>a[s.icon]||s.icon),d=o.computed(()=>s.size?s.size:a[s.icon]?12:16);return()=>React.createElement(Yo,{icon:t.value,size:d.value,...l})}}),r=s=>(o.pushScopeId("data-v-85a8dd58"),s=s(),o.popScopeId(),s),Zo={class:"flex-between-center-display"},vo={class:"mr-2 text-16px font-500"},oe={class:"flex items-center"},ee={key:1,class:"text-14px text-[#acb0b7] mr-2"},te={key:2,class:"text-14px text-[#acb0b7] mr-2"},ne={class:"flex items-center"},se={class:"w-120px mr-4"},le={class:"text-14px font-400"},ce={class:"mr-2 container_old flex-1 min-w-0"},ae={class:"text-12px"},re=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程ID:"),-1)),de={style:{"font-size":"13px"}},pe={class:"text-12px"},_e=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程名称:"),-1)),ie={style:{"line-height":"16px"}},ye={class:"text-12px"},fe=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程类型:"),-1)),ke={key:0},he={key:1},we={key:0,class:"text-12px"},ge=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同编号:"),-1)),xe={key:1,class:"text-12px"},be=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("企业名称:"),-1)),Be={style:{"line-height":"14px"}},Ce={key:0,class:"text-12px"},Ne=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),Ve={style:{"font-size":"13px"}},Ee={key:1,class:"text-12px"},Se=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),De={style:{"font-size":"13px"}},Te={key:2,class:"text-12px"},Fe=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),$e={style:{"font-size":"13px"}},Pe={key:3,class:"text-12px"},ze=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),ue={style:{"font-size":"13px"}},Ie={key:4,class:"text-12px"},Me=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),Le={style:{"font-size":"13px"}},me={key:3,class:"text-12px"},je=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("标准:"),-1)),Oe={style:{"line-height":"18px"}},Re={key:4,class:"text-12px"},qe=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前流转时间:"),-1)),Ge={key:5,class:"text-12px"},We=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前审批人:"),-1)),Ae={key:6,class:"text-12px"},He=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),Je={key:7,class:"text-12px"},Ke=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约方式:"),-1)),Qe={key:8,class:"text-12px"},Ue=r(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("那方先签约:"),-1)),Xe={class:"flex-between-center-display"},Ye={class:"mr-2 text-16px font-500"},Ze={class:"flex items-center"},ve={key:0,class:"text-14px text-[#acb0b7] mr-2"},ot={key:1,class:"text-14px text-[#acb0b7] mr-2"},et={class:"flex items-center"},tt={class:"w-120px mr-4 flex items-center"},nt={class:"text-14px font-400"},st={class:"mr-2 container_old flex-1 min-w-0"},Y=G(o.defineComponent({__name:"ToDoCard",props:{countList:{default:()=>[]},type:{},typeFlowPath:{default:""},copyStatus:{},treatDerailsComponent:{},newTreatDerailsComponent:{},formTemplateComponent:{},isDeleteFn:{},showFormTitleFn:{},formatTimeFn:{},statusTypeMap:{default:()=>({})},statusTypeNormalMap:{default:()=>({})},contractTypeMap:{default:()=>({})},contractTypeLabelMap:{default:()=>({})},flowPathTypeList:{default:()=>[]}},emits:["getList","doScreen","copy","delete","expedite","details"],setup(s,{expose:l,emit:a}){const t=s,d=a,c=o.ref(null),w=o.ref(null),x=o.ref(),B=(n,h)=>t.isDeleteFn?t.isDeleteFn(n,h):!1,Z=(n,h,y)=>t.showFormTitleFn?t.showFormTitleFn(n,h,y):!1,C=n=>t.formatTimeFn?t.formatTimeFn(n):String(n||""),A=n=>t.statusTypeMap[n]||{type:"",status:""},H=n=>t.statusTypeNormalMap[n]||{type:"",status:""},ct=n=>t.contractTypeLabelMap[n]||"-",at=n=>t.contractTypeMap[n]||"-",rt=n=>{const h=t.flowPathTypeList.find(y=>y.value===n);return h?h.label:"-"},J=(n,h)=>{x.value=n,d("details",{item:n,type:h}),n.is_old_flow?c.value&&(c.value.showFlag=!0):w.value&&(w.value.showFlag=!0)},v=()=>{d("getList")},oo=()=>{d("doScreen",3,x.value.flow_id)},dt=n=>{d("copy",n)},eo=n=>{d("delete",n)},to=n=>{d("expedite",n)};return l({details:J}),(n,h)=>{const y=o.resolveComponent("el-tag"),K=o.resolveComponent("el-button"),no=o.resolveComponent("el-card");return o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.countList,(e,pt)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:pt},[e!=null&&e.is_old_flow?(o.openBlock(),o.createBlock(no,{key:0,shadow:"hover",class:"mb-1",onClick:i=>J(e,t.type)},{header:o.withCtx(()=>{var i,k,_,N,V,E,S,D,T,F,$,P,z,u,I,M,L,m,j,O;return[o.createElementVNode("div",Zo,[o.createElementVNode("div",null,[o.createElementVNode("span",vo,o.toDisplayString((i=e.old_flow)==null?void 0:i.flow_node_name),1),(k=e.old_flow)!=null&&k.is_sign?(o.openBlock(),o.createBlock(y,{key:0,type:"success",effect:"plain"},{default:o.withCtx(()=>[o.createTextVNode(" 已发起签约 ")]),_:1})):o.createCommentVNode("",!0),t.typeFlowPath==="抄送我的"&&(e==null?void 0:e.copy_status)===1?(o.openBlock(),o.createBlock(o.unref(b),{key:1,class:"read",icon:"icon-park-solid:round",size:5,style:{color:"red"}})):o.createCommentVNode("",!0),t.typeFlowPath==="我发起的"&&((_=e==null?void 0:e.old_flow)==null?void 0:_.status)===2?(o.openBlock(),o.createBlock(K,{key:2,link:"",type:"primary",onClick:o.withModifiers(f=>to(e),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),t.typeFlowPath==="待我审批"&&(e!=null&&e.have_remind)?(o.openBlock(),o.createBlock(y,{key:3,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",oe,[(((N=e==null?void 0:e.old_flow)==null?void 0:N.business_type)===1&&((V=e==null?void 0:e.old_flow)==null?void 0:V.sign_type)!==1||[3,8].includes((E=e==null?void 0:e.old_flow)==null?void 0:E.business_type)||((S=e==null?void 0:e.old_flow)==null?void 0:S.business_type)===2&&((D=e==null?void 0:e.old_flow)==null?void 0:D.status)===5||[16,10].includes((T=e==null?void 0:e.old_flow)==null?void 0:T.business_type)&&[4,5].includes((F=e==null?void 0:e.old_flow)==null?void 0:F.status))&&t.typeFlowPath==="我发起的"?(o.openBlock(),o.createBlock(K,{key:0,link:"",type:"primary",class:"mr-2",onClick:o.withModifiers(f=>dt(e==null?void 0:e.old_flow),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 一键复制 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),t.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",ee,o.toDisplayString(C((z=(P=($=e==null?void 0:e.old_flow)==null?void 0:$.copy_list)==null?void 0:P[0])==null?void 0:z.copy_time)),1)):(o.openBlock(),o.createElementBlock("div",te,o.toDisplayString(C((u=e==null?void 0:e.old_flow)==null?void 0:u.submit_time)),1)),t.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(y,{key:3,type:(m=A((L=(M=(I=e==null?void 0:e.old_flow)==null?void 0:I.node_list)==null?void 0:M[0])==null?void 0:L.approval_status))==null?void 0:m.type},{default:o.withCtx(()=>{var f,g,R,q;return[o.createTextVNode(o.toDisplayString((q=A((R=(g=(f=e==null?void 0:e.old_flow)==null?void 0:f.node_list)==null?void 0:g[0])==null?void 0:R.approval_status))==null?void 0:q.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(y,{key:4,type:(O=H((j=e==null?void 0:e.old_flow)==null?void 0:j.status))==null?void 0:O.type},{default:o.withCtx(()=>{var f,g;return[o.createTextVNode(o.toDisplayString((g=H((f=e==null?void 0:e.old_flow)==null?void 0:f.status))==null?void 0:g.status),1)]}),_:2},1032,["type"])),B(e,t.typeFlowPath)?(o.openBlock(),o.createBlock(o.unref(b),{key:5,class:"ml-2 cursor-pointer",icon:"material-symbols:delete-outline",size:24,style:{color:"red"},onClick:o.withModifiers(f=>eo(e==null?void 0:e.old_flow),["stop"])},null,8,["onClick"])):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>{var i,k,_,N,V,E,S,D,T,F,$,P,z,u,I,M,L,m,j,O,f,g,R,q,so,lo,co,ao,ro,po,_o,io,yo,fo,ko,ho,wo,go,xo,bo,Bo,Co,No,Vo,Eo,So,Do,To,Fo,$o,Po,zo;return[o.createElementVNode("div",ne,[o.createElementVNode("div",se,[o.createElementVNode("div",le,o.toDisplayString("发起人:")+o.toDisplayString((i=e==null?void 0:e.old_flow)==null?void 0:i.create_user_name),1)]),o.createElementVNode("div",ce,[o.createElementVNode("div",ae,[re,o.createElementVNode("span",de,o.toDisplayString((e==null?void 0:e.flow_id)||""),1)]),o.createElementVNode("div",pe,[_e,o.createElementVNode("span",ie,o.toDisplayString((k=e==null?void 0:e.old_flow)==null?void 0:k.flow_name),1)]),o.createElementVNode("div",ye,[fe,((_=e==null?void 0:e.old_flow)==null?void 0:_.business_type)===9?(o.openBlock(),o.createElementBlock("span",ke,o.toDisplayString((e==null?void 0:e.old_flow.sign_type)===1?"新流程":"补充店铺"),1)):(o.openBlock(),o.createElementBlock("span",he,o.toDisplayString(e.template_type),1))]),((N=e==null?void 0:e.old_flow)==null?void 0:N.business_type)===1||((V=e==null?void 0:e.old_flow)==null?void 0:V.business_type)===8?(o.openBlock(),o.createElementBlock("div",we,[ge,o.createElementVNode("span",null,o.toDisplayString(e==null?void 0:e.old_flow.business_ctx.esign_contract_no),1)])):o.createCommentVNode("",!0),[1,16,19].includes((E=e==null?void 0:e.old_flow)==null?void 0:E.business_type)?(o.openBlock(),o.createElementBlock("div",xe,[be,o.createElementVNode("span",Be,o.toDisplayString((e==null?void 0:e.old_flow.business_ctx.company_name)||((D=(S=e==null?void 0:e.old_flow.business_ctx.no_business_contract_info)==null?void 0:S.company_info)==null?void 0:D.fp_company_name)||((F=(T=e==null?void 0:e.old_flow.business_ctx.no_business_contract_info)==null?void 0:T.personal_info)==null?void 0:F.name)||"-"),1)])):o.createCommentVNode("",!0),(($=e==null?void 0:e.old_flow)==null?void 0:$.business_type)!==9?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[((P=e==null?void 0:e.old_flow)==null?void 0:P.business_type)===1?(o.openBlock(),o.createElementBlock("div",Ce,[Ne,o.createElementVNode("span",Ve,o.toDisplayString(((z=e==null?void 0:e.old_flow)==null?void 0:z.sign_type)===1?"首次签约":"补充店铺"),1)])):o.createCommentVNode("",!0),((u=e==null?void 0:e.old_flow)==null?void 0:u.business_type)===2?(o.openBlock(),o.createElementBlock("div",Ee,[Se,o.createElementVNode("span",De,o.toDisplayString(ct(e==null?void 0:e.old_flow.business_ctx.contract_template_id)),1)])):o.createCommentVNode("",!0),[3,4,5,6,7,8].includes((I=e==null?void 0:e.old_flow)==null?void 0:I.business_type)?(o.openBlock(),o.createElementBlock("div",Te,[Fe,o.createElementVNode("span",$e,o.toDisplayString(rt((M=e==null?void 0:e.old_flow)==null?void 0:M.business_type)),1)])):o.createCommentVNode("",!0),[16].includes((L=e==null?void 0:e.old_flow)==null?void 0:L.business_type)?(o.openBlock(),o.createElementBlock("div",Pe,[ze,o.createElementVNode("span",ue,o.toDisplayString(["","主合同","补充协议","解除协议"][(m=e==null?void 0:e.old_flow)==null?void 0:m.sign_type]||"-"),1)])):o.createCommentVNode("",!0),((j=e==null?void 0:e.old_flow)==null?void 0:j.business_type)===16&&((O=e==null?void 0:e.old_flow)==null?void 0:O.sign_type)===1?(o.openBlock(),o.createElementBlock("div",Ie,[Me,o.createElementVNode("span",Le,o.toDisplayString(at((R=(g=(f=e==null?void 0:e.old_flow)==null?void 0:f.business_ctx)==null?void 0:g.no_business_contract_info)==null?void 0:R.contract_type)),1)])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),((q=e==null?void 0:e.old_flow)==null?void 0:q.business_type)===9?(o.openBlock(),o.createElementBlock("div",me,[je,o.createElementVNode("span",Oe,o.toDisplayString(((so=e==null?void 0:e.old_flow.business_ctx.reduce_store_srv_fee_form)==null?void 0:so.reduce_store_srv_fee_standard_type)===1?"当日在线3店及以上,且合计活动名额100单及以上份额":"名下同品牌店铺10家及以上,月累计(近30天)销单1000单"),1)])):o.createCommentVNode("",!0),Z(t.typeFlowPath,(ao=(co=(lo=e==null?void 0:e.old_flow)==null?void 0:lo.node_list)==null?void 0:co[0])==null?void 0:ao.approval_status,(ro=e==null?void 0:e.old_flow)==null?void 0:ro.status)?(o.openBlock(),o.createElementBlock("div",Re,[qe,o.createElementVNode("span",null,o.toDisplayString(C((io=(_o=(po=e==null?void 0:e.old_flow)==null?void 0:po.node_list)==null?void 0:_o[0])==null?void 0:io.flow_time)),1)])):o.createCommentVNode("",!0),Z(t.typeFlowPath,(ko=(fo=(yo=e==null?void 0:e.old_flow)==null?void 0:yo.node_list)==null?void 0:fo[0])==null?void 0:ko.approval_status,(ho=e==null?void 0:e.old_flow)==null?void 0:ho.status)?(o.openBlock(),o.createElementBlock("div",Ge,[We,o.createElementVNode("span",null,o.toDisplayString((xo=(go=(wo=e==null?void 0:e.old_flow)==null?void 0:wo.node_list)==null?void 0:go[0])==null?void 0:xo.approval_user_name),1)])):o.createCommentVNode("",!0),((bo=e==null?void 0:e.old_flow)==null?void 0:bo.business_type)===19?(o.openBlock(),o.createElementBlock("div",Ae,[He,o.createElementVNode("span",null,o.toDisplayString(((Bo=e==null?void 0:e.old_flow)==null?void 0:Bo.sign_type)===1?"达人合作主合同":"达人合作补充协议"),1)])):o.createCommentVNode("",!0),((Co=e==null?void 0:e.old_flow)==null?void 0:Co.business_type)===16?(o.openBlock(),o.createElementBlock("div",Je,[Ke,o.createElementVNode("span",null,o.toDisplayString(((Eo=(Vo=(No=e==null?void 0:e.old_flow)==null?void 0:No.business_ctx)==null?void 0:Vo.no_business_contract_info)==null?void 0:Eo.e_sign_type)===1?"线下纸质签":"线上电子签"),1)])):o.createCommentVNode("",!0),((So=e==null?void 0:e.old_flow)==null?void 0:So.business_type)===16&&((Fo=(To=(Do=e==null?void 0:e.old_flow)==null?void 0:Do.business_ctx)==null?void 0:To.no_business_contract_info)==null?void 0:Fo.e_sign_type)===1?(o.openBlock(),o.createElementBlock("div",Qe,[Ue,o.createElementVNode("span",null,o.toDisplayString(((zo=(Po=($o=e==null?void 0:e.old_flow)==null?void 0:$o.business_ctx)==null?void 0:Po.no_business_contract_info)==null?void 0:zo.first_signer)===1?"我方":"对方"),1)])):o.createCommentVNode("",!0)])])]}),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(no,{key:1,shadow:"hover",class:"mb-1",onClick:i=>J(e,t.type)},{header:o.withCtx(()=>{var i,k;return[o.createElementVNode("div",Xe,[o.createElementVNode("div",null,[o.createElementVNode("span",Ye,o.toDisplayString(e.node_title),1),t.typeFlowPath==="抄送我的"&&e.copy_status===1?(o.openBlock(),o.createBlock(o.unref(b),{key:0,class:"read",icon:"icon-park-solid:round",size:5,style:{color:"red"}})):o.createCommentVNode("",!0),t.typeFlowPath==="我发起的"&&(e==null?void 0:e.flow_status)===2?(o.openBlock(),o.createBlock(K,{key:1,link:"",type:"primary",onClick:o.withModifiers(_=>to(e),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),t.typeFlowPath==="待我审批"&&(e!=null&&e.have_remind)?(o.openBlock(),o.createBlock(y,{key:2,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ze,[t.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",ve,o.toDisplayString(C(e.final_pass_time)),1)):(o.openBlock(),o.createElementBlock("div",ot,o.toDisplayString(C(e.flow_time)),1)),t.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(y,{key:2,type:(i=A(e==null?void 0:e.node_approval_status))==null?void 0:i.type},{default:o.withCtx(()=>{var _;return[o.createTextVNode(o.toDisplayString((_=A(e==null?void 0:e.node_approval_status))==null?void 0:_.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(y,{key:3,type:(k=H(e==null?void 0:e.flow_status))==null?void 0:k.type},{default:o.withCtx(()=>{var _;return[o.createTextVNode(o.toDisplayString((_=H(e==null?void 0:e.flow_status))==null?void 0:_.status),1)]}),_:2},1032,["type"])),B(e,t.typeFlowPath)?(o.openBlock(),o.createBlock(o.unref(b),{key:4,class:"ml-2 cursor-pointer",icon:"material-symbols:delete-outline",size:24,style:{color:"red"},onClick:o.withModifiers(_=>eo(e),["stop"])},null,8,["onClick"])):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>[o.createElementVNode("div",et,[o.createElementVNode("div",tt,[o.createElementVNode("div",nt,o.toDisplayString("发起人:")+o.toDisplayString(e==null?void 0:e.create_user_name),1)]),o.createElementVNode("div",st,[o.renderSlot(n.$slots,"form-content",{item:e},()=>[n.formTemplateComponent?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.form_value,(i,k)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.formTemplateComponent),{key:k,item_:i,item:e},null,8,["item_","item"]))),128)):o.createCommentVNode("",!0)],!0)])])]),_:2},1032,["onClick"]))],64))),128)),n.treatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.treatDerailsComponent),{key:0,ref_key:"treatDerailsRef",ref:c,rowItem:x.value,typeFlowPath:t.typeFlowPath,copyStatus:t.copyStatus,onGetList:v,onReada:oo},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0),n.newTreatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.newTreatDerailsComponent),{key:1,ref_key:"newTreatDerailsRef",ref:w,rowItem:x.value,typeFlowPath:t.typeFlowPath,copyStatus:t.copyStatus,onGetList:v,onReada:oo},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-85a8dd58"]]),lt={install:s=>{s.component("CButton",Q),s.component("CBadge",U),s.component("CInput",X),s.component("CToDoCard",Y),s.component("CIcon",b)}};p.Badge=U,p.Button=Q,p.Icon=b,p.Input=X,p.ToDoCard=Y,p.default=lt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(y,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(y=typeof globalThis<"u"?globalThis:y||self,o(y.Computent={},y.Vue))})(this,function(y,o){"use strict";const l=d=>(o.pushScopeId("data-v-c1bf003a"),d=d(),o.popScopeId(),d),bo={class:"flex justify-between items-center"},To={class:"mr-2 text-16px font-500"},Fo={class:"flex items-center"},Po={key:1,class:"text-14px text-[#acb0b7] mr-2"},Lo={key:2,class:"text-14px text-[#acb0b7] mr-2"},Mo=["onClick"],$o={class:"flex items-center"},Io={class:"w-120px mr-4"},zo={class:"text-14px font-400"},Ro={class:"mr-2 container_old flex-1 min-w-0"},jo={class:"text-12px"},Go=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程ID:"),-1)),Oo={style:{"font-size":"13px"}},qo={class:"text-12px"},Ao=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程名称:"),-1)),Ho={style:{"line-height":"16px"}},Jo={class:"text-12px"},Ko=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("流程类型:"),-1)),Qo={key:0},Uo={key:1},Wo={key:0,class:"text-12px"},Xo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同编号:"),-1)),Yo={key:1,class:"text-12px"},Zo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("企业名称:"),-1)),uo={style:{"line-height":"14px"}},mo={key:0,class:"text-12px"},vo=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),ot={style:{"font-size":"13px"}},tt={key:1,class:"text-12px"},et=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),st={style:{"font-size":"13px"}},lt={key:2,class:"text-12px"},nt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),at={style:{"font-size":"13px"}},ct={key:3,class:"text-12px"},rt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约类型:"),-1)),dt={style:{"font-size":"13px"}},pt={key:4,class:"text-12px"},_t=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),yt={style:{"font-size":"13px"}},ft={key:3,class:"text-12px"},kt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("标准:"),-1)),wt={style:{"line-height":"18px"}},ht={key:4,class:"text-12px"},it=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前流转时间:"),-1)),xt={key:5,class:"text-12px"},Nt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("当前审批人:"),-1)),Vt={key:6,class:"text-12px"},gt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("合同类型:"),-1)),Ct={key:7,class:"text-12px"},Bt=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("签约方式:"),-1)),Et={key:8,class:"text-12px"},St=l(()=>o.createElementVNode("span",{class:"title"},o.toDisplayString("那方先签约:"),-1)),Dt={class:"flex justify-between items-center"},bt={class:"mr-2 text-16px font-500"},Tt={class:"flex items-center"},Ft={key:0,class:"text-14px text-[#acb0b7] mr-2"},Pt={key:1,class:"text-14px text-[#acb0b7] mr-2"},Lt=["onClick"],Mt={class:"flex items-center"},$t={class:"w-120px mr-4 flex items-center"},It={class:"text-14px font-400"},zt={class:"mr-2 container_old flex-1 min-w-0"},K=((d,O)=>{const z=d.__vccOpts||d;for(const[s,f]of O)z[s]=f;return z})(o.defineComponent({__name:"ToDoCard",props:{countList:{default:()=>[]},type:{},typeFlowPath:{default:""},copyStatus:{},treatDerailsComponent:{},newTreatDerailsComponent:{},formTemplateComponent:{},isDeleteFn:{},showFormTitleFn:{},formatTimeFn:{},statusTypeMap:{default:()=>({})},statusTypeNormalMap:{default:()=>({})},contractTypeMap:{default:()=>({})},contractTypeLabelMap:{default:()=>({})},flowPathTypeList:{default:()=>[]}},emits:["getList","doScreen","copy","delete","expedite","details"],setup(d,{expose:O,emit:z}){const s=d,f=z,q=o.ref(null),A=o.ref(null),R=o.ref(),Q=(e,_)=>s.isDeleteFn?s.isDeleteFn(e,_):!1,U=(e,_,c)=>s.showFormTitleFn?s.showFormTitleFn(e,_,c):!1,w=e=>s.formatTimeFn?s.formatTimeFn(e):String(e||""),j=e=>s.statusTypeMap[e]||{type:"",status:""},G=e=>s.statusTypeNormalMap[e]||{type:"",status:""},jt=e=>s.contractTypeLabelMap[e]||"-",Gt=e=>s.contractTypeMap[e]||"-",Ot=e=>{const _=s.flowPathTypeList.find(c=>c.value===e);return _?_.label:"-"},H=(e,_)=>{R.value=e,f("details",{item:e,type:_}),e.is_old_flow?q.value&&(q.value.showFlag=!0):A.value&&(A.value.showFlag=!0)},W=()=>{f("getList")},X=()=>{f("doScreen",3,R.value.flow_id)},qt=e=>{f("copy",e)},Y=e=>{f("delete",e)},Z=e=>{f("expedite",e)};return O({details:H}),(e,_)=>{const c=o.resolveComponent("el-tag"),J=o.resolveComponent("el-button"),u=o.resolveComponent("el-card");return o.openBlock(),o.createElementBlock("div",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.countList,(t,At)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:At},[t!=null&&t.is_old_flow?(o.openBlock(),o.createBlock(u,{key:0,shadow:"hover",class:"mb-1",onClick:a=>H(t,s.type)},{header:o.withCtx(()=>{var a,p,n,h,i,x,N,V,g,C,B,E,S,D,b,T,F,P,L,M;return[o.createElementVNode("div",bo,[o.createElementVNode("div",null,[o.createElementVNode("span",To,o.toDisplayString((a=t.old_flow)==null?void 0:a.flow_node_name),1),(p=t.old_flow)!=null&&p.is_sign?(o.openBlock(),o.createBlock(c,{key:0,type:"success",effect:"plain"},{default:o.withCtx(()=>[o.createTextVNode(" 已发起签约 ")]),_:1})):o.createCommentVNode("",!0),s.typeFlowPath==="抄送我的"&&(t==null?void 0:t.copy_status)===1?o.renderSlot(e.$slots,"read-icon",{key:1,item:t},void 0,!0):o.createCommentVNode("",!0),s.typeFlowPath==="我发起的"&&((n=t==null?void 0:t.old_flow)==null?void 0:n.status)===2?(o.openBlock(),o.createBlock(J,{key:2,link:"",type:"primary",onClick:o.withModifiers(r=>Z(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(c,{key:3,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Fo,[(((h=t==null?void 0:t.old_flow)==null?void 0:h.business_type)===1&&((i=t==null?void 0:t.old_flow)==null?void 0:i.sign_type)!==1||[3,8].includes((x=t==null?void 0:t.old_flow)==null?void 0:x.business_type)||((N=t==null?void 0:t.old_flow)==null?void 0:N.business_type)===2&&((V=t==null?void 0:t.old_flow)==null?void 0:V.status)===5||[16,10].includes((g=t==null?void 0:t.old_flow)==null?void 0:g.business_type)&&[4,5].includes((C=t==null?void 0:t.old_flow)==null?void 0:C.status))&&s.typeFlowPath==="我发起的"?(o.openBlock(),o.createBlock(J,{key:0,link:"",type:"primary",class:"mr-2",onClick:o.withModifiers(r=>qt(t==null?void 0:t.old_flow),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 一键复制 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Po,o.toDisplayString(w((S=(E=(B=t==null?void 0:t.old_flow)==null?void 0:B.copy_list)==null?void 0:E[0])==null?void 0:S.copy_time)),1)):(o.openBlock(),o.createElementBlock("div",Lo,o.toDisplayString(w((D=t==null?void 0:t.old_flow)==null?void 0:D.submit_time)),1)),s.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(c,{key:3,type:(P=j((F=(T=(b=t==null?void 0:t.old_flow)==null?void 0:b.node_list)==null?void 0:T[0])==null?void 0:F.approval_status))==null?void 0:P.type},{default:o.withCtx(()=>{var r,k,$,I;return[o.createTextVNode(o.toDisplayString((I=j(($=(k=(r=t==null?void 0:t.old_flow)==null?void 0:r.node_list)==null?void 0:k[0])==null?void 0:$.approval_status))==null?void 0:I.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(c,{key:4,type:(M=G((L=t==null?void 0:t.old_flow)==null?void 0:L.status))==null?void 0:M.type},{default:o.withCtx(()=>{var r,k;return[o.createTextVNode(o.toDisplayString((k=G((r=t==null?void 0:t.old_flow)==null?void 0:r.status))==null?void 0:k.status),1)]}),_:2},1032,["type"])),Q(t,s.typeFlowPath)?o.renderSlot(e.$slots,"delete-icon",{key:5,item:t},()=>[o.createElementVNode("span",{class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(r=>Y(t==null?void 0:t.old_flow),["stop"])},"🗑️",8,Mo)],!0):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>{var a,p,n,h,i,x,N,V,g,C,B,E,S,D,b,T,F,P,L,M,r,k,$,I,m,v,oo,to,eo,so,lo,no,ao,co,ro,po,_o,yo,fo,ko,wo,ho,io,xo,No,Vo,go,Co,Bo,Eo,So,Do;return[o.createElementVNode("div",$o,[o.createElementVNode("div",Io,[o.createElementVNode("div",zo,o.toDisplayString("发起人:")+o.toDisplayString((a=t==null?void 0:t.old_flow)==null?void 0:a.create_user_name),1)]),o.createElementVNode("div",Ro,[o.createElementVNode("div",jo,[Go,o.createElementVNode("span",Oo,o.toDisplayString((t==null?void 0:t.flow_id)||""),1)]),o.createElementVNode("div",qo,[Ao,o.createElementVNode("span",Ho,o.toDisplayString((p=t==null?void 0:t.old_flow)==null?void 0:p.flow_name),1)]),o.createElementVNode("div",Jo,[Ko,((n=t==null?void 0:t.old_flow)==null?void 0:n.business_type)===9?(o.openBlock(),o.createElementBlock("span",Qo,o.toDisplayString((t==null?void 0:t.old_flow.sign_type)===1?"新流程":"补充店铺"),1)):(o.openBlock(),o.createElementBlock("span",Uo,o.toDisplayString(t.template_type),1))]),((h=t==null?void 0:t.old_flow)==null?void 0:h.business_type)===1||((i=t==null?void 0:t.old_flow)==null?void 0:i.business_type)===8?(o.openBlock(),o.createElementBlock("div",Wo,[Xo,o.createElementVNode("span",null,o.toDisplayString(t==null?void 0:t.old_flow.business_ctx.esign_contract_no),1)])):o.createCommentVNode("",!0),[1,16,19].includes((x=t==null?void 0:t.old_flow)==null?void 0:x.business_type)?(o.openBlock(),o.createElementBlock("div",Yo,[Zo,o.createElementVNode("span",uo,o.toDisplayString((t==null?void 0:t.old_flow.business_ctx.company_name)||((V=(N=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:N.company_info)==null?void 0:V.fp_company_name)||((C=(g=t==null?void 0:t.old_flow.business_ctx.no_business_contract_info)==null?void 0:g.personal_info)==null?void 0:C.name)||"-"),1)])):o.createCommentVNode("",!0),((B=t==null?void 0:t.old_flow)==null?void 0:B.business_type)!==9?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[((E=t==null?void 0:t.old_flow)==null?void 0:E.business_type)===1?(o.openBlock(),o.createElementBlock("div",mo,[vo,o.createElementVNode("span",ot,o.toDisplayString(((S=t==null?void 0:t.old_flow)==null?void 0:S.sign_type)===1?"首次签约":"补充店铺"),1)])):o.createCommentVNode("",!0),((D=t==null?void 0:t.old_flow)==null?void 0:D.business_type)===2?(o.openBlock(),o.createElementBlock("div",tt,[et,o.createElementVNode("span",st,o.toDisplayString(jt(t==null?void 0:t.old_flow.business_ctx.contract_template_id)),1)])):o.createCommentVNode("",!0),[3,4,5,6,7,8].includes((b=t==null?void 0:t.old_flow)==null?void 0:b.business_type)?(o.openBlock(),o.createElementBlock("div",lt,[nt,o.createElementVNode("span",at,o.toDisplayString(Ot((T=t==null?void 0:t.old_flow)==null?void 0:T.business_type)),1)])):o.createCommentVNode("",!0),[16].includes((F=t==null?void 0:t.old_flow)==null?void 0:F.business_type)?(o.openBlock(),o.createElementBlock("div",ct,[rt,o.createElementVNode("span",dt,o.toDisplayString(["","主合同","补充协议","解除协议"][(P=t==null?void 0:t.old_flow)==null?void 0:P.sign_type]||"-"),1)])):o.createCommentVNode("",!0),((L=t==null?void 0:t.old_flow)==null?void 0:L.business_type)===16&&((M=t==null?void 0:t.old_flow)==null?void 0:M.sign_type)===1?(o.openBlock(),o.createElementBlock("div",pt,[_t,o.createElementVNode("span",yt,o.toDisplayString(Gt(($=(k=(r=t==null?void 0:t.old_flow)==null?void 0:r.business_ctx)==null?void 0:k.no_business_contract_info)==null?void 0:$.contract_type)),1)])):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),((I=t==null?void 0:t.old_flow)==null?void 0:I.business_type)===9?(o.openBlock(),o.createElementBlock("div",ft,[kt,o.createElementVNode("span",wt,o.toDisplayString(((m=t==null?void 0:t.old_flow.business_ctx.reduce_store_srv_fee_form)==null?void 0:m.reduce_store_srv_fee_standard_type)===1?"当日在线3店及以上,且合计活动名额100单及以上份额":"名下同品牌店铺10家及以上,月累计(近30天)销单1000单"),1)])):o.createCommentVNode("",!0),U(s.typeFlowPath,(to=(oo=(v=t==null?void 0:t.old_flow)==null?void 0:v.node_list)==null?void 0:oo[0])==null?void 0:to.approval_status,(eo=t==null?void 0:t.old_flow)==null?void 0:eo.status)?(o.openBlock(),o.createElementBlock("div",ht,[it,o.createElementVNode("span",null,o.toDisplayString(w((no=(lo=(so=t==null?void 0:t.old_flow)==null?void 0:so.node_list)==null?void 0:lo[0])==null?void 0:no.flow_time)),1)])):o.createCommentVNode("",!0),U(s.typeFlowPath,(ro=(co=(ao=t==null?void 0:t.old_flow)==null?void 0:ao.node_list)==null?void 0:co[0])==null?void 0:ro.approval_status,(po=t==null?void 0:t.old_flow)==null?void 0:po.status)?(o.openBlock(),o.createElementBlock("div",xt,[Nt,o.createElementVNode("span",null,o.toDisplayString((fo=(yo=(_o=t==null?void 0:t.old_flow)==null?void 0:_o.node_list)==null?void 0:yo[0])==null?void 0:fo.approval_user_name),1)])):o.createCommentVNode("",!0),((ko=t==null?void 0:t.old_flow)==null?void 0:ko.business_type)===19?(o.openBlock(),o.createElementBlock("div",Vt,[gt,o.createElementVNode("span",null,o.toDisplayString(((wo=t==null?void 0:t.old_flow)==null?void 0:wo.sign_type)===1?"达人合作主合同":"达人合作补充协议"),1)])):o.createCommentVNode("",!0),((ho=t==null?void 0:t.old_flow)==null?void 0:ho.business_type)===16?(o.openBlock(),o.createElementBlock("div",Ct,[Bt,o.createElementVNode("span",null,o.toDisplayString(((No=(xo=(io=t==null?void 0:t.old_flow)==null?void 0:io.business_ctx)==null?void 0:xo.no_business_contract_info)==null?void 0:No.e_sign_type)===1?"线下纸质签":"线上电子签"),1)])):o.createCommentVNode("",!0),((Vo=t==null?void 0:t.old_flow)==null?void 0:Vo.business_type)===16&&((Bo=(Co=(go=t==null?void 0:t.old_flow)==null?void 0:go.business_ctx)==null?void 0:Co.no_business_contract_info)==null?void 0:Bo.e_sign_type)===1?(o.openBlock(),o.createElementBlock("div",Et,[St,o.createElementVNode("span",null,o.toDisplayString(((Do=(So=(Eo=t==null?void 0:t.old_flow)==null?void 0:Eo.business_ctx)==null?void 0:So.no_business_contract_info)==null?void 0:Do.first_signer)===1?"我方":"对方"),1)])):o.createCommentVNode("",!0)])])]}),_:2},1032,["onClick"])):(o.openBlock(),o.createBlock(u,{key:1,shadow:"hover",class:"mb-1",onClick:a=>H(t,s.type)},{header:o.withCtx(()=>{var a,p;return[o.createElementVNode("div",Dt,[o.createElementVNode("div",null,[o.createElementVNode("span",bt,o.toDisplayString(t.node_title),1),s.typeFlowPath==="抄送我的"&&t.copy_status===1?o.renderSlot(e.$slots,"read-icon",{key:0,item:t},void 0,!0):o.createCommentVNode("",!0),s.typeFlowPath==="我发起的"&&(t==null?void 0:t.flow_status)===2?(o.openBlock(),o.createBlock(J,{key:1,link:"",type:"primary",onClick:o.withModifiers(n=>Z(t),["stop"])},{default:o.withCtx(()=>[o.createTextVNode(" 催办 ")]),_:2},1032,["onClick"])):o.createCommentVNode("",!0),s.typeFlowPath==="待我审批"&&(t!=null&&t.have_remind)?(o.openBlock(),o.createBlock(c,{key:2,effect:"plain",type:"danger"},{default:o.withCtx(()=>[o.createTextVNode(" 发起人已催办 ")]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Tt,[s.typeFlowPath==="抄送我的"?(o.openBlock(),o.createElementBlock("div",Ft,o.toDisplayString(w(t.final_pass_time)),1)):(o.openBlock(),o.createElementBlock("div",Pt,o.toDisplayString(w(t.flow_time)),1)),s.typeFlowPath==="待我审批"?(o.openBlock(),o.createBlock(c,{key:2,type:(a=j(t==null?void 0:t.node_approval_status))==null?void 0:a.type},{default:o.withCtx(()=>{var n;return[o.createTextVNode(o.toDisplayString((n=j(t==null?void 0:t.node_approval_status))==null?void 0:n.status),1)]}),_:2},1032,["type"])):(o.openBlock(),o.createBlock(c,{key:3,type:(p=G(t==null?void 0:t.flow_status))==null?void 0:p.type},{default:o.withCtx(()=>{var n;return[o.createTextVNode(o.toDisplayString((n=G(t==null?void 0:t.flow_status))==null?void 0:n.status),1)]}),_:2},1032,["type"])),Q(t,s.typeFlowPath)?o.renderSlot(e.$slots,"delete-icon",{key:4,item:t},()=>[o.createElementVNode("span",{class:"delete-btn ml-2 cursor-pointer",onClick:o.withModifiers(n=>Y(t),["stop"])},"🗑️",8,Lt)],!0):o.createCommentVNode("",!0)])])]}),default:o.withCtx(()=>[o.createElementVNode("div",Mt,[o.createElementVNode("div",$t,[o.createElementVNode("div",It,o.toDisplayString("发起人:")+o.toDisplayString(t==null?void 0:t.create_user_name),1)]),o.createElementVNode("div",zt,[o.renderSlot(e.$slots,"form-content",{item:t},()=>[e.formTemplateComponent?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.form_value,(a,p)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.formTemplateComponent),{key:p,item_:a,item:t},null,8,["item_","item"]))),128)):o.createCommentVNode("",!0)],!0)])])]),_:2},1032,["onClick"]))],64))),128)),e.treatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.treatDerailsComponent),{key:0,ref_key:"treatDerailsRef",ref:q,rowItem:R.value,typeFlowPath:s.typeFlowPath,copyStatus:s.copyStatus,onGetList:W,onReada:X},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0),e.newTreatDerailsComponent?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.newTreatDerailsComponent),{key:1,ref_key:"newTreatDerailsRef",ref:A,rowItem:R.value,typeFlowPath:s.typeFlowPath,copyStatus:s.copyStatus,onGetList:W,onReada:X},null,40,["rowItem","typeFlowPath","copyStatus"])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c1bf003a"]]),Rt={install:d=>{d.component("CToDoCard",K)}};y.ToDoCard=K,y.default=Rt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/index.d.ts CHANGED
@@ -1,11 +1,7 @@
1
1
  import { App } from 'vue';
2
- import { default as Button } from './components/Button/index';
3
- import { default as Badge } from './components/Badge/index';
4
- import { default as Input } from './components/Input/index';
5
2
  import { default as ToDoCard } from './components/ToDoCard/index';
6
- import { default as Icon } from './components/Icon/index';
7
3
 
8
- export { Button, Badge, Input, ToDoCard, Icon };
4
+ export { ToDoCard };
9
5
  declare const _default: {
10
6
  install: (app: App) => void;
11
7
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .comp-btn[data-v-7c40bef2]{display:inline-flex;align-items:center;justify-content:center;font-family:var(--comp-font-sans, system-ui, sans-serif);font-weight:600;border-radius:var(--comp-radius-md, 8px);border:1px solid transparent;cursor:pointer;outline:none;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;white-space:nowrap;vertical-align:middle;transition:all var(--comp-transition-fast, .2s)}.comp-btn--sm[data-v-7c40bef2]{padding:6px 12px;font-size:13px;border-radius:var(--comp-radius-sm, 6px)}.comp-btn--md[data-v-7c40bef2]{padding:10px 18px;font-size:14px;border-radius:var(--comp-radius-md, 10px)}.comp-btn--lg[data-v-7c40bef2]{padding:14px 24px;font-size:16px;border-radius:var(--comp-radius-lg, 14px)}.comp-btn--primary[data-v-7c40bef2]{background-color:var(--comp-primary);color:#fff;box-shadow:var(--comp-shadow-sm)}.comp-btn--primary[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-primary-hover);box-shadow:var(--comp-shadow-glow);transform:translateY(-1px)}.comp-btn--primary[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-primary-active);transform:translateY(0)}.comp-btn--secondary[data-v-7c40bef2]{background-color:var(--comp-bg-card);border-color:var(--comp-border);color:var(--comp-text-primary)}.comp-btn--secondary[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-bg-hover);border-color:var(--comp-border-hover);transform:translateY(-1px)}.comp-btn--secondary[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-bg-card);transform:translateY(0)}.comp-btn--outline[data-v-7c40bef2]{background-color:transparent;border-color:var(--comp-primary);color:var(--comp-primary)}.comp-btn--outline[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:#6366f114;transform:translateY(-1px)}.comp-btn--outline[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:#6366f129;transform:translateY(0)}.comp-btn--text[data-v-7c40bef2]{background-color:transparent;border-color:transparent;color:var(--comp-text-secondary)}.comp-btn--text[data-v-7c40bef2]:hover:not(.comp-btn--disabled){color:var(--comp-text-primary);background-color:#ffffff0d}.comp-btn--text[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:#ffffff1a}.comp-btn--danger[data-v-7c40bef2]{background-color:var(--comp-danger);color:#fff}.comp-btn--danger[data-v-7c40bef2]:hover:not(.comp-btn--disabled){background-color:var(--comp-danger-hover);transform:translateY(-1px)}.comp-btn--danger[data-v-7c40bef2]:active:not(.comp-btn--disabled){background-color:var(--comp-danger-active);transform:translateY(0)}.comp-btn--disabled[data-v-7c40bef2]{opacity:.6;cursor:not-allowed;transform:none!important;box-shadow:none!important}.comp-btn__icon[data-v-7c40bef2]{display:inline-flex;align-items:center;justify-content:center;margin-right:6px;font-size:1.1em}.comp-btn__content[data-v-7c40bef2]{display:inline-flex;align-items:center}.comp-btn__spinner[data-v-7c40bef2]{width:14px;height:14px;border:2px solid currentColor;border-bottom-color:transparent;border-radius:50%;display:inline-block;margin-right:8px;animation:comp-spin-7c40bef2 .75s linear infinite}@keyframes comp-spin-7c40bef2{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.comp-badge[data-v-158f78af]{display:inline-flex;align-items:center;justify-content:center;font-family:var(--comp-font-sans, system-ui, sans-serif);font-weight:600;font-size:11px;letter-spacing:.03em;text-transform:uppercase;padding:3px 8px;border-radius:var(--comp-radius-full, 9999px);line-height:1;border:1px solid transparent;-webkit-user-select:none;user-select:none;transition:all var(--comp-transition-fast, .2s)}.comp-badge--default.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-text-secondary);color:var(--comp-bg-main)}.comp-badge--default.comp-badge--subtle[data-v-158f78af]{background-color:var(--comp-bg-hover);color:var(--comp-text-primary);border-color:var(--comp-border)}.comp-badge--default.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-text-muted);color:var(--comp-text-secondary)}.comp-badge--success.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-success);color:#fff}.comp-badge--success.comp-badge--subtle[data-v-158f78af]{background-color:#10b9811f;color:#34d399;border-color:#10b98133}.comp-badge--success.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-success);color:var(--comp-success)}.comp-badge--warning.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-warning);color:#fff}.comp-badge--warning.comp-badge--subtle[data-v-158f78af]{background-color:#f59e0b1f;color:#fbbf24;border-color:#f59e0b33}.comp-badge--warning.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-warning);color:var(--comp-warning)}.comp-badge--danger.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-danger);color:#fff}.comp-badge--danger.comp-badge--subtle[data-v-158f78af]{background-color:#ef44441f;color:#fca5a5;border-color:#ef444433}.comp-badge--danger.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-danger);color:var(--comp-danger)}.comp-badge--info.comp-badge--filled[data-v-158f78af]{background-color:var(--comp-info);color:#fff}.comp-badge--info.comp-badge--subtle[data-v-158f78af]{background-color:#06b6d41f;color:#22d3ee;border-color:#06b6d433}.comp-badge--info.comp-badge--outline[data-v-158f78af]{background-color:transparent;border-color:var(--comp-info);color:var(--comp-info)}.comp-badge__dot[data-v-158f78af]{width:6px;height:6px;border-radius:50%;margin-right:5px;background-color:currentColor;display:inline-block;box-shadow:0 0 4px currentColor}.comp-badge[data-v-158f78af]:hover{transform:translateY(-.5px);filter:brightness(1.08)}.comp-input-wrapper[data-v-e8d4db36]{font-family:var(--comp-font-sans, system-ui, sans-serif);width:100%}.comp-el-input[data-v-e8d4db36] .el-input__wrapper{background-color:var(--comp-bg-card);box-shadow:0 0 0 1px var(--comp-border) inset;border-radius:var(--comp-radius-md);color:var(--comp-text-primary);transition:all var(--comp-transition-fast)}.comp-el-input[data-v-e8d4db36] .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--comp-border-hover) inset}.comp-el-input[data-v-e8d4db36] .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--comp-primary) inset;background-color:var(--comp-bg-hover)}.comp-el-input[data-v-e8d4db36] .el-input__inner{color:var(--comp-text-primary)}.comp-el-input[data-v-e8d4db36] .el-input__inner::placeholder{color:var(--comp-text-muted)}.mb-1[data-v-85a8dd58]{margin-bottom:8px}.mr-2[data-v-85a8dd58]{margin-right:8px}.mr-4[data-v-85a8dd58]{margin-right:16px}.ml-2[data-v-85a8dd58]{margin-left:8px}.text-16px[data-v-85a8dd58]{font-size:16px}.text-14px[data-v-85a8dd58]{font-size:14px}.text-12px[data-v-85a8dd58]{font-size:12px}.font-500[data-v-85a8dd58]{font-weight:500}.font-400[data-v-85a8dd58]{font-weight:400}.flex[data-v-85a8dd58]{display:flex}.items-center[data-v-85a8dd58]{align-items:center}.flex-between-center-display[data-v-85a8dd58]{display:flex;align-items:center;justify-content:space-between}.flex-1[data-v-85a8dd58]{flex:1}.min-w-0[data-v-85a8dd58]{min-width:0}.w-120px[data-v-85a8dd58]{width:120px}.cursor-pointer[data-v-85a8dd58]{cursor:pointer}.read-dot[data-v-85a8dd58]{width:6px;height:6px;border-radius:50%;background-color:red;display:inline-block;vertical-align:middle;margin-left:4px;transform:translateY(-8px)}.delete-btn[data-v-85a8dd58]{font-size:18px;color:#ef4444;transition:opacity .2s}.delete-btn[data-v-85a8dd58]:hover{opacity:.8}.container_old[data-v-85a8dd58]{display:grid;grid-auto-flow:column;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,auto);row-gap:8px;align-content:start}.title[data-v-85a8dd58]{font-size:12px;font-weight:500;color:var(--comp-text-secondary, #9ca3af);margin-right:4px}[data-v-85a8dd58] .el-card__header{padding:8px 15px;background-color:var(--comp-bg-hover, rgba(255, 255, 255, .02))}[data-v-85a8dd58] .el-card__body{padding:10px 20px}:root{--comp-primary: #6366f1;--comp-primary-hover: #4f46e5;--comp-primary-active: #4338ca;--comp-primary-light: #e0e7ff;--comp-success: #10b981;--comp-success-hover: #059669;--comp-success-light: #d1fae5;--comp-warning: #f59e0b;--comp-warning-hover: #d97706;--comp-warning-light: #fef3c7;--comp-danger: #ef4444;--comp-danger-hover: #dc2626;--comp-danger-active: #b91c1c;--comp-danger-light: #fee2e2;--comp-info: #06b6d4;--comp-info-hover: #0891b2;--comp-info-light: #ecfeff;--comp-bg-main: #0b0f19;--comp-bg-card: #151d30;--comp-bg-hover: #1f293d;--comp-text-primary: #f3f4f6;--comp-text-secondary: #9ca3af;--comp-text-muted: #6b7280;--comp-border: #2d3748;--comp-border-hover: #4a5568;--comp-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;--comp-radius-sm: 6px;--comp-radius-md: 10px;--comp-radius-lg: 16px;--comp-radius-full: 9999px;--comp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--comp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--comp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);--comp-shadow-glow: 0 0 15px rgba(99, 102, 241, .3);--comp-transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--comp-transition-normal: .25s cubic-bezier(.4, 0, .2, 1)}.comp-lib-root,.comp-lib-root *,.comp-lib-root *:before,.comp-lib-root *:after{box-sizing:border-box;font-family:var(--comp-font-sans)}
1
+ .read-dot[data-v-c1bf003a]{width:6px;height:6px;border-radius:50%;background-color:red;display:inline-block;vertical-align:middle;margin-left:4px;transform:translateY(-8px)}.delete-btn[data-v-c1bf003a]{font-size:18px;color:#ef4444;transition:opacity .2s}.delete-btn[data-v-c1bf003a]:hover{opacity:.8}.container_old[data-v-c1bf003a]{display:grid;grid-auto-flow:column;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,auto);row-gap:8px;align-content:start}.title[data-v-c1bf003a]{font-size:12px;font-weight:500;color:var(--comp-text-secondary, #9ca3af);margin-right:4px}[data-v-c1bf003a] .el-card__header{padding:8px 15px;background-color:var(--comp-bg-hover, rgba(255, 255, 255, .02))}[data-v-c1bf003a] .el-card__body{padding:10px 20px}:root{--comp-primary: #6366f1;--comp-primary-hover: #4f46e5;--comp-primary-active: #4338ca;--comp-primary-light: #e0e7ff;--comp-success: #10b981;--comp-success-hover: #059669;--comp-success-light: #d1fae5;--comp-warning: #f59e0b;--comp-warning-hover: #d97706;--comp-warning-light: #fef3c7;--comp-danger: #ef4444;--comp-danger-hover: #dc2626;--comp-danger-active: #b91c1c;--comp-danger-light: #fee2e2;--comp-info: #06b6d4;--comp-info-hover: #0891b2;--comp-info-light: #ecfeff;--comp-bg-main: #0b0f19;--comp-bg-card: #151d30;--comp-bg-hover: #1f293d;--comp-text-primary: #f3f4f6;--comp-text-secondary: #9ca3af;--comp-text-muted: #6b7280;--comp-border: #2d3748;--comp-border-hover: #4a5568;--comp-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;--comp-radius-sm: 6px;--comp-radius-md: 10px;--comp-radius-lg: 16px;--comp-radius-full: 9999px;--comp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--comp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);--comp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .3), 0 4px 6px -4px rgba(0, 0, 0, .3);--comp-shadow-glow: 0 0 15px rgba(99, 102, 241, .3);--comp-transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--comp-transition-normal: .25s cubic-bezier(.4, 0, .2, 1)}.comp-lib-root,.comp-lib-root *,.comp-lib-root *:before,.comp-lib-root *:after{box-sizing:border-box;font-family:var(--comp-font-sans)}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p,h2{margin:0}h1,h2{font-size:inherit;font-weight:inherit}.cursor-pointer{cursor:pointer}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-500{font-weight:500}.font-400{font-weight:400}.text-16px{font-size:16px;line-height:1}.text-14px{font-size:14px;line-height:1}.text-12px{font-size:12px;line-height:1}.mb-1{margin-bottom:.25rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.min-w-0{min-width:0px}.text-\[\#acb0b7\]{--tw-text-opacity: 1;color:rgba(172,176,183,var(--tw-text-opacity))}.w-120px{width:120px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xc-computent",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A premium Vue 3 component library built with Vite and TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/computent.umd.cjs",
@@ -46,6 +46,8 @@
46
46
  "typescript": "^5.4.5",
47
47
  "vite": "^5.2.11",
48
48
  "vite-plugin-dts": "^3.9.1",
49
+ "vite-plugin-windicss": "^1.8.8",
50
+ "windicss": "^3.5.6",
49
51
  "vue": "3.3.6",
50
52
  "vue-tsc": "^2.0.19",
51
53
  "vue-types": "^5.1.1"
@@ -1,45 +0,0 @@
1
- interface BadgeProps {
2
- type?: 'default' | 'success' | 'warning' | 'danger' | 'info';
3
- variant?: 'filled' | 'subtle' | 'outline';
4
- dot?: boolean;
5
- }
6
- declare function __VLS_template(): {
7
- default?(_: {}): any;
8
- };
9
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
10
- type: string;
11
- variant: string;
12
- dot: boolean;
13
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BadgeProps>, {
14
- type: string;
15
- variant: string;
16
- dot: boolean;
17
- }>>>, {
18
- type: "default" | "success" | "warning" | "danger" | "info";
19
- variant: "filled" | "subtle" | "outline";
20
- dot: boolean;
21
- }, {}>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
- export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
41
- type __VLS_WithTemplateSlots<T, S> = T & {
42
- new (): {
43
- $slots: S;
44
- };
45
- };
@@ -1,4 +0,0 @@
1
- import { default as Badge } from './Badge.vue';
2
-
3
- export { Badge };
4
- export default Badge;
@@ -1,54 +0,0 @@
1
- interface ButtonProps {
2
- variant?: 'primary' | 'secondary' | 'outline' | 'text' | 'danger';
3
- size?: 'sm' | 'md' | 'lg';
4
- loading?: boolean;
5
- disabled?: boolean;
6
- }
7
- declare function __VLS_template(): {
8
- icon?(_: {}): any;
9
- default?(_: {}): any;
10
- };
11
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
12
- variant: string;
13
- size: string;
14
- loading: boolean;
15
- disabled: boolean;
16
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- click: (event: MouseEvent) => void;
18
- }, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ButtonProps>, {
19
- variant: string;
20
- size: string;
21
- loading: boolean;
22
- disabled: boolean;
23
- }>>> & {
24
- onClick?: ((event: MouseEvent) => any) | undefined;
25
- }, {
26
- variant: "primary" | "secondary" | "outline" | "text" | "danger";
27
- size: "sm" | "md" | "lg";
28
- loading: boolean;
29
- disabled: boolean;
30
- }, {}>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
32
- export default _default;
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToRuntimeProps<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
- type __VLS_WithTemplateSlots<T, S> = T & {
51
- new (): {
52
- $slots: S;
53
- };
54
- };
@@ -1,4 +0,0 @@
1
- import { default as Button } from './Button.vue';
2
-
3
- export { Button };
4
- export default Button;
@@ -1 +0,0 @@
1
- export declare function importModules(): Record<string, string>;
@@ -1,23 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- icon: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- size: {
7
- type: NumberConstructor;
8
- default: null;
9
- };
10
- }, () => JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
11
- icon: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- size: {
16
- type: NumberConstructor;
17
- default: null;
18
- };
19
- }>>, {
20
- size: number;
21
- icon: string;
22
- }, {}>;
23
- export default _default;
@@ -1,22 +0,0 @@
1
- export declare const iconMap: {
2
- 'xc-revert': string;
3
- 'xc-progress': string;
4
- 'xc-upload': string;
5
- 'xc-download': string;
6
- 'xc-author': string;
7
- 'xc-lock': string;
8
- 'xc-unlock': string;
9
- 'xc-setting': string;
10
- 'xc-link': string;
11
- 'xc-cancel': string;
12
- 'xc-shelves': string;
13
- 'xc-settle': string;
14
- 'xc-invoice': string;
15
- 'xc-cancel-invoice': string;
16
- 'xc-start-use': string;
17
- 'xc-reduce': string;
18
- 'xc-pass': string;
19
- 'xc-expire': string;
20
- 'xc-pause': string;
21
- 'xc-review': string;
22
- };
@@ -1,8 +0,0 @@
1
- import { VueTypesInterface, VueTypeValidableDef } from 'vue-types';
2
- import { CSSProperties } from 'vue';
3
-
4
- type PropTypes = VueTypesInterface & {
5
- readonly style: VueTypeValidableDef<CSSProperties>;
6
- };
7
- declare const propTypes: PropTypes;
8
- export { propTypes };
@@ -1,4 +0,0 @@
1
- export declare const useDesign: () => {
2
- variables: any;
3
- getPrefixCls: (scope: string) => string;
4
- };
@@ -1,26 +0,0 @@
1
- import { default as Icon } from './IconMap/index';
2
-
3
- declare const XcIcon: import('vue').DefineComponent<{
4
- icon: {
5
- type: StringConstructor;
6
- default: string;
7
- };
8
- size: {
9
- type: NumberConstructor;
10
- default: null;
11
- };
12
- }, () => JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
13
- icon: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- size: {
18
- type: NumberConstructor;
19
- default: null;
20
- };
21
- }>>, {
22
- size: number;
23
- icon: string;
24
- }, {}>;
25
- export { Icon, XcIcon };
26
- export default Icon;
@@ -1,30 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- icon: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
3
- default: string;
4
- };
5
- color: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
6
- default: string;
7
- };
8
- size: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
9
- default: number;
10
- } & {
11
- default: number;
12
- };
13
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
14
- icon: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
15
- default: string;
16
- };
17
- color: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
18
- default: string;
19
- };
20
- size: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
21
- default: number;
22
- } & {
23
- default: number;
24
- };
25
- }>>, {
26
- size: number;
27
- icon: string;
28
- color: string;
29
- }, {}>;
30
- export default _default;
@@ -1,39 +0,0 @@
1
- interface InputProps {
2
- size?: 'large' | 'default' | 'small';
3
- placeholder?: string;
4
- }
5
- declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
6
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputProps>, {
7
- size: string;
8
- placeholder: string;
9
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputProps>, {
10
- size: string;
11
- placeholder: string;
12
- }>>>, {
13
- size: "large" | "default" | "small";
14
- placeholder: string;
15
- }, {}>;
16
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithDefaults<P, D> = {
28
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
- default: D[K];
30
- }> : P[K];
31
- };
32
- type __VLS_Prettify<T> = {
33
- [K in keyof T]: T[K];
34
- } & {};
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,4 +0,0 @@
1
- import { default as Input } from './Input.vue';
2
-
3
- export { Input };
4
- export default Input;