topInfoadd.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div id="topInfo">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="22" style="padding: 13px 0px;">
  6. <el-breadcrumb separator-class="el-icon-arrow-right">
  7. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  8. <el-breadcrumb-item>{{ topTitle }}</el-breadcrumb-item>
  9. </el-breadcrumb>
  10. </el-col>
  11. <el-col :span="2">
  12. <span v-if="display === 'block'">
  13. <el-button type="text" @click="addfinclaim()" icon="el-icon-plus">添加信息</el-button>
  14. </span>
  15. <span v-else></span>
  16. </el-col>
  17. </el-col>
  18. </el-row>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'topInfo',
  24. props: {
  25. topTitle: null,
  26. display: null,
  27. },
  28. components: {},
  29. data: () => ({}),
  30. created() {},
  31. computed: {},
  32. methods: {
  33. addfinclaim() {
  34. this.$emit('addfinclaim');
  35. },
  36. },
  37. };
  38. </script>
  39. <style lang="less" scoped></style>