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

<script>
export default {
  name: 'topInfo',
  props: {
    title: null,
    isleftarrow: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    onClickLeft() {
      // 点击回退的时候当做地址回退
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
// .topInfos {
// }
/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>
