ronds-metadata 1.3.86 → 1.3.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,10 @@ var SparkSqlTable = function SparkSqlTable(props) {
36
36
  _React$useState6 = _slicedToArray(_React$useState5, 2),
37
37
  list = _React$useState6[0],
38
38
  setList = _React$useState6[1];
39
+ var _React$useState7 = React.useState(),
40
+ _React$useState8 = _slicedToArray(_React$useState7, 2),
41
+ selectedInfo = _React$useState8[0],
42
+ setSelectedInfo = _React$useState8[1];
39
43
  var listRef = React.useRef([]);
40
44
  var wrapperCol = useGetWrapperCol(extraInfo);
41
45
  var formContext = React.useContext(MetadataFormContext) || {};
@@ -100,10 +104,17 @@ var SparkSqlTable = function SparkSqlTable(props) {
100
104
  list: _list
101
105
  });
102
106
  };
107
+ var handleSeeClick = function handleSeeClick(val) {
108
+ setSelectedInfo(val);
109
+ triggerChange({
110
+ selectedInfo: val
111
+ });
112
+ };
103
113
  var triggerChange = function triggerChange(changedValue) {
104
114
  onChange && onChange(_objectSpread({
105
115
  view: view,
106
- list: list
116
+ list: list,
117
+ selectedInfo: selectedInfo
107
118
  }, changedValue));
108
119
  };
109
120
  var onViewChange = function onViewChange(v) {
@@ -193,7 +204,11 @@ var SparkSqlTable = function SparkSqlTable(props) {
193
204
  marginLeft: '5px',
194
205
  minWidth: '100px'
195
206
  },
196
- addonAfter: /*#__PURE__*/React.createElement(EyeOutlined, null),
207
+ addonAfter: /*#__PURE__*/React.createElement(EyeOutlined, {
208
+ onClick: function onClick() {
209
+ return handleSeeClick(p);
210
+ }
211
+ }),
197
212
  value: p,
198
213
  disabled: true
199
214
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.86",
4
+ "version": "1.3.87",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",