123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <template>
- <div class="page-header">
- <div class="page-header-index-wide">
- <s-breadcrumb />
- </div>
- </div>
- </template>
- <script>
- import Breadcrumb from '@/components/tools/Breadcrumb'
- export default {
- name: 'PageHeader',
- components: {
- 's-breadcrumb': Breadcrumb
- },
- props: {
- title: {
- type: [String, Boolean],
- default: true,
- required: false
- },
- logo: {
- type: String,
- default: '',
- required: false
- },
- avatar: {
- type: String,
- default: '',
- required: false
- }
- },
- data () {
- return {}
- }
- }
- </script>
- <style lang="less" scoped>
- .page-header {
- padding: 0 15px 0;
- .breadcrumb {
- margin-bottom: 0;
- }
- }
- .mobile .page-header {
- .main {
- .row {
- flex-wrap: wrap;
- .avatar {
- flex: 0 1 25%;
- margin: 0 2% 8px 0;
- }
- .content,
- .headerContent {
- flex: 0 1 70%;
- .link {
- margin-top: 16px;
- line-height: 24px;
- a {
- font-size: 14px;
- margin-right: 10px;
- }
- }
- }
- .extra {
- flex: 1 1 auto;
- margin-left: 0;
- min-width: 0;
- text-align: right;
- }
- .action {
- margin-left: unset;
- min-width: 266px;
- flex: 0 1 auto;
- text-align: left;
- margin-bottom: 12px;
- &:empty {
- display: none;
- }
- }
- }
- }
- }
- </style>
|