1
陶杰
2024-11-27 aa7cd5b28360f6b40a9ab498191e42e06344ab90
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
<template>
  <div class="simple-text" :class="{ 'is-primary': type === 'primary' }">
    {{ text || value }}
  </div>
</template>
 
<script>
export default {
  props: {
    value: {
      type: [String, Number],
      default: null,
    },
    type: {
      type: String,
      default: '',
    },
    text: {
      type: [String, Number],
      default: null,
    },
  },
}
</script>
 
<style lang="scss" scoped>
.simple-text {
  display: inline-block;
  &.is-primary {
    color: $primary-color;
  }
}
</style>