Fixed #551 - Add inputStyle and inputClass properties to InputNumber

pull/553/head
mertsincan 2020-10-13 16:38:44 +03:00
parent 5b50463188
commit b50f8de238
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<span :class="containerClass" :style="style"> <span :class="containerClass" :style="style">
<INInputText ref="input" class="p-inputnumber-input" :value="formattedValue" v-bind="$attrs" :aria-valumin="min" :aria-valuemax="max" <INInputText ref="input" :class="['p-inputnumber-input', inputClass]" :style="inputStyle" :value="formattedValue" v-bind="$attrs" :aria-valumin="min" :aria-valuemax="max"
@input="onUserInput" @keydown="onInputKeyDown" @keypress="onInputKeyPress" @paste="onPaste" @click="onInputClick" @focus="onInputFocus" @blur="onInputBlur"/> @input="onUserInput" @keydown="onInputKeyDown" @keypress="onInputKeyPress" @paste="onPaste" @click="onInputClick" @focus="onInputFocus" @blur="onInputBlur"/>
<span class="p-inputnumber-button-group" v-if="showButtons && buttonLayout === 'stacked'"> <span class="p-inputnumber-button-group" v-if="showButtons && buttonLayout === 'stacked'">
<INButton :class="upButtonClass" :icon="incrementButtonIcon" v-on="upButtonListeners" :disabled="$attrs.disabled" /> <INButton :class="upButtonClass" :icon="incrementButtonIcon" v-on="upButtonListeners" :disabled="$attrs.disabled" />
@ -102,8 +102,10 @@ export default {
type: Number, type: Number,
default: 1 default: 1
}, },
style: null,
class: null, class: null,
style: null inputStyle: null,
inputClass: null
}, },
numberFormat: null, numberFormat: null,
_numeral: null, _numeral: null,