Button add 4 new type
Button add 4 new type
This commit is contained in:
parent
9084eb1872
commit
b88f42eb62
5 changed files with 34 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
props: {
|
||||
type: {
|
||||
validator (value) {
|
||||
return oneOf(value, ['primary', 'ghost', 'dashed', 'text']);
|
||||
return oneOf(value, ['primary', 'ghost', 'dashed', 'text', 'info', 'success', 'warning', 'error']);
|
||||
}
|
||||
},
|
||||
shape: {
|
||||
|
|
|
@ -46,6 +46,22 @@
|
|||
.btn-text;
|
||||
}
|
||||
|
||||
&-success {
|
||||
.btn-color(@success-color);
|
||||
}
|
||||
|
||||
&-warning {
|
||||
.btn-color(@warning-color);
|
||||
}
|
||||
|
||||
&-error {
|
||||
.btn-color(@error-color);
|
||||
}
|
||||
|
||||
&-info {
|
||||
.btn-color(@info-color);
|
||||
}
|
||||
|
||||
//&-dashed {
|
||||
// .btn-dashed;
|
||||
//}
|
||||
|
|
|
@ -248,6 +248,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
// Color
|
||||
.btn-color(@color) {
|
||||
.button-variant(@btn-primary-color; @color; @color);
|
||||
|
||||
&:hover,
|
||||
//&:focus,
|
||||
&:active,
|
||||
&.active {
|
||||
color: @btn-primary-color;
|
||||
}
|
||||
}
|
||||
|
||||
// Circle for Icon
|
||||
.btn-circle(@btnClassName: ivu-btn) {
|
||||
border-radius: @btn-circle-size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue