ftdsy-attr 2.1.16 → 2.1.17
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 +85 -68
- package/dist/ftdsy-attr.cjs.js.map +1 -1
- package/dist/ftdsy-attr.d.ts +7 -1
- package/dist/ftdsy-attr.esm.mjs +34 -27
- package/dist/ftdsy-attr.esm.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ftdsy-attr.cjs.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"undefined" != typeof process && process.versions && process.versions.node;
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
});
|
|
6
|
+
|
|
3
7
|
var t = require("axios"), s = require("@/globalThis-utils");
|
|
4
8
|
|
|
5
9
|
function e(t, s) {
|
|
@@ -71723,8 +71727,72 @@ function lt(t, s) {
|
|
|
71723
71727
|
}
|
|
71724
71728
|
}
|
|
71725
71729
|
|
|
71726
|
-
function at() {
|
|
71727
|
-
|
|
71730
|
+
function at(t, s) {
|
|
71731
|
+
switch (t) {
|
|
71732
|
+
case "pdd":
|
|
71733
|
+
case "tm":
|
|
71734
|
+
case "jd":
|
|
71735
|
+
case "dy":
|
|
71736
|
+
case "shopee":
|
|
71737
|
+
case "xhs":
|
|
71738
|
+
case "ks":
|
|
71739
|
+
case "albb":
|
|
71740
|
+
case "wxsph":
|
|
71741
|
+
default:
|
|
71742
|
+
return "";
|
|
71743
|
+
|
|
71744
|
+
case "tb":
|
|
71745
|
+
return function t(s) {
|
|
71746
|
+
switch (s) {
|
|
71747
|
+
case "singleSelect":
|
|
71748
|
+
return "singleCheck";
|
|
71749
|
+
|
|
71750
|
+
case "multiSelect":
|
|
71751
|
+
return "multiCheck";
|
|
71752
|
+
|
|
71753
|
+
case "multiComplex":
|
|
71754
|
+
return "multiComplex";
|
|
71755
|
+
|
|
71756
|
+
case "inputComponent":
|
|
71757
|
+
case "date":
|
|
71758
|
+
case "input":
|
|
71759
|
+
return "input";
|
|
71760
|
+
|
|
71761
|
+
default:
|
|
71762
|
+
return "unknown";
|
|
71763
|
+
}
|
|
71764
|
+
}(s);
|
|
71765
|
+
|
|
71766
|
+
case "dsy":
|
|
71767
|
+
return function e(t) {
|
|
71768
|
+
switch (t) {
|
|
71769
|
+
case "singleSelect":
|
|
71770
|
+
return "select";
|
|
71771
|
+
|
|
71772
|
+
case "multiSelect":
|
|
71773
|
+
return "checkbox";
|
|
71774
|
+
|
|
71775
|
+
case "multiComplex":
|
|
71776
|
+
return "multiComplex";
|
|
71777
|
+
|
|
71778
|
+
case "inputComponent":
|
|
71779
|
+
case "date":
|
|
71780
|
+
case "input":
|
|
71781
|
+
return "input";
|
|
71782
|
+
|
|
71783
|
+
default:
|
|
71784
|
+
return "unknown";
|
|
71785
|
+
}
|
|
71786
|
+
}(s);
|
|
71787
|
+
}
|
|
71788
|
+
}
|
|
71789
|
+
|
|
71790
|
+
function xt(t) {
|
|
71791
|
+
return mt.apply(this, arguments);
|
|
71792
|
+
}
|
|
71793
|
+
|
|
71794
|
+
function mt() {
|
|
71795
|
+
return mt = d(h().m(function t(s) {
|
|
71728
71796
|
var e, k, d, i, b, p, o, l, a, x, m, f = arguments;
|
|
71729
71797
|
return h().w(function(t) {
|
|
71730
71798
|
for (;;) switch (t.p = t.n) {
|
|
@@ -71738,7 +71806,7 @@ function at() {
|
|
|
71738
71806
|
is_prediction: e >= 1,
|
|
71739
71807
|
is_required_force: e >= 2,
|
|
71740
71808
|
is_other_force: e >= 3
|
|
71741
|
-
}, p =
|
|
71809
|
+
}, p = ft(s.attrs || []), o = {
|
|
71742
71810
|
title: s.title,
|
|
71743
71811
|
goods_sn: s.goods_sn,
|
|
71744
71812
|
remark: s.remark,
|
|
@@ -71780,7 +71848,7 @@ function at() {
|
|
|
71780
71848
|
}
|
|
71781
71849
|
return t.a(2, Promise.resolve({
|
|
71782
71850
|
msg: "成功",
|
|
71783
|
-
data:
|
|
71851
|
+
data: ft(a),
|
|
71784
71852
|
code: 1
|
|
71785
71853
|
}));
|
|
71786
71854
|
|
|
@@ -71816,10 +71884,10 @@ function at() {
|
|
|
71816
71884
|
return t.a(2);
|
|
71817
71885
|
}
|
|
71818
71886
|
}, t, null, [ [ 1, 8 ] ]);
|
|
71819
|
-
})),
|
|
71887
|
+
})), mt.apply(this, arguments);
|
|
71820
71888
|
}
|
|
71821
71889
|
|
|
71822
|
-
function
|
|
71890
|
+
function ft(t) {
|
|
71823
71891
|
var s = [];
|
|
71824
71892
|
return t.forEach(function(t) {
|
|
71825
71893
|
var e = {
|
|
@@ -71836,71 +71904,20 @@ function xt(t) {
|
|
|
71836
71904
|
}), s;
|
|
71837
71905
|
}
|
|
71838
71906
|
|
|
71907
|
+
var yt = {
|
|
71908
|
+
createCategoryProperties: lt,
|
|
71909
|
+
getOriginProperty: at,
|
|
71910
|
+
matchCategoryProperties: xt,
|
|
71911
|
+
createCategoryPropertyTemplate: ft
|
|
71912
|
+
};
|
|
71913
|
+
|
|
71839
71914
|
Object.defineProperty(exports, "getGlobal", {
|
|
71840
71915
|
enumerable: !0,
|
|
71841
71916
|
get: function() {
|
|
71842
71917
|
return s.getGlobal;
|
|
71843
71918
|
}
|
|
71844
|
-
}), exports.createCategoryProperties = lt, exports.createCategoryPropertyTemplate =
|
|
71845
|
-
exports.getOriginProperty =
|
|
71846
|
-
|
|
71847
|
-
|
|
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);
|
|
71919
|
+
}), exports.createCategoryProperties = lt, exports.createCategoryPropertyTemplate = ft,
|
|
71920
|
+
exports.default = yt, exports.getOriginProperty = at, exports.matchCategoryProperties = xt,
|
|
71921
|
+
"undefined" != typeof module && module.exports && (module.exports = exports.default || exports,
|
|
71922
|
+
module.exports.default = exports.default || {});
|
|
71906
71923
|
//# sourceMappingURL=ftdsy-attr.cjs.js.map
|