Skip to content

Commit 86eb12e

Browse files
committed
fixed【按钮】 调整按钮圆角大小
fixed【数字计数器】 调整圆角大小,修改上下类型图标大小为 16*16
1 parent 05c1b41 commit 86eb12e

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

src/components/button/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@button-prefix-cls: ~'@{prefix}-button';
44

5-
@border-radius: 2px;
5+
@border-radius: 3px;
66

77
@primary-hover-bg: @blue-5;
88
@primary-active-bg: @blue-6;

src/components/input-number/index.less

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
width: 150px;
2424
color: @gray-9;
2525
border: 1px solid @gray-4;
26-
border-radius: 2px;
26+
border-radius: 3px;
2727
background-color: @gray-1;
2828
transition: border-color 0.3s;
2929

@@ -144,10 +144,11 @@
144144
border-left: 1px solid @gray-4;
145145
border-radius: 0 4px 4px 0;
146146
opacity: 0;
147-
transition: opacity .24s linear .1s;
147+
transition: opacity 0.24s linear 0.1s;
148148
}
149149

150-
&:hover, &:focus {
150+
&:hover,
151+
&:focus {
151152
.@{input-number-prefix-cls}-handler-wrap {
152153
opacity: 1;
153154
}
@@ -188,14 +189,10 @@
188189
}
189190
}
190191

191-
&-handler-down-icon,
192-
&-handler-up-icon {
193-
// font-size: 8px;
194-
195-
// PC上主流浏览器只能识别最小为12px的字体
196-
font-size: 12px;
197-
transform: scale(0.7);
198-
}
192+
// &-handler-down-icon,
193+
// &-handler-up-icon {
194+
// transform: scale(0.7);
195+
// }
199196

200197
&-handler-input {
201198
height: 100%;

src/components/input-number/index.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ group:
99
path: /data
1010
---
1111

12-
### 何时使用
12+
## 何时使用
1313

14-
当需要获取标准数值时
14+
通过鼠标或键盘,输入范围内的数值
1515

16-
### API
16+
## API
1717

1818
| 属性 | 说明 | 类型 | 默认值 |
1919
| ------------ | --------------------------------------------------------- | ------------------------------------- | ----------- |
@@ -35,14 +35,19 @@ group:
3535
| onFocus | 获取焦点 | Function() | - |
3636
| onEnter | 按下键盘回车按键的回调 | function(event) | - |
3737

38-
### 代码演示
38+
## 代码演示
3939

40+
### 基础使用
4041
<embed src="@components/input-number/demos/basic-input-number.md" />
4142

43+
### 不可用
4244
<embed src="@components/input-number/demos/disabled.md" />
4345

46+
### 精确度
4447
<embed src="@components/input-number/demos/precision.md" />
4548

49+
### 大小
4650
<embed src="@components/input-number/demos/size.md" />
4751

52+
### 左右布局
4853
<embed src="@components/input-number/demos/step-type.md" />

0 commit comments

Comments
 (0)