1
2

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の小ネタ - 1

Posted at

レイアウト構成

参照

要素

  • v-app-bar

    • ヘッダーバー
  • v-navigation-drawer

    • サイドバー
  • v-footer

    • フッター
  • v-main

    • メイン画面
  • スマホアプリ開発する時に

    • v-system-bar
    • v-bottom-navigation

サンプル



グローバルfont family変更

参照

対応

App.vue中に

$font-family:'Ubuntu'

.v-application {
  [class*='text-'] {
    font-family: $font-family, sans-serif !important;
  }
  font-family: $font-family, sans-serif !important;
}

font-size

参照

内容

  • vuetify3に、1rem == 16pxぽい
    • 20px == 1.25rem
    • 14px == 0.875rem

aliasingを使うと便利

参照

対応

src/plugins/vuetify.vue
import { createVuetify } from 'vuetify'
import { VBtn } from 'vuetify/components'

export default createVuetify({
  aliases: {
    MyButton: VBtn,
  }, 
  defaults: {
    MyButton: { variant: 'tonal' },
  },
})

base.vue
<my-button
  @click="click" >テスト
</my-button>

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?