element-assits 0.0.36 → 0.0.37

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
@@ -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
@@ -317,6 +317,18 @@ td {
317
317
  }
318
318
  }
319
319
 
320
+ .ea-list {
321
+ .loading-text {
322
+ color: $--color-secondary-text;
323
+ text-align: center;
324
+ font-size: inherit;
325
+ }
326
+ }
327
+
328
+ .ea-number .el-input__inner {
329
+ text-align: left;
330
+ }
331
+
320
332
  .ea-tree {
321
333
  .ea-tree-real {
322
334
  .el-tree-node > .el-tree-node__content{
@@ -329,14 +341,6 @@ td {
329
341
  }
330
342
  }
331
343
 
332
- .ea-list {
333
- .loading-text {
334
- color: $--color-secondary-text;
335
- text-align: center;
336
- font-size: inherit;
337
- }
338
- }
339
-
340
344
  .ea-desc {
341
345
  font-size: 14px;
342
346
  &__title {
@@ -381,37 +385,6 @@ td {
381
385
  }
382
386
  }
383
387
 
384
- .ea-number .el-input__inner {
385
- text-align: left;
386
- }
387
-
388
- .file-upload-dialog {
389
- // 拖拽区域铺满
390
- .el-upload,
391
- .el-upload .el-upload-dragger {
392
- width: 100%;
393
- }
394
- // 文件列表项边框
395
- .el-upload-list {
396
- .el-upload-list__item {
397
- border: 1px dashed #aaa;
398
- .el-icon-close {
399
- display: inline-block;
400
- }
401
- }
402
- }
403
- // 清除文件列表变动过渡动画
404
- .el-list-enter,
405
- .el-list-enter-active,
406
- .el-list-enter-to,
407
- .el-list-leave,
408
- .el-list-leave-active,
409
- .el-list-leave-to {
410
- -webkit-transition: none !important;
411
- transition: none !important;
412
- }
413
- }
414
-
415
388
  .vjs-table {
416
389
  position: relative;
417
390
  overflow: hidden;
@@ -611,6 +584,33 @@ td {
611
584
  .ea-icon-more:before { content: "\e60e" }
612
585
  .eafont.ea-icon-conf.has { color: #000 }
613
586
 
587
+ .file-upload-dialog {
588
+ // 拖拽区域铺满
589
+ .el-upload,
590
+ .el-upload .el-upload-dragger {
591
+ width: 100%;
592
+ }
593
+ // 文件列表项边框
594
+ .el-upload-list {
595
+ .el-upload-list__item {
596
+ border: 1px dashed #aaa;
597
+ .el-icon-close {
598
+ display: inline-block;
599
+ }
600
+ }
601
+ }
602
+ // 清除文件列表变动过渡动画
603
+ .el-list-enter,
604
+ .el-list-enter-active,
605
+ .el-list-enter-to,
606
+ .el-list-leave,
607
+ .el-list-leave-active,
608
+ .el-list-leave-to {
609
+ -webkit-transition: none !important;
610
+ transition: none !important;
611
+ }
612
+ }
613
+
614
614
  .ea-form .form-group-title {
615
615
  position: relative;
616
616
  height: 32px;
@@ -718,6 +718,21 @@ td {
718
718
  }
719
719
  }
720
720
 
721
+ .ea-switch-mini {
722
+ .el-switch__core {
723
+ width: 30px !important;
724
+ height: 16px;
725
+ &::after {
726
+ width: 12px;
727
+ height: 12px;
728
+ left: 2px;
729
+ }
730
+ }
731
+ &.is-checked .el-switch__core::after {
732
+ margin-left: -13px;
733
+ }
734
+ }
735
+
721
736
  .ea-select-container {
722
737
  display: flex;
723
738
  justify-content: flex-start;
@@ -757,18 +772,3 @@ td {
757
772
  }
758
773
  }
759
774
  }
760
-
761
- .ea-switch-mini {
762
- .el-switch__core {
763
- width: 30px !important;
764
- height: 16px;
765
- &::after {
766
- width: 12px;
767
- height: 12px;
768
- left: 2px;
769
- }
770
- }
771
- &.is-checked .el-switch__core::after {
772
- margin-left: -13px;
773
- }
774
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",