研发图纸文件管理系统-前端项目
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
29
30
31
32
33
34
35
36
37
38
<template>
  <div class="style">
    <img :src="img" />
    <div v-if="selected" class="select-item">
      <a-icon type="check" />
    </div>
  </div>
</template>
 
<script>
import AIcon from 'ant-design-vue/es/icon/icon'
export default {
  name: 'StyleItem',
  props: ['selected', 'img'],
  components: {AIcon}
}
</script>
 
<style lang="less" scoped>
  .style{
    margin-right: 16px;
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    .select-item{
      position: absolute;
      top: 0;
      right: 0;
      width: 100%;
      padding-top: 15px;
      padding-left: 24px;
      height: 100%;
      color: #1890ff;
      font-size: 14px;
      font-weight: bold;
    }
  }
</style>