MessageBox: add enter event for prompt (#3867)

pull/3878/head
cinwell.li 2017-03-30 11:11:28 +08:00 committed by baiyaaaaa
parent 195faa8060
commit 47f72baa42
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<div class="el-message-box__status" :class="[ typeClass ]"></div>
<div class="el-message-box__message" :style="{ 'margin-left': typeClass ? '50px' : '0' }"><p>{{ message }}</p></div>
<div class="el-message-box__input" v-show="showInput">
<el-input v-model="inputValue" :placeholder="inputPlaceholder" ref="input"></el-input>
<el-input v-model="inputValue" @keyup.enter.native="handleAction('confirm')" :placeholder="inputPlaceholder" ref="input"></el-input>
<div class="el-message-box__errormsg" :style="{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }">{{ editorErrorMessage }}</div>
</div>
</div>