@kmkf-fe-packages/basic-components 1.3.0 → 1.4.0

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 (3) hide show
  1. package/dist/index.esm.js +286 -279
  2. package/dist/index.js +286 -279
  3. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -9,363 +9,377 @@ import { cloneDeep, difference, differenceWith } from 'lodash';
9
9
  import { useDebounceEffect } from 'ahooks';
10
10
  import pubsub from 'pubsub-js';
11
11
 
12
- function _iterableToArrayLimit(arr, i) {
13
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
14
- if (null != _i) {
15
- var _s,
16
- _e,
17
- _x,
18
- _r,
19
- _arr = [],
20
- _n = !0,
21
- _d = !1;
12
+ function _iterableToArrayLimit(r, l) {
13
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14
+ if (null != t) {
15
+ var e,
16
+ n,
17
+ i,
18
+ u,
19
+ a = [],
20
+ f = !0,
21
+ o = !1;
22
22
  try {
23
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
24
- if (Object(_i) !== _i) return;
25
- _n = !1;
26
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
27
- } catch (err) {
28
- _d = !0, _e = err;
23
+ if (i = (t = t.call(r)).next, 0 === l) {
24
+ if (Object(t) !== t) return;
25
+ f = !1;
26
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
27
+ } catch (r) {
28
+ o = !0, n = r;
29
29
  } finally {
30
30
  try {
31
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
31
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
32
32
  } finally {
33
- if (_d) throw _e;
33
+ if (o) throw n;
34
34
  }
35
35
  }
36
- return _arr;
36
+ return a;
37
37
  }
38
38
  }
39
- function ownKeys(object, enumerableOnly) {
40
- var keys = Object.keys(object);
39
+ function ownKeys(e, r) {
40
+ var t = Object.keys(e);
41
41
  if (Object.getOwnPropertySymbols) {
42
- var symbols = Object.getOwnPropertySymbols(object);
43
- enumerableOnly && (symbols = symbols.filter(function (sym) {
44
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
45
- })), keys.push.apply(keys, symbols);
42
+ var o = Object.getOwnPropertySymbols(e);
43
+ r && (o = o.filter(function (r) {
44
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
45
+ })), t.push.apply(t, o);
46
46
  }
47
- return keys;
48
- }
49
- function _objectSpread2(target) {
50
- for (var i = 1; i < arguments.length; i++) {
51
- var source = null != arguments[i] ? arguments[i] : {};
52
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
53
- _defineProperty(target, key, source[key]);
54
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
55
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
47
+ return t;
48
+ }
49
+ function _objectSpread2(e) {
50
+ for (var r = 1; r < arguments.length; r++) {
51
+ var t = null != arguments[r] ? arguments[r] : {};
52
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
53
+ _defineProperty(e, r, t[r]);
54
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
55
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
56
56
  });
57
57
  }
58
- return target;
58
+ return e;
59
59
  }
60
60
  function _regeneratorRuntime() {
61
61
  _regeneratorRuntime = function () {
62
- return exports;
63
- };
64
- var exports = {},
65
- Op = Object.prototype,
66
- hasOwn = Op.hasOwnProperty,
67
- defineProperty = Object.defineProperty || function (obj, key, desc) {
68
- obj[key] = desc.value;
62
+ return e;
63
+ };
64
+ var t,
65
+ e = {},
66
+ r = Object.prototype,
67
+ n = r.hasOwnProperty,
68
+ o = Object.defineProperty || function (t, e, r) {
69
+ t[e] = r.value;
69
70
  },
70
- $Symbol = "function" == typeof Symbol ? Symbol : {},
71
- iteratorSymbol = $Symbol.iterator || "@@iterator",
72
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
73
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
74
- function define(obj, key, value) {
75
- return Object.defineProperty(obj, key, {
76
- value: value,
71
+ i = "function" == typeof Symbol ? Symbol : {},
72
+ a = i.iterator || "@@iterator",
73
+ c = i.asyncIterator || "@@asyncIterator",
74
+ u = i.toStringTag || "@@toStringTag";
75
+ function define(t, e, r) {
76
+ return Object.defineProperty(t, e, {
77
+ value: r,
77
78
  enumerable: !0,
78
79
  configurable: !0,
79
80
  writable: !0
80
- }), obj[key];
81
+ }), t[e];
81
82
  }
82
83
  try {
83
84
  define({}, "");
84
- } catch (err) {
85
- define = function (obj, key, value) {
86
- return obj[key] = value;
85
+ } catch (t) {
86
+ define = function (t, e, r) {
87
+ return t[e] = r;
87
88
  };
88
89
  }
89
- function wrap(innerFn, outerFn, self, tryLocsList) {
90
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
91
- generator = Object.create(protoGenerator.prototype),
92
- context = new Context(tryLocsList || []);
93
- return defineProperty(generator, "_invoke", {
94
- value: makeInvokeMethod(innerFn, self, context)
95
- }), generator;
90
+ function wrap(t, e, r, n) {
91
+ var i = e && e.prototype instanceof Generator ? e : Generator,
92
+ a = Object.create(i.prototype),
93
+ c = new Context(n || []);
94
+ return o(a, "_invoke", {
95
+ value: makeInvokeMethod(t, r, c)
96
+ }), a;
96
97
  }
97
- function tryCatch(fn, obj, arg) {
98
+ function tryCatch(t, e, r) {
98
99
  try {
99
100
  return {
100
101
  type: "normal",
101
- arg: fn.call(obj, arg)
102
+ arg: t.call(e, r)
102
103
  };
103
- } catch (err) {
104
+ } catch (t) {
104
105
  return {
105
106
  type: "throw",
106
- arg: err
107
+ arg: t
107
108
  };
108
109
  }
109
110
  }
110
- exports.wrap = wrap;
111
- var ContinueSentinel = {};
111
+ e.wrap = wrap;
112
+ var h = "suspendedStart",
113
+ l = "suspendedYield",
114
+ f = "executing",
115
+ s = "completed",
116
+ y = {};
112
117
  function Generator() {}
113
118
  function GeneratorFunction() {}
114
119
  function GeneratorFunctionPrototype() {}
115
- var IteratorPrototype = {};
116
- define(IteratorPrototype, iteratorSymbol, function () {
120
+ var p = {};
121
+ define(p, a, function () {
117
122
  return this;
118
123
  });
119
- var getProto = Object.getPrototypeOf,
120
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
121
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
122
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
123
- function defineIteratorMethods(prototype) {
124
- ["next", "throw", "return"].forEach(function (method) {
125
- define(prototype, method, function (arg) {
126
- return this._invoke(method, arg);
124
+ var d = Object.getPrototypeOf,
125
+ v = d && d(d(values([])));
126
+ v && v !== r && n.call(v, a) && (p = v);
127
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
128
+ function defineIteratorMethods(t) {
129
+ ["next", "throw", "return"].forEach(function (e) {
130
+ define(t, e, function (t) {
131
+ return this._invoke(e, t);
127
132
  });
128
133
  });
129
134
  }
130
- function AsyncIterator(generator, PromiseImpl) {
131
- function invoke(method, arg, resolve, reject) {
132
- var record = tryCatch(generator[method], generator, arg);
133
- if ("throw" !== record.type) {
134
- var result = record.arg,
135
- value = result.value;
136
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
137
- invoke("next", value, resolve, reject);
138
- }, function (err) {
139
- invoke("throw", err, resolve, reject);
140
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
141
- result.value = unwrapped, resolve(result);
142
- }, function (error) {
143
- return invoke("throw", error, resolve, reject);
135
+ function AsyncIterator(t, e) {
136
+ function invoke(r, o, i, a) {
137
+ var c = tryCatch(t[r], t, o);
138
+ if ("throw" !== c.type) {
139
+ var u = c.arg,
140
+ h = u.value;
141
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
142
+ invoke("next", t, i, a);
143
+ }, function (t) {
144
+ invoke("throw", t, i, a);
145
+ }) : e.resolve(h).then(function (t) {
146
+ u.value = t, i(u);
147
+ }, function (t) {
148
+ return invoke("throw", t, i, a);
144
149
  });
145
150
  }
146
- reject(record.arg);
151
+ a(c.arg);
147
152
  }
148
- var previousPromise;
149
- defineProperty(this, "_invoke", {
150
- value: function (method, arg) {
153
+ var r;
154
+ o(this, "_invoke", {
155
+ value: function (t, n) {
151
156
  function callInvokeWithMethodAndArg() {
152
- return new PromiseImpl(function (resolve, reject) {
153
- invoke(method, arg, resolve, reject);
157
+ return new e(function (e, r) {
158
+ invoke(t, n, e, r);
154
159
  });
155
160
  }
156
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
161
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
157
162
  }
158
163
  });
159
164
  }
160
- function makeInvokeMethod(innerFn, self, context) {
161
- var state = "suspendedStart";
162
- return function (method, arg) {
163
- if ("executing" === state) throw new Error("Generator is already running");
164
- if ("completed" === state) {
165
- if ("throw" === method) throw arg;
166
- return doneResult();
165
+ function makeInvokeMethod(e, r, n) {
166
+ var o = h;
167
+ return function (i, a) {
168
+ if (o === f) throw new Error("Generator is already running");
169
+ if (o === s) {
170
+ if ("throw" === i) throw a;
171
+ return {
172
+ value: t,
173
+ done: !0
174
+ };
167
175
  }
168
- for (context.method = method, context.arg = arg;;) {
169
- var delegate = context.delegate;
170
- if (delegate) {
171
- var delegateResult = maybeInvokeDelegate(delegate, context);
172
- if (delegateResult) {
173
- if (delegateResult === ContinueSentinel) continue;
174
- return delegateResult;
176
+ for (n.method = i, n.arg = a;;) {
177
+ var c = n.delegate;
178
+ if (c) {
179
+ var u = maybeInvokeDelegate(c, n);
180
+ if (u) {
181
+ if (u === y) continue;
182
+ return u;
175
183
  }
176
184
  }
177
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
178
- if ("suspendedStart" === state) throw state = "completed", context.arg;
179
- context.dispatchException(context.arg);
180
- } else "return" === context.method && context.abrupt("return", context.arg);
181
- state = "executing";
182
- var record = tryCatch(innerFn, self, context);
183
- if ("normal" === record.type) {
184
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
185
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
186
+ if (o === h) throw o = s, n.arg;
187
+ n.dispatchException(n.arg);
188
+ } else "return" === n.method && n.abrupt("return", n.arg);
189
+ o = f;
190
+ var p = tryCatch(e, r, n);
191
+ if ("normal" === p.type) {
192
+ if (o = n.done ? s : l, p.arg === y) continue;
185
193
  return {
186
- value: record.arg,
187
- done: context.done
194
+ value: p.arg,
195
+ done: n.done
188
196
  };
189
197
  }
190
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
198
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
191
199
  }
192
200
  };
193
201
  }
194
- function maybeInvokeDelegate(delegate, context) {
195
- var methodName = context.method,
196
- method = delegate.iterator[methodName];
197
- 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;
198
- var record = tryCatch(method, delegate.iterator, context.arg);
199
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
200
- var info = record.arg;
201
- 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);
202
+ function maybeInvokeDelegate(e, r) {
203
+ var n = r.method,
204
+ o = e.iterator[n];
205
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
206
+ var i = tryCatch(o, e.iterator, r.arg);
207
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
208
+ var a = i.arg;
209
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
202
210
  }
203
- function pushTryEntry(locs) {
204
- var entry = {
205
- tryLoc: locs[0]
211
+ function pushTryEntry(t) {
212
+ var e = {
213
+ tryLoc: t[0]
206
214
  };
207
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
215
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
208
216
  }
209
- function resetTryEntry(entry) {
210
- var record = entry.completion || {};
211
- record.type = "normal", delete record.arg, entry.completion = record;
217
+ function resetTryEntry(t) {
218
+ var e = t.completion || {};
219
+ e.type = "normal", delete e.arg, t.completion = e;
212
220
  }
213
- function Context(tryLocsList) {
221
+ function Context(t) {
214
222
  this.tryEntries = [{
215
223
  tryLoc: "root"
216
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
224
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
217
225
  }
218
- function values(iterable) {
219
- if (iterable) {
220
- var iteratorMethod = iterable[iteratorSymbol];
221
- if (iteratorMethod) return iteratorMethod.call(iterable);
222
- if ("function" == typeof iterable.next) return iterable;
223
- if (!isNaN(iterable.length)) {
224
- var i = -1,
225
- next = function next() {
226
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
227
- return next.value = undefined, next.done = !0, next;
226
+ function values(e) {
227
+ if (e || "" === e) {
228
+ var r = e[a];
229
+ if (r) return r.call(e);
230
+ if ("function" == typeof e.next) return e;
231
+ if (!isNaN(e.length)) {
232
+ var o = -1,
233
+ i = function next() {
234
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
235
+ return next.value = t, next.done = !0, next;
228
236
  };
229
- return next.next = next;
237
+ return i.next = i;
230
238
  }
231
239
  }
232
- return {
233
- next: doneResult
234
- };
240
+ throw new TypeError(typeof e + " is not iterable");
235
241
  }
236
- function doneResult() {
237
- return {
238
- value: undefined,
239
- done: !0
240
- };
241
- }
242
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
242
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
243
243
  value: GeneratorFunctionPrototype,
244
244
  configurable: !0
245
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
245
+ }), o(GeneratorFunctionPrototype, "constructor", {
246
246
  value: GeneratorFunction,
247
247
  configurable: !0
248
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
249
- var ctor = "function" == typeof genFun && genFun.constructor;
250
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
251
- }, exports.mark = function (genFun) {
252
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
253
- }, exports.awrap = function (arg) {
248
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
249
+ var e = "function" == typeof t && t.constructor;
250
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
251
+ }, e.mark = function (t) {
252
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
253
+ }, e.awrap = function (t) {
254
254
  return {
255
- __await: arg
255
+ __await: t
256
256
  };
257
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
257
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
258
258
  return this;
259
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
260
- void 0 === PromiseImpl && (PromiseImpl = Promise);
261
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
262
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
263
- return result.done ? result.value : iter.next();
259
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
260
+ void 0 === i && (i = Promise);
261
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
262
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
263
+ return t.done ? t.value : a.next();
264
264
  });
265
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
265
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
266
266
  return this;
267
- }), define(Gp, "toString", function () {
267
+ }), define(g, "toString", function () {
268
268
  return "[object Generator]";
269
- }), exports.keys = function (val) {
270
- var object = Object(val),
271
- keys = [];
272
- for (var key in object) keys.push(key);
273
- return keys.reverse(), function next() {
274
- for (; keys.length;) {
275
- var key = keys.pop();
276
- if (key in object) return next.value = key, next.done = !1, next;
269
+ }), e.keys = function (t) {
270
+ var e = Object(t),
271
+ r = [];
272
+ for (var n in e) r.push(n);
273
+ return r.reverse(), function next() {
274
+ for (; r.length;) {
275
+ var t = r.pop();
276
+ if (t in e) return next.value = t, next.done = !1, next;
277
277
  }
278
278
  return next.done = !0, next;
279
279
  };
280
- }, exports.values = values, Context.prototype = {
280
+ }, e.values = values, Context.prototype = {
281
281
  constructor: Context,
282
- reset: function (skipTempReset) {
283
- 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);
282
+ reset: function (e) {
283
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
284
284
  },
285
285
  stop: function () {
286
286
  this.done = !0;
287
- var rootRecord = this.tryEntries[0].completion;
288
- if ("throw" === rootRecord.type) throw rootRecord.arg;
287
+ var t = this.tryEntries[0].completion;
288
+ if ("throw" === t.type) throw t.arg;
289
289
  return this.rval;
290
290
  },
291
- dispatchException: function (exception) {
292
- if (this.done) throw exception;
293
- var context = this;
294
- function handle(loc, caught) {
295
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
291
+ dispatchException: function (e) {
292
+ if (this.done) throw e;
293
+ var r = this;
294
+ function handle(n, o) {
295
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
296
296
  }
297
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
298
- var entry = this.tryEntries[i],
299
- record = entry.completion;
300
- if ("root" === entry.tryLoc) return handle("end");
301
- if (entry.tryLoc <= this.prev) {
302
- var hasCatch = hasOwn.call(entry, "catchLoc"),
303
- hasFinally = hasOwn.call(entry, "finallyLoc");
304
- if (hasCatch && hasFinally) {
305
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
306
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
307
- } else if (hasCatch) {
308
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
297
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
298
+ var i = this.tryEntries[o],
299
+ a = i.completion;
300
+ if ("root" === i.tryLoc) return handle("end");
301
+ if (i.tryLoc <= this.prev) {
302
+ var c = n.call(i, "catchLoc"),
303
+ u = n.call(i, "finallyLoc");
304
+ if (c && u) {
305
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
306
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
307
+ } else if (c) {
308
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
309
309
  } else {
310
- if (!hasFinally) throw new Error("try statement without catch or finally");
311
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
310
+ if (!u) throw new Error("try statement without catch or finally");
311
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
312
312
  }
313
313
  }
314
314
  }
315
315
  },
316
- abrupt: function (type, arg) {
317
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
318
- var entry = this.tryEntries[i];
319
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
320
- var finallyEntry = entry;
316
+ abrupt: function (t, e) {
317
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
318
+ var o = this.tryEntries[r];
319
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
320
+ var i = o;
321
321
  break;
322
322
  }
323
323
  }
324
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
325
- var record = finallyEntry ? finallyEntry.completion : {};
326
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
324
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
325
+ var a = i ? i.completion : {};
326
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
327
327
  },
328
- complete: function (record, afterLoc) {
329
- if ("throw" === record.type) throw record.arg;
330
- 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;
328
+ complete: function (t, e) {
329
+ if ("throw" === t.type) throw t.arg;
330
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
331
331
  },
332
- finish: function (finallyLoc) {
333
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
334
- var entry = this.tryEntries[i];
335
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
332
+ finish: function (t) {
333
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
334
+ var r = this.tryEntries[e];
335
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
336
336
  }
337
337
  },
338
- catch: function (tryLoc) {
339
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
340
- var entry = this.tryEntries[i];
341
- if (entry.tryLoc === tryLoc) {
342
- var record = entry.completion;
343
- if ("throw" === record.type) {
344
- var thrown = record.arg;
345
- resetTryEntry(entry);
338
+ catch: function (t) {
339
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
340
+ var r = this.tryEntries[e];
341
+ if (r.tryLoc === t) {
342
+ var n = r.completion;
343
+ if ("throw" === n.type) {
344
+ var o = n.arg;
345
+ resetTryEntry(r);
346
346
  }
347
- return thrown;
347
+ return o;
348
348
  }
349
349
  }
350
350
  throw new Error("illegal catch attempt");
351
351
  },
352
- delegateYield: function (iterable, resultName, nextLoc) {
352
+ delegateYield: function (e, r, n) {
353
353
  return this.delegate = {
354
- iterator: values(iterable),
355
- resultName: resultName,
356
- nextLoc: nextLoc
357
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
358
- }
359
- }, exports;
354
+ iterator: values(e),
355
+ resultName: r,
356
+ nextLoc: n
357
+ }, "next" === this.method && (this.arg = t), y;
358
+ }
359
+ }, e;
360
+ }
361
+ function _toPrimitive(t, r) {
362
+ if ("object" != typeof t || !t) return t;
363
+ var e = t[Symbol.toPrimitive];
364
+ if (void 0 !== e) {
365
+ var i = e.call(t, r || "default");
366
+ if ("object" != typeof i) return i;
367
+ throw new TypeError("@@toPrimitive must return a primitive value.");
368
+ }
369
+ return ("string" === r ? String : Number)(t);
360
370
  }
361
- function _typeof(obj) {
371
+ function _toPropertyKey(t) {
372
+ var i = _toPrimitive(t, "string");
373
+ return "symbol" == typeof i ? i : String(i);
374
+ }
375
+ function _typeof(o) {
362
376
  "@babel/helpers - typeof";
363
377
 
364
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
365
- return typeof obj;
366
- } : function (obj) {
367
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
368
- }, _typeof(obj);
378
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
379
+ return typeof o;
380
+ } : function (o) {
381
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
382
+ }, _typeof(o);
369
383
  }
370
384
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
371
385
  try {
@@ -472,20 +486,6 @@ function _nonIterableSpread() {
472
486
  function _nonIterableRest() {
473
487
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
474
488
  }
475
- function _toPrimitive(input, hint) {
476
- if (typeof input !== "object" || input === null) return input;
477
- var prim = input[Symbol.toPrimitive];
478
- if (prim !== undefined) {
479
- var res = prim.call(input, hint || "default");
480
- if (typeof res !== "object") return res;
481
- throw new TypeError("@@toPrimitive must return a primitive value.");
482
- }
483
- return (hint === "string" ? String : Number)(input);
484
- }
485
- function _toPropertyKey(arg) {
486
- var key = _toPrimitive(arg, "string");
487
- return typeof key === "symbol" ? key : String(key);
488
- }
489
489
 
490
490
  function ApaasCascader(props) {
491
491
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -7637,19 +7637,21 @@ var BuyerNick = function BuyerNick(props) {
7637
7637
  var changeValue = function changeValue(e, type) {
7638
7638
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
7639
7639
  };
7640
- useEffect(function () {
7641
- //淘宝平台和抖音平台需要展示买家id
7642
- var platformList = ['TAOBAO', 'FXG'];
7643
- var showBuyerId = (shopList || []).some(function (item) {
7644
- return item.shopId == shopId && platformList.includes(item.shopSourceStr);
7645
- });
7646
- //如果不是淘宝店铺 旺旺id为空
7647
- if (!showBuyerId) {
7648
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
7649
- buyerOpenUid: ''
7650
- }));
7651
- }
7652
- }, [shopId, shopList]);
7640
+ // useEffect(() => {
7641
+ // //淘宝平台和抖音平台需要展示买家id
7642
+ // const platformList = ['TAOBAO', 'FXG'];
7643
+ // const showBuyerId = (shopList || []).some(
7644
+ // (item) =>
7645
+ // item.shopId == shopId && platformList.includes(item.shopSourceStr),
7646
+ // );
7647
+ // //如果不是淘宝店铺 旺旺id为空
7648
+ // if (!showBuyerId) {
7649
+ // onChange?.({
7650
+ // ...value,
7651
+ // buyerOpenUid: '',
7652
+ // });
7653
+ // }
7654
+ // }, [shopId, shopList]);
7653
7655
  return /*#__PURE__*/React.createElement(Input, {
7654
7656
  disabled: disabled,
7655
7657
  placeholder: "\u8BF7\u8F93\u5165\u4E70\u5BB6\u6635\u79F0",
@@ -11729,7 +11731,7 @@ var GoodItem$1 = function GoodItem(props) {
11729
11731
  width: 70
11730
11732
  },
11731
11733
  value: val,
11732
- min: 0,
11734
+ min: 1,
11733
11735
  precision: 0,
11734
11736
  onChange: function onChange(num) {
11735
11737
  return updateHandle(num, index, 'num');
@@ -11847,7 +11849,7 @@ var GoodItem$1 = function GoodItem(props) {
11847
11849
  width: 70
11848
11850
  },
11849
11851
  value: val,
11850
- min: 0,
11852
+ min: 1,
11851
11853
  precision: 0,
11852
11854
  onChange: function onChange(num) {
11853
11855
  return updateHandle(num, index, 'number');
@@ -12635,9 +12637,11 @@ var index$1 = (function (props) {
12635
12637
  _onChange = props.onChange,
12636
12638
  disabled = props.disabled,
12637
12639
  type = props.type;
12640
+ var onceRef = useRef(false);
12638
12641
  useEffect(function () {
12639
12642
  var _value$orders, _value$showOrderInfo;
12640
- if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
12643
+ if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
12644
+ onceRef.current = true;
12641
12645
  if (type === 'BS_SYSTEM_ORDER') {
12642
12646
  getOrderList(value.orderNo);
12643
12647
  } else if (type === 'WLN_SYSTEM_ORDER') {
@@ -12646,7 +12650,7 @@ var index$1 = (function (props) {
12646
12650
  getWdtOrderList(value.orderNo);
12647
12651
  }
12648
12652
  }
12649
- }, [value === null || value === void 0 ? void 0 : value.orderNo, type]);
12653
+ }, [value, type]);
12650
12654
  var columns = useMemo(function () {
12651
12655
  var _columnsNameMap$type, _columnsNameMap$type2;
12652
12656
  return [{
@@ -12689,7 +12693,8 @@ var index$1 = (function (props) {
12689
12693
  })
12690
12694
  }));
12691
12695
  }
12692
- case 6:
12696
+ onceRef.current = false;
12697
+ case 7:
12693
12698
  case "end":
12694
12699
  return _context.stop();
12695
12700
  }
@@ -12734,7 +12739,8 @@ var index$1 = (function (props) {
12734
12739
  })
12735
12740
  }));
12736
12741
  }
12737
- case 6:
12742
+ onceRef.current = false;
12743
+ case 7:
12738
12744
  case "end":
12739
12745
  return _context2.stop();
12740
12746
  }
@@ -12779,7 +12785,8 @@ var index$1 = (function (props) {
12779
12785
  })
12780
12786
  }));
12781
12787
  }
12782
- case 6:
12788
+ onceRef.current = false;
12789
+ case 7:
12783
12790
  case "end":
12784
12791
  return _context3.stop();
12785
12792
  }