feat:优化时间范围的变量、方法的命名,和代码生成器进一步统一
This commit is contained in:
@@ -71,6 +71,10 @@ const emit = defineEmits<{
|
||||
}>()
|
||||
|
||||
const visible = ref(false)
|
||||
const formData = reactive<SearchFormData>({
|
||||
userId: undefined,
|
||||
applicationName: undefined,
|
||||
})
|
||||
|
||||
/** 搜索条件 placeholder 拼接 */
|
||||
const searchPlaceholder = computed(() => {
|
||||
@@ -84,11 +88,6 @@ const searchPlaceholder = computed(() => {
|
||||
return conditions.length > 0 ? conditions.join(' | ') : '搜索日志'
|
||||
})
|
||||
|
||||
const formData = reactive<SearchFormData>({
|
||||
userId: undefined,
|
||||
applicationName: undefined,
|
||||
})
|
||||
|
||||
/** 监听弹窗打开,同步外部参数 */
|
||||
watch(visible, (val) => {
|
||||
if (val && props.searchParams) {
|
||||
|
||||
Reference in New Issue
Block a user