fix: 🐛 ts类型警告问题修复

This commit is contained in:
ray
2024-08-11 13:30:03 +08:00
parent 5b17b28d9d
commit 24c1fb26a0
2 changed files with 11 additions and 11 deletions

View File

@@ -51,7 +51,9 @@
</el-tag>
<template v-if="inputTagMap[item.prop].inputVisible">
<el-input
:ref="(el) => (inputTagMap[item.prop].inputRef = el)"
:ref="
(el: HTMLElement) => (inputTagMap[item.prop].inputRef = el)
"
v-model="inputTagMap[item.prop].inputValue"
v-bind="inputTagMap[item.prop].inputAttrs"
@keyup.enter="handleInputConfirm(item.prop)"
@@ -105,8 +107,14 @@
:underline="false"
@click="isExpand = !isExpand"
>
<template v-if="isExpand"> 收起<i-ep-arrow-up /> </template>
<template v-else> 展开<i-ep-arrow-down /> </template>
<template v-if="isExpand">
收起
<i-ep-arrow-up />
</template>
<template v-else>
展开
<i-ep-arrow-down />
</template>
</el-link>
</el-form-item>
</el-form>

View File

@@ -16,14 +16,6 @@ const contentConfig: IContentConfig<UserPageQuery> = {
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
if ("createAt" in params) {
const createAt = params.createAt as string[];
if (createAt?.length > 1) {
params.startTime = createAt[0];
params.endTime = createAt[1];
}
delete params.createAt;
}
return UserAPI.getPage(params);
},
deleteAction: UserAPI.deleteByIds,