Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
9350bdce
Commit
9350bdce
authored
Apr 07, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit toolbar
parent
d1582a27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
8 deletions
+54
-8
Toolbar.vue
resources/js/components/Toolbar.vue
+54
-8
No files found.
resources/js/components/Toolbar.vue
View file @
9350bdce
...
@@ -19,28 +19,53 @@
...
@@ -19,28 +19,53 @@
<img
src=
"../../../public/img/banner.png"
class=
"my-2"
width=
"150"
>
<img
src=
"../../../public/img/banner.png"
class=
"my-2"
width=
"150"
>
</v-toolbar-title>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-spacer></v-spacer>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0"
>
<v-icon>
home
</v-icon>
<v-icon>
home
</v-icon>
<span
class=
"body-2 font-weight-bold"
>
หน้าหลัก
</span>
<span
class=
"body-2 font-weight-bold"
>
หน้าหลัก
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-menu
left
bottom
v-if=
"responsive"
>
<template
v-slot:activator=
"
{ on }">
<v-toolbar-side-icon
v-on=
"on"
></v-toolbar-side-icon>
</
template
>
<v-list>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
<v-list-tile
@
click=
""
>
<v-list-tile-title>
หน้าหลัก
</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-toolbar>
</v-flex>
</v-flex>
</v-layout>
</v-layout>
...
@@ -49,6 +74,27 @@
...
@@ -49,6 +74,27 @@
<
script
>
<
script
>
export
default
{
export
default
{
props
:
[
'page'
]
props
:
[
'page'
],
data
()
{
return
{
responsive
:
false
}
},
mounted
()
{
this
.
onResponsiveInverted
()
window
.
addEventListener
(
'resize'
,
this
.
onResponsiveInverted
)
},
beforeDestroy
()
{
window
.
removeEventListener
(
'resize'
,
this
.
onResponsiveInverted
)
},
methods
:
{
onResponsiveInverted
()
{
if
(
window
.
innerWidth
<
991
)
{
this
.
responsive
=
true
}
else
{
this
.
responsive
=
false
}
}
}
}
}
</
script
>
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment