
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
【Vue.js】タブ切り替えが出来る単一ファイルコンポーネントサンプル - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
【Vue.js】タブ切り替えが出来る単一ファイルコンポーネントサンプル - Qiita
<template> <div class="tabs"> <div class="btn-container"> <button v-for="(tab, index) in tabs" :k... <template> <div class="tabs"> <div class="btn-container"> <button v-for="(tab, index) in tabs" :key="tab.id" :class="{ active: currentTab === index }" @click="currentTab = index">{{ tab.tabName }}</button> </div> <div class="tab-content"> <div v-show="currentTab === 0"> <h1>Tab1 content</h1> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indu