element-less 0.0.81 → 0.0.83
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/config/index.d.ts +17 -11
- package/custom/aMap/index.d.ts +63 -0
- package/custom/aMap/src/aMap.vue.d.ts +5 -15
- package/custom/button-export/index.d.ts +33 -0
- package/custom/button-export/src/buttonExport.vue.d.ts +5 -13
- package/custom/button-select/index.d.ts +22 -0
- package/custom/button-select/src/buttonSelect.vue.d.ts +4 -12
- package/custom/cron/index.d.ts +38 -0
- package/custom/cron/src/cron.vue.d.ts +1 -1
- package/custom/dynamic/render/src/innerObjectArray.vue.d.ts +8 -34
- package/custom/highlight/index.d.ts +31 -0
- package/custom/highlight/src/highlight.vue.d.ts +5 -15
- package/custom/inputTag/index.d.ts +1 -1
- package/custom/list/index.d.ts +10 -49
- package/custom/list/src/list.d.ts +2 -15
- package/custom/list/src/list.vue.d.ts +5 -31
- package/custom/stampBadge/index.d.ts +41 -0
- package/custom/stampBadge/src/stampBadge.vue.d.ts +5 -13
- package/custom/tip/index.d.ts +26 -0
- package/custom/tip/src/tip.vue.d.ts +5 -13
- package/custom/workFlow/src/nodeAdd.vue.d.ts +1 -1
- package/custom/workPlan/index.d.ts +38 -0
- package/custom/workPlan/src/workPlan.vue.d.ts +1 -1
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +74 -69
- package/element-less.umd.cjs +1 -1
- package/elementui/autocomplete/index.d.ts +1 -1
- package/elementui/checkbox/index.d.ts +1492 -0
- package/elementui/checkbox/src/checkbox.vue.d.ts +395 -0
- package/elementui/checkbox/src/checkboxButton.vue.d.ts +1 -1
- package/elementui/color-picker/index.d.ts +842 -0
- package/elementui/color-picker/src/colorPicker.vue.d.ts +470 -0
- package/elementui/date-picker/index.d.ts +1 -1
- package/elementui/date-picker-range/index.d.ts +1 -1
- package/elementui/drawer/index.d.ts +47 -0
- package/elementui/drawer/src/drawer.vue.d.ts +6 -10
- package/elementui/dropdown/index.d.ts +739 -0
- package/elementui/dropdown/src/dropdown.vue.d.ts +1 -1
- package/elementui/dropdown/src/dropdownGroup.vue.d.ts +5 -13
- package/elementui/input/index.d.ts +1 -1
- package/elementui/input-number/index.d.ts +1 -1
- package/elementui/input-range/index.d.ts +1 -1
- package/elementui/radio/index.d.ts +8 -8
- package/elementui/radio/src/radio.vue.d.ts +1 -1
- package/elementui/radio/src/radioButton.vue.d.ts +1 -1
- package/elementui/segmented/index.d.ts +1 -1
- package/elementui/select/index.d.ts +1 -1
- package/elementui/switch/index.d.ts +4 -4
- package/elementui/switch/src/switch.vue.d.ts +1 -1
- package/elementui/table/index.d.ts +1 -1
- package/elementui/textarea/index.d.ts +1 -1
- package/elementui/time-picker/index.d.ts +1 -1
- package/elementui/time-picker-range/index.d.ts +1 -1
- package/elementui/upload/index.d.ts +8 -8
- package/elementui/upload/src/upload.vue.d.ts +2 -2
- package/{index-CNwiAI2L.js → index-D-Sc4Bvf.js} +342 -262
- package/index-MpaVQVvq.cjs +1 -0
- package/index.d.ts +9 -3
- package/{inner-CsHkqlEH.js → inner-C0Yof3lh.js} +1 -1
- package/{inner-BXGjIrxH.cjs → inner-DnlGFCgU.cjs} +1 -1
- package/{innerItem-DNEoF9aa.js → innerItem-FIcD2S_r.js} +1 -1
- package/{innerItem-Wx6eS6tr.cjs → innerItem-USJk3Wou.cjs} +1 -1
- package/{mode-csharp-Dkm02IXt.js → mode-csharp-B1AfqJv2.js} +1 -1
- package/{mode-csharp-uVjiDPtu.cjs → mode-csharp-HV24ppTJ.cjs} +1 -1
- package/{mode-css-ClNiSLH9.js → mode-css-CdClYLMb.js} +1 -1
- package/{mode-css-DOktAAzV.cjs → mode-css-ChOSnLlJ.cjs} +1 -1
- package/{mode-javascript-CMEQ_vvz.js → mode-javascript-Cr-5hNiM.js} +1 -1
- package/{mode-javascript-CmO_lYqy.cjs → mode-javascript-DgZbrssX.cjs} +1 -1
- package/{mode-json-DkLr3GwF.js → mode-json-BrKXZrMC.js} +1 -1
- package/{mode-json-B9RUgvw-.cjs → mode-json-CC6hQHpj.cjs} +1 -1
- package/{mode-mysql-BKc4533I.js → mode-mysql-CNcAG51H.js} +1 -1
- package/{mode-mysql-B4h8APNI.cjs → mode-mysql-V9drmzbe.cjs} +1 -1
- package/package.json +3 -2
- package/style.css +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/powerQuery.d.ts +9 -0
- package/custom/button-export/src/buttonExport.test.d.ts +0 -1
- package/custom/button-search/src/buttonSearch.test.d.ts +0 -1
- package/custom/inputTag/src/inputTag.test.d.ts +0 -1
- package/custom/wangEditor/src/wangEditor.test.d.ts +0 -1
- package/index-DWV04OYz.cjs +0 -1
|
@@ -14868,7 +14868,7 @@ function inputRulesPlugin(props2) {
|
|
|
14868
14868
|
function getType(value) {
|
|
14869
14869
|
return Object.prototype.toString.call(value).slice(8, -1);
|
|
14870
14870
|
}
|
|
14871
|
-
function isPlainObject$
|
|
14871
|
+
function isPlainObject$3(value) {
|
|
14872
14872
|
if (getType(value) !== "Object") {
|
|
14873
14873
|
return false;
|
|
14874
14874
|
}
|
|
@@ -14876,9 +14876,9 @@ function isPlainObject$2(value) {
|
|
|
14876
14876
|
}
|
|
14877
14877
|
function mergeDeep(target, source) {
|
|
14878
14878
|
const output = { ...target };
|
|
14879
|
-
if (isPlainObject$
|
|
14879
|
+
if (isPlainObject$3(target) && isPlainObject$3(source)) {
|
|
14880
14880
|
Object.keys(source).forEach((key) => {
|
|
14881
|
-
if (isPlainObject$
|
|
14881
|
+
if (isPlainObject$3(source[key]) && isPlainObject$3(target[key])) {
|
|
14882
14882
|
output[key] = mergeDeep(target[key], source[key]);
|
|
14883
14883
|
} else {
|
|
14884
14884
|
output[key] = source[key];
|
|
@@ -26451,7 +26451,7 @@ var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
|
26451
26451
|
var funcToString = funcProto.toString;
|
|
26452
26452
|
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
26453
26453
|
var objectCtorString = funcToString.call(Object);
|
|
26454
|
-
function isPlainObject$
|
|
26454
|
+
function isPlainObject$2(value) {
|
|
26455
26455
|
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
26456
26456
|
return false;
|
|
26457
26457
|
}
|
|
@@ -26735,7 +26735,7 @@ const withPropsDefaultsSetter = (target) => {
|
|
|
26735
26735
|
for (const [key, value] of Object.entries(defaults2)) {
|
|
26736
26736
|
const prop = props2[key];
|
|
26737
26737
|
if (!hasOwn(props2, key)) continue;
|
|
26738
|
-
if (isPlainObject$
|
|
26738
|
+
if (isPlainObject$2(prop)) {
|
|
26739
26739
|
props2[key] = {
|
|
26740
26740
|
...prop,
|
|
26741
26741
|
default: value
|
|
@@ -29917,6 +29917,21 @@ const handler = {
|
|
|
29917
29917
|
}
|
|
29918
29918
|
};
|
|
29919
29919
|
const ProxyElsNotification = new Proxy(ElsNotification, handler);
|
|
29920
|
+
function isPlainObject$1(value) {
|
|
29921
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
29922
|
+
}
|
|
29923
|
+
function mergeConfig(base2, patch) {
|
|
29924
|
+
if (!isPlainObject$1(base2) || !isPlainObject$1(patch)) {
|
|
29925
|
+
return patch === void 0 ? base2 : patch;
|
|
29926
|
+
}
|
|
29927
|
+
const result = { ...base2 };
|
|
29928
|
+
Object.entries(patch).forEach(([key, value]) => {
|
|
29929
|
+
if (value === void 0) return;
|
|
29930
|
+
const currentValue = result[key];
|
|
29931
|
+
result[key] = isPlainObject$1(currentValue) && isPlainObject$1(value) ? mergeConfig(currentValue, value) : value;
|
|
29932
|
+
});
|
|
29933
|
+
return result;
|
|
29934
|
+
}
|
|
29920
29935
|
const defaultConfig = {
|
|
29921
29936
|
api: {
|
|
29922
29937
|
code: "ResultCode",
|
|
@@ -29970,12 +29985,22 @@ const defaultConfig = {
|
|
|
29970
29985
|
total: "RecordCountInt",
|
|
29971
29986
|
pageCount: "PageCount"
|
|
29972
29987
|
}
|
|
29988
|
+
},
|
|
29989
|
+
query: {
|
|
29990
|
+
encrypt: ""
|
|
29973
29991
|
}
|
|
29974
29992
|
};
|
|
29975
|
-
let globalConfig =
|
|
29993
|
+
let globalConfig = mergeConfig(defaultConfig, {});
|
|
29976
29994
|
function setConfig(newConfig) {
|
|
29977
|
-
globalConfig =
|
|
29995
|
+
globalConfig = mergeConfig(globalConfig, newConfig);
|
|
29978
29996
|
}
|
|
29997
|
+
const leoMvcConfig = {
|
|
29998
|
+
menu: {
|
|
29999
|
+
group: "FoldName",
|
|
30000
|
+
visible: "IsShow",
|
|
30001
|
+
confirmField: "ConfirmMessage"
|
|
30002
|
+
}
|
|
30003
|
+
};
|
|
29979
30004
|
let axiosInstance;
|
|
29980
30005
|
function getAxiosConfig() {
|
|
29981
30006
|
if (!globalConfig || !globalConfig.axios) {
|
|
@@ -30489,6 +30514,11 @@ const utils = {
|
|
|
30489
30514
|
var temp = WordToHex(a) + WordToHex(b) + WordToHex(c) + WordToHex(d);
|
|
30490
30515
|
return temp.toLowerCase();
|
|
30491
30516
|
},
|
|
30517
|
+
getQuerySignature(source) {
|
|
30518
|
+
var _a;
|
|
30519
|
+
const encryptKey = (((_a = globalConfig.query) == null ? void 0 : _a.encrypt) || "").split("|").find(Boolean);
|
|
30520
|
+
return this.md5(encryptKey ? source.toLowerCase() + encryptKey : source);
|
|
30521
|
+
},
|
|
30492
30522
|
getQueryParameters(queryData) {
|
|
30493
30523
|
if (!queryData) {
|
|
30494
30524
|
return {};
|
|
@@ -30506,22 +30536,22 @@ const utils = {
|
|
|
30506
30536
|
var fieldName = item.QueryFieldName;
|
|
30507
30537
|
var sortRank = item.Value;
|
|
30508
30538
|
if (sortRank) {
|
|
30509
|
-
var signatureMD5 = this.
|
|
30539
|
+
var signatureMD5 = this.getQuerySignature(fieldName + "_" + sortRank);
|
|
30510
30540
|
queryParms[parameterName] = fieldName + "$" + sortRank + "$" + signatureMD5;
|
|
30511
30541
|
}
|
|
30512
30542
|
} else {
|
|
30513
30543
|
if (item.QueryParameterType !== void 0 && item.QueryParameterType !== "NoQuery" && item.QueryMethod !== "NoAuto") {
|
|
30514
|
-
if (item.IsRange || item.
|
|
30544
|
+
if (item.IsRange || item.IsRangeOrEqual) {
|
|
30515
30545
|
let fieldName2 = item.QueryFieldName;
|
|
30516
30546
|
let startQueryMethod = item.IsRangeOrEqual ? "GreaterThanOrEqual" : "GreaterThan";
|
|
30517
30547
|
let queryDataType = item.QueryDataType;
|
|
30518
|
-
let startSignatureMD5 = this.
|
|
30548
|
+
let startSignatureMD5 = this.getQuerySignature(fieldName2 + "_" + startQueryMethod + "_" + queryDataType);
|
|
30519
30549
|
let startFieldValue = item.Value.split(",")[0];
|
|
30520
30550
|
if (startFieldValue || typeof startFieldValue == "number") {
|
|
30521
30551
|
queryParms["Query_Start_" + key] = fieldName2 + "$" + startQueryMethod + "$" + queryDataType + "$" + startSignatureMD5 + "$" + encodeURIComponent(startFieldValue);
|
|
30522
30552
|
}
|
|
30523
30553
|
let endQueryMethod = item.IsRangeOrEqual ? "LessThanOrEqual" : "LessThan";
|
|
30524
|
-
let endSignatureMD5 = this.
|
|
30554
|
+
let endSignatureMD5 = this.getQuerySignature(fieldName2 + "_" + endQueryMethod + "_" + queryDataType);
|
|
30525
30555
|
let endFieldValue = item.Value.split(",")[1];
|
|
30526
30556
|
if (endFieldValue || typeof endFieldValue == "number") {
|
|
30527
30557
|
queryParms["Query_End_" + key] = fieldName2 + "$" + endQueryMethod + "$" + queryDataType + "$" + endSignatureMD5 + "$" + encodeURIComponent(endFieldValue);
|
|
@@ -30531,7 +30561,7 @@ const utils = {
|
|
|
30531
30561
|
let fieldName2 = item.QueryFieldName;
|
|
30532
30562
|
let queryMethod = item.QueryMethod;
|
|
30533
30563
|
let queryDataType = item.QueryDataType;
|
|
30534
|
-
let signatureMD52 = item.SignatureMD5 || this.
|
|
30564
|
+
let signatureMD52 = item.SignatureMD5 || this.getQuerySignature(fieldName2 + "_" + queryMethod + "_" + queryDataType);
|
|
30535
30565
|
let fieldValue = item.Value;
|
|
30536
30566
|
if (item.IsAroundComma === true && fieldValue && !fieldValue.startsWith(",")) {
|
|
30537
30567
|
fieldValue = `,${fieldValue},`;
|
|
@@ -35682,6 +35712,53 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35682
35712
|
}
|
|
35683
35713
|
});
|
|
35684
35714
|
const ResponseMappingEditorVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2m, [["__scopeId", "data-v-7600939c"]]);
|
|
35715
|
+
function splitUrl(url) {
|
|
35716
|
+
const hashIndex = url.indexOf("#");
|
|
35717
|
+
const hash2 = hashIndex >= 0 ? url.slice(hashIndex) : "";
|
|
35718
|
+
const withoutHash = hashIndex >= 0 ? url.slice(0, hashIndex) : url;
|
|
35719
|
+
const queryIndex = withoutHash.indexOf("?");
|
|
35720
|
+
return {
|
|
35721
|
+
path: queryIndex >= 0 ? withoutHash.slice(0, queryIndex) : withoutHash,
|
|
35722
|
+
query: queryIndex >= 0 ? withoutHash.slice(queryIndex + 1) : "",
|
|
35723
|
+
hash: hash2
|
|
35724
|
+
};
|
|
35725
|
+
}
|
|
35726
|
+
function appendQueryParameters(url, parameters, overwrite = false) {
|
|
35727
|
+
const { path, query, hash: hash2 } = splitUrl(url);
|
|
35728
|
+
const search = new URLSearchParams(query);
|
|
35729
|
+
Object.entries(parameters).forEach(([key, value]) => {
|
|
35730
|
+
if (value === void 0 || value === null || value === "") return;
|
|
35731
|
+
if (!overwrite && search.has(key)) return;
|
|
35732
|
+
search.set(key, String(value));
|
|
35733
|
+
});
|
|
35734
|
+
const queryString = search.toString();
|
|
35735
|
+
return `${path}${queryString ? `?${queryString}` : ""}${hash2}`;
|
|
35736
|
+
}
|
|
35737
|
+
function appendPowerPublicQuery(targetUrl, currentHref = typeof location === "undefined" ? "" : location.href, excludeQuery = []) {
|
|
35738
|
+
if (!targetUrl || !currentHref) return targetUrl;
|
|
35739
|
+
const excluded = new Set(
|
|
35740
|
+
(Array.isArray(excludeQuery) ? excludeQuery : excludeQuery.split(",")).map((item) => item.trim()).filter(Boolean).map((item) => item.toLowerCase())
|
|
35741
|
+
);
|
|
35742
|
+
const currentUrl = new URL(currentHref, "http://localhost");
|
|
35743
|
+
const targetUrlInfo = new URL(targetUrl, currentUrl);
|
|
35744
|
+
if (targetUrlInfo.origin !== currentUrl.origin) return targetUrl;
|
|
35745
|
+
const targetKeys = new Set([...targetUrlInfo.searchParams.keys()].map((key) => key.toLowerCase()));
|
|
35746
|
+
const parameters = {};
|
|
35747
|
+
currentUrl.searchParams.forEach((value, key) => {
|
|
35748
|
+
const normalizedKey = key.toLowerCase();
|
|
35749
|
+
if (/^(Power_|Transfer_)/i.test(key) && !excluded.has(normalizedKey) && !targetKeys.has(normalizedKey)) {
|
|
35750
|
+
parameters[key] = value;
|
|
35751
|
+
}
|
|
35752
|
+
});
|
|
35753
|
+
return appendQueryParameters(targetUrl, parameters);
|
|
35754
|
+
}
|
|
35755
|
+
function appendTransferParameters(targetUrl, transferParams) {
|
|
35756
|
+
if (!transferParams) return targetUrl;
|
|
35757
|
+
const parameters = Object.fromEntries(
|
|
35758
|
+
Object.entries(transferParams).map(([key, value]) => [`Transfer_${key}`, value])
|
|
35759
|
+
);
|
|
35760
|
+
return appendQueryParameters(targetUrl, parameters);
|
|
35761
|
+
}
|
|
35685
35762
|
Number.prototype.toFixedNumber = function toFixedNumber(digits = 2) {
|
|
35686
35763
|
return parseFloat(this.toFixed(digits));
|
|
35687
35764
|
};
|
|
@@ -35698,34 +35775,9 @@ Number.prototype.formatDate = function(format2) {
|
|
|
35698
35775
|
return utils.formatDate(this, format2);
|
|
35699
35776
|
};
|
|
35700
35777
|
String.prototype.setPowerPublicQuery = function(excludeQuery = "") {
|
|
35701
|
-
|
|
35702
|
-
return "";
|
|
35703
|
-
}
|
|
35704
|
-
let url = this;
|
|
35705
|
-
let currParms = location.href.split("?")[1];
|
|
35706
|
-
if (currParms) {
|
|
35707
|
-
let dtParms = currParms.split("&");
|
|
35708
|
-
const excludeParams = excludeQuery.split(",");
|
|
35709
|
-
dtParms.forEach((ele) => {
|
|
35710
|
-
let parmKeyValue = ele.split("=");
|
|
35711
|
-
if (ele && (ele.includes("Power_") || ele.includes("Transfer_")) && !url.includes(parmKeyValue[0]) && !excludeParams.includes(parmKeyValue[0])) {
|
|
35712
|
-
url = url.indexOf("?") == -1 ? url + "?" + parmKeyValue[0] + "=" + parmKeyValue[1] : url + "&" + parmKeyValue[0] + "=" + parmKeyValue[1];
|
|
35713
|
-
}
|
|
35714
|
-
});
|
|
35715
|
-
}
|
|
35716
|
-
return url.toString();
|
|
35778
|
+
return appendPowerPublicQuery(this.toString(), void 0, excludeQuery);
|
|
35717
35779
|
}, String.prototype.setTransferParams = function(transferParams) {
|
|
35718
|
-
|
|
35719
|
-
return (this == null ? void 0 : this.toString()) || "";
|
|
35720
|
-
}
|
|
35721
|
-
let url = this.toString();
|
|
35722
|
-
Object.entries(transferParams).forEach(([key, value]) => {
|
|
35723
|
-
if (value !== void 0 && value !== null && value !== "") {
|
|
35724
|
-
const paramName = "Transfer_" + key;
|
|
35725
|
-
url = url.addUrlParameter(paramName, value);
|
|
35726
|
-
}
|
|
35727
|
-
});
|
|
35728
|
-
return url.toString();
|
|
35780
|
+
return appendTransferParameters(this.toString(), transferParams);
|
|
35729
35781
|
}, String.prototype.toCamel = function() {
|
|
35730
35782
|
return this.toString().replace(/-([a-z])/g, function(match, letter) {
|
|
35731
35783
|
console.log(match);
|
|
@@ -35818,15 +35870,7 @@ String.prototype.replacePowerUrl = function replacePowerUrl() {
|
|
|
35818
35870
|
return this.toString();
|
|
35819
35871
|
};
|
|
35820
35872
|
String.prototype.addUrlParameter = function addUrlParameter(param, value) {
|
|
35821
|
-
|
|
35822
|
-
return this.toString();
|
|
35823
|
-
}
|
|
35824
|
-
if (this.toString().indexOf(param) > -1) {
|
|
35825
|
-
var oUrl = this.toString();
|
|
35826
|
-
return oUrl.replace(new RegExp("/(" + param + "=)([^&]*)/gi"), param + "=" + value);
|
|
35827
|
-
}
|
|
35828
|
-
let cSymbol = this.indexOf("?") > -1 ? "&" : "?";
|
|
35829
|
-
return `${this}${cSymbol}${param}=${value}`;
|
|
35873
|
+
return appendQueryParameters(this.toString(), { [param]: value }, true);
|
|
35830
35874
|
};
|
|
35831
35875
|
String.prototype.post = function post(postdata, axiosInstance2) {
|
|
35832
35876
|
return utils.post(this.toString(), postdata, axiosInstance2);
|
|
@@ -38310,7 +38354,7 @@ const _sfc_main$2f = defineComponent({
|
|
|
38310
38354
|
},
|
|
38311
38355
|
emits: emits$2
|
|
38312
38356
|
});
|
|
38313
|
-
const Checkbox2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2f, [["__scopeId", "data-v-
|
|
38357
|
+
const Checkbox2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2f, [["__scopeId", "data-v-f619f8ce"]]);
|
|
38314
38358
|
const emits$1 = ["update:modelValue", "update:select", "update:select-label", "change", "click-option", "select", "blur", "clear", "readdataed"];
|
|
38315
38359
|
const _sfc_main$2e = defineComponent({
|
|
38316
38360
|
name: "ElsCheckboxButton",
|
|
@@ -39051,7 +39095,6 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
39051
39095
|
const queryForm = ref();
|
|
39052
39096
|
const container = useContainer();
|
|
39053
39097
|
const tagID = "els-form" + utils.shortid();
|
|
39054
|
-
const attrs = useAttrs();
|
|
39055
39098
|
const debouncedQuerySearch = computed(() => {
|
|
39056
39099
|
if (container) {
|
|
39057
39100
|
return debounce2(handleElsQuery, 200);
|
|
@@ -39219,9 +39262,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
39219
39262
|
return new Promise((resolve2) => {
|
|
39220
39263
|
validate().then((res) => {
|
|
39221
39264
|
if (res) {
|
|
39222
|
-
|
|
39223
|
-
emits2("search", queryData.value);
|
|
39224
|
-
}
|
|
39265
|
+
emits2("search", queryData.value);
|
|
39225
39266
|
resolve2({ ...queryData.value, ...getDefaultQuery() });
|
|
39226
39267
|
} else {
|
|
39227
39268
|
resolve2(false);
|
|
@@ -39328,7 +39369,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
39328
39369
|
};
|
|
39329
39370
|
}
|
|
39330
39371
|
});
|
|
39331
|
-
const FormQuery = /* @__PURE__ */ _export_sfc$1(_sfc_main$28, [["__scopeId", "data-v-
|
|
39372
|
+
const FormQuery = /* @__PURE__ */ _export_sfc$1(_sfc_main$28, [["__scopeId", "data-v-f5e4095d"]]);
|
|
39332
39373
|
const ElsFormQuery = withInstall$1(FormQuery);
|
|
39333
39374
|
var defaults_default$1 = {
|
|
39334
39375
|
/**
|
|
@@ -40011,12 +40052,12 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
40011
40052
|
], 64)) : !unref(tableGlobalData).isEdit && (!row.edit || !_ctx.isEdit) || !_ctx.prop ? (openBlock(), createElementBlock(Fragment$1, { key: 2 }, [
|
|
40012
40053
|
_ctx.type == "operate" ? (openBlock(), createBlock(_component_els_menu_dropdown, {
|
|
40013
40054
|
onClick: unref(menuClick),
|
|
40014
|
-
|
|
40055
|
+
data: getContextMenus(row),
|
|
40015
40056
|
key: row,
|
|
40016
40057
|
"is-fold": _ctx.isFold,
|
|
40017
40058
|
"un-fold-count": _ctx.unFoldCount,
|
|
40018
40059
|
isMobile: _ctx.isMobile
|
|
40019
|
-
}, null, 8, ["onClick", "
|
|
40060
|
+
}, null, 8, ["onClick", "data", "is-fold", "un-fold-count", "isMobile"])) : _ctx.type == "select" ? (openBlock(), createBlock(unref(ElButton), {
|
|
40020
40061
|
key: 1,
|
|
40021
40062
|
onClick: ($event) => handleSelectRow(row),
|
|
40022
40063
|
type: unref(tableCheckData).checkRowKeys.indexOf(row[unref(rowKey)]) > -1 ? "info" : "primary"
|
|
@@ -43536,9 +43577,10 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
43536
43577
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(menuData.filter((ele) => ele.visible), (item, index) => {
|
|
43537
43578
|
return openBlock(), createBlock(_component_els_menu_item, {
|
|
43538
43579
|
key: index,
|
|
43580
|
+
index: String(item.id),
|
|
43539
43581
|
isRootMenu: true,
|
|
43540
43582
|
item
|
|
43541
|
-
}, null, 8, ["item"]);
|
|
43583
|
+
}, null, 8, ["index", "item"]);
|
|
43542
43584
|
}), 128))
|
|
43543
43585
|
]),
|
|
43544
43586
|
_: 3
|
|
@@ -43638,8 +43680,9 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
43638
43680
|
citem.children && citem.children.length > 0 ? (openBlock(), createBlock(_component_els_menu_item, {
|
|
43639
43681
|
class: "nest-menu",
|
|
43640
43682
|
item: citem,
|
|
43683
|
+
index: String(citem.id),
|
|
43641
43684
|
key: index
|
|
43642
|
-
}, null, 8, ["item"])) : (openBlock(), createBlock(unref(ElMenuItem), {
|
|
43685
|
+
}, null, 8, ["item", "index"])) : (openBlock(), createBlock(unref(ElMenuItem), {
|
|
43643
43686
|
key: 1,
|
|
43644
43687
|
index: citem.id,
|
|
43645
43688
|
onClick: ($event) => unref(handleMenuClick)(citem)
|
|
@@ -44622,7 +44665,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44622
44665
|
]),
|
|
44623
44666
|
_: 2
|
|
44624
44667
|
}, [
|
|
44625
|
-
unref(slots).
|
|
44668
|
+
unref(slots).header ? {
|
|
44626
44669
|
name: "header",
|
|
44627
44670
|
fn: withCtx(() => [
|
|
44628
44671
|
renderSlot(_ctx.$slots, "header")
|
|
@@ -45069,7 +45112,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
45069
45112
|
};
|
|
45070
45113
|
}
|
|
45071
45114
|
});
|
|
45072
|
-
const DropdownGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$1M, [["__scopeId", "data-v-
|
|
45115
|
+
const DropdownGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$1M, [["__scopeId", "data-v-5cbd8c5c"]]);
|
|
45073
45116
|
const ElsDropdown = withInstall$1(_sfc_main$1N);
|
|
45074
45117
|
const ElsDropdownGroup = withInstall$1(DropdownGroup);
|
|
45075
45118
|
const sliderProps = buildProps({
|
|
@@ -47521,8 +47564,6 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
47521
47564
|
__name: "menuDropdown",
|
|
47522
47565
|
props: menuDropdownProps,
|
|
47523
47566
|
setup(__props) {
|
|
47524
|
-
var _a, _b;
|
|
47525
|
-
const { proxy } = getCurrentInstance();
|
|
47526
47567
|
const container = useContainer();
|
|
47527
47568
|
const props2 = __props;
|
|
47528
47569
|
const { getValue: getValue2 } = useProps();
|
|
@@ -47530,17 +47571,10 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
47530
47571
|
const dialogVisible = ref(false);
|
|
47531
47572
|
const unFoldMenus = reactive([]);
|
|
47532
47573
|
const menuData = reactive([]);
|
|
47533
|
-
|
|
47534
|
-
|
|
47535
|
-
|
|
47536
|
-
|
|
47537
|
-
let nameFieldname = "";
|
|
47538
|
-
let iconFieldName = "";
|
|
47539
|
-
if (proxy && ((_b = proxy.$lessConfig) == null ? void 0 : _b.menu)) {
|
|
47540
|
-
idFieldname = proxy.$lessConfig.menu.id;
|
|
47541
|
-
nameFieldname = proxy.$lessConfig.menu.name;
|
|
47542
|
-
iconFieldName = proxy.$lessConfig.menu.icon;
|
|
47543
|
-
}
|
|
47574
|
+
const menuConfig = utils.getMenuConfig();
|
|
47575
|
+
const idFieldname = menuConfig.$idField;
|
|
47576
|
+
const nameFieldname = menuConfig.$nameField;
|
|
47577
|
+
const iconFieldName = menuConfig.$iconField;
|
|
47544
47578
|
watch(() => props2.data, (val) => {
|
|
47545
47579
|
menuData.length = 0;
|
|
47546
47580
|
unFoldMenus.length = 0;
|
|
@@ -47666,7 +47700,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
47666
47700
|
};
|
|
47667
47701
|
}
|
|
47668
47702
|
});
|
|
47669
|
-
const MenuDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$1z, [["__scopeId", "data-v-
|
|
47703
|
+
const MenuDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$1z, [["__scopeId", "data-v-d692c779"]]);
|
|
47670
47704
|
const ElsMenuDropdown = withInstall$1(MenuDropdown);
|
|
47671
47705
|
const menuToolProps = buildProps({
|
|
47672
47706
|
/**
|
|
@@ -49147,7 +49181,7 @@ const listProps = buildProps({
|
|
|
49147
49181
|
*/
|
|
49148
49182
|
modelValue: {
|
|
49149
49183
|
type: Array,
|
|
49150
|
-
default: []
|
|
49184
|
+
default: () => []
|
|
49151
49185
|
},
|
|
49152
49186
|
/**
|
|
49153
49187
|
* @description 是否排序
|
|
@@ -49237,7 +49271,7 @@ const listProps = buildProps({
|
|
|
49237
49271
|
},
|
|
49238
49272
|
itemComponentProps: {
|
|
49239
49273
|
type: Object,
|
|
49240
|
-
default: {}
|
|
49274
|
+
default: () => ({})
|
|
49241
49275
|
},
|
|
49242
49276
|
itemComponentTitle: {
|
|
49243
49277
|
type: [Function, String]
|
|
@@ -49274,73 +49308,152 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49274
49308
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
49275
49309
|
const props2 = __props;
|
|
49276
49310
|
const { getValue: getValue2 } = useProps(props2);
|
|
49277
|
-
const wrapComponent = ref("div");
|
|
49278
|
-
const currItemComponent = ref("div");
|
|
49279
49311
|
const isMobile = getValue2("isMobile", false);
|
|
49280
|
-
let container = ref(h$1("div"));
|
|
49281
|
-
let outContainer = ref(h$1("div"));
|
|
49282
49312
|
const currLabelWidth = ref(getValue2("labelWidth", "auto"));
|
|
49283
49313
|
const currLabelPosition = ref(getValue2("labelPosition", ""));
|
|
49284
49314
|
const modelValue = useModel$1(__props, "modelValue");
|
|
49285
49315
|
const dropData = ref([]);
|
|
49286
|
-
const currItemKey = ref(props2.itemKey);
|
|
49287
|
-
const notObjectArray = ref(false);
|
|
49288
|
-
const currItemClassName = ref();
|
|
49289
|
-
const itemType = ref();
|
|
49290
49316
|
const dragStatus = ref();
|
|
49291
49317
|
const wrapActivitys = ref([]);
|
|
49292
49318
|
const dragWrapActivitys = ref([]);
|
|
49293
49319
|
const listRef = ref();
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49320
|
+
const attrs = useAttrs();
|
|
49321
|
+
const itemType = ref();
|
|
49322
|
+
const formMode = ref("none");
|
|
49323
|
+
const wrapComponent = computed(() => props2.itemComponent === "collapse" ? "el-collapse" : "div");
|
|
49324
|
+
const currItemComponent = computed(() => props2.itemComponent === "collapse" ? "el-collapse-item" : "div");
|
|
49325
|
+
const currItemKey = computed(() => props2.itemKey || "itemKey");
|
|
49326
|
+
const notObjectArray = computed(() => itemType.value === "primitive");
|
|
49327
|
+
const useOuterForm = computed(() => formMode.value === "outer");
|
|
49328
|
+
const useInnerForm = computed(() => formMode.value === "inner");
|
|
49329
|
+
const outContainer = computed(() => useOuterForm.value ? ElsForm : "div");
|
|
49330
|
+
const container = computed(() => useInnerForm.value ? ElsForm : "div");
|
|
49331
|
+
const outContainerProps = computed(() => ({
|
|
49332
|
+
...props2.outFormAttrs,
|
|
49333
|
+
...useOuterForm.value ? { modelValue: modelValue.value } : {}
|
|
49334
|
+
}));
|
|
49335
|
+
const currItemClassName = computed(() => {
|
|
49336
|
+
if (props2.itemComponent !== "div") {
|
|
49337
|
+
return props2.itemClassName;
|
|
49338
|
+
}
|
|
49339
|
+
return [props2.itemClassName, "listitem", "flex"];
|
|
49340
|
+
});
|
|
49341
|
+
watch(
|
|
49342
|
+
() => {
|
|
49343
|
+
const value = modelValue.value;
|
|
49344
|
+
return Array.isArray(value) ? [value.length, value[0]] : [0, void 0];
|
|
49345
|
+
},
|
|
49346
|
+
([length, firstItem]) => {
|
|
49347
|
+
if (itemType.value || !length) {
|
|
49348
|
+
return;
|
|
49349
|
+
}
|
|
49350
|
+
itemType.value = typeof firstItem === "object" ? "object" : "primitive";
|
|
49351
|
+
if (props2.hasForm) {
|
|
49352
|
+
formMode.value = notObjectArray.value || !props2.itemKey ? "outer" : "inner";
|
|
49353
|
+
}
|
|
49354
|
+
},
|
|
49355
|
+
{ immediate: true }
|
|
49356
|
+
);
|
|
49357
|
+
function isSameList(first2, second) {
|
|
49358
|
+
return first2.length === second.length && first2.every((item, index) => Object.is(item, second[index]));
|
|
49297
49359
|
}
|
|
49298
|
-
|
|
49360
|
+
function syncModelValueFromDropData(values = dropData.value.map((item) => item.value)) {
|
|
49361
|
+
const currentValue = Array.isArray(modelValue.value) ? modelValue.value : [];
|
|
49362
|
+
if (isSameList(currentValue, values)) {
|
|
49363
|
+
return;
|
|
49364
|
+
}
|
|
49365
|
+
currentValue.length = values.length;
|
|
49366
|
+
values.forEach((item, index) => {
|
|
49367
|
+
if (!Object.is(currentValue[index], item)) {
|
|
49368
|
+
currentValue[index] = item;
|
|
49369
|
+
}
|
|
49370
|
+
});
|
|
49371
|
+
}
|
|
49372
|
+
function syncDropDataFromModel(value) {
|
|
49373
|
+
const source = Array.isArray(value) ? value : [];
|
|
49299
49374
|
if (props2.itemKey) {
|
|
49300
|
-
dropData.value
|
|
49375
|
+
if (dropData.value !== source) {
|
|
49376
|
+
dropData.value = source;
|
|
49377
|
+
}
|
|
49378
|
+
return;
|
|
49301
49379
|
}
|
|
49302
|
-
|
|
49303
|
-
|
|
49304
|
-
|
|
49305
|
-
|
|
49380
|
+
const previous = Array.isArray(dropData.value) ? dropData.value : [];
|
|
49381
|
+
const usedIndexes = /* @__PURE__ */ new Set();
|
|
49382
|
+
const availableIndexes = /* @__PURE__ */ new Map();
|
|
49383
|
+
for (let index = previous.length - 1; index >= 0; index--) {
|
|
49384
|
+
const item = previous[index].value;
|
|
49385
|
+
const indexes = availableIndexes.get(item) ?? [];
|
|
49386
|
+
indexes.push(index);
|
|
49387
|
+
availableIndexes.set(item, indexes);
|
|
49388
|
+
}
|
|
49389
|
+
const nextData = source.map((item, index) => {
|
|
49390
|
+
let matchedIndex = -1;
|
|
49391
|
+
if (previous[index] && !usedIndexes.has(index) && Object.is(previous[index].value, item)) {
|
|
49392
|
+
matchedIndex = index;
|
|
49393
|
+
} else {
|
|
49394
|
+
const indexes = availableIndexes.get(item);
|
|
49395
|
+
while (indexes == null ? void 0 : indexes.length) {
|
|
49396
|
+
const candidateIndex = indexes.pop();
|
|
49397
|
+
if (!usedIndexes.has(candidateIndex)) {
|
|
49398
|
+
matchedIndex = candidateIndex;
|
|
49399
|
+
break;
|
|
49400
|
+
}
|
|
49401
|
+
}
|
|
49402
|
+
}
|
|
49403
|
+
if (matchedIndex > -1) {
|
|
49404
|
+
usedIndexes.add(matchedIndex);
|
|
49405
|
+
return previous[matchedIndex];
|
|
49406
|
+
}
|
|
49407
|
+
return { itemKey: utils.shortid(), value: item };
|
|
49306
49408
|
});
|
|
49307
|
-
|
|
49308
|
-
watch(dropData, (val) => {
|
|
49309
|
-
modelValue.value.length = 0;
|
|
49310
|
-
modelValue.value.push(...val.map((ele) => ele.value));
|
|
49311
|
-
}, { deep: true });
|
|
49409
|
+
dropData.value = nextData;
|
|
49312
49410
|
}
|
|
49313
|
-
|
|
49411
|
+
watch(
|
|
49412
|
+
[
|
|
49413
|
+
() => props2.itemKey,
|
|
49414
|
+
() => {
|
|
49415
|
+
const value = modelValue.value;
|
|
49416
|
+
return Array.isArray(value) ? value.slice() : [];
|
|
49417
|
+
}
|
|
49418
|
+
],
|
|
49419
|
+
// slice 只用于感知数组结构变化;实际同步必须使用原数组,保证 itemKey 模式原地增删排序。
|
|
49420
|
+
() => syncDropDataFromModel(modelValue.value),
|
|
49421
|
+
{ immediate: true }
|
|
49422
|
+
);
|
|
49423
|
+
watch(
|
|
49424
|
+
() => props2.itemKey ? [] : dropData.value.map((item) => item.value),
|
|
49425
|
+
(values) => {
|
|
49426
|
+
if (props2.itemKey) {
|
|
49427
|
+
return;
|
|
49428
|
+
}
|
|
49429
|
+
syncModelValueFromDropData(values);
|
|
49430
|
+
}
|
|
49431
|
+
);
|
|
49314
49432
|
function handleAdd() {
|
|
49315
49433
|
const newId = utils.shortid();
|
|
49434
|
+
let currItem;
|
|
49316
49435
|
if (props2.onAdd) {
|
|
49317
|
-
|
|
49318
|
-
let currItem = props2.onAdd(dropData.value);
|
|
49319
|
-
modelValue.value.push(currItem);
|
|
49320
|
-
dropData.value.push({ itemKey: newId, value: currItem });
|
|
49321
|
-
} else {
|
|
49322
|
-
dropData.value.push(props2.onAdd(dropData.value));
|
|
49323
|
-
}
|
|
49436
|
+
currItem = props2.onAdd(dropData.value);
|
|
49324
49437
|
} else {
|
|
49325
|
-
|
|
49326
|
-
|
|
49327
|
-
|
|
49328
|
-
|
|
49329
|
-
|
|
49330
|
-
|
|
49331
|
-
|
|
49332
|
-
} else {
|
|
49333
|
-
dropData.value.push({});
|
|
49334
|
-
}
|
|
49438
|
+
currItem = notObjectArray.value ? "" : {};
|
|
49439
|
+
}
|
|
49440
|
+
if (!props2.itemKey) {
|
|
49441
|
+
dropData.value.push({ itemKey: newId, value: currItem });
|
|
49442
|
+
syncModelValueFromDropData();
|
|
49443
|
+
} else {
|
|
49444
|
+
dropData.value.push(currItem);
|
|
49335
49445
|
}
|
|
49336
|
-
const
|
|
49446
|
+
const lastItem = dropData.value.at(-1);
|
|
49447
|
+
const lastId = lastItem && typeof lastItem === "object" ? lastItem[currItemKey.value] : void 0;
|
|
49337
49448
|
if (lastId) {
|
|
49338
49449
|
wrapActivitys.value.push(lastId);
|
|
49339
49450
|
}
|
|
49340
49451
|
}
|
|
49341
49452
|
function handleRemove(item) {
|
|
49342
|
-
|
|
49343
|
-
|
|
49453
|
+
const index = dropData.value.indexOf(item);
|
|
49454
|
+
if (index > -1) {
|
|
49455
|
+
dropData.value.splice(index, 1);
|
|
49456
|
+
}
|
|
49344
49457
|
}
|
|
49345
49458
|
function handleRemoveIndex(index) {
|
|
49346
49459
|
dropData.value.splice(index, 1);
|
|
@@ -49354,36 +49467,6 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49354
49467
|
}
|
|
49355
49468
|
}
|
|
49356
49469
|
});
|
|
49357
|
-
watchEffect(() => {
|
|
49358
|
-
if (!itemType.value && modelValue.value.length) {
|
|
49359
|
-
if (modelValue.value.length && typeof modelValue.value[0] !== "object") {
|
|
49360
|
-
notObjectArray.value = true;
|
|
49361
|
-
itemType.value = "string";
|
|
49362
|
-
} else {
|
|
49363
|
-
itemType.value = "object";
|
|
49364
|
-
}
|
|
49365
|
-
if (props2.hasForm && modelValue.value.length) {
|
|
49366
|
-
if (notObjectArray.value || !props2.itemKey) {
|
|
49367
|
-
outContainer.value = h$1(ElsForm, { modelValue: modelValue.value });
|
|
49368
|
-
container.value = h$1("div");
|
|
49369
|
-
console.log("obj");
|
|
49370
|
-
} else {
|
|
49371
|
-
container.value = h$1(ElsForm);
|
|
49372
|
-
outContainer.value = h$1("div");
|
|
49373
|
-
}
|
|
49374
|
-
}
|
|
49375
|
-
}
|
|
49376
|
-
if (!currItemClassName.value || currItemClassName.value.indexOf("listitem") === -1) {
|
|
49377
|
-
currItemClassName.value = props2.itemClassName ?? [];
|
|
49378
|
-
if (props2.itemComponent === "div") {
|
|
49379
|
-
if (typeof currItemClassName.value === "string") {
|
|
49380
|
-
currItemClassName.value += " listitem flex";
|
|
49381
|
-
} else {
|
|
49382
|
-
currItemClassName.value.push(...["listitem", "flex"]);
|
|
49383
|
-
}
|
|
49384
|
-
}
|
|
49385
|
-
}
|
|
49386
|
-
});
|
|
49387
49470
|
function handleDragStart() {
|
|
49388
49471
|
dragStatus.value = true;
|
|
49389
49472
|
dragWrapActivitys.value = wrapActivitys.value;
|
|
@@ -49433,12 +49516,13 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49433
49516
|
const _component_Plus = resolveComponent("Plus");
|
|
49434
49517
|
const _component_Minus = resolveComponent("Minus");
|
|
49435
49518
|
const _component_el_button = resolveComponent("el-button");
|
|
49436
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
49437
|
-
class:
|
|
49519
|
+
return openBlock(), createBlock(resolveDynamicComponent(outContainer.value), mergeProps({
|
|
49520
|
+
class: "els-list",
|
|
49438
49521
|
ref_key: "listRef",
|
|
49439
|
-
ref: listRef
|
|
49440
|
-
|
|
49441
|
-
|
|
49522
|
+
ref: listRef
|
|
49523
|
+
}, outContainerProps.value, {
|
|
49524
|
+
class: [{ "el-list-mobile": unref(isMobile) }, { "is-drag": dragStatus.value }],
|
|
49525
|
+
labelWidth: currLabelWidth.value,
|
|
49442
49526
|
style: `--drag-fold-height:${_ctx.dragFoldHeight ? (_a = _ctx.dragFoldHeight) == null ? void 0 : _a.appendPx() : "auto"};--list-min-width:${currBoundingWidth.value ? (_b = currBoundingWidth.value) == null ? void 0 : _b.appendPx() : "auto"}`
|
|
49443
49527
|
}), {
|
|
49444
49528
|
default: withCtx(() => [
|
|
@@ -49457,7 +49541,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49457
49541
|
accordion: false
|
|
49458
49542
|
}), {
|
|
49459
49543
|
default: withCtx(() => [
|
|
49460
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
49544
|
+
(openBlock(), createBlock(resolveDynamicComponent(container.value), mergeProps({
|
|
49461
49545
|
class: ["els-list-inner-form", _ctx.borderType],
|
|
49462
49546
|
modelValue: dropData.value[index],
|
|
49463
49547
|
"onUpdate:modelValue": ($event) => dropData.value[index] = $event,
|
|
@@ -49663,7 +49747,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
49663
49747
|
};
|
|
49664
49748
|
}
|
|
49665
49749
|
});
|
|
49666
|
-
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["__scopeId", "data-v-
|
|
49750
|
+
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["__scopeId", "data-v-c3ea9c5e"]]);
|
|
49667
49751
|
const ElsList = withInstall$1(List);
|
|
49668
49752
|
const _hoisted_1$17 = { class: "custom-block-title" };
|
|
49669
49753
|
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
@@ -49691,7 +49775,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
49691
49775
|
};
|
|
49692
49776
|
}
|
|
49693
49777
|
});
|
|
49694
|
-
const Tip = /* @__PURE__ */ _export_sfc$1(_sfc_main$1p, [["__scopeId", "data-v-
|
|
49778
|
+
const Tip = /* @__PURE__ */ _export_sfc$1(_sfc_main$1p, [["__scopeId", "data-v-d985698f"]]);
|
|
49695
49779
|
const tipProps = buildProps({
|
|
49696
49780
|
/**
|
|
49697
49781
|
* @description 标题
|
|
@@ -74482,11 +74566,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74482
74566
|
let componentName = h$1("div");
|
|
74483
74567
|
const isVertical = ref(false);
|
|
74484
74568
|
if (slots.default) {
|
|
74485
|
-
componentName = slots.default().some((i) => {
|
|
74569
|
+
componentName = slots.default({}).some((i) => {
|
|
74486
74570
|
var _a;
|
|
74487
74571
|
return ["ElHeader", "ElContainer", "ElAside", "ElMain", "ElFooter"].includes((_a = i.type) == null ? void 0 : _a.name);
|
|
74488
74572
|
}) ? ElContainer : h$1("div");
|
|
74489
|
-
isVertical.value = slots.default().some((i) => {
|
|
74573
|
+
isVertical.value = slots.default({}).some((i) => {
|
|
74490
74574
|
var _a;
|
|
74491
74575
|
return ["ElHeader", "ElFooter"].includes((_a = i.type) == null ? void 0 : _a.name);
|
|
74492
74576
|
});
|
|
@@ -74534,7 +74618,6 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74534
74618
|
openEdit
|
|
74535
74619
|
});
|
|
74536
74620
|
return (_ctx, _cache) => {
|
|
74537
|
-
const _component_els_form_query = resolveComponent("els-form-query");
|
|
74538
74621
|
const _component_els_dialog = resolveComponent("els-dialog");
|
|
74539
74622
|
const _component_els_drawer = resolveComponent("els-drawer");
|
|
74540
74623
|
return openBlock(), createElementBlock("div", _hoisted_1$16, [
|
|
@@ -74545,12 +74628,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74545
74628
|
_ctx.$slots.tool ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
|
|
74546
74629
|
renderSlot(_ctx.$slots, "tool", {}, void 0, true)
|
|
74547
74630
|
])) : createCommentVNode("", true),
|
|
74548
|
-
_ctx.$slots.query ? (
|
|
74549
|
-
default: withCtx(() => [
|
|
74550
|
-
renderSlot(_ctx.$slots, "query", {}, void 0, true)
|
|
74551
|
-
]),
|
|
74552
|
-
_: 3
|
|
74553
|
-
})) : createCommentVNode("", true),
|
|
74631
|
+
_ctx.$slots.query ? renderSlot(_ctx.$slots, "query", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
74554
74632
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
74555
74633
|
]),
|
|
74556
74634
|
_: 3
|
|
@@ -74559,7 +74637,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74559
74637
|
title: editDialogTitle.value,
|
|
74560
74638
|
modelValue: editDialogVisible.value,
|
|
74561
74639
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => editDialogVisible.value = $event),
|
|
74562
|
-
confirm: saveForm
|
|
74640
|
+
confirm: saveForm,
|
|
74641
|
+
top: "30px"
|
|
74563
74642
|
}, editDialogProp.value, {
|
|
74564
74643
|
ref_key: "editDialogRef",
|
|
74565
74644
|
ref: editDialogRef
|
|
@@ -74574,7 +74653,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74574
74653
|
title: dialogTitle.value,
|
|
74575
74654
|
modelValue: dialogVisible.value,
|
|
74576
74655
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
74577
|
-
"destroy-on-close": true
|
|
74656
|
+
"destroy-on-close": true,
|
|
74657
|
+
top: "30px"
|
|
74578
74658
|
}, editDialogProp.value), {
|
|
74579
74659
|
default: withCtx(() => [
|
|
74580
74660
|
renderSlot(_ctx.$slots, "dialog", {}, void 0, true)
|
|
@@ -74597,7 +74677,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
74597
74677
|
};
|
|
74598
74678
|
}
|
|
74599
74679
|
});
|
|
74600
|
-
const Container = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["__scopeId", "data-v-
|
|
74680
|
+
const Container = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["__scopeId", "data-v-3c215703"]]);
|
|
74601
74681
|
const ElsContainer = withInstall$1(Container);
|
|
74602
74682
|
const createProps = buildProps({
|
|
74603
74683
|
/**
|
|
@@ -75055,7 +75135,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
75055
75135
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
75056
75136
|
setup(__props, { emit: __emit }) {
|
|
75057
75137
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
75058
|
-
return import("./innerItem-
|
|
75138
|
+
return import("./innerItem-FIcD2S_r.js");
|
|
75059
75139
|
});
|
|
75060
75140
|
const { getValue: getValue2 } = useProps();
|
|
75061
75141
|
const tagID = getValue2("tagID");
|
|
@@ -76093,10 +76173,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
76093
76173
|
emits: ["update:modelValue"],
|
|
76094
76174
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76095
76175
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
76096
|
-
return import("./inner-
|
|
76176
|
+
return import("./inner-C0Yof3lh.js").then((n) => n.i);
|
|
76097
76177
|
});
|
|
76098
76178
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
76099
|
-
return import("./inner-
|
|
76179
|
+
return import("./inner-C0Yof3lh.js").then((n) => n.f);
|
|
76100
76180
|
});
|
|
76101
76181
|
const props2 = __props;
|
|
76102
76182
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -76336,10 +76416,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76336
76416
|
emits: ["update:modelValue"],
|
|
76337
76417
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
76338
76418
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
76339
|
-
return import("./inner-
|
|
76419
|
+
return import("./inner-C0Yof3lh.js").then((n) => n.i);
|
|
76340
76420
|
});
|
|
76341
76421
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
76342
|
-
return import("./inner-
|
|
76422
|
+
return import("./inner-C0Yof3lh.js").then((n) => n.f);
|
|
76343
76423
|
});
|
|
76344
76424
|
const props2 = __props;
|
|
76345
76425
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -82741,33 +82821,28 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
82741
82821
|
__publicField(this, "editor", ref());
|
|
82742
82822
|
onMounted(() => {
|
|
82743
82823
|
if (props2.language === "json") {
|
|
82744
|
-
const currModule = import("./mode-json-
|
|
82745
|
-
currModule.then((
|
|
82746
|
-
ace.config.setModuleUrl("ace/mode/json", res);
|
|
82824
|
+
const currModule = import("./mode-json-BrKXZrMC.js").then((n) => n.m);
|
|
82825
|
+
currModule.then(() => {
|
|
82747
82826
|
this.init();
|
|
82748
82827
|
});
|
|
82749
82828
|
} else if (props2.language === "javascript") {
|
|
82750
|
-
const currModule = import("./mode-javascript-
|
|
82751
|
-
currModule.then((
|
|
82752
|
-
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
82829
|
+
const currModule = import("./mode-javascript-Cr-5hNiM.js").then((n) => n.m);
|
|
82830
|
+
currModule.then(() => {
|
|
82753
82831
|
this.init();
|
|
82754
82832
|
});
|
|
82755
82833
|
} else if (props2.language === "csharp") {
|
|
82756
|
-
const currModule = import("./mode-csharp-
|
|
82757
|
-
currModule.then((
|
|
82758
|
-
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
82834
|
+
const currModule = import("./mode-csharp-B1AfqJv2.js").then((n) => n.m);
|
|
82835
|
+
currModule.then(() => {
|
|
82759
82836
|
this.init();
|
|
82760
82837
|
});
|
|
82761
82838
|
} else if (props2.language === "mysql") {
|
|
82762
|
-
const currModule = import("./mode-mysql-
|
|
82763
|
-
currModule.then((
|
|
82764
|
-
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
82839
|
+
const currModule = import("./mode-mysql-CNcAG51H.js").then((n) => n.m);
|
|
82840
|
+
currModule.then(() => {
|
|
82765
82841
|
this.init();
|
|
82766
82842
|
});
|
|
82767
82843
|
} else if (props2.language === "css") {
|
|
82768
|
-
const currModule = import("./mode-css-
|
|
82769
|
-
currModule.then((
|
|
82770
|
-
ace.config.setModuleUrl("ace/mode/css", res);
|
|
82844
|
+
const currModule = import("./mode-css-CdClYLMb.js").then((n) => n.m);
|
|
82845
|
+
currModule.then(() => {
|
|
82771
82846
|
this.init();
|
|
82772
82847
|
});
|
|
82773
82848
|
}
|
|
@@ -85094,7 +85169,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
85094
85169
|
};
|
|
85095
85170
|
}
|
|
85096
85171
|
});
|
|
85097
|
-
const NodeAdd = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-
|
|
85172
|
+
const NodeAdd = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-fa792504"]]);
|
|
85098
85173
|
const _hoisted_1$b = { class: "condition-node-box" };
|
|
85099
85174
|
const _hoisted_2$8 = { class: "auto-judge" };
|
|
85100
85175
|
const _hoisted_3$7 = { class: "title-wrapper" };
|
|
@@ -86206,7 +86281,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
86206
86281
|
};
|
|
86207
86282
|
}
|
|
86208
86283
|
});
|
|
86209
|
-
const StampBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-
|
|
86284
|
+
const StampBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-fcdb3014"]]);
|
|
86210
86285
|
const BadgeTypes = [
|
|
86211
86286
|
"default",
|
|
86212
86287
|
"primary",
|
|
@@ -90524,8 +90599,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
90524
90599
|
appKey: {},
|
|
90525
90600
|
appSecret: {},
|
|
90526
90601
|
version: { default: "2.0" },
|
|
90527
|
-
plugins: { default: ["AMap.PlaceSearch", "AMap.AutoComplete", "AMap.Geolocation"] },
|
|
90528
|
-
buttonProps: { default: {} }
|
|
90602
|
+
plugins: { default: () => ["AMap.PlaceSearch", "AMap.AutoComplete", "AMap.Geolocation"] },
|
|
90603
|
+
buttonProps: { default: () => ({}) }
|
|
90529
90604
|
},
|
|
90530
90605
|
emits: ["update:x", "update:y"],
|
|
90531
90606
|
setup(__props, { emit: __emit }) {
|
|
@@ -90692,7 +90767,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
90692
90767
|
};
|
|
90693
90768
|
}
|
|
90694
90769
|
});
|
|
90695
|
-
const AMap = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-
|
|
90770
|
+
const AMap = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-9e290380"]]);
|
|
90696
90771
|
const ElsAMap = withInstall$1(AMap);
|
|
90697
90772
|
const getItemWidth = ({
|
|
90698
90773
|
wrapperWidth,
|
|
@@ -91809,7 +91884,7 @@ export {
|
|
|
91809
91884
|
ElsRequestForm as ay,
|
|
91810
91885
|
ElsRow as az,
|
|
91811
91886
|
buildSpacingCss as b,
|
|
91812
|
-
|
|
91887
|
+
segmentedProps as b$,
|
|
91813
91888
|
Segmented as b0,
|
|
91814
91889
|
Select$1 as b1,
|
|
91815
91890
|
Slider as b2,
|
|
@@ -91820,75 +91895,80 @@ export {
|
|
|
91820
91895
|
UEditor as b7,
|
|
91821
91896
|
Upload$2 as b8,
|
|
91822
91897
|
WangEditor$1 as b9,
|
|
91823
|
-
|
|
91824
|
-
|
|
91825
|
-
|
|
91826
|
-
|
|
91827
|
-
|
|
91828
|
-
|
|
91829
|
-
|
|
91830
|
-
|
|
91831
|
-
|
|
91832
|
-
|
|
91833
|
-
|
|
91834
|
-
|
|
91835
|
-
|
|
91836
|
-
|
|
91837
|
-
|
|
91838
|
-
|
|
91839
|
-
|
|
91840
|
-
|
|
91841
|
-
|
|
91842
|
-
|
|
91843
|
-
|
|
91844
|
-
|
|
91845
|
-
|
|
91846
|
-
|
|
91847
|
-
|
|
91848
|
-
|
|
91849
|
-
|
|
91898
|
+
getAxiosInstance as bA,
|
|
91899
|
+
globalConfig as bB,
|
|
91900
|
+
imageProps as bC,
|
|
91901
|
+
imageViewerProps as bD,
|
|
91902
|
+
inputNumberProps as bE,
|
|
91903
|
+
inputProps as bF,
|
|
91904
|
+
inputRangeProps as bG,
|
|
91905
|
+
inputTagProps as bH,
|
|
91906
|
+
jsonEditorProps as bI,
|
|
91907
|
+
jsonViewerProps as bJ,
|
|
91908
|
+
leoMvcConfig as bK,
|
|
91909
|
+
listProps as bL,
|
|
91910
|
+
loadAsyncComponent as bM,
|
|
91911
|
+
loadSkeletonAsyncComponent as bN,
|
|
91912
|
+
mdEditorProps as bO,
|
|
91913
|
+
menuContextProps as bP,
|
|
91914
|
+
menuDropdownProps as bQ,
|
|
91915
|
+
menuEmits as bR,
|
|
91916
|
+
menuItemProps as bS,
|
|
91917
|
+
menuProps as bT,
|
|
91918
|
+
menuToolProps as bU,
|
|
91919
|
+
mergeConfig as bV,
|
|
91920
|
+
optionGroupProps as bW,
|
|
91921
|
+
optionProps as bX,
|
|
91922
|
+
radioProps as bY,
|
|
91923
|
+
renderProps as bZ,
|
|
91924
|
+
requestFormProps as b_,
|
|
91850
91925
|
aceEditorProps as ba,
|
|
91851
|
-
|
|
91852
|
-
|
|
91853
|
-
|
|
91854
|
-
|
|
91855
|
-
|
|
91856
|
-
|
|
91857
|
-
|
|
91858
|
-
|
|
91859
|
-
|
|
91860
|
-
|
|
91861
|
-
|
|
91862
|
-
|
|
91863
|
-
|
|
91864
|
-
|
|
91865
|
-
|
|
91866
|
-
|
|
91867
|
-
|
|
91868
|
-
|
|
91869
|
-
|
|
91870
|
-
|
|
91871
|
-
|
|
91872
|
-
|
|
91873
|
-
|
|
91874
|
-
|
|
91875
|
-
|
|
91926
|
+
appendPowerPublicQuery as bb,
|
|
91927
|
+
appendQueryParameters as bc,
|
|
91928
|
+
appendTransferParameters as bd,
|
|
91929
|
+
autocompleteProps as be,
|
|
91930
|
+
captionProps as bf,
|
|
91931
|
+
cascaderProps as bg,
|
|
91932
|
+
checkboxProps as bh,
|
|
91933
|
+
collapseTransitionProps as bi,
|
|
91934
|
+
colorPickerProps as bj,
|
|
91935
|
+
containerProps as bk,
|
|
91936
|
+
createAxiosInstance as bl,
|
|
91937
|
+
dataModalProps as bm,
|
|
91938
|
+
datePickerProps as bn,
|
|
91939
|
+
datePickerRangeProps as bo,
|
|
91940
|
+
ElementLess as bp,
|
|
91941
|
+
defaultConfig as bq,
|
|
91942
|
+
designerProps as br,
|
|
91943
|
+
designerViewProps as bs,
|
|
91944
|
+
dialogProps as bt,
|
|
91945
|
+
drawerProps as bu,
|
|
91946
|
+
dropdownProps as bv,
|
|
91947
|
+
formItemProps as bw,
|
|
91948
|
+
formProps as bx,
|
|
91949
|
+
formQueryProps as by,
|
|
91950
|
+
getAxiosConfig as bz,
|
|
91876
91951
|
utils as c,
|
|
91877
|
-
|
|
91878
|
-
|
|
91879
|
-
|
|
91880
|
-
|
|
91881
|
-
|
|
91882
|
-
|
|
91883
|
-
|
|
91884
|
-
|
|
91885
|
-
|
|
91886
|
-
|
|
91887
|
-
|
|
91888
|
-
|
|
91889
|
-
|
|
91890
|
-
|
|
91891
|
-
|
|
91952
|
+
selectProps as c0,
|
|
91953
|
+
setConfig as c1,
|
|
91954
|
+
setJwtToken as c2,
|
|
91955
|
+
setRequestInterceptors as c3,
|
|
91956
|
+
setResponseInterceptors as c4,
|
|
91957
|
+
sliderProps as c5,
|
|
91958
|
+
stampBadgeProps as c6,
|
|
91959
|
+
switchProps as c7,
|
|
91960
|
+
tableColumnProps as c8,
|
|
91961
|
+
tableProps as c9,
|
|
91962
|
+
tabsProps as ca,
|
|
91963
|
+
timePickerProps as cb,
|
|
91964
|
+
timePickerRangeProps as cc,
|
|
91965
|
+
tipProps as cd,
|
|
91966
|
+
tipTapEditorProps as ce,
|
|
91967
|
+
treeProps as cf,
|
|
91968
|
+
uEditorProps as cg,
|
|
91969
|
+
uploadProps as ch,
|
|
91970
|
+
wangEditorProps as ci,
|
|
91971
|
+
workFlowProps as cj,
|
|
91892
91972
|
useComponentRef as d,
|
|
91893
91973
|
DynamicRenderAsync as e,
|
|
91894
91974
|
DynamicDesignerInner as f,
|