ronds-metadata 1.0.58 → 1.0.59
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.
@@ -1,3 +1,5 @@
|
|
1
|
+
import "antd/es/popconfirm/style";
|
2
|
+
import _Popconfirm from "antd/es/popconfirm";
|
1
3
|
import "antd/es/divider/style";
|
2
4
|
import _Divider from "antd/es/divider";
|
3
5
|
import "antd/es/button/style";
|
@@ -87,13 +89,22 @@ var EditableAction = function EditableAction(props) {
|
|
87
89
|
title: '确定'
|
88
90
|
}), /*#__PURE__*/React.createElement(_Divider, {
|
89
91
|
type: "vertical"
|
90
|
-
}))), /*#__PURE__*/React.createElement(
|
92
|
+
}))), /*#__PURE__*/React.createElement(_Popconfirm, {
|
93
|
+
placement: 'left',
|
94
|
+
title: "\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u6570\u636E\uFF1F",
|
95
|
+
onConfirm: onDelete,
|
96
|
+
onCancel: function onCancel(e) {
|
97
|
+
e.stopPropagation();
|
98
|
+
},
|
99
|
+
okText: "\u786E\u5B9A",
|
100
|
+
cancelText: "\u53D6\u6D88"
|
101
|
+
}, /*#__PURE__*/React.createElement(_Button, {
|
91
102
|
type: "link",
|
92
103
|
size: "small",
|
93
104
|
icon: /*#__PURE__*/React.createElement(DeleteOutlined, null),
|
94
105
|
onClick: onDelete,
|
95
106
|
title: '删除'
|
96
|
-
}));
|
107
|
+
})));
|
97
108
|
};
|
98
109
|
|
99
110
|
export default EditableAction;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
import "antd/es/popconfirm/style";
|
3
|
+
import _Popconfirm from "antd/es/popconfirm";
|
2
4
|
import "antd/es/popover/style";
|
3
5
|
import _Popover from "antd/es/popover";
|
4
6
|
import "antd/es/button/style";
|
@@ -70,6 +72,16 @@ var EditableHeardCell = function EditableHeardCell(props) {
|
|
70
72
|
};
|
71
73
|
};
|
72
74
|
|
75
|
+
var onDeleteColumn = function onDeleteColumn() {
|
76
|
+
setVisible(false);
|
77
|
+
editableStream.next({
|
78
|
+
type: 'onDeleteColumn',
|
79
|
+
payload: {
|
80
|
+
dataIndex: dataIndex
|
81
|
+
}
|
82
|
+
});
|
83
|
+
};
|
84
|
+
|
73
85
|
var content = /*#__PURE__*/React.createElement("div", {
|
74
86
|
style: {
|
75
87
|
width: '100px'
|
@@ -129,10 +141,19 @@ var EditableHeardCell = function EditableHeardCell(props) {
|
|
129
141
|
icon: /*#__PURE__*/React.createElement(PlusSquareOutlined, null)
|
130
142
|
}))), isAddColumn && /*#__PURE__*/React.createElement("div", {
|
131
143
|
className: "".concat(editConfig.editHeardCellKey === dataIndex ? 'editable-th-hover-delete' : 'display-none')
|
144
|
+
}, /*#__PURE__*/React.createElement(_Popconfirm, {
|
145
|
+
placement: 'left',
|
146
|
+
title: "\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u5217\uFF1F",
|
147
|
+
onConfirm: onDeleteColumn,
|
148
|
+
onCancel: function onCancel(e) {
|
149
|
+
e.stopPropagation();
|
150
|
+
},
|
151
|
+
okText: "\u786E\u5B9A",
|
152
|
+
cancelText: "\u53D6\u6D88"
|
132
153
|
}, /*#__PURE__*/React.createElement(_Button, {
|
133
154
|
type: "link",
|
134
155
|
icon: /*#__PURE__*/React.createElement(DeleteOutlined, null)
|
135
|
-
})), /*#__PURE__*/React.createElement("div", {
|
156
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
136
157
|
onMouseOver: onMouseOver,
|
137
158
|
onMouseLeave: onMouseLeave
|
138
159
|
}, children)));
|