Skip to content

Commit

Permalink
Merge pull request #27 from kotodu/dev
Browse files Browse the repository at this point in the history
1.0.2
  • Loading branch information
kotodu authored Aug 16, 2020
2 parents 669bc7f + 0234ca7 commit c610cf2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@


# [1.0.2]
## 修正内容
- モバイル時にハンバーガーボタンが息してない事態の修正
- 応急処置で、vue.jsのclick動作で対応

# [1.0.1]
## 追加内容
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotodu.io",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
28 changes: 25 additions & 3 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<nav
class="navbar navbar-expand-lg navbar-dark bg-dark">
<span class="navbar-brand px-5">kotodu.io</span>
<button
<!-- vueに実装した所、なぜか不具合…… -->
<!-- <button
class="navbar-toggler"
type="button"
data-toggle="collapse"
Expand All @@ -12,8 +13,23 @@
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button> -->
<!--
<div
class="collapse navbar-collapse"
id="navbarNav"> -->

<!-- 仕方ないので、vue.jsのクリック動作で解決 -->
<button
class="navbar-toggler"
@click="show.mobileNav= !show.mobileNav"
>
<span class="navbar-toggler-icon"/>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<div
v-show="show.mobileNav"
class="navbar-collapse"
id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item mx-2">
<router-link
Expand Down Expand Up @@ -81,8 +97,14 @@ export default defineComponent({
link2:"About",
link3:"Works"
});
const show = reactive({
// モバイル時の表示フラグ
// 最初はfalse
mobileNav:false
});
return {
linksText
linksText,
show
}
}
})
Expand Down

0 comments on commit c610cf2

Please sign in to comment.