parent
42a34f7a16
commit
5f68e2d231
17 changed files with 46 additions and 123 deletions
@ -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> |
|
@ -0,0 +1,4 @@ |
|||||||
|
// 自定义配置,参考 ./default/setting.js,需要自定义的属性在这里配置即可
|
||||||
|
module.exports = { |
||||||
|
themeColor: '#13c2c2', |
||||||
|
} |
@ -1,22 +1,6 @@ |
|||||||
// 系统配置
|
const deepmerge = require('deepmerge') |
||||||
module.exports = { |
const _config = require('./config') |
||||||
lang: 'CN', |
const setting = require('./default').setting |
||||||
themeColor: '#1890ff', |
const config = deepmerge(setting, _config) |
||||||
theme: 'dark', |
|
||||||
layout: 'side', |
module.exports = config |
||||||
fixedHeader: false, |
|
||||||
fixedSideBar: true, |
|
||||||
weekMode: false, |
|
||||||
multiPage: false, |
|
||||||
systemName: 'Vue Antd Admin', |
|
||||||
copyright: '2018 ICZER 工作室出品', |
|
||||||
animate: { |
|
||||||
name: 'bounce', |
|
||||||
direction: 'left' |
|
||||||
}, |
|
||||||
footerLinks: [ |
|
||||||
{link: 'https://pro.ant.design', name: 'Pro首页'}, |
|
||||||
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'}, |
|
||||||
{link: 'https://ant.design', name: 'Ant Design'} |
|
||||||
], |
|
||||||
} |
|
||||||
|
@ -1,17 +1,16 @@ |
|||||||
const {generate} = require('@ant-design/colors') |
const varyColor = require('webpack-theme-color-replacer/client/varyColor') |
||||||
// ant design vue 默认主题色
|
// ant design vue 默认主题色
|
||||||
const antPrimaryColor = '#1890ff' |
const antPrimaryColor = '#1890ff' |
||||||
// ant design vue 默认dark主题色,若主题色为默认主题色则返回此 dark 主题色系
|
// ant design vue 默认dark主题色,若主题色为默认主题色则返回此 dark 主题色系
|
||||||
const antDarkColors = ['#000c17', '#001529', '#002140'] |
const antDarkColors = ['#000c17', '#001529', '#002140'] |
||||||
|
|
||||||
function getDarkColors(color, theme) { |
function getDarkColors(color) { |
||||||
if (color == antPrimaryColor) { |
if (color == antPrimaryColor) { |
||||||
return antDarkColors |
return antDarkColors |
||||||
} |
} |
||||||
const lightColors = generate(color, {theme: theme, backgroundColor: '#000000'}) |
const darkColors = [] |
||||||
const darkColors = generate(lightColors[5], {theme: theme, backgroundColor: '#000000'}) |
darkColors.push(varyColor.darken(color, 0.93), varyColor.darken(color, 0.83), varyColor.darken(color, 0.73)) |
||||||
let deepDark = darkColors.slice(0, 3) |
return darkColors |
||||||
return deepDark |
|
||||||
} |
} |
||||||
|
|
||||||
module.exports = {getDarkColors} |
module.exports = {getDarkColors} |
||||||
|
Loading…
Reference in new issue