form-custom-test 3.0.64 → 3.0.66

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.
@@ -68056,13 +68056,13 @@ function registerIcon(app) {
68056
68056
  if (typeof window !== "undefined") {
68057
68057
  let loadSvg = function() {
68058
68058
  var body = document.body;
68059
- var svgDom = document.getElementById("__svg__icons__dom__1773831778945__");
68059
+ var svgDom = document.getElementById("__svg__icons__dom__1773976036573__");
68060
68060
  if (!svgDom) {
68061
68061
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68062
68062
  svgDom.style.position = "absolute";
68063
68063
  svgDom.style.width = "0";
68064
68064
  svgDom.style.height = "0";
68065
- svgDom.id = "__svg__icons__dom__1773831778945__";
68065
+ svgDom.id = "__svg__icons__dom__1773976036573__";
68066
68066
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68067
68067
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68068
68068
  }
@@ -77945,6 +77945,15 @@ const _sfc_main = {
77945
77945
  };
77946
77946
  },
77947
77947
  computed: {
77948
+ displayModel() {
77949
+ if (this.currentUserType === "username") {
77950
+ return this.fieldModel ? this.fieldModel.username : "";
77951
+ } else if (this.currentUserType === "deptName") {
77952
+ return this.fieldModel ? this.fieldModel.deptName : "";
77953
+ } else {
77954
+ return JSON.stringify(this.fieldModel);
77955
+ }
77956
+ },
77948
77957
  widgetStyle() {
77949
77958
  return {
77950
77959
  width: this.field.options.columnWidth || "auto"
@@ -77966,11 +77975,7 @@ const _sfc_main = {
77966
77975
  method: "get",
77967
77976
  url: "unified-system/employee/loginInfo?accessType=0"
77968
77977
  });
77969
- if (this.currentUserType === "username") {
77970
- this.fieldModel = data2.username;
77971
- } else if (this.currentUserType === "deptName") {
77972
- this.fieldModel = data2.deptName;
77973
- }
77978
+ this.fieldModel = data2;
77974
77979
  this.syncUpdateFormModel(this.fieldModel);
77975
77980
  this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
77976
77981
  }
@@ -78024,8 +78029,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
78024
78029
  }, {
78025
78030
  default: withCtx(() => [
78026
78031
  createVNode(_component_el_input, {
78027
- modelValue: $data.fieldModel,
78028
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
78032
+ modelValue: $options.displayModel,
78033
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
78029
78034
  disabled: true
78030
78035
  }, null, 8, ["modelValue"])
78031
78036
  ]),
@@ -78138,6 +78143,7 @@ VFormDesigner.install = function(app) {
78138
78143
  app.component(VFormDesigner.name, VFormDesigner);
78139
78144
  app.config.globalProperties.$service = service;
78140
78145
  app.provide("service", service);
78146
+ app.provide("ElMessage", ElMessage);
78141
78147
  app.config.globalProperties.$cookies = cookies;
78142
78148
  app.provide("cookies", cookies);
78143
78149
  };