@kmkf-fe-packages/basic-components 2.0.41 → 2.0.43
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/dist/index.esm.js +10 -10
- package/dist/index.js +10 -10
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -13180,29 +13180,29 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13180
13180
|
fixed: true,
|
|
13181
13181
|
onSelect: function onSelect(record, selected) {
|
|
13182
13182
|
if (selected) {
|
|
13183
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
13183
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
13184
13184
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
13185
13185
|
} else {
|
|
13186
13186
|
setSelectIds(selectIds.filter(function (t) {
|
|
13187
|
-
return t !== record.
|
|
13187
|
+
return t !== record.id;
|
|
13188
13188
|
}));
|
|
13189
13189
|
setSelect(selectList.filter(function (t) {
|
|
13190
|
-
return t.
|
|
13190
|
+
return t.id !== record.id;
|
|
13191
13191
|
}));
|
|
13192
13192
|
}
|
|
13193
13193
|
},
|
|
13194
13194
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
13195
13195
|
if (selected) {
|
|
13196
13196
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
13197
|
-
return t.
|
|
13197
|
+
return t.id;
|
|
13198
13198
|
}))));
|
|
13199
13199
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
13200
13200
|
} else {
|
|
13201
13201
|
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
13202
|
-
return t.
|
|
13202
|
+
return t.id;
|
|
13203
13203
|
})));
|
|
13204
13204
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
13205
|
-
return arrVal.
|
|
13205
|
+
return arrVal.id !== othVal.id;
|
|
13206
13206
|
});
|
|
13207
13207
|
setSelect(list);
|
|
13208
13208
|
}
|
|
@@ -13211,10 +13211,10 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13211
13211
|
var showTable = function showTable() {
|
|
13212
13212
|
var handleDelete = function handleDelete(record) {
|
|
13213
13213
|
setSelectIds(selectIds.filter(function (t) {
|
|
13214
|
-
return t !== record.
|
|
13214
|
+
return t !== record.id;
|
|
13215
13215
|
}));
|
|
13216
13216
|
setSelect(selectList.filter(function (t) {
|
|
13217
|
-
return t.
|
|
13217
|
+
return t.id !== record.id;
|
|
13218
13218
|
}));
|
|
13219
13219
|
};
|
|
13220
13220
|
var showColumns = [{
|
|
@@ -13238,7 +13238,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13238
13238
|
}
|
|
13239
13239
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
13240
13240
|
columns: showColumns,
|
|
13241
|
-
rowKey: '
|
|
13241
|
+
rowKey: 'id',
|
|
13242
13242
|
dataSource: selectList,
|
|
13243
13243
|
scroll: {
|
|
13244
13244
|
x: '100%',
|
|
@@ -13258,7 +13258,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13258
13258
|
}
|
|
13259
13259
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
13260
13260
|
rowSelection: rowSelection,
|
|
13261
|
-
rowKey: "
|
|
13261
|
+
rowKey: "id",
|
|
13262
13262
|
columns: columns$4,
|
|
13263
13263
|
scroll: {
|
|
13264
13264
|
x: '100%',
|
package/dist/index.js
CHANGED
|
@@ -13192,29 +13192,29 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13192
13192
|
fixed: true,
|
|
13193
13193
|
onSelect: function onSelect(record, selected) {
|
|
13194
13194
|
if (selected) {
|
|
13195
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
13195
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
13196
13196
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
13197
13197
|
} else {
|
|
13198
13198
|
setSelectIds(selectIds.filter(function (t) {
|
|
13199
|
-
return t !== record.
|
|
13199
|
+
return t !== record.id;
|
|
13200
13200
|
}));
|
|
13201
13201
|
setSelect(selectList.filter(function (t) {
|
|
13202
|
-
return t.
|
|
13202
|
+
return t.id !== record.id;
|
|
13203
13203
|
}));
|
|
13204
13204
|
}
|
|
13205
13205
|
},
|
|
13206
13206
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
13207
13207
|
if (selected) {
|
|
13208
13208
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
13209
|
-
return t.
|
|
13209
|
+
return t.id;
|
|
13210
13210
|
}))));
|
|
13211
13211
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
13212
13212
|
} else {
|
|
13213
13213
|
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
13214
|
-
return t.
|
|
13214
|
+
return t.id;
|
|
13215
13215
|
})));
|
|
13216
13216
|
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
13217
|
-
return arrVal.
|
|
13217
|
+
return arrVal.id !== othVal.id;
|
|
13218
13218
|
});
|
|
13219
13219
|
setSelect(list);
|
|
13220
13220
|
}
|
|
@@ -13223,10 +13223,10 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13223
13223
|
var showTable = function showTable() {
|
|
13224
13224
|
var handleDelete = function handleDelete(record) {
|
|
13225
13225
|
setSelectIds(selectIds.filter(function (t) {
|
|
13226
|
-
return t !== record.
|
|
13226
|
+
return t !== record.id;
|
|
13227
13227
|
}));
|
|
13228
13228
|
setSelect(selectList.filter(function (t) {
|
|
13229
|
-
return t.
|
|
13229
|
+
return t.id !== record.id;
|
|
13230
13230
|
}));
|
|
13231
13231
|
};
|
|
13232
13232
|
var showColumns = [{
|
|
@@ -13250,7 +13250,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13250
13250
|
}
|
|
13251
13251
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
13252
13252
|
columns: showColumns,
|
|
13253
|
-
rowKey: '
|
|
13253
|
+
rowKey: 'id',
|
|
13254
13254
|
dataSource: selectList,
|
|
13255
13255
|
scroll: {
|
|
13256
13256
|
x: '100%',
|
|
@@ -13270,7 +13270,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13270
13270
|
}
|
|
13271
13271
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13272
13272
|
rowSelection: rowSelection,
|
|
13273
|
-
rowKey: "
|
|
13273
|
+
rowKey: "id",
|
|
13274
13274
|
columns: columns$4,
|
|
13275
13275
|
scroll: {
|
|
13276
13276
|
x: '100%',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.43",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.43",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "cbb6eee4be73f469df396bfb054a35aef63ce2dd"
|
|
69
69
|
}
|