-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: #285 支持生成ankilink牌组标记-列表新增牌组标记管理按钮
- Loading branch information
Showing
4 changed files
with
239 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div id="post-detail-body"> | ||
<el-page-header :icon="ArrowLeft" title="返回" @click="onBack"> | ||
<template #content> | ||
<div class="flex items-center"> | ||
<span class="text-large font-600 mr-3" :title="props.post.title"> | ||
{{ shortTitle }} - Anki | ||
</span> | ||
</div> | ||
</template> | ||
</el-page-header> | ||
|
||
<div class="post-detail-content-box"> | ||
<anki-index :page-id="props.post.postid" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { Post } from "~/utils/models/post" | ||
import { getByLength } from "~/utils/strUtil" | ||
import { onMounted, ref } from "vue" | ||
import { getPublishCfg } from "~/utils/publishUtil" | ||
import { parseBoolean } from "~/utils/util" | ||
import { ArrowLeft } from "@element-plus/icons-vue" | ||
import AnkiIndex from "~/components/anki/AnkiIndex.vue" | ||
const props = defineProps({ | ||
post: { | ||
type: Post, | ||
default: new Post(), | ||
}, | ||
}) | ||
const emits = defineEmits(["on-change"]) | ||
const shortTitle = getByLength(props.post?.title, 18, false) | ||
const isNewWin = ref(true) | ||
const onBack = () => { | ||
emits("on-change") | ||
} | ||
onMounted(() => { | ||
const publishCfg = getPublishCfg() | ||
isNewWin.value = parseBoolean(publishCfg.newWin) | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div id="post-detail-body"> | ||
<el-page-header :icon="ArrowLeft" title="返回" @click="onBack"> | ||
<template #content> | ||
<div class="flex items-center"> | ||
<span class="text-large font-600 mr-3" :title="props.post.title"> | ||
{{ shortTitle }} - Picgo | ||
</span> | ||
</div> | ||
</template> | ||
</el-page-header> | ||
|
||
<div class="post-detail-content-box"> | ||
<picgo-index /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { Post } from "~/utils/models/post" | ||
import { getByLength } from "~/utils/strUtil" | ||
import { onMounted, ref } from "vue" | ||
import { getPublishCfg } from "~/utils/publishUtil" | ||
import { parseBoolean } from "~/utils/util" | ||
import { ArrowLeft } from "@element-plus/icons-vue" | ||
import PicgoIndex from "~/components/picgo/PicgoIndex.vue" | ||
const props = defineProps({ | ||
post: { | ||
type: Post, | ||
default: new Post(), | ||
}, | ||
}) | ||
const emits = defineEmits(["on-change"]) | ||
const shortTitle = getByLength(props.post?.title, 18, false) | ||
const isNewWin = ref(true) | ||
const onBack = () => { | ||
emits("on-change") | ||
} | ||
onMounted(() => { | ||
const publishCfg = getPublishCfg() | ||
isNewWin.value = parseBoolean(publishCfg.newWin) | ||
}) | ||
</script> |