Activate the calculator enter action using a native JavaScript method (#441)
parent
1ac405ef53
commit
79cc4d0cbb
|
@ -3,7 +3,6 @@
|
||||||
<el-input-number
|
<el-input-number
|
||||||
:ref="metadata.columnName"
|
:ref="metadata.columnName"
|
||||||
v-model="value"
|
v-model="value"
|
||||||
v-shortkey="['enter']"
|
|
||||||
type="number"
|
type="number"
|
||||||
:min="minValue"
|
:min="minValue"
|
||||||
:max="maxValue"
|
:max="maxValue"
|
||||||
|
@ -13,9 +12,9 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
:class="'display-type-amount'"
|
:class="'display-type-amount'"
|
||||||
@change="preHandleChange"
|
@change="preHandleChange"
|
||||||
@shortkey.native="changeValue"
|
|
||||||
@blur="changeValue"
|
@blur="changeValue"
|
||||||
@keydown.native="calculateValue"
|
@keydown.native="calculateValue"
|
||||||
|
@keyup.enter.native="changeValue"
|
||||||
/>
|
/>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -7,10 +7,9 @@
|
||||||
<el-input
|
<el-input
|
||||||
ref="calculatorInput"
|
ref="calculatorInput"
|
||||||
v-model="calcValue"
|
v-model="calcValue"
|
||||||
v-shortkey="['enter']"
|
|
||||||
class="calc-input"
|
class="calc-input"
|
||||||
@keydown.native="calculateValue"
|
@keydown.native="calculateValue"
|
||||||
@shortkey.native="changeValue"
|
@keyup.enter.native="changeValue"
|
||||||
>
|
>
|
||||||
<template slot="append">{{ valueToDisplay }}</template>
|
<template slot="append">{{ valueToDisplay }}</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
Loading…
Reference in New Issue