@lemon-fe/kits 1.0.0-183 → 1.0.0-185
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.
|
@@ -64,6 +64,7 @@ var DetailCellRenderer = /*#__PURE__*/forwardRef(function (params, ref) {
|
|
|
64
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
65
65
|
className: classNames(prefix('cell-detail'), _defineProperty({}, prefix('cell-detail-auto-height'), autoHeight))
|
|
66
66
|
}, render(_objectSpread(_objectSpread({}, params), {}, {
|
|
67
|
+
data: data,
|
|
67
68
|
context: context
|
|
68
69
|
})));
|
|
69
70
|
});
|
|
@@ -167,9 +167,10 @@ function DurationPicker(props) {
|
|
|
167
167
|
var handleChangeDates = function handleChangeDates(dates) {
|
|
168
168
|
var newDurationPickerValue = _objectSpread({}, value);
|
|
169
169
|
|
|
170
|
+
newDurationPickerValue.option = defaultOptions[0].label;
|
|
171
|
+
|
|
170
172
|
if (dates === null) {
|
|
171
173
|
newDurationPickerValue.dates = emptyValue;
|
|
172
|
-
newDurationPickerValue.option = defaultOptions[0].label;
|
|
173
174
|
} else {
|
|
174
175
|
if (restProps.showTime) {
|
|
175
176
|
newDurationPickerValue.dates = [moment(dates[0]).format(dateFormat), moment(dates[1]).format(dateFormat)];
|
|
@@ -98,59 +98,91 @@ function Popup(props) {
|
|
|
98
98
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
var handleOpen = function
|
|
102
|
-
|
|
101
|
+
var handleOpen = /*#__PURE__*/function () {
|
|
102
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
103
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
104
|
+
while (1) {
|
|
105
|
+
switch (_context.prev = _context.next) {
|
|
106
|
+
case 0:
|
|
107
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
103
108
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
if (!disabled) {
|
|
110
|
+
_context.next = 4;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
if (disabledTip) {
|
|
115
|
+
message.warning(disabledTip);
|
|
116
|
+
}
|
|
111
117
|
|
|
112
|
-
|
|
113
|
-
if (!beforeOpen()) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
118
|
+
return _context.abrupt("return");
|
|
117
119
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
case 4:
|
|
121
|
+
if (!(beforeOpen !== undefined)) {
|
|
122
|
+
_context.next = 9;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
_context.next = 7;
|
|
127
|
+
return beforeOpen();
|
|
128
|
+
|
|
129
|
+
case 7:
|
|
130
|
+
if (_context.sent) {
|
|
131
|
+
_context.next = 9;
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return _context.abrupt("return");
|
|
136
|
+
|
|
137
|
+
case 9:
|
|
138
|
+
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(true);
|
|
139
|
+
setOpen(true);
|
|
140
|
+
|
|
141
|
+
case 11:
|
|
142
|
+
case "end":
|
|
143
|
+
return _context.stop();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}, _callee);
|
|
147
|
+
}));
|
|
148
|
+
|
|
149
|
+
return function handleOpen() {
|
|
150
|
+
return _ref.apply(this, arguments);
|
|
151
|
+
};
|
|
152
|
+
}();
|
|
121
153
|
|
|
122
154
|
var handleOk = /*#__PURE__*/function () {
|
|
123
|
-
var
|
|
155
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(payload) {
|
|
124
156
|
var result, checkResult, change, res;
|
|
125
|
-
return _regeneratorRuntime().wrap(function
|
|
157
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
126
158
|
while (1) {
|
|
127
|
-
switch (
|
|
159
|
+
switch (_context2.prev = _context2.next) {
|
|
128
160
|
case 0:
|
|
129
161
|
result = payload === undefined ? value : payload;
|
|
130
162
|
|
|
131
163
|
if (!beforeOkCheck) {
|
|
132
|
-
|
|
164
|
+
_context2.next = 7;
|
|
133
165
|
break;
|
|
134
166
|
}
|
|
135
167
|
|
|
136
|
-
|
|
168
|
+
_context2.next = 4;
|
|
137
169
|
return beforeOkCheck(result);
|
|
138
170
|
|
|
139
171
|
case 4:
|
|
140
|
-
checkResult =
|
|
172
|
+
checkResult = _context2.sent;
|
|
141
173
|
|
|
142
174
|
if (checkResult) {
|
|
143
|
-
|
|
175
|
+
_context2.next = 7;
|
|
144
176
|
break;
|
|
145
177
|
}
|
|
146
178
|
|
|
147
|
-
return
|
|
179
|
+
return _context2.abrupt("return");
|
|
148
180
|
|
|
149
181
|
case 7:
|
|
150
182
|
handleCancel();
|
|
151
183
|
|
|
152
184
|
if (!(onChange !== undefined)) {
|
|
153
|
-
|
|
185
|
+
_context2.next = 18;
|
|
154
186
|
break;
|
|
155
187
|
}
|
|
156
188
|
|
|
@@ -165,17 +197,17 @@ function Popup(props) {
|
|
|
165
197
|
};
|
|
166
198
|
|
|
167
199
|
if (!(beforeOk && result)) {
|
|
168
|
-
|
|
200
|
+
_context2.next = 17;
|
|
169
201
|
break;
|
|
170
202
|
}
|
|
171
203
|
|
|
172
|
-
|
|
204
|
+
_context2.next = 13;
|
|
173
205
|
return beforeOk(result);
|
|
174
206
|
|
|
175
207
|
case 13:
|
|
176
|
-
res =
|
|
208
|
+
res = _context2.sent;
|
|
177
209
|
change(res);
|
|
178
|
-
|
|
210
|
+
_context2.next = 18;
|
|
179
211
|
break;
|
|
180
212
|
|
|
181
213
|
case 17:
|
|
@@ -183,14 +215,14 @@ function Popup(props) {
|
|
|
183
215
|
|
|
184
216
|
case 18:
|
|
185
217
|
case "end":
|
|
186
|
-
return
|
|
218
|
+
return _context2.stop();
|
|
187
219
|
}
|
|
188
220
|
}
|
|
189
|
-
},
|
|
221
|
+
}, _callee2);
|
|
190
222
|
}));
|
|
191
223
|
|
|
192
224
|
return function handleOk(_x) {
|
|
193
|
-
return
|
|
225
|
+
return _ref2.apply(this, arguments);
|
|
194
226
|
};
|
|
195
227
|
}();
|
|
196
228
|
|
|
@@ -298,7 +298,9 @@ var BatchOperate = /*#__PURE__*/function (_Component) {
|
|
|
298
298
|
if (mode === 'warning') {
|
|
299
299
|
return /*#__PURE__*/React.createElement(Row, {
|
|
300
300
|
justify: 'space-between'
|
|
301
|
-
}, /*#__PURE__*/React.createElement("span", null,
|
|
301
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Icons.Tip, {
|
|
302
|
+
type: "warning"
|
|
303
|
+
}), /*#__PURE__*/React.createElement("span", null, " ", error.message, " ")), /*#__PURE__*/React.createElement("a", {
|
|
302
304
|
onClick: function onClick() {
|
|
303
305
|
_this2.processNode(id, stepIdx + 1);
|
|
304
306
|
}
|