|
|
@ -10,11 +10,19 @@ import { useI18n } from '@/hooks/web/useI18n' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'ModelTable' }) |
|
|
defineOptions({ name: 'ModelTable' }) |
|
|
const emit = defineEmits(['success']) |
|
|
const emit = defineEmits(['success']) |
|
|
const props = defineProps({ |
|
|
import { defineProps } from 'vue' |
|
|
selectedRowKeys: { type: Array<number>, default: [] }, |
|
|
|
|
|
selectedData: { type: Array<Recordable>, default: [] }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
|
|
selectedRowKeys: { |
|
|
|
|
|
type: Array as () => number[], |
|
|
|
|
|
default: () => [], |
|
|
|
|
|
}, |
|
|
|
|
|
selectedData: { |
|
|
|
|
|
type: Array as () => Record<string, any>[], |
|
|
|
|
|
default: () => [], |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const selectedData = ref<Recordable[]>(props.selectedData) |
|
|
const selectedData = ref<Recordable[]>(props.selectedData) |
|
|
|
|
|
|
|
|
interface RowKeys { |
|
|
interface RowKeys { |
|
|
|