Use shiki as code highlighter (#521)

This commit is contained in:
Ryan Wang
2025-10-29 18:18:23 +08:00
committed by GitHub
parent ec35171d48
commit 461b7e089e
63 changed files with 823 additions and 141 deletions

View File

@@ -7,7 +7,7 @@ description: 元数据表单组件
## 使用示例
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -7,7 +7,7 @@ description: 附件文件类型图标组件
## 使用示例
```html
```vue
<script lang="ts" setup></script>
<template>

View File

@@ -11,7 +11,7 @@ description: 附件选择组件
## 使用示例
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -5,7 +5,7 @@ description: 过滤器清除按钮组件
## 使用示例
```html
```vue
<script lang="ts" setup>
function onClear () {
console.log("clear")

View File

@@ -7,7 +7,7 @@ description: 过滤器下拉组件
## 使用示例
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -7,7 +7,7 @@ description: 权限判断组件
## 使用方式
```html
```vue
<script lang="ts" setup>
import { VButton } from "@halo-dev/components"
</script>

View File

@@ -17,7 +17,7 @@ pnpm install @halo-dev/components
在 Vue 组件中:
```html
```vue
<script lang="ts" setup>
import { VButton } from "@halo-dev/components";
</script>

View File

@@ -7,7 +7,7 @@ description: 插件详情弹窗组件
## 使用方式
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -7,7 +7,7 @@ description: 搜索输入框组件
## 使用方式
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -5,7 +5,7 @@ description: 文件上传组件
## 使用方式
```html
```vue
<script lang="ts" setup>
const policyName = ref('my-test-policy')
const groupName = ref('my-test-group')

View File

@@ -7,7 +7,7 @@ description: 代码编辑器组件
## 使用方式
```html
```vue
<script lang="ts" setup>
import { ref } from "vue"

View File

@@ -7,7 +7,7 @@ description: 权限指令
## 使用方式
```html
```vue
<script lang="ts" setup>
import { VButton } from "@halo-dev/components"
</script>

View File

@@ -7,7 +7,7 @@ description: Tooltip 指令
## 使用方式
```html
```vue
<script lang="ts" setup>
import { IconDeleteBin } from "@halo-dev/components"
</script>