Files
vue-antd-admin-skeleton/src/components/setting/ThemeColor.vue

29 lines
542 B
Vue
Raw Normal View History

2018-08-21 17:50:13 +08:00
<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{
2018-08-22 11:06:58 +08:00
float: left;
2018-08-21 17:50:13 +08:00
width: 20px;
height: 20px;
border-radius: 2px;
cursor: pointer;
margin-right: 8px;
text-align: center;
color: #fff;
font-weight: bold;
}
</style>