@@ -7,7 +7,14 @@ const props = defineProps({
7
7
navigateBeforeShowSeconds: { type: Number , required: false , default: 0 },
8
8
mouseOutEnabled: { type: Boolean , required: false , default: true },
9
9
showByDefault: { type: Boolean , required: false , default: false },
10
- showCloseBtn: { type: Boolean , required: false , default: true }
10
+ showCloseBtn: { type: Boolean , required: false , default: true },
11
+ color: { type: String , required: false , default: ' #555' },
12
+ bgroundColor: { type: String , required: false , default: ' #fefefe' },
13
+ bdropColor: {
14
+ type: String ,
15
+ required: false ,
16
+ default: ' rgba(0, 0, 0, 0.7)'
17
+ }
11
18
});
12
19
13
20
const show = ref (false );
@@ -153,13 +160,13 @@ const showModal = () => {
153
160
bottom : 0 ;
154
161
left : 0 ;
155
162
right : 0 ;
156
- background-color : rgba ( 0 , 0 , 0 , 0.7 );
163
+ background-color : v-bind(bdropColor );
157
164
}
158
165
.exit-intent-content {
159
166
position : relative ;
160
167
margin : auto ;
161
- color : #555 ;
162
- background-color : #fefefe ;
168
+ color : v-bind( color ) ;
169
+ background-color : v-bind(bgroundColor) ;
163
170
}
164
171
165
172
.btn-close {
@@ -171,12 +178,12 @@ const showModal = () => {
171
178
padding : 4px ;
172
179
cursor : pointer ;
173
180
font-weight : bold ;
174
- color : #555 ;
181
+ color : v-bind( color ) ;
175
182
background-color : transparent ;
176
183
}
177
184
178
185
.fallback-content {
179
- background-color : #fefefe ;
186
+ background-color : v-bind(bgroundColor) ;
180
187
overflow-x : auto ;
181
188
display : flex ;
182
189
flex-direction : column ;
@@ -188,11 +195,11 @@ const showModal = () => {
188
195
padding : 25px 10px ;
189
196
text-align : center ;
190
197
border-bottom : 1px solid #eee ;
191
- color : #555 ;
198
+ color : v-bind( color ) ;
192
199
}
193
200
194
201
.fallback-content-body {
195
- color : #555 ;
202
+ color : v-bind( color ) ;
196
203
padding : 20px 10px ;
197
204
font-size : 16px ;
198
205
line-height : 1.5 ;
@@ -211,8 +218,8 @@ const showModal = () => {
211
218
font-size : 14px ;
212
219
cursor : pointer ;
213
220
color : white ;
214
- background : #555 ;
215
- border : 1px solid #555 ;
221
+ background : v-bind( color ) ;
222
+ border : 1px solid v-bind( color ) ;
216
223
border-radius : 2px ;
217
224
}
218
225
0 commit comments