From 8530f48088dc5ffa201bcc932e8816ad4779ca75 Mon Sep 17 00:00:00 2001 From: Jason <5340635+wen-jason@user.noreply.gitee.com> Date: Mon, 15 Aug 2022 09:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=B6=E9=97=B4=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../index.vue | 20 +++++++++---------- .../views/template/serach_item/datetime.vue | 6 ++++++ 2 files changed, 16 insertions(+), 10 deletions(-) rename admin/src/components/{data-picker => daterange-picker}/index.vue (61%) create mode 100644 admin/src/views/template/serach_item/datetime.vue diff --git a/admin/src/components/data-picker/index.vue b/admin/src/components/daterange-picker/index.vue similarity index 61% rename from admin/src/components/data-picker/index.vue rename to admin/src/components/daterange-picker/index.vue index 64897e1c..9f975316 100644 --- a/admin/src/components/data-picker/index.vue +++ b/admin/src/components/daterange-picker/index.vue @@ -17,27 +17,27 @@ import { withDefaults, computed } from 'vue' /* Props S */ const props = withDefaults( defineProps<{ - start_time?: string - end_time?: string + startTime?: string + endTime?: string }>(), { - start_time: '', - end_time: '' + startTime: '', + endTime: '' } ) -const emit = defineEmits(['update:start_time', 'update:end_time']) +const emit = defineEmits(['update:startTime', 'update:endTime']) const content = computed({ get: () => { - return [props.start_time, props.end_time] + return [props.startTime, props.endTime] }, set: (value: Event | any) => { if (value === null) { - emit('update:start_time', '') - emit('update:end_time', '') + emit('update:startTime', '') + emit('update:endTime', '') } else { - emit('update:start_time', value[0]) - emit('update:end_time', value[1]) + emit('update:startTime', value[0]) + emit('update:endTime', value[1]) } } }) diff --git a/admin/src/views/template/serach_item/datetime.vue b/admin/src/views/template/serach_item/datetime.vue new file mode 100644 index 00000000..3067a8d2 --- /dev/null +++ b/admin/src/views/template/serach_item/datetime.vue @@ -0,0 +1,6 @@ + + +