slw 0.9.38 → 0.9.39

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.
@@ -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-803f13a9.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-b1e7f74c.js";
3
3
  const I = {
4
4
  computed: {},
5
5
  methods: {
@@ -42469,7 +42469,7 @@ var js = js$1.exports;
42469
42469
  })(Q);
42470
42470
  })(js$1);
42471
42471
  var jsExports = js$1.exports;
42472
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_dc530c5b_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-dc530c5b"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42472
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_194102ee_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-194102ee"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42473
42473
  key: 0,
42474
42474
  class: "form-header-box"
42475
42475
  }, _hoisted_3$hX = {
@@ -42814,9 +42814,13 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42814
42814
  fieldColumnMap.value[Q].displayForm = !1;
42815
42815
  }, reset = () => {
42816
42816
  form.value.reset();
42817
+ for (let Q in formData.value) {
42818
+ let H = formConfig.value.columns.filter((G) => G.field == Q);
42819
+ H.length > 0 && (H[0].dataType == "LONG" || H[0].dataType == "PLONG" || H[0].dataType == "DOUBLE") && (formData.value[Q] = 0);
42820
+ }
42817
42821
  }, clearData = () => {
42818
42822
  for (let Q in formData.value)
42819
- typeof formData.value[Q] == "number" ? formData.value[Q] = 0 : formData.value[Q] = "";
42823
+ formData.value[Q] = "";
42820
42824
  }, validateDataChg = () => !XEUtils$1.isEqual(toRaw(formData.value), toRaw(formDataClone.value)), getRegion = (Q) => {
42821
42825
  let H = regionMap.value[Q + "-" + preTag.value];
42822
42826
  return H || regionMap.value[Q];
@@ -43463,7 +43467,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43463
43467
  ]);
43464
43468
  };
43465
43469
  }
43466
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-dc530c5b"]]);
43470
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-194102ee"]]);
43467
43471
  WindowForm.name = "slw-window-form";
43468
43472
  WindowForm.install = (Q) => {
43469
43473
  Q.component(WindowForm.name, WindowForm);
@@ -59231,7 +59235,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59231
59235
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59232
59236
  setup(Q, { emit: H }) {
59233
59237
  const G = Q, X = defineAsyncComponent(
59234
- () => import("./index-0fc1d4d6.js")
59238
+ () => import("./index-b177f775.js")
59235
59239
  );
59236
59240
  let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
59237
59241
  re.value = createDesigner();
@@ -144229,7 +144233,7 @@ function reConsole() {
144229
144233
  }
144230
144234
  }
144231
144235
  console.info(
144232
- `%cSLW %cVer 0.9.38%c
144236
+ `%cSLW %cVer 0.9.39%c
144233
144237
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144234
144238
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144235
144239
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as a } from "./index-803f13a9.js";
1
+ import { i as a } from "./index-b1e7f74c.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as default