<template> <calendar :show.sync="show" :value.sync="value" :begin="begin" :end="end" :range="range"></calendar> </template> <script> module.exports = { data: function() { return { type:"datetime", //date datetime value:"2015-12-11", begin:"2015-12-20", end:"2015-12-25" } }, components:{ calendar: require('./calendar.vue') } } </script>