@gm-pc/react 1.6.4 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gm-pc/react",
3
- "version": "1.6.4",
3
+ "version": "1.7.3",
4
4
  "description": "观麦前端基础组件库",
5
5
  "author": "liyatang <liyatang@qq.com>",
6
6
  "homepage": "https://github.com/gmfe/gm-pc#readme",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@gm-common/hooks": "^2.10.0",
26
26
  "@gm-common/tool": "^2.10.0",
27
- "@gm-pc/locales": "^1.6.4",
27
+ "@gm-pc/locales": "^1.7.3",
28
28
  "big.js": "^6.0.1",
29
29
  "classnames": "^2.2.5",
30
30
  "lodash": "^4.17.19",
@@ -46,5 +46,5 @@
46
46
  "react-dom": "^16.14.0",
47
47
  "react-window": "^1.8.5"
48
48
  },
49
- "gitHead": "ad669af0524ffb380cf5d817e7e8ebe552b09a04"
49
+ "gitHead": "67caf496a31288b7c0217aa3447ac5077f14385f"
50
50
  }
@@ -54,11 +54,12 @@ const Right: FC<PaginationProps> = ({ paging, onChange }) => {
54
54
  }
55
55
  }
56
56
 
57
- const all = Math.ceil((paging.count || 0) / paging.limit)
57
+ const all = Math.ceil((paging.count || 1) / paging.limit)
58
58
 
59
59
  return (
60
60
  <Flex className='gm-pagination-right'>
61
61
  <InputNumber
62
+ disabled={all <= 1}
62
63
  precision={0}
63
64
  value={index}
64
65
  onChange={handleInput}
@@ -1,5 +1,4 @@
1
1
  .gm-tabs {
2
-
3
2
  .gm-tabs-head-fix {
4
3
  width: 100%;
5
4
  height: 40px;
@@ -25,17 +24,6 @@
25
24
  border-top-left-radius: 4px;
26
25
  border-top-right-radius: 4px;
27
26
 
28
- &::before {
29
- position: absolute;
30
- width: 100%;
31
- content: ' ';
32
- height: 2px;
33
- right: 0;
34
- bottom: 0 !important;
35
- z-index: 999;
36
- background-color: #fff;
37
- }
38
-
39
27
  &.active {
40
28
  background: white;
41
29
  border-left: 1px solid var(--gm-color-border);
@@ -57,10 +45,9 @@
57
45
  cursor: pointer;
58
46
  line-height: 28px;
59
47
  margin-left: 16px;
60
- transition: all .3s cubic-bezier(.645, .045, .355, 1);
48
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
61
49
  }
62
50
 
63
-
64
51
  .gm-tabs-text-overflow-ellipsis {
65
52
  max-width: 150px;
66
53
  overflow: hidden;
@@ -140,7 +127,6 @@
140
127
 
141
128
  // 可编辑风格样式
142
129
  .gm-tabs-edit {
143
-
144
130
  .gm-tabs-head {
145
131
  background: #fff !important;
146
132
  padding: 0;
@@ -157,8 +143,7 @@
157
143
  &.active {
158
144
  color: #1890ff;
159
145
  box-sizing: border-box;
160
-
161
146
  }
162
147
  }
163
148
  }
164
- }
149
+ }