feat: 页面容器增加标题头

This commit is contained in:
niedongsheng 2026-04-07 13:44:00 +08:00
parent ff2f70d2f4
commit ea99d329e8

View File

@ -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 = () => {