mirror of https://github.com/ElemeFE/element
Button: fix disabled attribute
parent
42cde204da
commit
e2be799e6d
|
|
@ -97,7 +97,7 @@
|
||||||
let green = parseInt(color.slice(2, 4), 16);
|
let green = parseInt(color.slice(2, 4), 16);
|
||||||
let blue = parseInt(color.slice(4, 6), 16);
|
let blue = parseInt(color.slice(4, 6), 16);
|
||||||
|
|
||||||
if (tint === 0) {
|
if (tint === 0) { // when primary color is in its rgb space
|
||||||
return [red, green, blue].join(',');
|
return [red, green, blue].join(',');
|
||||||
} else {
|
} else {
|
||||||
red += Math.round(tint * (255 - red));
|
red += Math.round(tint * (255 - red));
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
<button
|
<button
|
||||||
class="el-button"
|
class="el-button"
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
|
:disabled="disabled"
|
||||||
|
:autofocus="autofocus"
|
||||||
:type="nativeType"
|
:type="nativeType"
|
||||||
:class="[
|
:class="[
|
||||||
type ? 'el-button--' + type : '',
|
type ? 'el-button--' + type : '',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue