File tree Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export default {
49
49
},
50
50
props: {
51
51
schooltime: {
52
- type: String ,
53
- default: ' 1 ' ,
52
+ type: Number ,
53
+ default: 1 ,
54
54
},
55
55
realtime: {
56
56
type: String ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" MainPage" >
3
3
<v-row class =" DataBlock" >
4
- <v-col cols =" 12" md =" 6" >
4
+ <v-col
5
+ v-for =" (item, i) in classData.classData.Lessons['2020-04-04']"
6
+ :key =" i"
7
+ cols =" 12"
8
+ md =" 6"
9
+ >
5
10
<StudyCard
6
- schooltime =" 1"
7
- realtime =" 9:00 - 10:00"
8
- :content =" classData.classData.Lessons['2020-04-04'][0].Content"
9
- subject =" 国語"
10
- />
11
- </v-col >
12
- <v-col cols =" 12" md =" 6" >
13
- <StudyCard
14
- schooltime =" 2"
15
- realtime =" 10:00 - 11:00"
16
- content =" Stess"
17
- subject =" 算数"
18
- />
19
- </v-col >
20
- <v-col cols =" 12" md =" 6" >
21
- <StudyCard
22
- schooltime =" 3"
23
- realtime =" 12:00 - 13:00"
24
- content =" test"
25
- subject =" 理科"
26
- />
27
- </v-col >
28
- <v-col cols =" 12" md =" 6" >
29
- <StudyCard
30
- schooltime =" 4"
31
- realtime =" 14:00 - 15:00"
32
- content =" 内容(4時間目!!!!!)"
33
- subject =" 社会"
11
+ :schooltime =" i + 1"
12
+ :realtime =" item.realTime"
13
+ :content =" item.Content"
14
+ :subject =" item.Subject"
34
15
/>
35
16
</v-col >
36
17
</v-row >
You can’t perform that action at this time.
0 commit comments