保誠-保戶業務員媒合平台
Tomas
2021-10-29 4f2e9b65d2be8f7b79f29870259c53b4c39a3702
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
49
50
51
52
53
54
55
56
57
58
<template>
    <el-col :span="24" class="pam-field">
      <div class="pam-field-label">
        <div class="pam-field-title"><i :class="fieldIcon"></i>{{ fieldLabel }}</div>
      </div>
      <p class="pam-field-content pt-10">
        <slot></slot>
      </p>
    </el-col>
</template>
 
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
 
@Component
export default class UiCarousel extends Vue {
 
  @Prop() span!: number;
  @Prop() icon!: string;
  @Prop() label!: string;
  @Prop() content!: string;
  // @Prop() displayDevice!: 'MOBILE' | 'DESKTOP';
 
  get fieldSpan(): number {
    return this.span || 24;
  }
 
  get fieldIcon(): string {
    return `pam-icon icon-${this.icon}`;
  }
 
  get fieldLabel(): string {
    return `${this.label}`;
  }
 
}
</script>
 
 
<style lang="scss" scoped>
.pam-field {
  display: flex;
  flex-direction: column;
  .pam-field-label {
    display: flex;
    align-items: center;
    .pam-icon {
      font-size: 12px;
    }
    .pam-field-title {
      font-size: 16px;
      font-weight: bold;
      display: flex;
      align-items: center;
    }
  }
}
</style>