This commit is contained in:
Your Name
2026-03-01 14:17:59 +08:00
parent 65aa12f146
commit a07e844c47
6071 changed files with 777651 additions and 0 deletions
@@ -0,0 +1,40 @@
<template>
<el-date-picker
v-model="content"
type="datetimerange"
range-separator="-"
start-placeholder="开始时间"
end-placeholder="结束时间"
value-format="YYYY-MM-DD HH:mm:ss"
clearable
></el-date-picker>
</template>
<script lang="ts" setup>
const props = withDefaults(
defineProps<{
startTime?: string
endTime?: string
}>(),
{
startTime: '',
endTime: ''
}
)
const emit = defineEmits(['update:startTime', 'update:endTime'])
const content = computed<any>({
get: () => {
return [props.startTime, props.endTime]
},
set: (value: Event | any) => {
if (value === null) {
emit('update:startTime', '')
emit('update:endTime', '')
} else {
emit('update:startTime', value[0])
emit('update:endTime', value[1])
}
}
})
</script>