yuanjia-form-pro-standard 1.1.7-beta0.2 → 1.1.7
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/designer.es.js +7 -24
- package/designer.umd.js +3 -3
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -11076,25 +11076,9 @@ function clearChildFormWidgetList(tree) {
|
|
|
11076
11076
|
}
|
|
11077
11077
|
const childFormSchemaCache = new Map();
|
|
11078
11078
|
const pendingRequests = new Map();
|
|
11079
|
-
const CHILD_FORM_SCHEMA_CACHE_TTL_MS = 2 * 60 * 1e3;
|
|
11080
|
-
function clearCacheIfExpired() {
|
|
11081
|
-
const now = Date.now();
|
|
11082
|
-
for (const [key, entry] of childFormSchemaCache.entries()) {
|
|
11083
|
-
if (entry && typeof entry.timestamp === "number" && now - entry.timestamp > CHILD_FORM_SCHEMA_CACHE_TTL_MS) {
|
|
11084
|
-
childFormSchemaCache.clear();
|
|
11085
|
-
return;
|
|
11086
|
-
}
|
|
11087
|
-
}
|
|
11088
|
-
}
|
|
11089
11079
|
async function fetchChildFormSchema(childFormKey) {
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
if (cached && typeof cached.timestamp === "number") {
|
|
11093
|
-
const isExpired = Date.now() - cached.timestamp > CHILD_FORM_SCHEMA_CACHE_TTL_MS;
|
|
11094
|
-
if (!isExpired) {
|
|
11095
|
-
return cached.schema;
|
|
11096
|
-
}
|
|
11097
|
-
childFormSchemaCache.clear();
|
|
11080
|
+
if (childFormSchemaCache.has(childFormKey)) {
|
|
11081
|
+
return childFormSchemaCache.get(childFormKey);
|
|
11098
11082
|
}
|
|
11099
11083
|
if (pendingRequests.has(childFormKey)) {
|
|
11100
11084
|
return await pendingRequests.get(childFormKey);
|
|
@@ -11106,11 +11090,11 @@ async function fetchChildFormSchema(childFormKey) {
|
|
|
11106
11090
|
const res = await service.get(url);
|
|
11107
11091
|
const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data) || {};
|
|
11108
11092
|
const { schema = [] } = data2;
|
|
11109
|
-
childFormSchemaCache.set(childFormKey,
|
|
11093
|
+
childFormSchemaCache.set(childFormKey, schema);
|
|
11110
11094
|
return schema;
|
|
11111
11095
|
} catch (error2) {
|
|
11112
11096
|
console.error(`\u83B7\u53D6 child-form schema \u5931\u8D25 [${childFormKey}]:`, error2);
|
|
11113
|
-
childFormSchemaCache.set(childFormKey,
|
|
11097
|
+
childFormSchemaCache.set(childFormKey, []);
|
|
11114
11098
|
throw error2;
|
|
11115
11099
|
} finally {
|
|
11116
11100
|
pendingRequests.delete(childFormKey);
|
|
@@ -219918,8 +219902,7 @@ const _sfc_main$3l = {
|
|
|
219918
219902
|
return {
|
|
219919
219903
|
specialMarkOptions: [
|
|
219920
219904
|
{ label: "\u8DDF\u6848\u5F8B\u5E08", value: "followLawyer" },
|
|
219921
|
-
{ label: "\u51FA\u5EAD\u5F8B\u5E08", value: "courtLawyer" }
|
|
219922
|
-
{ label: "\u51FA\u5EAD\u65F6\u95F4", value: "courtTime" }
|
|
219905
|
+
{ label: "\u51FA\u5EAD\u5F8B\u5E08", value: "courtLawyer" }
|
|
219923
219906
|
]
|
|
219924
219907
|
};
|
|
219925
219908
|
},
|
|
@@ -241967,13 +241950,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
241967
241950
|
if (typeof window !== "undefined") {
|
|
241968
241951
|
let loadSvg = function() {
|
|
241969
241952
|
var body = document.body;
|
|
241970
|
-
var svgDom = document.getElementById("
|
|
241953
|
+
var svgDom = document.getElementById("__svg__icons__dom__1770200314177__");
|
|
241971
241954
|
if (!svgDom) {
|
|
241972
241955
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
241973
241956
|
svgDom.style.position = "absolute";
|
|
241974
241957
|
svgDom.style.width = "0";
|
|
241975
241958
|
svgDom.style.height = "0";
|
|
241976
|
-
svgDom.id = "
|
|
241959
|
+
svgDom.id = "__svg__icons__dom__1770200314177__";
|
|
241977
241960
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
241978
241961
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
241979
241962
|
}
|