You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.2 KiB

import{d as w,bU as k,ay as t,m as _,aT as $,aU as n,o,a as B,w as y,aV as p,h as D,t as d,x as s,g as l,j as c,b,i as f}from"./index-f4658ae7.js";import{A as h}from"./ArrowLeftOutlined-f214e093.js";const T=w({name:"BasicDrawerHeader",components:{BasicTitle:k,ArrowLeftOutlined:h},props:{isDetail:t.bool,showDetailBack:t.bool,title:t.string},emits:["close"],setup(e,{emit:a}){const{prefixCls:r}=_("basic-drawer-header");function i(){a("close")}return{prefixCls:r,handleClose:i}}});const g={key:1};function V(e,a,r,i,v,A){const m=n("BasicTitle"),u=n("ArrowLeftOutlined");return e.isDetail?(o(),l("div",{key:1,class:s([e.prefixCls,`${e.prefixCls}--detail`])},[c("span",{class:s(`${e.prefixCls}__twrap`)},[e.showDetailBack?(o(),l("span",{key:0,onClick:a[0]||(a[0]=(...C)=>e.handleClose&&e.handleClose(...C))},[b(u,{class:s(`${e.prefixCls}__back`)},null,8,["class"])])):f("",!0),e.title?(o(),l("span",g,d(e.title),1)):f("",!0)],2),c("span",{class:s(`${e.prefixCls}__toolbar`)},[p(e.$slots,"titleToolbar")],2)],2)):(o(),B(m,{key:0,class:s(e.prefixCls)},{default:y(()=>[p(e.$slots,"title"),D(" "+d(e.$slots.title?"":e.title),1)]),_:3},8,["class"]))}const L=$(T,[["render",V]]);export{L as default};