Skip to content

Commit e214939

Browse files
committed
a
1 parent 7d12d61 commit e214939

38 files changed

+1325
-4
lines changed

docs/.nojekyll

Whitespace-only changes.

docs/README.md

Lines changed: 622 additions & 0 deletions
Large diffs are not rendered by default.

docs/_coverpage.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This site is in devloping...
2+
3+
# vue-facing-decorators
4+
5+
> Designed for vue 3.
6+
7+
> Write class components by TypeScript decorator.
8+
9+
![GitHub](https://img.shields.io/github/license/facing-dev/vue-facing-decorator) ![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/facing-dev/vue-facing-decorator/release) ![npm peer dependency version (scoped)](https://img.shields.io/npm/dependency-version/vue-facing-decorator/peer/vue)
10+
11+
[GitHub](https://github.com/facing-dev/vue-facing-decorator) [Getting Started](#read-me)

docs/_sidebar.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- [Quick start](home/quick-start/quick-start.md)
2+
- Class component
3+
- [Component](class-component/component/component.md)
4+
- [Property](class-component/property/property.md)
5+
- [Method](class-component/method/method.md)
6+
- [Lifecycle hooks](class-component/lifecycle-hook/lifecycle-hook.md)
7+
- [Getter](class-component/getter/getter.md)
8+
- [Event](class-component/event/event.md)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
@Component
5+
class MyAnotherComponent extends Vue {
6+
7+
}
8+
9+
/*
10+
Vue option component
11+
{
12+
components:{
13+
MyAnotherComponent
14+
}
15+
}
16+
*/
17+
18+
@Component({
19+
components: {
20+
MyAnotherComponent
21+
}
22+
})
23+
class MyComponent extends Vue {
24+
25+
}
26+
27+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue option component
6+
{
7+
directives:{
8+
MyDirective:{}
9+
}
10+
}
11+
*/
12+
13+
@Component({
14+
directives: {
15+
MyDirective: {}
16+
}
17+
})
18+
class MyComponent extends Vue {
19+
20+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue option component
6+
{
7+
emits:['MyEvent']
8+
}
9+
*/
10+
11+
@Component({
12+
emits: ['MyEvent']
13+
})
14+
class MyComponent extends Vue {
15+
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue option component
6+
{
7+
expose:['name']
8+
}
9+
*/
10+
11+
@Component({
12+
expose: ['Name']
13+
})
14+
class MyComponent extends Vue {
15+
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
4+
/*
5+
Vue option component
6+
{
7+
inheritAttrs:true
8+
}
9+
*/
10+
11+
@Component({
12+
inheritAttrs: true
13+
})
14+
class MyComponent extends Vue {
15+
16+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
import { Component, Vue } from 'vue-facing-decorator'
3+
import { defineComponent } from 'vue'
4+
5+
const VueComponent = defineComponent({
6+
7+
})
8+
9+
/*
10+
Vue option component
11+
{
12+
mixins:[VueComponent]
13+
}
14+
*/
15+
16+
@Component({
17+
mixins: [VueComponent]
18+
})
19+
class MyComponent extends Vue {
20+
21+
}

0 commit comments

Comments
 (0)