forked from opentiny/tiny-vue
32 lines
696 B
Vue
32 lines
696 B
Vue
<template>
|
||
<div>
|
||
<p>左对齐:</p>
|
||
<div class="demo-date-picker-wrap">
|
||
<tiny-date-picker v-model="value" align="left"></tiny-date-picker>
|
||
</div>
|
||
|
||
<p>居中对齐:</p>
|
||
<div class="demo-date-picker-wrap">
|
||
<tiny-date-picker v-model="value" align="center"></tiny-date-picker>
|
||
</div>
|
||
|
||
<p>右对齐:</p>
|
||
<div class="demo-date-picker-wrap">
|
||
<tiny-date-picker v-model="value" align="right"></tiny-date-picker>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { ref } from 'vue'
|
||
import { DatePicker as TinyDatePicker } from '@opentiny/vue'
|
||
|
||
const value = ref('')
|
||
</script>
|
||
|
||
<style scoped>
|
||
.demo-date-picker-wrap {
|
||
width: 350px;
|
||
}
|
||
</style>
|