|
|
@ -1,21 +1,13 @@ |
|
|
|
<!-- |
|
|
|
* @Author: your name |
|
|
|
* @Date: 2021-07-19 11:35:03 |
|
|
|
* @LastEditTime: 2021-07-20 10:12:34 |
|
|
|
* @LastEditors: aBin |
|
|
|
* @Description: In User Settings Edit |
|
|
|
* @FilePath: \TALL-MUI-3\src\components\Title\titleBar.vue |
|
|
|
--> |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<u-navbar back-text="返回"> |
|
|
|
<view class="flex justify-center flex-1"> |
|
|
|
<view v-if="true">{{ title }}</view> |
|
|
|
<view v-if="Istrue">{{ title }}</view> |
|
|
|
<view v-else>{{ titleBar }}</view> |
|
|
|
</view> |
|
|
|
<view class="mr-2" slot="right"> |
|
|
|
<u-icon class="m-1" name="checkmark-circle"></u-icon> |
|
|
|
<u-icon class="m-1" name="reload"> </u-icon> |
|
|
|
<u-icon class="m-1" name="reload"></u-icon> |
|
|
|
<u-icon class="m-1" name="home"></u-icon> |
|
|
|
<u-icon class="m-1" name="more-dot-fill"></u-icon> |
|
|
|
</view> |
|
|
@ -29,10 +21,17 @@ export default { |
|
|
|
return { |
|
|
|
title: '加载中...', |
|
|
|
titleBar: '项目名称', |
|
|
|
Istrue: 'false', |
|
|
|
Istrue: true, |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: {}, |
|
|
|
mounted() { |
|
|
|
this.getTitle(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getTitle() { |
|
|
|
this.Istrue = !this.Istrue; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|