Button: fix disabled attribute

This commit is contained in:
Leopoldthecoder 2017-10-04 20:44:56 +08:00 committed by 杨奕
parent 42cde204da
commit e2be799e6d
2 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,7 @@
let green = parseInt(color.slice(2, 4), 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(',');
} else {
red += Math.round(tint * (255 - red));

View File

@ -2,6 +2,8 @@
<button
class="el-button"
@click="handleClick"
:disabled="disabled"
:autofocus="autofocus"
:type="nativeType"
:class="[
type ? 'el-button--' + type : '',