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.7 KiB

var $=Object.defineProperty,w=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var d=(e,o,t)=>o in e?$(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,u=(e,o)=>{for(var t in o||(o={}))B.call(o,t)&&d(e,t,o[t]);if(c)for(var t of c(o))S.call(o,t)&&d(e,t,o[t]);return e},f=(e,o)=>w(e,F(o));import{d as D,m as P,f as T,aT as v,aU as b,o as a,g as m,F as O,aV as r,a as k,w as h,h as g,t as y,aP as C,i as n,x as V,a9 as z}from"./index-f4658ae7.js";import{footerProps as N}from"./props-34b32f69.js";const E=D({name:"BasicDrawerFooter",props:f(u({},N),{height:{type:String,default:"60px"}}),emits:["ok","close"],setup(e,{emit:o}){const{prefixCls:t}=P("basic-drawer-footer"),l=T(()=>{const s=`${e.height}`;return{height:s,lineHeight:`calc(${s} - 1px)`}});function i(){o("ok")}function p(){o("close")}return{handleOk:i,prefixCls:t,handleClose:p,getStyle:l}}});function H(e,o,t,l,i,p){const s=b("a-button");return e.showFooter||e.$slots.footer?(a(),m("div",{key:0,class:V(e.prefixCls),style:z(e.getStyle)},[e.$slots.footer?r(e.$slots,"footer",{key:1}):(a(),m(O,{key:0},[r(e.$slots,"insertFooter"),e.showCancelBtn?(a(),k(s,C({key:0},e.cancelButtonProps,{onClick:e.handleClose,class:"mr-2"}),{default:h(()=>[g(y(e.cancelText),1)]),_:1},16,["onClick"])):n("",!0),r(e.$slots,"centerFooter"),e.showOkBtn?(a(),k(s,C({key:1,type:e.okType,onClick:e.handleOk},e.okButtonProps,{class:"mr-2",loading:e.confirmLoading}),{default:h(()=>[g(y(e.okText),1)]),_:1},16,["type","onClick","loading"])):n("",!0),r(e.$slots,"appendFooter")],64))],6)):n("",!0)}const j=v(E,[["render",H]]);export{j as default};