iov-design 2.15.57 → 2.15.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/lib/cascader.js +291 -57
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +306 -61
- package/lib/pagination.js +1 -0
- package/lib/select.js +6 -2
- package/lib/table-column.js +6 -0
- package/lib/table.js +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/package.json +1 -1
- package/packages/cascader/src/cascader.vue +125 -29
- package/packages/pagination/src/pagination.js +1 -0
- package/packages/select/src/select.vue +5 -3
- package/packages/table/src/table-body.js +1 -1
- package/packages/table/src/table-column.js +7 -0
- package/packages/theme-chalk/src/cascader.scss +61 -22
- package/packages/theme-chalk/src/date-picker/picker.scss +1 -1
- package/packages/theme-chalk/src/select.scss +56 -0
- package/packages/theme-chalk/src/table.scss +9 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.el-fade-in-enter-active,.el-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45,.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-date-editor{position:relative;display:inline-block;text-align:left}.el-date-editor .el-input__clear{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-date-editor .el-input__clear:before{margin-right:-12px;color:#777D87;font-size:10px;position:relative;line-height:1}.el-date-editor .el-input__clear:after{border-radius:100%;width:14px;height:14px;background:#E5E6EB}.el-date-editor .el-input__clear:hover:before{color:#FFF}.el-date-editor .el-input__clear:hover:after{background:#777D87}.el-date-editor--dates .el-input__inner{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .el-icon-circle-close{cursor:pointer}.el-date-editor.el-input--prefix .el-input__inner{padding-left:12px}.el-date-editor .el-input__prefix{-webkit-transform:none!important;transform:none!important;left:auto;right:1px}.el-date-editor .el-input__icon{padding:0 8px 0 0;font-size:14px;color:#777D87;line-height:36px;position:absolute;top:0;right:0}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:100%;margin:0;padding:0;width:100%;font-size:14px;color:#212026}.el-date-editor .el-range-input::-webkit-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::-moz-placeholder{color:#C6C7CA}.el-date-editor .el-range-input:-ms-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::-ms-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::placeholder{color:#C6C7CA}.el-date-editor .el-range-separator{margin:0;padding:0 12px;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;text-align:center;font-size:14px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#212026}.el-range-editor.is-disabled,.el-range-editor.is-disabled input{background-color:#F6F7F8;color:#A2A3AA;cursor:not-allowed}.el-range-editor{position:relative}.el-range-editor .el-input-group__prefix-label{padding:0 12px 0 0;font-size:14px}.el-range-editor--medium .el-input-group__prefix-label,.el-range-editor--medium .el-range-input,.el-range-editor--medium .el-range-separator,.el-range-editor--small .el-input-group__prefix-label,.el-range-editor--small .el-range-input,.el-range-editor--small .el-range-separator{font-size:13px}.el-range-editor.el-input__inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px 12px}.el-range-editor .el-range-input{line-height:1}.el-range-editor.is-active{border-color:#6179FF;-webkit-box-shadow:0 0 0 2px rgba(47,72,255,.1);box-shadow:0 0 0 2px rgba(47,72,255,.1)}.el-range-editor.is-active:hover{border-color:#6179FF}.el-range-editor--medium .el-input__icon{height:32px;line-height:32px}.el-range-editor--medium.el-input__inner{height:32px}.el-range-editor--small .el-input__icon{height:30px;line-height:30px}.el-range-editor--small.el-input__inner{height:30px}.el-range-editor--mini .el-input-group__prefix-label,.el-range-editor--mini .el-range-input,.el-range-editor--mini .el-range-separator{font-size:12px}.el-range-editor--mini .el-input__icon{height:26px;line-height:26px}.el-range-editor--mini.el-input__inner{height:26px}.el-range-editor.is-disabled,.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:#DCDFE6}.el-range-editor.is-disabled input::-webkit-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::-moz-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input:-ms-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::-ms-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::placeholder{color:#C6C7CA}.el-range-editor.is-disabled .el-range-separator{color:#A2A3AA}.el-picker-panel{color:#212026;border:1px solid #E4E7ED;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);background:#FFF;border-radius:4px;line-height:30px;margin:5px 0}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#FFF;position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#212026;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:#2F48FF}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#2F48FF}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#303133;border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:#2F48FF}.el-picker-panel__icon-btn.is-disabled{color:#A2A3AA}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;background-color:#FFF;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px #EBEEF5}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:#212026}.el-date-picker__header-label.active,.el-date-picker__header-label:hover{color:#2F48FF}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active>.el-scrollbar__bar,.el-scrollbar:focus>.el-scrollbar__bar,.el-scrollbar:hover>.el-scrollbar__bar{opacity:1;-webkit-transition:opacity 340ms ease-out;transition:opacity 340ms ease-out}.el-scrollbar__wrap{overflow:scroll;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);-webkit-transition:.3s background-color;transition:.3s background-color}.el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;-webkit-transition:opacity 120ms ease-out;transition:opacity 120ms ease-out}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-popper .popper__arrow,.el-popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{display:none;border-width:6px;-webkit-filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03));filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03))}.el-popper .popper__arrow::after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:4px}.el-popper[x-placement^=bottom]{margin-top:4px}.el-popper[x-placement^=right]{margin-left:4px}.el-popper[x-placement^=left]{margin-right:4px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.selected:not(.disabled){color:#2F48FF;font-weight:700}.time-select-item.disabled{color:#E4E7ED;cursor:not-allowed}.time-select-item:hover{background-color:#F5F7FA;font-weight:700;cursor:pointer}
|
|
1
|
+
.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.el-fade-in-enter-active,.el-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1,1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45,.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.el-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.el-date-editor{position:relative;display:inline-block;text-align:left}.el-date-editor .el-input__clear{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-date-editor .el-input__clear:before{margin-right:-12px;color:#777D87;font-size:10px;position:relative;line-height:1}.el-date-editor .el-input__clear:after{border-radius:100%;width:14px;height:14px;background:#E5E6EB}.el-date-editor .el-input__clear:hover:before{color:#FFF}.el-date-editor .el-input__clear:hover:after{background:#777D87}.el-date-editor--dates .el-input__inner{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .el-icon-circle-close{cursor:pointer}.el-date-editor.el-input--prefix .el-input__inner{padding-left:12px}.el-date-editor .el-input__prefix{-webkit-transform:none!important;transform:none!important;left:auto;right:1px}.el-date-editor .el-input__icon{padding:0 8px 0 0;font-size:14px;color:#777D87;line-height:36px;position:absolute;top:0;right:0}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:100%;margin:0;padding:0;width:100%;font-size:14px;color:#212026}.el-date-editor .el-range-input::-webkit-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::-moz-placeholder{color:#C6C7CA}.el-date-editor .el-range-input:-ms-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::-ms-input-placeholder{color:#C6C7CA}.el-date-editor .el-range-input::placeholder{color:#C6C7CA}.el-date-editor .el-range-separator{margin:0;padding:0 12px;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;text-align:center;font-size:14px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#777D87}.el-range-editor.is-disabled,.el-range-editor.is-disabled input{background-color:#F6F7F8;color:#A2A3AA;cursor:not-allowed}.el-range-editor{position:relative}.el-range-editor .el-input-group__prefix-label{padding:0 12px 0 0;font-size:14px}.el-range-editor--medium .el-input-group__prefix-label,.el-range-editor--medium .el-range-input,.el-range-editor--medium .el-range-separator,.el-range-editor--small .el-input-group__prefix-label,.el-range-editor--small .el-range-input,.el-range-editor--small .el-range-separator{font-size:13px}.el-range-editor.el-input__inner{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px 12px}.el-range-editor .el-range-input{line-height:1}.el-range-editor.is-active{border-color:#6179FF;-webkit-box-shadow:0 0 0 2px rgba(47,72,255,.1);box-shadow:0 0 0 2px rgba(47,72,255,.1)}.el-range-editor.is-active:hover{border-color:#6179FF}.el-range-editor--medium .el-input__icon{height:32px;line-height:32px}.el-range-editor--medium.el-input__inner{height:32px}.el-range-editor--small .el-input__icon{height:30px;line-height:30px}.el-range-editor--small.el-input__inner{height:30px}.el-range-editor--mini .el-input-group__prefix-label,.el-range-editor--mini .el-range-input,.el-range-editor--mini .el-range-separator{font-size:12px}.el-range-editor--mini .el-input__icon{height:26px;line-height:26px}.el-range-editor--mini.el-input__inner{height:26px}.el-range-editor.is-disabled,.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:#DCDFE6}.el-range-editor.is-disabled input::-webkit-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::-moz-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input:-ms-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::-ms-input-placeholder{color:#C6C7CA}.el-range-editor.is-disabled input::placeholder{color:#C6C7CA}.el-range-editor.is-disabled .el-range-separator{color:#A2A3AA}.el-picker-panel{color:#212026;border:1px solid #E4E7ED;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);background:#FFF;border-radius:4px;line-height:30px;margin:5px 0}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid #e4e4e4;padding:4px;text-align:right;background-color:#FFF;position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:#212026;padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:#2F48FF}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:#2F48FF}.el-picker-panel__btn{border:1px solid #dcdcdc;color:#333;line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:#ccc;cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:#303133;border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:#2F48FF}.el-picker-panel__icon-btn.is-disabled{color:#A2A3AA}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid #e4e4e4;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:6px;background-color:#FFF;overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid #e4e4e4;font-size:12px;padding:8px 5px 5px;display:table;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px #EBEEF5}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:#212026}.el-date-picker__header-label.active,.el-date-picker__header-label:hover{color:#2F48FF}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-scrollbar{overflow:hidden;position:relative}.el-scrollbar:active>.el-scrollbar__bar,.el-scrollbar:focus>.el-scrollbar__bar,.el-scrollbar:hover>.el-scrollbar__bar{opacity:1;-webkit-transition:opacity 340ms ease-out;transition:opacity 340ms ease-out}.el-scrollbar__wrap{overflow:scroll;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{width:0;height:0}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:rgba(144,147,153,.3);-webkit-transition:.3s background-color;transition:.3s background-color}.el-scrollbar__thumb:hover{background-color:rgba(144,147,153,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px;opacity:0;-webkit-transition:opacity 120ms ease-out;transition:opacity 120ms ease-out}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-popper .popper__arrow,.el-popper .popper__arrow::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.el-popper .popper__arrow{display:none;border-width:6px;-webkit-filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03));filter:drop-shadow(0 2px 12px rgba(0, 0, 0, .03))}.el-popper .popper__arrow::after{content:" ";border-width:6px}.el-popper[x-placement^=top]{margin-bottom:4px}.el-popper[x-placement^=bottom]{margin-top:4px}.el-popper[x-placement^=right]{margin-left:4px}.el-popper[x-placement^=left]{margin-right:4px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.selected:not(.disabled){color:#2F48FF;font-weight:700}.time-select-item.disabled{color:#E4E7ED;cursor:not-allowed}.time-select-item:hover{background-color:#F5F7FA;font-weight:700;cursor:pointer}
|
package/package.json
CHANGED
|
@@ -49,18 +49,33 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
</el-input>
|
|
51
51
|
|
|
52
|
-
<
|
|
52
|
+
<transition-group v-if="multiple && collapseTags && checkedNodes.length" class="el-cascader__tags" @after-leave="updateStyle">
|
|
53
|
+
<template v-for="(tag, index) in presentTags">
|
|
54
|
+
<el-tag
|
|
55
|
+
:key="tag.key"
|
|
56
|
+
v-if="collapseTags && index <= multipleLimitShow - 1"
|
|
57
|
+
type="info"
|
|
58
|
+
:size="tagSize"
|
|
59
|
+
:hit="tag.hitState"
|
|
60
|
+
:maxWidth="maxWidth"
|
|
61
|
+
:closable="tag.closable"
|
|
62
|
+
:class="{'is-disabled': !tag.closable && tag.key !== -1}"
|
|
63
|
+
disable-transitions
|
|
64
|
+
@close="deleteTag(tag)">
|
|
65
|
+
<span>{{ tag.text }}</span>
|
|
66
|
+
</el-tag>
|
|
67
|
+
</template>
|
|
53
68
|
<el-tag
|
|
54
|
-
v-
|
|
55
|
-
:
|
|
56
|
-
type="info"
|
|
69
|
+
v-if="collapseTags && (checkedNodes.length > 1 && checkedNodes.length > multipleLimitShow || checkedNodes.length > 0 && collapseTagsFixed)"
|
|
70
|
+
:closable="false"
|
|
57
71
|
:size="tagSize"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
key="count"
|
|
73
|
+
type="info"
|
|
74
|
+
ref="tagsCount"
|
|
75
|
+
class="el-cascader__tags-count"
|
|
76
|
+
:class="{'el-cascader__tags-count-fixed': collapseTagsFixed}"
|
|
77
|
+
disable-transitions>
|
|
78
|
+
<span class="el-cascader__tags-text">{{collapseTagsFixed ? '' : '+'}}{{ collapseTagsFixed ? checkedNodes.length : checkedNodes.length - multipleLimitShow }}{{ collapseTagsSuffix }}</span>
|
|
64
79
|
</el-tag>
|
|
65
80
|
<input
|
|
66
81
|
v-if="filterable && !isDisabled"
|
|
@@ -71,7 +86,33 @@
|
|
|
71
86
|
@input="e => handleInput(inputValue, e)"
|
|
72
87
|
@click.stop="toggleDropDownVisible(true)"
|
|
73
88
|
@keydown.delete="handleDelete">
|
|
74
|
-
</
|
|
89
|
+
</transition-group>
|
|
90
|
+
<transition-group class="el-cascader__tags" @after-leave="updateStyle" v-if="!collapseTags">
|
|
91
|
+
<template v-for="tag in presentTags">
|
|
92
|
+
<el-tag
|
|
93
|
+
:key="tag.key"
|
|
94
|
+
type="info"
|
|
95
|
+
:size="tagSize"
|
|
96
|
+
:hit="tag.hitState"
|
|
97
|
+
:maxWidth="maxWidth"
|
|
98
|
+
:closable="tag.closable"
|
|
99
|
+
:class="{'is-disabled': !tag.closable && tag.key !== -1}"
|
|
100
|
+
disable-transitions
|
|
101
|
+
@close="deleteTag(tag)">
|
|
102
|
+
<span>{{ tag.text }}</span>
|
|
103
|
+
</el-tag>
|
|
104
|
+
</template>
|
|
105
|
+
<input
|
|
106
|
+
v-if="filterable && !isDisabled"
|
|
107
|
+
v-model.trim="inputValue"
|
|
108
|
+
type="text"
|
|
109
|
+
class="el-cascader__search-input"
|
|
110
|
+
:placeholder="presentTags.length ? '' : placeholder"
|
|
111
|
+
@input="e => handleInput(inputValue, e)"
|
|
112
|
+
@click.stop="toggleDropDownVisible(true)"
|
|
113
|
+
@keydown.delete="handleDelete">
|
|
114
|
+
</transition-group>
|
|
115
|
+
|
|
75
116
|
|
|
76
117
|
<transition name="el-zoom-in-top" @after-leave="handleDropdownLeave">
|
|
77
118
|
<div
|
|
@@ -225,6 +266,22 @@ export default {
|
|
|
225
266
|
default: true
|
|
226
267
|
},
|
|
227
268
|
collapseTags: Boolean,
|
|
269
|
+
multipleLimitShow: {
|
|
270
|
+
type: Number,
|
|
271
|
+
default: 1
|
|
272
|
+
},
|
|
273
|
+
multipleTagMaxWidth: {
|
|
274
|
+
type: String,
|
|
275
|
+
default: 'none'
|
|
276
|
+
},
|
|
277
|
+
collapseTagsSuffix: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: ''
|
|
280
|
+
},
|
|
281
|
+
collapseTagsFixed: {
|
|
282
|
+
type: Boolean,
|
|
283
|
+
default: false
|
|
284
|
+
},
|
|
228
285
|
debounce: {
|
|
229
286
|
type: Number,
|
|
230
287
|
default: 300
|
|
@@ -248,7 +305,10 @@ export default {
|
|
|
248
305
|
filtering: false,
|
|
249
306
|
suggestions: [],
|
|
250
307
|
inputInitialHeight: 0,
|
|
251
|
-
pressDeleteCount: 0
|
|
308
|
+
pressDeleteCount: 0,
|
|
309
|
+
inputWidth: 0,
|
|
310
|
+
tagsLeft: 0,
|
|
311
|
+
maxWidth: 'none'
|
|
252
312
|
};
|
|
253
313
|
},
|
|
254
314
|
|
|
@@ -357,6 +417,8 @@ export default {
|
|
|
357
417
|
const { input } = this.$refs;
|
|
358
418
|
if (input && input.$el) {
|
|
359
419
|
this.inputInitialHeight = Math.max(input.$el.offsetHeight, InputSizeMap[this.realSize]) || 36;
|
|
420
|
+
this.resetInputWidth();
|
|
421
|
+
this.resetTagsLeft();
|
|
360
422
|
}
|
|
361
423
|
|
|
362
424
|
if (!this.isEmptyValue(this.value)) {
|
|
@@ -389,6 +451,33 @@ export default {
|
|
|
389
451
|
},
|
|
390
452
|
|
|
391
453
|
methods: {
|
|
454
|
+
resetInputWidth() {
|
|
455
|
+
this.inputWidth = this.$refs.input.$el.getBoundingClientRect().width;
|
|
456
|
+
},
|
|
457
|
+
resetTagsLeft() {
|
|
458
|
+
this.$nextTick(() => {
|
|
459
|
+
const prefixLabel = this.$el.querySelector('.el-input-group__prefix-label');
|
|
460
|
+
const prefix = this.$el.querySelector('.el-input__prefix');
|
|
461
|
+
const inputInner = this.$el.querySelector('.el-input__inner');
|
|
462
|
+
const prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
|
|
463
|
+
const inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
|
|
464
|
+
this.tagsLeft = prefixLabelWidth + inputPaddingLeft;
|
|
465
|
+
});
|
|
466
|
+
},
|
|
467
|
+
getMaxWidth() {
|
|
468
|
+
this.$nextTick(() => {
|
|
469
|
+
if (this.collapseTags) {
|
|
470
|
+
if (this.multipleTagMaxWidth && this.multipleTagMaxWidth !== 'none') {
|
|
471
|
+
this.maxWidth = this.multipleTagMaxWidth;
|
|
472
|
+
}
|
|
473
|
+
const tagsCountWidth = this.$refs.tagsCount && this.$refs.tagsCount.$el.clientWidth || 0;
|
|
474
|
+
const count = this.checkedNodes.length <= this.multipleLimitShow ? this.checkedNodes.length : this.multipleLimitShow;
|
|
475
|
+
this.maxWidth = Math.floor((this.inputWidth - this.tagsLeft - 32 - tagsCountWidth - 20 - count * 16) / count) + 'px';
|
|
476
|
+
} else {
|
|
477
|
+
this.maxWidth = this.multipleTagMaxWidth || 'none';
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
},
|
|
392
481
|
getMigratingConfig() {
|
|
393
482
|
return {
|
|
394
483
|
props: {
|
|
@@ -515,7 +604,7 @@ export default {
|
|
|
515
604
|
this.presentText = null;
|
|
516
605
|
},
|
|
517
606
|
computePresentTags() {
|
|
518
|
-
const { isDisabled, leafOnly, showAllLevels, separator
|
|
607
|
+
const { isDisabled, leafOnly, showAllLevels, separator } = this;
|
|
519
608
|
const checkedNodes = this.getCheckedNodes(leafOnly);
|
|
520
609
|
const tags = [];
|
|
521
610
|
|
|
@@ -528,25 +617,29 @@ export default {
|
|
|
528
617
|
});
|
|
529
618
|
|
|
530
619
|
if (checkedNodes.length) {
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
620
|
+
checkedNodes.forEach(node => tags.push(genTag(node)));
|
|
621
|
+
// const [first, ...rest] = checkedNodes;
|
|
622
|
+
// const restCount = rest.length;
|
|
623
|
+
// tags.push(genTag(first));
|
|
624
|
+
|
|
625
|
+
// console.log(restCount, 'restCount============');
|
|
626
|
+
// this.restCount = restCount;
|
|
627
|
+
// if (restCount) {
|
|
628
|
+
// if (collapseTags) {
|
|
629
|
+
// tags.push({
|
|
630
|
+
// key: -1,
|
|
631
|
+
// text: `+${restCount}`,
|
|
632
|
+
// closable: false
|
|
633
|
+
// });
|
|
634
|
+
// } else {
|
|
635
|
+
// rest.forEach(node => tags.push(genTag(node)));
|
|
636
|
+
// }
|
|
637
|
+
// }
|
|
546
638
|
}
|
|
547
639
|
|
|
548
640
|
this.checkedNodes = checkedNodes;
|
|
549
641
|
this.presentTags = tags;
|
|
642
|
+
this.getMaxWidth();
|
|
550
643
|
},
|
|
551
644
|
getSuggestions() {
|
|
552
645
|
let { filterMethod } = this;
|
|
@@ -661,7 +754,10 @@ export default {
|
|
|
661
754
|
} else {
|
|
662
755
|
inputInner.style.height = height;
|
|
663
756
|
}
|
|
664
|
-
tags.style.left = (prefixLabelWidth + inputPaddingLeft) + 'px';
|
|
757
|
+
tags.style.left = prefixLabel ? (prefixLabelWidth + inputPaddingLeft - 4) + 'px' : '0px';
|
|
758
|
+
if (this.checkedNodes.length === 0 && !prefixLabel) {
|
|
759
|
+
tags.style.left = '12px';
|
|
760
|
+
}
|
|
665
761
|
if (this.dropDownVisible) {
|
|
666
762
|
this.updatePopper();
|
|
667
763
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="el-select"
|
|
4
|
-
:class="[selectSize ? 'el-select--' + selectSize : '', selectDisabled ? 'is-disabled' : '']"
|
|
4
|
+
:class="[fill ? 'is-fill' : '', selectSize ? 'el-select--' + selectSize : '', selectDisabled ? 'is-disabled' : '']"
|
|
5
5
|
@click.stop="toggleMenu"
|
|
6
6
|
v-clickoutside="handleClose">
|
|
7
7
|
<div
|
|
8
8
|
class="el-select__tags"
|
|
9
|
+
:class="{ 'is-focus': visible }"
|
|
9
10
|
v-if="multiple"
|
|
10
11
|
ref="tags"
|
|
11
12
|
:style="{ 'max-width': inputWidth - 32 + 'px', width: (inputWidth - tagsLeft - 32) + 'px', left: tagsLeft + 'px' }">
|
|
@@ -348,7 +349,8 @@
|
|
|
348
349
|
popperAppendToBody: {
|
|
349
350
|
type: Boolean,
|
|
350
351
|
default: true
|
|
351
|
-
}
|
|
352
|
+
},
|
|
353
|
+
fill: Boolean
|
|
352
354
|
},
|
|
353
355
|
|
|
354
356
|
data() {
|
|
@@ -709,7 +711,7 @@
|
|
|
709
711
|
const inputInner = this.$el.querySelector('.el-input__inner');
|
|
710
712
|
const prefixLabelWidth = prefixLabel && Math.round(prefixLabel.getBoundingClientRect().width) || 0;
|
|
711
713
|
const inputPaddingLeft = prefixLabel || prefix ? Math.round(window.getComputedStyle(inputInner).paddingLeft.replace(/px/, '')) : 0;
|
|
712
|
-
this.tagsLeft = prefixLabelWidth + inputPaddingLeft;
|
|
714
|
+
this.tagsLeft = prefixLabel ? (prefixLabelWidth + inputPaddingLeft - 4) : 0;
|
|
713
715
|
});
|
|
714
716
|
},
|
|
715
717
|
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
216
216
|
},
|
|
217
217
|
|
|
218
218
|
getCellClass(rowIndex, columnIndex, row, column) {
|
|
219
|
-
const classes = [column.id, column.align, column.className];
|
|
219
|
+
const classes = [column.id, column.align, column.verticalAlign, column.className];
|
|
220
220
|
|
|
221
221
|
if (this.isColumnHidden(columnIndex)) {
|
|
222
222
|
classes.push('is-hidden');
|
|
@@ -32,6 +32,7 @@ export default {
|
|
|
32
32
|
},
|
|
33
33
|
columnKey: String,
|
|
34
34
|
align: String,
|
|
35
|
+
verticalAlign: String,
|
|
35
36
|
headerAlign: String,
|
|
36
37
|
showTooltipWhenOverflow: Boolean,
|
|
37
38
|
showOverflowTooltip: Boolean,
|
|
@@ -96,6 +97,10 @@ export default {
|
|
|
96
97
|
return this.align ? 'is-' + this.align : null;
|
|
97
98
|
},
|
|
98
99
|
|
|
100
|
+
realVerticalAlign() {
|
|
101
|
+
return this.verticalAlign ? 'is-' + this.verticalAlign : null;
|
|
102
|
+
},
|
|
103
|
+
|
|
99
104
|
realHeaderAlign() {
|
|
100
105
|
return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
|
|
101
106
|
}
|
|
@@ -201,6 +206,7 @@ export default {
|
|
|
201
206
|
const aliases = {
|
|
202
207
|
prop: 'property',
|
|
203
208
|
realAlign: 'align',
|
|
209
|
+
realVerticalAlign: 'verticalAlign',
|
|
204
210
|
realHeaderAlign: 'headerAlign',
|
|
205
211
|
realWidth: 'width'
|
|
206
212
|
};
|
|
@@ -265,6 +271,7 @@ export default {
|
|
|
265
271
|
type: type,
|
|
266
272
|
property: this.prop || this.property,
|
|
267
273
|
align: this.realAlign,
|
|
274
|
+
verticalAlign: this.realVerticalAlign,
|
|
268
275
|
headerAlign: this.realHeaderAlign,
|
|
269
276
|
showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
|
|
270
277
|
// filter 相关属性
|
|
@@ -66,6 +66,9 @@
|
|
|
66
66
|
.el-tag--medium {
|
|
67
67
|
height: $--input-medium-height - 8px;
|
|
68
68
|
line-height: $--input-medium-height - 8px;
|
|
69
|
+
&.el-cascader__tags-count-fixed {
|
|
70
|
+
min-width: $--input-medium-height - 8px;
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -75,6 +78,9 @@
|
|
|
75
78
|
.el-tag--small {
|
|
76
79
|
height: $--input-small-height - 8px;
|
|
77
80
|
line-height: $--input-small-height - 8px;
|
|
81
|
+
&.el-cascader__tags-count-fixed {
|
|
82
|
+
min-width: $--input-small-height - 8px;
|
|
83
|
+
}
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
|
|
@@ -84,6 +90,9 @@
|
|
|
84
90
|
.el-tag--mini {
|
|
85
91
|
height: $--input-mini-height - 8px;
|
|
86
92
|
line-height: $--input-mini-height - 8px;
|
|
93
|
+
&.el-cascader__tags-count-fixed {
|
|
94
|
+
min-width: $--input-mini-height - 8px;
|
|
95
|
+
}
|
|
87
96
|
}
|
|
88
97
|
}
|
|
89
98
|
|
|
@@ -121,33 +130,63 @@
|
|
|
121
130
|
align-items: center;
|
|
122
131
|
// pointer-events: none;
|
|
123
132
|
|
|
133
|
+
.el-cascader__tags-count-fixed {
|
|
134
|
+
min-width: $--input-height - 8px;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
text-align: center;
|
|
137
|
+
position: absolute;
|
|
138
|
+
right: 0;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
}
|
|
124
141
|
.el-tag {
|
|
125
|
-
|
|
126
|
-
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
border-color: transparent;
|
|
144
|
+
margin: 2px 0 2px 4px;
|
|
145
|
+
padding: 0 6px;
|
|
146
|
+
border-radius: 2px;
|
|
147
|
+
display: flex;
|
|
127
148
|
max-width: 100%;
|
|
128
|
-
|
|
129
|
-
text-overflow: ellipsis;
|
|
130
|
-
color: $--color-text-6;
|
|
149
|
+
align-items: center;
|
|
131
150
|
pointer-events: auto;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
color: $--color-text-3;
|
|
135
|
-
background: $--color-fill-3;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:not(.is-hit) {
|
|
139
|
-
border-color: transparent;
|
|
151
|
+
&.el-cascader__tags-count-fixed {
|
|
152
|
+
border-radius: 50%;
|
|
140
153
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
.iov-icon-close {
|
|
149
|
-
flex: none;
|
|
154
|
+
&.el-tag--info {
|
|
155
|
+
background: $--color-fill-2;
|
|
156
|
+
color: $--color-text-6;
|
|
157
|
+
border: 0 none;
|
|
158
|
+
&.is-disabled {
|
|
159
|
+
background: $--color-fill-3;
|
|
160
|
+
}
|
|
150
161
|
}
|
|
162
|
+
// display: inline-flex;
|
|
163
|
+
// align-items: center;
|
|
164
|
+
// max-width: 100%;
|
|
165
|
+
// padding: 0 6px;
|
|
166
|
+
// margin: 2px 4px 2px 0;
|
|
167
|
+
// border-radius: 2px;
|
|
168
|
+
// text-overflow: ellipsis;
|
|
169
|
+
// color: $--color-text-6;
|
|
170
|
+
// pointer-events: auto;
|
|
171
|
+
|
|
172
|
+
// &.is-disabled {
|
|
173
|
+
// color: $--color-text-3;
|
|
174
|
+
// background: $--color-fill-3;
|
|
175
|
+
// }
|
|
176
|
+
|
|
177
|
+
// &:not(.is-hit) {
|
|
178
|
+
// border-color: transparent;
|
|
179
|
+
// }
|
|
180
|
+
|
|
181
|
+
// > span {
|
|
182
|
+
// flex: 1;
|
|
183
|
+
// overflow: hidden;
|
|
184
|
+
// text-overflow: ellipsis;
|
|
185
|
+
// }
|
|
186
|
+
|
|
187
|
+
// .iov-icon-close {
|
|
188
|
+
// flex: none;
|
|
189
|
+
// }
|
|
151
190
|
}
|
|
152
191
|
}
|
|
153
192
|
|
|
@@ -23,6 +23,60 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
&.is-fill {
|
|
27
|
+
background: $--color-fill-1;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
.el-input-group--prefix,
|
|
30
|
+
.el-input-group--suffix {
|
|
31
|
+
background: $--color-fill-1;
|
|
32
|
+
border-color: $--color-fill-1;
|
|
33
|
+
&:hover,
|
|
34
|
+
&.is-focus {
|
|
35
|
+
border-color: $--input-focus-border;
|
|
36
|
+
}
|
|
37
|
+
&.is-disabled {
|
|
38
|
+
border-color: $--color-fill-1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.el-input__inner {
|
|
42
|
+
background: $--color-fill-1;
|
|
43
|
+
border-color: $--color-fill-1;
|
|
44
|
+
}
|
|
45
|
+
.el-input {
|
|
46
|
+
&.is-focus {
|
|
47
|
+
.el-input__suffix,
|
|
48
|
+
.el-input__inner,
|
|
49
|
+
.el-input-group--prefix,
|
|
50
|
+
.el-input-group--suffix {
|
|
51
|
+
background: #fff;
|
|
52
|
+
border-color: $--input-focus-border;
|
|
53
|
+
}
|
|
54
|
+
.el-input-group--prefix,
|
|
55
|
+
.el-input-group--suffix {
|
|
56
|
+
box-shadow: $--input-box-shadow;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.el-input__suffix {
|
|
61
|
+
background: $--color-fill-1;
|
|
62
|
+
}
|
|
63
|
+
&:hover {
|
|
64
|
+
.el-input__inner {
|
|
65
|
+
border-color: $--select-border-color-hover;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.el-select__tags {
|
|
69
|
+
&.is-focus {
|
|
70
|
+
.el-tag.el-tag--info {
|
|
71
|
+
background: $--color-fill-2;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.el-tag.el-tag--info {
|
|
76
|
+
background: #fff;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
26
80
|
.el-input__inner {
|
|
27
81
|
cursor: pointer;
|
|
28
82
|
padding-right: 35px;
|
|
@@ -168,6 +222,7 @@
|
|
|
168
222
|
border-color: transparent;
|
|
169
223
|
margin: 2px 0 2px 4px;
|
|
170
224
|
padding: 0 6px;
|
|
225
|
+
border-radius: 2px;
|
|
171
226
|
display: flex;
|
|
172
227
|
max-width: 100%;
|
|
173
228
|
align-items: center;
|
|
@@ -176,6 +231,7 @@
|
|
|
176
231
|
line-height: $--input-height - 8px;
|
|
177
232
|
&.el-select__tags-count-fixed {
|
|
178
233
|
min-width: $--input-height - 8px;
|
|
234
|
+
border-radius: 50%;
|
|
179
235
|
}
|
|
180
236
|
&.el-tag--info {
|
|
181
237
|
background: $--color-fill-2;
|
|
@@ -145,6 +145,14 @@
|
|
|
145
145
|
position: relative;
|
|
146
146
|
text-align: left;
|
|
147
147
|
|
|
148
|
+
@include when(top) {
|
|
149
|
+
vertical-align: top;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@include when(bottom) {
|
|
153
|
+
vertical-align: bottom;
|
|
154
|
+
}
|
|
155
|
+
|
|
148
156
|
@include when(center) {
|
|
149
157
|
text-align: center;
|
|
150
158
|
}
|
|
@@ -307,7 +315,7 @@
|
|
|
307
315
|
|
|
308
316
|
.has-gutter {
|
|
309
317
|
.el-table__cell {
|
|
310
|
-
border-bottom: 0 none;
|
|
318
|
+
// border-bottom: 0 none;
|
|
311
319
|
&:nth-last-child(2) {
|
|
312
320
|
border-right: 0 none;
|
|
313
321
|
}
|