import{_}from"./index.c8cfbd6c.js";import{e as l,o as s,g as r,F as t,H as i,G as m,D as p,l as o,X as u}from"./@vue.e84e1286.js";import{p as d}from"./preview.2bfe2f00.js";import"./vue-router.54876e93.js";import"./bus.f1893518.js";import"./mitt.550594b0.js";/* empty css */const f={};function y(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u6210\u529F\u63D0\u793A\u7684\u6587\u6848",type:"success"}),t(e,{title:"\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848",type:"info"}),t(e,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning"}),t(e,{title:"\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848",type:"error"})],64)}var w=_(f,[["render",y]]);const b={};function g(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u6210\u529F\u63D0\u793A\u7684\u6587\u6848",type:"success",effect:"dark"}),t(e,{title:"\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848",type:"info",effect:"dark"}),t(e,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning",effect:"dark"}),t(e,{title:"\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848",type:"error",effect:"dark"})],64)}var N=_(b,[["render",g]]);const v={__name:"demo3",setup(c){const n=()=>{console.log("\u70B9\u51FB\u4E86\u5173\u95ED")};return(e,h)=>{const a=l("m-alert");return s(),r(i,null,[t(a,{title:"\u4E0D\u53EF\u5173\u95ED\u7684 alert",type:"success",closable:!1}),t(a,{title:"\u81EA\u5B9A\u4E49 close-text",type:"info","close-text":"\u5173\u95ED"}),t(a,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning",onClose:n})],64)}}},x={};function $(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u6210\u529F\u63D0\u793A\u7684\u6587\u6848",type:"success","show-icon":""}),t(e,{title:"\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848",type:"info","show-icon":""}),t(e,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning","show-icon":""}),t(e,{title:"\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848",type:"error","show-icon":""})],64)}var A=_(x,[["render",$]]);const k={};function B(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u6210\u529F\u63D0\u793A\u7684\u6587\u6848",type:"success","show-icon":"",center:""}),t(e,{title:"\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848",type:"info","show-icon":"",center:""}),t(e,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning","show-icon":"",center:""}),t(e,{title:"\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848",type:"error","show-icon":"",center:""})],64)}var C=_(k,[["render",B]]);const V={},E=p(" \u8FD9\u662F\u4E00\u53E5\u7ED5\u53E3\u4EE4\uFF1A\u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u6325\u53D1\uFF1B\u7070\u9ED1\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u9ED1\u7070\u5316\u80A5\u53D1\u6325\u3002\u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u6325\u53D1\uFF1B\u7070\u9ED1\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u9ED1\u7070\u5316\u80A5\u53D1\u6325\u3002 \u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u9ED1\u7070\u6325\u53D1\u5316\u4E3A\u7070\u2026\u2026 ");function F(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u5E26\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD",type:"success",description:"\u8FD9\u662F\u4E00\u53E5\u7ED5\u53E3\u4EE4\uFF1A\u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u6325\u53D1\uFF1B\u7070\u9ED1\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u9ED1\u7070\u5316\u80A5\u53D1\u6325\u3002\u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u6325\u53D1\uFF1B\u7070\u9ED1\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u9ED1\u7070\u5316\u80A5\u53D1\u6325\u3002 \u9ED1\u7070\u5316\u80A5\u4F1A\u6325\u53D1\u53D1\u7070\u9ED1\u5316\u80A5\u9ED1\u7070\u6325\u53D1\u5316\u4E3A\u7070\u2026\u2026"}),t(e,{title:"\u5E26\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD",type:"success"},{default:m(()=>[E]),_:1})],64)}var D=_(V,[["render",F]]);const G={};function H(c,n){const e=l("m-alert");return s(),r(i,null,[t(e,{title:"\u6210\u529F\u63D0\u793A\u7684\u6587\u6848",type:"success",description:"\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E","show-icon":""}),t(e,{title:"\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848",type:"info",description:"\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E","show-icon":""}),t(e,{title:"\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848",type:"warning",description:"\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E","show-icon":""}),t(e,{title:"\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848",type:"error",description:"\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E\u6587\u5B57\u8BF4\u660E","show-icon":""})],64)}var S=_(G,[["render",H]]);const T={class:"markdown-body"},X=o("h1",null,"Alert \u8B66\u544A",-1),j=o("h4",null,"\u7528\u4E8E\u9875\u9762\u4E2D\u5C55\u793A\u91CD\u8981\u7684\u63D0\u793A\u4FE1\u606F",-1),q=o("br",null,null,-1),z=o("h2",null,"\u57FA\u672C\u7528\u6CD5",-1),I=o("h4",null,"Alert \u7EC4\u4EF6\u4E0D\u5C5E\u4E8E\u6D6E\u5C42\u5143\u7D20\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u6D88\u5931\u6216\u5173\u95ED\u3002Alert \u7EC4\u4EF6\u63D0\u4F9B\u56DB\u79CD\u4E3B\u9898\uFF0C\u7531type\u5C5E\u6027\u6307\u5B9A\uFF0C\u9ED8\u8BA4\u503C\u4E3Ainfo",-1),J={class:"source"},K=o("h2",null,"\u4E3B\u9898",-1),L=o("h4",null,"Alert \u7EC4\u4EF6\u63D0\u4F9B\u4E86\u4E24\u4E2A\u4E0D\u540C\u7684\u4E3B\u9898\uFF1Alight\u548Cdark\u3002\u901A\u8FC7\u8BBE\u7F6Eeffect\u5C5E\u6027\u6765\u6539\u53D8\u4E3B\u9898\uFF0C\u9ED8\u8BA4\u4E3Alight",-1),M={class:"source"},O=o("h2",null,"\u81EA\u5B9A\u4E49\u5173\u95ED\u6309\u94AE",-1),P=o("h4",null,"\u81EA\u5B9A\u4E49\u5173\u95ED\u6309\u94AE\u4E3A\u6587\u5B57\u6216\u5176\u4ED6\u7B26\u53F7\u3002",-1),Q=o("p",null,"\u4F60\u53EF\u4EE5\u8BBE\u7F6E Alert \u7EC4\u4EF6\u662F\u5426\u4E3A\u53EF\u5173\u95ED\u72B6\u6001\uFF0C \u5173\u95ED\u6309\u94AE\u7684\u5185\u5BB9\u4EE5\u53CA\u5173\u95ED\u65F6\u7684\u56DE\u8C03\u51FD\u6570\u540C\u6837\u53EF\u4EE5\u5B9A\u5236\u3002 closable \u5C5E\u6027\u51B3\u5B9A Alert \u7EC4\u4EF6\u662F\u5426\u53EF\u5173\u95ED\uFF0C \u8BE5\u5C5E\u6027\u63A5\u53D7\u4E00\u4E2A Boolean\uFF0C\u9ED8\u8BA4\u4E3A true\u3002 \u4F60\u53EF\u4EE5\u8BBE\u7F6E close-text \u5C5E\u6027\u6765\u4EE3\u66FF\u53F3\u4FA7\u7684\u5173\u95ED\u56FE\u6807\uFF0C \u9700\u8981\u6CE8\u610F\u7684\u662F close-text \u5FC5\u987B\u662F\u4E00\u4E2A\u5B57\u7B26\u4E32\u3002 \u5F53 Alert \u7EC4\u4EF6\u88AB\u5173\u95ED\u65F6\u4F1A\u89E6\u53D1 close \u4E8B\u4EF6\u3002",-1),R={class:"source"},U=o("h2",null,"\u5E26\u6709 icon",-1),W=o("h4",null,"\u8868\u793A\u67D0\u79CD\u72B6\u6001\u65F6\u63D0\u5347\u53EF\u8BFB\u6027\u3002\u901A\u8FC7\u8BBE\u7F6Eshow-icon\u5C5E\u6027\u6765\u663E\u793A Alert \u7684 icon\uFF0C\u8FD9\u80FD\u66F4\u6709\u6548\u5730\u5411\u7528\u6237\u5C55\u793A\u4F60\u7684\u663E\u793A\u610F\u56FE",-1),Y={class:"source"},Z=o("h2",null,"\u6587\u5B57\u5C45\u4E2D",-1),tt=o("h4",null,"\u4F7F\u7528 center \u5C5E\u6027\u8BA9\u6587\u5B57\u6C34\u5E73\u5C45\u4E2D\u3002",-1),et={class:"source"},ot=o("h2",null,"\u6587\u5B57\u63CF\u8FF0",-1),nt=o("h4",null,"\u4E3A Alert \u7EC4\u4EF6\u6DFB\u52A0\u4E00\u4E2A\u66F4\u52A0\u8BE6\u7EC6\u7684\u63CF\u8FF0\u6765\u4F7F\u7528\u6237\u4E86\u89E3\u66F4\u591A\u4FE1\u606F\u3002",-1),st=o("p",null,"\u9664\u4E86\u5FC5\u586B\u7684 title \u5C5E\u6027\u5916\uFF0C\u4F60\u53EF\u4EE5\u8BBE\u7F6E description \u5C5E\u6027\u6765\u5E2E\u52A9\u4F60\u66F4\u597D\u5730\u4ECB\u7ECD\uFF0C\u6211\u4EEC\u79F0\u4E4B\u4E3A\u8F85\u52A9\u6027\u6587\u5B57\u3002 \u8F85\u52A9\u6027\u6587\u5B57\u53EA\u80FD\u5B58\u653E\u6587\u672C\u5185\u5BB9\uFF0C\u5F53\u5185\u5BB9\u8D85\u51FA\u957F\u5EA6\u9650\u5236\u65F6\u4F1A\u81EA\u52A8\u6362\u884C\u663E\u793A\u3002",-1),rt={class:"source"},ct=o("h2",null,"\u5E26\u56FE\u6807\u548C\u63CF\u8FF0",-1),dt=o("h4",null,"\u5E26\u6709 icon \u548C\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD",-1),lt={class:"source"},it=u("
Attributes
\u53C2\u6570 | \u8BF4\u660E | \u7C7B\u578B | \u53EF\u9009\u503C | \u9ED8\u8BA4\u503C |
---|
title | \u6807\u9898 | string | \u2014 | \u2014 |
type | \u4E3B\u9898 | string | success/warning/info/error | info |
description | \u8F85\u52A9\u6027\u6587\u5B57\u3002\u4E5F\u53EF\u901A\u8FC7\u9ED8\u8BA4 slot \u4F20\u5165 | string | \u2014 | \u2014 |
closable | \u662F\u5426\u53EF\u5173\u95ED | boolean | \u2014 | true |
center | \u6587\u5B57\u662F\u5426\u5C45\u4E2D | boolean | \u2014 | true |
close-text | \u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C | string | \u2014 | \u2014 |
show-icon | \u662F\u5426\u663E\u793A\u56FE\u6807 | boolean | \u2014 | false |
effect | \u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898 | string | light/dark | light |
Events
\u4E8B\u4EF6\u540D\u79F0 | \u8BF4\u660E | \u56DE\u8C03\u53C2\u6570 |
---|
close | \u5173\u95EDalert\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6 | \u2014 |
",6),yt={__name:"doc",setup(c,{expose:n}){return n({frontmatter:{}}),(h,a)=>(s(),r("div",T,[X,j,q,z,I,o("div",J,[t(w)]),t(d,{compName:"alert",demoName:"demo1"}),K,L,o("div",M,[t(N)]),t(d,{compName:"alert",demoName:"demo2"}),O,P,Q,o("div",R,[t(v)]),t(d,{compName:"alert",demoName:"demo3"}),U,W,o("div",Y,[t(A)]),t(d,{compName:"alert",demoName:"demo4"}),Z,tt,o("div",et,[t(C)]),t(d,{compName:"alert",demoName:"demo5"}),ot,nt,st,o("div",rt,[t(D)]),t(d,{compName:"alert",demoName:"demo6"}),ct,dt,o("div",lt,[t(S)]),t(d,{compName:"alert",demoName:"demo7"}),it]))}};export{yt as default};