slw 1.0.0-rc.1.13 → 1.0.0-rc.1.14

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.
@@ -77850,7 +77850,7 @@ var js = js$1.exports;
77850
77850
  })(G);
77851
77851
  })(js$1);
77852
77852
  var jsExports = js$1.exports;
77853
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_8348c45b_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-8348c45b"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77853
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d6ee0d60_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-d6ee0d60"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77854
77854
  key: 0,
77855
77855
  class: "form-title"
77856
77856
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$e = {
@@ -78184,11 +78184,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78184
78184
  return G ? G.getCurrentRecord() : null;
78185
78185
  }, hide = (G) => {
78186
78186
  fieldColumnMap.value[G].displayForm = !1;
78187
- }, resetForm = () => {
78187
+ }, resetForm = (G) => {
78188
+ var H;
78188
78189
  form.value.reset();
78189
- for (let G in formData.value) {
78190
- let H = formConfig.value.columns.filter((X) => X.field == G);
78191
- H.length > 0 && (H[0].dataType == "LONG" || H[0].dataType == "PLONG" || H[0].dataType == "DOUBLE") && (formData.value[G] = 0);
78190
+ for (let X in formData.value) {
78191
+ let Q = formConfig.value.columns.filter((K) => K.field == X)[0];
78192
+ Q && (G && ((H = Q.itemRender) != null && H.defaultValue) ? formData.value[X] = Q.itemRender.defaultValue : ["LONG", "PLONG", "DOUBLE"].includes(Q.dataType) && (formData.value[X] = 0));
78192
78193
  }
78193
78194
  }, clearData = () => {
78194
78195
  for (let G in formData.value)
@@ -78212,12 +78213,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78212
78213
  ...Z,
78213
78214
  ...ee
78214
78215
  }), G[ne]) {
78215
- let oe = {
78216
+ let oe = formConfig.value.columns.filter((se) => se.field == ne)[0];
78217
+ oe.itemRender.defaultValue = G[ne], onFieldChange({
78216
78218
  data: G,
78217
- item: formConfig.value.columns.filter((ae) => ae.field == ne)[0],
78219
+ item: oe,
78218
78220
  property: ne
78219
- };
78220
- onFieldChange(oe);
78221
+ });
78221
78222
  }
78222
78223
  }
78223
78224
  });
@@ -78957,7 +78958,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78957
78958
  ]);
78958
78959
  };
78959
78960
  }
78960
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-8348c45b"]]);
78961
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-d6ee0d60"]]);
78961
78962
  WindowForm.name = "slw-window-form";
78962
78963
  WindowForm.install = (G) => {
78963
78964
  G.component(WindowForm.name, WindowForm);
@@ -92028,7 +92029,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
92028
92029
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
92029
92030
  setup(G, { emit: H }) {
92030
92031
  const X = G, Q = defineAsyncComponent(
92031
- () => import("./index-52bc5cdc.js")
92032
+ () => import("./index-d170ec59.js")
92032
92033
  );
92033
92034
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
92034
92035
  re.value = createDesigner();
@@ -224805,7 +224806,7 @@ function reConsole() {
224805
224806
  }
224806
224807
  }
224807
224808
  console.info(
224808
- `%cSLW %cVer 1.0.0-rc.1.13%c
224809
+ `%cSLW %cVer 1.0.0-rc.1.14%c
224809
224810
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224810
224811
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/view`,
224811
224812
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-6140ca0c.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-1f717067.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-6140ca0c.js";
1
+ import { i as m } from "./index-1f717067.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {