️ 一些优化

This commit is contained in:
目棃
2024-02-07 13:20:48 +08:00
parent fa891a6884
commit 82cdee00e7
6 changed files with 20 additions and 17 deletions

View File

@@ -213,6 +213,7 @@ async function getTokenWeb(cookie: string): Promise<void> {
await TGLogger.Error("[tc-userBadge][getTokenWeb] 获取 cookie 失败");
return;
}
await TGSqlite.saveAppData("cookie", JSON.stringify(cookieUser));
showSnackbar({
text: "登录成功!",
color: "success",

View File

@@ -74,7 +74,7 @@
/>
</slot>
<slot name="inner-text">
<span>{{ modelValue.innerText }}</span>
<span :title="modelValue.innerText">{{ modelValue.innerText }}</span>
</slot>
</div>
</div>
@@ -208,6 +208,13 @@ const props = defineProps<TItemBoxProps>();
margin-right: 5px;
}
.tib-inner span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.tib-outer {
position: absolute;
bottom: 0;

View File

@@ -101,10 +101,8 @@ onUnmounted(() => {
justify-content: center;
padding: 10px;
border-radius: 5px;
background: var(--box-bg-2);
background-image: v-bind(bg);
background: var(--common-shadow-t-4) v-bind(bg) no-repeat;
background-position-x: right;
background-repeat: no-repeat;
background-size: cover;
}
@@ -150,5 +148,6 @@ onUnmounted(() => {
.tur-ws-sub :nth-last-child(2) {
color: var(--tgc-yellow-1);
font-family: var(--font-title);
}
</style>

View File

@@ -16,7 +16,7 @@ const props = defineProps<TwoConvertProps>();
const textColor = computed(() => {
if (!props.data || !props.data.days) return "var(--tgc-blue-2)";
const day = new Date().getDay();
if (props.data.days.includes(day)) return "var(--tgc-pink-1)";
if (props.data.days.includes(day.toString())) return "var(--tgc-pink-1)";
return "var(--tgc-blue-2)";
});
</script>