element-less 0.0.67 → 0.0.68
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/custom/data-modal/index.d.ts +4 -4
- package/custom/data-modal/src/dataModal.vue.d.ts +1 -1
- package/custom/dynamic/designerView/src/fieldPicker.vue.d.ts +2 -0
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/elementui/cascader/index.d.ts +36 -8
- package/elementui/cascader/src/cascader.vue.d.ts +14 -2
- package/elementui/select/index.d.ts +4 -4
- package/elementui/select/src/select.vue.d.ts +1 -1
- package/elementui/tree/index.d.ts +4 -4
- package/elementui/tree/src/tree.vue.d.ts +1 -1
- package/elementui/tree-select/index.d.ts +4 -4
- package/elementui/tree-select/src/treeSelect.vue.d.ts +1 -1
- package/elementui/upload/index.d.ts +4 -4
- package/elementui/upload/src/upload.vue.d.ts +1 -1
- package/{index-0bMe833F.js → index-DYgEX2VV.js} +261 -33
- package/{index-HzZewaBA.cjs → index-FVUFt2C-.cjs} +1 -1
- package/{inner-DLy3GSYM.js → inner-Cf5U_aKM.js} +1 -1
- package/{inner-BU0ghsCk.cjs → inner-tSeyGG3W.cjs} +1 -1
- package/{innerItem-C7lmc_rr.cjs → innerItem-C1ompIlh.cjs} +1 -1
- package/{innerItem-DghmopSK.js → innerItem-CqXGUjai.js} +1 -1
- package/{mode-csharp-v1w5Y7pJ.cjs → mode-csharp-Djoe6uod.cjs} +1 -1
- package/{mode-csharp-DeSzug7R.js → mode-csharp-DnzxQJcZ.js} +1 -1
- package/{mode-css-DlOYj8_Q.js → mode-css-BKArO9O3.js} +1 -1
- package/{mode-css-swaaKdmw.cjs → mode-css-EJzbXM-c.cjs} +1 -1
- package/{mode-javascript-Uc61t92C.js → mode-javascript-B8epNaGN.js} +1 -1
- package/{mode-javascript-0snmn4EJ.cjs → mode-javascript-CQ9JOYbO.cjs} +1 -1
- package/{mode-json-Bv08Ewma.js → mode-json-Br_Lu-Mh.js} +1 -1
- package/{mode-json-B1fWqeH1.cjs → mode-json-DXatsSws.cjs} +1 -1
- package/{mode-mysql-BCslcP33.js → mode-mysql-BDVOBDPt.js} +1 -1
- package/{mode-mysql-CUNhvYot.cjs → mode-mysql-BWy95K6h.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -512,6 +512,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
512
512
|
onChange: (uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
513
513
|
onError: (error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
514
514
|
onProgress: (evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void;
|
|
515
|
+
multiple: boolean;
|
|
515
516
|
spaceWrap: boolean;
|
|
516
517
|
labelPosition: string;
|
|
517
518
|
inlineMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -519,7 +520,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
519
520
|
inputWidth: string;
|
|
520
521
|
valueSeparator: string;
|
|
521
522
|
valueType: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => "String" | "Array") | (() => "String" | "Array") | (((new (...args: any[]) => "String" | "Array") | (() => "String" | "Array")) | null)[], unknown, unknown>;
|
|
522
|
-
multiple: boolean;
|
|
523
523
|
showFileList: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
524
524
|
hasMd5Parameter: boolean;
|
|
525
525
|
showInput: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -31814,6 +31814,8 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
31814
31814
|
const optionData = ref([]);
|
|
31815
31815
|
const options2 = ref([]);
|
|
31816
31816
|
const selectValue = ref([]);
|
|
31817
|
+
const prevCascaderValue = ref([]);
|
|
31818
|
+
let cascadeNormalizing = false;
|
|
31817
31819
|
const selectOptionData = ref([]);
|
|
31818
31820
|
const remoteLoading = ref(false);
|
|
31819
31821
|
const defaultExpandedKeys = ref([]);
|
|
@@ -32219,6 +32221,18 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32219
32221
|
if (value === void 0) {
|
|
32220
32222
|
value = "";
|
|
32221
32223
|
}
|
|
32224
|
+
if (props2.multiple && !props2.emitPath && props2.checkStrictly && (props2.checkWithParent || props2.unCheckWithchild) && !cascadeNormalizing) {
|
|
32225
|
+
const normalized = normalizeCascaderCascade(Array.isArray(value) ? value : []);
|
|
32226
|
+
prevCascaderValue.value = normalized;
|
|
32227
|
+
if (normalized.length !== (Array.isArray(value) ? value.length : 0)) {
|
|
32228
|
+
cascadeNormalizing = true;
|
|
32229
|
+
selectValue.value = normalized;
|
|
32230
|
+
cascadeNormalizing = false;
|
|
32231
|
+
return;
|
|
32232
|
+
}
|
|
32233
|
+
} else if (props2.multiple && !props2.emitPath && props2.checkStrictly) {
|
|
32234
|
+
prevCascaderValue.value = Array.isArray(value) ? [...value] : [];
|
|
32235
|
+
}
|
|
32222
32236
|
if (!value || value.length == 0) {
|
|
32223
32237
|
returnModelValue("");
|
|
32224
32238
|
if (initSelect.value) {
|
|
@@ -32328,6 +32342,38 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32328
32342
|
function findParentData(parentID) {
|
|
32329
32343
|
return optionData.value.find((ele) => ele[currIdField.value] == parentID);
|
|
32330
32344
|
}
|
|
32345
|
+
function collectAncestorValues(value, acc = []) {
|
|
32346
|
+
const node = optionData.value.find((e) => e[props2.valueField] == value);
|
|
32347
|
+
if (!node) return acc;
|
|
32348
|
+
const parent = findParentData(node[props2.parentIdField]);
|
|
32349
|
+
if (parent) {
|
|
32350
|
+
acc.push(parent[props2.valueField]);
|
|
32351
|
+
collectAncestorValues(parent[props2.valueField], acc);
|
|
32352
|
+
}
|
|
32353
|
+
return acc;
|
|
32354
|
+
}
|
|
32355
|
+
function collectDescendantValues(value, acc = []) {
|
|
32356
|
+
const node = optionData.value.find((e) => e[props2.valueField] == value);
|
|
32357
|
+
if (!node) return acc;
|
|
32358
|
+
optionData.value.filter((e) => e[props2.parentIdField] == node[currIdField.value]).forEach((child) => {
|
|
32359
|
+
acc.push(child[props2.valueField]);
|
|
32360
|
+
collectDescendantValues(child[props2.valueField], acc);
|
|
32361
|
+
});
|
|
32362
|
+
return acc;
|
|
32363
|
+
}
|
|
32364
|
+
function normalizeCascaderCascade(value) {
|
|
32365
|
+
if (!props2.multiple || props2.emitPath || !props2.checkStrictly) return value;
|
|
32366
|
+
if (!props2.checkWithParent && !props2.unCheckWithchild) return value;
|
|
32367
|
+
const set = new Set(value);
|
|
32368
|
+
const prev = prevCascaderValue.value;
|
|
32369
|
+
if (props2.checkWithParent) {
|
|
32370
|
+
value.filter((v) => prev.indexOf(v) === -1).forEach((v) => collectAncestorValues(v).forEach((a) => set.add(a)));
|
|
32371
|
+
}
|
|
32372
|
+
if (props2.unCheckWithchild) {
|
|
32373
|
+
prev.filter((v) => value.indexOf(v) === -1).forEach((v) => collectDescendantValues(v).forEach((d) => set.delete(d)));
|
|
32374
|
+
}
|
|
32375
|
+
return Array.from(set);
|
|
32376
|
+
}
|
|
32331
32377
|
function unCheckChild(parentID) {
|
|
32332
32378
|
optionData.value.filter((ele) => ele[props2.parentIdField] == parentID).forEach((ele) => {
|
|
32333
32379
|
if (dataTree.value.getCheckedKeys().indexOf(ele[currIdField.value]) > -1) {
|
|
@@ -32700,7 +32746,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32700
32746
|
nodeSource: "currNode",
|
|
32701
32747
|
fieldCode: childPath,
|
|
32702
32748
|
componentType: af.componentType || "",
|
|
32703
|
-
componentOptions: af.componentOptions || null
|
|
32749
|
+
componentOptions: af.componentOptions || null,
|
|
32750
|
+
multiple: !!af.multiple
|
|
32704
32751
|
} : null;
|
|
32705
32752
|
}).filter(Boolean);
|
|
32706
32753
|
if (nameMatch || children.length > 0) {
|
|
@@ -32717,7 +32764,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32717
32764
|
nodeSource: "currNode",
|
|
32718
32765
|
fieldCode: f.keyCode,
|
|
32719
32766
|
componentType: f.componentType || "",
|
|
32720
|
-
componentOptions: f.componentOptions || null
|
|
32767
|
+
componentOptions: f.componentOptions || null,
|
|
32768
|
+
multiple: !!f.multiple
|
|
32721
32769
|
});
|
|
32722
32770
|
}
|
|
32723
32771
|
}
|
|
@@ -32735,7 +32783,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32735
32783
|
nodeSource: "parentNode",
|
|
32736
32784
|
fieldCode: f.keyCode,
|
|
32737
32785
|
componentType: f.componentType || "",
|
|
32738
|
-
componentOptions: f.componentOptions || null
|
|
32786
|
+
componentOptions: f.componentOptions || null,
|
|
32787
|
+
multiple: !!f.multiple
|
|
32739
32788
|
}));
|
|
32740
32789
|
});
|
|
32741
32790
|
const globalDataItems = computed(() => {
|
|
@@ -32767,7 +32816,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32767
32816
|
nodeSource: "rootNode",
|
|
32768
32817
|
fieldCode: fullPath,
|
|
32769
32818
|
componentType: f.componentType || "",
|
|
32770
|
-
componentOptions: f.componentOptions || null
|
|
32819
|
+
componentOptions: f.componentOptions || null,
|
|
32820
|
+
multiple: !!f.multiple
|
|
32771
32821
|
});
|
|
32772
32822
|
}
|
|
32773
32823
|
} else {
|
|
@@ -32781,7 +32831,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32781
32831
|
nodeSource: "rootNode",
|
|
32782
32832
|
fieldCode: f.keyCode,
|
|
32783
32833
|
componentType: f.componentType || "",
|
|
32784
|
-
componentOptions: f.componentOptions || null
|
|
32834
|
+
componentOptions: f.componentOptions || null,
|
|
32835
|
+
multiple: !!f.multiple
|
|
32785
32836
|
});
|
|
32786
32837
|
}
|
|
32787
32838
|
}
|
|
@@ -33048,7 +33099,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
33048
33099
|
};
|
|
33049
33100
|
}
|
|
33050
33101
|
});
|
|
33051
|
-
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["__scopeId", "data-v-
|
|
33102
|
+
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["__scopeId", "data-v-f7844c2e"]]);
|
|
33052
33103
|
const _hoisted_1$1q = { class: "condition-builder-trigger" };
|
|
33053
33104
|
const _hoisted_2$z = { class: "cb-dialog-body" };
|
|
33054
33105
|
const _hoisted_3$q = { class: "cb-header" };
|
|
@@ -33110,12 +33161,24 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33110
33161
|
{ value: "!=", label: "不等于" }
|
|
33111
33162
|
],
|
|
33112
33163
|
Array: [
|
|
33164
|
+
{ value: "contains", label: "包含" },
|
|
33165
|
+
{ value: "notContains", label: "不包含" },
|
|
33113
33166
|
{ value: "empty", label: "为空" },
|
|
33114
33167
|
{ value: "notEmpty", label: "不为空" }
|
|
33115
33168
|
]
|
|
33116
33169
|
};
|
|
33117
33170
|
const DEFAULT_OPS = OPERATORS.String;
|
|
33171
|
+
const MULTI_OPS = [
|
|
33172
|
+
{ value: "contains", label: "包含" },
|
|
33173
|
+
{ value: "notContains", label: "不包含" },
|
|
33174
|
+
{ value: "empty", label: "为空" },
|
|
33175
|
+
{ value: "notEmpty", label: "不为空" }
|
|
33176
|
+
];
|
|
33177
|
+
function isMultiSelect(cond) {
|
|
33178
|
+
return !!cond.multiple;
|
|
33179
|
+
}
|
|
33118
33180
|
function getOperators(cond) {
|
|
33181
|
+
if (isMultiSelect(cond)) return MULTI_OPS;
|
|
33119
33182
|
return OPERATORS[cond.dataTypeName] || DEFAULT_OPS;
|
|
33120
33183
|
}
|
|
33121
33184
|
const allFieldOptions = computed(() => {
|
|
@@ -33130,7 +33193,8 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33130
33193
|
nodeSource: "currNode",
|
|
33131
33194
|
fieldCode: f.keyCode,
|
|
33132
33195
|
componentType: f.componentType || "",
|
|
33133
|
-
componentOptions: f.componentOptions || null
|
|
33196
|
+
componentOptions: f.componentOptions || null,
|
|
33197
|
+
multiple: !!f.multiple
|
|
33134
33198
|
})),
|
|
33135
33199
|
...parentFieldsList.map((f) => ({
|
|
33136
33200
|
value: `parent:${f.keyCode}`,
|
|
@@ -33139,7 +33203,8 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33139
33203
|
nodeSource: "parentNode",
|
|
33140
33204
|
fieldCode: f.keyCode,
|
|
33141
33205
|
componentType: f.componentType || "",
|
|
33142
|
-
componentOptions: f.componentOptions || null
|
|
33206
|
+
componentOptions: f.componentOptions || null,
|
|
33207
|
+
multiple: !!f.multiple
|
|
33143
33208
|
})),
|
|
33144
33209
|
...allFormFields.value.map((f) => {
|
|
33145
33210
|
const pathParts = [...f.containerPath || [], f.keyCode];
|
|
@@ -33151,7 +33216,8 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33151
33216
|
nodeSource: "rootNode",
|
|
33152
33217
|
fieldCode: fullPath,
|
|
33153
33218
|
componentType: f.componentType || "",
|
|
33154
|
-
componentOptions: f.componentOptions || null
|
|
33219
|
+
componentOptions: f.componentOptions || null,
|
|
33220
|
+
multiple: !!f.multiple
|
|
33155
33221
|
};
|
|
33156
33222
|
}),
|
|
33157
33223
|
...gdOpts
|
|
@@ -33177,6 +33243,11 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33177
33243
|
const ref2 = getFieldRef(c);
|
|
33178
33244
|
if (c.operator === "empty") return `!${ref2}`;
|
|
33179
33245
|
if (c.operator === "notEmpty") return `!!${ref2}`;
|
|
33246
|
+
if (c.operator === "contains" || c.operator === "notContains") {
|
|
33247
|
+
const item = c.dataTypeName === "Number" ? c.value ?? 0 : JSON.stringify(String(c.value ?? ""));
|
|
33248
|
+
const expr = `(',' + (${ref2} ?? '') + ',').includes(',' + ${item} + ',')`;
|
|
33249
|
+
return c.operator === "contains" ? expr : `!${expr}`;
|
|
33250
|
+
}
|
|
33180
33251
|
const val = c.dataTypeName === "Number" ? c.value ?? 0 : JSON.stringify(c.value ?? "");
|
|
33181
33252
|
return `${ref2} ${c.operator} ${val}`;
|
|
33182
33253
|
});
|
|
@@ -33186,8 +33257,40 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33186
33257
|
return acc + sep + p;
|
|
33187
33258
|
}, "");
|
|
33188
33259
|
}
|
|
33260
|
+
function parseLiteral(raw) {
|
|
33261
|
+
let val = raw.trim();
|
|
33262
|
+
if (val.startsWith("'") && val.endsWith("'") || val.startsWith('"') && val.endsWith('"')) val = val.slice(1, -1);
|
|
33263
|
+
else if (val === "true") val = true;
|
|
33264
|
+
else if (val === "false") val = false;
|
|
33265
|
+
else if (!isNaN(Number(val))) val = Number(val);
|
|
33266
|
+
return val;
|
|
33267
|
+
}
|
|
33189
33268
|
function parseSingleCondition(part) {
|
|
33190
33269
|
const s = part.trim();
|
|
33270
|
+
const includesM = s.match(/^(!?)\(','\s*\+\s*\((.+?)\s*\?\?\s*''\)\s*\+\s*','\)\.includes\(','\s*\+\s*(.+?)\s*\+\s*','\)$/);
|
|
33271
|
+
if (includesM) {
|
|
33272
|
+
const operator = includesM[1] === "!" ? "notContains" : "contains";
|
|
33273
|
+
const refStr = includesM[2].trim();
|
|
33274
|
+
const value = parseLiteral(includesM[3]);
|
|
33275
|
+
const nestedRef = refStr.match(new RegExp(`^${nodePattern}\\['([^']+)'\\]\\?\\.value\\?\\.\\['([^']+)'\\]\\?\\.value$`));
|
|
33276
|
+
if (nestedRef) {
|
|
33277
|
+
const nodeSource = nestedRef[1];
|
|
33278
|
+
const fieldCode = `${nestedRef[2]}.${nestedRef[3]}`;
|
|
33279
|
+
return { fieldCode, fieldName: fieldCode, dataTypeName: "String", operator, value, logicOp: "AND", nodeSource, multiple: true };
|
|
33280
|
+
}
|
|
33281
|
+
const singleRef = refStr.match(new RegExp(`^${nodePattern}\\['([^']+)'\\]\\?\\.value$`));
|
|
33282
|
+
if (singleRef) {
|
|
33283
|
+
const nodeSource = singleRef[1];
|
|
33284
|
+
const f = nodeSource === "currNode" ? siblingFields.value.find((f2) => f2.keyCode === singleRef[2]) : null;
|
|
33285
|
+
return { fieldCode: singleRef[2], fieldName: (f == null ? void 0 : f.keyName) || singleRef[2], dataTypeName: (f == null ? void 0 : f.dataTypeName) || "String", operator, value, logicOp: "AND", nodeSource, multiple: true };
|
|
33286
|
+
}
|
|
33287
|
+
const gdRef = refStr.match(/^globalData\.(.+)$/);
|
|
33288
|
+
if (gdRef) {
|
|
33289
|
+
const f = findGlobalDataOption(gdRef[1]);
|
|
33290
|
+
return { fieldCode: gdRef[1], fieldName: (f == null ? void 0 : f.label) || gdRef[1], dataTypeName: (f == null ? void 0 : f.dataTypeName) || "String", operator, value, logicOp: "AND", nodeSource: "globalData", multiple: true };
|
|
33291
|
+
}
|
|
33292
|
+
return null;
|
|
33293
|
+
}
|
|
33191
33294
|
const nestedNotEmptyM = s.match(new RegExp(`^!!${nodePattern}\\['([^']+)'\\]\\?\\.value\\?\\.\\['([^']+)'\\]\\?\\.value$`));
|
|
33192
33295
|
if (nestedNotEmptyM) {
|
|
33193
33296
|
const nodeSource = nestedNotEmptyM[1];
|
|
@@ -33328,16 +33431,18 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33328
33431
|
}
|
|
33329
33432
|
function addCondition() {
|
|
33330
33433
|
const defaultOpt = allFieldOptions.value[0];
|
|
33331
|
-
|
|
33332
|
-
fieldCode:
|
|
33333
|
-
fieldName:
|
|
33334
|
-
dataTypeName:
|
|
33434
|
+
const cond = {
|
|
33435
|
+
fieldCode: "",
|
|
33436
|
+
fieldName: "",
|
|
33437
|
+
dataTypeName: "String",
|
|
33335
33438
|
operator: "==",
|
|
33336
33439
|
value: "",
|
|
33337
33440
|
logicOp: "AND",
|
|
33338
|
-
nodeSource:
|
|
33339
|
-
_combined:
|
|
33340
|
-
}
|
|
33441
|
+
nodeSource: "currNode",
|
|
33442
|
+
_combined: ""
|
|
33443
|
+
};
|
|
33444
|
+
if (defaultOpt) applyFieldSelect(cond, defaultOpt);
|
|
33445
|
+
localConditions.value.push(cond);
|
|
33341
33446
|
}
|
|
33342
33447
|
function removeCondition(i) {
|
|
33343
33448
|
localConditions.value.splice(i, 1);
|
|
@@ -33364,6 +33469,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33364
33469
|
cond.dataTypeName = opt.dataTypeName || "String";
|
|
33365
33470
|
cond.componentType = opt.componentType || "";
|
|
33366
33471
|
cond.componentOptions = opt.componentOptions || null;
|
|
33472
|
+
cond.multiple = !!opt.multiple;
|
|
33367
33473
|
cond.value = "";
|
|
33368
33474
|
const ops = getOperators(cond);
|
|
33369
33475
|
if (!ops.find((o) => o.value === cond.operator)) cond.operator = ops[0].value;
|
|
@@ -33375,6 +33481,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33375
33481
|
cond.dataTypeName = field.dataTypeName || cond.dataTypeName;
|
|
33376
33482
|
cond.componentType = field.componentType || "";
|
|
33377
33483
|
cond.componentOptions = field.componentOptions || null;
|
|
33484
|
+
cond.multiple = !!field.multiple;
|
|
33378
33485
|
}
|
|
33379
33486
|
}
|
|
33380
33487
|
function clearCondition() {
|
|
@@ -33794,7 +33901,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33794
33901
|
};
|
|
33795
33902
|
}
|
|
33796
33903
|
});
|
|
33797
|
-
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["__scopeId", "data-v-
|
|
33904
|
+
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["__scopeId", "data-v-3580b83f"]]);
|
|
33798
33905
|
const _hoisted_1$1p = { class: "expr-input-wrapper" };
|
|
33799
33906
|
const _hoisted_2$y = {
|
|
33800
33907
|
key: 0,
|
|
@@ -43516,6 +43623,20 @@ const cascaderProps = buildProps({
|
|
|
43516
43623
|
* @description 是否严格的遵守父子节点不互相关联
|
|
43517
43624
|
*/
|
|
43518
43625
|
checkStrictly: Boolean,
|
|
43626
|
+
/**
|
|
43627
|
+
* @description 选择节点并且勾选父节点(仅 multiple + checkStrictly + 非 emitPath 生效)
|
|
43628
|
+
*/
|
|
43629
|
+
checkWithParent: {
|
|
43630
|
+
type: Boolean,
|
|
43631
|
+
default: false
|
|
43632
|
+
},
|
|
43633
|
+
/**
|
|
43634
|
+
* @description 取消选择并且取消子节点(仅 multiple + checkStrictly + 非 emitPath 生效)
|
|
43635
|
+
*/
|
|
43636
|
+
unCheckWithchild: {
|
|
43637
|
+
type: Boolean,
|
|
43638
|
+
default: false
|
|
43639
|
+
},
|
|
43519
43640
|
/**
|
|
43520
43641
|
* @description 次级菜单的展开方式
|
|
43521
43642
|
*/
|
|
@@ -70753,6 +70874,97 @@ const property_cascader = [
|
|
|
70753
70874
|
"arrayConfig": {}
|
|
70754
70875
|
}
|
|
70755
70876
|
},
|
|
70877
|
+
{
|
|
70878
|
+
"keyID": "id_3564",
|
|
70879
|
+
"keyName": "栅格行",
|
|
70880
|
+
"keyCode": "",
|
|
70881
|
+
"children": [
|
|
70882
|
+
{
|
|
70883
|
+
"keyID": "id_3565",
|
|
70884
|
+
"keyName": "勾选节点后父节点也会勾选",
|
|
70885
|
+
"keyCode": "checkWithParent",
|
|
70886
|
+
"children": [],
|
|
70887
|
+
"dataType": "Bool",
|
|
70888
|
+
"arrayDataType": "",
|
|
70889
|
+
"componentTypeLabel": "开关",
|
|
70890
|
+
"componentType": "Switch",
|
|
70891
|
+
"icon": "switch-one",
|
|
70892
|
+
"slots": [],
|
|
70893
|
+
"config": {
|
|
70894
|
+
"formConfig": {
|
|
70895
|
+
"labelWidth": "",
|
|
70896
|
+
"suffixContent": "",
|
|
70897
|
+
"requiredMessage": "",
|
|
70898
|
+
"re_required": "",
|
|
70899
|
+
"tip": "仅多选 + 选择任意一级 + 非返回节点路径时生效",
|
|
70900
|
+
"tipPosition": "left",
|
|
70901
|
+
"validType": "",
|
|
70902
|
+
"validMessage": "",
|
|
70903
|
+
"validExpression": "",
|
|
70904
|
+
"validMethod": ""
|
|
70905
|
+
},
|
|
70906
|
+
"baseConfig": {
|
|
70907
|
+
"active-value": true,
|
|
70908
|
+
"inactive-value": false
|
|
70909
|
+
},
|
|
70910
|
+
"advancedConfig": {},
|
|
70911
|
+
"arrayConfig": {}
|
|
70912
|
+
},
|
|
70913
|
+
"defaultValue": false
|
|
70914
|
+
},
|
|
70915
|
+
{
|
|
70916
|
+
"keyID": "id_3566",
|
|
70917
|
+
"keyName": "取消节点后子节点也会取消",
|
|
70918
|
+
"keyCode": "unCheckWithchild",
|
|
70919
|
+
"children": [],
|
|
70920
|
+
"dataType": "Bool",
|
|
70921
|
+
"arrayDataType": "",
|
|
70922
|
+
"componentTypeLabel": "开关",
|
|
70923
|
+
"componentType": "Switch",
|
|
70924
|
+
"icon": "switch-one",
|
|
70925
|
+
"slots": [],
|
|
70926
|
+
"config": {
|
|
70927
|
+
"formConfig": {
|
|
70928
|
+
"labelWidth": "",
|
|
70929
|
+
"suffixContent": "",
|
|
70930
|
+
"requiredMessage": "",
|
|
70931
|
+
"re_required": "",
|
|
70932
|
+
"tip": "仅多选 + 选择任意一级 + 非返回节点路径时生效",
|
|
70933
|
+
"tipPosition": "left",
|
|
70934
|
+
"validType": "",
|
|
70935
|
+
"validMessage": "",
|
|
70936
|
+
"validExpression": "",
|
|
70937
|
+
"validMethod": ""
|
|
70938
|
+
},
|
|
70939
|
+
"baseConfig": {
|
|
70940
|
+
"active-value": true,
|
|
70941
|
+
"inactive-value": false
|
|
70942
|
+
},
|
|
70943
|
+
"advancedConfig": {},
|
|
70944
|
+
"arrayConfig": {}
|
|
70945
|
+
},
|
|
70946
|
+
"defaultValue": false
|
|
70947
|
+
}
|
|
70948
|
+
],
|
|
70949
|
+
"dataType": "None",
|
|
70950
|
+
"arrayDataType": "",
|
|
70951
|
+
"componentTypeLabel": "栅格行",
|
|
70952
|
+
"componentType": "Row",
|
|
70953
|
+
"icon": "layout-two",
|
|
70954
|
+
"slots": [],
|
|
70955
|
+
"config": {
|
|
70956
|
+
"formConfig": {},
|
|
70957
|
+
"baseConfig": {
|
|
70958
|
+
"gutter": 10,
|
|
70959
|
+
"span": 12,
|
|
70960
|
+
"justify": "start",
|
|
70961
|
+
"align": "",
|
|
70962
|
+
"tag": "div"
|
|
70963
|
+
},
|
|
70964
|
+
"advancedConfig": {},
|
|
70965
|
+
"arrayConfig": {}
|
|
70966
|
+
}
|
|
70967
|
+
},
|
|
70756
70968
|
{
|
|
70757
70969
|
"keyID": "id_4862",
|
|
70758
70970
|
"keyName": "栅格行",
|
|
@@ -73341,7 +73553,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
73341
73553
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
73342
73554
|
setup(__props, { emit: __emit }) {
|
|
73343
73555
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
73344
|
-
return import("./innerItem-
|
|
73556
|
+
return import("./innerItem-CqXGUjai.js");
|
|
73345
73557
|
});
|
|
73346
73558
|
const { getValue: getValue2 } = useProps();
|
|
73347
73559
|
const tagID = getValue2("tagID");
|
|
@@ -74059,6 +74271,12 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74059
74271
|
return props2.visibleFields.includes(field);
|
|
74060
74272
|
}
|
|
74061
74273
|
const SELECT_TYPES_DESIGNER = ["Select", "Radio", "Checkbox"];
|
|
74274
|
+
function isMultiSelectFieldDesigner(item, typeName) {
|
|
74275
|
+
var _a, _b;
|
|
74276
|
+
if (typeName === "Checkbox") return true;
|
|
74277
|
+
if (typeName === "Select") return ((_b = (_a = item.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.multiple) === true;
|
|
74278
|
+
return false;
|
|
74279
|
+
}
|
|
74062
74280
|
function resolveTypeName(dataType) {
|
|
74063
74281
|
var _a;
|
|
74064
74282
|
return ((_a = currDynamicDataType.value.find((dt2) => dt2.value === dataType)) == null ? void 0 : _a.type) || dataType || "";
|
|
@@ -74085,7 +74303,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74085
74303
|
containerPath,
|
|
74086
74304
|
containerKeyNames,
|
|
74087
74305
|
componentType: typeName,
|
|
74088
|
-
componentOptions: SELECT_TYPES_DESIGNER.includes(typeName) ? ((_b = (_a = item.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.data) || null : null
|
|
74306
|
+
componentOptions: SELECT_TYPES_DESIGNER.includes(typeName) ? ((_b = (_a = item.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.data) || null : null,
|
|
74307
|
+
multiple: isMultiSelectFieldDesigner(item, typeName)
|
|
74089
74308
|
});
|
|
74090
74309
|
}
|
|
74091
74310
|
if (!isArrayContainer) {
|
|
@@ -74122,7 +74341,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74122
74341
|
keyName: item.keyName,
|
|
74123
74342
|
dataTypeName: dataTypeName || "String",
|
|
74124
74343
|
componentType: typeName,
|
|
74125
|
-
componentOptions: SELECT_TYPES_DESIGNER.includes(typeName) ? ((_b = (_a = item.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.data) || null : null
|
|
74344
|
+
componentOptions: SELECT_TYPES_DESIGNER.includes(typeName) ? ((_b = (_a = item.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.data) || null : null,
|
|
74345
|
+
multiple: isMultiSelectFieldDesigner(item, typeName)
|
|
74126
74346
|
};
|
|
74127
74347
|
}
|
|
74128
74348
|
initData();
|
|
@@ -74214,7 +74434,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74214
74434
|
};
|
|
74215
74435
|
}
|
|
74216
74436
|
});
|
|
74217
|
-
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-
|
|
74437
|
+
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-1112b724"]]);
|
|
74218
74438
|
const ElsDynamicDesigner = withInstall$1(Designer);
|
|
74219
74439
|
const renderProps = buildProps({
|
|
74220
74440
|
...formItemProps$1,
|
|
@@ -74313,10 +74533,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
74313
74533
|
emits: ["update:modelValue"],
|
|
74314
74534
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74315
74535
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
74316
|
-
return import("./inner-
|
|
74536
|
+
return import("./inner-Cf5U_aKM.js").then((n) => n.i);
|
|
74317
74537
|
});
|
|
74318
74538
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
74319
|
-
return import("./inner-
|
|
74539
|
+
return import("./inner-Cf5U_aKM.js").then((n) => n.f);
|
|
74320
74540
|
});
|
|
74321
74541
|
const props2 = __props;
|
|
74322
74542
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -74546,10 +74766,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
74546
74766
|
emits: ["update:modelValue"],
|
|
74547
74767
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74548
74768
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
74549
|
-
return import("./inner-
|
|
74769
|
+
return import("./inner-Cf5U_aKM.js").then((n) => n.i);
|
|
74550
74770
|
});
|
|
74551
74771
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
74552
|
-
return import("./inner-
|
|
74772
|
+
return import("./inner-Cf5U_aKM.js").then((n) => n.f);
|
|
74553
74773
|
});
|
|
74554
74774
|
const props2 = __props;
|
|
74555
74775
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -78313,7 +78533,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78313
78533
|
containerPath,
|
|
78314
78534
|
containerKeyNames,
|
|
78315
78535
|
componentType: typeName,
|
|
78316
|
-
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((_c = (_b2 = item.config) == null ? void 0 : _b2.baseConfig) == null ? void 0 : _c.data) || null : null
|
|
78536
|
+
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((_c = (_b2 = item.config) == null ? void 0 : _b2.baseConfig) == null ? void 0 : _c.data) || null : null,
|
|
78537
|
+
multiple: isMultiSelectField(item, typeName)
|
|
78317
78538
|
});
|
|
78318
78539
|
}
|
|
78319
78540
|
if (!isArrayContainer) {
|
|
@@ -78346,6 +78567,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78346
78567
|
return traverse(renderData.value);
|
|
78347
78568
|
}
|
|
78348
78569
|
const SELECT_TYPES_FIELD = ["Select", "Radio", "Checkbox"];
|
|
78570
|
+
function isMultiSelectField(item, typeName) {
|
|
78571
|
+
var _a2, _b2;
|
|
78572
|
+
if (typeName === "Checkbox") return true;
|
|
78573
|
+
if (typeName === "Select") return ((_b2 = (_a2 = item.config) == null ? void 0 : _a2.baseConfig) == null ? void 0 : _b2.multiple) === true;
|
|
78574
|
+
return false;
|
|
78575
|
+
}
|
|
78349
78576
|
function toFieldItem(item) {
|
|
78350
78577
|
var _a2, _b2;
|
|
78351
78578
|
const typeName = item.componentTypeName || item.componentType || "";
|
|
@@ -78354,7 +78581,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78354
78581
|
keyName: item.keyName,
|
|
78355
78582
|
dataTypeName: item.dataTypeName,
|
|
78356
78583
|
componentType: typeName,
|
|
78357
|
-
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((_b2 = (_a2 = item.config) == null ? void 0 : _a2.baseConfig) == null ? void 0 : _b2.data) || null : null
|
|
78584
|
+
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((_b2 = (_a2 = item.config) == null ? void 0 : _a2.baseConfig) == null ? void 0 : _b2.data) || null : null,
|
|
78585
|
+
multiple: isMultiSelectField(item, typeName)
|
|
78358
78586
|
};
|
|
78359
78587
|
}
|
|
78360
78588
|
function isFormField(item) {
|
|
@@ -79447,7 +79675,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79447
79675
|
};
|
|
79448
79676
|
}
|
|
79449
79677
|
});
|
|
79450
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-
|
|
79678
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["__scopeId", "data-v-97b12b59"]]);
|
|
79451
79679
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
79452
79680
|
(function(Prism2) {
|
|
79453
79681
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -80186,31 +80414,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
80186
80414
|
__publicField(this, "editor", ref());
|
|
80187
80415
|
onMounted(() => {
|
|
80188
80416
|
if (props2.language === "json") {
|
|
80189
|
-
const currModule = import("./mode-json-
|
|
80417
|
+
const currModule = import("./mode-json-Br_Lu-Mh.js").then((n) => n.m);
|
|
80190
80418
|
currModule.then((res) => {
|
|
80191
80419
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
80192
80420
|
this.init();
|
|
80193
80421
|
});
|
|
80194
80422
|
} else if (props2.language === "javascript") {
|
|
80195
|
-
const currModule = import("./mode-javascript-
|
|
80423
|
+
const currModule = import("./mode-javascript-B8epNaGN.js").then((n) => n.m);
|
|
80196
80424
|
currModule.then((res) => {
|
|
80197
80425
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
80198
80426
|
this.init();
|
|
80199
80427
|
});
|
|
80200
80428
|
} else if (props2.language === "csharp") {
|
|
80201
|
-
const currModule = import("./mode-csharp-
|
|
80429
|
+
const currModule = import("./mode-csharp-DnzxQJcZ.js").then((n) => n.m);
|
|
80202
80430
|
currModule.then((res) => {
|
|
80203
80431
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
80204
80432
|
this.init();
|
|
80205
80433
|
});
|
|
80206
80434
|
} else if (props2.language === "mysql") {
|
|
80207
|
-
const currModule = import("./mode-mysql-
|
|
80435
|
+
const currModule = import("./mode-mysql-BDVOBDPt.js").then((n) => n.m);
|
|
80208
80436
|
currModule.then((res) => {
|
|
80209
80437
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
80210
80438
|
this.init();
|
|
80211
80439
|
});
|
|
80212
80440
|
} else if (props2.language === "css") {
|
|
80213
|
-
const currModule = import("./mode-css-
|
|
80441
|
+
const currModule = import("./mode-css-BKArO9O3.js").then((n) => n.m);
|
|
80214
80442
|
currModule.then((res) => {
|
|
80215
80443
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
80216
80444
|
this.init();
|