### System Info
```Shell
vsCode
```
### Used Package Manager
npm
### Validations
- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Describe the bug
只要使用了setup ,在 template 中 使用的数据会提示 类型“{}”上不存在属性“XXX”。ts(2339)
Reproduction