File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { defineProps } from ' vue'
2
3
import { type Result } from ' ../types/Result'
3
4
4
5
const props = defineProps ({
5
- result: Result
6
+ result: {
7
+ type: Object as () => Result ,
8
+ required: true
9
+ }
6
10
})
7
11
</script >
8
12
9
13
<template >
10
- <pre >
14
+ <div >
11
15
User
12
- {{ result.userId }} saw variation
13
- {{ result.variation }} and got products sorted by
14
- {{ result.sortMethod }}
15
- </pre >
16
+ < b class = " userId " > {{ result.userId }}</ b > saw variation
17
+ < b class = " variation " > {{ result.variation }}</ b > and got products sorted by
18
+ < b class = " sortMethod " > {{ result.sortMethod }}</ b >
19
+ </div >
16
20
</template >
17
21
18
22
<style scoped>
19
- pre {
23
+ div {
20
24
margin : 0px ;
21
25
}
26
+ b {
27
+ font-weight : bold ;
28
+ }
29
+ .userId {
30
+ color : #ff0000 ;
31
+ }
32
+ .variation {
33
+ color : #0000ff ;
34
+ }
35
+ .sortMethod {
36
+ color : #00ff00 ;
37
+ }
22
38
</style >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ for (let i = 0; i < 10; i++) {
66
66
display : flex ;
67
67
flex-direction : column ;
68
68
align-items : center ;
69
+ justify-content : center ;
70
+ font-family : monospace ;
69
71
}
70
72
}
71
73
</style >
You can’t perform that action at this time.
0 commit comments