lw-cdp-ui 1.1.49 → 1.1.51

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.
@@ -30,6 +30,7 @@
30
30
 
31
31
  <!-- 表单内容 -->
32
32
  <el-form-item v-else
33
+ :class="{ 'form-item-name-null': !item?.label }"
33
34
  :prop="getPropName(item)"
34
35
  :rules="rulesHandle(item)">
35
36
  <template #label>
@@ -524,7 +525,13 @@ export default {
524
525
  font-weight: bold;
525
526
  margin-bottom: 10px;
526
527
  margin-top: 10px;
527
- // border-top: 1px solid #efefef;
528
+ border-top: 10px solid #f5f7fa;
528
529
  padding-top: 20px;
529
530
  }
531
+
532
+ :deep(.form-item-name-null) {
533
+ > .el-form-item__label {
534
+ display: none !important;
535
+ }
536
+ }
530
537
  </style>
@@ -130,9 +130,13 @@ export default {
130
130
  }
131
131
  let expression = this.$expression(this.formData)
132
132
  if (expression && this.params?.expression) {
133
- this.formData.expression = ` ${this.params.expression} AND ${expression}`
133
+ this.formData.expression = `${this.params.expression} AND ${expression}`
134
+ } else if (expression) {
135
+ this.formData.expression = expression
136
+ } else if (this.params?.expression) {
137
+ this.formData.expression = this.params?.expression
134
138
  } else {
135
- this.formData.expression = this.params.expression
139
+ this.formData.expression = ''
136
140
  }
137
141
  Object.assign(reqData, this.params, this.formData)
138
142
 
@@ -6498,6 +6498,7 @@ function _sfc_render$f(e, t, n, d, a, h) {
6498
6498
  }, 1032, ["content"])) : createCommentVNode("", !0)
6499
6499
  ], 8, _hoisted_1$a)) : (openBlock(), createBlock(ce, {
6500
6500
  key: 1,
6501
+ class: normalizeClass({ "form-item-name-null": !(c != null && c.label) }),
6501
6502
  prop: h.getPropName(c),
6502
6503
  rules: h.rulesHandle(c)
6503
6504
  }, {
@@ -6743,7 +6744,7 @@ function _sfc_render$f(e, t, n, d, a, h) {
6743
6744
  ];
6744
6745
  }),
6745
6746
  _: 2
6746
- }, 1032, ["prop", "rules"]))
6747
+ }, 1032, ["class", "prop", "rules"]))
6747
6748
  ]),
6748
6749
  _: 2
6749
6750
  }, 1032, ["span"]))
@@ -6778,7 +6779,7 @@ function _sfc_render$f(e, t, n, d, a, h) {
6778
6779
  [p, n.loading]
6779
6780
  ]);
6780
6781
  }
6781
- const lwFormMini = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-32ee505f"]]), config$1 = {
6782
+ const lwFormMini = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-4f20df25"]]), config$1 = {
6782
6783
  icons: [
6783
6784
  {
6784
6785
  name: "默认",
@@ -7278,7 +7279,7 @@ const lwIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_r
7278
7279
  },
7279
7280
  //获取表格数据
7280
7281
  async getData() {
7281
- var a;
7282
+ var a, h, y;
7282
7283
  this.loading = !0;
7283
7284
  var e = {
7284
7285
  [this.defaultProps.page]: this.currentPage - 1,
@@ -7286,20 +7287,20 @@ const lwIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_r
7286
7287
  [this.defaultProps.keyword]: this.keyword
7287
7288
  };
7288
7289
  let t = this.$expression(this.formData);
7289
- t && ((a = this.params) != null && a.expression) ? this.formData.expression = ` ${this.params.expression} AND ${t}` : this.formData.expression = this.params.expression, Object.assign(e, this.params, this.formData);
7290
+ t && ((a = this.params) != null && a.expression) ? this.formData.expression = `${this.params.expression} AND ${t}` : t ? this.formData.expression = t : (h = this.params) != null && h.expression ? this.formData.expression = (y = this.params) == null ? void 0 : y.expression : this.formData.expression = "", Object.assign(e, this.params, this.formData);
7290
7291
  var n = await this.apiObj(e), d = config.parseData(n);
7291
7292
  this.tableData = d.rows, this.total = d.total, this.loading = !1, this.$nextTick(() => {
7292
7293
  if (this.multiple)
7293
- this.defaultValue.forEach((y) => {
7294
- var m = this.tableData.filter((f) => f[this.defaultProps.value] === y.value);
7295
- m.length > 0 && this.$refs.table.toggleRowSelection(m[0], !0);
7294
+ this.defaultValue.forEach((f) => {
7295
+ var b = this.tableData.filter((V) => V[this.defaultProps.value] === f.value);
7296
+ b.length > 0 && this.$refs.table.toggleRowSelection(b[0], !0);
7296
7297
  });
7297
7298
  else {
7298
- var h = this.tableData.filter((y) => {
7299
- var m;
7300
- return y[this.defaultProps.value] === ((m = this.defaultValue) == null ? void 0 : m.value);
7299
+ var m = this.tableData.filter((f) => {
7300
+ var b;
7301
+ return f[this.defaultProps.value] === ((b = this.defaultValue) == null ? void 0 : b.value);
7301
7302
  });
7302
- this.$refs.table.setCurrentRow(h[0]);
7303
+ this.$refs.table.setCurrentRow(m[0]);
7303
7304
  }
7304
7305
  this.$refs.table.setScrollTop(0);
7305
7306
  });
@@ -7440,7 +7441,7 @@ function _sfc_render$d(e, t, n, d, a, h) {
7440
7441
  _: 3
7441
7442
  }, 8, ["modelValue", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "placeholder", "disabled", "filter-method", "onRemoveTag", "onVisibleChange", "onClear"]);
7442
7443
  }
7443
- const lwTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-7f4d09a6"]]), _sfc_main$c = {
7444
+ const lwTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-d3d0e6b4"]]), _sfc_main$c = {
7444
7445
  components: {
7445
7446
  lwUpload
7446
7447
  },