Commit e2be799e authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Button: fix disabled attribute

parent 42cde204
......@@ -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));
......
......@@ -2,6 +2,8 @@
<button
class="el-button"
@click="handleClick"
:disabled="disabled"
:autofocus="autofocus"
:type="nativeType"
:class="[
type ? 'el-button--' + type : '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment