1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` renders ./components/image/demo/basic.vue correctly 1` ] = `
4
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
4
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
5
5
<!---->
6
6
<div class = " ant-image-mask" >
7
7
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
@@ -13,7 +13,7 @@ exports[`renders ./components/image/demo/controlled-preview.vue correctly 1`] =
13
13
<div ><button class = " ant-btn ant-btn-primary" type = " button" >
14
14
<!----><span >show image preview</span >
15
15
</button >
16
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" style = " display: none;" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
16
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" style = " display: none;" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
17
17
<!---->
18
18
<div class = " ant-image-mask" >
19
19
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
@@ -24,7 +24,7 @@ exports[`renders ./components/image/demo/controlled-preview.vue correctly 1`] =
24
24
`;
25
25
26
26
exports[`renders ./components/image/demo/fallback.vue correctly 1`] = `
27
- <div class = " ant-image" style = " width: 200px; height: 200px;" ><img class = " ant-image-img" src = " https://www.antdv.com/#error" >
27
+ <div class = " ant-image" style = " width: 200px; height: 200px;" ><img width = " 200 " height = " 200 " class = " ant-image-img" style = " height: 200px; " src = " https://www.antdv.com/#error" >
28
28
<!---->
29
29
<div class = " ant-image-mask" >
30
30
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
@@ -35,9 +35,9 @@ exports[`renders ./components/image/demo/fallback.vue correctly 1`] = `
35
35
exports[`renders ./components/image/demo/placeholder.vue correctly 1`] = `
36
36
<div class = " ant-space ant-space-horizontal ant-space-align-center" >
37
37
<div class = " ant-space-item" style = " margin-right: 12px;" >
38
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?undefined" >
38
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?undefined" >
39
39
<div aria-hidden = " true" class = " ant-image-placeholder" >
40
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?x-oss-process=image/blur,r_50,s_50/quality,q_1/resize,m_mfit,h_200,w_200" >
40
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?x-oss-process=image/blur,r_50,s_50/quality,q_1/resize,m_mfit,h_200,w_200" >
41
41
<!---->
42
42
<!---->
43
43
</div >
@@ -58,13 +58,13 @@ exports[`renders ./components/image/demo/placeholder.vue correctly 1`] = `
58
58
`;
59
59
60
60
exports[`renders ./components/image/demo/preview-group.vue correctly 1`] = `
61
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/vue.png" >
61
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://aliyuncdn.antdv.com/vue.png" >
62
62
<!---->
63
63
<div class = " ant-image-mask" >
64
64
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
65
65
</div >
66
66
</div >
67
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
67
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
68
68
<!---->
69
69
<div class = " ant-image-mask" >
70
70
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
@@ -73,7 +73,7 @@ exports[`renders ./components/image/demo/preview-group.vue correctly 1`] = `
73
73
`;
74
74
75
75
exports[`renders ./components/image/demo/preview-group-visible.vue correctly 1`] = `
76
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp" >
76
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp" >
77
77
<!---->
78
78
<div class = " ant-image-mask" >
79
79
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
@@ -106,7 +106,7 @@ exports[`renders ./components/image/demo/preview-group-visible.vue correctly 1`]
106
106
`;
107
107
108
108
exports[`renders ./components/image/demo/preview-src.vue correctly 1`] = `
109
- <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
109
+ <div class = " ant-image" style = " width: 200px;" ><img width = " 200 " class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
110
110
<!---->
111
111
<div class = " ant-image-mask" >
112
112
<div class = " ant-image-mask-info" ><span role = " img" aria-label = " eye" class = " anticon anticon-eye" ><svg focusable = " false" class = " " data-icon = " eye" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><path d = " M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" ></path ></svg ></span >Preview</div >
0 commit comments