feat: 页面容器增加标题头
This commit is contained in:
parent
ff2f70d2f4
commit
ea99d329e8
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="page-container">
|
||||
<van-nav-bar title="气象预警" fixed left-arrow @click-left="onClickLeft" />
|
||||
<van-nav-bar :title="title" fixed left-arrow @click-left="onClickLeft" />
|
||||
<div class="page-content-wrapper">
|
||||
<slot></slot>
|
||||
</div>
|
||||
@ -10,6 +10,13 @@
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['back'])
|
||||
|
||||
const onClickLeft = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user