yuanjia-form-pro-standard 1.1.6-beta6.8 → 1.1.6-beta6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/designer.es.js CHANGED
@@ -210797,9 +210797,6 @@ const _sfc_main$46 = {
210797
210797
  loading: false
210798
210798
  };
210799
210799
  },
210800
- created() {
210801
- this.loadFormList();
210802
- },
210803
210800
  mounted() {
210804
210801
  const token = almLocalStorage.getItem("token");
210805
210802
  const rToken = almLocalStorage.getItem("rToken");
@@ -210823,8 +210820,9 @@ const _sfc_main$46 = {
210823
210820
  axios$1.get(url, { headers: this.headers }).then((res) => {
210824
210821
  var _a2, _b2, _c2;
210825
210822
  this.optionList = ((_c2 = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) == null ? void 0 : _c2.map((item) => ({
210826
- label: item == null ? void 0 : item.name,
210827
- value: item == null ? void 0 : item.id
210823
+ label: `${item == null ? void 0 : item.name} - ${item == null ? void 0 : item.id}`,
210824
+ value: item == null ? void 0 : item.id,
210825
+ name: item == null ? void 0 : item.name
210828
210826
  }))) || [];
210829
210827
  this.loading = false;
210830
210828
  }).catch((error2) => {
@@ -210833,13 +210831,16 @@ const _sfc_main$46 = {
210833
210831
  });
210834
210832
  },
210835
210833
  remoteSearch: _.debounce(function(query) {
210836
- this.loadFormList(query);
210834
+ if (query && query.trim()) {
210835
+ this.loadFormList(query.trim());
210836
+ } else {
210837
+ this.optionList = [];
210838
+ }
210837
210839
  }, 300),
210838
210840
  handleChange(val) {
210839
- var _a2;
210840
210841
  console.log(this.optionModel, val, "optionModel");
210841
- const label = (_a2 = this.optionList.find((item) => item.value === val)) == null ? void 0 : _a2.label;
210842
- this.optionModel.childFormName = label;
210842
+ const selectedItem = this.optionList.find((item) => item.value === val);
210843
+ this.optionModel.childFormName = (selectedItem == null ? void 0 : selectedItem.name) || "";
210843
210844
  this.optionModel.childFormKey = val;
210844
210845
  this.optionModel.childFormExpand = false;
210845
210846
  }
@@ -236468,13 +236469,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
236468
236469
  if (typeof window !== "undefined") {
236469
236470
  let loadSvg = function() {
236470
236471
  var body = document.body;
236471
- var svgDom = document.getElementById("__svg__icons__dom__1768267384727__");
236472
+ var svgDom = document.getElementById("__svg__icons__dom__1768267827599__");
236472
236473
  if (!svgDom) {
236473
236474
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
236474
236475
  svgDom.style.position = "absolute";
236475
236476
  svgDom.style.width = "0";
236476
236477
  svgDom.style.height = "0";
236477
- svgDom.id = "__svg__icons__dom__1768267384727__";
236478
+ svgDom.id = "__svg__icons__dom__1768267827599__";
236478
236479
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
236479
236480
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
236480
236481
  }