-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathchunk-KO6KGMLJ.js
2 lines (2 loc) · 30.3 KB
/
chunk-KO6KGMLJ.js
1
2
import{a as y,g as O,h as R,j as G}from"./chunk-PNYJKZIQ.js";import"./chunk-UJZP7RYT.js";import{Ca as b,Ea as de,Gb as me,Hc as w,Ic as L,Lc as A,ec as M}from"./chunk-YWVGY2C2.js";import{Aa as p,Ac as k,Ba as q,Bc as I,Ca as U,Cc as B,Da as Y,Hc as n,Ib as c,Ic as g,Jb as ne,La as ee,Pb as H,Rc as oe,Wb as r,Yb as T,Zb as ie,dc as E,ed as ae,fc as D,gc as _,hc as F,ic as e,ja as K,jc as t,kc as l,oc as J,rb as m,rc as f,sb as te,tc as C,ya as W,za as s}from"./chunk-GBKJFEQZ.js";import"./chunk-EQDQRRRY.js";var pe=i=>({height:i});function ce(i,h){if(i&1&&n(0),i&2){let o=C(2);g(o.nzLogo)}}function he(i,h){if(i&1){let o=J();e(0,"div",0)(1,"div",22),n(2),t(),e(3,"div",23),f("click",function(){q(o);let d=C();return U(d.copyHandle())}),l(4,"nz-icon",24),t(),e(5,"div",25),H(6,ce,1,1,"ng-template",26),t()()}if(i&2){let o=C();m(2),g(o.nzTitle),m(4),r("nzStringTemplateOutlet",o.nzLogo)}}function ze(i,h){if(i&1){let o=J();e(0,"div",23),f("click",function(){q(o);let d=C();return U(d.copyHandle())}),l(1,"nz-icon",24),t()}}function ue(i,h){if(i&1&&(e(0,"div",27),n(1),t()),i&2){let o=h.$implicit;m(),g(o)}}function Ce(i,h){if(i&1&&(_(0,ue,2,1,"div",27,D),e(2,"div",27),n(3,"\xB7\xB7\xB7\xB7"),t(),e(4,"div",27),n(5),t()),i&2){let o=C(2);F(o.hashDataList.slice(0,6)),m(5),g(o.hashDataList[o.hashDataList.length-1])}}function fe(i,h){if(i&1&&(e(0,"div",27),n(1),t()),i&2){let o=h.$implicit;m(),g(o)}}function ge(i,h){if(i&1&&_(0,fe,2,1,"div",27,D),i&2){let o=C(2);F(o.hashDataList)}}function xe(i,h){if(i&1&&H(0,Ce,6,1)(1,ge,2,0),i&2){let o=C();E(o.hashDataList.length>8?0:1)}}function Se(i,h){if(i&1&&(e(0,"div",27),n(1),t(),e(2,"div",27),n(3,"\xB7\xB7\xB7\xB7"),t(),e(4,"div",27),n(5),t()),i&2){let o=C();m(),g(o.hashDataList[0]),m(4),g(o.hashDataList[o.hashDataList.length-1])}}function Ee(i,h){if(i&1&&(e(0,"div",27),n(1),t()),i&2){let o=h.$implicit;m(),g(o)}}function ye(i,h){if(i&1&&(_(0,Ee,2,1,"div",27,D),e(2,"div",27),n(3,"\xB7\xB7\xB7\xB7"),t(),e(4,"div",27),n(5),t()),i&2){let o=C(2);F(o.hashDataList.slice(0,14)),m(5),g(o.hashDataList[o.hashDataList.length-1])}}function ve(i,h){if(i&1&&(e(0,"div",27),n(1),t()),i&2){let o=h.$implicit;m(),g(o)}}function He(i,h){if(i&1&&_(0,ve,2,1,"div",27,D),i&2){let o=C(2);F(o.hashDataList)}}function be(i,h){if(i&1&&H(0,ye,6,1)(1,He,2,0),i&2){let o=C();E(o.hashDataList.length>16?0:1)}}var z=(()=>{class i{copyHandle(){this.nzOnCopy.emit(this.nzValue)}constructor(o){this.cdr=o,this.nzValue="",this.nzTitle="HashCode",this.nzLogo="",this.nzMode="double",this.nzType="default",this.nzOnCopy=new ee,this.hashDataList=[]}ngOnChanges(o){let{nzValue:a}=o;a&&this.setData(this.nzValue)}setData(o){this.nzMode!=="single"?this.hashDataList=o.match(/.{1,4}/g):this.hashDataList=o.match(/.{1,8}/g),this.cdr.markForCheck()}static{this.\u0275fac=function(a){return new(a||i)(te(ae))}}static{this.\u0275cmp=c({type:i,selectors:[["nz-hash-code"]],hostAttrs:[1,"ant-hashCode"],hostVars:12,hostBindings:function(a,d){a&2&&T("ant-hashCode-default",d.nzType==="default")("ant-hashCode-primary",d.nzType==="primary")("ant-hashCode-double",d.nzMode==="double")("ant-hashCode-single",d.nzMode==="single")("ant-hashCode-strip",d.nzMode==="strip")("ant-hashCode-rect",d.nzMode==="rect")},inputs:{nzValue:"nzValue",nzTitle:"nzTitle",nzLogo:"nzLogo",nzMode:"nzMode",nzType:"nzType"},outputs:{nzOnCopy:"nzOnCopy"},exportAs:["nzHashCode"],features:[W],decls:44,vars:21,consts:[[1,"ant-hashCode-header"],[1,"ant-hashCode-header-copy"],[1,"ant-hashCode-contant"],[1,"ant-hashCode-code-value"],[1,"ant-hashCode-texaure"],["width","545px","height","111px","viewBox","0 0 545 111","version","1.1","xmlns","http://www.w3.org/2000/svg"],["x1","15.7162414%","y1","50.0992184%","x2","49.5266564%","y2","50.0234565%","id","linearGradient-2bm6v9icte-1"],["stop-color","#A76A00","offset","0%"],["stop-color","#F50006","offset","61.2716995%"],["stop-color","#DA8500","offset","100%"],["stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["transform","translate(-163.000000, -315.000000)","stroke","url(#linearGradient-2bm6v9icte-1)","stroke-width","0.72"],["transform","translate(163.535712, 316.000000)",2,"mix-blend-mode","exclusion"],["d","M0,0 C22.68,0 22.68,5.76 45.36,5.76 C68.04,5.76 68.04,0 90.72,0 C113.4,0 113.4,5.76 136.08,5.76 C158.76,5.76 158.76,0 181.44,0 C204.12,0 204.12,5.76 226.8,5.76 C249.48,5.76 249.48,0 272.16,0"],["d","M0,28.08 C22.68,28.08 22.68,33.84 45.36,33.84 C68.04,33.84 68.04,28.08 90.72,28.08 C113.4,28.08 113.4,33.84 136.08,33.84 C158.76,33.84 158.76,28.08 181.44,28.08 C204.12,28.08 204.12,33.84 226.8,33.84 C249.48,33.84 249.48,28.08 272.16,28.08"],["d","M0,37.44 C22.68,37.44 22.68,43.2 45.36,43.2 C68.04,43.2 68.04,37.44 90.72,37.44 C113.4,37.44 113.4,43.2 136.08,43.2 C158.76,43.2 158.76,37.44 181.44,37.44 C204.12,37.44 204.12,43.2 226.8,43.2 C249.48,43.2 249.48,37.44 272.16,37.44"],["d","M0,9.36 C22.68,9.36 22.68,15.12 45.36,15.12 C68.04,15.12 68.04,9.36 90.72,9.36 C113.4,9.36 113.4,15.12 136.08,15.12 C158.76,15.12 158.76,9.36 181.44,9.36 C204.12,9.36 204.12,15.12 226.8,15.12 C249.48,15.12 249.48,9.36 272.16,9.36"],["d","M0,18.72 C22.68,18.72 22.68,24.48 45.36,24.48 C68.04,24.48 68.04,18.72 90.72,18.72 C113.4,18.72 113.4,24.48 136.08,24.48 C158.76,24.48 158.76,18.72 181.44,18.72 C204.12,18.72 204.12,24.48 226.8,24.48 C249.48,24.48 249.48,18.72 272.16,18.72"],["d","M0,46.8 C22.68,46.8 22.68,52.56 45.36,52.56 C68.04,52.56 68.04,46.8 90.72,46.8 C113.4,46.8 113.4,52.56 136.08,52.56 C158.76,52.56 158.76,46.8 181.44,46.8 C204.12,46.8 204.12,52.56 226.8,52.56 C249.48,52.56 249.48,46.8 272.16,46.8"],["transform","translate(163.535712, 373.000000)",2,"mix-blend-mode","exclusion"],["transform","translate(435.535712, 316.000000)",2,"mix-blend-mode","exclusion"],["transform","translate(435.535712, 373.000000)",2,"mix-blend-mode","exclusion"],[1,"ant-hashCode-header-title"],[1,"ant-hashCode-header-copy",3,"click"],["nzType","copy","nzTheme","outline"],[1,"ant-hashCode-header-logo"],[3,"nzStringTemplateOutlet"],[1,"ant-hashCode-code-value-block"]],template:function(a,d){a&1&&(H(0,he,7,2,"div",0)(1,ze,2,0,"div",1),e(2,"div",2)(3,"div",3),H(4,xe,2,1)(5,Se,6,2)(6,be,2,1),t(),e(7,"div",4),Y(),e(8,"svg",5)(9,"defs")(10,"linearGradient",6),l(11,"stop",7)(12,"stop",8)(13,"stop",9),t()(),e(14,"g",10)(15,"g",11)(16,"g",12),l(17,"path",13)(18,"path",14)(19,"path",15)(20,"path",16)(21,"path",17)(22,"path",18),t(),e(23,"g",19),l(24,"path",13)(25,"path",14)(26,"path",15)(27,"path",16)(28,"path",17)(29,"path",18),t(),e(30,"g",20),l(31,"path",13)(32,"path",14)(33,"path",15)(34,"path",16)(35,"path",17)(36,"path",18),t(),e(37,"g",21),l(38,"path",13)(39,"path",14)(40,"path",15)(41,"path",16)(42,"path",17)(43,"path",18),t()()()()()()),a&2&&(E(d.nzMode!=="single"&&d.nzMode!=="rect"?0:-1),m(),E(d.nzMode==="single"||d.nzMode==="rect"?1:-1),m(),T("ant-hashCode-value-default",d.nzType==="default")("ant-hashCode-value-primary",d.nzType==="primary"),m(),ie(oe(19,pe,d.nzMode==="rect"?"70px":d.nzMode==="single"?"18px":"35px")),m(),E(d.nzMode==="double"?4:-1),m(),E(d.nzMode==="single"?5:-1),m(),E(d.nzMode==="rect"||d.nzMode==="strip"?6:-1),m(),T("ant-hashCode-texaure-double",d.nzMode==="double")("ant-hashCode-texaure-single",d.nzMode==="single")("ant-hashCode-texaure-strip",d.nzMode==="strip")("ant-hashCode-texaure-rect",d.nzMode==="rect"))},dependencies:[de,b,me],encapsulation:2,changeDetection:0})}}return i})(),u=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=ne({type:i})}static{this.\u0275inj=K({imports:[z]})}}return i})();var V=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-basic"]],decls:1,vars:1,consts:[[3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0),a&2&&r("nzValue",d.value)},dependencies:[u,z],encapsulation:2})}}return i})();var Z=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}getCopy(o){console.log(`hashCode:${o}`)}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-copy"]],decls:1,vars:1,consts:[[3,"nzOnCopy","nzValue"]],template:function(a,d){a&1&&(e(0,"nz-hash-code",0),f("nzOnCopy",function(N){return d.getCopy(N)}),t()),a&2&&r("nzValue",d.value)},dependencies:[u,z],encapsulation:2})}}return i})();var P=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-logo"]],decls:1,vars:1,consts:[["nzLogo","Antd",3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0),a&2&&r("nzValue",d.value)},dependencies:[u,z],encapsulation:2})}}return i})();var Q=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-primary"]],decls:1,vars:1,consts:[["nzType","primary",3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0),a&2&&r("nzValue",d.value)},dependencies:[u,z],encapsulation:2})}}return i})();var X=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-rect"]],decls:3,vars:2,consts:[["nzMode","rect",3,"nzValue"],["nzMode","rect","nzType","primary",3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0)(1,"br")(2,"nz-hash-code",1),a&2&&(r("nzValue",d.value),m(2),r("nzValue",d.value))},dependencies:[u,z],encapsulation:2})}}return i})();var $=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-single"]],decls:3,vars:2,consts:[["nzMode","single",3,"nzValue"],["nzMode","single","nzType","primary",3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0)(1,"br")(2,"nz-hash-code",1),a&2&&(r("nzValue",d.value),m(2),r("nzValue",d.value))},dependencies:[u,z],encapsulation:2})}}return i})();var j=(()=>{class i{constructor(){this.value="dfb5fe9ef7b99b2b1db102114a6d7d445d992f40a5d575f801c148990199a068"}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code-strip"]],decls:3,vars:2,consts:[["nzMode","strip",3,"nzValue"],["nzMode","strip","nzType","primary",3,"nzValue"]],template:function(a,d){a&1&&l(0,"nz-hash-code",0)(1,"br")(2,"nz-hash-code",1),a&2&&(r("nzValue",d.value),m(2),r("nzValue",d.value))},dependencies:[u,z],encapsulation:2})}}return i})();var le=(()=>{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(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code"]],viewQuery:function(a,d){if(a&1&&k(y,5),a&2){let x;I(x=B())&&(d.codeBoxes=x)}},decls:214,vars:35,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-hash-code-demo-basic","nzTitle","\u57FA\u672C"],["nzHref","#components-hash-code-demo-copy","nzTitle","\u590D\u5236"],["nzHref","#components-hash-code-demo-primary","nzTitle","\u66F4\u6362\u6837\u5F0F"],["nzHref","#components-hash-code-demo-single","nzTitle","\u5355\u884C\u6A21\u5F0F"],["nzHref","#components-hash-code-demo-strip","nzTitle","\u957F\u6761\u6A21\u5F0F"],["nzHref","#components-hash-code-demo-rect","nzTitle","\u77E9\u5F62\u6A21\u5F0F"],["nzHref","#components-hash-code-demo-logo","nzTitle","\u6DFB\u52A0 Logo"],["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/hash-code/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"],["id","\u5F15\u5165\u6A21\u5757"],["onclick","window.location.hash = '\u5F15\u5165\u6A21\u5757'",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,"nzXl","nzSpan"],["nzTitle","\u57FA\u672C","nzSelector","nz-demo-hash-code-basic","nzGenerateCommand","ng g ng-zorro-antd:hash-code-basic <name>","nzComponentName","NzDemoHashCodeBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","\u66F4\u6362\u6837\u5F0F","nzSelector","nz-demo-hash-code-primary","nzGenerateCommand","ng g ng-zorro-antd:hash-code-primary <name>","nzComponentName","NzDemoHashCodePrimaryComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u957F\u6761\u6A21\u5F0F","nzSelector","nz-demo-hash-code-strip","nzGenerateCommand","ng g ng-zorro-antd:hash-code-strip <name>","nzComponentName","NzDemoHashCodeStripComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u6DFB\u52A0 Logo","nzSelector","nz-demo-hash-code-logo","nzGenerateCommand","ng g ng-zorro-antd:hash-code-logo <name>","nzComponentName","NzDemoHashCodeLogoComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u590D\u5236","nzSelector","nz-demo-hash-code-copy","nzGenerateCommand","ng g ng-zorro-antd:hash-code-copy <name>","nzComponentName","NzDemoHashCodeCopyComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u5355\u884C\u6A21\u5F0F","nzSelector","nz-demo-hash-code-single","nzGenerateCommand","ng g ng-zorro-antd:hash-code-single <name>","nzComponentName","NzDemoHashCodeSingleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","\u77E9\u5F62\u6A21\u5F0F","nzSelector","nz-demo-hash-code-rect","nzGenerateCommand","ng g ng-zorro-antd:hash-code-rect <name>","nzComponentName","NzDemoHashCodeRectComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-hashcode"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-hashcode'",1,"anchor"]],template:function(a,d){a&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),f("nzClick",function(N){return d.goLink(N)}),l(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9),t()(),e(11,"section",10)(12,"h1"),n(13,"HashCode"),e(14,"span",11),n(15,"\u54C8\u5E0C\u7801"),t(),l(16,"span",12),e(17,"a",13),l(18,"nz-icon",14),t()(),e(19,"section",10),p(),e(20,"h2",15)(21,"span"),n(22,"\u4F55\u65F6\u4F7F\u7528"),t(),e(23,"a",16),n(24,"#"),t()(),e(25,"p"),n(26,"\u54C8\u5E0C\u7801\u7EC4\u4EF6\u662F\u4EE5 64 \u4F4D\u8BBE\u8BA1\u7684\u6837\u5F0F\uFF0C\u5982\u679C\u7ED9\u51FA\u7684\u6570\u636E\u4E0D\u8DB3\u6216\u8005\u9AD8\u4E8E 64 \u4F4D\uFF0C\u53EF\u80FD\u4F1A\u5E26\u6765\u4E00\u4E9B\u5C55\u793A\u4E0A\u7684\u5DEE\u5F02\u3002"),t(),e(27,"h3",17)(28,"span"),n(29,"\u5F15\u5165\u6A21\u5757"),t(),e(30,"a",18),n(31,"#"),t()(),e(32,"p"),n(33,"module:"),t(),e(34,"pre",19)(35,"code")(36,"span",20),n(37,"import"),t(),n(38," "),e(39,"span",21),n(40,"{"),t(),n(41," NzHashCodeModule "),e(42,"span",21),n(43,"}"),t(),n(44," "),e(45,"span",20),n(46,"from"),t(),n(47," "),e(48,"span",22),n(49,"'ng-zorro-antd/hash-code'"),t(),e(50,"span",21),n(51,";"),t()()(),e(52,"p"),n(53,"standalone:"),t(),e(54,"pre",19)(55,"code")(56,"span",20),n(57,"import"),t(),n(58," "),e(59,"span",21),n(60,"{"),t(),n(61," NzHashCodeComponent "),e(62,"span",21),n(63,"}"),t(),n(64," "),e(65,"span",20),n(66,"from"),t(),n(67," "),e(68,"span",22),n(69,"'ng-zorro-antd/hash-code'"),t(),e(70,"span",21),n(71,";"),t()()(),s(),t(),e(72,"h2")(73,"span"),n(74,"\u4EE3\u7801\u6F14\u793A"),t(),e(75,"span",23),f("click",function(){return d.expandAllCode()}),t()()(),e(76,"div",24)(77,"div",25)(78,"nz-code-box",26),l(79,"nz-demo-hash-code-basic",27),e(80,"div",28),p(),e(81,"p"),n(82,"\u6700\u7B80\u5355\u7684\u7528\u6CD5\u3002"),t(),s(),t()(),e(83,"nz-code-box",29),l(84,"nz-demo-hash-code-primary",27),e(85,"div",28),p(),e(86,"p"),n(87,"\u66F4\u6362\u6837\u5F0F\u3002"),t(),s(),t()(),e(88,"nz-code-box",30),l(89,"nz-demo-hash-code-strip",27),e(90,"div",28),p(),e(91,"p"),n(92,"\u4EC5\u5C55\u793A\u4E00\u884C\u6570\u636E\u3002"),t(),s(),t()(),e(93,"nz-code-box",31),l(94,"nz-demo-hash-code-logo",27),e(95,"div",28),p(),e(96,"p"),n(97,"\u53EF\u8BBE\u7F6E\u53F3\u4E0A\u89D2\u7684\u6807\u5FD7"),t(),s(),t()()(),e(98,"div",25)(99,"nz-code-box",32),l(100,"nz-demo-hash-code-copy",27),e(101,"div",28),p(),e(102,"p"),n(103,"\u70B9\u51FB\u590D\u5236\u7684 icon"),t(),s(),t()(),e(104,"nz-code-box",33),l(105,"nz-demo-hash-code-single",27),e(106,"div",28),p(),e(107,"p"),n(108,"\u5728\u5355\u884C\u6A21\u5F0F\u4E0B\uFF0C\u4E0D\u4F1A\u5C55\u793A\u539F\u6709\u7684 "),e(109,"code"),n(110,"icon"),t(),n(111," \u548C\u9876\u90E8\u63CF\u8FF0\u5185\u5BB9\u3002"),t(),s(),t()(),e(112,"nz-code-box",34),l(113,"nz-demo-hash-code-rect",27),e(114,"div",28),p(),e(115,"p"),n(116,"\u540C\u5355\u884C\u6A21\u5F0F\u4E00\u6837\uFF0C\u4E0D\u4F1A\u5C55\u793A\u539F\u6709\u7684 "),e(117,"code"),n(118,"icon"),t(),n(119," \u548C\u9876\u90E8\u63CF\u8FF0\u5185\u5BB9"),t(),s(),t()()()(),e(120,"section",35),p(),e(121,"h2",36)(122,"span"),n(123,"API"),t(),e(124,"a",37),n(125,"#"),t()(),e(126,"h3",38)(127,"span"),n(128,"nz-hashCode"),t(),e(129,"label",39),n(130,"component"),t(),e(131,"a",40),n(132,"#"),t()(),e(133,"table")(134,"thead")(135,"tr")(136,"th"),n(137,"\u53C2\u6570"),t(),e(138,"th"),n(139,"\u8BF4\u660E"),t(),e(140,"th"),n(141,"\u7C7B\u578B"),t(),e(142,"th"),n(143,"\u9ED8\u8BA4\u503C"),t()()(),e(144,"tbody")(145,"tr")(146,"td")(147,"code"),n(148,"[nzValue]"),t()(),e(149,"td"),n(150,"\u54C8\u5E0C\u7801\u7684\u503C"),t(),e(151,"td")(152,"code"),n(153,"string"),t()(),e(154,"td"),n(155,"-"),t()(),e(156,"tr")(157,"td")(158,"code"),n(159,"[nzTitle]"),t()(),e(160,"td"),n(161,"\u5DE6\u4E0A\u89D2\u7684\u63CF\u8FF0\u5185\u5BB9"),t(),e(162,"td")(163,"code"),n(164,"string"),t()(),e(165,"td")(166,"code"),n(167,"HashCode"),t()()(),e(168,"tr")(169,"td")(170,"code"),n(171,"[nzLogo]"),t()(),e(172,"td"),n(173,"\u53F3\u4E0A\u89D2\u7684\u5C55\u793A"),t(),e(174,"td")(175,"code"),n(176,"TemplateRef<void> | string"),t()(),e(177,"td"),n(178,"-"),t()(),e(179,"tr")(180,"td")(181,"code"),n(182,"[nzMode]"),t()(),e(183,"td"),n(184,"\u5C55\u793A\u6A21\u5F0F"),t(),e(185,"td")(186,"code"),n(187,"single | double | strip | rect"),t()(),e(188,"td")(189,"code"),n(190,"double"),t()()(),e(191,"tr")(192,"td")(193,"code"),n(194,"[nzType]"),t()(),e(195,"td"),n(196,"\u6837\u5F0F"),t(),e(197,"td")(198,"code"),n(199,"defalut | primary"),t()(),e(200,"td")(201,"code"),n(202,"primary"),t()()(),e(203,"tr")(204,"td")(205,"code"),n(206,"(nzOnCopy)"),t()(),e(207,"td"),n(208,'\u70B9\u51FB"\u590D\u5236"\u7684\u56DE\u8C03'),t(),e(209,"td")(210,"code"),n(211,"EventEmitter<string>"),t()(),e(212,"td"),n(213,"-"),t()()()(),s(),t()()),a&2&&(m(),r("nzOffsetTop",16),m(),r("nzAffix",!1),m(74),r("nzGutter",16),m(),r("nzXl",12)("nzSpan",24),m(),r("nzId","components-hash-code-demo-basic")("nzLink","components-hash-code-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/basic.md"),m(5),r("nzId","components-hash-code-demo-primary")("nzLink","components-hash-code-demo-primary")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/primary.md"),m(5),r("nzId","components-hash-code-demo-strip")("nzLink","components-hash-code-demo-strip")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/strip.md"),m(5),r("nzId","components-hash-code-demo-logo")("nzLink","components-hash-code-demo-logo")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/logo.md"),m(5),r("nzXl",12)("nzSpan",24),m(),r("nzId","components-hash-code-demo-copy")("nzLink","components-hash-code-demo-copy")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/copy.md"),m(5),r("nzId","components-hash-code-demo-single")("nzLink","components-hash-code-demo-single")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/single.md"),m(8),r("nzId","components-hash-code-demo-rect")("nzLink","components-hash-code-demo-rect")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/rect.md"))},dependencies:[G,y,O,R,A,L,w,M,b,V,Z,P,Q,X,$,j],encapsulation:2})}}return i})();var se=(()=>{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(a){return new(a||i)}}static{this.\u0275cmp=c({type:i,selectors:[["nz-demo-hash-code"]],viewQuery:function(a,d){if(a&1&&k(y,5),a&2){let x;I(x=B())&&(d.codeBoxes=x)}},decls:213,vars:35,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzClick","nzAffix"],["nzHref","#components-hash-code-demo-basic","nzTitle","Basic"],["nzHref","#components-hash-code-demo-copy","nzTitle","Copy"],["nzHref","#components-hash-code-demo-primary","nzTitle","Style"],["nzHref","#components-hash-code-demo-single","nzTitle","Single"],["nzHref","#components-hash-code-demo-strip","nzTitle","Strip"],["nzHref","#components-hash-code-demo-rect","nzTitle","Rect"],["nzHref","#components-hash-code-demo-logo","nzTitle","Logo"],["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/hash-code/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nzType","edit"],["id","import-module"],["onclick","window.location.hash = 'import-module'",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,"nzXl","nzSpan"],["nzTitle","Basic","nzSelector","nz-demo-hash-code-basic","nzGenerateCommand","ng g ng-zorro-antd:hash-code-basic <name>","nzComponentName","NzDemoHashCodeBasicComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],["nzTitle","Style","nzSelector","nz-demo-hash-code-primary","nzGenerateCommand","ng g ng-zorro-antd:hash-code-primary <name>","nzComponentName","NzDemoHashCodePrimaryComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Strip","nzSelector","nz-demo-hash-code-strip","nzGenerateCommand","ng g ng-zorro-antd:hash-code-strip <name>","nzComponentName","NzDemoHashCodeStripComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Logo","nzSelector","nz-demo-hash-code-logo","nzGenerateCommand","ng g ng-zorro-antd:hash-code-logo <name>","nzComponentName","NzDemoHashCodeLogoComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Copy","nzSelector","nz-demo-hash-code-copy","nzGenerateCommand","ng g ng-zorro-antd:hash-code-copy <name>","nzComponentName","NzDemoHashCodeCopyComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Single","nzSelector","nz-demo-hash-code-single","nzGenerateCommand","ng g ng-zorro-antd:hash-code-single <name>","nzComponentName","NzDemoHashCodeSingleComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["nzTitle","Rect","nzSelector","nz-demo-hash-code-rect","nzGenerateCommand","ng g ng-zorro-antd:hash-code-rect <name>","nzComponentName","NzDemoHashCodeRectComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],["id","nz-hashcode"],[1,"api-type-label","component"],["onclick","window.location.hash = 'nz-hashcode'",1,"anchor"]],template:function(a,d){a&1&&(e(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),f("nzClick",function(N){return d.goLink(N)}),l(3,"nz-link",2)(4,"nz-link",3)(5,"nz-link",4)(6,"nz-link",5)(7,"nz-link",6)(8,"nz-link",7)(9,"nz-link",8)(10,"nz-link",9),t()(),e(11,"section",10)(12,"h1"),n(13,"HashCode"),l(14,"span",11)(15,"span",12),e(16,"a",13),l(17,"nz-icon",14),t()(),e(18,"section",10),p(),e(19,"h2",15)(20,"span"),n(21,"Import Module"),t(),e(22,"a",16),n(23,"#"),t()(),e(24,"p"),n(25,`The hash code component is styled for 64-bit design, and if the data given is less than or more than 64-bit, it may
bring some differences in presentation.`),t(),e(26,"h3",15)(27,"span"),n(28,"Import Module"),t(),e(29,"a",16),n(30,"#"),t()(),e(31,"p"),n(32,"module:"),t(),e(33,"pre",17)(34,"code")(35,"span",18),n(36,"import"),t(),n(37," "),e(38,"span",19),n(39,"{"),t(),n(40," NzHashCodeModule "),e(41,"span",19),n(42,"}"),t(),n(43," "),e(44,"span",18),n(45,"from"),t(),n(46," "),e(47,"span",20),n(48,"'ng-zorro-antd/hash-code'"),t(),e(49,"span",19),n(50,";"),t()()(),e(51,"p"),n(52,"standalone:"),t(),e(53,"pre",17)(54,"code")(55,"span",18),n(56,"import"),t(),n(57," "),e(58,"span",19),n(59,"{"),t(),n(60," NzHashCodeComponent "),e(61,"span",19),n(62,"}"),t(),n(63," "),e(64,"span",18),n(65,"from"),t(),n(66," "),e(67,"span",20),n(68,"'ng-zorro-antd/hash-code'"),t(),e(69,"span",19),n(70,";"),t()()(),s(),t(),e(71,"h2")(72,"span"),n(73,"Examples"),t(),e(74,"span",21),f("click",function(){return d.expandAllCode()}),t()()(),e(75,"div",22)(76,"div",23)(77,"nz-code-box",24),l(78,"nz-demo-hash-code-basic",25),e(79,"div",26),p(),e(80,"p"),n(81,"The simplest usage."),t(),s(),t()(),e(82,"nz-code-box",27),l(83,"nz-demo-hash-code-primary",25),e(84,"div",26),p(),e(85,"p"),n(86,"Replacement of styles."),t(),s(),t()(),e(87,"nz-code-box",28),l(88,"nz-demo-hash-code-strip",25),e(89,"div",26),p(),e(90,"p"),n(91,"Show only one row of data."),t(),s(),t()(),e(92,"nz-code-box",29),l(93,"nz-demo-hash-code-logo",25),e(94,"div",26),p(),e(95,"p"),n(96,"Possibility to set the logo in the upper right corner."),t(),s(),t()()(),e(97,"div",23)(98,"nz-code-box",30),l(99,"nz-demo-hash-code-copy",25),e(100,"div",26),p(),e(101,"p"),n(102,"Click on the copied icon."),t(),s(),t()(),e(103,"nz-code-box",31),l(104,"nz-demo-hash-code-single",25),e(105,"div",26),p(),e(106,"p"),n(107,"In single-line mode, the original "),e(108,"code"),n(109,"icon"),t(),n(110," and top description are not displayed."),t(),s(),t()(),e(111,"nz-code-box",32),l(112,"nz-demo-hash-code-rect",25),e(113,"div",26),p(),e(114,"p"),n(115,"As in one-line mode, the original "),e(116,"code"),n(117,"icon"),t(),n(118," and top description will not be displayed."),t(),s(),t()()()(),e(119,"section",33),p(),e(120,"h2",34)(121,"span"),n(122,"API"),t(),e(123,"a",35),n(124,"#"),t()(),e(125,"h3",36)(126,"span"),n(127,"nz-hashCode"),t(),e(128,"label",37),n(129,"component"),t(),e(130,"a",38),n(131,"#"),t()(),e(132,"table")(133,"thead")(134,"tr")(135,"th"),n(136,"Property"),t(),e(137,"th"),n(138,"Description"),t(),e(139,"th"),n(140,"Type"),t(),e(141,"th"),n(142,"Default"),t()()(),e(143,"tbody")(144,"tr")(145,"td")(146,"code"),n(147,"[nzValue]"),t()(),e(148,"td"),n(149,"The value of the hash code"),t(),e(150,"td")(151,"code"),n(152,"string"),t()(),e(153,"td"),n(154,"-"),t()(),e(155,"tr")(156,"td")(157,"code"),n(158,"[nzTitle]"),t()(),e(159,"td"),n(160,"Description of the content in the upper left corner"),t(),e(161,"td")(162,"code"),n(163,"string"),t()(),e(164,"td")(165,"code"),n(166,"HashCode"),t()()(),e(167,"tr")(168,"td")(169,"code"),n(170,"[nzLogo]"),t()(),e(171,"td"),n(172,"Display in the upper right corner"),t(),e(173,"td")(174,"code"),n(175,"TemplateRef<void> | string"),t()(),e(176,"td"),n(177,"-"),t()(),e(178,"tr")(179,"td")(180,"code"),n(181,"[nzMode]"),t()(),e(182,"td"),n(183,"Demonstration Mode"),t(),e(184,"td")(185,"code"),n(186,"single | double | strip | rect"),t()(),e(187,"td")(188,"code"),n(189,"double"),t()()(),e(190,"tr")(191,"td")(192,"code"),n(193,"[nzType]"),t()(),e(194,"td"),n(195,"style"),t(),e(196,"td")(197,"code"),n(198,"defalut | primary"),t()(),e(199,"td")(200,"code"),n(201,"primary"),t()()(),e(202,"tr")(203,"td")(204,"code"),n(205,"(nzOnCopy)"),t()(),e(206,"td"),n(207,"Clicking the Copy callback"),t(),e(208,"td")(209,"code"),n(210,"EventEmitter<string>"),t()(),e(211,"td"),n(212,"-"),t()()()(),s(),t()()),a&2&&(m(),r("nzOffsetTop",16),m(),r("nzAffix",!1),m(73),r("nzGutter",16),m(),r("nzXl",12)("nzSpan",24),m(),r("nzId","components-hash-code-demo-basic")("nzLink","components-hash-code-demo-basic")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/basic.md"),m(5),r("nzId","components-hash-code-demo-primary")("nzLink","components-hash-code-demo-primary")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/primary.md"),m(5),r("nzId","components-hash-code-demo-strip")("nzLink","components-hash-code-demo-strip")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/strip.md"),m(5),r("nzId","components-hash-code-demo-logo")("nzLink","components-hash-code-demo-logo")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/logo.md"),m(5),r("nzXl",12)("nzSpan",24),m(),r("nzId","components-hash-code-demo-copy")("nzLink","components-hash-code-demo-copy")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/copy.md"),m(5),r("nzId","components-hash-code-demo-single")("nzLink","components-hash-code-demo-single")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/single.md"),m(8),r("nzId","components-hash-code-demo-rect")("nzLink","components-hash-code-demo-rect")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/hash-code/demo/rect.md"))},dependencies:[G,y,O,R,A,L,w,M,b,V,Z,P,Q,X,$,j],encapsulation:2})}}return i})();var ke=[{path:"en",component:se},{path:"zh",component:le}],yt=ke;export{yt as default};