Skip to content

Commit

Permalink
chore: update vue-tsc to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Jul 30, 2024
1 parent cd0c79c commit 226827f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 41 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"unplugin-vue-define-options": "^1.4.6",
"vite": "^5.3.5",
"vite-svg-loader": "^5.1.0",
"vue-tsc": "^1.8.27"
"vue-tsc": "^2.0.29"
},
"packageManager": "[email protected]"
}
81 changes: 42 additions & 39 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/src/components/StdDesign/StdDataDisplay/StdCurd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import StdTable from './StdTable.vue'
import StdDataEntry from '@/components/StdDesign/StdDataEntry'
import type { Column } from '@/components/StdDesign/types'
import StdCurdDetail from '@/components/StdDesign/StdDataDisplay/StdCurdDetail.vue'
import type { StdTableSlots } from '@/components/StdDesign/StdDataDisplay/types'
export interface StdCurdProps<T> extends StdTableProps<T> {
cardTitleKey?: string
Expand Down Expand Up @@ -232,7 +233,7 @@ const localOverwriteParams = reactive(props.overwriteParams ?? {})
@selected="onSelect"
>
<template
v-for="(_, key) in $slots"
v-for="(_, key) in ($slots as unknown as StdTableSlots)"
:key="key"
#[key]="slotProps"
>
Expand Down
4 changes: 4 additions & 0 deletions app/src/components/StdDesign/StdDataDisplay/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface StdTableSlots {
'append-search': ({}) => any
actions: ({}: Record<string, any>) => any
}

0 comments on commit 226827f

Please sign in to comment.