mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-20 17:54:01 +00:00

为 [Halo 2.17](https://github.com/halo-dev/halo/releases/tag/v2.17.0) 更新文档。 /kind documentation ```release-note None ```
395 B
395 B
title, description
title | description |
---|---|
v-permission | 权限指令 |
与 HasPermission 组件相同,此指令也是用于根据权限控制元素的显示与隐藏。
使用方式
<script lang="ts" setup>
import { VButton } from "@halo-dev/components"
</script>
<template>
<VButton type="danger" v-permission="['system:posts:manage']">删除</VButton>
</template>