<template>
<div class="block">
<span class="demonstration">起始日期時刻為 12:00:00</span>
<el-date-picker
v-model="value6"
@change="dateChangebirthday1"
type="datetimerange"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
start-placeholder="開始日期"
end-placeholder="結束日期"
:default-time="['12:00:00']"
></el-date-picker>
</div>
</template>
<script>
export default {
data() {
return {
value6: "",
startTime: ""
};
},
methods: {
dateChangebirthday1(val) {
this.startTime = val;
console.log(this.startTime);
}
}
};
</script>