mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
chore: 更新eslint相关依赖并作兼容处理
This commit is contained in:
@@ -3,7 +3,7 @@ import { ref } from "vue";
|
||||
|
||||
// 声明 props 类型
|
||||
export interface FormProps {
|
||||
formInline: {
|
||||
formInline?: {
|
||||
user: string;
|
||||
region: string;
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useVModel } from "@vueuse/core";
|
||||
|
||||
// 声明 props 类型
|
||||
export interface FormProps {
|
||||
data: string;
|
||||
data?: string;
|
||||
}
|
||||
|
||||
// 声明 props 默认值
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ref } from "vue";
|
||||
|
||||
// 声明 props 类型
|
||||
export interface FormProps {
|
||||
formInline: {
|
||||
formInline?: {
|
||||
user: string;
|
||||
region: string;
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useVModel } from "@vueuse/core";
|
||||
|
||||
// 声明 props 类型
|
||||
export interface FormProps {
|
||||
data: string;
|
||||
data?: string;
|
||||
}
|
||||
|
||||
// 声明 props 默认值
|
||||
|
||||
@@ -73,7 +73,7 @@ export function useColumns(selectRef: Ref, formRef: Ref, tableRef: Ref) {
|
||||
const onSearch = () => {
|
||||
tableData.value = cloneTableData;
|
||||
if (!isAllEmpty(searchForm.sexValue)) {
|
||||
let sex = sexOptions
|
||||
const sex = sexOptions
|
||||
.map(sex => sex.value === Number(searchForm.sexValue) && sex.label)
|
||||
.filter(Boolean)[0];
|
||||
tableData.value = tableData.value.filter(data => data.sex === sex);
|
||||
|
||||
Reference in New Issue
Block a user