@zgfe/modules-interval 1.0.3-alpha.26 → 1.0.3-alpha.27

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.
@@ -32,8 +32,7 @@ export default (function () {
32
32
  console.log('onUserDrill:111', data, searchData);
33
33
  };
34
34
  return /*#__PURE__*/React.createElement(DemoWrapper, {
35
- needMeta: true,
36
- defaultApp: 271
35
+ needMeta: true
37
36
  }, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
38
37
  onClick: function onClick() {
39
38
  return setIsDetail(false);
@@ -184,11 +184,12 @@ var TopPanel = function TopPanel(props) {
184
184
  labelField: "subjectName",
185
185
  keyField: "id",
186
186
  onChange: function onChange(val) {
187
- var _formRef$current, _formRef$current2;
187
+ var _formRef$current, _formRef$current2, _formRef$current3;
188
188
  setCurrentSubject(val);
189
189
  setRelevancy(false);
190
190
  (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : _formRef$current.setFieldValue('start', undefined);
191
191
  (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.setFieldValue('end', undefined);
192
+ (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('dimension', undefined);
192
193
  }
193
194
  })), analysisType === 'user' && /*#__PURE__*/React.createElement(Form.Item, {
194
195
  label: "",
@@ -238,7 +239,11 @@ var TopPanel = function TopPanel(props) {
238
239
  subject: currentSubject,
239
240
  key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-start"),
240
241
  analysisType: analysisType,
241
- onChange: setStartEvent
242
+ onChange: function onChange(evt) {
243
+ var _formRef$current4;
244
+ setStartEvent(evt);
245
+ (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('dimension', undefined);
246
+ }
242
247
  })), /*#__PURE__*/React.createElement(Space, {
243
248
  align: "baseline",
244
249
  style: {
@@ -282,8 +287,8 @@ var TopPanel = function TopPanel(props) {
282
287
  enableDelete: true,
283
288
  key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-pre"),
284
289
  onDelete: function onDelete() {
285
- var _formRef$current3;
286
- (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('associatedPreAttr', undefined);
290
+ var _formRef$current5;
291
+ (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('associatedPreAttr', undefined);
287
292
  }
288
293
  }))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
289
294
  className: "associated-label"
@@ -305,8 +310,8 @@ var TopPanel = function TopPanel(props) {
305
310
  enableDelete: true,
306
311
  key: "".concat(startEvent === null || startEvent === void 0 ? void 0 : startEvent.id, "-").concat(endEvent === null || endEvent === void 0 ? void 0 : endEvent.id, "-next"),
307
312
  onDelete: function onDelete() {
308
- var _formRef$current4;
309
- (_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.setFieldValue('associatedNextAttr', undefined);
313
+ var _formRef$current6;
314
+ (_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedNextAttr', undefined);
310
315
  }
311
316
  }))), /*#__PURE__*/React.createElement("i", {
312
317
  style: {
@@ -315,9 +320,9 @@ var TopPanel = function TopPanel(props) {
315
320
  cursor: 'pointer'
316
321
  },
317
322
  onClick: function onClick() {
318
- var _formRef$current5, _formRef$current6;
319
- (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldValue('associatedPreAttr', undefined);
320
- (_formRef$current6 = formRef.current) === null || _formRef$current6 === void 0 ? void 0 : _formRef$current6.setFieldValue('associatedNextAttr', undefined);
323
+ var _formRef$current7, _formRef$current8;
324
+ (_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('associatedPreAttr', undefined);
325
+ (_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.setFieldValue('associatedNextAttr', undefined);
321
326
  setRelevancy(false);
322
327
  },
323
328
  className: "bsicon qingchu"
@@ -349,7 +354,9 @@ var TopPanel = function TopPanel(props) {
349
354
  analysisType: analysisType,
350
355
  key: "".concat(currentSubject === null || currentSubject === void 0 ? void 0 : currentSubject.subjectName, "-start"),
351
356
  onChange: function onChange(val) {
357
+ var _formRef$current9;
352
358
  setEndEvent(val);
359
+ (_formRef$current9 = formRef.current) === null || _formRef$current9 === void 0 ? void 0 : _formRef$current9.setFieldValue('dimension', undefined);
353
360
  }
354
361
  })), /*#__PURE__*/React.createElement(Form.Item, {
355
362
  label: "\u6309\u5C5E\u6027\u7EC6\u5206",
@@ -364,8 +371,8 @@ var TopPanel = function TopPanel(props) {
364
371
  showCommonProp: true,
365
372
  enableDelete: true,
366
373
  onDelete: function onDelete() {
367
- var _formRef$current7;
368
- (_formRef$current7 = formRef.current) === null || _formRef$current7 === void 0 ? void 0 : _formRef$current7.setFieldValue('dimension', undefined);
374
+ var _formRef$current10;
375
+ (_formRef$current10 = formRef.current) === null || _formRef$current10 === void 0 ? void 0 : _formRef$current10.setFieldValue('dimension', undefined);
369
376
  }
370
377
  })), /*#__PURE__*/React.createElement(Form.Item, {
371
378
  label: "\u5206\u6790\u6A21\u578B",
@@ -383,8 +390,8 @@ var TopPanel = function TopPanel(props) {
383
390
  loading: loading || subjectLoading,
384
391
  type: "primary",
385
392
  onClick: function onClick() {
386
- var _formRef$current8;
387
- (_formRef$current8 = formRef.current) === null || _formRef$current8 === void 0 ? void 0 : _formRef$current8.submit();
393
+ var _formRef$current11;
394
+ (_formRef$current11 = formRef.current) === null || _formRef$current11 === void 0 ? void 0 : _formRef$current11.submit();
388
395
  }
389
396
  }, "\u67E5\u8BE2"))));
390
397
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.3-alpha.26",
3
+ "version": "1.0.3-alpha.27",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -62,5 +62,5 @@
62
62
  "umi-request": "^1.4.0",
63
63
  "yorkie": "^2.0.0"
64
64
  },
65
- "gitHead": "adb4189b073092a81c87ee0bcfc672cf746b837a"
65
+ "gitHead": "f7da787bd6f30bc586c52a0f7a70883b895e4624"
66
66
  }