yuanjia-form-pro-standard 1.1.5 → 1.1.6
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 +18 -20
- package/designer.style.css +1 -1
- package/designer.umd.js +6 -6
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -2692,9 +2692,9 @@ const advancedFields = [
|
|
|
2692
2692
|
withCredentials: false,
|
|
2693
2693
|
multipleSelect: false,
|
|
2694
2694
|
showFileList: true,
|
|
2695
|
-
limit:
|
|
2696
|
-
fileMaxSize:
|
|
2697
|
-
fileTypes: [
|
|
2695
|
+
limit: 9,
|
|
2696
|
+
fileMaxSize: 2048,
|
|
2697
|
+
fileTypes: [],
|
|
2698
2698
|
customClass: "",
|
|
2699
2699
|
labelIconClass: null,
|
|
2700
2700
|
labelIconPosition: "rear",
|
|
@@ -2735,9 +2735,9 @@ const advancedFields = [
|
|
|
2735
2735
|
withCredentials: false,
|
|
2736
2736
|
multipleSelect: false,
|
|
2737
2737
|
showFileList: true,
|
|
2738
|
-
limit:
|
|
2739
|
-
fileMaxSize:
|
|
2740
|
-
fileTypes: [
|
|
2738
|
+
limit: 9,
|
|
2739
|
+
fileMaxSize: 2048,
|
|
2740
|
+
fileTypes: [],
|
|
2741
2741
|
showDownloadLink: true,
|
|
2742
2742
|
filePreviewEnabled: false,
|
|
2743
2743
|
customClass: "",
|
|
@@ -10676,7 +10676,7 @@ function translateOptionItems(rawData, widgetType, labelKey, valueKey) {
|
|
|
10676
10676
|
}
|
|
10677
10677
|
return result;
|
|
10678
10678
|
}
|
|
10679
|
-
function assembleAxiosConfig(arrayObj, uniqueName) {
|
|
10679
|
+
function assembleAxiosConfig(arrayObj, uniqueName, formConfig2) {
|
|
10680
10680
|
let result = {};
|
|
10681
10681
|
if (!arrayObj || arrayObj.length <= 0) {
|
|
10682
10682
|
return result;
|
|
@@ -10696,7 +10696,6 @@ function assembleAxiosConfig(arrayObj, uniqueName) {
|
|
|
10696
10696
|
result[ai.name] = null;
|
|
10697
10697
|
}
|
|
10698
10698
|
} else if (ai.type === "Variable") {
|
|
10699
|
-
const { formConfig: formConfig2 } = cache$1 || {};
|
|
10700
10699
|
try {
|
|
10701
10700
|
const params = formConfig2 == null ? void 0 : formConfig2.v_form_params;
|
|
10702
10701
|
if ((_a2 = Object.keys(params)) == null ? void 0 : _a2.includes(ai.name)) {
|
|
@@ -10709,7 +10708,7 @@ function assembleAxiosConfig(arrayObj, uniqueName) {
|
|
|
10709
10708
|
});
|
|
10710
10709
|
return result;
|
|
10711
10710
|
}
|
|
10712
|
-
function buildRequestConfig(dataSource, DSV, VFR, isSandbox) {
|
|
10711
|
+
function buildRequestConfig(dataSource, DSV, VFR, isSandbox, formConfig) {
|
|
10713
10712
|
let config = {};
|
|
10714
10713
|
if (dataSource.requestURLType === "String") {
|
|
10715
10714
|
config.url = dataSource.requestURL;
|
|
@@ -10717,13 +10716,13 @@ function buildRequestConfig(dataSource, DSV, VFR, isSandbox) {
|
|
|
10717
10716
|
config.url = eval(dataSource.requestURL);
|
|
10718
10717
|
}
|
|
10719
10718
|
config.method = dataSource.requestMethod;
|
|
10720
|
-
config.headers = assembleAxiosConfig(dataSource.headers, dataSource.uniqueName);
|
|
10721
|
-
config.params = assembleAxiosConfig(dataSource.params, dataSource.uniqueName);
|
|
10722
|
-
config.data = assembleAxiosConfig(dataSource.data, dataSource.uniqueName);
|
|
10719
|
+
config.headers = assembleAxiosConfig(dataSource.headers, dataSource.uniqueName, formConfig);
|
|
10720
|
+
config.params = assembleAxiosConfig(dataSource.params, dataSource.uniqueName, formConfig);
|
|
10721
|
+
config.data = assembleAxiosConfig(dataSource.data, dataSource.uniqueName, formConfig);
|
|
10723
10722
|
let chFn = new Function("config", "isSandbox", "DSV", "VFR", dataSource.configHandlerCode);
|
|
10724
10723
|
return chFn.call(null, config, isSandbox, DSV, VFR);
|
|
10725
10724
|
}
|
|
10726
|
-
async function runDataSourceRequest(dataSource2, DSV2, VFR2, isSandbox2, $message) {
|
|
10725
|
+
async function runDataSourceRequest(dataSource2, DSV2, VFR2, isSandbox2, $message, formConfig2) {
|
|
10727
10726
|
try {
|
|
10728
10727
|
if (DSV2 && DSV2.group_id) {
|
|
10729
10728
|
dataSource2.params.push({
|
|
@@ -10732,7 +10731,7 @@ async function runDataSourceRequest(dataSource2, DSV2, VFR2, isSandbox2, $messag
|
|
|
10732
10731
|
value: DSV2.group_id
|
|
10733
10732
|
});
|
|
10734
10733
|
}
|
|
10735
|
-
let requestConfig = buildRequestConfig(dataSource2, DSV2, VFR2, isSandbox2);
|
|
10734
|
+
let requestConfig = buildRequestConfig(dataSource2, DSV2, VFR2, isSandbox2, formConfig2);
|
|
10736
10735
|
const token = almLocalStorage.getItem("token");
|
|
10737
10736
|
const rToken = almLocalStorage.getItem("rToken");
|
|
10738
10737
|
const tokenTime = almLocalStorage.getItem("tokenTime");
|
|
@@ -44258,7 +44257,7 @@ var fieldMixin = {
|
|
|
44258
44257
|
localDsv["group_id"] = this.field.options.group_id || "";
|
|
44259
44258
|
let dsResult = null;
|
|
44260
44259
|
try {
|
|
44261
|
-
dsResult = await runDataSourceRequest(curDS, localDsv, this.getFormRef(), false, this.$message);
|
|
44260
|
+
dsResult = await runDataSourceRequest(curDS, localDsv, this.getFormRef(), false, this.$message, this.formConfig);
|
|
44262
44261
|
this.loadOptions(dsResult);
|
|
44263
44262
|
} catch (err) {
|
|
44264
44263
|
this.$message.error(err.message);
|
|
@@ -98329,7 +98328,6 @@ const _sfc_main$4g = {
|
|
|
98329
98328
|
newFormJsonObj = JSON.parse(newFormJson);
|
|
98330
98329
|
} else {
|
|
98331
98330
|
newFormJsonObj = newFormJson;
|
|
98332
|
-
cache$1.formConfig = newFormJson == null ? void 0 : newFormJson.formConfig;
|
|
98333
98331
|
}
|
|
98334
98332
|
if (langResource) {
|
|
98335
98333
|
this.applyLangResource(newFormJsonObj, langResource);
|
|
@@ -99407,7 +99405,7 @@ function _sfc_render$4g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
99407
99405
|
_: 1
|
|
99408
99406
|
}));
|
|
99409
99407
|
}
|
|
99410
|
-
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["render", _sfc_render$4g], ["__scopeId", "data-v-
|
|
99408
|
+
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["render", _sfc_render$4g], ["__scopeId", "data-v-9485a4be"]]);
|
|
99411
99409
|
var ace$2 = { exports: {} };
|
|
99412
99410
|
(function(module, exports) {
|
|
99413
99411
|
(function() {
|
|
@@ -136797,7 +136795,7 @@ const _sfc_main$3e = {
|
|
|
136797
136795
|
headers: header
|
|
136798
136796
|
}).then((res) => {
|
|
136799
136797
|
res.data.Data.forEach((element) => {
|
|
136800
|
-
element.value = element.name
|
|
136798
|
+
element.value = `${element.id} ${element.name}`;
|
|
136801
136799
|
});
|
|
136802
136800
|
cb(res.data.Data);
|
|
136803
136801
|
});
|
|
@@ -158562,13 +158560,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
158562
158560
|
if (typeof window !== "undefined") {
|
|
158563
158561
|
let loadSvg = function() {
|
|
158564
158562
|
var body = document.body;
|
|
158565
|
-
var svgDom = document.getElementById("
|
|
158563
|
+
var svgDom = document.getElementById("__svg__icons__dom__1761534396575__");
|
|
158566
158564
|
if (!svgDom) {
|
|
158567
158565
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
158568
158566
|
svgDom.style.position = "absolute";
|
|
158569
158567
|
svgDom.style.width = "0";
|
|
158570
158568
|
svgDom.style.height = "0";
|
|
158571
|
-
svgDom.id = "
|
|
158569
|
+
svgDom.id = "__svg__icons__dom__1761534396575__";
|
|
158572
158570
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
158573
158571
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
158574
158572
|
}
|