ftdsy-attr 2.1.14 → 2.1.16
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/ftdsy-attr.cjs.js +70 -79
- package/dist/ftdsy-attr.cjs.js.map +1 -1
- package/dist/ftdsy-attr.d.ts +1 -8
- package/dist/ftdsy-attr.esm.mjs +99 -100
- package/dist/ftdsy-attr.esm.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ftdsy-attr.cjs.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"undefined" != typeof process && process.versions && process.versions.node;
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
});
|
|
6
|
-
|
|
7
3
|
var t = require("axios"), s = require("@/globalThis-utils");
|
|
8
4
|
|
|
9
5
|
function e(t, s) {
|
|
@@ -71294,74 +71290,9 @@ var ht = function t(s) {
|
|
|
71294
71290
|
code: k,
|
|
71295
71291
|
type: d
|
|
71296
71292
|
};
|
|
71297
|
-
}, lt = {
|
|
71298
|
-
createCategoryProperties: mt,
|
|
71299
|
-
getOriginProperty: function at(t, s) {
|
|
71300
|
-
switch (t) {
|
|
71301
|
-
case "pdd":
|
|
71302
|
-
case "tm":
|
|
71303
|
-
case "jd":
|
|
71304
|
-
case "dy":
|
|
71305
|
-
case "shopee":
|
|
71306
|
-
case "xhs":
|
|
71307
|
-
case "ks":
|
|
71308
|
-
case "albb":
|
|
71309
|
-
case "wxsph":
|
|
71310
|
-
default:
|
|
71311
|
-
return "";
|
|
71312
|
-
|
|
71313
|
-
case "tb":
|
|
71314
|
-
return function t(s) {
|
|
71315
|
-
switch (s) {
|
|
71316
|
-
case "singleSelect":
|
|
71317
|
-
return "singleCheck";
|
|
71318
|
-
|
|
71319
|
-
case "multiSelect":
|
|
71320
|
-
return "multiCheck";
|
|
71321
|
-
|
|
71322
|
-
case "multiComplex":
|
|
71323
|
-
return "multiComplex";
|
|
71324
|
-
|
|
71325
|
-
case "inputComponent":
|
|
71326
|
-
case "date":
|
|
71327
|
-
case "input":
|
|
71328
|
-
return "input";
|
|
71329
|
-
|
|
71330
|
-
default:
|
|
71331
|
-
return "unknown";
|
|
71332
|
-
}
|
|
71333
|
-
}(s);
|
|
71334
|
-
|
|
71335
|
-
case "dsy":
|
|
71336
|
-
return function e(t) {
|
|
71337
|
-
switch (t) {
|
|
71338
|
-
case "singleSelect":
|
|
71339
|
-
return "select";
|
|
71340
|
-
|
|
71341
|
-
case "multiSelect":
|
|
71342
|
-
return "checkbox";
|
|
71343
|
-
|
|
71344
|
-
case "multiComplex":
|
|
71345
|
-
return "multiComplex";
|
|
71346
|
-
|
|
71347
|
-
case "inputComponent":
|
|
71348
|
-
case "date":
|
|
71349
|
-
case "input":
|
|
71350
|
-
return "input";
|
|
71351
|
-
|
|
71352
|
-
default:
|
|
71353
|
-
return "unknown";
|
|
71354
|
-
}
|
|
71355
|
-
}(s);
|
|
71356
|
-
}
|
|
71357
|
-
},
|
|
71358
|
-
matchCategoryProperties: function xt(t) {
|
|
71359
|
-
return ft.apply(this, arguments);
|
|
71360
|
-
},
|
|
71361
|
-
createCategoryPropertyTemplate: yt
|
|
71362
71293
|
};
|
|
71363
71294
|
|
|
71364
|
-
function
|
|
71295
|
+
function lt(t, s) {
|
|
71365
71296
|
switch (t) {
|
|
71366
71297
|
case "pdd":
|
|
71367
71298
|
return function e(t) {
|
|
@@ -71792,8 +71723,8 @@ function mt(t, s) {
|
|
|
71792
71723
|
}
|
|
71793
71724
|
}
|
|
71794
71725
|
|
|
71795
|
-
function
|
|
71796
|
-
return
|
|
71726
|
+
function at() {
|
|
71727
|
+
return at = d(h().m(function t(s) {
|
|
71797
71728
|
var e, k, d, i, b, p, o, l, a, x, m, f = arguments;
|
|
71798
71729
|
return h().w(function(t) {
|
|
71799
71730
|
for (;;) switch (t.p = t.n) {
|
|
@@ -71807,13 +71738,13 @@ function ft() {
|
|
|
71807
71738
|
is_prediction: e >= 1,
|
|
71808
71739
|
is_required_force: e >= 2,
|
|
71809
71740
|
is_other_force: e >= 3
|
|
71810
|
-
}, p =
|
|
71741
|
+
}, p = xt(s.attrs || []), o = {
|
|
71811
71742
|
title: s.title,
|
|
71812
71743
|
goods_sn: s.goods_sn,
|
|
71813
71744
|
remark: s.remark,
|
|
71814
71745
|
ccc_code: s.ccc_code,
|
|
71815
71746
|
specs: s.specs
|
|
71816
|
-
}, null != (l =
|
|
71747
|
+
}, null != (l = lt(s.platform, s.properties)) && l) {
|
|
71817
71748
|
t.n = 2;
|
|
71818
71749
|
break;
|
|
71819
71750
|
}
|
|
@@ -71849,7 +71780,7 @@ function ft() {
|
|
|
71849
71780
|
}
|
|
71850
71781
|
return t.a(2, Promise.resolve({
|
|
71851
71782
|
msg: "成功",
|
|
71852
|
-
data:
|
|
71783
|
+
data: xt(a),
|
|
71853
71784
|
code: 1
|
|
71854
71785
|
}));
|
|
71855
71786
|
|
|
@@ -71885,10 +71816,10 @@ function ft() {
|
|
|
71885
71816
|
return t.a(2);
|
|
71886
71817
|
}
|
|
71887
71818
|
}, t, null, [ [ 1, 8 ] ]);
|
|
71888
|
-
})),
|
|
71819
|
+
})), at.apply(this, arguments);
|
|
71889
71820
|
}
|
|
71890
71821
|
|
|
71891
|
-
function
|
|
71822
|
+
function xt(t) {
|
|
71892
71823
|
var s = [];
|
|
71893
71824
|
return t.forEach(function(t) {
|
|
71894
71825
|
var e = {
|
|
@@ -71910,6 +71841,66 @@ Object.defineProperty(exports, "getGlobal", {
|
|
|
71910
71841
|
get: function() {
|
|
71911
71842
|
return s.getGlobal;
|
|
71912
71843
|
}
|
|
71913
|
-
}), exports.
|
|
71914
|
-
|
|
71844
|
+
}), exports.createCategoryProperties = lt, exports.createCategoryPropertyTemplate = xt,
|
|
71845
|
+
exports.getOriginProperty = function mt(t, s) {
|
|
71846
|
+
switch (t) {
|
|
71847
|
+
case "pdd":
|
|
71848
|
+
case "tm":
|
|
71849
|
+
case "jd":
|
|
71850
|
+
case "dy":
|
|
71851
|
+
case "shopee":
|
|
71852
|
+
case "xhs":
|
|
71853
|
+
case "ks":
|
|
71854
|
+
case "albb":
|
|
71855
|
+
case "wxsph":
|
|
71856
|
+
default:
|
|
71857
|
+
return "";
|
|
71858
|
+
|
|
71859
|
+
case "tb":
|
|
71860
|
+
return function t(s) {
|
|
71861
|
+
switch (s) {
|
|
71862
|
+
case "singleSelect":
|
|
71863
|
+
return "singleCheck";
|
|
71864
|
+
|
|
71865
|
+
case "multiSelect":
|
|
71866
|
+
return "multiCheck";
|
|
71867
|
+
|
|
71868
|
+
case "multiComplex":
|
|
71869
|
+
return "multiComplex";
|
|
71870
|
+
|
|
71871
|
+
case "inputComponent":
|
|
71872
|
+
case "date":
|
|
71873
|
+
case "input":
|
|
71874
|
+
return "input";
|
|
71875
|
+
|
|
71876
|
+
default:
|
|
71877
|
+
return "unknown";
|
|
71878
|
+
}
|
|
71879
|
+
}(s);
|
|
71880
|
+
|
|
71881
|
+
case "dsy":
|
|
71882
|
+
return function e(t) {
|
|
71883
|
+
switch (t) {
|
|
71884
|
+
case "singleSelect":
|
|
71885
|
+
return "select";
|
|
71886
|
+
|
|
71887
|
+
case "multiSelect":
|
|
71888
|
+
return "checkbox";
|
|
71889
|
+
|
|
71890
|
+
case "multiComplex":
|
|
71891
|
+
return "multiComplex";
|
|
71892
|
+
|
|
71893
|
+
case "inputComponent":
|
|
71894
|
+
case "date":
|
|
71895
|
+
case "input":
|
|
71896
|
+
return "input";
|
|
71897
|
+
|
|
71898
|
+
default:
|
|
71899
|
+
return "unknown";
|
|
71900
|
+
}
|
|
71901
|
+
}(s);
|
|
71902
|
+
}
|
|
71903
|
+
}, exports.matchCategoryProperties = function ft(t) {
|
|
71904
|
+
return at.apply(this, arguments);
|
|
71905
|
+
}, "undefined" != typeof module && module.exports && (module.exports = exports.default || exports);
|
|
71915
71906
|
//# sourceMappingURL=ftdsy-attr.cjs.js.map
|