55 lines
923 B
Vue
55 lines
923 B
Vue
|
|
<template>
|
|||
|
|
<view class="custom-navbar">
|
|||
|
|
<view class="navbar-content">
|
|||
|
|
<text class="nav-btn" @click="handleCancel">‹</text>
|
|||
|
|
<text class="nav-title">{{ title }}</text>
|
|||
|
|
<text class="nav-btn" style="opacity: 0;">占位</text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</template>
|
|||
|
|
|
|||
|
|
<script setup>
|
|||
|
|
defineProps({
|
|||
|
|
title: {
|
|||
|
|
type: String,
|
|||
|
|
default: '客户信息'
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
const emit = defineEmits(['cancel']);
|
|||
|
|
|
|||
|
|
const handleCancel = () => {
|
|||
|
|
emit('cancel');
|
|||
|
|
};
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<style lang="scss" scoped>
|
|||
|
|
.custom-navbar {
|
|||
|
|
background-color: #fff;
|
|||
|
|
padding-top: var(--status-bar-height);
|
|||
|
|
border-bottom: 1px solid #eee;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.navbar-content {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: space-between;
|
|||
|
|
height: 44px;
|
|||
|
|
padding: 0 16px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.nav-btn {
|
|||
|
|
font-size: 20px;
|
|||
|
|
color: #333;
|
|||
|
|
min-width: 44px;
|
|||
|
|
text-align: center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.nav-title {
|
|||
|
|
font-size: 18px;
|
|||
|
|
font-weight: 600;
|
|||
|
|
color: #333;
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
|