Help us understand the problem. What is going on with this article?

Vuetify(v2.0.0 )でv-colのxsを設定する

vuetify(v2.0.0)からは、v-colでBreakpointsごとのgridの設定を行う。
Breakpointsは、これまで通り。

スクリーンショット 2019-08-24 22.19.08.png

スマホでのBreakpointはxsとなる。スマホとそれ以外でgridを変えたい場合に、うまくいかずハマった。

結論

  <v-row>
     <v-col lg=9 md=9 sm=9 cols=3>
        aaa
     </v-col>
     <v-col lg=3 md=3 sm=3 cols=9>
        bbb
     </v-col>
  </v-row>

v-colには、colsでgridを設定できるが、xl,lg,md,smに関しては細く設定が可能。
xsはなぜか設定できないので、以下のような書き方だとうまく動かない。

<v-col lg=9 md=9 sm=9 xs=3>

なので、colsで全体のgridを設定しておき、xl,lg,md,smの設定を上書きし、スマホとそれ以外でのgridを変更するしかない模様。

issueは上がってた(2019/08/24)
https://github.com/vuetifyjs/vuetify/issues/8672

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away