1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Vuetify3でタイムピッカーを使う方法

Posted at

Vuetify3で<v-time-picker>が使えなくなっていた

Vuetify2で使えていた<v-time-picker>Vuetify3では使えなくなっていました。

Issuesを確認したところ、バージョン3.4の直後にリリースする予定っぽいですが、現在最新の3.5.1でリリースされていない状況です。

タイムピッカーを使う方法

代替案としてv-text-fieldtype="time"を設定する方法があるようです。

<template>
  <v-form style="width: 50%; padding:10px;">
    <v-text-field type="time"></v-text-field>
  </v-form>
</template>

time-picker-1.png

<v-time-picker>と同じ機能とはなりませんが、一応Vuetifyのコンポーネントでタイムピッカーを使うことができます。

type="time"inputタグに設定できることは知っていましたが、v-text-fieldにも設定できることは知りませんでした。
あまり調べても情報がなかったのは常識だからなのでしょうか。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?