<template>
  <div>
    <div class="q-pa-sm">
      <q-btn dense @click="showonly=!showonly" label="只读" :outline="!showonly" color="primary" />
      <q-btn dense @click="today()" class="q-mx-sm" label="设置为今天" color="primary" />
    </div>
    <q-separator />

    <kyb-date type="dateTime" v-model="v" :showonly="showonly"></kyb-date>
    选择的值：{{v}}
    <kyb-date type="date" v-model="d" :showonly="showonly"></kyb-date>
    选择的值：{{d}}
    <kyb-date type="time" v-model="t" :showonly="showonly"></kyb-date>
    选择的值：{{t}}
  </div>
</template>
<style>
</style>
<script>
// import _ from 'underscore'
// import KTest from 'components/k-test'
let d = {
  data: function() {
    return {
      showonly: false,
      v: null,
      d: null,
      t: null,
      section1: null,
      section2: null,
      section3: null
    }
  },
  computed: {},
  methods: {
    input(a) {
      this.value = a
    },
    today() {
      this.v = new Date().getTime()
      this.d = new Date().getTime()
      this.t = new Date().getTime()
    }
  }
}
export default d
</script>
