@lingxiteam/assets 1.0.11 → 1.0.12

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.
Files changed (137) hide show
  1. package/es/dealDsl/preprocess/common.js +27 -16
  2. package/es/error/errorDisplay/Web/Drawer/Drawer.less +31 -0
  3. package/es/error/errorDisplay/Web/Drawer/index.js +12 -4
  4. package/es/error/errorDisplay/Web/ErrorMsg/index.js +27 -4
  5. package/es/error/errorDisplay/Web/Notification/index.js +22 -11
  6. package/es/rootConfig/mobile/BusiComp.js +1 -1
  7. package/es/rootConfig/mobile/MobileModal.js +1 -1
  8. package/es/rootConfig/mobile/MobilePopover.js +1 -1
  9. package/es/rootConfig/pc/BusiComp.js +1 -1
  10. package/es/rootConfig/pc/Drawer.js +1 -1
  11. package/es/rootConfig/pc/Modal.js +1 -1
  12. package/es/rootConfig/pc/Popover.js +1 -1
  13. package/es/rootConfig/todoActionList.js +1 -1
  14. package/es/rootConfig/todoOptionList.js +1 -1
  15. package/es/theme/bin/cucc/theme.js +275 -0
  16. package/es/theme/bin/cucc/theme.less +272 -0
  17. package/es/theme/bin/cucc/theme.scss +272 -0
  18. package/es/theme/bin/default/theme.js +275 -0
  19. package/es/theme/bin/default/theme.less +272 -0
  20. package/es/theme/bin/default/theme.scss +272 -0
  21. package/es/theme/build.js +42 -0
  22. package/es/theme/src/cucc/index.js +131 -0
  23. package/es/theme/src/default/index.js +131 -0
  24. package/es/theme/utils/colorPaletteMixin.js +59 -0
  25. package/es/theme/utils/px2Num.js +12 -0
  26. package/es/theme/utils/renderColors.js +16 -0
  27. package/lib/IconSvg/index.d.ts +6 -0
  28. package/lib/IconSvg/index.js +30 -0
  29. package/lib/dealDsl/PropType.d.ts +7 -0
  30. package/lib/dealDsl/PropType.js +5 -0
  31. package/lib/dealDsl/events/actionObj.d.ts +3 -0
  32. package/lib/dealDsl/events/actionObj.js +13 -0
  33. package/lib/dealDsl/events/index.d.ts +6 -0
  34. package/lib/dealDsl/events/index.js +21 -0
  35. package/lib/dealDsl/index.d.ts +2 -0
  36. package/lib/dealDsl/index.js +31 -0
  37. package/lib/dealDsl/preprocess/common.d.ts +9 -0
  38. package/lib/dealDsl/preprocess/common.js +277 -0
  39. package/lib/dealDsl/preprocess/editor.d.ts +9 -0
  40. package/lib/dealDsl/preprocess/editor.js +28 -0
  41. package/lib/dealDsl/preprocess/engine.d.ts +9 -0
  42. package/lib/dealDsl/preprocess/engine.js +26 -0
  43. package/lib/dealDsl/preprocessDSL.d.ts +21 -0
  44. package/lib/dealDsl/preprocessDSL.js +88 -0
  45. package/lib/dealDsl/utils/index.d.ts +13 -0
  46. package/lib/dealDsl/utils/index.js +29 -0
  47. package/lib/error/errorCatch/index.js +48 -0
  48. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +115 -0
  49. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.less +201 -0
  50. package/lib/error/errorDisplay/Mobile/Drawer/index.js +140 -0
  51. package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +207 -0
  52. package/lib/error/errorDisplay/Mobile/Modal/Modal.js +53 -0
  53. package/lib/error/errorDisplay/Mobile/Modal/Modal.less +146 -0
  54. package/lib/error/errorDisplay/Mobile/Modal/index.js +127 -0
  55. package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +21 -0
  56. package/lib/error/errorDisplay/SVGstring.js +18 -0
  57. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +274 -0
  58. package/lib/error/errorDisplay/Web/Drawer/Drawer.less +420 -0
  59. package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +213 -0
  60. package/lib/error/errorDisplay/Web/Drawer/index.js +142 -0
  61. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +301 -0
  62. package/lib/error/errorDisplay/Web/Notification/Notice.js +161 -0
  63. package/lib/error/errorDisplay/Web/Notification/Notification.js +149 -0
  64. package/lib/error/errorDisplay/Web/Notification/Notification.less +137 -0
  65. package/lib/error/errorDisplay/Web/Notification/index.js +104 -0
  66. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +29 -0
  67. package/lib/error/errorDisplay/animation.less +112 -0
  68. package/lib/error/errorDisplay/compUtils.js +52 -0
  69. package/lib/error/errorDisplay/const.js +83 -0
  70. package/lib/error/errorDisplay/http.js +103 -0
  71. package/lib/error/errorDisplay/variables.less +1 -0
  72. package/lib/error/index.js +34 -0
  73. package/lib/images/ico-back.png +0 -0
  74. package/lib/index.d.ts +9 -0
  75. package/lib/rootConfig/index.d.ts +5 -0
  76. package/lib/rootConfig/index.js +28 -0
  77. package/lib/rootConfig/mobile/BusiComp.d.ts +66 -0
  78. package/lib/rootConfig/mobile/BusiComp.js +88 -0
  79. package/lib/rootConfig/mobile/MobileModal.d.ts +114 -0
  80. package/lib/rootConfig/mobile/MobileModal.js +140 -0
  81. package/lib/rootConfig/mobile/MobilePopover.d.ts +81 -0
  82. package/lib/rootConfig/mobile/MobilePopover.js +89 -0
  83. package/lib/rootConfig/mobile/index.d.ts +4 -0
  84. package/lib/rootConfig/mobile/index.js +34 -0
  85. package/lib/rootConfig/mobile/page.d.ts +157 -0
  86. package/lib/rootConfig/mobile/page.js +161 -0
  87. package/lib/rootConfig/pc/BusiComp.d.ts +66 -0
  88. package/lib/rootConfig/pc/BusiComp.js +88 -0
  89. package/lib/rootConfig/pc/Drawer.d.ts +150 -0
  90. package/lib/rootConfig/pc/Drawer.js +203 -0
  91. package/lib/rootConfig/pc/Modal.d.ts +160 -0
  92. package/lib/rootConfig/pc/Modal.js +195 -0
  93. package/lib/rootConfig/pc/Popover.d.ts +90 -0
  94. package/lib/rootConfig/pc/Popover.js +104 -0
  95. package/lib/rootConfig/pc/index.d.ts +5 -0
  96. package/lib/rootConfig/pc/index.js +41 -0
  97. package/lib/rootConfig/pc/page.d.ts +146 -0
  98. package/lib/rootConfig/pc/page.js +153 -0
  99. package/lib/rootConfig/todoActionList.d.ts +3082 -0
  100. package/lib/rootConfig/todoActionList.js +3600 -0
  101. package/lib/rootConfig/todoOptionList.d.ts +1466 -0
  102. package/lib/rootConfig/todoOptionList.js +1685 -0
  103. package/lib/security/const.d.ts +22 -0
  104. package/lib/security/const.js +38 -0
  105. package/lib/security/encipher/aes.d.ts +2 -0
  106. package/lib/security/encipher/aes.js +35 -0
  107. package/lib/security/encipher/des.d.ts +2 -0
  108. package/lib/security/encipher/des.js +34 -0
  109. package/lib/security/encipher/rsa.d.ts +2 -0
  110. package/lib/security/encipher/rsa.js +26 -0
  111. package/lib/security/encipher/sign.d.ts +6 -0
  112. package/lib/security/encipher/sign.js +102 -0
  113. package/lib/security/fetch.d.ts +9 -0
  114. package/lib/security/fetch.js +212 -0
  115. package/lib/security/httpEncryption.js +83 -0
  116. package/lib/security/index.d.ts +39 -0
  117. package/lib/security/index.js +29 -0
  118. package/lib/svg/check.svg +10 -0
  119. package/lib/svg/normal-check.svg +10 -0
  120. package/lib/svg/webViewError.svg +40 -0
  121. package/lib/theme/bin/cucc/theme.js +277 -0
  122. package/lib/theme/bin/cucc/theme.less +272 -0
  123. package/lib/theme/bin/cucc/theme.scss +272 -0
  124. package/lib/theme/bin/default/theme.js +277 -0
  125. package/lib/theme/bin/default/theme.less +272 -0
  126. package/lib/theme/bin/default/theme.scss +272 -0
  127. package/lib/theme/build.js +44 -0
  128. package/lib/theme/src/cucc/index.js +133 -0
  129. package/lib/theme/src/default/index.js +133 -0
  130. package/lib/theme/utils/colorPaletteMixin.js +61 -0
  131. package/lib/theme/utils/px2Num.js +14 -0
  132. package/lib/theme/utils/renderColors.js +18 -0
  133. package/lib/utils/img.d.ts +1 -0
  134. package/lib/utils/img.js +10 -0
  135. package/lib/utils/url.d.ts +16 -0
  136. package/lib/utils/url.js +111 -0
  137. package/package.json +6 -3
@@ -1,4 +1,4 @@
1
- import { hasSomeOwnProperty } from '../utils';
1
+ import { hasSomeOwnProperty, hasEveryOwnProperty } from '../utils';
2
2
  var h5 = {
3
3
  Icon: function Icon() {
4
4
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -77,13 +77,24 @@ var h5 = {
77
77
  props === null || props === void 0 ? true : delete props.acceptExtension;
78
78
  }
79
79
  return component;
80
+ },
81
+ 'Image|DformFile|DformImagePicker|Signature': function ImageDformFileDformImagePickerSignature() {
82
+ var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
83
+ var _component$props6 = component.props,
84
+ props = _component$props6 === void 0 ? {} : _component$props6;
85
+ if (props.hasOwnProperty('action')) {
86
+ // 旧数据含有action,实际用到的值和columns当中的api是相同
87
+ props.columns.api = props.action;
88
+ delete props.action;
89
+ }
90
+ return component;
80
91
  }
81
92
  };
82
93
  var pc = {
83
94
  'DatePicker|TimePicker': function DatePickerTimePicker() {
84
95
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
85
- var _component$props6 = component.props,
86
- props = _component$props6 === void 0 ? {} : _component$props6;
96
+ var _component$props7 = component.props,
97
+ props = _component$props7 === void 0 ? {} : _component$props7;
87
98
  var isCurrent = props.isCurrent,
88
99
  defaultValue = props.defaultValue,
89
100
  customTime = props.customTime;
@@ -110,8 +121,8 @@ var pc = {
110
121
  },
111
122
  Button: function Button() {
112
123
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
113
- var _component$props7 = component.props,
114
- props = _component$props7 === void 0 ? {} : _component$props7;
124
+ var _component$props8 = component.props,
125
+ props = _component$props8 === void 0 ? {} : _component$props8;
115
126
  // const { popoverSetting, showPopover } = props;
116
127
  if (props.iconType && !props.icon) {
117
128
  var theme = props.theme,
@@ -140,15 +151,15 @@ var pc = {
140
151
  },
141
152
  'Dropdown|Menu': function DropdownMenu() {
142
153
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
143
- var _component$props8 = component.props,
144
- props = _component$props8 === void 0 ? {} : _component$props8;
154
+ var _component$props9 = component.props,
155
+ props = _component$props9 === void 0 ? {} : _component$props9;
145
156
  delete props.iconInfo;
146
157
  return component;
147
158
  },
148
159
  'Input|Card|Collapse': function InputCardCollapse() {
149
160
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
150
- var _component$props9 = component.props,
151
- props = _component$props9 === void 0 ? {} : _component$props9;
161
+ var _component$props10 = component.props,
162
+ props = _component$props10 === void 0 ? {} : _component$props10;
152
163
  delete props.type;
153
164
  delete props.theme;
154
165
  delete props.fontAddress;
@@ -166,8 +177,8 @@ var pc = {
166
177
  },
167
178
  'StdUpload|Icon': function StdUploadIcon() {
168
179
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
169
- var _component$props10 = component.props,
170
- props = _component$props10 === void 0 ? {} : _component$props10;
180
+ var _component$props11 = component.props,
181
+ props = _component$props11 === void 0 ? {} : _component$props11;
171
182
  delete props.type;
172
183
  delete props.theme;
173
184
  delete props.fontAddress;
@@ -179,8 +190,8 @@ var pc = {
179
190
  },
180
191
  Table: function Table() {
181
192
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
182
- var _component$props11 = component.props,
183
- props = _component$props11 === void 0 ? {} : _component$props11;
193
+ var _component$props12 = component.props,
194
+ props = _component$props12 === void 0 ? {} : _component$props12;
184
195
  if (typeof props.showCustom === 'boolean') {
185
196
  // 旧数据
186
197
  var iconPosition = props.iconPosition,
@@ -215,14 +226,14 @@ var pc = {
215
226
  return component;
216
227
  },
217
228
  Upload: function Upload(component) {
218
- var _component$props12 = component.props,
219
- props = _component$props12 === void 0 ? {} : _component$props12;
229
+ var _component$props13 = component.props,
230
+ props = _component$props13 === void 0 ? {} : _component$props13;
220
231
  if (props.hasOwnProperty('action')) {
221
232
  // 旧数据含有action
222
233
  props.columns.api = props.action;
223
234
  delete props.action;
224
235
  }
225
- if (props.hasOwnProperty('accept') && props.hasOwnProperty('acceptType')) {
236
+ if (hasEveryOwnProperty(props, ['accept', 'acceptType'])) {
226
237
  // 实际数据是取acceptType
227
238
  delete props.accept;
228
239
  }
@@ -386,4 +386,35 @@
386
386
  border-radius: 4px;
387
387
  }
388
388
  }
389
+
390
+ &-btn {
391
+ display: inline-block;
392
+ padding: 0 15px;
393
+ border: 1px solid rgba(28, 36, 46, 0.15);
394
+ border-radius: 4px;
395
+ height: 32px;
396
+ line-height: 30px;
397
+ color: #1c242e;
398
+ &:hover {
399
+ border-color: rgb(112, 158, 250);
400
+ color: rgb(112, 158, 250);
401
+ }
402
+ }
403
+
404
+ &-btn&-btn-primary {
405
+ color: rgb(68, 119, 238);
406
+ background-color: rgb(68, 119, 238);
407
+ &,
408
+ &:hover {
409
+ color: white;
410
+ }
411
+ &:hover {
412
+ border-color: rgb(112, 158, 250);
413
+ background-color: rgb(112, 158, 250);
414
+ }
415
+ }
416
+
417
+ &-footer &-btn {
418
+ margin-left: 8px;
419
+ }
389
420
  }
@@ -50,7 +50,8 @@ function getDrawerInstance() {
50
50
  drawerInstance === null || drawerInstance === void 0 ? void 0 : drawerInstance.update(_objectSpread(_objectSpread({}, prarms), {}, {
51
51
  key: cacheKey
52
52
  }));
53
- }
53
+ },
54
+ key: cacheKey
54
55
  });
55
56
  });
56
57
  });
@@ -62,11 +63,13 @@ var drawerHandel = {
62
63
  getDrawerInstance(options, function (_ref) {
63
64
  var instance = _ref.instance,
64
65
  _close = _ref.close,
65
- update = _ref.update;
66
+ update = _ref.update,
67
+ key = _ref.key;
66
68
  var _ref2 = instance || {},
67
69
  open = _ref2.open,
68
70
  otherInstace = _objectWithoutProperties(_ref2, _excluded);
69
71
  open(options);
72
+ drawerHandel.key = key;
70
73
  resolve(_objectSpread(_objectSpread({}, otherInstace), {}, {
71
74
  close: function close() {
72
75
  if ((options === null || options === void 0 ? void 0 : options.onClose) instanceof Function) {
@@ -81,10 +84,15 @@ var drawerHandel = {
81
84
  });
82
85
  });
83
86
  },
84
- close: function close(key) {
87
+ close: function close() {
88
+ var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : drawerHandel.key;
85
89
  Object.keys(drawerInstances).forEach(function (cacheKey) {
86
90
  Promise.resolve(drawerInstances[cacheKey]).then(function (instance) {
87
- instance.remove(key);
91
+ if (instance === null || instance === void 0 ? void 0 : instance.remove) {
92
+ instance.remove(key);
93
+ } else {
94
+ instance.close(key);
95
+ }
88
96
  });
89
97
  delete drawerInstances[cacheKey];
90
98
  });
@@ -109,7 +109,7 @@ var ErrorMsg = {
109
109
  footer: function () {
110
110
  var _footer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
111
111
  var _msg$resolve;
112
- var resolve, footerContent;
112
+ var resolve, _ref, feedbackCallback, footerContent;
113
113
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
114
114
  while (1) {
115
115
  switch (_context2.prev = _context2.next) {
@@ -118,7 +118,17 @@ var ErrorMsg = {
118
118
  return (_msg$resolve = msg === null || msg === void 0 ? void 0 : msg.resolve) !== null && _msg$resolve !== void 0 ? _msg$resolve : opts.resolve;
119
119
  case 2:
120
120
  resolve = _context2.sent;
121
+ _ref = msg || {}, feedbackCallback = _ref.feedbackCallback;
121
122
  footerContent = [];
123
+ if (typeof feedbackCallback === 'function') {
124
+ footerContent.push( /*#__PURE__*/React.createElement("a", {
125
+ onClick: function onClick() {
126
+ if (feedbackCallback()) {
127
+ Notification.close();
128
+ }
129
+ }
130
+ }, "\u6545\u969C\u4E0A\u62A5"));
131
+ }
122
132
  if (opts.extendFooter) {
123
133
  if (typeof opts.footer === 'function') {
124
134
  footerContent.push(opts.extendFooter());
@@ -232,7 +242,20 @@ var ErrorMsg = {
232
242
  break;
233
243
  }
234
244
  }
235
- }
245
+ },
246
+ footer: typeof feedbackCallback === 'function' ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
247
+ className: "lx-drawer-btn",
248
+ onClick: function onClick() {
249
+ drawerHandel.close();
250
+ }
251
+ }, "\u53D6 \u6D88"), /*#__PURE__*/React.createElement("a", {
252
+ className: "lx-drawer-btn lx-drawer-btn-primary",
253
+ onClick: function onClick() {
254
+ if (feedbackCallback()) {
255
+ drawerHandel.close();
256
+ }
257
+ }
258
+ }, "\u6545\u969C\u4E0A\u62A5")) : null
236
259
  });
237
260
  case 22:
238
261
  case "end":
@@ -241,10 +264,10 @@ var ErrorMsg = {
241
264
  }
242
265
  }, _callee, null, [[8, 15]]);
243
266
  }))
244
- }, "\u67E5\u770B\u8BE6\u60C5"));
267
+ }, "\u5F02\u5E38\u5E2E\u52A9"));
245
268
  }
246
269
  return _context2.abrupt("return", footerContent);
247
- case 7:
270
+ case 9:
248
271
  case "end":
249
272
  return _context2.stop();
250
273
  }
@@ -1,9 +1,15 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
10
  import Notification from './Notification';
6
11
  var notificationInstance = {};
12
+ var notificationNbr = 0;
7
13
  function getNotificationInstance() {
8
14
  return _getNotificationInstance.apply(this, arguments);
9
15
  }
@@ -16,13 +22,13 @@ function _getNotificationInstance() {
16
22
  placement,
17
23
  cacheKey,
18
24
  cacheInstance,
19
- _args = arguments;
25
+ _args2 = arguments;
20
26
  return _regeneratorRuntime().wrap(function _callee$(_context) {
21
27
  while (1) {
22
28
  switch (_context.prev = _context.next) {
23
29
  case 0:
24
- args = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
25
- callback = _args.length > 1 ? _args[1] : undefined;
30
+ args = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
31
+ callback = _args2.length > 1 ? _args2[1] : undefined;
26
32
  _ref2 = args || {}, _ref2$placement = _ref2.placement, placement = _ref2$placement === void 0 ? 'topRight' : _ref2$placement;
27
33
  cacheKey = "lx-notification-root ".concat(placement);
28
34
  cacheInstance = notificationInstance[cacheKey];
@@ -57,15 +63,20 @@ function _getNotificationInstance() {
57
63
  }));
58
64
  return _getNotificationInstance.apply(this, arguments);
59
65
  }
60
- function notice(args) {
61
- getNotificationInstance(args, function (_ref) {
62
- var instance = _ref.instance;
63
- instance.open(args);
64
- });
65
- }
66
66
  var ontificationAPI = {
67
- open: notice,
68
- close: function close(key) {
67
+ open: function open(_args) {
68
+ getNotificationInstance(_args, function (_ref) {
69
+ var instance = _ref.instance;
70
+ var nKey = "lx-notification-".concat(notificationNbr);
71
+ instance.open(_objectSpread(_objectSpread({}, _args), {}, {
72
+ key: nKey
73
+ }));
74
+ notificationNbr += 1;
75
+ ontificationAPI.key = nKey;
76
+ });
77
+ },
78
+ close: function close() {
79
+ var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ontificationAPI.key;
69
80
  Object.keys(notificationInstance).forEach(function (cacheKey) {
70
81
  return Promise.resolve(notificationInstance[cacheKey]).then(function (instance) {
71
82
  instance.close(key);
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '业务组件',
8
8
  props: {
9
9
  objType: 'app',
10
10
  catalogItemId: -1
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '弹窗',
8
8
  props: {
9
9
  catalogItemId: -1,
10
10
  ignoreLogin: false,
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '气泡卡片',
8
8
  props: {
9
9
  pageLayout: 'BaseLayout',
10
10
  pageDynamicFlag: false,
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '业务组件',
8
8
  props: {
9
9
  objType: 'app',
10
10
  catalogItemId: -1
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '抽屉',
8
8
  props: {
9
9
  width: 624,
10
10
  height: 300,
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '弹窗',
8
8
  props: {
9
9
  catalogItemId: -1,
10
10
  width: 624,
@@ -4,7 +4,7 @@ export default {
4
4
  compType: -1,
5
5
  isBusiObjContainer: false,
6
6
  isContainer: false,
7
- label: '页面',
7
+ label: '气泡卡片',
8
8
  props: {
9
9
  catalogItemId: -1,
10
10
  width: 624,
@@ -2169,7 +2169,7 @@ var todoActionObject = {
2169
2169
  label: '给组件设置属性',
2170
2170
  todoOptions: [{
2171
2171
  key: 'rProps',
2172
- label: '设置远程组件属性',
2172
+ label: '设置自定义组件属性',
2173
2173
  type: 'SelectCustomParams'
2174
2174
  }]
2175
2175
  },
@@ -979,7 +979,7 @@ var todoOptionList = {
979
979
  },
980
980
  rProps: {
981
981
  key: 'rProps',
982
- label: '设置远程组件属性',
982
+ label: '设置自定义组件属性',
983
983
  type: 'SelectCustomParams'
984
984
  },
985
985
  hasEventExtService: {