Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruojianll committed Apr 20, 2024
1 parent 89d7e94 commit 0e28a72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion docs/en/wellknown-issues/wellknown-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

When `useDefineForClassFields` is `true` in ts config, we can't access fields on `this` context while declaring class fields.

[](./do-not-use-this.ts ':include :type=code typescript')
[](./code-do-not-use-this.ts ':include :type=code typescript')

## Use Vitest

If you have some error when use v-f-d with test framework, use Vitest instead of it.

https://github.com/facing-dev/vue-facing-decorator/issues/54#issuecomment-1500019388

https://github.com/facing-dev/vue-facing-decorator/issues/33#issuecomment-1410648544

## Lake of IDE type supports
Expand Down
3 changes: 2 additions & 1 deletion docs/zh-cn/wellknown-issues/wellknown-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

当TS配置文件中`useDefineForClassFields``true`时,我们不能用`this`上下文来声明类组件的属性。

[](../../en/wellknown-issues/do-not-use-this.ts ':include :type=code typescript')
[](../../en/wellknown-issues/code-do-not-use-this.ts ':include :type=code typescript')

## 使用Vitest

如果你在使用测试框架出现错误时,尝试使用Vitest。

https://github.com/facing-dev/vue-facing-decorator/issues/54#issuecomment-1500019388

https://github.com/facing-dev/vue-facing-decorator/issues/33#issuecomment-1410648544

## 缺少IDE类型是吃
Expand Down

0 comments on commit 0e28a72

Please sign in to comment.