-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-LJPVA6XJ.js
1 lines (1 loc) · 6.4 KB
/
chunk-LJPVA6XJ.js
1
import{a as d,c as R}from"./chunk-Y54HNU3H.js";import"./chunk-FFGJMO62.js";import"./chunk-XRBZUWDJ.js";import{m as c,n as w,o as A,q as j,r as I,t as V}from"./chunk-LJRBPGSW.js";import"./chunk-JYBRZQRP.js";import{Da as t,Ea as n,Fa as f,I as C,Ja as F,Ka as r,La as B,O as E,P as _,Qa as S,Qb as h,Ra as x,Sa as b,Ua as i,Va as T,ca as a,da as p,fb as k,la as u,ma as M,ra as v,va as D}from"./chunk-UJIEDWPF.js";var K=["tpl"];function L(e,$){if(e&1&&(t(0,"p"),i(1),n()),e&2){let s=B();a(),T(s.content)}}var U=(()=>{class e{constructor(s){this.message=s,this.content="\u6A21\u677F\u6D88\u606F"}open(){this.message.info("\u53EA\u662F\u4E00\u6761\u6D88\u606F\u63D0\u793A")}openVn(){this.message.info(this.tpl)}static{this.\u0275fac=function(o){return new(o||e)(p(c))}}static{this.\u0275cmp=u({type:e,selectors:[["nel-demo-message-basic"]],viewQuery:function(o,m){if(o&1&&S(K,5),o&2){let l;x(l=b())&&(m.tpl=l.first)}},standalone:!1,decls:6,vars:0,consts:[["tpl",""],["nel-button","","nelPlain","",3,"click"]],template:function(o,m){if(o&1){let l=F();t(0,"button",1),r("click",function(){return E(l),_(m.open())}),i(1,"\u6253\u5F00\u6D88\u606F\u63D0\u793A"),n(),t(2,"button",1),r("click",function(){return E(l),_(m.openVn())}),i(3,"TemplateRef\u6D88\u606F"),n(),v(4,L,2,1,"ng-template",null,0,k)}},dependencies:[d],encapsulation:2})}}return e})();var P=(()=>{class e{constructor(s){this.message=s}open1(){this.message.success("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F")}open2(){this.message.warning("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F")}open3(){this.message.info("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F")}open4(){this.message.error("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F")}static{this.\u0275fac=function(o){return new(o||e)(p(c))}}static{this.\u0275cmp=u({type:e,selectors:[["nel-demo-message-type"]],standalone:!1,decls:8,vars:0,consts:[["nel-button","","nelPlain","",3,"click"]],template:function(o,m){o&1&&(t(0,"button",0),r("click",function(){return m.open1()}),i(1,"\u6210\u529F"),n(),t(2,"button",0),r("click",function(){return m.open2()}),i(3,"\u8B66\u544A"),n(),t(4,"button",0),r("click",function(){return m.open3()}),i(5,"\u6D88\u606F"),n(),t(6,"button",0),r("click",function(){return m.open4()}),i(7,"\u9519\u8BEF"),n())},dependencies:[d],encapsulation:2})}}return e})();var Q=(()=>{class e{constructor(s){this.message=s}open1(){this.message.success("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F",{showClose:!0})}open2(){this.message.warning("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F",{showClose:!0})}open3(){this.message.info("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F",{showClose:!0})}open4(){this.message.error("\u606D\u559C\u4F60\uFF0C\u8FD9\u662F\u4E00\u6761\u6210\u529F\u6D88\u606F",{showClose:!0,onClose:()=>{console.log("onClose")}})}static{this.\u0275fac=function(o){return new(o||e)(p(c))}}static{this.\u0275cmp=u({type:e,selectors:[["nel-demo-message-close"]],standalone:!1,decls:8,vars:0,consts:[["nel-button","","nelPlain","",3,"click"]],template:function(o,m){o&1&&(t(0,"button",0),r("click",function(){return m.open1()}),i(1,"\u6210\u529F"),n(),t(2,"button",0),r("click",function(){return m.open2()}),i(3,"\u8B66\u544A"),n(),t(4,"button",0),r("click",function(){return m.open3()}),i(5,"\u6D88\u606F"),n(),t(6,"button",0),r("click",function(){return m.open4()}),i(7,"\u9519\u8BEF"),n())},dependencies:[d],encapsulation:2})}}return e})();var q=(()=>{class e{constructor(s){this.message=s}openCenter(){let s=this.message.info("\u5C45\u4E2D\u7684\u6587\u5B57",{center:!0,duration:0});setTimeout(()=>{s.close()},6e3)}static{this.\u0275fac=function(o){return new(o||e)(p(c))}}static{this.\u0275cmp=u({type:e,selectors:[["nel-demo-message-center"]],standalone:!1,decls:2,vars:0,consts:[["nel-button","","nelPlain","",3,"click"]],template:function(o,m){o&1&&(t(0,"button",0),r("click",function(){return m.openCenter()}),i(1,"\u6587\u5B57\u5C45\u4E2D"),n())},dependencies:[d],encapsulation:2})}}return e})();var z=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=M({type:e})}static{this.\u0275inj=C({imports:[R,w]})}}return e})();var G=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-message"]],standalone:!1,decls:30,vars:5,consts:[["code","import { NelMessageModule } from 'ng-element-ui/message';"],[3,"codeUrl"],["demo",""],[3,"docUrl"]],template:function(o,m){o&1&&(t(0,"h2"),i(1,"Message \u6D88\u606F\u63D0\u793A"),n(),t(2,"p"),i(3,"\u5E38\u7528\u4E8E\u4E3B\u52A8\u64CD\u4F5C\u540E\u7684\u53CD\u9988\u63D0\u793A\u3002\u4E0E Notification \u7684\u533A\u522B\u662F\u540E\u8005\u66F4\u591A\u7528\u4E8E\u7CFB\u7EDF\u7EA7\u901A\u77E5\u7684\u88AB\u52A8\u63D0\u9192\u3002"),n(),f(4,"app-code",0),t(5,"h3"),i(6,"\u57FA\u7840\u7528\u6CD5"),n(),t(7,"p"),i(8,"\u4ECE\u9876\u90E8\u51FA\u73B0\uFF0C3 \u79D2\u540E\u81EA\u52A8\u6D88\u5931\u3002"),n(),t(9,"app-demo",1),f(10,"nel-demo-message-basic",2),n(),t(11,"h3"),i(12,"\u4E0D\u540C\u72B6\u6001"),n(),t(13,"p"),i(14,"\u7528\u6765\u663E\u793A\u300C\u6210\u529F\u3001\u8B66\u544A\u3001\u6D88\u606F\u3001\u9519\u8BEF\u300D\u7C7B\u7684\u64CD\u4F5C\u53CD\u9988\u3002"),n(),t(15,"app-demo",1),f(16,"nel-demo-message-type",2),n(),t(17,"h3"),i(18,"\u53EF\u5173\u95ED"),n(),t(19,"p"),i(20,"\u53EF\u4EE5\u6DFB\u52A0\u5173\u95ED\u6309\u94AE\u3002"),n(),t(21,"app-demo",1),f(22,"nel-demo-message-close",2),n(),t(23,"h3"),i(24,"\u6587\u5B57\u5C45\u4E2D"),n(),t(25,"p"),i(26,"\u4F7F\u7528 center \u5C5E\u6027\u8BA9\u6587\u5B57\u6C34\u5E73\u5C45\u4E2D\u3002"),n(),t(27,"app-demo",1),f(28,"nel-demo-message-center",2),n(),f(29,"app-doc",3)),o&2&&(a(9),D("codeUrl","components-message-demo-basic.component"),a(6),D("codeUrl","components-message-demo-type.component"),a(6),D("codeUrl","components-message-demo-close.component"),a(6),D("codeUrl","components-message-demo-center.component"),a(2),D("docUrl","components-message"))},dependencies:[U,P,Q,q,A,j,I],encapsulation:2})}}return e})();var Z=[{path:"",component:G}],H=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=M({type:e})}static{this.\u0275inj=C({imports:[h.forChild(Z),h]})}}return e})();var ye=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=M({type:e})}static{this.\u0275inj=C({imports:[z,V,H]})}}return e})();export{ye as MessageModule};