element-assits 0.0.56 → 0.0.58

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/README.md CHANGED
@@ -54,6 +54,7 @@ Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
54
54
  |     .referenceItemWidth|单项参考宽度|Number|180|
55
55
  |     .maxItemWidth|单项最大宽度|Number|240|
56
56
  |     .loading|控制更多按钮加载状态|Boolean|false|
57
+ |     .defaultShowAll|搜索条件是否默认展开|Boolean|false|
57
58
  |     .column[].exclusiveDoubleCells|允许某一项独占两格|Boolean|false|
58
59
  | innerSelection | 内部 - 选中列 | Boolean \| Object | undefined|
59
60
  |     .data | 选中的行 | Array | undefined |
package/lib/index.js CHANGED
@@ -1837,15 +1837,19 @@ const da = Dx.exports, Bx = {
1837
1837
  maxItemWidth: {
1838
1838
  type: Number,
1839
1839
  default: 240
1840
+ },
1841
+ defaultShowAll: {
1842
+ type: Boolean,
1843
+ default: !1
1840
1844
  }
1841
1845
  },
1842
1846
  data() {
1843
- const r = typeof this.limit == "number" ? this.limit : 2;
1847
+ const r = typeof this.limit == "number" ? this.limit : 2, t = this.defaultShowAll;
1844
1848
  return {
1845
1849
  allColumn: [],
1846
1850
  rawColumn: [],
1847
1851
  defaultCount: r,
1848
- showAll: !1
1852
+ showAll: t
1849
1853
  };
1850
1854
  },
1851
1855
  computed: {
@@ -1853,7 +1857,7 @@ const da = Dx.exports, Bx = {
1853
1857
  return this.allColumn.reduce((r, t) => r += t.exclusiveDoubleCells ? 2 : 1, 0);
1854
1858
  },
1855
1859
  moreIcon() {
1856
- return this.loading ? "el-icon-loading" : this.showAll ? "el-icon-arrow-up" : "el-icon-more";
1860
+ return this.loading ? "el-icon-loading" : this.showAll && this.allLength > this.defaultCount ? "el-icon-arrow-up" : "el-icon-more";
1857
1861
  },
1858
1862
  moreTooltip() {
1859
1863
  return this.limit !== "all" && this.allLength > this.defaultCount ? this.showAll ? "\u6536\u8D77\u641C\u7D22\u6761\u4EF6" : "\u5C55\u5F00\u66F4\u591A\u641C\u7D22\u6761\u4EF6" : "\u6CA1\u6709\u66F4\u591A\u641C\u7D22\u6761\u4EF6\u4E86";
@@ -1935,7 +1939,11 @@ const da = Dx.exports, Bx = {
1935
1939
  });
1936
1940
  },
1937
1941
  handleMore() {
1938
- this.limit !== "all" && (this.allLength <= this.defaultCount || (this.showAll = !this.showAll, this.init()));
1942
+ if (this.limit === "all" || this.allLength <= this.defaultCount) {
1943
+ this.showAll = !1;
1944
+ return;
1945
+ }
1946
+ this.showAll = !this.showAll, this.init();
1939
1947
  },
1940
1948
  handleRefresh() {
1941
1949
  this.$emit("refresh");
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .ea-select{display:inline-block;position:relative}.ea-select .el-select{width:100%}.ea-select .async-loading.el-icon-loading{position:absolute;top:10px;right:28px;color:#999}.ea-select-popover .el-select-dropdown__item{display:flex;justify-content:space-between}.ea-select-popover .el-select-dropdown__item .select-item-value{overflow:hidden;text-overflow:ellipsis}.ea-select-popover .el-select-dropdown__item .select-item-desc{overflow:hidden;text-overflow:ellipsis;color:#8492a6;margin-left:8px}.ea-form .el-form-item__content>.el-input-number,.ea-form .el-form-item__content>.el-input,.ea-form .el-form-item__content>.ea-select,.ea-form .el-form-item__content>.el-select{width:100%}.ea-form .el-form-item.hidden-label>.el-form-item__label{display:none}.ea-form .el-form-item.hidden-label>.el-form-item__content{width:100%}.ea-form .form-group-title{position:relative;height:32px;margin-bottom:22px}.ea-form .form-group-title>span{position:absolute;top:0;left:20%;padding:5px 25px;background-color:#fff;z-index:1;color:#909399}.ea-form .form-group-title:after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px dashed #DCDFE6}.ea-select-container{display:flex;justify-content:flex-start;font-size:12px}.ea-select-container.medium{font-size:14px}.ea-select-container.medium .ea-select-panel .ea-select-panel__item{line-height:28px}.ea-select-container .ea-select-panel{padding:0;margin:0;list-style:none;flex-grow:1;min-width:120px}.ea-select-container .ea-select-panel+.ea-select-panel{border-left:1px solid #DDD}.ea-select-container .ea-select-panel__item{width:100%;line-height:24px;cursor:pointer;padding:0 12px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:inherit}.ea-select-container .ea-select-panel__item:hover{background-color:#ebeef5}.ea-select-container .ea-select-panel__item.active{color:#409eff;font-weight:700}.ea-table .el-table th{background-color:#f2f6fc;color:#303133}.ea-table .el-table th .cell{min-height:30px;display:flex;justify-content:flex-start;align-items:center}.ea-table .el-table th.is-center .cell{justify-content:center}.ea-table .el-table th.is-right .cell{justify-content:flex-end}.ea-table .el-table td .cell,.ea-table .el-table th .cell{line-height:1.2}.ea-table .el-table.el-table--small td,.ea-table .el-table.el-table--small th{height:48px}.ea-table .el-table.is-dense td,.ea-table .el-table.is-dense th{height:32px;padding:2px 0}.ea-table .el-table.is-dense td .el-button,.ea-table .el-table.is-dense th .el-button{padding-top:0;padding-bottom:0}.ea-table .theader-th-cell .cell-icon-menu{position:absolute;top:50%;right:4px;transform:rotate(90deg) translate(-50%);color:#c0c4cc;cursor:pointer;padding:4px;border-radius:2px}.ea-table .theader-th-cell .cell-icon-menu:hover{color:#303133;background-color:#e4e7ed}.ea-table .ea-table__footer{display:flex;justify-content:space-between}.ea-table .ea-table__footer .ea-table__footer-right{margin-left:auto;padding-right:0}.ea-table .ea-table__footer>*{margin-top:12px}.ea-table .column-transition-active{opacity:.33}.ea-table .el-button>i{min-width:12px}.ea-table .more-btn>i{transform:rotate(-90deg)}.el-popover.ea-popover-no-padding{padding:8px 0;min-width:100px}.el-popover.ea-popover-no-padding.dense{margin-top:0;margin-bottom:0;min-width:70px}.more-btn-panel__item:hover{background-color:#ebeef5}.more-btn-panel__item .el-button{padding:8px 12px;width:100%;text-align:left}.ea-zoom-in-top-enter-active,.ea-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.ea-zoom-in-top-enter,.ea-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ea-data-table .edt-row{display:flex}.ea-data-table .edt-row .edt-cell{padding:0 8px;flex:0 0 auto;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.ea-data-table .edt-row.edt-header{background-color:#f2f6fc;color:#303133}.ea-data-table--border{border:1px solid #E4E7ED}.ea-data-table--border .edt-row .edt-cell{border-bottom:1px solid #E4E7ED;border-left:1px solid #E4E7ED}.ea-data-table--border .edt-row .edt-cell:first-child{border-left:0}.ea-data-table--border .edt-row:last-child .edt-cell{border-bottom:0}.ea-data-table .loading-text{color:#909399;text-align:center;font-size:inherit}.el-dialog.ea-modal.is-closing{margin:0 0 50px!important}.el-dialog.ea-modal.is-fullscreen{border-radius:0;margin:0}.el-dialog.ea-modal .el-dialog__header{color:#555;font-size:18px}.el-dialog.ea-modal .el-dialog__header .el-dialog__title{color:inherit;font-size:inherit}.ea-button-tooltip+.ea-button-tooltip{margin-left:10px}td .ea-button-tooltip+.ea-button-tooltip{margin-left:4px}td .ea-button-tooltip+.ea-button-tooltip.text{margin-left:10px}td .el-button [class*=el-icon-]+span{margin-left:2px}.el-button.ea-button.mini-rect-btn{padding:7px;border:0}.el-button.ea-button.mini-rect-btn [class^=design-]{margin-right:0}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary{background-color:#409eff26;color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus{background-color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success{background-color:#67c23a26;color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus{background-color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info{background-color:#90939926;color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus{background-color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning{background-color:#e6a23c26;color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus{background-color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger{background-color:#f56c6c26;color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus{background-color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus i{color:#fff}.ea-split-container{display:flex}.ea-split-container.is-down{user-select:none}.ea-split-container .sc-left,.ea-split-container .sc-right{flex-grow:1;flex-shrink:1}.ea-split-container .sc-center{flex-grow:0;flex-shrink:0;position:relative}.ea-split-container .sc-bamboo{width:8px;height:100%;border:1px solid #DCDEE2;border-top:none;border-bottom:none;background-color:#f8f8f9;cursor:col-resize;user-select:none;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 16px}.ea-split-container .sc-bamboo .sc-texture{width:4px;height:1px;background:rgba(23,35,61,.25);margin-top:3px}.ea-split-container .sc-on-bamboo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;display:flex;justify-content:center;align-items:center}.ea-tree .ea-tree-real .el-tree-node>.el-tree-node__content{border-radius:4px}.ea-tree .ea-tree-real .el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#409eff1a}.ea-list .loading-text{color:#909399;text-align:center;font-size:inherit}.ea-desc{font-size:14px}.ea-desc__title{font-size:16px;margin-bottom:12px}.ea-desc__list{display:flex;flex-wrap:wrap}.ea-desc .item{line-height:24px;margin-bottom:10px;flex:0 0 auto}.ea-desc .item .item-label{float:left;text-align:right;padding-right:8px;color:#909399}.ea-desc .item .item-value{word-break:break-all;overflow:hidden}.ea-desc .item .item-value .value-no-wrap{height:48px;overflow:hidden;position:relative}.ea-desc .item .item-value .value-no-wrap .click-see-more{position:absolute;right:0;bottom:0;height:24px;padding-left:30px;padding-right:4px;background-image:linear-gradient(to right,transparent 0%,#fff 20%,#fff 100%);cursor:pointer;color:#409eff;user-select:none}.ea-number .el-input__inner{text-align:left}.file-upload-dialog .el-upload,.file-upload-dialog .el-upload .el-upload-dragger{width:100%}.file-upload-dialog .el-upload-list .el-upload-list__item{border:1px dashed #aaa}.file-upload-dialog .el-upload-list .el-upload-list__item .el-icon-close{display:inline-block}.file-upload-dialog .el-list-enter,.file-upload-dialog .el-list-enter-active,.file-upload-dialog .el-list-enter-to,.file-upload-dialog .el-list-leave,.file-upload-dialog .el-list-leave-active,.file-upload-dialog .el-list-leave-to{-webkit-transition:none!important;transition:none!important}.ea-switch-mini .el-switch__core{width:30px!important;height:16px}.ea-switch-mini .el-switch__core:after{width:12px;height:12px;left:2px}.ea-switch-mini.is-checked .el-switch__core:after{margin-left:-13px}.conf-header{border-bottom:1px solid #DDD;padding-bottom:10px;margin-bottom:10px}.conf-body{width:300px}.dense-much .el-form-item{margin-bottom:8px!important}.vjs-table{position:relative;overflow:hidden}.vjs-header{position:absolute;top:0;border:1px solid #E4E7ED;border-bottom:0}.vjs-body{border:1px solid #E4E7ED}.vjs-row{height:32px;line-height:32px;display:flex;justify-content:flex-start;position:relative}.vjs-row.odd{background-color:#f8f8f8}.vjs-row:not(.vjs-header):hover{background-color:#ebeef5}.vjs-row .vjs-cell{flex:0 0 auto;height:100%;font-size:14px;box-sizing:border-box;padding:0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vjs-row .vjs-cell>.el-tag{vertical-align:1px}.vjs-row .vjs-cell.vjs-cell-flex{flex-grow:1}.vjs-row .vjs-cell.error{border:1px solid red}.vjs-row .vjs-cell>.vjs-checkbox{position:absolute;top:0}.vjs-row .vjs-icon{cursor:pointer;position:absolute;height:100%;color:#ccc;display:flex;align-items:center;z-index:1}.vjs-row .vjs-icon:hover{color:#333}.vjs-row .vjs-temp{color:#909399}.vjs-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#909399;border-color:#909399}.cell-text{height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.cell-text .cell-placeholder{color:#c0c4cc}.cell-input{display:block;height:30px;line-height:30px;font-size:inherit;color:inherit;font-family:inherit;margin-left:-4.7px}.cell-input .el-input__inner{border-radius:0;font-size:inherit;color:inherit;font-family:inherit;padding-left:4px}.cell-select{cursor:pointer}.cell-select:not(.is-disabled):hover{border-width:0;border-bottom-width:1.5px;border-style:solid}.cell-select.is-disabled{cursor:default}.cell-required{width:100%;height:100%;display:flex;align-items:center}.cell-required .box{width:20px;height:20px;box-sizing:border-box;border-radius:4px;cursor:pointer;user-select:none;display:flex;justify-content:center;align-items:center;padding-top:4px;color:#ddd;background-color:#00000005}.cell-required .box:not(.is-disabled):hover{color:#999;background-color:#0000000d}.cell-required .box.is-disabled{cursor:default;color:transparent;background-color:transparent}.cell-required .box.is-required,.cell-required .box.is-required:hover{color:red;background-color:#00000014}.cell-action{width:80px}.cell-action i{cursor:pointer;font-size:16px;padding:4px;border-radius:4px}.cell-action i:hover{background-color:#0000001a}.action-popover{margin:0!important}.ea-blue{color:#409eff}.ea-purple{color:#ee46bc!important}.ea-success{color:#67c23a}.ea-danger{color:#f56c6c}.ea-info{color:#909399}.ea-placeholder{color:#c0c4cc!important}.ea-popover-no-margin{margin:0!important}@font-face{font-family:eafont;src:url(data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAQYAAsAAAAACMAAAAPLAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDHAqFDIRVATYCJAMQCwoABCAFhE8HQBu9BxEVnLHIfibwpknuXkitybkhDKpb3+RDeb1vMhOsa34zn2ST3rpbnaQ7jZOwi3OelIhQI3mLHn0haTkDFEZf6SdAAFkA/M/ltDHxABvfAoC7xti0t5dlvehe2rbAxhiUbfFAIsy8BXYOdTBB14AA0MJNMC4yOjETxsayzmZMwiDhCeDmksa6mjJIdwNYCkIgqYW8KxnIUvAAt4C7BGCJ+XnyER5JAAeeQtontTqqEsfe4I0bVawK6CPoOBDgaA4AD4ACcOqZidSmO8pB7bATCm1ckMEHOCiBA2ptM75xs1pZNCqFJDsBrvSfRwRICj1SvSIUeAOVBxzwxiiIU7qhaAUUTF8hARgJuAwQV0iaKfUsFCCNNxhGG7SjtYaxY4lGRgbuZDNvZTJvZzHv5riIWmmOGkzUuxFVl27lVB+9q7OkJEK51XPw7m2JcOs9dwL05isn1JNXdWXmfZuUzfstB7eqWw5k6s2HlMM6wyq1Ur1793aQwXL5uHLsklZ/6NadO2U+61H1yA23UsnOr6+wtChXH3JzL0iKIqt5uRoraFeuoKtaqxwuXs18qMz+If6j7B2qsiLTw2vHNIy5EZqYFJ8wvXp6reO9qIzItHL7SvuHY/ODcgM9ijxLm3N3HC3PcEt1dU11yygPdexWfv+Wuh0fmn/+fNVmI0fPkm3aUP9WzjNlTw6OGJcrozrKqO8IucXmW0liyTebp7aTH2z22fzAhy47ZeszcZbHrIk+a4L33vHyySlyqtG1ZtO2tHrQABahETOU7ZxfsjesIuV4ZLq7Z3rkXFJQo3Ome47HpVDPqpj+GrkyMLBSrvlKKHWuDKyRv1Ja3NHQyZE+ckXTJKc/WgEA1hN0Fw03WR/pMjpOe4ySKuya+Q6+fCl7UmKSv0k6BgB4ydgfclmPMZQTHnNhbsEVoizMWZJ9PQBjcRJVdNU5MiHdgxwArWwGLok4MMqTOlSjORsgEDDaBQ4iJgKFgBlERrUBHjo4yQRZ5YughaOg9TqMVgsKwjQAbAwAeAi9jcAx2gyU3kEio54F3jg/EOi9B63s/246NiVcehQjapAbOMWZFPuIQs98opmi6D1CHPXFfnCcoS6qQOyBGfuiC4bZNONIQD0nuBc4K0aGtmePaizsOLbnsqS4mxSK0+7SoxhRA7kBpziTzo/XCHfcE80URbmiOYjfcD847g5qhSqV+FBkKtjy/GE2jXEkQJ98TuDeiizKYQZt/DCPaizYEsH2rKRSlFdRjEmVNmkNgJZ0EIsjlDDCQ9oNQkbUp1VJPSXucbcDAA==) format("woff2")}.eafont{font-family:eafont;font-style:normal;font-size:16px;color:#909399;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ea-icon-disabled:before{content:"\e630"}.ea-icon-conf:before{content:"\e600"}.ea-icon-more:before{content:"\e60e"}.eafont.ea-icon-conf.has{color:#000}.ea-data-tree-body.ea-data-tree-body__border{border:1px solid #E4E7ED}.ea-data-tree-row{display:flex;justify-content:flex-start;position:relative;padding-left:20px;box-sizing:border-box}.ea-data-tree-row.odd{background-color:#f8f8f8}.ea-data-tree-row:hover{background-color:#ebeef5}.ea-data-tree-row .ea-data-tree-cell{flex:0 0 auto;height:100%;font-size:14px;box-sizing:border-box;padding:0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.ea-data-tree-row .ea-data-tree-cell>.ea-data-tree-checkbox{position:absolute;top:0}.ea-data-tree-row .ea-data-tree-icon{cursor:pointer;position:absolute;height:100%;color:#ccc;display:flex;align-items:center;z-index:1}.ea-data-tree-row .ea-data-tree-icon:hover{color:#333}.ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#909399;border-color:#909399}.ea-data-tree-empty{display:flex;justify-content:center;align-items:center;color:#909399}.ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
1
+ .ea-select{display:inline-block;position:relative}.ea-select .el-select{width:100%}.ea-select .async-loading.el-icon-loading{position:absolute;top:10px;right:28px;color:#999}.ea-select-popover .el-select-dropdown__item{display:flex;justify-content:space-between}.ea-select-popover .el-select-dropdown__item .select-item-value{overflow:hidden;text-overflow:ellipsis}.ea-select-popover .el-select-dropdown__item .select-item-desc{overflow:hidden;text-overflow:ellipsis;color:#8492a6;margin-left:8px}.ea-form .el-form-item__content>.el-input-number,.ea-form .el-form-item__content>.el-input,.ea-form .el-form-item__content>.ea-select,.ea-form .el-form-item__content>.el-select{width:100%}.ea-form .el-form-item.hidden-label>.el-form-item__label{display:none}.ea-form .el-form-item.hidden-label>.el-form-item__content{width:100%}.ea-form .form-group-title{position:relative;height:32px;margin-bottom:22px}.ea-form .form-group-title>span{position:absolute;top:0;left:20%;padding:5px 25px;background-color:#fff;z-index:1;color:#909399}.ea-form .form-group-title:after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px dashed #DCDFE6}.ea-select-container{display:flex;justify-content:flex-start;font-size:12px}.ea-select-container.medium{font-size:14px}.ea-select-container.medium .ea-select-panel .ea-select-panel__item{line-height:28px}.ea-select-container .ea-select-panel{padding:0;margin:0;list-style:none;flex-grow:1;min-width:120px}.ea-select-container .ea-select-panel+.ea-select-panel{border-left:1px solid #DDD}.ea-select-container .ea-select-panel__item{width:100%;line-height:24px;cursor:pointer;padding:0 12px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:inherit}.ea-select-container .ea-select-panel__item:hover{background-color:#ebeef5}.ea-select-container .ea-select-panel__item.active{color:#409eff;font-weight:700}.ea-table .el-table th{background-color:#f5f7fa;color:#303133}.ea-table .el-table th .cell{min-height:30px;display:flex;justify-content:flex-start;align-items:center}.ea-table .el-table th.is-center .cell{justify-content:center}.ea-table .el-table th.is-right .cell{justify-content:flex-end}.ea-table .el-table td .cell,.ea-table .el-table th .cell{line-height:1.2}.ea-table .el-table.el-table--small td,.ea-table .el-table.el-table--small th{height:50px}.ea-table .el-table.is-dense td,.ea-table .el-table.is-dense th{height:32px;padding:2px 0}.ea-table .el-table.is-dense td .el-button,.ea-table .el-table.is-dense th .el-button{padding-top:0;padding-bottom:0}.ea-table .theader-th-cell .cell-icon-menu{position:absolute;top:50%;right:4px;transform:rotate(90deg) translate(-50%);color:#c0c4cc;cursor:pointer;padding:4px;border-radius:2px}.ea-table .theader-th-cell .cell-icon-menu:hover{color:#303133;background-color:#e4e7ed}.ea-table .ea-table__footer{display:flex;justify-content:space-between}.ea-table .ea-table__footer .ea-table__footer-right{margin-left:auto;padding-right:0}.ea-table .ea-table__footer>*{margin-top:12px}.ea-table .column-transition-active{opacity:.33}.ea-table .el-button>i{min-width:12px}.ea-table .more-btn>i{transform:rotate(-90deg)}.el-popover.ea-popover-no-padding{padding:8px 0;min-width:100px}.el-popover.ea-popover-no-padding.dense{margin-top:0;margin-bottom:0;min-width:70px}.more-btn-panel__item:hover{background-color:#ebeef5}.more-btn-panel__item .el-button{padding:8px 12px;width:100%;text-align:left}.ea-zoom-in-top-enter-active,.ea-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.ea-zoom-in-top-enter,.ea-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ea-data-table .edt-row{display:flex}.ea-data-table .edt-row .edt-cell{padding:0 8px;flex:0 0 auto;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.ea-data-table .edt-row.edt-header{background-color:#f2f6fc;color:#303133}.ea-data-table--border{border:1px solid #E4E7ED}.ea-data-table--border .edt-row .edt-cell{border-bottom:1px solid #E4E7ED;border-left:1px solid #E4E7ED}.ea-data-table--border .edt-row .edt-cell:first-child{border-left:0}.ea-data-table--border .edt-row:last-child .edt-cell{border-bottom:0}.ea-data-table .loading-text{color:#909399;text-align:center;font-size:inherit}.el-dialog.ea-modal.is-closing{margin:0 0 50px!important}.el-dialog.ea-modal.is-fullscreen{border-radius:0;margin:0}.el-dialog.ea-modal .el-dialog__header{color:#555;font-size:18px}.el-dialog.ea-modal .el-dialog__header .el-dialog__title{color:inherit;font-size:inherit}.ea-button-tooltip+.ea-button-tooltip{margin-left:10px}td .ea-button-tooltip+.ea-button-tooltip{margin-left:4px}td .ea-button-tooltip+.ea-button-tooltip.text{margin-left:10px}td .el-button [class*=el-icon-]+span{margin-left:2px}.el-button.ea-button.mini-rect-btn{padding:7px;border:0}.el-button.ea-button.mini-rect-btn [class^=design-]{margin-right:0}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary{background-color:#409eff26;color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus{background-color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success{background-color:#67c23a26;color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus{background-color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info{background-color:#90939926;color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus{background-color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning{background-color:#e6a23c26;color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus{background-color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger{background-color:#f56c6c26;color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus{background-color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus i{color:#fff}.ea-split-container{display:flex}.ea-split-container.is-down{user-select:none}.ea-split-container .sc-left,.ea-split-container .sc-right{flex-grow:1;flex-shrink:1}.ea-split-container .sc-center{flex-grow:0;flex-shrink:0;position:relative}.ea-split-container .sc-bamboo{width:8px;height:100%;border:1px solid #DCDEE2;border-top:none;border-bottom:none;background-color:#f8f8f9;cursor:col-resize;user-select:none;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 16px}.ea-split-container .sc-bamboo .sc-texture{width:4px;height:1px;background:rgba(23,35,61,.25);margin-top:3px}.ea-split-container .sc-on-bamboo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;display:flex;justify-content:center;align-items:center}.ea-tree .ea-tree-real .el-tree-node>.el-tree-node__content{border-radius:4px}.ea-tree .ea-tree-real .el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#409eff1a}.ea-list .loading-text{color:#909399;text-align:center;font-size:inherit}.ea-desc{font-size:14px}.ea-desc__title{font-size:16px;margin-bottom:12px}.ea-desc__list{display:flex;flex-wrap:wrap}.ea-desc .item{line-height:24px;margin-bottom:10px;flex:0 0 auto}.ea-desc .item .item-label{float:left;text-align:right;padding-right:8px;color:#909399}.ea-desc .item .item-value{word-break:break-all;overflow:hidden}.ea-desc .item .item-value .value-no-wrap{height:48px;overflow:hidden;position:relative}.ea-desc .item .item-value .value-no-wrap .click-see-more{position:absolute;right:0;bottom:0;height:24px;padding-left:30px;padding-right:4px;background-image:linear-gradient(to right,transparent 0%,#fff 20%,#fff 100%);cursor:pointer;color:#409eff;user-select:none}.ea-number .el-input__inner{text-align:left}.file-upload-dialog .el-upload,.file-upload-dialog .el-upload .el-upload-dragger{width:100%}.file-upload-dialog .el-upload-list .el-upload-list__item{border:1px dashed #aaa}.file-upload-dialog .el-upload-list .el-upload-list__item .el-icon-close{display:inline-block}.file-upload-dialog .el-list-enter,.file-upload-dialog .el-list-enter-active,.file-upload-dialog .el-list-enter-to,.file-upload-dialog .el-list-leave,.file-upload-dialog .el-list-leave-active,.file-upload-dialog .el-list-leave-to{-webkit-transition:none!important;transition:none!important}.ea-switch-mini .el-switch__core{width:30px!important;height:16px}.ea-switch-mini .el-switch__core:after{width:12px;height:12px;left:2px}.ea-switch-mini.is-checked .el-switch__core:after{margin-left:-13px}.conf-header{border-bottom:1px solid #DDD;padding-bottom:10px;margin-bottom:10px}.conf-body{width:300px}.dense-much .el-form-item{margin-bottom:8px!important}.vjs-table{position:relative;overflow:hidden}.vjs-header{position:absolute;top:0;border:1px solid #E4E7ED;border-bottom:0}.vjs-body{border:1px solid #E4E7ED}.vjs-row{height:32px;line-height:32px;display:flex;justify-content:flex-start;position:relative}.vjs-row.odd{background-color:#f8f8f8}.vjs-row:not(.vjs-header):hover{background-color:#ebeef5}.vjs-row .vjs-cell{flex:0 0 auto;height:100%;font-size:14px;box-sizing:border-box;padding:0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vjs-row .vjs-cell>.el-tag{vertical-align:1px}.vjs-row .vjs-cell.vjs-cell-flex{flex-grow:1}.vjs-row .vjs-cell.error{border:1px solid red}.vjs-row .vjs-cell>.vjs-checkbox{position:absolute;top:0}.vjs-row .vjs-icon{cursor:pointer;position:absolute;height:100%;color:#ccc;display:flex;align-items:center;z-index:1}.vjs-row .vjs-icon:hover{color:#333}.vjs-row .vjs-temp{color:#909399}.vjs-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#909399;border-color:#909399}.cell-text{height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.cell-text .cell-placeholder{color:#c0c4cc}.cell-input{display:block;height:30px;line-height:30px;font-size:inherit;color:inherit;font-family:inherit;margin-left:-4.7px}.cell-input .el-input__inner{border-radius:0;font-size:inherit;color:inherit;font-family:inherit;padding-left:4px}.cell-select{cursor:pointer}.cell-select:not(.is-disabled):hover{border-width:0;border-bottom-width:1.5px;border-style:solid}.cell-select.is-disabled{cursor:default}.cell-required{width:100%;height:100%;display:flex;align-items:center}.cell-required .box{width:20px;height:20px;box-sizing:border-box;border-radius:4px;cursor:pointer;user-select:none;display:flex;justify-content:center;align-items:center;padding-top:4px;color:#ddd;background-color:#00000005}.cell-required .box:not(.is-disabled):hover{color:#999;background-color:#0000000d}.cell-required .box.is-disabled{cursor:default;color:transparent;background-color:transparent}.cell-required .box.is-required,.cell-required .box.is-required:hover{color:red;background-color:#00000014}.cell-action{width:80px}.cell-action i{cursor:pointer;font-size:16px;padding:4px;border-radius:4px}.cell-action i:hover{background-color:#0000001a}.action-popover{margin:0!important}.ea-blue{color:#409eff}.ea-purple{color:#ee46bc!important}.ea-success{color:#67c23a}.ea-danger{color:#f56c6c}.ea-info{color:#909399}.ea-placeholder{color:#c0c4cc!important}.ea-popover-no-margin{margin:0!important}@font-face{font-family:eafont;src:url(data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAQYAAsAAAAACMAAAAPLAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDHAqFDIRVATYCJAMQCwoABCAFhE8HQBu9BxEVnLHIfibwpknuXkitybkhDKpb3+RDeb1vMhOsa34zn2ST3rpbnaQ7jZOwi3OelIhQI3mLHn0haTkDFEZf6SdAAFkA/M/ltDHxABvfAoC7xti0t5dlvehe2rbAxhiUbfFAIsy8BXYOdTBB14AA0MJNMC4yOjETxsayzmZMwiDhCeDmksa6mjJIdwNYCkIgqYW8KxnIUvAAt4C7BGCJ+XnyER5JAAeeQtontTqqEsfe4I0bVawK6CPoOBDgaA4AD4ACcOqZidSmO8pB7bATCm1ckMEHOCiBA2ptM75xs1pZNCqFJDsBrvSfRwRICj1SvSIUeAOVBxzwxiiIU7qhaAUUTF8hARgJuAwQV0iaKfUsFCCNNxhGG7SjtYaxY4lGRgbuZDNvZTJvZzHv5riIWmmOGkzUuxFVl27lVB+9q7OkJEK51XPw7m2JcOs9dwL05isn1JNXdWXmfZuUzfstB7eqWw5k6s2HlMM6wyq1Ur1793aQwXL5uHLsklZ/6NadO2U+61H1yA23UsnOr6+wtChXH3JzL0iKIqt5uRoraFeuoKtaqxwuXs18qMz+If6j7B2qsiLTw2vHNIy5EZqYFJ8wvXp6reO9qIzItHL7SvuHY/ODcgM9ijxLm3N3HC3PcEt1dU11yygPdexWfv+Wuh0fmn/+fNVmI0fPkm3aUP9WzjNlTw6OGJcrozrKqO8IucXmW0liyTebp7aTH2z22fzAhy47ZeszcZbHrIk+a4L33vHyySlyqtG1ZtO2tHrQABahETOU7ZxfsjesIuV4ZLq7Z3rkXFJQo3Ome47HpVDPqpj+GrkyMLBSrvlKKHWuDKyRv1Ja3NHQyZE+ckXTJKc/WgEA1hN0Fw03WR/pMjpOe4ySKuya+Q6+fCl7UmKSv0k6BgB4ydgfclmPMZQTHnNhbsEVoizMWZJ9PQBjcRJVdNU5MiHdgxwArWwGLok4MMqTOlSjORsgEDDaBQ4iJgKFgBlERrUBHjo4yQRZ5YughaOg9TqMVgsKwjQAbAwAeAi9jcAx2gyU3kEio54F3jg/EOi9B63s/246NiVcehQjapAbOMWZFPuIQs98opmi6D1CHPXFfnCcoS6qQOyBGfuiC4bZNONIQD0nuBc4K0aGtmePaizsOLbnsqS4mxSK0+7SoxhRA7kBpziTzo/XCHfcE80URbmiOYjfcD847g5qhSqV+FBkKtjy/GE2jXEkQJ98TuDeiizKYQZt/DCPaizYEsH2rKRSlFdRjEmVNmkNgJZ0EIsjlDDCQ9oNQkbUp1VJPSXucbcDAA==) format("woff2")}.eafont{font-family:eafont;font-style:normal;font-size:16px;color:#909399;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ea-icon-disabled:before{content:"\e630"}.ea-icon-conf:before{content:"\e600"}.ea-icon-more:before{content:"\e60e"}.eafont.ea-icon-conf.has{color:#000}.ea-data-tree-body.ea-data-tree-body__border{border:1px solid #E4E7ED}.ea-data-tree-row{display:flex;justify-content:flex-start;position:relative;padding-left:20px;box-sizing:border-box}.ea-data-tree-row.odd{background-color:#f8f8f8}.ea-data-tree-row:hover{background-color:#ebeef5}.ea-data-tree-row .ea-data-tree-cell{flex:0 0 auto;height:100%;font-size:14px;box-sizing:border-box;padding:0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.ea-data-tree-row .ea-data-tree-cell>.ea-data-tree-checkbox{position:absolute;top:0}.ea-data-tree-row .ea-data-tree-icon{cursor:pointer;position:absolute;height:100%;color:#ccc;display:flex;align-items:center;z-index:1}.ea-data-tree-row .ea-data-tree-icon:hover{color:#333}.ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:#909399;border-color:#909399}.ea-data-tree-empty{display:flex;justify-content:center;align-items:center;color:#909399}.ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
package/lib/style.scss CHANGED
@@ -11,81 +11,13 @@ $--color-border-base: #DCDFE6 !default;
11
11
  $--color-border-light: #E4E7ED !default;
12
12
  $--color-border-lighter: #EBEEF5 !default;
13
13
  $--color-border-extralight: #F2F6FC !default;
14
- .ea-select {
15
- display: inline-block;
16
- position: relative;
17
- .el-select {
18
- width: 100%;
19
- }
20
- .async-loading.el-icon-loading {
21
- position: absolute;
22
- top: 10px;
23
- right: 28px;
24
- color: #999;
25
- }
26
- }
27
- .ea-select-popover {
28
- .el-select-dropdown__item {
29
- display: flex;
30
- justify-content: space-between;
31
- .select-item-value {
32
- overflow: hidden;
33
- text-overflow: ellipsis;
34
- }
35
- .select-item-desc {
36
- overflow: hidden;
37
- text-overflow: ellipsis;
38
- color: #8492a6;
39
- margin-left: 8px;
40
- }
41
- }
42
- }
43
-
44
- .ea-data-table {
45
- .edt-row {
46
- display: flex;
47
- .edt-cell {
48
- padding: 0 8px;
49
- flex: 0 0 auto;
50
- box-sizing: border-box;
51
- overflow: hidden;
52
- text-overflow: ellipsis;
53
- white-space: nowrap;
54
- word-break: break-all;
55
- }
56
- &.edt-header {
57
- background-color: $--color-border-extralight;
58
- color: $--color-primary-text;
59
- }
60
- }
61
- &--border {
62
- border: 1px solid $--color-border-light;
63
- .edt-row {
64
- .edt-cell {
65
- border-bottom: 1px solid $--color-border-light;
66
- border-left: 1px solid $--color-border-light;
67
- &:first-child {
68
- border-left: 0;
69
- }
70
- }
71
- &:last-child .edt-cell{
72
- border-bottom: 0;
73
- }
74
- }
75
- }
76
- .loading-text {
77
- color: $--color-secondary-text;
78
- text-align: center;
79
- font-size: inherit;
80
- }
81
- }
82
-
14
+ $--background-color-base: #F5F7FA !default;
83
15
  // table
84
16
  .ea-table {
85
17
  // 表格头部样式美化
86
18
  .el-table {
87
19
  th {
88
- background-color: $--color-border-extralight;
20
+ background-color: $--background-color-base;
89
21
  color: $--color-primary-text;
90
22
  .cell {
91
23
  min-height: 30px;
@@ -103,7 +35,7 @@ $--color-border-extralight: #F2F6FC !default;
103
35
  }
104
36
  &.el-table--small {
105
37
  td, th {
106
- height: 48px;
38
+ height: 50px;
107
39
  }
108
40
  }
109
41
  &.is-dense {
@@ -197,6 +129,105 @@ $--color-border-extralight: #F2F6FC !default;
197
129
  transform: scaleY(0);
198
130
  }
199
131
 
132
+ .ea-select {
133
+ display: inline-block;
134
+ position: relative;
135
+ .el-select {
136
+ width: 100%;
137
+ }
138
+ .async-loading.el-icon-loading {
139
+ position: absolute;
140
+ top: 10px;
141
+ right: 28px;
142
+ color: #999;
143
+ }
144
+ }
145
+ .ea-select-popover {
146
+ .el-select-dropdown__item {
147
+ display: flex;
148
+ justify-content: space-between;
149
+ .select-item-value {
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ }
153
+ .select-item-desc {
154
+ overflow: hidden;
155
+ text-overflow: ellipsis;
156
+ color: #8492a6;
157
+ margin-left: 8px;
158
+ }
159
+ }
160
+ }
161
+
162
+ .el-dialog.ea-modal {
163
+ &.is-closing {
164
+ margin: 0 0 50px !important;
165
+ }
166
+ &.is-fullscreen {
167
+ border-radius: 0;
168
+ margin: 0;
169
+ }
170
+ .el-dialog__header {
171
+ color: #555;
172
+ font-size: 18px;
173
+ .el-dialog__title {
174
+ color: inherit;
175
+ font-size: inherit;
176
+ }
177
+ }
178
+ }
179
+
180
+ .ea-data-table {
181
+ .edt-row {
182
+ display: flex;
183
+ .edt-cell {
184
+ padding: 0 8px;
185
+ flex: 0 0 auto;
186
+ box-sizing: border-box;
187
+ overflow: hidden;
188
+ text-overflow: ellipsis;
189
+ white-space: nowrap;
190
+ word-break: break-all;
191
+ }
192
+ &.edt-header {
193
+ background-color: $--color-border-extralight;
194
+ color: $--color-primary-text;
195
+ }
196
+ }
197
+ &--border {
198
+ border: 1px solid $--color-border-light;
199
+ .edt-row {
200
+ .edt-cell {
201
+ border-bottom: 1px solid $--color-border-light;
202
+ border-left: 1px solid $--color-border-light;
203
+ &:first-child {
204
+ border-left: 0;
205
+ }
206
+ }
207
+ &:last-child .edt-cell{
208
+ border-bottom: 0;
209
+ }
210
+ }
211
+ }
212
+ .loading-text {
213
+ color: $--color-secondary-text;
214
+ text-align: center;
215
+ font-size: inherit;
216
+ }
217
+ }
218
+
219
+ .ea-tree {
220
+ .ea-tree-real {
221
+ .el-tree-node > .el-tree-node__content{
222
+ border-radius: 4px;
223
+ }
224
+ .el-tree-node.is-current > .el-tree-node__content {
225
+ color: $--color-primary;
226
+ background-color: rgba($--color-primary, 0.1);
227
+ }
228
+ }
229
+ }
230
+
200
231
  .ea-button-tooltip + .ea-button-tooltip {
201
232
  margin-left: 10px;
202
233
  }
@@ -262,37 +293,11 @@ td {
262
293
  }
263
294
  }
264
295
 
265
- .ea-number .el-input__inner {
266
- text-align: left;
267
- }
268
-
269
- .el-dialog.ea-modal {
270
- &.is-closing {
271
- margin: 0 0 50px !important;
272
- }
273
- &.is-fullscreen {
274
- border-radius: 0;
275
- margin: 0;
276
- }
277
- .el-dialog__header {
278
- color: #555;
279
- font-size: 18px;
280
- .el-dialog__title {
281
- color: inherit;
282
- font-size: inherit;
283
- }
284
- }
285
- }
286
-
287
- .ea-tree {
288
- .ea-tree-real {
289
- .el-tree-node > .el-tree-node__content{
290
- border-radius: 4px;
291
- }
292
- .el-tree-node.is-current > .el-tree-node__content {
293
- color: $--color-primary;
294
- background-color: rgba($--color-primary, 0.1);
295
- }
296
+ .ea-list {
297
+ .loading-text {
298
+ color: $--color-secondary-text;
299
+ text-align: center;
300
+ font-size: inherit;
296
301
  }
297
302
  }
298
303
 
@@ -347,60 +352,8 @@ td {
347
352
  }
348
353
  }
349
354
 
350
- .ea-data-tree-body {
351
- &.ea-data-tree-body__border {
352
- border: 1px solid $--color-border-light;
353
- }
354
- }
355
-
356
- .ea-data-tree-row {
357
- display: flex;
358
- justify-content: flex-start;
359
- position: relative;
360
- padding-left: 20px;
361
- box-sizing: border-box;
362
- &.odd { background-color: #F8F8F8; }
363
- &:hover { background-color: #EBEEF5; }
364
- .ea-data-tree-cell {
365
- flex: 0 0 auto;
366
- height: 100%;
367
- font-size: 14px;
368
- box-sizing: border-box;
369
- padding: 0 8px;
370
- position: relative;
371
- overflow: hidden;
372
- text-overflow: ellipsis;
373
- white-space: nowrap;
374
- word-break: break-all;
375
- & > .ea-data-tree-checkbox {
376
- position: absolute;
377
- top: 0;
378
- }
379
- }
380
- .ea-data-tree-icon {
381
- cursor: pointer;
382
- position: absolute;
383
- height: 100%;
384
- color: #CCC;
385
- display: flex;
386
- align-items: center;
387
- z-index: 1;
388
- &:hover {
389
- color: #333;
390
- }
391
- }
392
- }
393
-
394
- .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
395
- background-color: $--color-secondary-text;
396
- border-color: $--color-secondary-text;
397
- }
398
-
399
- .ea-data-tree-empty {
400
- display: flex;
401
- justify-content: center;
402
- align-items: center;
403
- color: $--color-secondary-text;
355
+ .ea-number .el-input__inner {
356
+ text-align: left;
404
357
  }
405
358
 
406
359
  .ea-desc {
@@ -474,14 +427,62 @@ td {
474
427
  }
475
428
  }
476
429
 
477
- .ea-list {
478
- .loading-text {
479
- color: $--color-secondary-text;
480
- text-align: center;
481
- font-size: inherit;
430
+ .ea-data-tree-body {
431
+ &.ea-data-tree-body__border {
432
+ border: 1px solid $--color-border-light;
482
433
  }
483
434
  }
484
435
 
436
+ .ea-data-tree-row {
437
+ display: flex;
438
+ justify-content: flex-start;
439
+ position: relative;
440
+ padding-left: 20px;
441
+ box-sizing: border-box;
442
+ &.odd { background-color: #F8F8F8; }
443
+ &:hover { background-color: #EBEEF5; }
444
+ .ea-data-tree-cell {
445
+ flex: 0 0 auto;
446
+ height: 100%;
447
+ font-size: 14px;
448
+ box-sizing: border-box;
449
+ padding: 0 8px;
450
+ position: relative;
451
+ overflow: hidden;
452
+ text-overflow: ellipsis;
453
+ white-space: nowrap;
454
+ word-break: break-all;
455
+ & > .ea-data-tree-checkbox {
456
+ position: absolute;
457
+ top: 0;
458
+ }
459
+ }
460
+ .ea-data-tree-icon {
461
+ cursor: pointer;
462
+ position: absolute;
463
+ height: 100%;
464
+ color: #CCC;
465
+ display: flex;
466
+ align-items: center;
467
+ z-index: 1;
468
+ &:hover {
469
+ color: #333;
470
+ }
471
+ }
472
+ }
473
+
474
+ .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
475
+ background-color: $--color-secondary-text;
476
+ border-color: $--color-secondary-text;
477
+ }
478
+
479
+ .ea-data-tree-empty {
480
+ display: flex;
481
+ justify-content: center;
482
+ align-items: center;
483
+ color: $--color-secondary-text;
484
+ }
485
+
485
486
  .vjs-table {
486
487
  position: relative;
487
488
  overflow: hidden;
@@ -771,6 +772,38 @@ td {
771
772
  margin-bottom: 8px !important;
772
773
  }
773
774
 
775
+ .ea-switch-mini {
776
+ .el-switch__core {
777
+ width: 30px !important;
778
+ height: 16px;
779
+ &::after {
780
+ width: 12px;
781
+ height: 12px;
782
+ left: 2px;
783
+ }
784
+ }
785
+ &.is-checked .el-switch__core::after {
786
+ margin-left: -13px;
787
+ }
788
+ }
789
+
790
+ .ea-form .el-form-item__content {
791
+ & > .el-input-number,
792
+ & > .el-input,
793
+ & > .ea-select,
794
+ & > .el-select {
795
+ width: 100%;
796
+ }
797
+ }
798
+ .ea-form .el-form-item.hidden-label {
799
+ > .el-form-item__label {
800
+ display: none;
801
+ }
802
+ > .el-form-item__content {
803
+ width: 100%;
804
+ }
805
+ }
806
+
774
807
  .ea-select-container {
775
808
  display: flex;
776
809
  justify-content: flex-start;
@@ -810,35 +843,3 @@ td {
810
843
  }
811
844
  }
812
845
  }
813
-
814
- .ea-form .el-form-item__content {
815
- & > .el-input-number,
816
- & > .el-input,
817
- & > .ea-select,
818
- & > .el-select {
819
- width: 100%;
820
- }
821
- }
822
- .ea-form .el-form-item.hidden-label {
823
- > .el-form-item__label {
824
- display: none;
825
- }
826
- > .el-form-item__content {
827
- width: 100%;
828
- }
829
- }
830
-
831
- .ea-switch-mini {
832
- .el-switch__core {
833
- width: 30px !important;
834
- height: 16px;
835
- &::after {
836
- width: 12px;
837
- height: 12px;
838
- left: 2px;
839
- }
840
- }
841
- &.is-checked .el-switch__core::after {
842
- margin-left: -13px;
843
- }
844
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",