Skip to content

Commit da40ce0

Browse files
committed
readme
1 parent 01dfbdd commit da40ce0

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-facing-decorator",
3-
"version": "2.1.10",
3+
"version": "2.1.11",
44
"description": "Vue typescript class and decorator based component.",
55
"main": "dist/index.js",
66
"keywords": [

readme.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,30 @@
55
Designed for vue 3, do the same work like [vue-class-component](https://github.com/vuejs/vue-class-component) and [vue-property-decorator](https://github.com/kaorun343/vue-property-decorator).
66

77
* Community desired vue class component with typescript decorators.
8-
* Safety. Transform es class to vue option api according to specifications.
8+
* Safety. Transform ES class to vue option api according to specifications.
99
* Performance. Once transform on project loading, ready for everywhere.
1010
* Support ES class inheritance, vue `extends` and vue `mixins`.
1111

1212

1313
Welcome to suggest and contribute.
1414

15+
-----------------
16+
17+
支持vue 3, 提供类似[vue-class-component](https://github.com/vuejs/vue-class-component)[vue-property-decorator](https://github.com/kaorun343/vue-property-decorator)的功能。
18+
19+
* 通过TypeScript装饰器实现社区期望的vue类组件开发。
20+
* 安全, 根据规范将ES类转换到vue option api。
21+
* 高性能,仅在项目加载时转换一次。
22+
* 支持ES类继承,vue `extends` 和 vue `mixins`
23+
24+
欢迎提出建议,贡献代码。
25+
1526
# Document
1627

1728
[To document](https://facing-dev.github.io/vue-facing-decorator/#/)
1829

30+
[中文文档](https://facing-dev.github.io/vue-facing-decorator/#/zh-cn/readme)
31+
1932
# Discussion
2033

2134
[To discord https://discord.gg/4exxtFgkcz](https://discord.gg/4exxtFgkcz)

src/component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ export function Component(arg: ComponentConsOption): any {
121121
// })
122122
// console.log('kkkk', '__vccOpts' in cons, cons)
123123
// return cons
124-
let ff = obtainSlot(cons.prototype).cachedVueComponent
125-
126-
return ff
124+
return obtainSlot(cons.prototype).cachedVueComponent
127125
})
128-
129126
}

0 commit comments

Comments
 (0)