slw 0.10.16 → 0.10.17

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.
@@ -33409,7 +33409,7 @@ var js = js$1.exports;
33409
33409
  })(Q);
33410
33410
  })(js$1);
33411
33411
  var jsExports = js$1.exports;
33412
- const index$g = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), _withScopeId$7 = (Q) => (pushScopeId("data-v-2aa2920b"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
33412
+ const index$g = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), _withScopeId$7 = (Q) => (pushScopeId("data-v-fd5aa80e"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
33413
33413
  key: 0,
33414
33414
  class: "form-title"
33415
33415
  }, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$c = {
@@ -34096,7 +34096,13 @@ const index$g = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), _withScopeId
34096
34096
  let X = formConfig.value.columns.filter(
34097
34097
  (K) => K.field == Q.toUpperCase()
34098
34098
  )[0];
34099
- X && (X.itemRender.props[H] = G);
34099
+ if (X && (X.itemRender.props[H] = G, H == "notNull")) {
34100
+ let K = formConfig.value.editRules[Q.toUpperCase()].filter((Z) => Z.required);
34101
+ (K == null ? void 0 : K.length) > 0 ? K[0].required = G : formConfig.value.editRules[Q.toUpperCase()].push({
34102
+ required: G,
34103
+ message: X.title + $T("不能为空!")
34104
+ });
34105
+ }
34100
34106
  }, handleSelectTableField = (Q) => {
34101
34107
  const H = formConfig.value.params.selectTableField[Q.toUpperCase()];
34102
34108
  H && H.forEach((G) => {
@@ -34463,7 +34469,7 @@ const index$g = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), _withScopeId
34463
34469
  ]);
34464
34470
  };
34465
34471
  }
34466
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2aa2920b"]]);
34472
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-fd5aa80e"]]);
34467
34473
  WindowForm.name = "slw-window-form";
34468
34474
  WindowForm.install = (Q) => {
34469
34475
  Q.component(WindowForm.name, WindowForm);
@@ -47330,7 +47336,7 @@ const _withScopeId$1 = (Q) => (pushScopeId("data-v-a3ebe962"), Q = Q(), popScope
47330
47336
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
47331
47337
  setup(Q, { emit: H }) {
47332
47338
  const G = Q, X = defineAsyncComponent(
47333
- () => import("./index-BQnkrK58.js")
47339
+ () => import("./index-XamcMwMX.js")
47334
47340
  );
47335
47341
  let K = useVModel(G, "type", H), Z = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref$1(0), re = ref$1(null);
47336
47342
  re.value = createDesigner();
@@ -132112,7 +132118,7 @@ function reConsole() {
132112
132118
  }
132113
132119
  }
132114
132120
  console.info(
132115
- `%cSLW %cVer 0.10.16%c
132121
+ `%cSLW %cVer 0.10.17%c
132116
132122
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
132117
132123
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
132118
132124
  "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 p, resolveComponent as g, createElementBlock as f, openBlock as o, createBlock as h, createCommentVNode as _, withModifiers as R, normalizeStyle as A, normalizeClass as T, withCtx as r, renderSlot as q, 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 W, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as I, d as L, a as S, u as N } from "./index-F-zxrWyZ.js";
2
+ import { _ as I, d as L, a as S, u as N } from "./index-5Bxf5uar.js";
3
3
  const x = {
4
4
  computed: {},
5
5
  methods: {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as f } from "./index-F-zxrWyZ.js";
1
+ import { i as f } from "./index-5Bxf5uar.js";
2
2
  export {
3
3
  f as default
4
4
  };