element-assits 0.0.63 → 0.0.64

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
@@ -1486,7 +1486,7 @@ const wx = {
1486
1486
  var xx = function() {
1487
1487
  var t = this, i = t._self._c;
1488
1488
  return i("el-form-item", { ref: "ElFormItem", class: { "hidden-label": t.top.labelWidth === "0" }, style: t.column.style, attrs: { label: t.column.__label, prop: t.column.prop, rules: t.column.__rules }, scopedSlots: t._u([{ key: "label", fn: function() {
1489
- return [t._v(" " + t._s(t.column.__label) + " "), t.column.__labelTooltip ? i("el-tooltip", t._b({}, "el-tooltip", t.tooltip(t.column.__labelTooltip), !1), [i("i", { staticClass: "el-icon-warning-outline" })]) : t._e()];
1489
+ return [t._v(t._s(t.column.__label) + " "), t.column.__labelTooltip ? i("el-tooltip", t._b({}, "el-tooltip", t.tooltip(t.column.__labelTooltip), !1), [i("i", { staticClass: "el-icon-warning-outline" })]) : t._e()];
1490
1490
  }, proxy: !0 }]) }, [i(t.column.__component, t._g(t._b({ tag: "component", on: { change: function(l) {
1491
1491
  t.top.$emit("change", t.top.model), t.$refs.ElFormItem.$emit("el.form.change");
1492
1492
  } }, nativeOn: { keyup: function(l) {
@@ -1509,6 +1509,10 @@ const Tx = {
1509
1509
  name: "LayoutContainer",
1510
1510
  components: { FormItem: Sx },
1511
1511
  props: {
1512
+ root: {
1513
+ type: Boolean,
1514
+ default: !1
1515
+ },
1512
1516
  title: {
1513
1517
  type: String,
1514
1518
  default: void 0
@@ -1531,7 +1535,7 @@ var Ax = function() {
1531
1535
  var t = this, i = t._self._c;
1532
1536
  return t.inline ? i("span", [t._l(t.column, function(l) {
1533
1537
  return [i("FormItem", { key: l.key, attrs: { column: l } })];
1534
- })], 2) : i("div", [t.title ? i("div", { staticClass: "form-group-title" }, [i("span", [t._v(t._s(t.title))])]) : t._e(), t.column && t.column.length ? i("el-row", { attrs: { gutter: 18 } }, t._l(t.column, function(l, u) {
1538
+ })], 2) : i("div", { class: { "form-group": !t.root } }, [t.title ? i("div", { staticClass: "form-group-title" }, [i("span", [t._v(t._s(t.title))])]) : t._e(), t.column && t.column.length ? i("el-row", { attrs: { gutter: 18 } }, t._l(t.column, function(l, u) {
1535
1539
  return i("el-col", { key: u, style: { marginBottom: (t.dense ? 0 : 9) + "px" }, attrs: { md: l.children ? 24 : l.span || 12, pull: l.pull, push: l.push, offset: l.offset } }, [l.children && l.children.length ? [i("LayoutContainer", { attrs: { column: l.children, title: l.title, dense: t.dense } })] : i("FormItem", { attrs: { column: l } })], 2);
1536
1540
  }), 1) : t._e()], 1);
1537
1541
  }, Ex = [], Ox = /* @__PURE__ */ X(
@@ -1818,7 +1822,7 @@ var Fx = function() {
1818
1822
  var t = this, i = t._self._c;
1819
1823
  return i("el-form", t._g(t._b({ ref: "form", staticClass: "ea-form", attrs: { model: t.model, rules: t.rules, inline: t.inline, "label-width": t.labelWidth }, nativeOn: { submit: function(l) {
1820
1824
  l.preventDefault();
1821
- } } }, "el-form", t.$attrs, !1), t.$listeners), [t._t("content-before"), i("LayoutContainer", { attrs: { column: t.dealtColumn, inline: t.inline, dense: t.dense } }), t._t("default")], 2);
1825
+ } } }, "el-form", t.$attrs, !1), t.$listeners), [t._t("content-before"), i("LayoutContainer", { attrs: { root: !0, column: t.dealtColumn, inline: t.inline, dense: t.dense } }), t._t("default")], 2);
1822
1826
  }, Mx = [], Bx = /* @__PURE__ */ X(
1823
1827
  Px,
1824
1828
  Fx,
package/lib/style.scss CHANGED
@@ -50,6 +50,45 @@ $--background-color-base: #F5F7FA !default;
50
50
  }
51
51
  }
52
52
 
53
+ .ea-data-table {
54
+ .edt-row {
55
+ display: flex;
56
+ .edt-cell {
57
+ padding: 0 8px;
58
+ flex: 0 0 auto;
59
+ box-sizing: border-box;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ white-space: nowrap;
63
+ word-break: break-all;
64
+ }
65
+ &.edt-header {
66
+ background-color: $--color-border-extralight;
67
+ color: $--color-primary-text;
68
+ }
69
+ }
70
+ &--border {
71
+ border: 1px solid $--color-border-light;
72
+ .edt-row {
73
+ .edt-cell {
74
+ border-bottom: 1px solid $--color-border-light;
75
+ border-left: 1px solid $--color-border-light;
76
+ &:first-child {
77
+ border-left: 0;
78
+ }
79
+ }
80
+ &:last-child .edt-cell{
81
+ border-bottom: 0;
82
+ }
83
+ }
84
+ }
85
+ .loading-text {
86
+ color: $--color-secondary-text;
87
+ text-align: center;
88
+ font-size: inherit;
89
+ }
90
+ }
91
+
53
92
  // table
54
93
  .ea-table {
55
94
  // 表格头部样式美化
@@ -167,45 +206,6 @@ $--background-color-base: #F5F7FA !default;
167
206
  transform: scaleY(0);
168
207
  }
169
208
 
170
- .ea-data-table {
171
- .edt-row {
172
- display: flex;
173
- .edt-cell {
174
- padding: 0 8px;
175
- flex: 0 0 auto;
176
- box-sizing: border-box;
177
- overflow: hidden;
178
- text-overflow: ellipsis;
179
- white-space: nowrap;
180
- word-break: break-all;
181
- }
182
- &.edt-header {
183
- background-color: $--color-border-extralight;
184
- color: $--color-primary-text;
185
- }
186
- }
187
- &--border {
188
- border: 1px solid $--color-border-light;
189
- .edt-row {
190
- .edt-cell {
191
- border-bottom: 1px solid $--color-border-light;
192
- border-left: 1px solid $--color-border-light;
193
- &:first-child {
194
- border-left: 0;
195
- }
196
- }
197
- &:last-child .edt-cell{
198
- border-bottom: 0;
199
- }
200
- }
201
- }
202
- .loading-text {
203
- color: $--color-secondary-text;
204
- text-align: center;
205
- font-size: inherit;
206
- }
207
- }
208
-
209
209
  .el-dialog.ea-modal {
210
210
  &.is-closing {
211
211
  margin: 0 0 50px !important;
@@ -224,6 +224,10 @@ $--background-color-base: #F5F7FA !default;
224
224
  }
225
225
  }
226
226
 
227
+ .ea-number .el-input__inner {
228
+ text-align: left;
229
+ }
230
+
227
231
  .ea-button-tooltip + .ea-button-tooltip {
228
232
  margin-left: 10px;
229
233
  }
@@ -340,18 +344,6 @@ td {
340
344
  }
341
345
  }
342
346
 
343
- .ea-tree {
344
- .ea-tree-real {
345
- .el-tree-node > .el-tree-node__content{
346
- border-radius: 4px;
347
- }
348
- .el-tree-node.is-current > .el-tree-node__content {
349
- color: $--color-primary;
350
- background-color: rgba($--color-primary, 0.1);
351
- }
352
- }
353
- }
354
-
355
347
  .ea-list {
356
348
  .loading-text {
357
349
  color: $--color-secondary-text;
@@ -360,54 +352,6 @@ td {
360
352
  }
361
353
  }
362
354
 
363
- .ea-desc {
364
- font-size: 14px;
365
- &__title {
366
- font-size: 16px;
367
- margin-bottom: 12px;
368
- }
369
- &__list {
370
- display: flex;
371
- flex-wrap: wrap;
372
- }
373
- }
374
- .ea-desc .item {
375
- line-height: 24px;
376
- margin-bottom: 10px;
377
- flex: 0 0 auto;
378
- .item-label {
379
- float: left;
380
- text-align: right;
381
- padding-right: 8px;
382
- color: #909399;
383
- }
384
- .item-value {
385
- word-break: break-all;
386
- overflow: hidden;
387
- .value-no-wrap {
388
- height: 48px;
389
- overflow: hidden;
390
- position: relative;
391
- .click-see-more {
392
- position: absolute;
393
- right: 0;
394
- bottom: 0;
395
- height: 24px;
396
- padding-left: 30px;
397
- padding-right: 4px;
398
- background-image: linear-gradient(to right, transparent 0%, #fff 20%, #fff 100%);
399
- cursor: pointer;
400
- color: $--color-primary;
401
- user-select: none;
402
- }
403
- }
404
- }
405
- }
406
-
407
- .ea-number .el-input__inner {
408
- text-align: left;
409
- }
410
-
411
355
  .file-upload-dialog {
412
356
  // 拖拽区域铺满
413
357
  .el-upload,
@@ -435,6 +379,74 @@ td {
435
379
  }
436
380
  }
437
381
 
382
+ .ea-tree {
383
+ .ea-tree-real {
384
+ .el-tree-node > .el-tree-node__content{
385
+ border-radius: 4px;
386
+ }
387
+ .el-tree-node.is-current > .el-tree-node__content {
388
+ color: $--color-primary;
389
+ background-color: rgba($--color-primary, 0.1);
390
+ }
391
+ }
392
+ }
393
+
394
+ .ea-data-tree-body {
395
+ &.ea-data-tree-body__border {
396
+ border: 1px solid $--color-border-light;
397
+ }
398
+ }
399
+
400
+ .ea-data-tree-row {
401
+ display: flex;
402
+ justify-content: flex-start;
403
+ position: relative;
404
+ padding-left: 20px;
405
+ box-sizing: border-box;
406
+ &.odd { background-color: #F8F8F8; }
407
+ &:hover { background-color: #EBEEF5; }
408
+ .ea-data-tree-cell {
409
+ flex: 0 0 auto;
410
+ height: 100%;
411
+ font-size: 14px;
412
+ box-sizing: border-box;
413
+ padding: 0 8px;
414
+ position: relative;
415
+ overflow: hidden;
416
+ text-overflow: ellipsis;
417
+ white-space: nowrap;
418
+ word-break: break-all;
419
+ & > .ea-data-tree-checkbox {
420
+ position: absolute;
421
+ top: 0;
422
+ }
423
+ }
424
+ .ea-data-tree-icon {
425
+ cursor: pointer;
426
+ position: absolute;
427
+ height: 100%;
428
+ color: #CCC;
429
+ display: flex;
430
+ align-items: center;
431
+ z-index: 1;
432
+ &:hover {
433
+ color: #333;
434
+ }
435
+ }
436
+ }
437
+
438
+ .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
439
+ background-color: $--color-secondary-text;
440
+ border-color: $--color-secondary-text;
441
+ }
442
+
443
+ .ea-data-tree-empty {
444
+ display: flex;
445
+ justify-content: center;
446
+ align-items: center;
447
+ color: $--color-secondary-text;
448
+ }
449
+
438
450
  .vjs-table {
439
451
  position: relative;
440
452
  overflow: hidden;
@@ -634,62 +646,50 @@ td {
634
646
  .ea-icon-more:before { content: "\e60e" }
635
647
  .eafont.ea-icon-conf.has { color: #000 }
636
648
 
637
- .ea-data-tree-body {
638
- &.ea-data-tree-body__border {
639
- border: 1px solid $--color-border-light;
649
+ .ea-desc {
650
+ font-size: 14px;
651
+ &__title {
652
+ font-size: 16px;
653
+ margin-bottom: 12px;
654
+ }
655
+ &__list {
656
+ display: flex;
657
+ flex-wrap: wrap;
640
658
  }
641
659
  }
642
-
643
- .ea-data-tree-row {
644
- display: flex;
645
- justify-content: flex-start;
646
- position: relative;
647
- padding-left: 20px;
648
- box-sizing: border-box;
649
- &.odd { background-color: #F8F8F8; }
650
- &:hover { background-color: #EBEEF5; }
651
- .ea-data-tree-cell {
652
- flex: 0 0 auto;
653
- height: 100%;
654
- font-size: 14px;
655
- box-sizing: border-box;
656
- padding: 0 8px;
657
- position: relative;
658
- overflow: hidden;
659
- text-overflow: ellipsis;
660
- white-space: nowrap;
661
- word-break: break-all;
662
- & > .ea-data-tree-checkbox {
663
- position: absolute;
664
- top: 0;
665
- }
660
+ .ea-desc .item {
661
+ line-height: 24px;
662
+ margin-bottom: 10px;
663
+ flex: 0 0 auto;
664
+ .item-label {
665
+ float: left;
666
+ text-align: right;
667
+ padding-right: 8px;
668
+ color: #909399;
666
669
  }
667
- .ea-data-tree-icon {
668
- cursor: pointer;
669
- position: absolute;
670
- height: 100%;
671
- color: #CCC;
672
- display: flex;
673
- align-items: center;
674
- z-index: 1;
675
- &:hover {
676
- color: #333;
670
+ .item-value {
671
+ word-break: break-all;
672
+ overflow: hidden;
673
+ .value-no-wrap {
674
+ height: 48px;
675
+ overflow: hidden;
676
+ position: relative;
677
+ .click-see-more {
678
+ position: absolute;
679
+ right: 0;
680
+ bottom: 0;
681
+ height: 24px;
682
+ padding-left: 30px;
683
+ padding-right: 4px;
684
+ background-image: linear-gradient(to right, transparent 0%, #fff 20%, #fff 100%);
685
+ cursor: pointer;
686
+ color: $--color-primary;
687
+ user-select: none;
688
+ }
677
689
  }
678
690
  }
679
691
  }
680
692
 
681
- .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
682
- background-color: $--color-secondary-text;
683
- border-color: $--color-secondary-text;
684
- }
685
-
686
- .ea-data-tree-empty {
687
- display: flex;
688
- justify-content: center;
689
- align-items: center;
690
- color: $--color-secondary-text;
691
- }
692
-
693
693
  .ea-form .form-group-title {
694
694
  position: relative;
695
695
  height: 32px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",