PageHeader.9e62c42a.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <<<<<<< HEAD:dist/assets/PageHeader.8e94aa70.js
  2. <<<<<<<< HEAD:dist/assets/PageHeader.8e94aa70.js
  3. import{d as S,bi as e,cE as l,cj as z,cG as i,cI as _,cJ as y,dt as $,du as H,F as P,cP as R,cp as B}from"./index.adc1932e.js";const E=S({name:"ArrowBack",render(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),T=l([z("page-header-header",`
  4. ========
  5. import{d as S,bi as e,cE as l,cj as z,cG as i,cI as _,cJ as y,dt as $,du as H,F as P,cP as R,cp as B}from"./index.52190234.js";const E=S({name:"ArrowBack",render(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),T=l([z("page-header-header",`
  6. >>>>>>>> b903ebfeb5dfe3869bfa504d62e84bd887f1748f:dist/assets/PageHeader.c6b6ff34.js
  7. =======
  8. import{d as S,bi as e,cE as l,cj as z,cG as i,cI as _,cJ as y,dt as $,du as H,F as P,cP as R,cp as B}from"./index.6bfa570d.js";const E=S({name:"ArrowBack",render(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),T=l([z("page-header-header",`
  9. >>>>>>> 3365a6143434746c8767917a216ce26b1ba3a16f:dist/assets/PageHeader.9e62c42a.js
  10. margin-bottom: 20px;
  11. `),z("page-header",`
  12. display: flex;
  13. align-items: center;
  14. justify-content: space-between;
  15. line-height: 1.5;
  16. font-size: var(--n-font-size);
  17. `,[i("main",`
  18. display: flex;
  19. flex-wrap: nowrap;
  20. align-items: center;
  21. `),i("back",`
  22. display: flex;
  23. margin-right: 16px;
  24. font-size: var(--n-back-size);
  25. cursor: pointer;
  26. color: var(--n-back-color);
  27. transition: color .3s var(--n-bezier);
  28. `,[l("&:hover","color: var(--n-back-color-hover);"),l("&:active","color: var(--n-back-color-pressed);")]),i("avatar",`
  29. display: flex;
  30. margin-right: 12px
  31. `),i("title",`
  32. margin-right: 16px;
  33. transition: color .3s var(--n-bezier);
  34. font-size: var(--n-title-font-size);
  35. font-weight: var(--n-title-font-weight);
  36. color: var(--n-title-text-color);
  37. `),i("subtitle",`
  38. font-size: 14px;
  39. transition: color .3s var(--n-bezier);
  40. color: var(--n-subtitle-text-color);
  41. `)]),z("page-header-content",`
  42. font-size: var(--n-font-size);
  43. `,[l("&:not(:first-child)","margin-top: 20px;")]),z("page-header-footer",`
  44. font-size: var(--n-font-size);
  45. `,[l("&:not(:first-child)","margin-top: 20px;")])]),j=Object.assign(Object.assign({},y.props),{title:String,subtitle:String,extra:String,onBack:Function}),I=S({name:"PageHeader",props:j,setup(r){const{mergedClsPrefixRef:o,mergedRtlRef:c,inlineThemeDisabled:s}=_(r),d=y("PageHeader","-page-header",T,$,r,o),t=H("PageHeader",c,o),h=P(()=>{const{self:{titleTextColor:g,subtitleTextColor:p,backColor:f,fontSize:u,titleFontSize:v,backSize:n,titleFontWeight:b,backColorHover:m,backColorPressed:x},common:{cubicBezierEaseInOut:k}}=d.value;return{"--n-title-text-color":g,"--n-title-font-size":v,"--n-title-font-weight":b,"--n-font-size":u,"--n-back-size":n,"--n-subtitle-text-color":p,"--n-back-color":f,"--n-back-color-hover":m,"--n-back-color-pressed":x,"--n-bezier":k}}),a=s?R("page-header",void 0,h,r):void 0;return{rtlEnabled:t,mergedClsPrefix:o,cssVars:s?void 0:h,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var r;const{onBack:o,title:c,subtitle:s,extra:d,mergedClsPrefix:t,cssVars:h,$slots:a}=this;(r=this.onRender)===null||r===void 0||r.call(this);const{title:g,subtitle:p,extra:f,default:u,header:v,avatar:n,footer:b,back:m}=a,x=o,k=c||g,w=s||p,C=d||f;return e("div",{style:h,class:[`${t}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${t}-page-header-wrapper--rtl`]},v?e("div",{class:`${t}-page-header-header`,key:"breadcrumb"},v()):null,(x||n||k||w||C)&&e("div",{class:`${t}-page-header`,key:"header"},e("div",{class:`${t}-page-header__main`,key:"back"},x?e("div",{class:`${t}-page-header__back`,onClick:o},m?m():e(B,{clsPrefix:t},{default:()=>e(E,null)})):null,n?e("div",{class:`${t}-page-header__avatar`},n()):null,k?e("div",{class:`${t}-page-header__title`,key:"title"},c||g()):null,w?e("div",{class:`${t}-page-header__subtitle`,key:"subtitle"},s||p()):null),C?e("div",{class:`${t}-page-header__extra`},d||f()):null),u?e("div",{class:`${t}-page-header-content`,key:"content"},u()):null,b?e("div",{class:`${t}-page-header-footer`,key:"footer"},b()):null)}});export{I as N};