File tree 3 files changed +21
-13
lines changed
3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <img class =" logo" src =" ./logo.png" >
3
- <Button >slotttt</Button >
4
- <Button >slot content</Button >
5
- <Button >slot content</Button >
2
+ <img :class =" $style.logo" src =" ./logo.png" >
3
+ <div >
4
+ {{ count }}
5
+ <span >{{ count }}</span >
6
+ <Button >slotttt</Button >
7
+ </div >
6
8
</template >
7
9
8
10
<script >
11
+ import { useCSSModule } from ' vue'
9
12
import Button from ' ./Button.vue'
10
13
11
14
export default {
15
+ setup () {
16
+ const styles = useCSSModule ()
17
+ console .log (' hmm' )
18
+ },
19
+ data () {
20
+ return { count: 0 }
21
+ },
12
22
components: {
13
23
Button
14
24
}
15
25
}
16
26
</script >
17
27
18
- <style >
28
+ <style module >
19
29
.logo {
20
30
width : 100px ;
21
31
border : 1px solid red ;
Original file line number Diff line number Diff line change @@ -16,3 +16,9 @@ export default {
16
16
}
17
17
}
18
18
</script >
19
+
20
+ <style scoped>
21
+ ::v-slotted(* ) {
22
+ color : red ;
23
+ }
24
+ </style >
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ module.exports = {
15
15
stats : "minimal" ,
16
16
contentBase : __dirname
17
17
} ,
18
- optimization : {
19
- minimize : false
20
- } ,
21
18
module : {
22
19
rules : [
23
20
{
@@ -49,11 +46,6 @@ module.exports = {
49
46
}
50
47
]
51
48
} ,
52
- resolve : {
53
- alias : {
54
- 'vue' : '@vue/runtime-dom'
55
- }
56
- } ,
57
49
resolveLoader : {
58
50
alias : {
59
51
'vue-loader' : require . resolve ( '../' )
You can’t perform that action at this time.
0 commit comments