update ColorPicker

This commit is contained in:
梁灏 2017-08-16 16:36:17 +08:00
parent b6bda1dcb5
commit 9673dcb04c
2 changed files with 15 additions and 2 deletions

View file

@ -68,6 +68,7 @@
wrapClasses () {
return [
`${prefixCls}-rel`,
`${prefixCls}-${this.size}`,
`${inputPrefixCls}-wrapper`,
`${inputPrefixCls}-wrapper-${this.size}`
];

View file

@ -5,8 +5,20 @@
line-height: 0;
}
&-color{
width: 20px;
height: 100%;
width: 18px;
height: 18px;
border: 1px solid @text-color;
position: relative;
top: 2px;
}
&-large &-color{
width: 20px;
height: 20px;
top: 1px;
}
&-small &-color{
width: 14px;
height: 14px;
top: 3px;
}
}