riku
2024-04-29 113529424720f87ceb2e4604a4d2e1019e0db4f8
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
<template>
  <div :class="wrapClz">
    <div class="ff-border-bottom"></div>
    <div class="ff-border-top">
      <div class="ff-border-content">
        <slot name="content"></slot>
      </div>
    </div>
  </div>
</template>
 
<script>
// 统一样式卡片
export default {
  props: {
    /**
     * 样式折角大小
     * small | medium
     */
    size: {
      type: String,
      default: 'small'
    },
    /**
     * 样式朝向
     * left | right
     */
    direction: {
      type: String,
      default: 'left'
    }
  },
  computed: {
    wrapClz() {
      let clz = 'ff-content fy-container';
      clz += ` ff-content-${this.size}`;
      clz += ` ff-content-${this.direction}`;
      return clz;
    }
  }
};
</script>