refactor(tenant-toggle): 更新SelectProps为SelectEmits类型

修改导入类型以匹配antdv-next的更新,保持类型一致性
This commit is contained in:
dap 2026-01-16 17:03:36 +08:00
parent 1f859c45fa
commit 62abaedbdb

View File

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import type { SelectProps } from 'antdv-next'; import type { SelectEmits } from 'antdv-next';
import type { MessageType } from 'antdv-next/dist/message/interface'; import type { MessageType } from 'antdv-next/dist/message/interface';
import type { TenantOption } from '#/api'; import type { TenantOption } from '#/api';
@ -73,7 +73,7 @@ const loading = ref(false);
* @param tenantId tenantId * @param tenantId tenantId
* @param option 当前option * @param option 当前option
*/ */
const onSelected: SelectProps['onSelect'] = async ( const onSelected: SelectEmits['onSelect'] = async (
tenantId: string, tenantId: string,
option: any, option: any,
) => { ) => {