ronds-metadata 1.0.71 → 1.0.74
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.
@@ -70,7 +70,7 @@ declare class Texty extends React.PureComponent<ITextyProps, any> {
|
|
70
70
|
componentDidUpdate(): void;
|
71
71
|
componentWillUnmount(): void;
|
72
72
|
render(): JSX.Element;
|
73
|
-
renderTooltip: ({ ref, style, placement, arrowProps
|
73
|
+
renderTooltip: ({ ref, style, placement, arrowProps }: any) => React.ReactPortal;
|
74
74
|
setTargetRef: (ref: any) => void;
|
75
75
|
handleMouseEvent: (e: any) => void;
|
76
76
|
handleScroll: (e: any) => void;
|
@@ -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,
|
@@ -208,8 +209,7 @@ var Editable = function Editable(props) {
|
|
208
209
|
if (_columns.findIndex(function (v) {
|
209
210
|
return v.key === data.key;
|
210
211
|
}) > -1) {
|
211
|
-
|
212
|
-
|
212
|
+
// message.warning('表格的key不可以重复');
|
213
213
|
return;
|
214
214
|
}
|
215
215
|
|
@@ -232,6 +232,13 @@ var Editable = function Editable(props) {
|
|
232
232
|
var processDeleteColumnsData = function processDeleteColumnsData(data) {
|
233
233
|
var _columns = addColumnsRef.current.length > 0 ? addColumnsRef.current : columns;
|
234
234
|
|
235
|
+
if (whiteColumn.findIndex(function (v) {
|
236
|
+
return v === data.dataIndex;
|
237
|
+
}) > -1) {
|
238
|
+
// message.warning(`${data.dataIndex}无法删除`);
|
239
|
+
return;
|
240
|
+
}
|
241
|
+
|
235
242
|
_columns = _columns.filter(function (v) {
|
236
243
|
return v.dataIndex != data.dataIndex;
|
237
244
|
});
|