-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add app dot、appType safari Loading & bugfix
- Loading branch information
Showing
18 changed files
with
174 additions
and
92 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
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
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
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
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,63 @@ | ||
<!-- | ||
* @Author: tackchen | ||
* @Date: 2022-09-05 19:53:14 | ||
* @Description: Coding something | ||
--> | ||
<script setup lang="ts"> | ||
import { AppType, type App } from '@/core/apps/app'; | ||
defineEmits([ 'click' ]); | ||
defineProps<{ | ||
app: App, | ||
height: number, | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="app-block"> | ||
<span v-show="app.msgCount > 0" class="app-msg">{{ app.msgCount }}</span> | ||
<i v-if="app.appType===AppType.Link" class="el-link" /> | ||
<i v-else-if="app.appType===AppType.Web" class="ei-chrome" /> | ||
<img | ||
:src="app.icon" | ||
:style="{ | ||
'border-radius': app.iconRadius, | ||
scale: app.iconScale, | ||
height: height+'px' | ||
}" | ||
@click="$emit('click')" | ||
> | ||
</div> | ||
</template> | ||
|
||
<style lang="less"> | ||
.app-block{ | ||
position: relative; | ||
img{ | ||
filter: drop-shadow(1px 1px 1px #2229) drop-shadow(-1px 1px 1px #2229); | ||
} | ||
.app-msg, i{ | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
i{ | ||
filter: drop-shadow(1px 1px 1px #222d) drop-shadow(-1px 1px 1px #222d); | ||
right: -3px; | ||
bottom: -1px; | ||
font-size: 12px; | ||
} | ||
.app-msg{ | ||
background-color: rgb(237,57,47); | ||
font-size: 12px; | ||
line-height: 12px; | ||
min-width: 18px; | ||
border-radius: 10px; | ||
padding: 3px 4px; | ||
text-align: center; | ||
right: -5px; | ||
box-shadow: 1px 1px 1px #2229; | ||
top: -5px | ||
} | ||
} | ||
</style> |
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
Oops, something went wrong.