This commit is contained in:
2025-04-21 19:57:04 +08:00
parent 03190e0662
commit eab81e29df
7 changed files with 40 additions and 30 deletions

View File

@@ -28,6 +28,7 @@ const {config, title, buttonCol, formBottom} = defineProps({
const from = defineModel('from');
const reset = () => {
console.log(from.value)
Object.keys(from.value).forEach(key => {
from.value[key] = null;
});
@@ -69,6 +70,7 @@ const reset = () => {
<template v-if="item.type === FROM_TYPE.DATETIME">
<a-range-picker
v-model:model-value="from[item.key]"
class="w-full"
@change="(v) => {
from[item.start] = v[0];