<template>
  <q-input outlined v-model="text" :label="label" dense />
</template>

<script setup>
import { ref, useAttrs, onMounted } from 'vue';
import {QInput} from 'quasar'

const attrs = useAttrs();
const text = ref('Number');
const label = ref();

onMounted(() => {
  if (attrs.description != '' && attrs.description != undefined) {
    label.value = attrs.description;
  } else {
    label.value = 'Sin título';
  }
});
</script>
