@lemon-fe/components 0.1.39 → 0.1.46

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.
@@ -180,6 +180,14 @@ export default function SelectView(props) {
180
180
  }
181
181
  }, rowSelection),
182
182
  onRow: function onRow(row) {
183
+ if (rowSelection !== undefined && rowSelection.getCheckboxProps !== undefined) {
184
+ var extra = rowSelection.getCheckboxProps(row);
185
+
186
+ if (extra.disabled) {
187
+ return {};
188
+ }
189
+ }
190
+
183
191
  return {
184
192
  onClick: function onClick() {
185
193
  var key = getRowKey(row);
@@ -190,7 +198,7 @@ export default function SelectView(props) {
190
198
  return item === key;
191
199
  });
192
200
 
193
- if (index > 0) {
201
+ if (index >= 0) {
194
202
  keys.splice(index, 1);
195
203
  } else {
196
204
  keys.push(key);
@@ -45,6 +45,7 @@
45
45
  display: flex;
46
46
  flex: 1;
47
47
  flex-direction: column;
48
+ min-width: 0;
48
49
  padding: 16px;
49
50
  }
50
51
 
package/es/overrides.less CHANGED
@@ -48,6 +48,10 @@ a[title='站长统计'] {
48
48
  }
49
49
  }
50
50
 
51
+ .ant-table-tbody > tr.ant-table-row-selected > td {
52
+ border-color: @table-border-color;
53
+ }
54
+
51
55
  .ant-table-cell {
52
56
  .ant-checkbox-checked .ant-checkbox-inner::after {
53
57
  transition: none !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.39",
3
+ "version": "0.1.46",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -41,5 +41,5 @@
41
41
  "react": "^17.0.2",
42
42
  "react-dom": "^17.0.2"
43
43
  },
44
- "gitHead": "2236e4c1e4669264f267723a9f22f1e2f740a263"
44
+ "gitHead": "e040d5b608a4786e7c3fd7e335f15cc57f4152cf"
45
45
  }