ronds-metadata 1.0.71 → 1.0.72
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.
@@ -31,6 +31,7 @@ var Editable = function Editable(props) {
|
|
31
31
|
addPosition = _props$addPosition === void 0 ? 'bottom' : _props$addPosition,
|
32
32
|
_props$isAddColumn = props.isAddColumn,
|
33
33
|
isAddColumn = _props$isAddColumn === void 0 ? false : _props$isAddColumn,
|
34
|
+
whiteColumn = props.whiteColumn,
|
34
35
|
tableProps = props.tableProps,
|
35
36
|
onRowConfirm = props.onRowConfirm,
|
36
37
|
onRowDelete = props.onRowDelete,
|
@@ -232,6 +233,14 @@ var Editable = function Editable(props) {
|
|
232
233
|
var processDeleteColumnsData = function processDeleteColumnsData(data) {
|
233
234
|
var _columns = addColumnsRef.current.length > 0 ? addColumnsRef.current : columns;
|
234
235
|
|
236
|
+
if (whiteColumn.findIndex(function (v) {
|
237
|
+
return v === data.dataIndex;
|
238
|
+
}) > -1) {
|
239
|
+
_message.warning("".concat(data.dataIndex, "\u65E0\u6CD5\u5220\u9664"));
|
240
|
+
|
241
|
+
return;
|
242
|
+
}
|
243
|
+
|
235
244
|
_columns = _columns.filter(function (v) {
|
236
245
|
return v.dataIndex != data.dataIndex;
|
237
246
|
});
|