element-assits 0.0.36 → 0.0.38

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
@@ -3499,16 +3499,16 @@ function Ks(r, n, i, o = 0, f = [], d = [], v = !0, m, w) {
3499
3499
  r.type === "array" && Gt(r.items) && (D.__state.hasChildren = !0, D.__state.isExpanded = !0, Ks(r.items, n, "items", o, f, [...d], !1, r, D));
3500
3500
  return f;
3501
3501
  }
3502
- function yC(r, n = {}) {
3503
- return r.filter((i) => !i.__state.isTemp).forEach((i) => {
3504
- const o = i.__state.prefix.split(".").reduce((d, v) => {
3505
- const m = r.find((w) => w.__state.uuid === v);
3506
- return d.push(m.prop), m.type === "object" && d.push("properties"), d;
3502
+ function yC(r, n, i = {}) {
3503
+ return r.filter((o) => !o.__state.isTemp && o.prop).forEach((o) => {
3504
+ const f = o.__state.prefix.split(".").reduce((v, m) => {
3505
+ const w = r.find((S) => S.__state.uuid === m);
3506
+ return v.push(w.prop), w.type === "object" && v.push("properties"), v;
3507
3507
  }, []);
3508
- o[o.length - 1] === "properties" && o.pop(), Vw(n, o.join("."), Jn(i, ["prop", "required", "__state"])), o.pop(), o.pop();
3509
- const f = _n(n, o);
3510
- i.required && f && (f.required = f.required || [], f.required.push(i.prop));
3511
- }), n.root;
3508
+ f[f.length - 1] === "properties" && f.pop(), Vw(i, f.join("."), Jn(o, ["prop", "required", "__state"])), f.pop(), f.pop();
3509
+ const d = _n(i, f);
3510
+ o.required && d && (d.required = d.required || [], d.required.push(o.prop));
3511
+ }), i[n];
3512
3512
  }
3513
3513
  function bC(r, n) {
3514
3514
  const i = r.split(".").reduce((o, f) => {
@@ -7527,7 +7527,7 @@ const MC = {
7527
7527
  return this.rawList.every((r) => r.prop !== void 0);
7528
7528
  },
7529
7529
  getData() {
7530
- return yC(this.rawList);
7530
+ return yC(this.rawList, this.rootAlias);
7531
7531
  },
7532
7532
  getChecked(r) {
7533
7533
  const n = this.rawList.filter((i) => !(i.__state.isRoot || i.__state.virtualArrayItems || i.__state.isTemp) && (i.__state.checked || (r ? i.__state.indeterminate : !1)));
@@ -7558,10 +7558,10 @@ const MC = {
7558
7558
  };
7559
7559
  var DC = function() {
7560
7560
  var n = this, i = n._self._c;
7561
- return i("div", { staticClass: "vjs-table" }, [i("div", { staticClass: "vjs-row odd vjs-header", style: { minWidth: n.endWidth + "px", left: n.headerLeft + "px" } }, [n.checkbox ? i("span", { staticClass: "vjs-cell" }, [i("el-checkbox", { staticClass: "vjs-checkbox", attrs: { indeterminate: n.indeterminate, disabled: n.disableCheckbox }, on: { change: n.handleGlobalCheckChange }, model: { value: n.globalChecked, callback: function(o) {
7562
- n.globalChecked = o;
7563
- }, expression: "globalChecked" } })], 1) : n._e(), n._l(n.column, function(o, f) {
7564
- return i("span", { key: f, class: { "vjs-cell": 1, "vjs-cell-flex": o.flex }, style: { width: o.width + "px", ...f === 0 && { paddingLeft: "20px" } } }, [o.renderHeader ? i({ render: o.renderHeader }, { tag: "component" }) : i("span", [n._v(n._s(o.label))])], 1);
7561
+ return i("div", { staticClass: "vjs-table" }, [i("div", { staticClass: "vjs-row odd vjs-header", style: { minWidth: n.endWidth + "px", left: n.headerLeft + "px" } }, [n._l(n.column, function(o, f) {
7562
+ return i("span", { key: f, class: { "vjs-cell": 1, "vjs-cell-flex": o.flex }, style: { width: o.width + "px", ...f === 0 && { paddingLeft: 20 + (n.checkbox ? 20 : 0) + "px" } } }, [f === 0 && n.checkbox ? i("span", { staticClass: "vjs-checkbox", style: { left: 20 + "px" } }, [i("el-checkbox", { attrs: { indeterminate: n.indeterminate, disabled: n.disableCheckbox }, on: { change: n.handleGlobalCheckChange }, model: { value: n.globalChecked, callback: function(d) {
7563
+ n.globalChecked = d;
7564
+ }, expression: "globalChecked" } })], 1) : n._e(), o.renderHeader ? i({ render: o.renderHeader }, { tag: "component" }) : i("span", [n._v(n._s(o.label))])], 1);
7565
7565
  }), i("span", { staticClass: "vjs-cell" })], 2), i("EaScrollbar", { staticClass: "vjs-body", style: { height: n.endHeight + "px" } }, [i("EaVirtualScroll", { ref: "evs", attrs: { "enable-virtual-scroll": !0, options: n.list, "item-size": n.itemSize }, on: { "scroll-recalc": n.handleScrollRecalc }, scopedSlots: n._u([{ key: "item", fn: function({ item: o, index: f }) {
7566
7566
  return i("div", { directives: [{ name: "show", rawName: "v-show", value: Object.values(o.__state.show).every(Boolean), expression: "Object.values(item.__state.show).every(Boolean)" }], class: { "vjs-row": 1, odd: f % 2 }, style: { minWidth: n.endWidth + "px" } }, [o.__state.hasChildren ? i("i", { class: {
7567
7567
  "vjs-icon": 1,
@@ -7578,7 +7578,7 @@ var DC = function() {
7578
7578
  }, style: {
7579
7579
  width: d.width + "px",
7580
7580
  ...v === 0 && { paddingLeft: o.__state.level * 20 + (n.showCheckbox(o) ? 24 : 0) + "px" }
7581
- } }, [v === 0 && n.checkbox ? i("span", { staticClass: "vjs-checkbox", style: { left: o.__state.level * 20 + "px" } }, [n.showCheckbox(o) ? i("el-checkbox", { key: o.__state.uuid, staticClass: "vjs-checkbox", attrs: { indeterminate: o.__state.indeterminate, disabled: n.disableCheckbox }, on: { change: function(m) {
7581
+ } }, [v === 0 && n.checkbox ? i("span", { staticClass: "vjs-checkbox", style: { left: o.__state.level * 20 + "px" } }, [n.showCheckbox(o) ? i("el-checkbox", { key: o.__state.uuid, attrs: { indeterminate: o.__state.indeterminate, disabled: n.disableCheckbox }, on: { change: function(m) {
7582
7582
  return n.handleItemCheckChange(m, o);
7583
7583
  } }, model: { value: o.__state.checked, callback: function(m) {
7584
7584
  n.$set(o.__state, "checked", m);
package/lib/style.scss CHANGED
@@ -280,6 +280,26 @@ td {
280
280
  }
281
281
  }
282
282
 
283
+ .ea-list {
284
+ .loading-text {
285
+ color: $--color-secondary-text;
286
+ text-align: center;
287
+ font-size: inherit;
288
+ }
289
+ }
290
+
291
+ .ea-tree {
292
+ .ea-tree-real {
293
+ .el-tree-node > .el-tree-node__content{
294
+ border-radius: 4px;
295
+ }
296
+ .el-tree-node.is-current > .el-tree-node__content {
297
+ color: $--color-primary;
298
+ background-color: rgba($--color-primary, 0.1);
299
+ }
300
+ }
301
+ }
302
+
283
303
  .ea-split-container {
284
304
  display: flex;
285
305
  &.is-down {
@@ -317,26 +337,6 @@ td {
317
337
  }
318
338
  }
319
339
 
320
- .ea-tree {
321
- .ea-tree-real {
322
- .el-tree-node > .el-tree-node__content{
323
- border-radius: 4px;
324
- }
325
- .el-tree-node.is-current > .el-tree-node__content {
326
- color: $--color-primary;
327
- background-color: rgba($--color-primary, 0.1);
328
- }
329
- }
330
- }
331
-
332
- .ea-list {
333
- .loading-text {
334
- color: $--color-secondary-text;
335
- text-align: center;
336
- font-size: inherit;
337
- }
338
- }
339
-
340
340
  .ea-desc {
341
341
  font-size: 14px;
342
342
  &__title {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",