Skip to content

Commit d02f150

Browse files
author
Treri
committed
docs: remove __vuec__, use scoped flag in example
1 parent bcc1c69 commit d02f150

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Diff for: test/src/component/a.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="component-a" __vuec__>
2+
<div class="component-a">
33
Component A
44
</div>
55
</template>
@@ -15,13 +15,13 @@
1515
}
1616
</script>
1717

18-
<style lang="less">
18+
<style lang="less" scoped>
1919
body {
2020
a {
2121
color: inherit;
2222
}
2323
}
24-
.component-a[__vuec__] {
24+
.component-a {
2525
line-height: 50px;
2626
text-align: center;
2727
color: #fff;

Diff for: test/src/component/index.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
<style lang="less">
2+
<style lang="less" scoped>
33
@import "../less/other.less";
4-
.index.__vuec__ {
4+
.index {
55
> p {
66
line-height: 50px;
77
text-align: center;
@@ -23,7 +23,7 @@ $blue : #1875e7; 
2323
</style>
2424

2525
<template>
26-
<div class="index __vuec__" >
26+
<div class="index" >
2727
<p>fis3-parser-vue-component demo runing ~</p>
2828
<component-a></component-a>
2929
<component-b></component-b>

Diff for: test2/src/component/a.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template lang="html">
2-
<div class="component-a" __vuec__>
2+
<div class="component-a">
33
Component A
44
</div>
55
</template>
@@ -15,13 +15,13 @@
1515
}
1616
</script>
1717

18-
<style lang="less">
18+
<style lang="less" scoped>
1919
body {
2020
a {
2121
color: inherit;
2222
}
2323
}
24-
.component-a[__vuec__] {
24+
.component-a {
2525
line-height: 50px;
2626
text-align: center;
2727
color: #fff;

Diff for: test2/src/component/index.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
<style lang="less">
2+
<style lang="less" scoped>
33
@import "../less/other.less";
4-
.index.__vuec__ {
4+
.index {
55
> p {
66
line-height: 50px;
77
text-align: center;
@@ -23,7 +23,7 @@ $blue : #1875e7; 
2323
</style>
2424

2525
<template>
26-
<div class="index __vuec__" >
26+
<div class="index" >
2727
<p>fis3-parser-vue-component demo runing ~</p>
2828
<component-a></component-a>
2929
<component-b></component-b>

0 commit comments

Comments
 (0)