You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
623 B
31 lines
623 B
1 month ago
|
<template>
|
||
|
<div class="el-page-header">
|
||
|
<div class="el-page-header__left" @click="$emit('back')">
|
||
|
<i class="el-icon-back"></i>
|
||
|
<div class="el-page-header__title">
|
||
|
<slot name="title">{{ title }}</slot>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="el-page-header__content">
|
||
|
<slot name="content">{{ content }}</slot>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import { t } from 'element-ui/src/locale';
|
||
|
export default {
|
||
|
name: 'ElPageHeader',
|
||
|
|
||
|
props: {
|
||
|
title: {
|
||
|
type: String,
|
||
|
default() {
|
||
|
return t('el.pageHeader.title');
|
||
|
}
|
||
|
},
|
||
|
content: String
|
||
|
}
|
||
|
};
|
||
|
</script>
|