Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): vite-press new component (#10346)
* Add a new component for prompting typing.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
docs/.vitepress/vitepress/components/globals/vp-api-typing.vue
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,26 @@ | ||
<script setup lang="ts"> | ||
import { Warning } from '@element-plus/icons-vue' | ||
defineProps({ | ||
type: String, | ||
details: String, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<span class="flex items-center"> | ||
<span class="api-typing"> | ||
{{ type }} | ||
</span> | ||
<el-tooltip effect="light" trigger="click"> | ||
<el-button text :icon="Warning" class="p-2 text-5" /> | ||
<template #content> | ||
<div class="m-1"> | ||
<code> | ||
{{ details }} | ||
</code> | ||
</div> | ||
</template> | ||
</el-tooltip> | ||
</span> | ||
</template> |
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