chore: optimize the realization of theme color 🌟

This commit is contained in:
iczer
2020-07-01 17:23:39 +08:00
parent 42a34f7a16
commit 5f68e2d231
17 changed files with 46 additions and 123 deletions

View File

@@ -1,36 +0,0 @@
<template>
<div class="style">
<img :src="img" />
<div v-if="selected" class="select-item">
<a-icon type="check" />
</div>
</div>
</template>
<script>
export default {
name: 'StyleItem',
props: ['selected', 'img']
}
</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>