vue.runtime.esm-bundler-37e551b2.js 11 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import{bG as j,bH as N,bI as H,bJ as F,F as L,bK as U,bL as K,bM as q,bN as G,bs as W,bO as Y,aR as J,aD as X,bP as Z,bQ as Q,bR as ee,bS as oe,bT as te,bU as se,b7 as re,bV as ae,z as k,bW as ne,B as ie,M as le,c as ce,a as de,bX as pe,bY as be,bZ as he,b_ as ge,b$ as me,H as ue,i as fe,f as ve,c0 as Se,c1 as ye,d as A,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 ke,a$ as Ae,cd as Ee,ce as Be,cf as De,h as r,cg as Ve,ch as Ie,ci as Oe,cj as je,ck as Ne,aY as He,cl as Fe,cm as Le,cn as Ue,co as Ke,L as qe,cp as Ge,cq as We,cr as Ye,cs as Je,ct as Xe,cu as Ze,aI as Qe,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,av as po,cC as bo,cD as ho,cE as go,cF as mo,au as uo,cG as fo,o as vo,P as So,b3 as yo,cH as wo,O 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 ko,cO as Ao,cP as Eo,cQ as Bo,cR as Do,cS as Vo,cT as Io,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 qo,d0 as Go,E as Wo,aa as Yo,d1 as Jo,d2 as Xo,d3 as Zo,d4 as Qo,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,J as ut,bk 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,T as c,S as e,X as $t,Y as R,U as D,ax as Mt,ay as _t,V as kt,Z as I,a4 as _,a0 as At,ba as Et,b6 as Bt,ds as Dt,dt as Vt}from"./index-dee576f2.js";import{g as It}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:q,Suspense:G,Teleport:W,Text:Y,Transition:J,TransitionGroup:X,VueElement:Z,assertNumber:Q,callWithAsyncErrorHandling:ee,callWithErrorHandling:oe,camelize:te,capitalize:se,cloneVNode:re,compatUtils:ae,compile:Ot,computed:k,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:A,defineCustomElement:we,defineEmits:Ce,defineExpose:xe,defineModel:Re,defineOptions:ze,defineProps:Pe,defineSSRCustomElement:Te,defineSlots:$e,get devtools(){return Me},effect:_e,effectScope:ke,getCurrentInstance:Ae,getCurrentScope:Ee,getTransitionRawChildren:Be,guardReactiveProps:De,h:r,handleError:Ve,hasInjectionContext:Ie,hydrate:Oe,initCustomFormatter:je,initDirectivesForSSR:Ne,inject:He,isMemoSame:Fe,isProxy:Le,isReactive:Ue,isReadonly:Ke,isRef:qe,isRuntimeOnly:Ge,isShallow:We,isVNode:Ye,markRaw:Je,mergeDefaults:Xe,mergeModels:Ze,mergeProps:Qe,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:ko,resolveDirective:Ao,resolveDynamicComponent:Eo,resolveFilter:Bo,resolveTransitionHooks:Do,setBlockTracking:Vo,setDevtoolsHook:Io,setTransitionHooks:Oo,shallowReactive:jo,shallowReadonly:No,shallowRef:Ho,ssrContextKey:Fo,ssrUtils:Lo,stop:Uo,toDisplayString:Ko,toHandlerKey:qo,toHandlers:Go,toRaw:Wo,toRef:Yo,toRefs:Jo,toValue:Xo,transformVNodeArgs:Zo,triggerRef:Qo,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 V(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({},I.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]}),qt=A({name:"Descriptions",props:Ft,setup(s){const{mergedClsPrefixRef:p,inlineThemeDisabled:a}=kt(s),n=I("Descriptions","-descriptions",Ht,Dt,s,p),b=k(()=>{const{size:i,bordered:h}=s,{common:{cubicBezierEaseInOut:u},self:{titleTextColor:t,thColor:z,thColorModal:f,thColorPopover:P,thTextColor:T,thFontWeight:E,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":E,"--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?At("descriptions",k(()=>{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:Et(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:V(v,"label")],y=[V(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||It(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]},Gt=A({name:"DescriptionsItem",[O]:!0,props:Lt,render(){return null}}),Wt=Vt(jt);export{Gt as _,qt as a,Wt as r};