11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
3- exports [` renders ./components/tag/demo/basic.md correctly 1` ] = `
4- <div >
5- <div class = " ant-tag" >Tag 1</div >
6- <div class = " ant-tag" ><a href = " https://github.com/vueComponent/ant-design" >Link</a ></div >
7- <div class = " ant-tag" >Tag 2<i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
8- <path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path >
9- </svg ></i ></div >
10- <div class = " ant-tag" >Prevent Default<i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
11- <path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path >
12- </svg ></i ></div >
13- </div >
14- ` ;
3+ exports[`renders ./components/tag/demo/basic.md correctly 1`] = `<div><span class="ant-tag">Tag 1</span> <span class="ant-tag"><a href="https://github.com/vueComponent/ant-design">Link</a></span> <span class="ant-tag">Tag 2<i aria-label="icon: close" tabindex="-1" class="anticon anticon-close"><svg viewBox="64 64 896 896" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg></i></span> <span class="ant-tag">Prevent Default<i aria-label="icon: close" tabindex="-1" class="anticon anticon-close"><svg viewBox="64 64 896 896" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg></i></span></div>`;
154
165exports [` renders ./components/tag/demo/checkable.md correctly 1` ] = `
176<div >
@@ -24,60 +13,31 @@ exports[`renders ./components/tag/demo/checkable.md correctly 1`] = `
2413exports [` renders ./components/tag/demo/colorful.md correctly 1` ] = `
2514<div >
2615 <h4 style = " margin-bottom: 16px;" >Presets:</h4 >
27- <div >
28- <div class = " ant-tag ant-tag-pink" >pink</div >
29- <div class = " ant-tag ant-tag-red" >red</div >
30- <div class = " ant-tag ant-tag-orange" >orange</div >
31- <div class = " ant-tag ant-tag-green" >green</div >
32- <div class = " ant-tag ant-tag-cyan" >cyan</div >
33- <div class = " ant-tag ant-tag-blue" >blue</div >
34- <div class = " ant-tag ant-tag-purple" >purple</div >
35- </div >
16+ <div ><span class = " ant-tag ant-tag-pink" >pink</span > <span class = " ant-tag ant-tag-red" >red</span > <span class = " ant-tag ant-tag-orange" >orange</span > <span class = " ant-tag ant-tag-green" >green</span > <span class = " ant-tag ant-tag-cyan" >cyan</span > <span class = " ant-tag ant-tag-blue" >blue</span > <span class = " ant-tag ant-tag-purple" >purple</span ></div >
3617 <h4 >Custom:</h4 >
37- <div >
38- <div class = " ant-tag ant-tag-has-color" style = " background-color: rgb(255, 85, 0);" >#f50</div >
39- <div class = " ant-tag ant-tag-has-color" style = " background-color: rgb(45, 183, 245);" >#2db7f5</div >
40- <div class = " ant-tag ant-tag-has-color" style = " background-color: rgb(135, 208, 104);" >#87d068</div >
41- <div class = " ant-tag ant-tag-has-color" style = " background-color: rgb(16, 142, 233);" >#108ee9</div >
42- </div >
18+ <div ><span class = " ant-tag ant-tag-has-color" style = " background-color: rgb(255, 85, 0);" >#f50</span > <span class = " ant-tag ant-tag-has-color" style = " background-color: rgb(45, 183, 245);" >#2db7f5</span > <span class = " ant-tag ant-tag-has-color" style = " background-color: rgb(135, 208, 104);" >#87d068</span > <span class = " ant-tag ant-tag-has-color" style = " background-color: rgb(16, 142, 233);" >#108ee9</span ></div >
4319</div >
4420` ;
4521
4622exports [` renders ./components/tag/demo/control.md correctly 1` ] = `
47- <div >
48- <div class = " ant-tag" >
49- Unremovable
50- </div >
51- <div class = " ant-tag" >
52- Tag 2
53- <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
54- <path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path >
55- </svg ></i ></div >
56- <div class = " ant-tag" >
57- Tag 3Tag 3Tag 3Tag 3...
58- <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
59- <path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path >
60- </svg ></i ></div >
61- <div class = " ant-tag" style = " border-style: dashed; background: rgb(255, 255, 255);" ><i aria-label = " icon: plus" class = " anticon anticon-plus" ><svg viewBox = " 64 64 896 896" data-icon = " plus" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
62- <path d = " M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" ></path >
63- <path d = " M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" ></path >
64- </svg ></i > New Tag
65- </div >
66- </div >
23+ <div ><span class = " ant-tag" >
24+ Unremovable
25+ </span ><span class = " ant-tag" >
26+ Tag 2
27+ <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></i ></span ><span class = " ant-tag" >
28+ Tag 3Tag 3Tag 3Tag 3...
29+ <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></i ></span > <span class = " ant-tag" style = " border-style: dashed; background: rgb(255, 255, 255);" ><i aria-label = " icon: plus" class = " anticon anticon-plus" ><svg viewBox = " 64 64 896 896" data-icon = " plus" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" ></path ><path d = " M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" ></path ></svg ></i > New Tag
30+ </span ></div >
6731` ;
6832
6933exports [` renders ./components/tag/demo/controlled.md correctly 1` ] = `
70- <div >
71- <div class = " ant-tag" >
34+ <div ><span class = " ant-tag" >
7235 Movies
73- <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " >
74- <path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path >
75- </svg ></i ></div > <br > <button type = " button" class = " ant-btn ant-btn-sm" ><span >Toggle</span ></button >
76- </div >
36+ <i aria-label = " icon: close" tabindex = " -1" class = " anticon anticon-close" ><svg viewBox = " 64 64 896 896" data-icon = " close" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" ></path ></svg ></i ></span > <br > <button type = " button" class = " ant-btn ant-btn-sm" ><span >Toggle</span ></button ></div >
7737`;
7838
7939exports[`renders ./components/tag/demo/hot-tags.md correctly 1`] = `
80- <div ><strong >Categories:</strong >
40+ <div ><span >Categories:</span >
8141 <div class = " ant-tag ant-tag-checkable" >
8242 Movies
8343 </div >
0 commit comments