deps: update vue-tsc

This commit is contained in:
07akioni 2022-04-27 02:31:30 +08:00
parent 7549985940
commit 7ba34c4147
3 changed files with 9 additions and 3 deletions

View File

@ -120,7 +120,7 @@
"vite": "^2.9.5",
"vue": "^3.2.33",
"vue-router": "^4.0.14",
"vue-tsc": "0.33.9"
"vue-tsc": "0.34.10"
},
"peerDependencies": {
"vue": "^3.0.0"

View File

@ -97,7 +97,10 @@ export default defineComponent({
isPrev ? this.prevSlideStyle : '',
isNext ? this.nextSlideStyle : ''
]}
// @ts-expect-error
// We use ts-ignore for vue-tsc, since it seems to patch native event
// for vue components
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
onClickCapture={this.handleClick}
>
{slots.default?.({

View File

@ -232,7 +232,10 @@ export default defineComponent({
},
this.$attrs.style
]}
// @ts-expect-error
// We use ts-ignore for vue-tsc, since it seems to patch
// native event for vue components
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
onClick={() => {
this.showPanel = !this.showPanel
}}