<template>
  <div id="topInfo">
    <el-row>
      <el-col :span="24" class="topInfos">
        <van-nav-bar title="日程安排" left-text="返回" right-text="请假" left-arrow fixed @click-left="onClickLeft" @click-right="onClickRight" />
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'topInfo',
  props: {},
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    onClickLeft() {
      Toast('返回');
    },
    onClickRight() {
      this.$router.push({ path: '/user/leaveDetail' });
    },
  },
};
</script>

<style lang="less" scoped>
/deep/.van-nav-bar {
  background: #2c69fe;
}
/deep/.van-nav-bar__title {
  color: #fff;
}
/deep/.van-nav-bar__text {
  color: #fff;
}
/deep/.van-nav-bar .van-icon {
  color: #fff;
}
</style>
