研发图纸文件管理系统-前端项目
chenghx
2018-08-21 6b2688a8405dab08fedf7a97c084af8928c9cf7a
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
<template>
  <div class="theme-color" :style="{backgroundColor: color}">
    <a-icon v-if="selected" type="check" />
  </div>
</template>
 
<script>
import AIcon from 'ant-design-vue/es/icon/icon'
export default {
  name: 'ThemeColor',
  components: {AIcon},
  props: ['color', 'selected']
}
</script>
 
<style lang="less" scoped>
  .theme-color{
    width: 20px;
    height: 20px;
    border-radius: 2px;
    float: left;
    cursor: pointer;
    margin-right: 8px;
    text-align: center;
    color: #fff;
    font-weight: bold;
  }
</style>