feat: 更新按钮文本格式和相关链接的显示样式

This commit is contained in:
Megghy
2025-09-26 23:12:24 +08:00
parent 83a6c36d57
commit 7c516559f1
4 changed files with 105 additions and 79 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -82,7 +82,7 @@
"devDependencies": {
"@types/bun": "^1.2.16",
"@types/file-saver": "^2.0.7",
"@types/jszip": "^3.10.6",
"@types/jszip": "^3.4.1",
"@types/uuid": "^10.0.0",
"@vicons/ionicons5": "^0.13.0",
"@vitejs/plugin-vue-jsx": "^4.2.0",

View File

@@ -781,17 +781,23 @@
size="small"
secondary
@click="moveVideo(item.id, 'up')"
>上移</NButton>
>
上移
</NButton>
<NButton
size="small"
secondary
@click="moveVideo(item.id, 'down')"
>下移</NButton>
>
下移
</NButton>
<NButton
type="warning"
size="small"
@click="removeVideo(item.id)"
>删除</NButton>
>
删除
</NButton>
</NSpace>
</template>
</NCard>
@@ -826,12 +832,16 @@
type="primary"
text
@click="confirmEditLink(name)"
>保存</NButton>
>
保存
</NButton>
<NButton
size="tiny"
text
@click="cancelEditLink"
>取消</NButton>
>
取消
</NButton>
</template>
<template v-else>
<NTooltip>
@@ -852,18 +862,24 @@
secondary
text
@click="moveLink(name, 'up')"
></NButton>
>
</NButton>
<NButton
size="tiny"
secondary
text
@click="moveLink(name, 'down')"
></NButton>
>
</NButton>
<NButton
size="tiny"
text
@click="startEditLink(name)"
>改名</NButton>
>
改名
</NButton>
<NPopconfirm @positive-click="removeLink(name)">
<template #trigger>
<NButton
@@ -1066,4 +1082,6 @@
</NButton>
</NFlex>
</NModal>
</nspin>
</ncard>
</template>

View File

@@ -157,12 +157,16 @@ export const Config = defineTemplateConfig([
<NButton
type="primary"
@click="navigate('https://space.bilibili.com/' + userInfo?.biliId)"
>个人主页</NButton>
>
个人主页
</NButton>
<NButton
type="primary"
secondary
@click="navigate('https://live.bilibili.com/' + userInfo?.biliRoomId)"
>直播间</NButton>
>
直播间
</NButton>
</NSpace>
<template v-if="orderedLinks.length > 0">
<NDivider> 相关链接 </NDivider>
@@ -186,7 +190,11 @@ export const Config = defineTemplateConfig([
</NFlex>
</template>
<template v-if="indexInfo.videos?.length || 0 > 0">
<NDivider><NText style="font-size:18px">相关视频</NText></NDivider>
<NDivider>
<NText style="font-size:18px">
相关视频
</NText>
</NDivider>
<NFlex justify="center">
<SimpleVideoCard
v-for="video in indexInfo.videos"