import{h as s}from"./index-5df52834.js";import{m as t,c as l}from"./message-5a54ef00.js";import{u as d}from"./hooks-a73423ff.js";import{C as a}from"./check-f53d8364.js";const i=Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"}," Message提示 ")],-1),C=Vue.createElementVNode("h4",{class:"mb-4"},"element-plus 的消息提示，点击弹出提示信息",-1),c=Vue.createElementVNode("h4",{class:"mb-4"}," 类似 Ant Design 风格的消息提示，点击弹出提示信息（基于 ElMessage 样式改版，不会影响 ElMessage 原本样式，使用和打包大小成本极低并适配暗黑模式） ",-1),f=Vue.defineComponent({name:"Message"}),T=Vue.defineComponent({...f,setup(N){return(p,e)=>{const u=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-space"),V=Vue.resolveComponent("el-divider"),r=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(r,{shadow:"never"},{header:Vue.withCtx(()=>[i]),default:Vue.withCtx(()=>[C,Vue.createVNode(n,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(u,{type:"info",onClick:e[0]||(e[0]=o=>Vue.unref(t)("Info类型消息",{customClass:"el"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Info ")]),_:1}),Vue.createVNode(u,{type:"success",onClick:e[1]||(e[1]=o=>Vue.unref(t)("Success类型消息",{customClass:"el",type:"success"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Success ")]),_:1}),Vue.createVNode(u,{type:"warning",onClick:e[2]||(e[2]=o=>Vue.unref(t)("Warning类型消息",{customClass:"el",type:"warning"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Warning ")]),_:1}),Vue.createVNode(u,{type:"danger",onClick:e[3]||(e[3]=o=>Vue.unref(t)("Error类型消息",{customClass:"el",type:"error"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Error ")]),_:1}),Vue.createVNode(u,{onClick:e[4]||(e[4]=o=>Vue.unref(t)("可关闭消息",{customClass:"el",showClose:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 可关闭 ")]),_:1}),Vue.createVNode(u,{onClick:e[5]||(e[5]=o=>Vue.unref(t)("分组消息合并",{customClass:"el",type:"success",grouping:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 分组消息合并 ")]),_:1}),Vue.createVNode(u,{onClick:e[6]||(e[6]=o=>Vue.unref(t)("自定义消息图标",{customClass:"el",icon:Vue.unref(d)(Vue.unref(a))}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义图标 ")]),_:1}),Vue.createVNode(u,{onClick:e[7]||(e[7]=o=>Vue.unref(t)("3秒后关闭",{customClass:"el",duration:3e3,onClose:()=>Vue.unref(t)("消息已关闭",{customClass:"el",type:"success"})}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义延时关闭时间并设置关闭后其他操作 ")]),_:1}),Vue.createVNode(u,{onClick:e[8]||(e[8]=o=>Vue.unref(t)(Vue.h("p",null,[Vue.h("span",null,"Message can be "),Vue.h("i",{style:"color: teal"},"VNode")]),{customClass:"el"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义内容 ")]),_:1}),Vue.createVNode(u,{onClick:e[9]||(e[9]=o=>Vue.unref(t)("<strong>This is <i>HTML</i> string</strong>",{customClass:"el",dangerouslyUseHTMLString:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" HTML 片段作为正文内容 ")]),_:1})]),_:1}),Vue.createVNode(V),c,Vue.createVNode(n,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(u,{type:"info",onClick:e[10]||(e[10]=o=>Vue.unref(t)("Info类型消息"))},{default:Vue.withCtx(()=>[Vue.createTextVNode("Info")]),_:1}),Vue.createVNode(u,{type:"success",onClick:e[11]||(e[11]=o=>Vue.unref(t)("Success类型消息",{type:"success"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Success ")]),_:1}),Vue.createVNode(u,{type:"warning",onClick:e[12]||(e[12]=o=>Vue.unref(t)("Warning类型消息",{type:"warning"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Warning ")]),_:1}),Vue.createVNode(u,{type:"danger",onClick:e[13]||(e[13]=o=>Vue.unref(t)("Error类型消息",{type:"error"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Error ")]),_:1}),Vue.createVNode(u,{onClick:e[14]||(e[14]=o=>Vue.unref(t)("可关闭消息",{showClose:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 可关闭 ")]),_:1}),Vue.createVNode(u,{onClick:e[15]||(e[15]=o=>Vue.unref(t)("分组消息合并",{type:"success",grouping:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 分组消息合并 ")]),_:1}),Vue.createVNode(u,{onClick:e[16]||(e[16]=o=>Vue.unref(t)("自定义消息图标",{icon:Vue.unref(s)}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义图标 ")]),_:1}),Vue.createVNode(u,{onClick:e[17]||(e[17]=o=>Vue.unref(t)("3秒后关闭",{duration:3e3,onClose:()=>Vue.unref(t)("消息已关闭",{type:"success"})}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义延时关闭时间并设置关闭后其他操作 ")]),_:1}),Vue.createVNode(u,{onClick:e[18]||(e[18]=o=>Vue.unref(t)(Vue.h("p",null,[Vue.h("span",null,"Message can be "),Vue.h("i",{style:"color: teal"},"VNode")])))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义内容 ")]),_:1}),Vue.createVNode(u,{onClick:e[19]||(e[19]=o=>Vue.unref(t)("<strong>This is <i>HTML</i> string</strong>",{dangerouslyUseHTMLString:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" HTML 片段作为正文内容 ")]),_:1})]),_:1}),Vue.createVNode(V),Vue.createVNode(u,{onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 关闭所有消息提示 ")]),_:1},8,["onClick"])]),_:1})}}});export{T as default};
