-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-23QAI35V.js
1 lines (1 loc) · 26.8 KB
/
chunk-23QAI35V.js
1
import{l as $,n as U}from"./chunk-NG7CZDWR.js";import"./chunk-WD5CSFOF.js";import{a as qe,e as Pe}from"./chunk-BBTTHRVX.js";import"./chunk-VSPE72FH.js";import"./chunk-4F3F27BT.js";import{a as de,h as E}from"./chunk-7EEEUGJK.js";import{a as y,c as D}from"./chunk-YRDZVT6A.js";import{f as Ge,k as Ve}from"./chunk-RKL5WCT5.js";import"./chunk-MGFBB5Y4.js";import{a as Ie,b as He,d as Me}from"./chunk-HVFPNQ3B.js";import{a as Fe}from"./chunk-6AJOFIIP.js";import"./chunk-3LAVY7RV.js";import{a as N,g as X,h as W,j as Y}from"./chunk-PNYJKZIQ.js";import"./chunk-UJZP7RYT.js";import{Ca as M,Ea as _e,Fa as be,Fc as je,Gb as Be,Hb as ke,Hc as R,Ic as Z,Lc as Q,Ua as Ae,Wa as Te,ec as O,gc as we,kc as Oe,oc as Re,sc as Le}from"./chunk-YWVGY2C2.js";import{Aa as f,Ac as F,Bc as T,Cc as B,Gc as k,Hc as n,Hd as Ne,Ib as u,Ic as C,Jb as he,Kb as G,Mb as ge,Mc as ve,Nc as Ee,Oc as ye,Pb as s,Rc as ce,Wb as l,Yb as xe,_c as H,ba as ue,dc as v,ed as De,f as se,fc as V,gc as q,hc as P,ic as e,ja as ze,jc as t,kc as c,lc as ae,mc as re,rb as a,rc as h,sb as I,tc as g,ub as fe,uc as le,vb as Ce,vc as j,yb as me,za as z,zc as Se}from"./chunk-GBKJFEQZ.js";import{a as ie,b as oe}from"./chunk-EQDQRRRY.js";var Ue=["*"];function Je(i,p){i&1&&j(0)}var Ke=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],et=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];function tt(i,p){if(i&1&&(ae(0),n(1),re()),i&2){let o=g(2);a(),C(o.nzAuthor)}}function nt(i,p){if(i&1&&(e(0,"span",4),s(1,tt,2,1,"ng-container",8),t()),i&2){let o=g();a(),l("nzStringTemplateOutlet",o.nzAuthor)}}function it(i,p){if(i&1&&(ae(0),n(1),re()),i&2){let o=g(2);a(),C(o.nzDatetime)}}function ot(i,p){if(i&1&&(e(0,"span",5),s(1,it,2,1,"ng-container",8),t()),i&2){let o=g();a(),l("nzStringTemplateOutlet",o.nzDatetime)}}function mt(i,p){}function at(i,p){if(i&1&&(e(0,"li")(1,"span"),s(2,mt,0,0,"ng-template",9),t()()),i&2){let o=p.$implicit;a(2),l("nzCommentActionHost",o.content)}}function rt(i,p){if(i&1&&(e(0,"ul",6),q(1,at,3,1,"li",null,V),t()),i&2){let o=g();a(),P(o.actions)}}var _=(()=>{class i{static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275dir=G({type:i,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]})}}return i})(),b=(()=>{class i{static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275dir=G({type:i,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]})}}return i})(),lt=(()=>{class i extends Te{constructor(o,m){super(o,m)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}static{this.\u0275fac=function(m){return new(m||i)(I(Ce),I(me))}}static{this.\u0275dir=G({type:i,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[ge]})}}return i})(),w=(()=>{class i{get content(){return this.contentPortal}constructor(o){this.viewContainerRef=o,this.contentPortal=null}ngOnInit(){this.contentPortal=new Ae(this.implicitContent,this.viewContainerRef)}static{this.\u0275fac=function(m){return new(m||i)(I(me))}}static{this.\u0275cmp=u({type:i,selectors:[["nz-comment-action"]],viewQuery:function(m,r){if(m&1&&F(fe,7),m&2){let d;T(d=B())&&(r.implicitContent=d.first)}},exportAs:["nzCommentAction"],ngContentSelectors:Ue,decls:1,vars:0,template:function(m,r){m&1&&(le(),s(0,Je,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}}return i})(),S=(()=>{class i{constructor(o,m){this.cdr=o,this.directionality=m,this.dir="ltr",this.destroy$=new se}ngOnInit(){this.directionality.change?.pipe(ue(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(m){return new(m||i)(I(De),I(be))}}static{this.\u0275cmp=u({type:i,selectors:[["nz-comment"]],contentQueries:function(m,r,d){if(m&1&&Se(d,w,4),m&2){let x;T(x=B())&&(r.actions=x)}},hostVars:4,hostBindings:function(m,r){m&2&&xe("ant-comment",!0)("ant-comment-rtl",r.dir==="rtl")},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:et,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],[1,"ant-comment-content-author-name"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[1,"ant-comment-nested"],[4,"nzStringTemplateOutlet"],[3,"nzCommentActionHost"]],template:function(m,r){m&1&&(le(Ke),e(0,"div",0)(1,"div",1),j(2),t(),e(3,"div",2)(4,"div",3),s(5,nt,2,1,"span",4)(6,ot,2,1,"span",5),t(),j(7,1),s(8,rt,3,0,"ul",6),t()(),e(9,"div",7),j(10,2),t()),m&2&&(a(5),v(r.nzAuthor?5:-1),a(),v(r.nzDatetime?6:-1),a(2),v(r.actions!=null&&r.actions.length?8:-1))},dependencies:[ke,Be,lt],encapsulation:2,changeDetection:0})}}return i})();var A=(()=>{class i{static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275mod=he({type:i})}static{this.\u0275inj=ze({imports:[S]})}}return i})();var K=(()=>{class i{constructor(){this.likes=0,this.dislikes=0,this.time=E(new Date,new Date)}like(){this.likes=1,this.dislikes=0}dislike(){this.likes=0,this.dislikes=1}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment-basic"]],decls:15,vars:5,consts:[["nzAuthor","Han Solo",3,"nzDatetime"],["nz-comment-avatar","","nzIcon","user","nzSrc","//zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"],["nz-tooltip","","nzTooltipTitle","Like","nz-icon","","nzType","like",3,"click","nzTheme"],[1,"count","like"],["nz-tooltip","","nzTooltipTitle","Dislike","nz-icon","","nzType","dislike",3,"click","nzTheme"],[1,"count","dislike"]],template:function(m,r){m&1&&(e(0,"nz-comment",0),c(1,"nz-avatar",1),e(2,"nz-comment-content")(3,"p"),n(4," We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently. "),t()(),e(5,"nz-comment-action")(6,"span",2),h("click",function(){return r.like()}),t(),e(7,"span",3),n(8),t()(),e(9,"nz-comment-action")(10,"span",4),h("click",function(){return r.dislike()}),t(),e(11,"span",5),n(12),t()(),e(13,"nz-comment-action"),n(14,"Reply to"),t()()),m&2&&(l("nzDatetime",r.time),a(6),l("nzTheme",r.likes>0?"twotone":"outline"),a(2),C(r.likes),a(2),l("nzTheme",r.dislikes>0?"twotone":"outline"),a(2),C(r.dislikes))},dependencies:[D,y,A,S,_,b,w,_e,M,we,O],styles:[".count[_ngcontent-%COMP%]{padding-left:8px;cursor:auto}.ant-comment-rtl[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{padding-right:8px;padding-left:0}"]})}}return i})();function dt(i,p){if(i&1&&(e(0,"nz-comment",5),c(1,"nz-avatar",2),e(2,"nz-comment-content")(3,"p"),n(4),t()()()),i&2){let o=p.$implicit;l("nzAuthor",o.author)("nzDatetime",o.displayTime),a(),l("nzSrc",o.avatar),a(3),C(o.content)}}function pt(i,p){if(i&1&&(e(0,"nz-list",1),s(1,dt,5,4,"ng-template",null,0,H),t()),i&2){let o=k(2),m=g();l("nzDataSource",m.data)("nzRenderItem",o)}}var ee=(()=>{class i{constructor(){this.data=[],this.submitting=!1,this.user={author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"},this.inputValue=""}handleSubmit(){this.submitting=!0;let o=this.inputValue;this.inputValue="",setTimeout(()=>{this.submitting=!1,this.data=[...this.data,oe(ie({},this.user),{content:o,datetime:new Date,displayTime:E(new Date,new Date)})].map(m=>oe(ie({},m),{displayTime:E(new Date,m.datetime)}))},800)}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment-editor"]],decls:9,vars:5,consts:[["item",""],["nzItemLayout","horizontal",3,"nzDataSource","nzRenderItem"],["nz-comment-avatar","","nzIcon","user",3,"nzSrc"],["nz-input","","rows","4",3,"ngModelChange","ngModel"],["nz-button","","nzType","primary",3,"click","nzLoading","disabled"],[3,"nzAuthor","nzDatetime"]],template:function(m,r){m&1&&(s(0,pt,3,2,"nz-list",1),e(1,"nz-comment"),c(2,"nz-avatar",2),e(3,"nz-comment-content")(4,"nz-form-item")(5,"textarea",3),ye("ngModelChange",function(x){return Ee(r.inputValue,x)||(r.inputValue=x),x}),t()(),e(6,"nz-form-item")(7,"button",4),h("click",function(){return r.handleSubmit()}),n(8," Add Comment "),t()()()()),m&2&&(v(r.data.length?0:-1),a(2),l("nzSrc",r.user.avatar),a(3),ve("ngModel",r.inputValue),a(2),l("nzLoading",r.submitting)("disabled",!r.inputValue))},dependencies:[je,Oe,Re,Le,D,y,Me,He,Ie,Fe,A,S,_,b,Pe,R,qe,Ve,Ge,U,$],encapsulation:2})}}return i})();function st(i,p){if(i&1&&(e(0,"nz-comment",2),c(1,"nz-avatar",3),e(2,"nz-comment-content")(3,"p"),n(4),t()(),e(5,"nz-comment-action"),n(6,"Reply to"),t()()),i&2){let o=p.$implicit;l("nzAuthor",o.author)("nzDatetime",o.datetime),a(),l("nzSrc",o.avatar),a(3),C(o.content)}}var te=(()=>{class i{constructor(){this.data=[{author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.",datetime:E(new Date,de(new Date,1))},{author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.",datetime:E(new Date,de(new Date,2))}]}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment-list"]],decls:3,vars:3,consts:[["item",""],[3,"nzDataSource","nzRenderItem","nzItemLayout"],[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","","nzIcon","user",3,"nzSrc"]],template:function(m,r){if(m&1&&(e(0,"nz-list",1),s(1,st,7,4,"ng-template",null,0,H),t()),m&2){let d=k(2);l("nzDataSource",r.data)("nzRenderItem",d)("nzItemLayout","horizontal")}},dependencies:[D,y,A,S,_,b,w,U,$],encapsulation:2})}}return i})();var We=i=>({comment:i});function ut(i,p){}function zt(i,p){if(i&1&&s(0,ut,0,0,"ng-template",1),i&2){let o=p.$implicit;g(3);let m=k(1);l("ngTemplateOutlet",m)("ngTemplateOutletContext",ce(2,We,o))}}function ft(i,p){if(i&1&&q(0,zt,1,4,null,1,V),i&2){let o=g().comment;P(o.children)}}function Ct(i,p){if(i&1&&(e(0,"nz-comment",2),c(1,"nz-avatar",3),e(2,"nz-comment-content")(3,"p"),n(4),t()(),e(5,"nz-comment-action"),n(6,"Reply to"),t(),s(7,ft,2,0),t()),i&2){let o=p.comment;l("nzAuthor",o.author),a(),l("nzSrc",o.avatar),a(3),C(o.content),a(3),v(o.children&&o.children.length?7:-1)}}function ht(i,p){}var ne=(()=>{class i{constructor(){this.data={author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.",children:[{author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.",children:[{author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently."},{author:"Han Solo",avatar:"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",content:"We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently."}]}]}}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment-nested"]],decls:3,vars:4,consts:[["commentTemplateRef",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzAuthor"],["nz-comment-avatar","","nzIcon","user",3,"nzSrc"]],template:function(m,r){if(m&1&&s(0,Ct,8,4,"ng-template",null,0,H)(2,ht,0,0,"ng-template",1),m&2){let d=k(1);a(2),l("ngTemplateOutlet",d)("ngTemplateOutletContext",ce(2,We,r.data))}},dependencies:[Ne,D,y,A,S,_,b,w],encapsulation:2})}}return i})();var Ye=(()=>{class i{constructor(){this.expanded=!1}goLink(o){window&&(window.location.hash=o)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(o=>o.expandCode(this.expanded))}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment"]],viewQuery:function(m,r){if(m&1&&F(N,5),m&2){let d;T(d=B())&&(r.codeBoxes=d)}},decls:145,vars:20,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-comment-demo-basic","nzTitle","\u57FA\u672C\u8BC4\u8BBA"],["nzHref","#components-comment-demo-list","nzTitle","\u914D\u5408\u5217\u8868\u7EC4\u4EF6"],["nzHref","#components-comment-demo-nested","nzTitle","\u5D4C\u5957\u8BC4\u8BBA"],["nzHref","#components-comment-demo-editor","nzTitle","\u56DE\u590D\u6846"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","\u4F55\u65F6\u4F7F\u7528"],["onclick","window.location.hash = '\u4F55\u65F6\u4F7F\u7528'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5C55\u5F00\u5168\u90E8\u4EE3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","\u57FA\u672C\u8BC4\u8BBA","nzSelector","nz-demo-comment-basic","nzGenerateCommand","ng g ng-zorro-antd:comment-basic <name>","nzComponentName","NzDemoCommentBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u914D\u5408\u5217\u8868\u7EC4\u4EF6","nzSelector","nz-demo-comment-list","nzGenerateCommand","ng g ng-zorro-antd:comment-list <name>","nzComponentName","NzDemoCommentListComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5D4C\u5957\u8BC4\u8BBA","nzSelector","nz-demo-comment-nested","nzGenerateCommand","ng g ng-zorro-antd:comment-nested <name>","nzComponentName","NzDemoCommentNestedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u56DE\u590D\u6846","nzSelector","nz-demo-comment-editor","nzGenerateCommand","ng g ng-zorro-antd:comment-editor <name>","nzComponentName","NzDemoCommentEditorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-comment"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-comment'",1,"anchor"],["id","[nz-comment-avatar]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-comment-avatar]'",1,"anchor"],["id","nz-comment-content"],["onclick","window.location.hash = 'nz-comment-content'",1,"anchor"],["id","nz-comment-action"],["onclick","window.location.hash = 'nz-comment-action'",1,"anchor"]],template:function(m,r){m&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(x){return r.goLink(x)}),c(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6),t()(),e(8,"section",7)(9,"h1"),n(10,"Comment"),e(11,"span",8),n(12,"\u8BC4\u8BBA"),t(),c(13,"span",9),e(14,"a",10),c(15,"nz-icon",11),t()(),e(16,"section",7),f(),e(17,"p"),n(18,"\u5BF9\u7F51\u7AD9\u5185\u5BB9\u7684\u53CD\u9988\u3001\u8BC4\u4EF7\u548C\u8BA8\u8BBA\u3002"),t(),e(19,"h2",12)(20,"span"),n(21,"\u4F55\u65F6\u4F7F\u7528"),t(),e(22,"a",13),n(23,"#"),t()(),e(24,"p"),n(25,"\u8BC4\u8BBA\u7EC4\u4EF6\u53EF\u7528\u4E8E\u5BF9\u4E8B\u7269\u7684\u8BA8\u8BBA\uFF0C\u4F8B\u5982\u9875\u9762\u3001\u535A\u5BA2\u6587\u7AE0\u3001\u95EE\u9898\u7B49\u7B49\u3002"),t(),e(26,"pre",14)(27,"code")(28,"span",15),n(29,"import"),t(),n(30," "),e(31,"span",16),n(32,"{"),t(),n(33," NzCommentModule "),e(34,"span",16),n(35,"}"),t(),n(36," "),e(37,"span",15),n(38,"from"),t(),n(39," "),e(40,"span",17),n(41,"'ng-zorro-antd/comment'"),t(),e(42,"span",16),n(43,";"),t()()(),z(),t(),e(44,"h2")(45,"span"),n(46,"\u4EE3\u7801\u6F14\u793A"),t(),e(47,"span",18),h("click",function(){return r.expandAllCode()}),t()()(),e(48,"div",19)(49,"div",20)(50,"nz-code-box",21),c(51,"nz-demo-comment-basic",22),e(52,"div",23),f(),e(53,"p"),n(54,"\u4E00\u4E2A\u57FA\u672C\u7684\u8BC4\u8BBA\u7EC4\u4EF6\uFF0C\u5E26\u6709\u4F5C\u8005\u3001\u5934\u50CF\u3001\u65F6\u95F4\u548C\u64CD\u4F5C\u3002"),t(),z(),t()(),e(55,"nz-code-box",24),c(56,"nz-demo-comment-list",22),e(57,"div",23),f(),e(58,"p"),n(59,"\u914D\u5408 "),e(60,"code"),n(61,"nz-list"),t(),n(62," \u7EC4\u4EF6\u5C55\u73B0\u8BC4\u8BBA\u5217\u8868\u3002"),t(),z(),t()(),e(63,"nz-code-box",25),c(64,"nz-demo-comment-nested",22),e(65,"div",23),f(),e(66,"p"),n(67,"\u8BC4\u8BBA\u53EF\u4EE5\u5D4C\u5957\u3002"),t(),z(),t()(),e(68,"nz-code-box",26),c(69,"nz-demo-comment-editor",22),e(70,"div",23),f(),e(71,"p"),n(72,"\u8BC4\u8BBA\u7F16\u8F91\u5668\u7EC4\u4EF6\u63D0\u4F9B\u4E86\u76F8\u540C\u6837\u5F0F\u7684\u5C01\u88C5\u4EE5\u652F\u6301\u81EA\u5B9A\u4E49\u8BC4\u8BBA\u7F16\u8F91\u5668\u3002"),t(),z(),t()()()(),e(73,"section",27),f(),e(74,"h2",28)(75,"span"),n(76,"API"),t(),e(77,"a",29),n(78,"#"),t()(),e(79,"h3",30)(80,"span"),n(81,"nz-comment"),t(),e(82,"label",31),n(83,"component"),t(),e(84,"a",32),n(85,"#"),t()(),e(86,"table")(87,"thead")(88,"tr")(89,"th"),n(90,"Property"),t(),e(91,"th"),n(92,"Description"),t(),e(93,"th"),n(94,"Type"),t(),e(95,"th"),n(96,"Default"),t()()(),e(97,"tbody")(98,"tr")(99,"td"),n(100,"[nzAuthor]"),t(),e(101,"td"),n(102,"\u663E\u793A\u8BC4\u8BBA\u7684\u4F5C\u8005"),t(),e(103,"td")(104,"code"),n(105,"string | TemplateRef<void>"),t()(),e(106,"td"),n(107,"-"),t()(),e(108,"tr")(109,"td"),n(110,"[nzDatetime]"),t(),e(111,"td"),n(112,"\u5C55\u793A\u65F6\u95F4\u63CF\u8FF0"),t(),e(113,"td")(114,"code"),n(115,"string | TemplateRef<void>"),t()(),e(116,"td"),n(117,"-"),t()()()(),e(118,"h3",33)(119,"span"),n(120,"[nz-comment-avatar]"),t(),e(121,"label",34),n(122,"directive"),t(),e(123,"a",35),n(124,"#"),t()(),e(125,"p"),n(126,"\u8981\u663E\u793A\u4E3A\u8BC4\u8BBA\u5934\u50CF\u7684\u5143\u7D20\u3002"),t(),e(127,"h3",36)(128,"span"),n(129,"nz-comment-content"),t(),e(130,"label",31),n(131,"component"),t(),e(132,"a",37),n(133,"#"),t()(),e(134,"p"),n(135,"\u8BC4\u8BBA\u7684\u4E3B\u8981\u5185\u5BB9\u3002"),t(),e(136,"h3",38)(137,"span"),n(138,"nz-comment-action"),t(),e(139,"label",31),n(140,"component"),t(),e(141,"a",39),n(142,"#"),t()(),e(143,"p"),n(144,"\u5728\u8BC4\u8BBA\u5185\u5BB9\u4E0B\u9762\u5448\u73B0\u7684\u64CD\u4F5C\u9879\u3002"),t(),z(),t()()),m&2&&(a(),l("nzOffsetTop",16),a(),l("nzAffix",!1),a(46),l("nzGutter",8),a(),l("nzSpan",24),a(),l("nzId","components-comment-demo-basic")("nzLink","components-comment-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/basic.md"),a(5),l("nzId","components-comment-demo-list")("nzLink","components-comment-demo-list")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/list.md"),a(8),l("nzId","components-comment-demo-nested")("nzLink","components-comment-demo-nested")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/nested.md"),a(5),l("nzId","components-comment-demo-editor")("nzLink","components-comment-demo-editor")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/editor.md"))},dependencies:[Y,N,X,W,Q,Z,R,O,M,K,ee,te,ne],encapsulation:2})}}return i})();var $e=(()=>{class i{constructor(){this.expanded=!1}goLink(o){window&&(window.location.hash=o)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(o=>o.expandCode(this.expanded))}static{this.\u0275fac=function(m){return new(m||i)}}static{this.\u0275cmp=u({type:i,selectors:[["nz-demo-comment"]],viewQuery:function(m,r){if(m&1&&F(N,5),m&2){let d;T(d=B())&&(r.codeBoxes=d)}},decls:144,vars:20,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-comment-demo-basic","nzTitle","Basic comment"],["nzHref","#components-comment-demo-list","nzTitle","Usage with list"],["nzHref","#components-comment-demo-nested","nzTitle","Nested comments"],["nzHref","#components-comment-demo-editor","nzTitle","Reply Editor"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","Basic comment","nzSelector","nz-demo-comment-basic","nzGenerateCommand","ng g ng-zorro-antd:comment-basic <name>","nzComponentName","NzDemoCommentBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Usage with list","nzSelector","nz-demo-comment-list","nzGenerateCommand","ng g ng-zorro-antd:comment-list <name>","nzComponentName","NzDemoCommentListComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Nested comments","nzSelector","nz-demo-comment-nested","nzGenerateCommand","ng g ng-zorro-antd:comment-nested <name>","nzComponentName","NzDemoCommentNestedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Reply Editor","nzSelector","nz-demo-comment-editor","nzGenerateCommand","ng g ng-zorro-antd:comment-editor <name>","nzComponentName","NzDemoCommentEditorComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-comment"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-comment'",1,"anchor"],["id","[nz-comment-avatar]"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-comment-avatar]'",1,"anchor"],["id","nz-comment-content"],["onclick","window.location.hash = 'nz-comment-content'",1,"anchor"],["id","nz-comment-action"],["onclick","window.location.hash = 'nz-comment-action'",1,"anchor"]],template:function(m,r){m&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),h("nzClick",function(x){return r.goLink(x)}),c(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6),t()(),e(8,"section",7)(9,"h1"),n(10,"Comment"),c(11,"span",8)(12,"span",9),e(13,"a",10),c(14,"nz-icon",11),t()(),e(15,"section",7),f(),e(16,"p"),n(17,"A comment displays user feedback and discussion to website content."),t(),e(18,"h2",12)(19,"span"),n(20,"When To Use"),t(),e(21,"a",13),n(22,"#"),t()(),e(23,"p"),n(24,"Comments can be used to enable discussions on an entity such as a page, blog post, issue or other."),t(),e(25,"pre",14)(26,"code")(27,"span",15),n(28,"import"),t(),n(29," "),e(30,"span",16),n(31,"{"),t(),n(32," NzCommentModule "),e(33,"span",16),n(34,"}"),t(),n(35," "),e(36,"span",15),n(37,"from"),t(),n(38," "),e(39,"span",17),n(40,"'ng-zorro-antd/comment'"),t(),e(41,"span",16),n(42,";"),t()()(),z(),t(),e(43,"h2")(44,"span"),n(45,"Examples"),t(),e(46,"span",18),h("click",function(){return r.expandAllCode()}),t()()(),e(47,"div",19)(48,"div",20)(49,"nz-code-box",21),c(50,"nz-demo-comment-basic",22),e(51,"div",23),f(),e(52,"p"),n(53,"A basic comment with author, avatar, time and actions."),t(),z(),t()(),e(54,"nz-code-box",24),c(55,"nz-demo-comment-list",22),e(56,"div",23),f(),e(57,"p"),n(58,"Displaying a series of comments using the "),e(59,"code"),n(60,"nz-list"),t(),n(61," Component."),t(),z(),t()(),e(62,"nz-code-box",25),c(63,"nz-demo-comment-nested",22),e(64,"div",23),f(),e(65,"p"),n(66,"Comments can be nested."),t(),z(),t()(),e(67,"nz-code-box",26),c(68,"nz-demo-comment-editor",22),e(69,"div",23),f(),e(70,"p"),n(71,"Comment can be used as editor, user can customize the editor component."),t(),z(),t()()()(),e(72,"section",27),f(),e(73,"h2",28)(74,"span"),n(75,"API"),t(),e(76,"a",29),n(77,"#"),t()(),e(78,"h3",30)(79,"span"),n(80,"nz-comment"),t(),e(81,"label",31),n(82,"component"),t(),e(83,"a",32),n(84,"#"),t()(),e(85,"table")(86,"thead")(87,"tr")(88,"th"),n(89,"Property"),t(),e(90,"th"),n(91,"Description"),t(),e(92,"th"),n(93,"Type"),t(),e(94,"th"),n(95,"Default"),t()()(),e(96,"tbody")(97,"tr")(98,"td"),n(99,"[nzAuthor]"),t(),e(100,"td"),n(101,"The element to display as the comment author"),t(),e(102,"td")(103,"code"),n(104,"string | TemplateRef<void>"),t()(),e(105,"td"),n(106,"-"),t()(),e(107,"tr")(108,"td"),n(109,"[nzDatetime]"),t(),e(110,"td"),n(111,"A datetime element containing the time to be displayed"),t(),e(112,"td")(113,"code"),n(114,"string | TemplateRef<void>"),t()(),e(115,"td"),n(116,"-"),t()()()(),e(117,"h3",33)(118,"span"),n(119,"[nz-comment-avatar]"),t(),e(120,"label",34),n(121,"directive"),t(),e(122,"a",35),n(123,"#"),t()(),e(124,"p"),n(125,"The element to display as the comment avatar."),t(),e(126,"h3",36)(127,"span"),n(128,"nz-comment-content"),t(),e(129,"label",31),n(130,"component"),t(),e(131,"a",37),n(132,"#"),t()(),e(133,"p"),n(134,"The main content of the comment."),t(),e(135,"h3",38)(136,"span"),n(137,"nz-comment-action"),t(),e(138,"label",31),n(139,"component"),t(),e(140,"a",39),n(141,"#"),t()(),e(142,"p"),n(143,"The element items rendered below the comment content."),t(),z(),t()()),m&2&&(a(),l("nzOffsetTop",16),a(),l("nzAffix",!1),a(45),l("nzGutter",8),a(),l("nzSpan",24),a(),l("nzId","components-comment-demo-basic")("nzLink","components-comment-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/basic.md"),a(5),l("nzId","components-comment-demo-list")("nzLink","components-comment-demo-list")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/list.md"),a(8),l("nzId","components-comment-demo-nested")("nzLink","components-comment-demo-nested")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/nested.md"),a(5),l("nzId","components-comment-demo-editor")("nzLink","components-comment-demo-editor")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/comment/demo/editor.md"))},dependencies:[Y,N,X,W,Q,Z,R,O,M,K,ee,te,ne],encapsulation:2})}}return i})();var vt=[{path:"en",component:$e},{path:"zh",component:Ye}],kn=vt;export{kn as default};