element-assits 0.0.55 → 0.0.56

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
@@ -272,11 +272,18 @@ el-scrollbar 衍生,优化样式
272
272
  |checkbox|是否显示多选框|Boolean|false|
273
273
  |disableCheckbox|是否禁止多选框|Boolean|false|
274
274
  |noDataText|无数据时的文本|String|暂无数据|
275
+ |border|是否显示边框|Boolean|false|
276
+ |stripe|是否需要斑马纹|Boolean|false|
275
277
  #### methods
276
278
  | 方法名 | 说明 | 参数 |
277
279
  |:---|:---|:---|
278
280
  | getChecked | 获取选中项 | 无 |
279
281
  | setChecked | 设置选中项 | (树)数据(以`props.value`匹配) |
282
+ #### slots
283
+ | 插槽名 | 默认值 | 说明 |
284
+ |:---|:---|:---|
285
+ | default | 单项(行) | 自定义行内容,跟随枝干 |
286
+ | row | 单项(行) | 自定义行内容,脱离枝干 |
280
287
 
281
288
  ### 列表 EaList
282
289
  #### props
package/lib/index.js CHANGED
@@ -7803,7 +7803,7 @@ const eS = {
7803
7803
  var tS = function() {
7804
7804
  var t = this, i = t._self._c;
7805
7805
  return i("EaScrollbar", { class: { "ea-data-tree-body": 1, "ea-data-tree-body__border": t.border }, style: { height: t.endHeight + "px" } }, [i("EaVirtualScroll", { attrs: { "enable-virtual-scroll": !0, options: t.list, "item-size": t.itemSize }, scopedSlots: t._u([{ key: "item", fn: function({ item: o, index: u }) {
7806
- 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: { "ea-data-tree-row": 1, odd: t.stripe && u % 2 } }, [o.__state.hasChildren ? i("i", { class: {
7806
+ 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: { "ea-data-tree-row": 1, odd: t.stripe && u % 2 }, style: { height: t.itemSize + "px", lineHeight: t.itemSize + "px" } }, [o.__state.hasChildren ? i("i", { class: {
7807
7807
  "ea-data-tree-icon": 1,
7808
7808
  ["el-icon-caret-" + ["right", "bottom"][Number(o.__state.isExpanded)]]: 1
7809
7809
  }, style: { left: o.__state.level * 20 + "px" }, on: { click: function(d) {
@@ -7814,7 +7814,7 @@ var tS = function() {
7814
7814
  t.$set(o.__state, "checked", d);
7815
7815
  }, expression: "item.__state.checked" } }) : t._e()], 1) : t._e(), t._t("default", function() {
7816
7816
  return [i("span", [t._v(t._s(o[t.endProps.label]))])];
7817
- }, { item: o, index: u })], 2)]);
7817
+ }, { item: o, index: u })], 2), t._t("row", null, { item: o, index: u })], 2);
7818
7818
  } }], null, !0) }), !t.list || !t.list.length ? i("div", { staticClass: "ea-data-tree-empty", style: { height: t.endHeight + "px" } }, [t._v(" " + t._s(t.noDataText) + " ")]) : t._e()], 1);
7819
7819
  }, nS = [], rS = /* @__PURE__ */ X(
7820
7820
  eS,
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{height:32px;line-height:32px;display:flex;justify-content:flex-start;position:relative;padding-left:20px}.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:#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}
package/lib/style.scss CHANGED
@@ -41,24 +41,6 @@ $--color-border-extralight: #F2F6FC !default;
41
41
  }
42
42
  }
43
43
 
44
- .el-dialog.ea-modal {
45
- &.is-closing {
46
- margin: 0 0 50px !important;
47
- }
48
- &.is-fullscreen {
49
- border-radius: 0;
50
- margin: 0;
51
- }
52
- .el-dialog__header {
53
- color: #555;
54
- font-size: 18px;
55
- .el-dialog__title {
56
- color: inherit;
57
- font-size: inherit;
58
- }
59
- }
60
- }
61
-
62
44
  .ea-data-table {
63
45
  .edt-row {
64
46
  display: flex;
@@ -98,6 +80,123 @@ $--color-border-extralight: #F2F6FC !default;
98
80
  }
99
81
  }
100
82
 
83
+ // table
84
+ .ea-table {
85
+ // 表格头部样式美化
86
+ .el-table {
87
+ th {
88
+ background-color: $--color-border-extralight;
89
+ color: $--color-primary-text;
90
+ .cell {
91
+ min-height: 30px;
92
+ display: flex;
93
+ justify-content: flex-start;
94
+ align-items: center;
95
+ }
96
+ &.is-center .cell { justify-content: center }
97
+ &.is-right .cell { justify-content: flex-end }
98
+ }
99
+ td, th {
100
+ .cell {
101
+ line-height: 1.2;
102
+ }
103
+ }
104
+ &.el-table--small {
105
+ td, th {
106
+ height: 48px;
107
+ }
108
+ }
109
+ &.is-dense {
110
+ td, th {
111
+ height: 32px;
112
+ padding: 2px 0;
113
+ .el-button {
114
+ padding-top: 0;
115
+ padding-bottom: 0;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ // 列的更多菜单项
121
+ .theader-th-cell {
122
+ .cell-icon-menu {
123
+ position: absolute;
124
+ top: 50%;
125
+ right: 4px;
126
+ transform: rotate(90deg) translateX(-50%);
127
+ color: $--color-placeholder-text;
128
+ cursor: pointer;
129
+ padding: 4px;
130
+ border-radius: 2px;
131
+ &:hover {
132
+ color: $--color-primary-text;
133
+ background-color: $--color-border-light;
134
+ }
135
+ }
136
+ }
137
+ // 表格底部
138
+ .ea-table__footer {
139
+ display: flex;
140
+ justify-content: space-between;
141
+ .ea-table__footer-right {
142
+ margin-left: auto;
143
+ padding-right: 0;
144
+ }
145
+ > * {
146
+ margin-top: 12px;
147
+ }
148
+ }
149
+
150
+ .column-transition-active {
151
+ opacity: 0.33;
152
+ }
153
+
154
+ .el-button > i {
155
+ min-width: 12px;
156
+ }
157
+
158
+ .more-btn > i{
159
+ transform: rotate(-90deg);
160
+ }
161
+ }
162
+
163
+ // table - popover
164
+ .el-popover.ea-popover-no-padding {
165
+ padding: 8px 0;
166
+ min-width: 100px;
167
+ &.dense {
168
+ margin-top: 0px;
169
+ margin-bottom: 0px;
170
+ min-width: 70px;
171
+ }
172
+ }
173
+
174
+ .more-btn-panel {
175
+ &__item {
176
+ &:hover {
177
+ background-color: $--color-border-lighter;
178
+ }
179
+ .el-button {
180
+ padding: 8px 12px;
181
+ width: 100%;
182
+ text-align: left;
183
+ }
184
+ }
185
+ }
186
+
187
+ .ea-zoom-in-top-enter-active,
188
+ .ea-zoom-in-top-leave-active {
189
+ opacity: 1;
190
+ transform: scaleY(1);
191
+ transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
192
+ transform-origin: center top;
193
+ }
194
+ .ea-zoom-in-top-enter,
195
+ .ea-zoom-in-top-leave-active {
196
+ opacity: 0;
197
+ transform: scaleY(0);
198
+ }
199
+
101
200
  .ea-button-tooltip + .ea-button-tooltip {
102
201
  margin-left: 10px;
103
202
  }
@@ -163,6 +262,40 @@ td {
163
262
  }
164
263
  }
165
264
 
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
+ }
297
+ }
298
+
166
299
  .ea-split-container {
167
300
  display: flex;
168
301
  &.is-down {
@@ -214,28 +347,60 @@ td {
214
347
  }
215
348
  }
216
349
 
217
- .ea-tree {
218
- .ea-tree-real {
219
- .el-tree-node > .el-tree-node__content{
220
- border-radius: 4px;
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;
221
378
  }
222
- .el-tree-node.is-current > .el-tree-node__content {
223
- color: $--color-primary;
224
- background-color: rgba($--color-primary, 0.1);
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;
225
390
  }
226
391
  }
227
392
  }
228
393
 
229
- .ea-list {
230
- .loading-text {
231
- color: $--color-secondary-text;
232
- text-align: center;
233
- font-size: inherit;
234
- }
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;
235
397
  }
236
398
 
237
- .ea-number .el-input__inner {
238
- text-align: left;
399
+ .ea-data-tree-empty {
400
+ display: flex;
401
+ justify-content: center;
402
+ align-items: center;
403
+ color: $--color-secondary-text;
239
404
  }
240
405
 
241
406
  .ea-desc {
@@ -309,6 +474,14 @@ td {
309
474
  }
310
475
  }
311
476
 
477
+ .ea-list {
478
+ .loading-text {
479
+ color: $--color-secondary-text;
480
+ text-align: center;
481
+ font-size: inherit;
482
+ }
483
+ }
484
+
312
485
  .vjs-table {
313
486
  position: relative;
314
487
  overflow: hidden;
@@ -508,216 +681,6 @@ td {
508
681
  .ea-icon-more:before { content: "\e60e" }
509
682
  .eafont.ea-icon-conf.has { color: #000 }
510
683
 
511
- .ea-data-tree-body {
512
- &.ea-data-tree-body__border {
513
- border: 1px solid $--color-border-light;
514
- }
515
- }
516
-
517
- .ea-data-tree-row {
518
- height: 32px;
519
- line-height: 32px;
520
- display: flex;
521
- justify-content: flex-start;
522
- position: relative;
523
- padding-left: 20px;
524
- &.odd { background-color: #F8F8F8; }
525
- &:hover { background-color: #EBEEF5; }
526
- .ea-data-tree-cell {
527
- flex: 0 0 auto;
528
- height: 100%;
529
- font-size: 14px;
530
- box-sizing: border-box;
531
- padding: 0 8px;
532
- position: relative;
533
- overflow: hidden;
534
- text-overflow: ellipsis;
535
- white-space: nowrap;
536
- word-break: break-all;
537
- & > .ea-data-tree-checkbox {
538
- position: absolute;
539
- top: 0;
540
- }
541
- }
542
- .ea-data-tree-icon {
543
- cursor: pointer;
544
- position: absolute;
545
- height: 100%;
546
- color: #CCC;
547
- display: flex;
548
- align-items: center;
549
- z-index: 1;
550
- &:hover {
551
- color: #333;
552
- }
553
- }
554
- }
555
-
556
- .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
557
- background-color: $--color-secondary-text;
558
- border-color: $--color-secondary-text;
559
- }
560
-
561
- .ea-data-tree-empty {
562
- display: flex;
563
- justify-content: center;
564
- align-items: center;
565
- color: $--color-secondary-text;
566
- }
567
-
568
- // table
569
- .ea-table {
570
- // 表格头部样式美化
571
- .el-table {
572
- th {
573
- background-color: $--color-border-extralight;
574
- color: $--color-primary-text;
575
- .cell {
576
- min-height: 30px;
577
- display: flex;
578
- justify-content: flex-start;
579
- align-items: center;
580
- }
581
- &.is-center .cell { justify-content: center }
582
- &.is-right .cell { justify-content: flex-end }
583
- }
584
- td, th {
585
- .cell {
586
- line-height: 1.2;
587
- }
588
- }
589
- &.el-table--small {
590
- td, th {
591
- height: 48px;
592
- }
593
- }
594
- &.is-dense {
595
- td, th {
596
- height: 32px;
597
- padding: 2px 0;
598
- .el-button {
599
- padding-top: 0;
600
- padding-bottom: 0;
601
- }
602
- }
603
- }
604
- }
605
- // 列的更多菜单项
606
- .theader-th-cell {
607
- .cell-icon-menu {
608
- position: absolute;
609
- top: 50%;
610
- right: 4px;
611
- transform: rotate(90deg) translateX(-50%);
612
- color: $--color-placeholder-text;
613
- cursor: pointer;
614
- padding: 4px;
615
- border-radius: 2px;
616
- &:hover {
617
- color: $--color-primary-text;
618
- background-color: $--color-border-light;
619
- }
620
- }
621
- }
622
- // 表格底部
623
- .ea-table__footer {
624
- display: flex;
625
- justify-content: space-between;
626
- .ea-table__footer-right {
627
- margin-left: auto;
628
- padding-right: 0;
629
- }
630
- > * {
631
- margin-top: 12px;
632
- }
633
- }
634
-
635
- .column-transition-active {
636
- opacity: 0.33;
637
- }
638
-
639
- .el-button > i {
640
- min-width: 12px;
641
- }
642
-
643
- .more-btn > i{
644
- transform: rotate(-90deg);
645
- }
646
- }
647
-
648
- // table - popover
649
- .el-popover.ea-popover-no-padding {
650
- padding: 8px 0;
651
- min-width: 100px;
652
- &.dense {
653
- margin-top: 0px;
654
- margin-bottom: 0px;
655
- min-width: 70px;
656
- }
657
- }
658
-
659
- .more-btn-panel {
660
- &__item {
661
- &:hover {
662
- background-color: $--color-border-lighter;
663
- }
664
- .el-button {
665
- padding: 8px 12px;
666
- width: 100%;
667
- text-align: left;
668
- }
669
- }
670
- }
671
-
672
- .ea-zoom-in-top-enter-active,
673
- .ea-zoom-in-top-leave-active {
674
- opacity: 1;
675
- transform: scaleY(1);
676
- transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
677
- transform-origin: center top;
678
- }
679
- .ea-zoom-in-top-enter,
680
- .ea-zoom-in-top-leave-active {
681
- opacity: 0;
682
- transform: scaleY(0);
683
- }
684
-
685
- .ea-form .form-group-title {
686
- position: relative;
687
- height: 32px;
688
- margin-bottom: 22px;
689
- > span {
690
- position: absolute;
691
- top: 0;
692
- left: 20%;
693
- padding: 5px 25px;
694
- background-color: #fff;
695
- z-index: 1;
696
- color: $--color-secondary-text;
697
- }
698
- &::after {
699
- content: '';
700
- position: absolute;
701
- top: 50%;
702
- left: 0;
703
- width: 100%;
704
- height: 0;
705
- border-bottom: 1px dashed $--color-border-base;
706
- }
707
- }
708
-
709
- .conf-header {
710
- border-bottom: 1px solid #DDD;
711
- padding-bottom: 10px;
712
- margin-bottom: 10px;
713
- }
714
- .conf-body {
715
- width: 300px;
716
- }
717
- .dense-much .el-form-item {
718
- margin-bottom: 8px !important;
719
- }
720
-
721
684
  .ea-table-modal {
722
685
  overflow: visible;
723
686
  right: unset;
@@ -772,36 +735,40 @@ td {
772
735
  }
773
736
  }
774
737
 
775
- .ea-form .el-form-item__content {
776
- & > .el-input-number,
777
- & > .el-input,
778
- & > .ea-select,
779
- & > .el-select {
780
- width: 100%;
781
- }
782
- }
783
- .ea-form .el-form-item.hidden-label {
784
- > .el-form-item__label {
785
- display: none;
738
+ .ea-form .form-group-title {
739
+ position: relative;
740
+ height: 32px;
741
+ margin-bottom: 22px;
742
+ > span {
743
+ position: absolute;
744
+ top: 0;
745
+ left: 20%;
746
+ padding: 5px 25px;
747
+ background-color: #fff;
748
+ z-index: 1;
749
+ color: $--color-secondary-text;
786
750
  }
787
- > .el-form-item__content {
751
+ &::after {
752
+ content: '';
753
+ position: absolute;
754
+ top: 50%;
755
+ left: 0;
788
756
  width: 100%;
757
+ height: 0;
758
+ border-bottom: 1px dashed $--color-border-base;
789
759
  }
790
760
  }
791
761
 
792
- .ea-switch-mini {
793
- .el-switch__core {
794
- width: 30px !important;
795
- height: 16px;
796
- &::after {
797
- width: 12px;
798
- height: 12px;
799
- left: 2px;
800
- }
801
- }
802
- &.is-checked .el-switch__core::after {
803
- margin-left: -13px;
804
- }
762
+ .conf-header {
763
+ border-bottom: 1px solid #DDD;
764
+ padding-bottom: 10px;
765
+ margin-bottom: 10px;
766
+ }
767
+ .conf-body {
768
+ width: 300px;
769
+ }
770
+ .dense-much .el-form-item {
771
+ margin-bottom: 8px !important;
805
772
  }
806
773
 
807
774
  .ea-select-container {
@@ -843,3 +810,35 @@ td {
843
810
  }
844
811
  }
845
812
  }
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.55",
3
+ "version": "0.0.56",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",