import{d as v,U as d,a2 as S,ad as T,af as n,k as e,G as t}from"./vue-vendor-CxLCUzY4.js";import{C as I}from"./index-BRTtls-l.js";import{u as b,_ as y}from"./index-CYriLmQo.js";import{P as N}from"./index-BxgvQLkr.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-DOuVMe-q.js";import"./index-CxQILSKV.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContentHeight-DtBiGC0g.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./useContentViewHeight-D71xl1HH.js";import"./usePageContext-CCgh0KDo.js";import"./injectionKey-DPVn4AgL.js";const L=v({components:{CollapseContainer:I,PageWrapper:N},setup(){const{createMessage:s,createConfirm:o,createSuccessModal:u,createInfoModal:m,createErrorModal:f,createWarningModal:p,notification:r}=b(),{info:i,success:a,warning:l,error:g}=s;function C(){s.loading("Loading...")}function c(W){o({iconType:W,title:"Tip",content:"content message..."})}function M(){u({title:"Tip",content:"content message..."})}function k(){f({title:"Tip",content:"content message..."})}function w(){p({title:"Tip",content:"content message..."})}function $(){m({title:"Tip",content:"content message..."})}function E(){r.success({message:"Tip",description:"content message..."})}return{infoMsg:i,successMsg:a,warningMsg:l,errorMsg:g,handleLoading:C,handleConfirm:c,handleSuccessModal:M,handleErrorModal:k,handleWarningModal:w,handleInfoModal:$,handleNotify:E}}});function P(s,o,u,m,f,p){const r=d("a-button"),i=d("CollapseContainer"),a=d("PageWrapper");return S(),T(a,{title:"消息示例"},{default:n(()=>[e(i,{class:"w-full h-32 bg-white rounded-md",title:"Message"},{default:n(()=>[e(r,{onClick:o[0]||(o[0]=l=>s.infoMsg("Info message")),class:"mr-2"},{default:n(()=>o[8]||(o[8]=[t(" Info ")])),_:1}),e(r,{onClick:o[1]||(o[1]=l=>s.successMsg("Success message")),class:"mr-2",color:"success"},{default:n(()=>o[9]||(o[9]=[t(" Success ")])),_:1}),e(r,{onClick:o[2]||(o[2]=l=>s.warningMsg("Warning message")),class:"mr-2",color:"warning"},{default:n(()=>o[10]||(o[10]=[t(" Warning ")])),_:1}),e(r,{onClick:o[3]||(o[3]=l=>s.errorMsg("Error message")),class:"mr-2",color:"error"},{default:n(()=>o[11]||(o[11]=[t(" Error ")])),_:1}),e(r,{onClick:s.handleLoading,class:"mr-2",type:"primary"},{default:n(()=>o[12]||(o[12]=[t(" Loading ")])),_:1},8,["onClick"])]),_:1}),e(i,{class:"w-full h-32 mt-5 bg-white rounded-md",title:"Comfirm"},{default:n(()=>[e(r,{onClick:o[4]||(o[4]=l=>s.handleConfirm("info")),class:"mr-2"},{default:n(()=>o[13]||(o[13]=[t(" Info ")])),_:1}),e(r,{onClick:o[5]||(o[5]=l=>s.handleConfirm("warning")),color:"warning",class:"mr-2"},{default:n(()=>o[14]||(o[14]=[t(" Warning ")])),_:1}),e(r,{onClick:o[6]||(o[6]=l=>s.handleConfirm("success")),color:"success",class:"mr-2"},{default:n(()=>o[15]||(o[15]=[t(" Success ")])),_:1}),e(r,{onClick:o[7]||(o[7]=l=>s.handleConfirm("error")),color:"error",class:"mr-2"},{default:n(()=>o[16]||(o[16]=[t(" Error ")])),_:1})]),_:1}),e(i,{class:"w-full h-32 mt-5 bg-white rounded-md",title:"Modal"},{default:n(()=>[e(r,{onClick:s.handleInfoModal,class:"mr-2"},{default:n(()=>o[17]||(o[17]=[t(" Info ")])),_:1},8,["onClick"]),e(r,{onClick:s.handleSuccessModal,color:"success",class:"mr-2"},{default:n(()=>o[18]||(o[18]=[t(" Success ")])),_:1},8,["onClick"]),e(r,{onClick:s.handleErrorModal,color:"error",class:"mr-2"},{default:n(()=>o[19]||(o[19]=[t(" Error ")])),_:1},8,["onClick"]),e(r,{onClick:s.handleWarningModal,color:"warning",class:"mr-2"},{default:n(()=>o[20]||(o[20]=[t(" Warning ")])),_:1},8,["onClick"])]),_:1}),e(i,{class:"w-full h-32 mt-5 bg-white rounded-md",title:"Notification 用法与上面一致"},{default:n(()=>[e(r,{onClick:s.handleNotify,color:"success",class:"mr-2"},{default:n(()=>o[21]||(o[21]=[t(" Success ")])),_:1},8,["onClick"])]),_:1})]),_:1})}const X=y(L,[["render",P]]);export{X as default};
