tiny-vue/examples/sites/demos/pc/app/date-picker/align-composition-api.vue

32 lines
696 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>