Skip to content
On this page

CoverBox 隐私遮罩层

基本使用

基本使用
<template>
  <www-cover-box>
    <img src="/logo.png" alt="Logo" />
  </www-cover-box>
</template>

<script lang="ts" setup>
</script>

<style scoped lang="scss">
</style>
<template>
  <www-cover-box>
    <img src="/logo.png" alt="Logo" />
  </www-cover-box>
</template>

<script lang="ts" setup>
</script>

<style scoped lang="scss">
</style>

显隐

显隐
TODO.wjt
<template>
  <www-cover-box>
    <img src="/logo.png" alt="Logo" />
  </www-cover-box>
</template>

<script lang="ts" setup>
</script>

<style scoped lang="scss">
</style>
<template>
  <www-cover-box>
    <img src="/logo.png" alt="Logo" />
  </www-cover-box>
</template>

<script lang="ts" setup>
</script>

<style scoped lang="scss">
</style>

组件 API

Attributes 属性

参数说明类型可选值默认值
bgColorrgba(0, 0, 0, 0.5)
iconColorrgb(150 229 255)
width100px
height100px

Methods 方法

方法名说明参数返回值

Events 事件

事件名说明参数返回值
update:visiblevisible

Slots 插槽

插槽名说明参数
default