You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
文档上$confirm的okButtonProps和cancelButtonProps的类型是ButtonProps,实际使用时要传{props: ButtonProps, on: {}}才有效果
而且TypeScript下的类型提示也有问题,提示为
Type '{ props: { loading: true; }; }' is not assignable to type 'Button'.
Object literal may only specify known properties, but 'props' does not exist in type 'Button'. Did you mean to write '$props'?Vetur(2322)
The text was updated successfully, but these errors were encountered:
Version
1.6.5
Environment
windows10@1909,[email protected],[email protected]
Reproduction link
Steps to reproduce
https://codesandbox.io/s/ancient-water-fnwgp?file=/src/App.vue
What is expected?
见复现注释
What is actually happening?
文档上$confirm的okButtonProps和cancelButtonProps的类型是ButtonProps,实际使用时要传{props: ButtonProps, on: {}}才有效果
而且TypeScript下的类型提示也有问题,提示为
Type '{ props: { loading: true; }; }' is not assignable to type 'Button'.
Object literal may only specify known properties, but 'props' does not exist in type 'Button'. Did you mean to write '$props'?Vetur(2322)
The text was updated successfully, but these errors were encountered: