zhuguifei
2025-06-17 c1cc49dd93d38f51790558541d6835d1598ecccf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script setup lang="ts">
import { cn } from "@/utils/class-names";
import DotPattern from "./index.vue";
 
defineOptions({
  name: "DotPatternLinearGradient"
});
</script>
 
<template>
  <div
    class="absolute flex size-full items-center justify-center overflow-hidden h-[300px] w-[300px] md:w-[600px] lg:w-[850px]"
  >
    <DotPattern
      :width="18"
      :height="18"
      :cx="1"
      :cy="1"
      :cr="1"
      :class="
        cn(
          '[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)]'
        )
      "
    />
  </div>
</template>