Browse Source

feat: 标题栏变化

develop
unknown 4 years ago
parent
commit
c0fcd9dd0e
  1. 1
      CHANGELOG.md
  2. 18
      src/components/Title/Title.vue

1
CHANGELOG.md

@ -16,6 +16,7 @@
### 🎨 代码样式
范围|描述|commitId
--|--|--
- | 更新代码 | [8c27e68](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/8c27e68)
- | 更新代码 | [1f40a76](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/1f40a76)
- | 任务快捷方式图标增加 | [4aba872](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/4aba872)
- | 图标修改 | [54bca09](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/54bca09)

18
src/components/Title/Title.vue

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-07-19 11:35:03
* @LastEditTime: 2021-07-19 18:37:13
* @LastEditTime: 2021-07-20 14:08:56
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \TALL-MUI-3\src\components\Title\titleBar.vue
@ -10,8 +10,8 @@
<view>
<u-navbar back-text="返回">
<view class="flex justify-center flex-1">
<view v-if="true">{{ title }}</view>
<view v-else>{{ titleBar }}</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>
@ -20,7 +20,6 @@
<u-icon class="m-1" name="more-dot-fill"></u-icon>
</view>
</u-navbar>
你好
</view>
</template>
<script>
@ -30,10 +29,17 @@ export default {
return {
title: '加载中...',
titleBar: '项目名称',
Istrue: 'false',
Istrue: true,
};
},
methods: {},
mounted() {
this.getTitle();
},
methods: {
getTitle() {
this.Istrue = !this.Istrue;
},
},
};
</script>

Loading…
Cancel
Save