@fecp/designer 5.4.98 → 5.4.100

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.
@@ -50,11 +50,11 @@ const _sfc_main = {
50
50
  const $emits = __emit;
51
51
  const filterRules = index.useVModel($props, "modelValue", $emits);
52
52
  const getFieldType = (fieldId) => {
53
- const field = $props.filterFields.find((e) => e.id === fieldId);
53
+ const field = $props.filterFields.find((e) => e.id == fieldId);
54
54
  return (field == null ? void 0 : field.type) || "input";
55
55
  };
56
56
  const getField = (fieldId) => {
57
- const field = $props.filterFields.find((e) => e.id === fieldId);
57
+ const field = $props.filterFields.find((e) => e.id == fieldId);
58
58
  return field || {};
59
59
  };
60
60
  const getOperatorOptions = (type) => {
@@ -96,7 +96,7 @@ const _sfc_main = {
96
96
  };
97
97
  const isOperatorValid = (operator, fieldType) => {
98
98
  const options = getOperatorOptions(fieldType);
99
- return options.some((opt) => opt.value === operator);
99
+ return options.some((opt) => opt.value == operator);
100
100
  };
101
101
  const getDefaultOperator = (fieldType) => {
102
102
  return "eq";
@@ -116,9 +116,9 @@ const _sfc_main = {
116
116
  const isMultiple = ["in_any", "ni_any", "contains", "not_contains"].includes(
117
117
  item.operator
118
118
  );
119
- const isRange = item.operator === "range";
119
+ const isRange = item.operator == "range";
120
120
  if (isRange) {
121
- if (item.value === null || typeof item.value !== "object") {
121
+ if (item.value == null || typeof item.value !== "object") {
122
122
  item.value = { min: null, max: null };
123
123
  } else if (!("min" in item.value) || !("max" in item.value)) {
124
124
  item.value = { min: item.value.min || null, max: item.value.max || null };
@@ -126,11 +126,11 @@ const _sfc_main = {
126
126
  } else if (isMultiple) {
127
127
  if (!Array.isArray(item.value) && item.value !== null) {
128
128
  item.value = [item.value];
129
- } else if (item.value === null) {
129
+ } else if (item.value == null) {
130
130
  item.value = [];
131
131
  }
132
132
  } else {
133
- if (Array.isArray(item.value) || typeof item.value === "object") {
133
+ if (Array.isArray(item.value) || typeof item.value == "object") {
134
134
  item.value = null;
135
135
  }
136
136
  }
@@ -344,7 +344,7 @@ const _sfc_main = {
344
344
  _: 2
345
345
  }, 1032, ["onDelGroup", "modelValue", "onUpdate:modelValue", "filterFields"]);
346
346
  }), 128)),
347
- vue.unref(filterRules).groups.length === 0 && vue.unref(filterRules).conditions.length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true)
347
+ vue.unref(filterRules).groups.length == 0 && vue.unref(filterRules).conditions.length == 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4)) : vue.createCommentVNode("", true)
348
348
  ]),
349
349
  _: 1
350
350
  }, 8, ["model"])) : vue.createCommentVNode("", true),
@@ -383,5 +383,5 @@ const _sfc_main = {
383
383
  };
384
384
  }
385
385
  };
386
- const AdvancedFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-97b10229"]]);
386
+ const AdvancedFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fd919c69"]]);
387
387
  exports.default = AdvancedFilter;
@@ -47,9 +47,9 @@ const _sfc_main = {
47
47
  result.push({
48
48
  label: "表单字段",
49
49
  options: formFields.map((item) => ({
50
- id: item.id,
50
+ id: item.id + "",
51
51
  label: item.label,
52
- value: item.id
52
+ value: item.id + ""
53
53
  }))
54
54
  });
55
55
  }
@@ -57,9 +57,9 @@ const _sfc_main = {
57
57
  result.push({
58
58
  label: "隐藏域",
59
59
  options: hiddenFields.map((item) => ({
60
- id: item.id,
60
+ id: item.id + "",
61
61
  label: item.label,
62
- value: item.id
62
+ value: item.id + ""
63
63
  }))
64
64
  });
65
65
  }
@@ -100,5 +100,5 @@ const _sfc_main = {
100
100
  };
101
101
  }
102
102
  };
103
- const Trigger = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-0bf7cdfe"]]);
103
+ const Trigger = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8d97037c"]]);
104
104
  exports.default = Trigger;
@@ -138,7 +138,7 @@ const _sfc_main = {
138
138
  ]);
139
139
  const activeTab = vue.ref("dataLink");
140
140
  const currentTab = vue.computed(() => {
141
- return tabList.value.find((tab) => tab.name === activeTab.value);
141
+ return tabList.value.find((tab) => tab.name == activeTab.value);
142
142
  });
143
143
  const dataLinkFieldList = vue.ref([]);
144
144
  const filterConfig = vue.ref();
@@ -194,10 +194,10 @@ const _sfc_main = {
194
194
  dataLinkFieldList: dataLinkFieldList.value,
195
195
  filterConfig: data
196
196
  };
197
- if (currentTab.value.name === "dataLink") {
197
+ if (currentTab.value.name == "dataLink") {
198
198
  newRule.fieldAssignments = common.cloneDeep(fieldAssignments.value);
199
199
  }
200
- if (editingRuleIndex.value === -1) {
200
+ if (editingRuleIndex.value == -1) {
201
201
  linedConfigArr.push(newRule);
202
202
  } else {
203
203
  linedConfigArr[editingRuleIndex.value] = newRule;
@@ -210,7 +210,7 @@ const _sfc_main = {
210
210
  editingRuleIndex.value = -1;
211
211
  }
212
212
  const getFieldLabel = (fieldId) => {
213
- const field = fieldsData.value.find((f) => f.id === fieldId);
213
+ const field = fieldsData.value.find((f) => f.id == fieldId);
214
214
  return (field == null ? void 0 : field.label) || fieldId;
215
215
  };
216
216
  const getFieldTitle = (tabName) => {
@@ -226,7 +226,7 @@ const _sfc_main = {
226
226
  };
227
227
  const formatFormulaText = (assignment) => {
228
228
  const { formula } = assignment;
229
- if (formula === null || (formula == null ? void 0 : formula.value) === void 0 || (formula == null ? void 0 : formula.text) === null || (formula == null ? void 0 : formula.text) === void 0 || (formula == null ? void 0 : formula.value.text) === "") {
229
+ if (formula == null || (formula == null ? void 0 : formula.value) == void 0 || (formula == null ? void 0 : formula.text) == null || (formula == null ? void 0 : formula.text) == void 0 || (formula == null ? void 0 : formula.value.text) == "") {
230
230
  return "空";
231
231
  }
232
232
  return String(formula.text);
@@ -252,10 +252,10 @@ const _sfc_main = {
252
252
  const handleEditRule = (tab, item, index2) => {
253
253
  filterTitle.value = `${tab.label}联动规则`;
254
254
  filterConfig.value = common.cloneDeep(item.filterConfig);
255
- dataLinkFieldList.value = [...item.dataLinkFieldList];
256
- if (tab.name === "dataLink" && item.fieldAssignments) {
255
+ dataLinkFieldList.value = [...item.dataLinkFieldList.map(String)];
256
+ if (tab.name == "dataLink" && item.fieldAssignments) {
257
257
  fieldAssignments.value = common.cloneDeep(item.fieldAssignments);
258
- } else if (tab.name === "dataLink") {
258
+ } else if (tab.name == "dataLink") {
259
259
  fieldAssignments.value = [];
260
260
  }
261
261
  editingRuleIndex.value = index2;
@@ -370,7 +370,7 @@ const _sfc_main = {
370
370
  vue.createElementVNode("div", _hoisted_10, [
371
371
  vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(getFieldTitle(tab.name)), 1),
372
372
  vue.createElementVNode("div", _hoisted_12, [
373
- tab.name === "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
373
+ tab.name == "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
374
374
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.fieldAssignments, (assignment, index2) => {
375
375
  return vue.openBlock(), vue.createElementBlock("div", {
376
376
  key: index2,
@@ -452,15 +452,15 @@ const _sfc_main = {
452
452
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(dataLinkFieldList) ? dataLinkFieldList.value = $event : null),
453
453
  multiple: "",
454
454
  filterable: "",
455
- placeholder: !filterConfigData || ((_a = filterConfigData.conditions) == null ? void 0 : _a.length) === 0 ? "请选择字段" : "",
456
- disabled: !filterConfigData || ((_b = filterConfigData.conditions) == null ? void 0 : _b.length) === 0
455
+ placeholder: !filterConfigData || ((_a = filterConfigData.conditions) == null ? void 0 : _a.length) == 0 ? "请选择字段" : "",
456
+ disabled: !filterConfigData || ((_b = filterConfigData.conditions) == null ? void 0 : _b.length) == 0
457
457
  }, {
458
458
  default: vue.withCtx(() => [
459
459
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(fieldsData), (item) => {
460
460
  return vue.openBlock(), vue.createBlock(_component_el_option, {
461
- key: item.id,
461
+ key: item.id + "",
462
462
  label: item.label,
463
- value: item.id
463
+ value: item.id + ""
464
464
  }, null, 8, ["label", "value"]);
465
465
  }), 128))
466
466
  ]),
@@ -554,5 +554,5 @@ const _sfc_main = {
554
554
  };
555
555
  }
556
556
  };
557
- const DataLinkage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2626b920"]]);
557
+ const DataLinkage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-55af112b"]]);
558
558
  exports.default = DataLinkage;
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */