Skip to content

Commit 226827f

Browse files
committed
chore: update vue-tsc to v2
1 parent cd0c79c commit 226827f

File tree

4 files changed

+49
-41
lines changed

4 files changed

+49
-41
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"unplugin-vue-define-options": "^1.4.6",
7474
"vite": "^5.3.5",
7575
"vite-svg-loader": "^5.1.0",
76-
"vue-tsc": "^1.8.27"
76+
"vue-tsc": "^2.0.29"
7777
},
7878
"packageManager": "[email protected]"
7979
}

app/pnpm-lock.yaml

Lines changed: 42 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/components/StdDesign/StdDataDisplay/StdCurd.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import StdTable from './StdTable.vue'
66
import StdDataEntry from '@/components/StdDesign/StdDataEntry'
77
import type { Column } from '@/components/StdDesign/types'
88
import StdCurdDetail from '@/components/StdDesign/StdDataDisplay/StdCurdDetail.vue'
9+
import type { StdTableSlots } from '@/components/StdDesign/StdDataDisplay/types'
910
1011
export interface StdCurdProps<T> extends StdTableProps<T> {
1112
cardTitleKey?: string
@@ -232,7 +233,7 @@ const localOverwriteParams = reactive(props.overwriteParams ?? {})
232233
@selected="onSelect"
233234
>
234235
<template
235-
v-for="(_, key) in $slots"
236+
v-for="(_, key) in ($slots as unknown as StdTableSlots)"
236237
:key="key"
237238
#[key]="slotProps"
238239
>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface StdTableSlots {
2+
'append-search': ({}) => any
3+
actions: ({}: Record<string, any>) => any
4+
}

0 commit comments

Comments
 (0)