chore: 优化了标题展示和大小样式

This commit is contained in:
奔跑的面条 2022-06-03 11:19:29 +08:00
parent 077881e499
commit 06fe805736
3 changed files with 10 additions and 3 deletions

View File

@ -5,7 +5,9 @@
</n-icon>
<n-text @click="handleFocus">
工作空间 -
<n-button v-show="!focus" secondary round size="tiny">{{ comTitle }}</n-button>
<n-button v-show="!focus" secondary round size="tiny">
<span class="title">{{ comTitle }}</span>
</n-button>
</n-text>
<n-input
@ -72,3 +74,8 @@ const handleBlur = async () => {
}
}
</script>
<style lang="scss" scoped>
.title {
font-size: 15px;
}
</style>

View File

@ -26,7 +26,7 @@
<template #action>
<div class="go-flex-items-center list-footer" justify="space-between">
<n-text class="go-ellipsis-1">
{{ cardData.title || '' }}
{{ cardData.title || cardData.id || '未命名' }}
</n-text>
<!-- 工具 -->
<div class="go-flex-items-center list-footer-ri">

View File

@ -11,7 +11,7 @@
<n-space class="list-content-top go-px-0" justify="center">
<n-space>
<n-text>
{{ cardData?.title || '' }}
{{ cardData?.title || cardData?.id || '未命名' }}
</n-text>
</n-space>
</n-space>