mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
Activate the calculator enter action using a native JavaScript method (#441)
This commit is contained in:
parent
1ac405ef53
commit
79cc4d0cbb
@ -3,7 +3,6 @@
|
||||
<el-input-number
|
||||
:ref="metadata.columnName"
|
||||
v-model="value"
|
||||
v-shortkey="['enter']"
|
||||
type="number"
|
||||
:min="minValue"
|
||||
:max="maxValue"
|
||||
@ -13,9 +12,9 @@
|
||||
controls-position="right"
|
||||
:class="'display-type-amount'"
|
||||
@change="preHandleChange"
|
||||
@shortkey.native="changeValue"
|
||||
@blur="changeValue"
|
||||
@keydown.native="calculateValue"
|
||||
@keyup.enter.native="changeValue"
|
||||
/>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
@ -7,10 +7,9 @@
|
||||
<el-input
|
||||
ref="calculatorInput"
|
||||
v-model="calcValue"
|
||||
v-shortkey="['enter']"
|
||||
class="calc-input"
|
||||
@keydown.native="calculateValue"
|
||||
@shortkey.native="changeValue"
|
||||
@keyup.enter.native="changeValue"
|
||||
>
|
||||
<template slot="append">{{ valueToDisplay }}</template>
|
||||
</el-input>
|
||||
|
Loading…
x
Reference in New Issue
Block a user