@kmkf-fe-packages/basic-components 2.0.19-beta.32 → 2.0.19-beta.36
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 +2 -2
package/dist/index.esm.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(difference(selectIds, changeRows.map(function (t) {
|
|
13214
|
-
return t.
|
|
13214
|
+
return t.id;
|
|
13215
13215
|
})));
|
|
13216
13216
|
var list = 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.createElement(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.createElement(Table, _objectSpread2({
|
|
13272
13272
|
rowSelection: rowSelection,
|
|
13273
|
-
rowKey: "
|
|
13273
|
+
rowKey: "id",
|
|
13274
13274
|
columns: columns$4,
|
|
13275
13275
|
scroll: {
|
|
13276
13276
|
x: '100%',
|
package/dist/index.js
CHANGED
|
@@ -13204,29 +13204,29 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13204
13204
|
fixed: true,
|
|
13205
13205
|
onSelect: function onSelect(record, selected) {
|
|
13206
13206
|
if (selected) {
|
|
13207
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [record.
|
|
13207
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
13208
13208
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
13209
13209
|
} else {
|
|
13210
13210
|
setSelectIds(selectIds.filter(function (t) {
|
|
13211
|
-
return t !== record.
|
|
13211
|
+
return t !== record.id;
|
|
13212
13212
|
}));
|
|
13213
13213
|
setSelect(selectList.filter(function (t) {
|
|
13214
|
-
return t.
|
|
13214
|
+
return t.id !== record.id;
|
|
13215
13215
|
}));
|
|
13216
13216
|
}
|
|
13217
13217
|
},
|
|
13218
13218
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
13219
13219
|
if (selected) {
|
|
13220
13220
|
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
13221
|
-
return t.
|
|
13221
|
+
return t.id;
|
|
13222
13222
|
}))));
|
|
13223
13223
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
13224
13224
|
} else {
|
|
13225
13225
|
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
13226
|
-
return t.
|
|
13226
|
+
return t.id;
|
|
13227
13227
|
})));
|
|
13228
13228
|
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
13229
|
-
return arrVal.
|
|
13229
|
+
return arrVal.id !== othVal.id;
|
|
13230
13230
|
});
|
|
13231
13231
|
setSelect(list);
|
|
13232
13232
|
}
|
|
@@ -13235,10 +13235,10 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13235
13235
|
var showTable = function showTable() {
|
|
13236
13236
|
var handleDelete = function handleDelete(record) {
|
|
13237
13237
|
setSelectIds(selectIds.filter(function (t) {
|
|
13238
|
-
return t !== record.
|
|
13238
|
+
return t !== record.id;
|
|
13239
13239
|
}));
|
|
13240
13240
|
setSelect(selectList.filter(function (t) {
|
|
13241
|
-
return t.
|
|
13241
|
+
return t.id !== record.id;
|
|
13242
13242
|
}));
|
|
13243
13243
|
};
|
|
13244
13244
|
var showColumns = [{
|
|
@@ -13262,7 +13262,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13262
13262
|
}
|
|
13263
13263
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
13264
13264
|
columns: showColumns,
|
|
13265
|
-
rowKey: '
|
|
13265
|
+
rowKey: 'id',
|
|
13266
13266
|
dataSource: selectList,
|
|
13267
13267
|
scroll: {
|
|
13268
13268
|
x: '100%',
|
|
@@ -13282,7 +13282,7 @@ var GoodList$3 = function GoodList(props, ref) {
|
|
|
13282
13282
|
}
|
|
13283
13283
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
13284
13284
|
rowSelection: rowSelection,
|
|
13285
|
-
rowKey: "
|
|
13285
|
+
rowKey: "id",
|
|
13286
13286
|
columns: columns$4,
|
|
13287
13287
|
scroll: {
|
|
13288
13288
|
x: '100%',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.36",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "44e5bee474049c01578da2aabf8657fbae7fa7ff"
|
|
69
69
|
}
|