slw 0.5.991 → 0.5.992

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/lib/index.js CHANGED
@@ -8287,7 +8287,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
8287
8287
  for (const [X, Z] of H)
8288
8288
  G[X] = Z;
8289
8289
  return G;
8290
- }, _withScopeId$3 = (Q) => (pushScopeId("data-v-dddba6c9"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "upload-list-box" }, _hoisted_2$kT = {
8290
+ }, _withScopeId$4 = (Q) => (pushScopeId("data-v-dddba6c9"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "upload-list-box" }, _hoisted_2$kT = {
8291
8291
  key: 0,
8292
8292
  class: "thumbnail"
8293
8293
  }, _hoisted_3$hU = { class: "el-upload-list__item-actions" }, _hoisted_4$av = ["onClick"], _hoisted_5$4V = {
@@ -8511,10 +8511,10 @@ PictureUpload.name = "slw-picture-upload";
8511
8511
  PictureUpload.install = (Q) => {
8512
8512
  Q.component(PictureUpload.name, PictureUpload);
8513
8513
  };
8514
- const windowGrid_vue_vue_type_style_index_0_scoped_7bf6b0d4_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-7bf6b0d4"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8514
+ const windowGrid_vue_vue_type_style_index_0_scoped_7bf6b0d4_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-7bf6b0d4"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
8515
8515
  class: "slw-window-grid-container",
8516
8516
  style: { height: "100%" }
8517
- }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
8517
+ }, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
8518
8518
  _hoisted_2$kS,
8519
8519
  _hoisted_3$hT,
8520
8520
  _hoisted_4$au
@@ -36994,7 +36994,7 @@ const pseudoClasses = /* @__PURE__ */ [
36994
36994
  function css$1() {
36995
36995
  return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
36996
36996
  }
36997
- const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
36997
+ const windowForm_vue_vue_type_style_index_0_scoped_001b8de1_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-001b8de1"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
36998
36998
  key: 0,
36999
36999
  style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
37000
37000
  }, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
@@ -37359,14 +37359,18 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37359
37359
  label: ee.NAME
37360
37360
  },
37361
37361
  ee
37362
- )), formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && K.data.data.length > 0) {
37363
- Q[Z.field] = K.data.data[0].VALUE;
37364
- let ee = {
37365
- data: Q,
37366
- item: Z,
37367
- property: Z.field
37368
- };
37369
- onFieldChange(ee);
37362
+ )), formConfig.value.openType === "new" && Z.visible && K.data.data.length > 0) {
37363
+ if (Q[Z.field] === "null")
37364
+ Q[Z.field] = "";
37365
+ else if (!Q[Z.field]) {
37366
+ Q[Z.field] = K.data.data[0].VALUE;
37367
+ let ee = {
37368
+ data: Q,
37369
+ item: Z,
37370
+ property: Z.field
37371
+ };
37372
+ onFieldChange(ee);
37373
+ }
37370
37374
  }
37371
37375
  Z.itemRender.props.loading = !1;
37372
37376
  }
@@ -37749,10 +37753,10 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37749
37753
  ]);
37750
37754
  };
37751
37755
  }
37752
- };
37753
- _sfc_main$5.name = "slw-window-form";
37754
- _sfc_main$5.install = (Q) => {
37755
- Q.component(_sfc_main$5.name, _sfc_main$5);
37756
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-001b8de1"]]);
37757
+ WindowForm.name = "slw-window-form";
37758
+ WindowForm.install = (Q) => {
37759
+ Q.component(WindowForm.name, WindowForm);
37756
37760
  };
37757
37761
  const M$1 = {
37758
37762
  name: "splitpanes",
@@ -38210,7 +38214,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
38210
38214
  gridData: unref(ee).gridData,
38211
38215
  "onUpdate:gridData": de[0] || (de[0] = (fe) => unref(ee).gridData = fe)
38212
38216
  }, ce.$attrs), null, 16, ["gridData"])) : createCommentVNode("", !0),
38213
- unref(ee).gridData.type === "FORM" ? (openBlock(), createBlock(unref(_sfc_main$5), {
38217
+ unref(ee).gridData.type === "FORM" ? (openBlock(), createBlock(unref(WindowForm), {
38214
38218
  key: 1,
38215
38219
  ref_key: "xForm",
38216
38220
  ref: se,
@@ -39261,7 +39265,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_9f348366_lang = "", _withSco
39261
39265
  })
39262
39266
  }, {
39263
39267
  default: withCtx(() => [
39264
- (openBlock(), createBlock(unref(_sfc_main$5), {
39268
+ (openBlock(), createBlock(unref(WindowForm), {
39265
39269
  "form-config": unref(formConfig),
39266
39270
  "onUpdate:formConfig": H[1] || (H[1] = (he) => isRef(formConfig) ? formConfig.value = he : formConfig = he),
39267
39271
  ref_key: "xForm",
@@ -122184,7 +122188,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
122184
122188
  _sfc_main,
122185
122189
  WindowLayout,
122186
122190
  WindowGrid,
122187
- _sfc_main$5,
122191
+ WindowForm,
122188
122192
  _sfc_main$2,
122189
122193
  _sfc_main$3
122190
122194
  ], install = (Q, H = {
@@ -122254,7 +122258,7 @@ function reConsole() {
122254
122258
  }
122255
122259
  }
122256
122260
  console.info(
122257
- "%cSLW %cVer 0.5.991",
122261
+ "%cSLW %cVer 0.5.992",
122258
122262
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122259
122263
  "color:#999;font-size: 12px"
122260
122264
  );