[Vuejs]-How to display values to one decimal place

0👍

On my test with codepen it depends on what is selected as the step so that you can, for example, to 0.1

<div id="q-app">
  <div class="q-ma-lg">
    <q-slider
      v-model="modelEco"
      :min="0"
      :max="10"
      :step="0.1"
      label
      color="red-9"
    />
  </div>
</div>
const { ref } = Vue;

const app = Vue.createApp({
  setup () {
    const modelEco = ref(5.2)
  }
})

app.use(Quasar, { config: {} })
app.mount('#q-app')

Leave a comment