Files
DiceCloud/app/imports/ui/components/global/TextField.vue
2021-03-25 12:54:44 +02:00

27 lines
530 B
Vue

<template lang="html">
<v-text-field
ref="input"
v-bind="$attrs"
:loading="loading"
:error-messages="errors"
:value="safeValue"
:disabled="isDisabled"
:filled="!regular"
@input="input"
@focus="focused = true"
@blur="focused = false"
@keyup="e => $emit('keyup', e)"
/>
</template>
<script lang="js">
import SmartInput from '/imports/ui/components/global/SmartInputMixin.js';
export default {
mixins: [SmartInput],
props: {
regular: Boolean,
},
};
</script>