diff --git a/components/button/demo/basic.md b/components/button/demo/basic.md index aa550045..0fdf38fa 100755 --- a/components/button/demo/basic.md +++ b/components/button/demo/basic.md @@ -18,6 +18,7 @@ ReactDOM.render( + , mountNode, ); diff --git a/components/button/demo/disabled.md b/components/button/demo/disabled.md index fab0b169..d4e472c3 100755 --- a/components/button/demo/disabled.md +++ b/components/button/demo/disabled.md @@ -18,6 +18,7 @@ ReactDOM.render( + , mountNode, ); diff --git a/components/button/index.zh-CN.md b/components/button/index.zh-CN.md index 75f029cd..201e52b8 100755 --- a/components/button/index.zh-CN.md +++ b/components/button/index.zh-CN.md @@ -10,3 +10,9 @@ subtitle: 按钮 ## 设计规范 按钮统一为 2px 的圆角,文字大小 12px 居中,距离左右分别 16px ,按钮的宽度随着文字的长短变化而变化,高度分为 32px (常规尺寸)、 28px (小尺寸)两种。 + +## API + +|类名 |说明 |使用示例 | +|---------|---------|---------| +|.dt-btn-highlight | 图标按钮 | 按钮类型、 不可用状态 | diff --git a/theme/dt-theme/default/button.less b/theme/dt-theme/default/button.less index 48fbf194..60e0d938 100644 --- a/theme/dt-theme/default/button.less +++ b/theme/dt-theme/default/button.less @@ -161,4 +161,34 @@ background-color: @blackE8 !important; border-color: @blackE8; color: @blackBF; +} + +.dt-btn-highlight { + &.ant-btn:hover, &.ant-btn:focus { + color: @primaryColor; + border-color: @primaryColor; + } + &.ant-btn:active, &.ant-btn.active { + color: @clickColor; + border-color: @clickColor; + } + &.ant-btn-disabled, + &.ant-btn.disabled, + &.ant-btn[disabled], + &.ant-btn-disabled:hover, + &.ant-btn.disabled:hover, + &.ant-btn[disabled]:hover, + &.ant-btn-disabled:focus, + &.ant-btn.disabled:focus, + &.ant-btn[disabled]:focus, + &.ant-btn-disabled:active, + &.ant-btn.disabled:active, + &.ant-btn[disabled]:active, + &.ant-btn-disabled.active, + &.ant-btn.disabled.active, + &.ant-btn[disabled].active { + color: @blackBF; + background-color: @blackE8 !important; + border-color: @blackE8; + } } \ No newline at end of file diff --git a/theme/static/common.less b/theme/static/common.less index eb1ea72d..d26bf07f 100755 --- a/theme/static/common.less +++ b/theme/static/common.less @@ -173,6 +173,7 @@ a { .demo-button-type, .demo-modal-box, .demo-notification-box, .demo-message-box { button { margin-right: 12px; + margin-bottom: 20px; } } .demo-select-size {