@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.
- package/dist/index.esm.js +286 -279
- package/dist/index.js +286 -279
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20,363 +20,377 @@ var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
|
|
|
20
20
|
var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
|
|
21
21
|
var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
|
|
22
22
|
|
|
23
|
-
function _iterableToArrayLimit(
|
|
24
|
-
var
|
|
25
|
-
if (null !=
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
function _iterableToArrayLimit(r, l) {
|
|
24
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
25
|
+
if (null != t) {
|
|
26
|
+
var e,
|
|
27
|
+
n,
|
|
28
|
+
i,
|
|
29
|
+
u,
|
|
30
|
+
a = [],
|
|
31
|
+
f = !0,
|
|
32
|
+
o = !1;
|
|
33
33
|
try {
|
|
34
|
-
if (
|
|
35
|
-
if (Object(
|
|
36
|
-
|
|
37
|
-
} else for (; !(
|
|
38
|
-
} catch (
|
|
39
|
-
|
|
34
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
35
|
+
if (Object(t) !== t) return;
|
|
36
|
+
f = !1;
|
|
37
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
38
|
+
} catch (r) {
|
|
39
|
+
o = !0, n = r;
|
|
40
40
|
} finally {
|
|
41
41
|
try {
|
|
42
|
-
if (!
|
|
42
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
43
43
|
} finally {
|
|
44
|
-
if (
|
|
44
|
+
if (o) throw n;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return a;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function ownKeys(
|
|
51
|
-
var
|
|
50
|
+
function ownKeys(e, r) {
|
|
51
|
+
var t = Object.keys(e);
|
|
52
52
|
if (Object.getOwnPropertySymbols) {
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
return Object.getOwnPropertyDescriptor(
|
|
56
|
-
})),
|
|
53
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
54
|
+
r && (o = o.filter(function (r) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
56
|
+
})), t.push.apply(t, o);
|
|
57
57
|
}
|
|
58
|
-
return
|
|
59
|
-
}
|
|
60
|
-
function _objectSpread2(
|
|
61
|
-
for (var
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
_defineProperty(
|
|
65
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
66
|
-
Object.defineProperty(
|
|
58
|
+
return t;
|
|
59
|
+
}
|
|
60
|
+
function _objectSpread2(e) {
|
|
61
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
62
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
63
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
64
|
+
_defineProperty(e, r, t[r]);
|
|
65
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
66
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return e;
|
|
70
70
|
}
|
|
71
71
|
function _regeneratorRuntime() {
|
|
72
72
|
_regeneratorRuntime = function () {
|
|
73
|
-
return
|
|
74
|
-
};
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
return e;
|
|
74
|
+
};
|
|
75
|
+
var t,
|
|
76
|
+
e = {},
|
|
77
|
+
r = Object.prototype,
|
|
78
|
+
n = r.hasOwnProperty,
|
|
79
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
80
|
+
t[e] = r.value;
|
|
80
81
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function define(
|
|
86
|
-
return Object.defineProperty(
|
|
87
|
-
value:
|
|
82
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
83
|
+
a = i.iterator || "@@iterator",
|
|
84
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
85
|
+
u = i.toStringTag || "@@toStringTag";
|
|
86
|
+
function define(t, e, r) {
|
|
87
|
+
return Object.defineProperty(t, e, {
|
|
88
|
+
value: r,
|
|
88
89
|
enumerable: !0,
|
|
89
90
|
configurable: !0,
|
|
90
91
|
writable: !0
|
|
91
|
-
}),
|
|
92
|
+
}), t[e];
|
|
92
93
|
}
|
|
93
94
|
try {
|
|
94
95
|
define({}, "");
|
|
95
|
-
} catch (
|
|
96
|
-
define = function (
|
|
97
|
-
return
|
|
96
|
+
} catch (t) {
|
|
97
|
+
define = function (t, e, r) {
|
|
98
|
+
return t[e] = r;
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function wrap(
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
return
|
|
105
|
-
value: makeInvokeMethod(
|
|
106
|
-
}),
|
|
101
|
+
function wrap(t, e, r, n) {
|
|
102
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
103
|
+
a = Object.create(i.prototype),
|
|
104
|
+
c = new Context(n || []);
|
|
105
|
+
return o(a, "_invoke", {
|
|
106
|
+
value: makeInvokeMethod(t, r, c)
|
|
107
|
+
}), a;
|
|
107
108
|
}
|
|
108
|
-
function tryCatch(
|
|
109
|
+
function tryCatch(t, e, r) {
|
|
109
110
|
try {
|
|
110
111
|
return {
|
|
111
112
|
type: "normal",
|
|
112
|
-
arg:
|
|
113
|
+
arg: t.call(e, r)
|
|
113
114
|
};
|
|
114
|
-
} catch (
|
|
115
|
+
} catch (t) {
|
|
115
116
|
return {
|
|
116
117
|
type: "throw",
|
|
117
|
-
arg:
|
|
118
|
+
arg: t
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
|
|
122
|
-
var
|
|
122
|
+
e.wrap = wrap;
|
|
123
|
+
var h = "suspendedStart",
|
|
124
|
+
l = "suspendedYield",
|
|
125
|
+
f = "executing",
|
|
126
|
+
s = "completed",
|
|
127
|
+
y = {};
|
|
123
128
|
function Generator() {}
|
|
124
129
|
function GeneratorFunction() {}
|
|
125
130
|
function GeneratorFunctionPrototype() {}
|
|
126
|
-
var
|
|
127
|
-
define(
|
|
131
|
+
var p = {};
|
|
132
|
+
define(p, a, function () {
|
|
128
133
|
return this;
|
|
129
134
|
});
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
function defineIteratorMethods(
|
|
135
|
-
["next", "throw", "return"].forEach(function (
|
|
136
|
-
define(
|
|
137
|
-
return this._invoke(
|
|
135
|
+
var d = Object.getPrototypeOf,
|
|
136
|
+
v = d && d(d(values([])));
|
|
137
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
138
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
139
|
+
function defineIteratorMethods(t) {
|
|
140
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
141
|
+
define(t, e, function (t) {
|
|
142
|
+
return this._invoke(e, t);
|
|
138
143
|
});
|
|
139
144
|
});
|
|
140
145
|
}
|
|
141
|
-
function AsyncIterator(
|
|
142
|
-
function invoke(
|
|
143
|
-
var
|
|
144
|
-
if ("throw" !==
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
return
|
|
148
|
-
invoke("next",
|
|
149
|
-
}, function (
|
|
150
|
-
invoke("throw",
|
|
151
|
-
}) :
|
|
152
|
-
|
|
153
|
-
}, function (
|
|
154
|
-
return invoke("throw",
|
|
146
|
+
function AsyncIterator(t, e) {
|
|
147
|
+
function invoke(r, o, i, a) {
|
|
148
|
+
var c = tryCatch(t[r], t, o);
|
|
149
|
+
if ("throw" !== c.type) {
|
|
150
|
+
var u = c.arg,
|
|
151
|
+
h = u.value;
|
|
152
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
153
|
+
invoke("next", t, i, a);
|
|
154
|
+
}, function (t) {
|
|
155
|
+
invoke("throw", t, i, a);
|
|
156
|
+
}) : e.resolve(h).then(function (t) {
|
|
157
|
+
u.value = t, i(u);
|
|
158
|
+
}, function (t) {
|
|
159
|
+
return invoke("throw", t, i, a);
|
|
155
160
|
});
|
|
156
161
|
}
|
|
157
|
-
|
|
162
|
+
a(c.arg);
|
|
158
163
|
}
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
value: function (
|
|
164
|
+
var r;
|
|
165
|
+
o(this, "_invoke", {
|
|
166
|
+
value: function (t, n) {
|
|
162
167
|
function callInvokeWithMethodAndArg() {
|
|
163
|
-
return new
|
|
164
|
-
invoke(
|
|
168
|
+
return new e(function (e, r) {
|
|
169
|
+
invoke(t, n, e, r);
|
|
165
170
|
});
|
|
166
171
|
}
|
|
167
|
-
return
|
|
172
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
168
173
|
}
|
|
169
174
|
});
|
|
170
175
|
}
|
|
171
|
-
function makeInvokeMethod(
|
|
172
|
-
var
|
|
173
|
-
return function (
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
if ("throw" ===
|
|
177
|
-
return
|
|
176
|
+
function makeInvokeMethod(e, r, n) {
|
|
177
|
+
var o = h;
|
|
178
|
+
return function (i, a) {
|
|
179
|
+
if (o === f) throw new Error("Generator is already running");
|
|
180
|
+
if (o === s) {
|
|
181
|
+
if ("throw" === i) throw a;
|
|
182
|
+
return {
|
|
183
|
+
value: t,
|
|
184
|
+
done: !0
|
|
185
|
+
};
|
|
178
186
|
}
|
|
179
|
-
for (
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
182
|
-
var
|
|
183
|
-
if (
|
|
184
|
-
if (
|
|
185
|
-
return
|
|
187
|
+
for (n.method = i, n.arg = a;;) {
|
|
188
|
+
var c = n.delegate;
|
|
189
|
+
if (c) {
|
|
190
|
+
var u = maybeInvokeDelegate(c, n);
|
|
191
|
+
if (u) {
|
|
192
|
+
if (u === y) continue;
|
|
193
|
+
return u;
|
|
186
194
|
}
|
|
187
195
|
}
|
|
188
|
-
if ("next" ===
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
} else "return" ===
|
|
192
|
-
|
|
193
|
-
var
|
|
194
|
-
if ("normal" ===
|
|
195
|
-
if (
|
|
196
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
197
|
+
if (o === h) throw o = s, n.arg;
|
|
198
|
+
n.dispatchException(n.arg);
|
|
199
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
200
|
+
o = f;
|
|
201
|
+
var p = tryCatch(e, r, n);
|
|
202
|
+
if ("normal" === p.type) {
|
|
203
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
196
204
|
return {
|
|
197
|
-
value:
|
|
198
|
-
done:
|
|
205
|
+
value: p.arg,
|
|
206
|
+
done: n.done
|
|
199
207
|
};
|
|
200
208
|
}
|
|
201
|
-
"throw" ===
|
|
209
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
202
210
|
}
|
|
203
211
|
};
|
|
204
212
|
}
|
|
205
|
-
function maybeInvokeDelegate(
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
if (
|
|
209
|
-
var
|
|
210
|
-
if ("throw" ===
|
|
211
|
-
var
|
|
212
|
-
return
|
|
213
|
+
function maybeInvokeDelegate(e, r) {
|
|
214
|
+
var n = r.method,
|
|
215
|
+
o = e.iterator[n];
|
|
216
|
+
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;
|
|
217
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
218
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
219
|
+
var a = i.arg;
|
|
220
|
+
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);
|
|
213
221
|
}
|
|
214
|
-
function pushTryEntry(
|
|
215
|
-
var
|
|
216
|
-
tryLoc:
|
|
222
|
+
function pushTryEntry(t) {
|
|
223
|
+
var e = {
|
|
224
|
+
tryLoc: t[0]
|
|
217
225
|
};
|
|
218
|
-
1 in
|
|
226
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
219
227
|
}
|
|
220
|
-
function resetTryEntry(
|
|
221
|
-
var
|
|
222
|
-
|
|
228
|
+
function resetTryEntry(t) {
|
|
229
|
+
var e = t.completion || {};
|
|
230
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
223
231
|
}
|
|
224
|
-
function Context(
|
|
232
|
+
function Context(t) {
|
|
225
233
|
this.tryEntries = [{
|
|
226
234
|
tryLoc: "root"
|
|
227
|
-
}],
|
|
235
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
228
236
|
}
|
|
229
|
-
function values(
|
|
230
|
-
if (
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
233
|
-
if ("function" == typeof
|
|
234
|
-
if (!isNaN(
|
|
235
|
-
var
|
|
236
|
-
|
|
237
|
-
for (; ++
|
|
238
|
-
return next.value =
|
|
237
|
+
function values(e) {
|
|
238
|
+
if (e || "" === e) {
|
|
239
|
+
var r = e[a];
|
|
240
|
+
if (r) return r.call(e);
|
|
241
|
+
if ("function" == typeof e.next) return e;
|
|
242
|
+
if (!isNaN(e.length)) {
|
|
243
|
+
var o = -1,
|
|
244
|
+
i = function next() {
|
|
245
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
246
|
+
return next.value = t, next.done = !0, next;
|
|
239
247
|
};
|
|
240
|
-
return
|
|
248
|
+
return i.next = i;
|
|
241
249
|
}
|
|
242
250
|
}
|
|
243
|
-
|
|
244
|
-
next: doneResult
|
|
245
|
-
};
|
|
251
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
246
252
|
}
|
|
247
|
-
|
|
248
|
-
return {
|
|
249
|
-
value: undefined,
|
|
250
|
-
done: !0
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
253
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
254
254
|
value: GeneratorFunctionPrototype,
|
|
255
255
|
configurable: !0
|
|
256
|
-
}),
|
|
256
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
257
257
|
value: GeneratorFunction,
|
|
258
258
|
configurable: !0
|
|
259
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
260
|
-
var
|
|
261
|
-
return !!
|
|
262
|
-
},
|
|
263
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
264
|
-
},
|
|
259
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
260
|
+
var e = "function" == typeof t && t.constructor;
|
|
261
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
262
|
+
}, e.mark = function (t) {
|
|
263
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
264
|
+
}, e.awrap = function (t) {
|
|
265
265
|
return {
|
|
266
|
-
__await:
|
|
266
|
+
__await: t
|
|
267
267
|
};
|
|
268
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
268
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
269
269
|
return this;
|
|
270
|
-
}),
|
|
271
|
-
void 0 ===
|
|
272
|
-
var
|
|
273
|
-
return
|
|
274
|
-
return
|
|
270
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
271
|
+
void 0 === i && (i = Promise);
|
|
272
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
273
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
274
|
+
return t.done ? t.value : a.next();
|
|
275
275
|
});
|
|
276
|
-
}, defineIteratorMethods(
|
|
276
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
277
277
|
return this;
|
|
278
|
-
}), define(
|
|
278
|
+
}), define(g, "toString", function () {
|
|
279
279
|
return "[object Generator]";
|
|
280
|
-
}),
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
for (var
|
|
284
|
-
return
|
|
285
|
-
for (;
|
|
286
|
-
var
|
|
287
|
-
if (
|
|
280
|
+
}), e.keys = function (t) {
|
|
281
|
+
var e = Object(t),
|
|
282
|
+
r = [];
|
|
283
|
+
for (var n in e) r.push(n);
|
|
284
|
+
return r.reverse(), function next() {
|
|
285
|
+
for (; r.length;) {
|
|
286
|
+
var t = r.pop();
|
|
287
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
288
288
|
}
|
|
289
289
|
return next.done = !0, next;
|
|
290
290
|
};
|
|
291
|
-
},
|
|
291
|
+
}, e.values = values, Context.prototype = {
|
|
292
292
|
constructor: Context,
|
|
293
|
-
reset: function (
|
|
294
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
293
|
+
reset: function (e) {
|
|
294
|
+
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);
|
|
295
295
|
},
|
|
296
296
|
stop: function () {
|
|
297
297
|
this.done = !0;
|
|
298
|
-
var
|
|
299
|
-
if ("throw" ===
|
|
298
|
+
var t = this.tryEntries[0].completion;
|
|
299
|
+
if ("throw" === t.type) throw t.arg;
|
|
300
300
|
return this.rval;
|
|
301
301
|
},
|
|
302
|
-
dispatchException: function (
|
|
303
|
-
if (this.done) throw
|
|
304
|
-
var
|
|
305
|
-
function handle(
|
|
306
|
-
return
|
|
302
|
+
dispatchException: function (e) {
|
|
303
|
+
if (this.done) throw e;
|
|
304
|
+
var r = this;
|
|
305
|
+
function handle(n, o) {
|
|
306
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
307
307
|
}
|
|
308
|
-
for (var
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
if ("root" ===
|
|
312
|
-
if (
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
if (
|
|
316
|
-
if (this.prev <
|
|
317
|
-
if (this.prev <
|
|
318
|
-
} else if (
|
|
319
|
-
if (this.prev <
|
|
308
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
309
|
+
var i = this.tryEntries[o],
|
|
310
|
+
a = i.completion;
|
|
311
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
312
|
+
if (i.tryLoc <= this.prev) {
|
|
313
|
+
var c = n.call(i, "catchLoc"),
|
|
314
|
+
u = n.call(i, "finallyLoc");
|
|
315
|
+
if (c && u) {
|
|
316
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
317
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
318
|
+
} else if (c) {
|
|
319
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
320
320
|
} else {
|
|
321
|
-
if (!
|
|
322
|
-
if (this.prev <
|
|
321
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
322
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
|
-
abrupt: function (
|
|
328
|
-
for (var
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
331
|
-
var
|
|
327
|
+
abrupt: function (t, e) {
|
|
328
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
329
|
+
var o = this.tryEntries[r];
|
|
330
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
331
|
+
var i = o;
|
|
332
332
|
break;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
var
|
|
337
|
-
return
|
|
335
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
336
|
+
var a = i ? i.completion : {};
|
|
337
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
338
338
|
},
|
|
339
|
-
complete: function (
|
|
340
|
-
if ("throw" ===
|
|
341
|
-
return "break" ===
|
|
339
|
+
complete: function (t, e) {
|
|
340
|
+
if ("throw" === t.type) throw t.arg;
|
|
341
|
+
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;
|
|
342
342
|
},
|
|
343
|
-
finish: function (
|
|
344
|
-
for (var
|
|
345
|
-
var
|
|
346
|
-
if (
|
|
343
|
+
finish: function (t) {
|
|
344
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
345
|
+
var r = this.tryEntries[e];
|
|
346
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
|
-
catch: function (
|
|
350
|
-
for (var
|
|
351
|
-
var
|
|
352
|
-
if (
|
|
353
|
-
var
|
|
354
|
-
if ("throw" ===
|
|
355
|
-
var
|
|
356
|
-
resetTryEntry(
|
|
349
|
+
catch: function (t) {
|
|
350
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
351
|
+
var r = this.tryEntries[e];
|
|
352
|
+
if (r.tryLoc === t) {
|
|
353
|
+
var n = r.completion;
|
|
354
|
+
if ("throw" === n.type) {
|
|
355
|
+
var o = n.arg;
|
|
356
|
+
resetTryEntry(r);
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return o;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
throw new Error("illegal catch attempt");
|
|
362
362
|
},
|
|
363
|
-
delegateYield: function (
|
|
363
|
+
delegateYield: function (e, r, n) {
|
|
364
364
|
return this.delegate = {
|
|
365
|
-
iterator: values(
|
|
366
|
-
resultName:
|
|
367
|
-
nextLoc:
|
|
368
|
-
}, "next" === this.method && (this.arg =
|
|
369
|
-
}
|
|
370
|
-
},
|
|
365
|
+
iterator: values(e),
|
|
366
|
+
resultName: r,
|
|
367
|
+
nextLoc: n
|
|
368
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
369
|
+
}
|
|
370
|
+
}, e;
|
|
371
|
+
}
|
|
372
|
+
function _toPrimitive(t, r) {
|
|
373
|
+
if ("object" != typeof t || !t) return t;
|
|
374
|
+
var e = t[Symbol.toPrimitive];
|
|
375
|
+
if (void 0 !== e) {
|
|
376
|
+
var i = e.call(t, r || "default");
|
|
377
|
+
if ("object" != typeof i) return i;
|
|
378
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
379
|
+
}
|
|
380
|
+
return ("string" === r ? String : Number)(t);
|
|
371
381
|
}
|
|
372
|
-
function
|
|
382
|
+
function _toPropertyKey(t) {
|
|
383
|
+
var i = _toPrimitive(t, "string");
|
|
384
|
+
return "symbol" == typeof i ? i : String(i);
|
|
385
|
+
}
|
|
386
|
+
function _typeof(o) {
|
|
373
387
|
"@babel/helpers - typeof";
|
|
374
388
|
|
|
375
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
376
|
-
return typeof
|
|
377
|
-
} : function (
|
|
378
|
-
return
|
|
379
|
-
}, _typeof(
|
|
389
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
390
|
+
return typeof o;
|
|
391
|
+
} : function (o) {
|
|
392
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
393
|
+
}, _typeof(o);
|
|
380
394
|
}
|
|
381
395
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
382
396
|
try {
|
|
@@ -483,20 +497,6 @@ function _nonIterableSpread() {
|
|
|
483
497
|
function _nonIterableRest() {
|
|
484
498
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
485
499
|
}
|
|
486
|
-
function _toPrimitive(input, hint) {
|
|
487
|
-
if (typeof input !== "object" || input === null) return input;
|
|
488
|
-
var prim = input[Symbol.toPrimitive];
|
|
489
|
-
if (prim !== undefined) {
|
|
490
|
-
var res = prim.call(input, hint || "default");
|
|
491
|
-
if (typeof res !== "object") return res;
|
|
492
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
493
|
-
}
|
|
494
|
-
return (hint === "string" ? String : Number)(input);
|
|
495
|
-
}
|
|
496
|
-
function _toPropertyKey(arg) {
|
|
497
|
-
var key = _toPrimitive(arg, "string");
|
|
498
|
-
return typeof key === "symbol" ? key : String(key);
|
|
499
|
-
}
|
|
500
500
|
|
|
501
501
|
function ApaasCascader(props) {
|
|
502
502
|
return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
|
|
@@ -7648,19 +7648,21 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
7648
7648
|
var changeValue = function changeValue(e, type) {
|
|
7649
7649
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
|
|
7650
7650
|
};
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
}
|
|
7651
|
+
// useEffect(() => {
|
|
7652
|
+
// //淘宝平台和抖音平台需要展示买家id
|
|
7653
|
+
// const platformList = ['TAOBAO', 'FXG'];
|
|
7654
|
+
// const showBuyerId = (shopList || []).some(
|
|
7655
|
+
// (item) =>
|
|
7656
|
+
// item.shopId == shopId && platformList.includes(item.shopSourceStr),
|
|
7657
|
+
// );
|
|
7658
|
+
// //如果不是淘宝店铺 旺旺id为空
|
|
7659
|
+
// if (!showBuyerId) {
|
|
7660
|
+
// onChange?.({
|
|
7661
|
+
// ...value,
|
|
7662
|
+
// buyerOpenUid: '',
|
|
7663
|
+
// });
|
|
7664
|
+
// }
|
|
7665
|
+
// }, [shopId, shopList]);
|
|
7664
7666
|
return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
7665
7667
|
disabled: disabled,
|
|
7666
7668
|
placeholder: "\u8BF7\u8F93\u5165\u4E70\u5BB6\u6635\u79F0",
|
|
@@ -11740,7 +11742,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11740
11742
|
width: 70
|
|
11741
11743
|
},
|
|
11742
11744
|
value: val,
|
|
11743
|
-
min:
|
|
11745
|
+
min: 1,
|
|
11744
11746
|
precision: 0,
|
|
11745
11747
|
onChange: function onChange(num) {
|
|
11746
11748
|
return updateHandle(num, index, 'num');
|
|
@@ -11858,7 +11860,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
11858
11860
|
width: 70
|
|
11859
11861
|
},
|
|
11860
11862
|
value: val,
|
|
11861
|
-
min:
|
|
11863
|
+
min: 1,
|
|
11862
11864
|
precision: 0,
|
|
11863
11865
|
onChange: function onChange(num) {
|
|
11864
11866
|
return updateHandle(num, index, 'number');
|
|
@@ -12646,9 +12648,11 @@ var index$1 = (function (props) {
|
|
|
12646
12648
|
_onChange = props.onChange,
|
|
12647
12649
|
disabled = props.disabled,
|
|
12648
12650
|
type = props.type;
|
|
12651
|
+
var onceRef = React.useRef(false);
|
|
12649
12652
|
React.useEffect(function () {
|
|
12650
12653
|
var _value$orders, _value$showOrderInfo;
|
|
12651
|
-
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)) {
|
|
12654
|
+
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) {
|
|
12655
|
+
onceRef.current = true;
|
|
12652
12656
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
12653
12657
|
getOrderList(value.orderNo);
|
|
12654
12658
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
@@ -12657,7 +12661,7 @@ var index$1 = (function (props) {
|
|
|
12657
12661
|
getWdtOrderList(value.orderNo);
|
|
12658
12662
|
}
|
|
12659
12663
|
}
|
|
12660
|
-
}, [value
|
|
12664
|
+
}, [value, type]);
|
|
12661
12665
|
var columns = React.useMemo(function () {
|
|
12662
12666
|
var _columnsNameMap$type, _columnsNameMap$type2;
|
|
12663
12667
|
return [{
|
|
@@ -12700,7 +12704,8 @@ var index$1 = (function (props) {
|
|
|
12700
12704
|
})
|
|
12701
12705
|
}));
|
|
12702
12706
|
}
|
|
12703
|
-
|
|
12707
|
+
onceRef.current = false;
|
|
12708
|
+
case 7:
|
|
12704
12709
|
case "end":
|
|
12705
12710
|
return _context.stop();
|
|
12706
12711
|
}
|
|
@@ -12745,7 +12750,8 @@ var index$1 = (function (props) {
|
|
|
12745
12750
|
})
|
|
12746
12751
|
}));
|
|
12747
12752
|
}
|
|
12748
|
-
|
|
12753
|
+
onceRef.current = false;
|
|
12754
|
+
case 7:
|
|
12749
12755
|
case "end":
|
|
12750
12756
|
return _context2.stop();
|
|
12751
12757
|
}
|
|
@@ -12790,7 +12796,8 @@ var index$1 = (function (props) {
|
|
|
12790
12796
|
})
|
|
12791
12797
|
}));
|
|
12792
12798
|
}
|
|
12793
|
-
|
|
12799
|
+
onceRef.current = false;
|
|
12800
|
+
case 7:
|
|
12794
12801
|
case "end":
|
|
12795
12802
|
return _context3.stop();
|
|
12796
12803
|
}
|