File tree Expand file tree Collapse file tree 4 files changed +23
-136
lines changed Expand file tree Collapse file tree 4 files changed +23
-136
lines changed Original file line number Diff line number Diff line change 7
7
@click =" $emit('click')"
8
8
>
9
9
<span >{{ text }}</span >
10
- <v-icon v-if =" logoutIcon " >mdi-login-variant </v-icon >
10
+ <v-icon v-if =" icon " >{{ icon }} </v-icon >
11
11
</v-btn >
12
12
</template >
13
13
@@ -30,8 +30,8 @@ export default class ActionButton extends Vue {
30
30
@Prop ({ default: false })
31
31
isLoading? : boolean
32
32
33
- @Prop ({ default: false })
34
- logoutIcon ? : boolean
33
+ @Prop ({ default: ' ' })
34
+ icon ? : string
35
35
}
36
36
</script >
37
37
Original file line number Diff line number Diff line change 18
18
v-for =" (action, i) in actions"
19
19
:key =" i"
20
20
class =" my-3"
21
+ :theme =" action.theme"
22
+ :icon =" action.iconName"
21
23
:text =" action.buttonLabel"
22
24
@click =" doDialogAction(i)"
23
25
/>
@@ -39,6 +41,8 @@ import ActionButton from '@/components/ActionButton.vue'
39
41
40
42
export type DialogAction = {
41
43
buttonLabel: string
44
+ iconName: string
45
+ theme: string
42
46
/**
43
47
* ボタン押下時に実行する処理。実行後に BaseModalDialog を閉じないようにするには true を返す。
44
48
*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
@input =" openCalenderDialog = false"
9
9
/>
10
10
</v-dialog >
11
- <viewer -dialog
11
+ <base -dialog
12
12
v-model =" openClassIdDialog"
13
13
icon-name =" mdi-clipboard-account"
14
- default-cancel-button-label =" ログアウト"
15
- :logout-icon =" true"
14
+ hide-default-cancel-button
16
15
:actions =" [
17
16
{
18
17
buttonLabel: '閉じる',
18
+ iconName: '',
19
+ theme: 'primary',
19
20
action: () => {
20
21
return false
21
22
}
23
+ },
24
+ {
25
+ buttonLabel: 'ログアウト',
26
+ iconName: 'mdi-login-variant',
27
+ theme: 'border',
28
+ action: () => {
29
+ clickLogout()
30
+ return false
31
+ }
22
32
}
23
33
]"
24
- @clickLogout =" clickLogout"
25
34
>
26
35
<template v-slot :title >
27
36
今、ログインしているクラスです
33
42
<div class =" ClassIdModal-Id" >{{ classId }}</div >
34
43
</div >
35
44
</template >
36
- </viewer -dialog >
45
+ </base -dialog >
37
46
<v-overlay :value =" loading" color =" #0071C2" opacity =" 1" z-index =" 9999" >
38
47
<div class =" loader" >
39
48
Loading
@@ -83,7 +92,7 @@ import Vue from 'vue'
83
92
import dayjs from ' dayjs'
84
93
import HeaderLogo from ' @/assets/svgs/header_logo.svg'
85
94
import CalendarBar from ' @/components/CalendarBar.vue'
86
- import ViewerDialog from ' @/components/ViewerDialog .vue'
95
+ import BaseDialog from ' @/components/BaseDialog .vue'
87
96
import { vxm } from ' @/store'
88
97
89
98
type LocalData = {
@@ -99,7 +108,7 @@ export default Vue.extend({
99
108
middleware: ' checkClassData' ,
100
109
components: {
101
110
CalendarBar ,
102
- ViewerDialog ,
111
+ BaseDialog ,
103
112
HeaderLogo
104
113
},
105
114
data(): LocalData {
You can’t perform that action at this time.
0 commit comments