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