@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.
- package/es/SelectView/index.js +9 -1
- package/es/SelectView/index.less +1 -0
- package/es/overrides.less +4 -0
- package/package.json +2 -2
package/es/SelectView/index.js
CHANGED
|
@@ -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
|
|
201
|
+
if (index >= 0) {
|
|
194
202
|
keys.splice(index, 1);
|
|
195
203
|
} else {
|
|
196
204
|
keys.push(key);
|
package/es/SelectView/index.less
CHANGED
package/es/overrides.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
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": "
|
|
44
|
+
"gitHead": "e040d5b608a4786e7c3fd7e335f15cc57f4152cf"
|
|
45
45
|
}
|