feat: 修改crud组件默认开启自动触发搜索
This commit is contained in:
parent
c779daebbc
commit
f233fbb437
|
|
@ -150,11 +150,16 @@ import type { IObject, ISearchConfig } from "./types";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
// 定义接收的属性
|
// 定义接收的属性
|
||||||
const props = defineProps<{
|
const props = withDefaults(
|
||||||
searchConfig: ISearchConfig;
|
defineProps<{
|
||||||
isOpenAutoSearch: Boolean;
|
searchConfig: ISearchConfig;
|
||||||
watchKey: Array<string>;
|
isOpenAutoSearch: boolean;
|
||||||
}>();
|
watchKey: Array<string>;
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
isOpenAutoSearch: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
// 自定义事件
|
// 自定义事件
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
queryClick: [queryParams: IObject];
|
queryClick: [queryParams: IObject];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue