Skip to content

Commit 397ca22

Browse files
committed
Merge remote-tracking branch 'origin/master' into next
2 parents 7e8fffd + 70ed762 commit 397ca22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Vue Class Component is a library that lets you make your Vue components in class
1111
</div>
1212
</template>
1313
14-
<script lang="ts">
14+
<script>
1515
import Vue from 'vue'
1616
import Component from 'vue-class-component'
1717
@@ -35,6 +35,6 @@ export default class Counter extends Vue {
3535

3636
As the example shows, you can define component data and methods in the intuitive and standard class syntax by annotating the class with the `@Component` decorator. You can simply replace your component definition with a class-style component as it is equivalent with the ordinary options object style of component definition.
3737

38-
By defining your component in class-style, you not only change the syntax but also can utilize some ECMAScript language features such as class inheritance and decorators. Vue Class Component also provides a [`mixins` helper](guide/extend-and-mixins.md#Mixins) for mixin inheritance, and a [`createDecorator` function](guide/custom-decorators.md) to create your own decrators easily.
38+
By defining your component in class-style, you not only change the syntax but also can utilize some ECMAScript language features such as class inheritance and decorators. Vue Class Component also provides a [`mixins` helper](guide/extend-and-mixins.md#Mixins) for mixin inheritance, and a [`createDecorator` function](guide/custom-decorators.md) to create your own decorators easily.
3939

4040
You may also want to check out the `@Prop` and `@Watch` decorators provided by [Vue Property Decorator](https://github.com/kaorun343/vue-property-decorator).

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"unpkg": "dist/vue-class-component.global.js",
88
"jsdelivr": "dist/vue-class-component.global.js",
99
"types": "dist/vue-class-component.d.ts",
10+
"sideEffects": false,
1011
"files": [
1112
"dist"
1213
],

0 commit comments

Comments
 (0)