Skip to content

Commit

Permalink
feat: 增加导航
Browse files Browse the repository at this point in the history
  • Loading branch information
dxhuii committed Apr 20, 2024
1 parent d50f10e commit 9cab477
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import dxhuii from '@dxhuii/eslint-config'
import antfu from '@antfu/eslint-config'

export default antfu({vue: true, unocss: true, formatters: true, typescript: true }, dxhuii({}), {
export default antfu({ vue: true, unocss: true, formatters: true, typescript: true }, dxhuii(), {
ignores: [
'dist',
'.umi',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.0.4",
"engines": {
"node": "20.12.2"
},
Expand Down
10 changes: 9 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ const list = [{
icon: 'i-twemoji-delivery-truck',
desc: '批量删除新浪微博的小工具',
target: '_blank'
},
{
title: 'Hello Nav!',
href: 'https://hello-nav.cms.im/',
icon: 'https://hello-nav.cms.im/favicon/favicon-192.png',
desc: '面向开发人员的导航',
target: '_blank'
}
]
</script>
Expand Down Expand Up @@ -73,7 +80,8 @@ const list = [{
</div>
</div>
<div ml-4 text-4xl op-75>
<div :class="item.icon" />
<img v-if="item.icon.includes('https')" w10 h10 :src="item.icon" :alt="item.title">
<div v-else :class="item.icon" />
</div>
</div>
</NuxtLink>
Expand Down

0 comments on commit 9cab477

Please sign in to comment.