mirror of
https://github.com/halo-dev/docs.git
synced 2026-01-15 07:05:52 +08:00
Use shiki as code highlighter (#521)
This commit is contained in:
@@ -7,7 +7,7 @@ description: 元数据表单组件
|
||||
|
||||
## 使用示例
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 附件文件类型图标组件
|
||||
|
||||
## 使用示例
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -11,7 +11,7 @@ description: 附件选择组件
|
||||
|
||||
## 使用示例
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: 过滤器清除按钮组件
|
||||
|
||||
## 使用示例
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
function onClear () {
|
||||
console.log("clear")
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 过滤器下拉组件
|
||||
|
||||
## 使用示例
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 权限判断组件
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { VButton } from "@halo-dev/components"
|
||||
</script>
|
||||
|
||||
@@ -17,7 +17,7 @@ pnpm install @halo-dev/components
|
||||
|
||||
在 Vue 组件中:
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { VButton } from "@halo-dev/components";
|
||||
</script>
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 插件详情弹窗组件
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 搜索输入框组件
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: 文件上传组件
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
const policyName = ref('my-test-policy')
|
||||
const groupName = ref('my-test-group')
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 代码编辑器组件
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ description: 权限指令
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { VButton } from "@halo-dev/components"
|
||||
</script>
|
||||
|
||||
@@ -7,7 +7,7 @@ description: Tooltip 指令
|
||||
|
||||
## 使用方式
|
||||
|
||||
```html
|
||||
```vue
|
||||
<script lang="ts" setup>
|
||||
import { IconDeleteBin } from "@halo-dev/components"
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user