Blame view

src/components/calendar/panel/Date/date-panel-label.vue 786 Bytes
e80b805f   chenhaodong   初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <template>
      <span>
          <span v-if="datePanelLabel" v-show="datePanelLabel.labels[0].type === 'year' || currentView === 'date'" :class="[datePrefixCls + '-header-label']" @click="datePanelLabel.labels[0].handler">{{ datePanelLabel.labels[0].label }}</span>
          <template v-if="datePanelLabel && currentView === 'date'">{{ datePanelLabel.separator }}</template>
          <span v-if="datePanelLabel" v-show="datePanelLabel.labels[1].type === 'year' || currentView === 'date'" :class="[datePrefixCls + '-header-label']" @click="datePanelLabel.labels[1].handler">{{ datePanelLabel.labels[1].label }}</span>
      </span>
  </template>
  
  <script>
  export default {
      props: {
          datePanelLabel: Object,
          currentView: String,
          datePrefixCls: String
      }
  };
  </script>