2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{d as c,r as b,o,a,b as t,t as v,D as r,f as i,G as _,a3 as n,z as d,a1 as f,x as p}from"./index-Bp03Znup.js";const m={class:"attribute-tabs flex flex-col h-full w-full"},x={class:"flex justify-between attribute-header bg-body rounded-t-lg"},h={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2 text-xl font-medium"},y={key:0,class:"tabs-header flex"},w={key:0,class:"attribute-content flex flex-col h-full w-full"},k={key:1,class:"tabs flex flex-col h-full w-full"},$={class:"flex flex-col h-full w-full"},C={class:"flex flex-col h-full w-full"},g=c({__name:"attritube-tabs",props:{title:{},desc:{}},setup(B){const s=b("content");return(l,e)=>(o(),a("div",m,[t("div",x,[t("div",h,v(l.title),1),l.$slots.default?_("",!0):(o(),a("div",y,[t("div",{class:r(["tabs-header__item",{active:i(s)=="content"}]),onClick:e[0]||(e[0]=u=>s.value="content")},e[2]||(e[2]=[t("span",null,"内容",-1)]),2),t("div",{class:r(["tabs-header__item",{active:i(s)=="styles"}]),onClick:e[1]||(e[1]=u=>s.value="styles")},e[3]||(e[3]=[t("span",null,"样式",-1)]),2)]))]),l.$slots.default?(o(),a("div",w,[n(l.$slots,"default",{},void 0,!0)])):(o(),a("div",k,[d(t("div",$,[n(l.$slots,"content",{},void 0,!0)],512),[[f,i(s)=="content"]]),d(t("div",C,[n(l.$slots,"styles",{},void 0,!0)],512),[[f,i(s)=="styles"]])]))]))}}),S=p(g,[["__scopeId","data-v-57609ab9"]]);export{S as default};
|