feat: 修改crud组件默认开启自动触发搜索

This commit is contained in:
2025-04-01 17:40:49 +08:00
parent c779daebbc
commit f233fbb437

View File

@@ -150,11 +150,16 @@ import type { IObject, ISearchConfig } from "./types";
import dayjs from "dayjs";
// 定义接收的属性
const props = defineProps<{
searchConfig: ISearchConfig;
isOpenAutoSearch: Boolean;
watchKey: Array<string>;
}>();
const props = withDefaults(
defineProps<{
searchConfig: ISearchConfig;
isOpenAutoSearch: boolean;
watchKey: Array<string>;
}>(),
{
isOpenAutoSearch: true,
}
);
// 自定义事件
const emit = defineEmits<{
queryClick: [queryParams: IObject];