-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@142vip/vitepress): 修改模块构建配置,支持
Vue
组件编译,新增VipContactAuthor
组件封装
- Loading branch information
Showing
8 changed files
with
771 additions
and
2 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 @@ | ||
export * from './dist/components' |
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,91 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
|
||
<template> | ||
<div class="contact-author"> | ||
<h2> | ||
联系作者 | ||
</h2> | ||
若系列文章对你有所帮助,欢迎订阅微信公众号或微信”骚扰“,获取更多内容。<strong>商务合作请备注来意</strong> | ||
<div class="wechat"> | ||
<img | ||
alt="关注微信公众号或添加好友联系储凡" | ||
class="wechat-img" | ||
src="https://cdn.statically.io/gh/142vip/cdn_service@main/media/main-code.png" title="关注微信公众号或添加好友联系储凡" | ||
width="auto" | ||
> | ||
</div> | ||
<div class="platform-link"> | ||
<a href="https://github.com/mmdapl" rel="nofollow noreferrer" target="_blank" title="点击跳转Github主页"> | ||
<img | ||
alt="CSDN" class="platform-img" src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/github.svg" | ||
title="CSDN" | ||
> | ||
</a> | ||
<a href="https://gitee.com/Mmdapl" rel="nofollow noreferrer" target="_blank" title="点击跳转码云主页"> | ||
<img | ||
alt="Gitee" class="platform-img" src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/gitee.svg" | ||
title="Gitee" | ||
> | ||
</a> | ||
<a | ||
href="https://juejin.im/user/448256476724807" rel="nofollow noreferrer" target="_blank" title="点击跳转掘金主页" | ||
> | ||
<img | ||
alt="掘金" class="platform-img" | ||
src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/juejin.svg" | ||
> | ||
</a> | ||
<a href="https://space.bilibili.com/350937042" rel="nofollow noreferrer" target="_blank" title="点击跳转B站主页"> | ||
<img | ||
alt="Bilibili" | ||
class="platform-img" | ||
src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/bilibili.svg" | ||
> | ||
</a> | ||
<a href="https://blog.csdn.net/Mmdapl" rel="nofollow noreferrer" target="_blank" title="点击跳转CSDN博客主页"> | ||
<img | ||
alt="CSDN" | ||
class="platform-img" src="https://cdn.statically.io/gh/142vip/cdn_service@main/main-vip/svg/csdn.svg" title="点击跳转CSDN博客主页" | ||
> | ||
</a> | ||
</div> | ||
|
||
<div> | ||
交流/加群/互看朋友圈、<strong>聊天/提问/建议/提需求</strong> 可以在公众号直接<strong>私信</strong>,有时间即会回复,偶尔的延迟和疏漏还请小伙伴们谅解,蟹蟹。 | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.contact-author { | ||
margin: 10px; | ||
} | ||
.wechat { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.wechat-img { | ||
text-align: center; | ||
align-items: center; | ||
margin: 10px; | ||
border-radius: 5px; | ||
} | ||
.platform-link { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 5px; | ||
margin-bottom: 10px; | ||
} | ||
.platform-img { | ||
margin: 5px; | ||
width: 24px; | ||
height: 24px; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import VipContactAuthor from './VipContactAuthor.vue' | ||
|
||
export { | ||
VipContactAuthor, | ||
} |
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
import type { Plugin } from 'vue' | ||
import * as components from './components' | ||
|
||
export * from './config' | ||
|
||
const install: Plugin = { | ||
install(app) { | ||
for (const key of Object.keys(components)) | ||
app.component(key, components[key as keyof typeof components]) | ||
}, | ||
} | ||
|
||
export default install |
Oops, something went wrong.