File tree Expand file tree Collapse file tree 5 files changed +25
-23
lines changed Expand file tree Collapse file tree 5 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const handleMenuItemClick = (path, event) => {
54
54
v-for =" item in menuItems"
55
55
:key =" item.path"
56
56
>
57
- <a
57
+ <NuxtLink
58
58
:href =" item.path"
59
59
:class =" ['menu-item', { active: props.currentPath === item.path }]"
60
60
@click =" handleMenuItemClick(item.path, $event)"
@@ -64,16 +64,16 @@ const handleMenuItemClick = (path, event) => {
64
64
class =" menu-item-icon"
65
65
/>
66
66
<p >{{ item.label }}</p >
67
- </a >
67
+ </NuxtLink >
68
68
</li >
69
69
</ul >
70
70
</div >
71
71
<div
72
72
v-if =" bottomMenuItem"
73
73
class =" bottom-wrapper"
74
74
>
75
- <a
76
- :href =" bottomMenuItem.path"
75
+ <NuxtLink
76
+ :to =" bottomMenuItem.path"
77
77
:class =" ['menu-item', { active: props.currentPath === bottomMenuItem.path }]"
78
78
@click =" handleMenuItemClick(bottomMenuItem.path, $event)"
79
79
>
@@ -82,7 +82,7 @@ const handleMenuItemClick = (path, event) => {
82
82
class =" menu-item-icon"
83
83
/>
84
84
<p >{{ bottomMenuItem.label }}</p >
85
- </a >
85
+ </NuxtLink >
86
86
</div >
87
87
</div >
88
88
</div >
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ const handleMenuItemClick = (path) => {
11
11
12
12
<template >
13
13
<div id =" default-layout" >
14
- <SideHeader
14
+ <KSSideHeader
15
15
:logo-text =" sideHeaderProps.logoText"
16
16
:menu-items =" sideHeaderProps.menuItems"
17
17
:current-path =" sideHeaderProps.currentPath"
18
18
:bottom-menu-item =" sideHeaderProps.bottomMenuItem"
19
19
@menu-item-click =" handleMenuItemClick"
20
20
/>
21
21
<div class =" main-content" >
22
- <TopHeader :title =" topHeaderProps.title" />
22
+ <KSTopHeader :title =" topHeaderProps.title" />
23
23
<slot />
24
24
</div >
25
25
</div >
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ const _sideMenuItems = [
20
20
<section >
21
21
<h2 >Buttons</h2 >
22
22
<div style =" display : flex ; gap : 10px ; margin-bottom : 20px ;" >
23
- <MainButton
23
+ <KSMainButton
24
24
type =" submit"
25
25
text =" 送信ボタン"
26
26
/>
27
- <MainButton
27
+ <KSMainButton
28
28
type =" cancel"
29
29
text =" キャンセルボタン"
30
30
/>
31
- <MainButton
31
+ <KSMainButton
32
32
type =" submit"
33
33
text =" ローディング"
34
34
:loading =" true"
35
35
/>
36
- <MainButton
36
+ <KSMainButton
37
37
type =" submit"
38
38
text =" 無効化"
39
39
:disabled =" true"
@@ -45,13 +45,13 @@ const _sideMenuItems = [
45
45
<section >
46
46
<h2 >Forms</h2 >
47
47
<div style =" max-width : 400px ;" >
48
- <InputField
48
+ <KSInputField
49
49
v-model =" formData.name"
50
50
label =" 名前"
51
51
placeholder =" 名前を入力してください"
52
52
:required =" true"
53
53
/>
54
- <TextareaField
54
+ <KSTextareaField
55
55
v-model =" formData.description"
56
56
label =" 説明"
57
57
placeholder =" 説明を入力してください"
@@ -63,18 +63,18 @@ const _sideMenuItems = [
63
63
<!-- Panels テスト -->
64
64
<section >
65
65
<h2 >Panels</h2 >
66
- <TextItem
66
+ <KSTextItem
67
67
:text =" `ユーザー名: ${formData.name || '未入力'}`"
68
68
/>
69
- <TextItem
69
+ <KSTextItem
70
70
:text =" `説明: ${formData.description || '未入力'}`"
71
71
/>
72
72
</section >
73
73
74
74
<!-- Sections テスト -->
75
75
<section >
76
76
<h2 >Sections</h2 >
77
- <SectionTextWithLine text =" セクション見出し" />
77
+ <KSSectionTextWithLine text =" セクション見出し" />
78
78
</section >
79
79
</div >
80
80
</NuxtLayout >
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { KSDashboardContainer } from ' ../../dist/runtime'
3
+
2
4
const sideMenuItems = [
3
5
{ path: ' /dashboard' , label: ' ダッシュボード' , icon: ' mdi:view-dashboard' },
4
6
{ path: ' /users' , label: ' ユーザー管理' , icon: ' mdi:account-group' },
@@ -8,7 +10,7 @@ const sideMenuItems = [
8
10
9
11
<template >
10
12
<div >
11
- <DashboardContainer
13
+ <KSDashboardContainer
12
14
:side-header-props =" {
13
15
logoText: '管理画面',
14
16
menuItems: sideMenuItems,
@@ -17,6 +19,6 @@ const sideMenuItems = [
17
19
:top-header-props =" { title: '管理画面' }"
18
20
>
19
21
<slot />
20
- </DashboardContainer >
22
+ </KSDashboardContainer >
21
23
</div >
22
24
</template >
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const handleMenuItemClick = (path: string, event?: Event): void => {
77
77
v-for =" item in menuItems"
78
78
:key =" item.path"
79
79
>
80
- <a
80
+ <NuxtLink
81
81
:href =" item.path"
82
82
:class =" ['menu-item', { active: props.currentPath === item.path }]"
83
83
@click =" handleMenuItemClick(item.path, $event)"
@@ -87,16 +87,16 @@ const handleMenuItemClick = (path: string, event?: Event): void => {
87
87
class =" menu-item-icon"
88
88
/>
89
89
<p >{{ item.label }}</p >
90
- </a >
90
+ </NuxtLink >
91
91
</li >
92
92
</ul >
93
93
</div >
94
94
<div
95
95
v-if =" bottomMenuItem"
96
96
class =" bottom-wrapper"
97
97
>
98
- <a
99
- :href =" bottomMenuItem.path"
98
+ <NuxtLink
99
+ :to =" bottomMenuItem.path"
100
100
:class =" ['menu-item', { active: props.currentPath === bottomMenuItem.path }]"
101
101
@click =" handleMenuItemClick(bottomMenuItem.path, $event)"
102
102
>
@@ -105,7 +105,7 @@ const handleMenuItemClick = (path: string, event?: Event): void => {
105
105
class =" menu-item-icon"
106
106
/>
107
107
<p >{{ bottomMenuItem.label }}</p >
108
- </a >
108
+ </NuxtLink >
109
109
</div >
110
110
</div >
111
111
</div >
You can’t perform that action at this time.
0 commit comments