mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-16 02:11:48 +08:00
45 lines
826 B
Vue
45 lines
826 B
Vue
|
<template>
|
||
|
<div class="demo-range">
|
||
|
<el-time-picker
|
||
|
v-model="value1"
|
||
|
is-range
|
||
|
range-separator="To"
|
||
|
start-placeholder="Start time"
|
||
|
end-placeholder="End time"
|
||
|
>
|
||
|
</el-time-picker>
|
||
|
<el-time-picker
|
||
|
v-model="value2"
|
||
|
is-range
|
||
|
arrow-control
|
||
|
range-separator="To"
|
||
|
start-placeholder="Start time"
|
||
|
end-placeholder="End time"
|
||
|
>
|
||
|
</el-time-picker>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
value1: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
|
||
|
value2: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.demo-range {
|
||
|
.el-date-editor {
|
||
|
margin: 8px;
|
||
|
}
|
||
|
|
||
|
.el-range-separator {
|
||
|
box-sizing: content-box;
|
||
|
}
|
||
|
}
|
||
|
</style>
|