File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/src/components/StdDesign/StdDataDisplay Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts" generic =" T = any " >
22import type { Column } from ' @/components/StdDesign/types'
3- import type { ComputedRef , Ref } from ' vue'
3+ import type { ComputedRef } from ' vue'
44import type { StdTableProps } from ' ./StdTable.vue'
55import StdBatchEdit from ' @/components/StdDesign/StdDataDisplay/StdBatchEdit.vue'
66import StdCurdDetail from ' @/components/StdDesign/StdDataDisplay/StdCurdDetail.vue'
@@ -25,8 +25,13 @@ export interface StdCurdProps<T> extends StdTableProps<T> {
2525
2626const props = defineProps <StdTableProps <T > & StdCurdProps <T >>()
2727
28- const selectedRowKeys = ref <(string | number )[]>([])
29- const selectedRows: Ref <T []> = ref ([])
28+ const selectedRowKeys = defineModel <(number | string )[]>(' selectedRowKeys' , {
29+ default : () => reactive ([]),
30+ })
31+
32+ const selectedRows = defineModel <T []>(' selectedRows' , {
33+ default : () => reactive ([]),
34+ })
3035
3136const visible = ref (false )
3237// eslint-disable-next-line ts/no-explicit-any
You can’t perform that action at this time.
0 commit comments