<template>
	<view class="calendars">
		<uv-calendars ref="calendars" @confirm="confirm" />
	</view>
</template>

<script>
	export default {
		name: "Calendars",
		data() {
			return {

			}
		},
		methods: {
			//打开日历
			open() {
				this.$refs.calendars.open();
			},

			//用户选择了日期信息
			confirm(e) {
				this.$emit("select", e)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.calendars {
		&::v-deep .uv-calendar__header {
			border-bottom: none !important;
		}
	}
</style>