<template>
    <view class="van-calendar__header">
        <block v-if="showTitle">
            <view class="van-calendar__header-title"><slot name="title"></slot></view>
            <view class="van-calendar__header-title">{{ title }}</view>
        </block>

        <view v-if="showSubtitle" class="van-calendar__header-subtitle">
            {{ subtitle }}
        </view>

        <view class="van-calendar__weekdays">
            <view class="van-calendar__weekday" v-for="(item, index) in weekdays" :key="index">
                {{ item }}
            </view>
        </view>
    </view>
</template>

<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
    value: true
});
var component_1 = require('../../../common/component');
component_1.VantComponent({
    props: {
        title: {
            type: String,
            value: '日期选择'
        },
        subtitle: String,
        showTitle: Boolean,
        showSubtitle: Boolean
    },
    data: {
        weekdays: ['日', '一', '二', '三', '四', '五', '六']
    },
    methods: {}
});
</script>
<style>
@import './index.css';
</style>
