docs_vue2/one/docs/demo/time-picker/datasource.vue
2020-08-13 11:47:56 +08:00

38 lines
639 B
Vue

<template>
<article>
<veui-time-picker
mode="hour"
:hours="[2, 4, 6, 8, 10, 12, 14, 16]"
/>
<veui-time-picker
mode="minute"
:hours="[2, 4, 6, 8, 10, 12, 14, 16]"
:minutes="[0, 10, 20, 30, 40, 50]"
/>
<veui-time-picker
mode="second"
:hours="[2, 4, 6, 8, 10, 12, 14, 16]"
:minutes="[0, 10, 20, 30, 40, 50]"
:seconds="[0, 10, 20, 30, 40, 50]"
/>
</article>
</template>
<script>
import { TimePicker } from 'veui'
export default {
components: {
'veui-time-picker': TimePicker
}
}
</script>
<style lang="less" scoped>
.veui-time-picker {
& + & {
margin-left: 20px;
}
}
</style>