Skip to content

Commit 8ea6562

Browse files
add appearance: none
1 parent 4153dba commit 8ea6562

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/msgbox.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="msgbox-status d-icon {{ type ? 'icon-' + type : '' }}"></div>
1010
<div class="msgbox-message"><p>{{ message }}</p></div>
1111
<div class="msgbox-input" v-show="showInput">
12-
<input type="text" v-model="inputValue" :placeholder="inputPlaceholder" />
12+
<input type="text" v-model="inputValue" :placeholder="inputPlaceholder" v-el:input />
1313
<div class="msgbox-errormsg" :style="{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }">{{editorErrorMessage}}</div>
1414
</div>
1515
</div>
@@ -67,6 +67,10 @@
6767
border-radius: 5px;
6868
padding: 4px 5px;
6969
width: 100%;
70+
-webkit-appearance: none;
71+
-moz-appearance: none;
72+
appearance: none;
73+
outline: none;
7074
}
7175
7276
.msgbox-errormsg {
@@ -258,6 +262,14 @@
258262
}
259263
},
260264
265+
ready() {
266+
if (this.$type === 'prompt') {
267+
setTimeout(() => {
268+
this.$els.input.focus();
269+
}, 500);
270+
}
271+
},
272+
261273
data() {
262274
return {
263275
title: '',

0 commit comments

Comments
 (0)