9
9
< div class ="vue-lb-header ">
10
10
< span > </ span >
11
11
< button
12
- type ="button "
13
- title ="Close (Esc) "
14
- class ="vue-lb-button-close "
12
+ type ="button "
13
+ : title ="closeText "
14
+ class ="vue-lb-button-close "
15
15
>
16
- < span >
17
- < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 " style ="enable-background:new 0 0 512 512; ">
18
- < path d ="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z "> </ path >
19
- </ svg >
20
- </ span >
16
+ < slot name ="close ">
17
+ < span >
18
+ < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 " style ="enable-background:new 0 0 512 512; ">
19
+ < path d ="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z "> </ path >
20
+ </ svg >
21
+ </ span >
22
+ </ slot >
21
23
</ button > <!-- .vue-lb-button-close -->
22
24
23
25
</ div > <!-- .vue-lb-header -->
46
48
< div class ="vue-lb-footer ">
47
49
< div class ="vue-lb-footer-info "> </ div >
48
50
< div class ="vue-lb-footer-count ">
49
- {{ select + 1 }}/{{ images.length }}
51
+ < slot name ="footer "
52
+ :current ="select + 1 "
53
+ :total ="images.length "
54
+ >
55
+ {{ select + 1 }} / {{ images.length }}
56
+ </ slot >
50
57
</ div >
51
58
</ div >
52
59
58
65
v-if ="images.length > 1 "
59
66
type ="button "
60
67
class ="vue-lb-thumbnail-arrow vue-lb-thumbnail-left "
61
- title ="Previous "
68
+ : title ="previousThumbText "
62
69
@click.stop ="previousImage() "
63
70
>
64
- < span >
65
- < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
66
- < path d ="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z "> </ path >
67
- </ svg >
68
- </ span >
71
+ < slot name ="previousThumb ">
72
+ < span >
73
+ < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
74
+ < path d ="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z "> </ path >
75
+ </ svg >
76
+ </ span >
77
+ </ slot >
69
78
</ button >
70
79
71
80
< div
82
91
v-if ="images.length > 1 "
83
92
type ="button "
84
93
class ="vue-lb-thumbnail-arrow vue-lb-thumbnail-right "
85
- title ="Next "
94
+ : title ="nextThumbText "
86
95
@click.stop ="nextImage() "
87
96
>
88
- < span >
89
- < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
90
- < path d ="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z "> </ path >
91
- </ svg >
92
- </ span >
97
+ < slot name ="nextThumb ">
98
+ < span >
99
+ < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
100
+ < path d ="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z "> </ path >
101
+ </ svg >
102
+ </ span >
103
+ </ slot >
93
104
</ button >
94
105
</ div > <!-- .vue-lb-thumbnail -->
95
106
</ div >
96
107
< button
97
108
v-if ="images.length > 1 "
98
109
type ="button "
99
110
class ="vue-lb-arrow vue-lb-left "
100
- title ="Previous "
111
+ : title ="previousText "
101
112
@click.stop ="previousImage() "
102
113
>
103
- < span >
104
- < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
105
- < path d ="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z "> </ path >
106
- </ svg >
107
- </ span >
114
+ < slot name ="previous ">
115
+ < span >
116
+ < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 ">
117
+ < path d ="M213.7,256L213.7,256L213.7,256L380.9,81.9c4.2-4.3,4.1-11.4-0.2-15.8l-29.9-30.6c-4.3-4.4-11.3-4.5-15.5-0.2L131.1,247.9 c-2.2,2.2-3.2,5.2-3,8.1c-0.1,3,0.9,5.9,3,8.1l204.2,212.7c4.2,4.3,11.2,4.2,15.5-0.2l29.9-30.6c4.3-4.4,4.4-11.5,0.2-15.8 L213.7,256z "> </ path >
118
+ </ svg >
119
+ </ span >
120
+ </ slot >
108
121
</ button >
109
122
110
123
< button
111
124
v-if ="images.length > 1 "
112
125
type ="button "
113
126
class ="vue-lb-arrow vue-lb-right "
114
- title ="Next "
127
+ : title ="nextText "
115
128
@click.stop ="nextImage() "
116
129
>
117
- < span >
118
- < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 " xml:space ="preserve ">
119
- < path d ="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z "> </ path >
120
- </ svg >
121
- </ span >
130
+ < slot name ="next ">
131
+ < span >
132
+ < svg fill ="white " x ="0px " y ="0px " width ="100% " height ="100% " viewBox ="0 0 512 512 " xml:space ="preserve ">
133
+ < path d ="M298.3,256L298.3,256L298.3,256L131.1,81.9c-4.2-4.3-4.1-11.4,0.2-15.8l29.9-30.6c4.3-4.4,11.3-4.5,15.5-0.2l204.2,212.7 c2.2,2.2,3.2,5.2,3,8.1c0.1,3-0.9,5.9-3,8.1L176.7,476.8c-4.2,4.3-11.2,4.2-15.5-0.2L131.3,446c-4.3-4.4-4.4-11.5-0.2-15.8 L298.3,256z "> </ path >
134
+ </ svg >
135
+ </ span >
136
+ </ slot >
122
137
</ button >
123
138
</ div > <!-- .vue-lb-container -->
124
- </ div >
139
+ </ div >
0 commit comments