单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-08-11 0e5850157c1a9f77390988acb61b6b8651a08f0b
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
  <div
    class="block-botttom"
    :style="{
      '--backgroundColor': props.backgroundColor,
    }"
    @click="props.onClick"
  >
    <img :src="icon" alt="" class="icon" />
    <span class="text">{{ text }}</span>
  </div>
</template>
 
<script lang="ts" setup name="BlockBotttom">
interface Props {
  icon: string; // 图标
  text: string; // 文本
  backgroundColor: string; // 背景颜色
  onClick: () => void; // 点击事件
}
const props = defineProps<Props>();
</script>
 
<style lang="less" scoped>
.block-botttom {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--backgroundColor, #70a3dd);
  border-radius: 2px;
  .icon {
    margin-bottom: 2px;
    width: 6px;
    height: 6px;
  }
  .text {
    font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
    font-weight: 500;
    font-size: 3px;
    color: #ffffff;
    text-align: left;
    font-style: normal;
  }
}
</style>