2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{_ as u,i as m,w as f,bh as h,g as e,b as r,a as s,j as o,p as n,t as i,af as p,aR as y,n as b,f as x,k}from"./index-QAlcqU00.js";const g={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},v={key:0,class:"mb-8"},$={class:"bg-white rounded shadow-sm"},w={key:0,class:"mt-auto"},B={__name:"FPLayout",props:{title:{type:String,default:""}},setup(a){return(t,d)=>(e(),m(h,null,{default:f(()=>[r("div",g,[t.$slots.header?(e(),s("div",v,[n(t.$slots,"header",{},void 0,!0)])):o("",!0),r("div",$,[n(t.$slots,"default",{},void 0,!0)])]),t.$slots.footer?(e(),s("footer",w,[n(t.$slots,"footer",{},void 0,!0)])):o("",!0)]),_:3}))}},D=u(B,[["__scopeId","data-v-9a23b903"]]),F={class:"flex items-center justify-between"},P={class:"flex-1"},C={class:"text-2xl font-bold text-gray-900"},S={key:0,class:"mt-2 text-sm text-gray-600"},N={key:1,class:"flex mt-3","aria-label":"Breadcrumb"},j={class:"flex items-center space-x-2"},L={key:1,class:"text-sm text-gray-500"},V={key:2,class:"w-4 h-4 mx-2 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},A={key:0,class:"flex items-center space-x-3"},H={key:0,class:"mt-6"},I={key:1,class:"mt-6"},q={__name:"FPPageHeader",props:{title:{type:String,required:!0},description:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]}},setup(a){return(t,d)=>{const _=x("router-link");return e(),s("div",{class:b(["pb-6 mb-8",{"border-b border-gray-200":!t.$slots.tabs}])},[r("div",F,[r("div",P,[r("h1",C,i(a.title),1),a.description?(e(),s("p",S,i(a.description),1)):o("",!0),a.breadcrumbs&&a.breadcrumbs.length>0?(e(),s("nav",N,[r("ol",j,[(e(!0),s(p,null,y(a.breadcrumbs,(l,c)=>(e(),s("li",{key:c,class:"flex items-center"},[l.to?(e(),m(_,{key:0,to:l.to,class:"text-sm text-primary-600 hover:text-primary-700 transition-colors"},{default:f(()=>[k(i(l.text),1)]),_:2},1032,["to"])):(e(),s("span",L,i(l.text),1)),c<a.breadcrumbs.length-1?(e(),s("svg",V,d[0]||(d[0]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]))):o("",!0)]))),128))])])):o("",!0)]),t.$slots.actions?(e(),s("div",A,[n(t.$slots,"actions",{},void 0,!0)])):o("",!0)]),t.$slots.stats?(e(),s("div",H,[n(t.$slots,"stats",{},void 0,!0)])):o("",!0),t.$slots.tabs?(e(),s("div",I,[n(t.$slots,"tabs",{},void 0,!0)])):o("",!0)],2)}}},E=u(q,[["__scopeId","data-v-6cfe6ab5"]]);export{D as F,E as a};
|