Skip to content

Commit

Permalink
feat: 平台列表新增 hover 提示
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Oct 27, 2023
1 parent 0706aea commit e700b0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/adaptors/web/base/baseWebApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class BaseWebApi extends WebApi {
}

// web 适配器专有

public updateCfg(cfg: WebConfig) {
this.cfg = cfg
}
Expand Down
14 changes: 11 additions & 3 deletions src/components/set/PublishSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import {
deletePlatformByKey,
DynamicConfig,
DynamicJsonCfg,
getDynCfgByKey,
isDynamicKeyExists,
PlatformType,
replacePlatformByKey,
Expand Down Expand Up @@ -64,7 +63,7 @@ const logger = createAppLogger("publish-setting")
const { t } = useVueI18n()
const router = useRouter()
const { getSetting, updateSetting, deleteKey } = useSettingStore()
const { platformTypeList } = usePlatformDefine()
const { platformTypeList, getPrePlatformList } = usePlatformDefine()
const { isInSiyuanWidget, isInChromeExtension } = useSiyuanDevice()

// datas
Expand Down Expand Up @@ -466,7 +465,12 @@ onMounted(async () => {
<el-card class="platform-right-card">
<img :src="p.img" class="image" alt="" />
<div class="right-card-text">
<span>{{ p.title }}</span>
<el-tooltip placement="bottom">
<template #content>
<span v-for="item in getPrePlatformList(p.type)"> {{ item.platformName }}<br /> </span>
</template>
<span class="platform-title">{{ p.title }}</span>
</el-tooltip>
<div>
<div class="text-desc">{{ p.description }}</div>
<div class="add-btn">
Expand Down Expand Up @@ -834,6 +838,10 @@ html[class="dark"]
line-height 32px
width calc(100% - 180px)

.platform-title
cursor pointer
color var(--el-color-primary)

.text-desc
font-size 12px
line-height 18px
Expand Down

0 comments on commit e700b0d

Please sign in to comment.