vue.runtime.esm-bundler-ed4e85e3.js 11 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import{bF as j,bG as N,bH as H,bI as F,F as L,bJ as U,bK as K,bL as W,bM as q,br as G,bN as Q,aQ as X,aC as Y,bO as Z,bP as J,bQ as ee,bR as oe,bS as te,bT as se,b8 as re,bU as ae,z as A,bV as ne,B as ie,L as le,c as ce,a as de,bW as pe,bX as be,bY as he,bZ as ge,b_ as me,b$ as ue,i as fe,f as ve,c0 as Se,c1 as ye,d as E,c2 as we,c3 as Ce,c4 as xe,c5 as Re,c6 as ze,c7 as Pe,c8 as Te,c9 as $e,ca as Me,cb as _e,cc as Ae,b0 as Ee,cd as ke,ce as Be,cf as De,h as r,cg as Ie,ch as Ve,ci as Oe,cj as je,ck as Ne,aZ as He,cl as Fe,cm as Le,cn as Ue,co as Ke,K as We,cp as qe,cq as Ge,cr as Qe,cs as Xe,ct as Ye,cu as Ze,aH as Je,A as eo,cv as oo,cw as to,s as so,cx as ro,cy as ao,e as no,cz as io,cA as lo,cB as co,au as po,cC as bo,cD as ho,cE as go,cF as mo,at as uo,cG as fo,o as vo,O as So,b4 as yo,cH as wo,M as Co,cI as xo,r as Ro,cJ as zo,b as Po,cK as To,cL as $o,q as Mo,cM as _o,cN as Ao,cO as Eo,cP as ko,cQ as Bo,cR as Do,cS as Io,cT as Vo,cU as Oo,cV as jo,cW as No,cX as Ho,cY as Fo,cZ as Lo,c_ as Uo,t as Ko,c$ as Wo,d0 as qo,E as Go,a9 as Qo,d1 as Xo,d2 as Yo,d3 as Zo,d4 as Jo,g as et,d5 as ot,d6 as tt,d7 as st,d8 as rt,d9 as at,da as nt,db as it,dc as lt,dd as ct,de as dt,df as pt,dg as bt,D as ht,dh as gt,di as mt,I as ut,bg as ft,dj as vt,dk as St,dl as yt,w as wt,dm as Ct,C as xt,dn as Rt,dp as zt,dq as Pt,dr as Tt,S as c,R as e,W as $t,X as R,T as D,av as Mt,aw as _t,U as At,Y as V,a3 as _,$ as Et,bj as kt,b7 as Bt,ds as Dt,dt as It}from"./index-9831710d.js";import{g as Vt}from"./get-slot-1efb97e5.js";const Ot=()=>{},jt=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:j,BaseTransitionPropsValidators:N,Comment:H,EffectScope:F,Fragment:L,KeepAlive:U,ReactiveEffect:K,Static:W,Suspense:q,Teleport:G,Text:Q,Transition:X,TransitionGroup:Y,VueElement:Z,assertNumber:J,callWithAsyncErrorHandling:ee,callWithErrorHandling:oe,camelize:te,capitalize:se,cloneVNode:re,compatUtils:ae,compile:Ot,computed:A,createApp:ne,createBlock:ie,createCommentVNode:le,createElementBlock:ce,createElementVNode:de,createHydrationRenderer:pe,createPropsRestProxy:be,createRenderer:he,createSSRApp:ge,createSlots:me,createStaticVNode:ue,createTextVNode:fe,createVNode:ve,customRef:Se,defineAsyncComponent:ye,defineComponent:E,defineCustomElement:we,defineEmits:Ce,defineExpose:xe,defineModel:Re,defineOptions:ze,defineProps:Pe,defineSSRCustomElement:Te,defineSlots:$e,get devtools(){return Me},effect:_e,effectScope:Ae,getCurrentInstance:Ee,getCurrentScope:ke,getTransitionRawChildren:Be,guardReactiveProps:De,h:r,handleError:Ie,hasInjectionContext:Ve,hydrate:Oe,initCustomFormatter:je,initDirectivesForSSR:Ne,inject:He,isMemoSame:Fe,isProxy:Le,isReactive:Ue,isReadonly:Ke,isRef:We,isRuntimeOnly:qe,isShallow:Ge,isVNode:Qe,markRaw:Xe,mergeDefaults:Ye,mergeModels:Ze,mergeProps:Je,nextTick:eo,normalizeClass:oo,normalizeProps:to,normalizeStyle:so,onActivated:ro,onBeforeMount:ao,onBeforeUnmount:no,onBeforeUpdate:io,onDeactivated:lo,onErrorCaptured:co,onMounted:po,onRenderTracked:bo,onRenderTriggered:ho,onScopeDispose:go,onServerPrefetch:mo,onUnmounted:uo,onUpdated:fo,openBlock:vo,popScopeId:So,provide:yo,proxyRefs:wo,pushScopeId:Co,queuePostFlushCb:xo,reactive:Ro,readonly:zo,ref:Po,registerRuntimeCompiler:To,render:$o,renderList:Mo,renderSlot:_o,resolveComponent:Ao,resolveDirective:Eo,resolveDynamicComponent:ko,resolveFilter:Bo,resolveTransitionHooks:Do,setBlockTracking:Io,setDevtoolsHook:Vo,setTransitionHooks:Oo,shallowReactive:jo,shallowReadonly:No,shallowRef:Ho,ssrContextKey:Fo,ssrUtils:Lo,stop:Uo,toDisplayString:Ko,toHandlerKey:Wo,toHandlers:qo,toRaw:Go,toRef:Qo,toRefs:Xo,toValue:Yo,transformVNodeArgs:Zo,triggerRef:Jo,unref:et,useAttrs:ot,useCssModule:tt,useCssVars:st,useModel:rt,useSSRContext:at,useSlots:nt,useTransitionState:it,vModelCheckbox:lt,vModelDynamic:ct,vModelRadio:dt,vModelSelect:pt,vModelText:bt,vShow:ht,version:gt,warn:mt,watch:ut,watchEffect:ft,watchPostEffect:vt,watchSyncEffect:St,withAsyncContext:yt,withCtx:wt,withDefaults:Ct,withDirectives:xt,withKeys:Rt,withMemo:zt,withModifiers:Pt,withScopeId:Tt},Symbol.toStringTag,{value:"Module"}));function I(s,p="default",a=[]){const{children:n}=s;if(n!==null&&typeof n=="object"&&!Array.isArray(n)){const b=n[p];if(typeof b=="function")return b()}return a}const O="DESCRIPTION_ITEM_FLAG";function Nt(s){return typeof s=="object"&&s&&!Array.isArray(s)?s.type&&s.type[O]:!1}const Ht=c([e("descriptions",{fontSize:"var(--n-font-size)"},[e("descriptions-separator",`
  2. display: inline-block;
  3. margin: 0 8px 0 2px;
  4. `),e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[e("descriptions-table-header",{padding:"var(--n-th-padding)"}),e("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),$t("bordered",[e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[c("&:last-child",[e("descriptions-table-content",{paddingBottom:0})])])])])]),R("left-label-placement",[e("descriptions-table-content",[c("> *",{verticalAlign:"top"})])]),R("left-label-align",[c("th",{textAlign:"left"})]),R("center-label-align",[c("th",{textAlign:"center"})]),R("right-label-align",[c("th",{textAlign:"right"})]),R("bordered",[e("descriptions-table-wrapper",`
  5. border-radius: var(--n-border-radius);
  6. overflow: hidden;
  7. background: var(--n-merged-td-color);
  8. border: 1px solid var(--n-merged-border-color);
  9. `,[e("descriptions-table",[e("descriptions-table-row",[c("&:not(:last-child)",[e("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),e("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),e("descriptions-table-header",`
  10. font-weight: 400;
  11. background-clip: padding-box;
  12. background-color: var(--n-merged-th-color);
  13. `,[c("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),e("descriptions-table-content",[c("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),e("descriptions-header",`
  14. font-weight: var(--n-th-font-weight);
  15. font-size: 18px;
  16. transition: color .3s var(--n-bezier);
  17. line-height: var(--n-line-height);
  18. margin-bottom: 16px;
  19. color: var(--n-title-text-color);
  20. `),e("descriptions-table-wrapper",`
  21. transition:
  22. background-color .3s var(--n-bezier),
  23. border-color .3s var(--n-bezier);
  24. `,[e("descriptions-table",`
  25. width: 100%;
  26. border-collapse: separate;
  27. border-spacing: 0;
  28. box-sizing: border-box;
  29. `,[e("descriptions-table-row",`
  30. box-sizing: border-box;
  31. transition: border-color .3s var(--n-bezier);
  32. `,[e("descriptions-table-header",`
  33. font-weight: var(--n-th-font-weight);
  34. line-height: var(--n-line-height);
  35. display: table-cell;
  36. box-sizing: border-box;
  37. color: var(--n-th-text-color);
  38. transition:
  39. color .3s var(--n-bezier),
  40. background-color .3s var(--n-bezier),
  41. border-color .3s var(--n-bezier);
  42. `),e("descriptions-table-content",`
  43. vertical-align: top;
  44. line-height: var(--n-line-height);
  45. display: table-cell;
  46. box-sizing: border-box;
  47. color: var(--n-td-text-color);
  48. transition:
  49. color .3s var(--n-bezier),
  50. background-color .3s var(--n-bezier),
  51. border-color .3s var(--n-bezier);
  52. `,[D("content",`
  53. transition: color .3s var(--n-bezier);
  54. display: inline-block;
  55. color: var(--n-td-text-color);
  56. `)]),D("label",`
  57. font-weight: var(--n-th-font-weight);
  58. transition: color .3s var(--n-bezier);
  59. display: inline-block;
  60. margin-right: 14px;
  61. color: var(--n-th-text-color);
  62. `)])])])]),e("descriptions-table-wrapper",`
  63. --n-merged-th-color: var(--n-th-color);
  64. --n-merged-td-color: var(--n-td-color);
  65. --n-merged-border-color: var(--n-border-color);
  66. `),Mt(e("descriptions-table-wrapper",`
  67. --n-merged-th-color: var(--n-th-color-modal);
  68. --n-merged-td-color: var(--n-td-color-modal);
  69. --n-merged-border-color: var(--n-border-color-modal);
  70. `)),_t(e("descriptions-table-wrapper",`
  71. --n-merged-th-color: var(--n-th-color-popover);
  72. --n-merged-td-color: var(--n-td-color-popover);
  73. --n-merged-border-color: var(--n-border-color-popover);
  74. `))]),Ft=Object.assign(Object.assign({},V.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),Wt=E({name:"Descriptions",props:Ft,setup(s){const{mergedClsPrefixRef:p,inlineThemeDisabled:a}=At(s),n=V("Descriptions","-descriptions",Ht,Dt,s,p),b=A(()=>{const{size:i,bordered:h}=s,{common:{cubicBezierEaseInOut:u},self:{titleTextColor:t,thColor:z,thColorModal:f,thColorPopover:P,thTextColor:T,thFontWeight:k,tdTextColor:$,tdColor:o,tdColorModal:v,tdColorPopover:M,borderColor:l,borderColorModal:g,borderColorPopover:S,borderRadius:y,lineHeight:m,[_("fontSize",i)]:w,[_(h?"thPaddingBordered":"thPadding",i)]:C,[_(h?"tdPaddingBordered":"tdPadding",i)]:x}}=n.value;return{"--n-title-text-color":t,"--n-th-padding":C,"--n-td-padding":x,"--n-font-size":w,"--n-bezier":u,"--n-th-font-weight":k,"--n-line-height":m,"--n-th-text-color":T,"--n-td-text-color":$,"--n-th-color":z,"--n-th-color-modal":f,"--n-th-color-popover":P,"--n-td-color":o,"--n-td-color-modal":v,"--n-td-color-popover":M,"--n-border-radius":y,"--n-border-color":l,"--n-border-color-modal":g,"--n-border-color-popover":S}}),d=a?Et("descriptions",A(()=>{let i="";const{size:h,bordered:u}=s;return u&&(i+="a"),i+=h[0],i}),b,s):void 0;return{mergedClsPrefix:p,cssVars:a?void 0:b,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender,compitableColumn:kt(s,["columns","column"]),inlineThemeDisabled:a}},render(){const s=this.$slots.default,p=s?Bt(s()):[];p.length;const{compitableColumn:a,labelPlacement:n,labelAlign:b,size:d,bordered:i,title:h,cssVars:u,mergedClsPrefix:t,separator:z,onRender:f}=this;f==null||f();const P=p.filter(o=>Nt(o)),T={span:0,row:[],secondRow:[],rows:[]},$=P.reduce((o,v,M)=>{const l=v.props||{},g=P.length-1===M,S=["label"in l?l.label:I(v,"label")],y=[I(v)],m=l.span||1,w=o.span;o.span+=m;const C=l.labelStyle||l["label-style"]||this.labelStyle,x=l.contentStyle||l["content-style"]||this.contentStyle;if(n==="left")i?o.row.push(r("th",{class:`${t}-descriptions-table-header`,colspan:1,style:C},S),r("td",{class:`${t}-descriptions-table-content`,colspan:g?(a-w)*2+1:m*2-1,style:x},y)):o.row.push(r("td",{class:`${t}-descriptions-table-content`,colspan:g?(a-w)*2:m*2},r("span",{class:`${t}-descriptions-table-content__label`,style:C},[...S,z&&r("span",{class:`${t}-descriptions-separator`},z)]),r("span",{class:`${t}-descriptions-table-content__content`,style:x},y)));else{const B=g?(a-w)*2:m*2;o.row.push(r("th",{class:`${t}-descriptions-table-header`,colspan:B,style:C},S)),o.secondRow.push(r("td",{class:`${t}-descriptions-table-content`,colspan:B,style:x},y))}return(o.span>=a||g)&&(o.span=0,o.row.length&&(o.rows.push(o.row),o.row=[]),n!=="left"&&o.secondRow.length&&(o.rows.push(o.secondRow),o.secondRow=[])),o},T).rows.map(o=>r("tr",{class:`${t}-descriptions-table-row`},o));return r("div",{style:u,class:[`${t}-descriptions`,this.themeClass,`${t}-descriptions--${n}-label-placement`,`${t}-descriptions--${b}-label-align`,`${t}-descriptions--${d}-size`,i&&`${t}-descriptions--bordered`]},h||this.$slots.header?r("div",{class:`${t}-descriptions-header`},h||Vt(this,"header")):null,r("div",{class:`${t}-descriptions-table-wrapper`},r("table",{class:`${t}-descriptions-table`},r("tbody",null,$))))}}),Lt={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},qt=E({name:"DescriptionsItem",[O]:!0,props:Lt,render(){return null}}),Gt=It(jt);export{qt as _,Wt as a,Gt as r};