yuanjia-form-pro-standard 1.1.6-beta6.1 → 1.1.6-beta6.3

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
@@ -12861,7 +12861,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
12861
12861
  key: 0,
12862
12862
  visible: $data.historyPopoverVisible,
12863
12863
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $data.historyPopoverVisible = $event),
12864
- placement: "top-start",
12864
+ placement: "left",
12865
12865
  width: 400,
12866
12866
  trigger: "manual",
12867
12867
  "popper-class": "field-history-popover"
@@ -13098,7 +13098,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
13098
13098
  ], 64)) : createCommentVNode("", true)
13099
13099
  ], 2);
13100
13100
  }
13101
- var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-45439cfe"]]);
13101
+ var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-486d37a8"]]);
13102
13102
  var __glob_0_10$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13103
13103
  __proto__: null,
13104
13104
  "default": FormItemWrapper
@@ -175154,9 +175154,10 @@ const _sfc_main$4l = {
175154
175154
  data() {
175155
175155
  return {
175156
175156
  previewData: [],
175157
- previewHistoryPopoverVisible: {},
175158
- previewHistoryLoading: {},
175159
- previewHistoryList: {},
175157
+ previewHistoryPopoverVisible: false,
175158
+ previewHistoryLoading: false,
175159
+ previewHistoryList: [],
175160
+ currentPreviewHistoryBizMetaId: null,
175160
175161
  formJsonObj: this.formJson,
175161
175162
  formDataModel: {},
175162
175163
  widgetRefList: {},
@@ -176130,23 +176131,25 @@ const _sfc_main$4l = {
176130
176131
  return;
176131
176132
  }
176132
176133
  const bizMetaId = item.biz_meta_id;
176133
- if (this.previewHistoryPopoverVisible[bizMetaId]) {
176134
- this.$set(this.previewHistoryPopoverVisible, bizMetaId, false);
176134
+ if (this.previewHistoryPopoverVisible && this.currentPreviewHistoryBizMetaId === bizMetaId) {
176135
+ this.previewHistoryPopoverVisible = false;
176136
+ this.currentPreviewHistoryBizMetaId = null;
176135
176137
  return;
176136
176138
  }
176137
- this.$set(this.previewHistoryPopoverVisible, bizMetaId, true);
176139
+ this.currentPreviewHistoryBizMetaId = bizMetaId;
176140
+ this.previewHistoryPopoverVisible = true;
176138
176141
  await this.loadPreviewHistoryRecord(bizMetaId);
176139
176142
  },
176140
176143
  async loadPreviewHistoryRecord(bizMetaId) {
176141
176144
  var _a2, _b2, _c2, _d2, _e;
176142
- if (this.previewHistoryLoading[bizMetaId]) {
176145
+ if (this.previewHistoryLoading) {
176143
176146
  return;
176144
176147
  }
176145
176148
  try {
176146
- this.$set(this.previewHistoryLoading, bizMetaId, true);
176147
- this.$set(this.previewHistoryList, bizMetaId, []);
176149
+ this.previewHistoryLoading = true;
176150
+ this.previewHistoryList = [];
176148
176151
  if (!bizMetaId) {
176149
- this.$set(this.previewHistoryList, bizMetaId, []);
176152
+ this.previewHistoryList = [];
176150
176153
  return;
176151
176154
  }
176152
176155
  const token = almLocalStorage.getItem("token");
@@ -176165,15 +176168,15 @@ const _sfc_main$4l = {
176165
176168
  const url = commonGETUrlTranslation("case_module/biz_metadata_history_value", params);
176166
176169
  const response = await axios$1.get(url, { headers });
176167
176170
  if (((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Succeeded) && Array.isArray((_e = response == null ? void 0 : response.data) == null ? void 0 : _e.Data)) {
176168
- this.$set(this.previewHistoryList, bizMetaId, response.data.Data);
176171
+ this.previewHistoryList = response.data.Data;
176169
176172
  } else {
176170
- this.$set(this.previewHistoryList, bizMetaId, []);
176173
+ this.previewHistoryList = [];
176171
176174
  }
176172
176175
  } catch (error2) {
176173
176176
  console.error("\u83B7\u53D6\u5386\u53F2\u8BB0\u5F55\u5931\u8D25:", error2);
176174
- this.$set(this.previewHistoryList, bizMetaId, []);
176177
+ this.previewHistoryList = [];
176175
176178
  } finally {
176176
- this.$set(this.previewHistoryLoading, bizMetaId, false);
176179
+ this.previewHistoryLoading = false;
176177
176180
  }
176178
176181
  },
176179
176182
  hasParentLogic(item) {
@@ -176951,9 +176954,14 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176951
176954
  }, [
176952
176955
  $props.enableHistoryView && item.biz_meta_id ? (openBlock(), createBlock(_component_el_popover, {
176953
176956
  key: 0,
176954
- visible: $data.previewHistoryPopoverVisible[item.biz_meta_id],
176955
- "onUpdate:visible": ($event) => $data.previewHistoryPopoverVisible[item.biz_meta_id] = $event,
176956
- placement: "top-start",
176957
+ visible: $data.previewHistoryPopoverVisible && $data.currentPreviewHistoryBizMetaId === item.biz_meta_id,
176958
+ "onUpdate:visible": _cache[1] || (_cache[1] = (val) => {
176959
+ if (!val) {
176960
+ $data.previewHistoryPopoverVisible = false;
176961
+ $data.currentPreviewHistoryBizMetaId = null;
176962
+ }
176963
+ }),
176964
+ placement: "left",
176957
176965
  width: 400,
176958
176966
  trigger: "manual",
176959
176967
  "popper-class": "field-history-popover"
@@ -176966,17 +176974,17 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176966
176974
  ]),
176967
176975
  default: withCtx(() => [
176968
176976
  createElementVNode("div", _hoisted_4$g, [
176969
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "history-header" }, "\u5386\u53F2\u8BB0\u5F55", -1)),
176970
- $data.previewHistoryLoading[item.biz_meta_id] ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
176977
+ _cache[3] || (_cache[3] = createElementVNode("div", { class: "history-header" }, "\u5386\u53F2\u8BB0\u5F55", -1)),
176978
+ $data.previewHistoryLoading ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
176971
176979
  createVNode(_component_el_icon, { class: "is-loading" }, {
176972
176980
  default: withCtx(() => [
176973
176981
  createVNode(_component_Loading)
176974
176982
  ]),
176975
176983
  _: 1
176976
176984
  }),
176977
- _cache[1] || (_cache[1] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
176978
- ])) : !$data.previewHistoryList[item.biz_meta_id] || $data.previewHistoryList[item.biz_meta_id].length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$b, "\u6682\u65E0\u5386\u53F2\u8BB0\u5F55")) : (openBlock(), createElementBlock("div", _hoisted_7$9, [
176979
- (openBlock(true), createElementBlock(Fragment, null, renderList($data.previewHistoryList[item.biz_meta_id], (historyItem, historyIndex) => {
176985
+ _cache[2] || (_cache[2] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
176986
+ ])) : !$data.previewHistoryList || $data.previewHistoryList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$b, "\u6682\u65E0\u5386\u53F2\u8BB0\u5F55")) : (openBlock(), createElementBlock("div", _hoisted_7$9, [
176987
+ (openBlock(true), createElementBlock(Fragment, null, renderList($data.previewHistoryList, (historyItem, historyIndex) => {
176980
176988
  return openBlock(), createElementBlock("div", {
176981
176989
  key: historyIndex,
176982
176990
  class: "history-item"
@@ -177003,7 +177011,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
177003
177011
  ])
177004
177012
  ]),
177005
177013
  _: 2
177006
- }, 1032, ["visible", "onUpdate:visible"])) : (openBlock(), createElementBlock("div", _hoisted_14$3, toDisplayString(item == null ? void 0 : item.name), 1)),
177014
+ }, 1032, ["visible"])) : (openBlock(), createElementBlock("div", _hoisted_14$3, toDisplayString(item == null ? void 0 : item.name), 1)),
177007
177015
  Array.isArray(item.value) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
177008
177016
  item.type === "file-upload" || item.type === "picture-upload" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.value, (file) => {
177009
177017
  return openBlock(), createElementBlock(Fragment, {
@@ -177048,7 +177056,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
177048
177056
  [_directive_loading, $data.formLoading]
177049
177057
  ]);
177050
177058
  }
177051
- var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-b2986030"]]);
177059
+ var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-b17b9c12"]]);
177052
177060
  var ace$2 = { exports: {} };
177053
177061
  (function(module, exports) {
177054
177062
  (function() {
@@ -236413,13 +236421,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
236413
236421
  if (typeof window !== "undefined") {
236414
236422
  let loadSvg = function() {
236415
236423
  var body = document.body;
236416
- var svgDom = document.getElementById("__svg__icons__dom__1767769755264__");
236424
+ var svgDom = document.getElementById("__svg__icons__dom__1767771229541__");
236417
236425
  if (!svgDom) {
236418
236426
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
236419
236427
  svgDom.style.position = "absolute";
236420
236428
  svgDom.style.width = "0";
236421
236429
  svgDom.style.height = "0";
236422
- svgDom.id = "__svg__icons__dom__1767769755264__";
236430
+ svgDom.id = "__svg__icons__dom__1767771229541__";
236423
236431
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
236424
236432
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
236425
236433
  }