3
3
exports [` renders ./components/image/demo/basic.vue correctly 1` ] = `
4
4
<div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
5
5
<!---->
6
- <!---->
6
+ <div class = " ant-image-mask" >
7
+ <div class = " [object Object]-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 >
8
+ </div >
7
9
</div >
10
+ <!---->
8
11
`;
9
12
10
13
exports[`renders ./components/image/demo/controlled-preview.vue correctly 1`] = `
@@ -13,7 +16,9 @@ exports[`renders ./components/image/demo/controlled-preview.vue correctly 1`] =
13
16
</button >
14
17
<div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" style = " display: none;" src = " https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" >
15
18
<!---->
16
- <!---->
19
+ <div class = " ant-image-mask" >
20
+ <div class = " [object Object]-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 >
21
+ </div >
17
22
</div >
18
23
<!---->
19
24
</div >
@@ -22,8 +27,11 @@ exports[`renders ./components/image/demo/controlled-preview.vue correctly 1`] =
22
27
exports[`renders ./components/image/demo/fallback.vue correctly 1`] = `
23
28
<div class = " ant-image" style = " width: 200px; height: 200px;" ><img class = " ant-image-img" src = " https://www.antdv.com/#error" >
24
29
<!---->
25
- <!---->
30
+ <div class = " ant-image-mask" >
31
+ <div class = " [object Object]-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 >
32
+ </div >
26
33
</div >
34
+ <!---->
27
35
`;
28
36
29
37
exports[`renders ./components/image/demo/placeholder.vue correctly 1`] = `
@@ -37,7 +45,9 @@ exports[`renders ./components/image/demo/placeholder.vue correctly 1`] = `
37
45
</div >
38
46
<!---->
39
47
</div >
40
- <!---->
48
+ <div class = " ant-image-mask" >
49
+ <div class = " [object Object]-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 >
50
+ </div >
41
51
</div >
42
52
<!---->
43
53
</div >
@@ -52,35 +62,61 @@ exports[`renders ./components/image/demo/placeholder.vue correctly 1`] = `
52
62
exports[`renders ./components/image/demo/preview-group.vue correctly 1`] = `
53
63
<div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/vue.png" >
54
64
<!---->
55
- <!---->
65
+ <div class = " ant-image-mask" >
66
+ <div class = " [object Object]-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 >
67
+ </div >
56
68
</div >
69
+ <!---->
57
70
<div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
58
71
<!---->
59
- <!---->
72
+ <div class = " ant-image-mask" >
73
+ <div class = " [object Object]-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 >
74
+ </div >
60
75
</div >
76
+ <!---->
77
+ <!---->
61
78
`;
62
79
63
80
exports[`renders ./components/image/demo/preview-group-visible.vue correctly 1`] = `
64
81
<div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp" >
65
82
<!---->
66
- <!---->
83
+ <div class = " ant-image-mask" >
84
+ <div class = " [object Object]-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 >
85
+ </div >
67
86
</div >
87
+ <!---->
68
88
<div style = " display: none;" >
69
89
<div class = " ant-image" ><img class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503185912284-5271ff81b9a8.webp" >
70
90
<!---->
71
- <!---->
91
+ <div class = " ant-image-mask" >
92
+ <div class = " [object Object]-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 >
93
+ </div >
72
94
</div >
73
95
<!---->
74
96
<div class = " ant-image" ><img class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/cV16ZqzMjW/photo-1473091540282-9b846e7965e3.webp" >
75
97
<!---->
76
- <!---->
98
+ <div class = " ant-image-mask" >
99
+ <div class = " [object Object]-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 >
100
+ </div >
77
101
</div >
78
102
<!---->
79
103
<div class = " ant-image" ><img class = " ant-image-img" src = " https://gw.alipayobjects.com/zos/antfincdn/x43I27A55%26/photo-1438109491414-7198515b166b.webp" >
80
104
<!---->
81
- <!---->
105
+ <div class = " ant-image-mask" >
106
+ <div class = " [object Object]-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 >
107
+ </div >
82
108
</div >
83
109
<!---->
84
110
<!---->
85
111
</div >
86
112
`;
113
+
114
+ exports[`renders ./components/image/demo/preview-src.vue correctly 1`] = `
115
+ <div class = " ant-image" style = " width: 200px;" ><img class = " ant-image-img" src = " https://aliyuncdn.antdv.com/logo.png" >
116
+ <!---->
117
+ <div class = " ant-image-mask" >
118
+ <div class = " [object Object]-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 >
119
+ </div >
120
+ </div >
121
+ <!---->
122
+ `;
0 commit comments