2
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 3 years have passed since last update.

Vuetifyでラジオボタンのv-modelを設定しても選択済みにならない問題

Posted at

Vuetifyでラジオボタンのv-modelを設定しても選択済みにならない件。

たとえば下記のようなコード

            <v-radio-group row v-model="item.table_type" class="mx-auto">
              <v-radio label="景品1" value="1"></v-radio>
              <v-radio label="景品2" value="2"></v-radio>
            </v-radio-group>

探してみたところ、valueの前に:を入れるだけで解決できるらしい

            <v-radio-group row v-model="item.table_type" class="mx-auto">
              <v-radio label="景品1" :value="1"></v-radio>
              <v-radio label="景品2" :value="2"></v-radio>
            </v-radio-group>

15分は悩んだ。

2
0
1

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
2
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?