feat: support click on the tip icon to go to edit page (#448)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/450/head
Ryan Wang 2022-02-21 17:47:25 +08:00 committed by GitHub
parent e8275370c4
commit 928b949a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -185,6 +185,7 @@
theme="twoTone"
twoToneColor="#52c41a"
type="info-circle"
@click="handleEditClick(item)"
/>
</a-tooltip>
<a-tooltip
@ -261,6 +262,7 @@
theme="twoTone"
twoToneColor="#52c41a"
type="info-circle"
@click="handleEditClick(record)"
/>
</a-tooltip>
<a-tooltip

View File

@ -78,6 +78,17 @@
<div
style="max-width: 300px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
>
<a-tooltip v-if="item.inProgress" placement="top" title="当前有内容已保存,但还未发布。">
<a-icon
class="cursor-pointer"
style="margin-right: 3px"
theme="twoTone"
twoToneColor="#52c41a"
type="info-circle"
@click="handleEditClick(item)"
/>
</a-tooltip>
<a-tooltip v-if="item.status === 'PUBLISHED'" :title="'点击访问【' + item.title + '】'" placement="top">
<a :href="item.fullPath" class="no-underline" target="_blank">
{{ item.title }}
@ -125,6 +136,7 @@
theme="twoTone"
twoToneColor="#52c41a"
type="info-circle"
@click="handleEditClick(record)"
/>
</a-tooltip>
<a-tooltip v-if="record.status === 'PUBLISHED'" :title="'点击访问【' + text + '】'" placement="top">