fix: 🐛 ts类型警告问题修复
This commit is contained in:
@@ -51,7 +51,9 @@
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
<template v-if="inputTagMap[item.prop].inputVisible">
|
<template v-if="inputTagMap[item.prop].inputVisible">
|
||||||
<el-input
|
<el-input
|
||||||
:ref="(el) => (inputTagMap[item.prop].inputRef = el)"
|
:ref="
|
||||||
|
(el: HTMLElement) => (inputTagMap[item.prop].inputRef = el)
|
||||||
|
"
|
||||||
v-model="inputTagMap[item.prop].inputValue"
|
v-model="inputTagMap[item.prop].inputValue"
|
||||||
v-bind="inputTagMap[item.prop].inputAttrs"
|
v-bind="inputTagMap[item.prop].inputAttrs"
|
||||||
@keyup.enter="handleInputConfirm(item.prop)"
|
@keyup.enter="handleInputConfirm(item.prop)"
|
||||||
@@ -105,8 +107,14 @@
|
|||||||
:underline="false"
|
:underline="false"
|
||||||
@click="isExpand = !isExpand"
|
@click="isExpand = !isExpand"
|
||||||
>
|
>
|
||||||
<template v-if="isExpand"> 收起<i-ep-arrow-up /> </template>
|
<template v-if="isExpand">
|
||||||
<template v-else> 展开<i-ep-arrow-down /> </template>
|
收起
|
||||||
|
<i-ep-arrow-up />
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
展开
|
||||||
|
<i-ep-arrow-down />
|
||||||
|
</template>
|
||||||
</el-link>
|
</el-link>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
@@ -16,14 +16,6 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
|||||||
pageSizes: [10, 20, 30, 50],
|
pageSizes: [10, 20, 30, 50],
|
||||||
},
|
},
|
||||||
indexAction: function (params) {
|
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);
|
return UserAPI.getPage(params);
|
||||||
},
|
},
|
||||||
deleteAction: UserAPI.deleteByIds,
|
deleteAction: UserAPI.deleteByIds,
|
||||||
|
|||||||
Reference in New Issue
Block a user