dfs-page-config 0.0.94 → 0.0.96
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/dfs-page-config.js +17 -17
- package/dist/dfs-page-config.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -21137,18 +21137,19 @@ function Ol(r, a, l) {
|
|
|
21137
21137
|
}), c;
|
|
21138
21138
|
}
|
|
21139
21139
|
function dY(r, a) {
|
|
21140
|
-
|
|
21141
|
-
|
|
21140
|
+
const l = a.url + "-" + (a.dataKey || "");
|
|
21141
|
+
if (r[l])
|
|
21142
|
+
a.options = r[l];
|
|
21142
21143
|
else {
|
|
21143
|
-
let
|
|
21144
|
-
const
|
|
21144
|
+
let c = a.method == "POST" ? "data" : "params";
|
|
21145
|
+
const d = typeof a.params == "function" ? a.params() : a.params;
|
|
21145
21146
|
ws({
|
|
21146
21147
|
url: r._BASE_URL + a.url,
|
|
21147
|
-
[
|
|
21148
|
+
[c]: d || {},
|
|
21148
21149
|
method: a.method || "GET"
|
|
21149
|
-
}).then((
|
|
21150
|
-
const
|
|
21151
|
-
a.options =
|
|
21150
|
+
}).then((f) => {
|
|
21151
|
+
const h = f[a.dataKey] || f.items || f;
|
|
21152
|
+
a.options = h, a.noCache || (r[l] = h);
|
|
21152
21153
|
});
|
|
21153
21154
|
}
|
|
21154
21155
|
}
|
|
@@ -21170,6 +21171,7 @@ const fY = (r) => {
|
|
|
21170
21171
|
// 页面配置数据
|
|
21171
21172
|
_CONFIG_DATA: {},
|
|
21172
21173
|
_BASE_URL: "https://gateway-c1.doublefs.com",
|
|
21174
|
+
loading: !1,
|
|
21173
21175
|
baseState: {}
|
|
21174
21176
|
},
|
|
21175
21177
|
getters: {
|
|
@@ -23760,9 +23762,7 @@ const Lq = /* @__PURE__ */ RE(UO), xq = _e({
|
|
|
23760
23762
|
}
|
|
23761
23763
|
},
|
|
23762
23764
|
setup(r) {
|
|
23763
|
-
const a = xi()
|
|
23764
|
-
console.log(a);
|
|
23765
|
-
const l = te(), c = r.componentOption, d = Sn({
|
|
23765
|
+
const a = xi(), l = te(), c = r.componentOption, d = Sn({
|
|
23766
23766
|
open: !0,
|
|
23767
23767
|
fileUrlUploadImg: a.state._BASE_URL + "/media-management-service/v2/image/upload/",
|
|
23768
23768
|
labelWidth: c.labelWidth || "110px",
|
|
@@ -23810,7 +23810,7 @@ const Lq = /* @__PURE__ */ RE(UO), xq = _e({
|
|
|
23810
23810
|
return !0;
|
|
23811
23811
|
}
|
|
23812
23812
|
function y(b) {
|
|
23813
|
-
a.
|
|
23813
|
+
a.state.loading = !0;
|
|
23814
23814
|
let _ = c.method == "GET" ? "params" : "data";
|
|
23815
23815
|
ws({
|
|
23816
23816
|
url: a.state._BASE_URL + c.url,
|
|
@@ -23821,7 +23821,7 @@ const Lq = /* @__PURE__ */ RE(UO), xq = _e({
|
|
|
23821
23821
|
}).catch((R) => {
|
|
23822
23822
|
console.log(R);
|
|
23823
23823
|
}).finally(() => {
|
|
23824
|
-
a.
|
|
23824
|
+
a.state.loading = !1;
|
|
23825
23825
|
});
|
|
23826
23826
|
}
|
|
23827
23827
|
function E() {
|
|
@@ -24083,7 +24083,7 @@ function Vq(r, a, l, c, d, f) {
|
|
|
24083
24083
|
_: 3
|
|
24084
24084
|
}, 8, ["locale"]);
|
|
24085
24085
|
}
|
|
24086
|
-
const Hq = /* @__PURE__ */ co(xq, [["render", Vq], ["__scopeId", "data-v-
|
|
24086
|
+
const Hq = /* @__PURE__ */ co(xq, [["render", Vq], ["__scopeId", "data-v-3de4296d"]]), kq = _e({
|
|
24087
24087
|
props: {
|
|
24088
24088
|
url: String,
|
|
24089
24089
|
text: {
|
|
@@ -56869,9 +56869,9 @@ const MX = /* @__PURE__ */ co(FX, [["render", IX]]), LX = (r) => {
|
|
|
56869
56869
|
r.component(l.name, l);
|
|
56870
56870
|
});
|
|
56871
56871
|
}, VX = (r, a) => {
|
|
56872
|
-
["_actions"].forEach((
|
|
56873
|
-
Object.keys(rs[
|
|
56874
|
-
a.store[
|
|
56872
|
+
["getters", "_actions"].forEach((l) => {
|
|
56873
|
+
Object.keys(rs[l]).forEach((c) => {
|
|
56874
|
+
a.store[l][c] = rs[l][c];
|
|
56875
56875
|
});
|
|
56876
56876
|
}), a.store.state._BASE_URL = a.baseUrl, rs.commit("saveUrl", a.baseUrl), rs.commit("saveState", a.store), LX(r), r.component("DfsPageConfig", IY);
|
|
56877
56877
|
};
|