hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
  <div class='authentication_show'>
    <div class="clearfix">
      <p class="w_col_12">分类名称:{{os.name}}</p>
      <p class="w_col_24 color-text"><span class="text">文本颜色:</span><span class="color" :style="{background:os.color}"></span></p>
 
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    item: {
      type: Object,
      default: () => {
        return {};
      },
    },
    door: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  components: {},
  data() {
    return { os: {} };
  },
  inject: ["appShowImage"],
  watch: {
    item: {
      handler() {
        this.setItem();
      },
      deep: true,
    },
    door: {
      handler(n) {
        if (n.r) {
          this.sub(n.t);
        }
      },
      deep: true,
    },
  },
  methods: {
    setItem() {
      this.os = this.item.v || {};
    },
    sub(type) {
      this.$store.dispatch("setFixed", {
        event: "del",
        type: type,
        time: Date.now(),
      });
    },
  },
  mounted() {
    this.setItem();
  },
};
</script>
<style lang='less' scoped>
.authentication_show {
  p {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  .color-text {
    .text {
      float: left;
    }
    .color {
      width: 20px;
      height: 20px;
      display: block;
      float: left;
      margin-left: 15px;
    }
  }
}
</style>