Skip to content

Commit d4f151a

Browse files
committed
chore: update example
1 parent fe49c20 commit d4f151a

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

Diff for: example/App.vue

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
<template>
2-
<img :class="$style.logo" src="./logo.png">
2+
<img class="logo" src="./logo.png">
33
<div>
44
{{ count }}
55
<span>{{ count }}</span>
6-
<Button>slotttt</Button>
6+
<Button><span>slot</span></Button>
77
</div>
88
</template>
99

1010
<script>
11-
import { useCSSModule } from 'vue'
1211
import Button from './Button.vue'
1312
1413
export default {
15-
setup() {
16-
const styles = useCSSModule()
17-
console.log('hmm')
18-
},
1914
data() {
2015
return { count: 0 }
2116
},
@@ -25,7 +20,7 @@ export default {
2520
}
2621
</script>
2722

28-
<style module>
23+
<style scoped>
2924
.logo {
3025
width: 100px;
3126
border: 1px solid red;

Diff for: example/Button.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export default {
1919

2020
<style scoped>
2121
::v-slotted(*) {
22-
color: red;
22+
color: green;
2323
}
2424
</style>

Diff for: example/webpack.config.js

+11-10
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ module.exports = {
1111
filename: 'bundle.js',
1212
publicPath: '/dist/'
1313
},
14-
devServer: {
15-
stats: "minimal",
16-
contentBase: __dirname
17-
},
1814
module: {
1915
rules: [
2016
{
@@ -46,15 +42,20 @@ module.exports = {
4642
}
4743
]
4844
},
49-
resolveLoader: {
50-
alias: {
51-
'vue-loader': require.resolve('../')
52-
}
53-
},
5445
plugins: [
5546
new VueLoaderPlugin(),
5647
new MiniCssExtractPlugin({
5748
filename: '[name].css'
5849
})
59-
]
50+
],
51+
devServer: {
52+
stats: "minimal",
53+
contentBase: __dirname,
54+
overlay: true
55+
},
56+
resolveLoader: {
57+
alias: {
58+
'vue-loader': require.resolve('../')
59+
}
60+
}
6061
}

0 commit comments

Comments
 (0)