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": { "devDependencies": {
"@types/bun": "^1.2.16", "@types/bun": "^1.2.16",
"@types/file-saver": "^2.0.7", "@types/file-saver": "^2.0.7",
"@types/jszip": "^3.10.6", "@types/jszip": "^3.4.1",
"@types/uuid": "^10.0.0", "@types/uuid": "^10.0.0",
"@vicons/ionicons5": "^0.13.0", "@vicons/ionicons5": "^0.13.0",
"@vitejs/plugin-vue-jsx": "^4.2.0", "@vitejs/plugin-vue-jsx": "^4.2.0",

View File

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

View File

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