diff --git a/components/button/demo/basic.ts b/components/button/demo/basic.ts index e8aa45d8..331f22eb 100644 --- a/components/button/demo/basic.ts +++ b/components/button/demo/basic.ts @@ -4,21 +4,23 @@ import { Component } from '@angular/core'; selector: 'demo-button-basic', template: ` -
default
+
dashed
-
default diasbled
+
default
-
primary
+
default diasbled
-
primary diasbled
+
primary
-
warning
+
primary diasbled
-
warning
+
warning
-
loading
+
warning
-
with icon
+
loading
+ +
with icon
with custom icon diff --git a/components/button/style/index.less b/components/button/style/index.less index c312fda0..23f81305 100755 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -107,4 +107,14 @@ > .@{buttonPrefixCls}-icon { margin-right: 0.5em; } + + &-dashed { + .hairline-remove('all'); + border: 1px dashed @color-text-disabled !important; + + &.@{buttonPrefixCls}-disabled { + color: fade(@color-text-base-inverse, 60%); + opacity: 0.4; + } + } }