lw-cdp-ui 1.2.46 → 1.2.47

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.
@@ -274,8 +274,11 @@ export default {
274
274
  selected.forEach((node) => {
275
275
  // 获取 data-item 属性的值
276
276
  const item = node.getAttribute('data-item')
277
- const itemData = JSON.parse(item)
278
- list.push(itemData)
277
+
278
+ if (item) {
279
+ const itemData = JSON.parse(item)
280
+ list.push(itemData)
281
+ }
279
282
  })
280
283
  this.$emit('multipleSelection', list)
281
284
  }
@@ -232,3 +232,7 @@
232
232
  margin-top: 10px;
233
233
  gap: 5px;
234
234
  }
235
+
236
+ .table-card-list{
237
+
238
+ }
@@ -199,14 +199,15 @@
199
199
  class="table-card-list"
200
200
  :style="{ minHeight: maxHeight }">
201
201
  <el-row :gutter="20">
202
- <VueSelecto dragContainer=".el-main"
202
+ <VueSelecto dragContainer=".table-card-list"
203
+ boundContainer=".table-card-list"
203
204
  :selectableTargets="['.table-card-item']"
204
205
  :selectByClick="true"
205
206
  :selectFromInside="true"
206
207
  :continueSelect="false"
207
208
  :toggleContinueSelect='"shift"'
208
209
  :keyContainer="window"
209
- :hitRate="100"
210
+ :hitRate="50"
210
211
  @select="onSelect" />
211
212
  <el-col :span="6"
212
213
  v-for="item in tableData">
@@ -4868,8 +4868,11 @@ const nc = /* @__PURE__ */ ge(X6, [["render", tc], ["__scopeId", "data-v-153d358
4868
4868
  onSelect({ selected: e }) {
4869
4869
  let t = [];
4870
4870
  e.forEach((n) => {
4871
- const r = n.getAttribute("data-item"), a = JSON.parse(r);
4872
- t.push(a);
4871
+ const r = n.getAttribute("data-item");
4872
+ if (r) {
4873
+ const a = JSON.parse(r);
4874
+ t.push(a);
4875
+ }
4873
4876
  }), this.$emit("multipleSelection", t);
4874
4877
  }
4875
4878
  }
@@ -4888,14 +4891,15 @@ function Ec(e, t, n, r, a, o) {
4888
4891
  y(Y, { gutter: 20 }, {
4889
4892
  default: v(() => [
4890
4893
  y(I, {
4891
- dragContainer: ".el-main",
4894
+ dragContainer: ".table-card-list",
4895
+ boundContainer: ".table-card-list",
4892
4896
  selectableTargets: [".table-card-item"],
4893
4897
  selectByClick: !0,
4894
4898
  selectFromInside: !0,
4895
4899
  continueSelect: !1,
4896
4900
  toggleContinueSelect: "shift",
4897
4901
  keyContainer: e.window,
4898
- hitRate: 100,
4902
+ hitRate: 50,
4899
4903
  onSelect: e.onSelect
4900
4904
  }, null, 8, ["keyContainer", "onSelect"]),
4901
4905
  (g(!0), F(P, null, ne(e.tableData, (te) => (g(), B(J, { span: 6 }, {
@@ -5353,7 +5357,7 @@ function Ec(e, t, n, r, a, o) {
5353
5357
  ])) : G("", !0)
5354
5358
  ]);
5355
5359
  }
5356
- const wc = /* @__PURE__ */ ge(ic, [["render", Ec], ["__scopeId", "data-v-48f17bad"]]), Ic = {
5360
+ const wc = /* @__PURE__ */ ge(ic, [["render", Ec], ["__scopeId", "data-v-8c0bfaf6"]]), Ic = {
5357
5361
  name: "lwUpload",
5358
5362
  /**
5359
5363
  * @property {String} modelValue - 绑定的值,默认为空字符串