<template>
  <div id="topInfo">
    <el-row>
      <el-col :span="24">
        <el-col :span="22" style="padding: 13px 0px;">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>{{ topTitle }}</el-breadcrumb-item>
          </el-breadcrumb>
        </el-col>
        <el-col :span="2">
          <el-button type="text" @click="clickBtn()" icon="el-icon-plus">添加信息</el-button>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'topInfo',
  props: {
    topTitle: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    clickBtn() {
      this.$emit('clickBtn');
    },
  },
};
</script>

<style lang="less" scoped></style>
