ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
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
<script lang="ts" setup>
import webLink from '../Link/index.vue';
 
defineProps(['title', 'card']);
</script>
<template>
  <div class="portal-common-title" :style="{ background: card.titleBgColor }">
    <div
      class="title"
      :style="{
        color: card.titleFontColor,
        'font-size': `${card.titleFontSize}px`,
        'justify-content': card.titleLeft,
        'font-weight': card.titleFontWeight ? 'bolder' : 'normal',
      }">
      <i :class="card.cardIcon" :style="{ color: card.cardIconColor || '#000' }"></i>
      <span>{{ title }}</span>
    </div>
    <web-link
      v-if="card.cardRightBtn"
      :link-type="card.linkType"
      :url-address="card.urlAddress"
      :link-target="card.linkTarget"
      :type="card.type"
      :property-json="card.propertyJson">
      <a-button class="button" type="link">{{ card.cardRightBtn }}</a-button>
    </web-link>
  </div>
</template>