chore: 解决ts报错编译不通过
This commit is contained in:
parent
e3fd24cdba
commit
8a711405eb
|
@ -378,18 +378,11 @@
|
|||
const expandable = reactive({
|
||||
title: '',
|
||||
width: 54,
|
||||
expandedRowRender: (record: TableData) => {
|
||||
expandedRowRender: (record: Record<string, any>) => {
|
||||
if (record.pluginForms && record.pluginForms.length > 0) {
|
||||
return h(
|
||||
// @ts-ignore
|
||||
TableExpand,
|
||||
{
|
||||
record,
|
||||
onMessageEvent: (recordItem: PluginItem, item: PluginForms) => detailScript(recordItem, item),
|
||||
},
|
||||
null
|
||||
);
|
||||
return h(TableExpand, { recordItem: record, onMessageEvent: detailScript });
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
});
|
||||
const handleExpand = (rowKey: string | number) => {
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
}"
|
||||
>
|
||||
<div class="ms-scroll">
|
||||
<div v-for="(item, index) in record.pluginForms" :key="item.id" class="ms-self">
|
||||
<div v-for="(item, index) in recordItem.pluginForms" :key="item.id" class="ms-self">
|
||||
<span class="circle text-xs leading-[16px]"> {{ index + 1 }} </span>
|
||||
<span class="cursor-pointer text-[rgb(var(--primary-5))]" @click="emit('MessageEvent', record, item)">{{
|
||||
<span class="cursor-pointer text-[rgb(var(--primary-5))]" @click="emit('MessageEvent', recordItem, item)">{{
|
||||
item.name
|
||||
}}</span>
|
||||
</div>
|
||||
|
@ -21,7 +21,7 @@
|
|||
import type { PluginForms, PluginItem } from '@/models/setting/plugin';
|
||||
|
||||
defineProps<{
|
||||
record: PluginItem;
|
||||
recordItem: PluginItem;
|
||||
}>();
|
||||
const emit = defineEmits<{
|
||||
(e: 'MessageEvent', record: PluginItem, item: PluginForms): void;
|
||||
|
|
Loading…
Reference in New Issue