We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4.21
https://stackblitz.com/edit/vitejs-vite-rckp9s?file=package.json,src%2FApp.vue,src%2Ftype.ts&terminal=dev
当 defineProps 使用泛型的时候,你在当前组件的任何操作都会导致热更新失败,必须的重启项目,去掉泛型一切都正常
热更新正常
No response
The text was updated successfully, but these errors were encountered:
我使用你给的示例试了下,发现 defineProps 函数使用泛型时热更新依旧正常,但如果使用了 ant-design-vue 组件中的 interface 作为类型传入,会导致热更新变得异常缓慢。单独使用 TableProps 时,就像这样 defineProps<TableProps >(),热更新时间大概是30秒,如果再加入Omit内置函数时,就像这样 defineProps<Omit<TableProps,'columns'>>(),热更新时间则会有几分钟。具体原因不明
defineProps<TableProps >()
defineProps<Omit<TableProps,'columns'>>()
Sorry, something went wrong.
我用你给的例子试了一下,发现defineProps函数使用泛型时热更新仍然正常,但如果使用ant-design-vue组件中的接口作为类型确定,会导致热更新变得异常缓慢。使用TableProps时,就像这样 defineProps<TableProps >(),热更新时间大概是30秒,如果再加入省略内置函数时,就像这样 defineProps<Omit<TableProps,'columns'>>(),热更新时间有几个。具体原因不清楚
@vitejs/plugin-vue 这个插件的问题,把这个插件换成4.6.2版本就没这个问题了
Let's track this issue at vitejs/vite-plugin-vue#374
No branches or pull requests
Vue version
3.4.21
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-rckp9s?file=package.json,src%2FApp.vue,src%2Ftype.ts&terminal=dev
Steps to reproduce
当 defineProps 使用泛型的时候,你在当前组件的任何操作都会导致热更新失败,必须的重启项目,去掉泛型一切都正常
What is expected?
热更新正常
What is actually happening?
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: