next-element-vue 0.4.1 → 0.4.3
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/dist/index.css +1 -1
- package/dist/index.js +207 -53
- package/dist/index.min.js +3 -3
- package/dist/index.umd.js +200 -52
- package/dist/index.umd.min.js +3 -3
- package/dist/packages/components/layout/src/composite/index.d.ts +29 -0
- package/dist/packages/components/layout/src/composite/widgets/header.d.ts +2 -0
- package/dist/packages/components/layout/src/composite/widgets/menu-top.d.ts +34 -0
- package/dist/packages/components/layout/src/composite/widgets/sidebar.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.flex-center{align-items:center;display:flex;justify-content:center}.el-overlay{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.el-overlay-dialog::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:6px}.el-overlay-dialog::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:3px}.el-overlay-dialog::-webkit-scrollbar-thumb:hover{background-color:#aaa}.el-overlay-dialog::-webkit-scrollbar-thumb:inactive{background-color:#eee}*{list-style:none;margin:0;padding:0}:root{--next-layout-bg-color:#282c34;--next-layout-font-color:#fff;--next-main-bg-color:#fff;--el-color-white:#fff;--el-color-black:#000;--el-color-primary:#1e90ff;--el-color-primary-light-3:#62b1ff;--el-color-primary-light-5:#8fc8ff;--el-color-primary-light-7:#bcdeff;--el-color-primary-light-8:#d2e9ff;--el-color-primary-light-9:#e9f4ff;--el-color-primary-dark-2:#1e90ff;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#fff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#fff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#fff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:hsla(0,0%,100%,.9);--el-mask-color-extra-light:hsla(0,0%,100%,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color);--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px;color-scheme:light}[data-theme=dark]{--next-main-bg-color:#141414;--el-bg-color:var(--next-main-bg-color);--el-fill-color-blank:var(--next-main-bg-color);--el-fill-color-light:var(--next-main-bg-color);--el-bg-color-overlay:var(--next-main-bg-color);--el-bg-color-page:var(--next-main-bg-color);--el-mask-color:rgba(0,0,0,.6);--el-text-color-regular:#fff;--el-text-color-primary:#fff}[data-theme=dark] .next-layout{background-color:var(--next-main-bg-color)}[data-theme=dark] .next-layout .next-tabs .next-tabs-list>li,[data-theme=dark] .next-layout .next-tabs .next-tabs-list>li.is-active:hover,[data-theme=dark] .next-layout .next-tabs .next-tabs-list>li:hover{background-color:unset!important}[data-theme=dark] .el-picker__popper{border:1px solid #fff!important}
|
|
2
2
|
.next-text-ellipsis{align-items:center;box-sizing:border-box;display:inline-flex;width:100%}.next-text-ellipsis__text{cursor:pointer;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
|
|
3
3
|
.active-menu-item,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__icon,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__title,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__icon,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__title,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__icon,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__title,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__icon,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__title,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__icon,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__title,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__title,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__title,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__title,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__title,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__icon,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__title,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__title,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__icon,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__title,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__title,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__icon,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__title,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__icon,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__title{color:var(--el-color-primary)}.active-menu-item .icon,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__icon .icon,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__title .icon,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__icon .icon,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__title .icon,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__icon .icon,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__title .icon,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__icon .icon,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__title .icon,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__icon .icon,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__title .icon,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__icon .icon,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__title .icon,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__icon .icon,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__title .icon{fill:var(--el-color-primary)}.active-menu-item i.iconfont,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__icon i.iconfont,.next-menu-popper .el-menu--popup .el-menu-item.is-active>.next-menu-item__title i.iconfont,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__icon i.iconfont,.next-menu-popper .el-menu--popup .el-menu-item:hover>.next-menu-item__title i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__icon i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu.is-active>.next-menu-item__title i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__icon i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu__title.is-active>.next-menu-item__title i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__icon i.iconfont,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-menu-item.is-active>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-menu-item:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu.is-active>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--horizontal .el-sub-menu__title:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-menu-item.is-active>.el-sub-menu__title>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-menu-item.is-active>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-menu-item:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-sub-menu.is-active>.el-sub-menu__title>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-sub-menu.is-active>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-sub-menu:hover>.next-menu-item__title i.iconfont,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__icon i.iconfont,.next-menu.el-menu--vertical .el-sub-menu__title:hover>.next-menu-item__title i.iconfont{color:var(--el-color-primary)}.next-menu.el-menu--vertical{background-color:transparent;border:unset;border-bottom:none;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.next-menu.el-menu--vertical .el-menu-item,.next-menu.el-menu--vertical .el-sub-menu,.next-menu.el-menu--vertical .el-sub-menu__title{color:var(--el-text-color-primary)}.next-menu.el-menu--vertical .el-menu-item .icon,.next-menu.el-menu--vertical .el-sub-menu .icon,.next-menu.el-menu--vertical .el-sub-menu__title .icon{fill:var(--el-text-color-primary)}.next-menu.el-menu--vertical .el-menu-item i.iconfont,.next-menu.el-menu--vertical .el-sub-menu i.iconfont,.next-menu.el-menu--vertical .el-sub-menu__title i.iconfont{color:var(--el-text-color-primary)}.next-menu.el-menu--horizontal{background-color:transparent;border-bottom:none;height:var(--next-layout-header-height,64px);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.next-menu.el-menu--horizontal .el-menu-item,.next-menu.el-menu--horizontal .el-sub-menu__title,.next-menu.el-menu--horizontal .is-active{border-bottom:unset!important}.next-menu.el-menu--horizontal .el-menu-item,.next-menu.el-menu--horizontal .el-sub-menu,.next-menu.el-menu--horizontal .el-sub-menu__title{color:var(--next-layout-font-color);position:relative}.next-menu.el-menu--horizontal .el-menu-item:hover,.next-menu.el-menu--horizontal .el-sub-menu:hover,.next-menu.el-menu--horizontal .el-sub-menu__title:hover{background-color:unset!important}.next-menu.el-menu--horizontal .el-menu-item:focus,.next-menu.el-menu--horizontal .el-sub-menu:focus,.next-menu.el-menu--horizontal .el-sub-menu__title:focus{background-color:unset!important;color:var(--next-layout-font-color)}.next-menu.el-menu--horizontal .el-menu-item:after,.next-menu.el-menu--horizontal .el-sub-menu:after,.next-menu.el-menu--horizontal .el-sub-menu__title:after{bottom:5px;content:"";height:2px;left:50%;position:absolute;right:50%;transition:all .3s ease-in-out}.next-menu.el-menu--horizontal .el-menu-item.is-active:after,.next-menu.el-menu--horizontal .el-sub-menu.is-active:after{background-color:var(--el-color-primary);bottom:5px;content:"";height:2px;left:var(--el-menu-base-level-padding);position:absolute;right:var(--el-menu-base-level-padding)}.next-menu-popper,.next-menu-popper.el-popper.is-light{border:unset}.next-menu-popper .el-menu--horizontal,.next-menu-popper.el-popper.is-light .el-menu--horizontal{border-bottom:unset}.next-menu-popper .el-menu--popup,.next-menu-popper.el-popper.is-light .el-menu--popup{background-color:var(--next-layout-bg-color)}.next-menu-popper .el-menu--popup .el-menu-item,.next-menu-popper .el-menu--popup .el-sub-menu__title,.next-menu-popper.el-popper.is-light .el-menu--popup .el-menu-item,.next-menu-popper.el-popper.is-light .el-menu--popup .el-sub-menu__title{background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color)}.next-menu-popper .el-menu--popup .el-menu-item:hover,.next-menu-popper .el-menu--popup .el-sub-menu__title:hover,.next-menu-popper.el-popper.is-light .el-menu--popup .el-menu-item:hover,.next-menu-popper.el-popper.is-light .el-menu--popup .el-sub-menu__title:hover{background-color:rgba(0,0,0,.3)}.next-menu-item__icon{align-items:center;color:var(--next-layout-font-color);display:inline-flex;font-size:16px;margin-right:6px}.next-menu-item__icon .icon{fill:var(--next-layout-font-color);height:16px;width:16px}.el-menu-item *,.el-sub-menu__title *{vertical-align:unset}
|
|
4
|
-
.next-layout .next-layout-header-logo__title,.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root{--next-layout-header-height:64px;--next-layout-nav-height:45px;--next-layout-sidebar-width:240px}.next-layout-transverse-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-transverse-header .next-layout-transverse-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-transverse-header .next-layout-transverse-header-right{flex-grow:0;flex-shrink:0;height:100%;padding-left:30px}.next-layout-transverse-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout-columns{display:flex;height:100%;justify-content:space-between;width:100%}.next-layout-columns .next-layout-columns-sidebar{flex-grow:0;flex-shrink:0;height:100%;width:var(--next-layout-sidebar-width,240px)}.next-layout-columns .next-layout-columns-content{flex:1 1 auto;height:100%;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-columns .next-layout-columns-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-columns .next-layout-columns-header .next-layout-columns-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-columns .next-layout-columns-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout-classic-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-classic-header .next-layout-classic-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-classic-content{display:flex;height:100%;height:calc(100% - var(--next-layout-header-height, 64px));justify-content:space-between;width:100%}.next-layout-classic-content .next-layout-classic-container{flex:1 1 auto;height:100%;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-classic-content .next-layout-classic-container .next-layout-classic-main{height:100%;width:100%}.next-layout-classic-content .next-layout-classic-sidebar{box-shadow:0 2px 6px rgba(0,0,0,.06);flex-grow:0;flex-shrink:0;height:100%;width:var(--next-layout-sidebar-width,240px)}.next-layout-classic-content .next-layout-classic-sidebar>.el-scrollbar .el-scrollbar__view{box-sizing:border-box;height:100%;padding:0 10px}.next-layout-classic-content.is-layout-tabs{height:calc(100% - var(--next-layout-header-height, 64px))!important}.next-layout-classic-content.is-layout-tabs .next-layout-classic-container .next-layout-classic-main{height:calc(100% - var(--next-layout-nav-height, 45px));width:100%}.next-layout-defaults{--next-layout-sidebar-width:300px;--next-layout-font-color:var(--el-text-color-primary);background-color:#f5f5f5;display:flex;height:100%;justify-content:space-between;width:100%}.next-layout-defaults .next-layout-defaults-sidebar{box-sizing:border-box;flex-grow:0;flex-shrink:0;height:100%;padding:16px 0 16px 16px;position:relative;width:var(--next-layout-sidebar-width,240px)}.next-layout-defaults .next-layout-defaults-sidebar>.el-scrollbar{background-color:var(--el-bg-color);border-radius:6px}.next-layout-defaults .next-layout-defaults-sidebar>.el-scrollbar .el-scrollbar__view{box-shadow:var(--el-box-shadow-light);height:100%}.next-layout-defaults .next-layout-defaults-header{align-items:center;border-radius:6px 6px 0 0;display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between}.next-layout-defaults .next-layout-defaults-header,.next-layout-defaults .next-tabs{background-color:var(--el-bg-color);color:var(--el-text-color-primary);margin:0 16px;width:calc(100% - 32px)}.next-layout-defaults .next-tabs{border-radius:0 0 6px 6px}.next-layout-defaults .next-layout-defaults-content{flex:1 1 auto;height:calc(100% - 16px);margin-top:16px;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-defaults .next-layout-defaults-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout{height:100%;width:100%}.next-layout .next-layout-header-logo{align-items:center;display:flex;padding:0 20px 0 10px}.next-layout .next-layout-header-logo__img{height:calc(var(--next-layout-header-height, 64px) - 16px)}.next-layout .next-layout-header-logo__title{max-width:300px}.next-layout .is-layout-tabs{height:calc(100% - var(--next-layout-header-height, 64px) - var(--next-layout-nav-height, 45px))}.next-layout .next-layout-header-tools{align-items:center;display:flex;height:100%;padding-right:10px}.next-layout .next-layout-header-tools>li{align-items:center;display:flex;height:inherit;padding:0 10px}.next-layout .next-layout-header-tools>li .el-icon{color:var(--next-layout-font-color);cursor:pointer;transition:all .3s}.next-layout .next-layout-header-tools>li .el-icon:hover{transform:scale(1.1)}.next-layout .next-layout-header-tools>li .el-icon .icon{fill:var(--next-layout-font-color)}.next-layout .next-layout-header-tools__user{align-items:center;color:var(--next-layout-font-color);cursor:pointer;display:flex;padding:0 10px;white-space:nowrap}.next-layout .next-layout-header-tools__user .user-photo{background-color:var(--el-fill-color-darker);border-radius:100%;height:32px;margin-right:6px;width:32px}.next-layout :focus{outline:0!important}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item .item-svg{align-items:center;display:flex;padding-right:5px}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item .item-svg .icon{fill:var(--el-text-color-regular)}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item:hover .icon{fill:var(--el-color-primary)}.next-layout-drawer__setting>.el-drawer__header{border-bottom:1px solid #dcdfe6;margin-bottom:unset;padding-bottom:15px}.next-layout-drawer__setting>.el-drawer__body{padding:0}.next-layout-drawer__setting>.el-drawer__body .el-scrollbar{padding:15px 20px}.next-layout-drawer__setting .next-layout-config-bar-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.next-layout-drawer__setting .next-layout-config-bar-item__label{color:var(--el-text-color-primary);flex:1;font-size:14px}.next-layout-drawer__setting .next-layout-config-bar-item__value{text-align:right}.next-layout-drawer__setting .next-layout-config-bar-layout{align-items:center;display:flex;flex-wrap:wrap}.next-layout-drawer__setting .next-layout-config-bar-layout>li{background-color:#e9eef3;border:1px solid transparent;border-radius:5px;box-shadow:0 1px 3px 0 rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:80px;margin:5px 10px;overflow:hidden;position:relative;transition:all .3s ease-in-out;width:calc(50% - 20px)}.next-layout-drawer__setting .next-layout-config-bar-layout>li:hover{transform:scale(1.01) translateY(-3px)}.next-layout-drawer__setting .next-layout-config-bar-layout>li:hover .tip-wrap{opacity:.9}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap{border:1px solid #9fceff;border-radius:50%;bottom:50%;opacity:.6;padding:4px;position:absolute;right:50%;transform:translateX(50%) translateY(50%)}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap .layout-box{border:1px solid #9fceff;border-radius:50%;height:30px;width:30px}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap .layout-box .layout-text{background-color:#e9eef3;color:#9fceff;font-size:12px;height:17px;letter-spacing:2px;line-height:17px;position:relative;text-align:center;top:5px;transform:rotate(30deg);white-space:nowrap;width:32px}.next-layout-drawer__setting .next-layout-config-bar-layout__transverse:before{background-color:#273352;content:"";height:10px;left:0;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__columns:before{background-color:rgba(39,51,82,.6);content:"";height:10px;left:25px;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__columns:after{background-color:#273352;bottom:0;content:"";left:0;position:absolute;top:0;width:10px}.next-layout-drawer__setting .next-layout-config-bar-layout__columns aside{background-color:rgba(39,51,82,.3);bottom:0;left:10px;position:absolute;top:0;width:15px}.next-layout-drawer__setting .next-layout-config-bar-layout__classic:before{background-color:#273352;content:"";height:10px;left:0;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__classic:after{background-color:rgba(39,51,82,.6);bottom:0;content:"";left:0;position:absolute;top:0;width:20px}.next-layout-drawer__setting .next-layout-config-bar-layout__defaults:before{background-color:#273352;content:"";height:10px;left:20px;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__defaults:after{background-color:rgba(39,51,82,.6);bottom:0;content:"";left:0;position:absolute;top:0;width:20px}.next-layout-drawer__setting .next-layout-config-bar-layout>li.is-active{border-color:var(--el-color-primary);opacity:1}.next-layout-drawer__setting .next-layout-config-bar-layout>li.is-active:hover{opacity:1;transition:none}
|
|
4
|
+
.next-layout .next-layout-header-logo__title,.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root{--next-layout-header-height:64px;--next-layout-nav-height:45px;--next-layout-sidebar-width:240px}.next-layout-transverse-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-transverse-header .next-layout-transverse-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-transverse-header .next-layout-transverse-header-right{flex-grow:0;flex-shrink:0;height:100%;padding-left:30px}.next-layout-transverse-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout-columns{display:flex;height:100%;justify-content:space-between;width:100%}.next-layout-columns .next-layout-columns-sidebar{flex-grow:0;flex-shrink:0;height:100%;width:var(--next-layout-sidebar-width,240px)}.next-layout-columns .next-layout-columns-content{flex:1 1 auto;height:100%;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-columns .next-layout-columns-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-columns .next-layout-columns-header .next-layout-columns-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-columns .next-layout-columns-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout-classic-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-classic-header .next-layout-classic-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-classic-content{display:flex;height:100%;height:calc(100% - var(--next-layout-header-height, 64px));justify-content:space-between;width:100%}.next-layout-classic-content .next-layout-classic-container{flex:1 1 auto;height:100%;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-classic-content .next-layout-classic-container .next-layout-classic-main{height:100%;width:100%}.next-layout-classic-content .next-layout-classic-sidebar{box-shadow:0 2px 6px rgba(0,0,0,.06);flex-grow:0;flex-shrink:0;height:100%;width:var(--next-layout-sidebar-width,240px)}.next-layout-classic-content .next-layout-classic-sidebar>.el-scrollbar .el-scrollbar__view{box-sizing:border-box;height:100%;padding:0 10px}.next-layout-classic-content.is-layout-tabs{height:calc(100% - var(--next-layout-header-height, 64px))!important}.next-layout-classic-content.is-layout-tabs .next-layout-classic-container .next-layout-classic-main{height:calc(100% - var(--next-layout-nav-height, 45px));width:100%}.next-layout-defaults{--next-layout-sidebar-width:300px;--next-layout-font-color:var(--el-text-color-primary);background-color:#f5f5f5;display:flex;height:100%;justify-content:space-between;width:100%}.next-layout-defaults .next-layout-defaults-sidebar{box-sizing:border-box;flex-grow:0;flex-shrink:0;height:100%;padding:16px 0 16px 16px;position:relative;width:var(--next-layout-sidebar-width,240px)}.next-layout-defaults .next-layout-defaults-sidebar>.el-scrollbar{background-color:var(--el-bg-color);border-radius:6px}.next-layout-defaults .next-layout-defaults-sidebar>.el-scrollbar .el-scrollbar__view{box-shadow:var(--el-box-shadow-light);height:100%}.next-layout-defaults .next-layout-defaults-header{align-items:center;border-radius:6px 6px 0 0;display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between}.next-layout-defaults .next-layout-defaults-header,.next-layout-defaults .next-tabs{background-color:var(--el-bg-color);color:var(--el-text-color-primary);margin:0 16px;width:calc(100% - 32px)}.next-layout-defaults .next-tabs{border-radius:0 0 6px 6px}.next-layout-defaults .next-layout-defaults-content{flex:1 1 auto;height:calc(100% - 16px);margin-top:16px;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-defaults .next-layout-defaults-main{height:calc(100% - var(--next-layout-header-height, 64px));width:100%}.next-layout-composite-header{align-items:center;background-color:var(--next-layout-bg-color);color:var(--next-layout-font-color);display:flex;height:var(--next-layout-header-height,64px);justify-content:space-between;width:100%}.next-layout-composite-header .next-layout-composite-header-menu{flex:1 1 auto;height:100%;overflow:hidden}.next-layout-composite-content{display:flex;height:100%;height:calc(100% - var(--next-layout-header-height, 64px));justify-content:space-between;width:100%}.next-layout-composite-content .next-layout-composite-container{flex:1 1 auto;height:100%;width:calc(100% - var(--next-layout-sidebar-width, 240px))}.next-layout-composite-content .next-layout-composite-container .next-layout-composite-main{height:100%;width:100%}.next-layout-composite-content .next-layout-composite-sidebar{box-shadow:0 2px 6px rgba(0,0,0,.06);flex-grow:0;flex-shrink:0;height:100%;width:var(--next-layout-sidebar-width,240px)}.next-layout-composite-content .next-layout-composite-sidebar>.el-scrollbar .el-scrollbar__view{box-sizing:border-box;height:100%;padding:0 10px}.next-layout-composite-content.is-layout-tabs{height:calc(100% - var(--next-layout-header-height, 64px))!important}.next-layout-composite-content.is-layout-tabs .next-layout-composite-container .next-layout-composite-main{height:calc(100% - var(--next-layout-nav-height, 45px));width:100%}.next-layout{height:100%;width:100%}.next-layout .next-layout-header-logo{align-items:center;display:flex;padding:0 20px 0 10px}.next-layout .next-layout-header-logo__img{height:calc(var(--next-layout-header-height, 64px) - 16px)}.next-layout .next-layout-header-logo__title{max-width:300px}.next-layout .is-layout-tabs{height:calc(100% - var(--next-layout-header-height, 64px) - var(--next-layout-nav-height, 45px))}.next-layout .next-layout-header-tools{align-items:center;display:flex;height:100%;padding-right:10px}.next-layout .next-layout-header-tools>li{align-items:center;display:flex;height:inherit;padding:0 10px}.next-layout .next-layout-header-tools>li .el-icon{color:var(--next-layout-font-color);cursor:pointer;transition:all .3s}.next-layout .next-layout-header-tools>li .el-icon:hover{transform:scale(1.1)}.next-layout .next-layout-header-tools>li .el-icon .icon{fill:var(--next-layout-font-color)}.next-layout .next-layout-header-tools__user{align-items:center;color:var(--next-layout-font-color);cursor:pointer;display:flex;padding:0 10px;white-space:nowrap}.next-layout .next-layout-header-tools__user .user-photo{background-color:var(--el-fill-color-darker);border-radius:100%;height:32px;margin-right:6px;width:32px}.next-layout :focus{outline:0!important}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item .item-svg{align-items:center;display:flex;padding-right:5px}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item .item-svg .icon{fill:var(--el-text-color-regular)}.next-layout-header-tools__userDropdown .el-dropdown-menu .el-dropdown-menu__item:hover .icon{fill:var(--el-color-primary)}.next-layout-drawer__setting>.el-drawer__header{border-bottom:1px solid #dcdfe6;margin-bottom:unset;padding-bottom:15px}.next-layout-drawer__setting>.el-drawer__body{padding:0}.next-layout-drawer__setting>.el-drawer__body .el-scrollbar{padding:15px 20px}.next-layout-drawer__setting .next-layout-config-bar-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.next-layout-drawer__setting .next-layout-config-bar-item__label{color:var(--el-text-color-primary);flex:1;font-size:14px}.next-layout-drawer__setting .next-layout-config-bar-item__value{text-align:right}.next-layout-drawer__setting .next-layout-config-bar-layout{align-items:center;display:flex;flex-wrap:wrap}.next-layout-drawer__setting .next-layout-config-bar-layout>li{background-color:#e9eef3;border:1px solid transparent;border-radius:5px;box-shadow:0 1px 3px 0 rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:80px;margin:5px 10px;overflow:hidden;position:relative;transition:all .3s ease-in-out;width:calc(50% - 20px)}.next-layout-drawer__setting .next-layout-config-bar-layout>li:hover{transform:scale(1.01) translateY(-3px)}.next-layout-drawer__setting .next-layout-config-bar-layout>li:hover .tip-wrap{opacity:.9}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap{border:1px solid #9fceff;border-radius:50%;bottom:50%;opacity:.6;padding:4px;position:absolute;right:50%;transform:translateX(50%) translateY(50%)}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap .layout-box{border:1px solid #9fceff;border-radius:50%;height:30px;width:30px}.next-layout-drawer__setting .next-layout-config-bar-layout>li>.layout-wrap .layout-box .layout-text{background-color:#e9eef3;color:#9fceff;font-size:12px;height:17px;letter-spacing:2px;line-height:17px;position:relative;text-align:center;top:5px;transform:rotate(30deg);white-space:nowrap;width:32px}.next-layout-drawer__setting .next-layout-config-bar-layout__transverse:before{background-color:#273352;content:"";height:10px;left:0;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__columns:before{background-color:rgba(39,51,82,.1);content:"";height:10px;left:25px;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__columns:after{background-color:#273352;bottom:0;content:"";left:0;position:absolute;top:0;width:10px}.next-layout-drawer__setting .next-layout-config-bar-layout__columns aside{background-color:rgba(39,51,82,.3);bottom:0;left:10px;position:absolute;top:0;width:15px}.next-layout-drawer__setting .next-layout-config-bar-layout__classic:before{background-color:rgba(39,51,82,.3);content:"";height:10px;left:0;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__classic:after{background-color:rgba(39,51,82,.8);bottom:0;content:"";left:0;position:absolute;top:10px;width:20px}.next-layout-drawer__setting .next-layout-config-bar-layout__defaults:before{background-color:rgba(39,51,82,.1);content:"";height:10px;left:20px;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__defaults:after{background-color:rgba(39,51,82,.8);bottom:0;content:"";left:0;position:absolute;top:0;width:20px}.next-layout-drawer__setting .next-layout-config-bar-layout__composite:before{background-color:#273352;content:"";height:10px;left:0;position:absolute;right:0;top:0;z-index:11}.next-layout-drawer__setting .next-layout-config-bar-layout__composite:after{background-color:rgba(39,51,82,.6);bottom:0;content:"";left:0;position:absolute;top:10px;width:20px}.next-layout-drawer__setting .next-layout-config-bar-layout>li.is-active{border-color:var(--el-color-primary);opacity:1}.next-layout-drawer__setting .next-layout-config-bar-layout>li.is-active:hover{opacity:1;transition:none}
|
|
5
5
|
.next-tabs{align-items:center;box-shadow:0 2px 6px rgba(0,0,0,.06);display:flex;height:var(--next-layout-nav-height,45px);justify-content:space-between;position:relative;width:100%;z-index:11}.next-tabs .el-scrollbar__view,.next-tabs>.el-scrollbar{height:100%;width:100%}.next-tabs .el-scrollbar__view .next-tabs-list,.next-tabs>.el-scrollbar .next-tabs-list{box-sizing:border-box;display:flex;font-size:12px;height:100%;padding:10px 15px 0;white-space:nowrap}.next-tabs .el-scrollbar__view .next-tabs-list .active,.next-tabs .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover,.next-tabs>.el-scrollbar .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list .active,.next-tabs>.el-scrollbar .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary);-webkit-mask:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAkBAMAAAAdqzmBAAAAMFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlTPQ5AAAAD3RSTlMAr3DvEM8wgCBA379gj5//tJBPAAAAnUlEQVRIx2NgAAM27fj/tAO/xBsYkIHyf9qCT8iWMf6nNQhAsk2f5rYheY7Dnua2/U+A28ZEe8v+F9Ax2v7/F4DbxkUH2wzgtvHTwbYPo7aN2jZq26hto7aN2jZq25Cy7Qvctnw62PYNbls9HWz7S8/G6//PsI6H4396gAUQy1je08W2jxDbpv6nD4gB2uWp+J9eYPsEhv/0BPS1DQBvoBLVZ3BppgAAAABJRU5ErkJggg==);-webkit-mask-repeat:no-repeat;-webkit-mask-size:100% 100%;padding:0 25px!important}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item{align-items:center;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:var(--el-font-size-base);font-weight:400;height:calc(var(--next-layout-nav-height, 45px) - 10px);justify-content:center;margin-right:-10px;padding:0 20px;transition-duration:.3s;transition-property:width,padding;transition-timing-function:cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover{background-color:var(--el-color-primary-light-9)}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover .tab-close,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover .tab-close{transform:scale(1);width:14px}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover .tab-icon{color:var(--el-color-primary)}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .el-icon svg,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .el-icon svg{height:unset;width:unset}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-icon{color:var(--el-text-color-primary);font-size:16px;margin-right:5px}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-close,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-close{border-radius:50%;display:inline-block;font-size:12px;height:14px;line-height:15px;margin-left:10px;text-align:center;transform:scale(0);transition:all .3s cubic-bezier(.645,.045,.355,1);vertical-align:middle;width:0}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-close:hover,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-close:hover{background-color:var(--el-color-primary-light-3);color:var(--el-color-white)}.next-tabs .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs .el-scrollbar__view .next-tabs-list li.is-active .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list li.is-active .tab-icon{color:var(--el-color-primary)}.next-tabs .el-scrollbar__view .next-tabs-list li.is-active:hover,.next-tabs>.el-scrollbar .next-tabs-list li.is-active:hover{background-color:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)}.next-tabs .next-tabs-tab-more{cursor:pointer;display:inline-block;padding:0 20px;transition:transform .3s ease-out}.next-tabs .next-tabs-tab-more:focus{outline:none}.next-tabs .next-tabs-tab-more__box{display:block;height:8px;position:relative;width:14px}.next-tabs .next-tabs-tab-more__box:before{background:#9a9a9a;content:"";height:6px;left:0;position:absolute;top:2px;transition:transform .3s ease-out .3s;width:6px}.next-tabs .next-tabs-tab-more__box:after{background:#9a9a9a;content:"";height:6px;left:8px;position:absolute;top:2px;width:6px}.next-tabs .next-tabs-tab-more[aria-expanded=true]{color:var(--el-color-primary);transform:rotate(90deg)}.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__top:before{background:var(--el-color-primary);transform:rotate(45deg)}.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__bottom:after,.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__bottom:before,.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__top:after{background:var(--el-color-primary)}
|
|
6
6
|
.next-container{box-sizing:border-box;height:100%;width:100%}.next-container .next-container-card,.next-container>.el-scrollbar__wrap>.el-scrollbar__view{box-sizing:border-box;height:100%;padding:var(--next-container-padding,20px)}.next-container .next-container-card{background-color:var(--next-main-bg-color,#fff);border-radius:12px;box-shadow:0 0 27px rgba(0,0,0,.05);transition:all .3s}
|
|
7
7
|
.next-dialog{border-radius:6px;padding:unset;transition:all .3s ease-out}.next-dialog .el-dialog__header{align-items:center;background-color:var(--el-color-primary-light-9);border-bottom:1px solid var(--el-color-primary-light-8);border-radius:6px 6px 0 0;display:flex;justify-content:space-between;margin-right:unset;padding:var(--el-dialog-padding-primary)}.next-dialog .el-dialog__header .el-dialog__title{color:#303133;font-size:16px;font-weight:400}.next-dialog .el-dialog__header .next-dialog-header{align-items:center;display:flex;justify-content:space-between;width:100%}.next-dialog .el-dialog__header .next-dialog__header-right{align-items:center;display:flex;height:var(--el-dialog-font-line-height)}.next-dialog .el-dialog__header .next-dialog__header-right .icon-fullscreen{font-size:18px;margin-top:2px}.next-dialog .el-dialog__header .next-dialog__header-right .el-icon{color:#909399;cursor:pointer}.next-dialog .el-dialog__header .next-dialog__header-right .el-icon:hover{color:var(--el-color-primary)}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close{align-items:center;display:flex;margin-left:10px}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close .el-icon{transition:all .3s}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close:hover .el-icon{transform:rotate(90deg)}.next-dialog .el-dialog__body{min-height:60px;padding:10px 20px}.next-dialog .el-dialog__footer{padding:unset}.next-dialog .next-dialog-footer__zoom{bottom:-10px;cursor:se-resize;height:20px;position:absolute;right:-10px;width:20px}.next-dialog.is-fullscreen{border-radius:3px;overflow-y:hidden}.next-dialog.is-fullscreen .el-dialog__body{box-sizing:border-box;height:calc(100% - 55px);overflow-y:auto}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:6px}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:3px}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb:hover{background-color:#aaa}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb:inactive{background-color:#eee}
|
package/dist/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 作 者:huangteng
|
|
4
4
|
* 邮 箱:htengweb@163.com
|
|
5
|
-
* 当前版本:0.4.
|
|
6
|
-
* 发布日期:2024-11-
|
|
5
|
+
* 当前版本:0.4.3 v
|
|
6
|
+
* 发布日期:2024-11-20
|
|
7
7
|
* 地 址:https://www.npmjs.com/package/next-element-vue
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { getCurrentInstance, inject, ref, computed, unref, isRef, defineComponent, createVNode, Fragment, openBlock, createElementBlock, createElementVNode, reactive, createTextVNode, resolveComponent, Teleport, isVNode, onUnmounted, provide, watch, markRaw, watchEffect, h, onMounted, toRaw, render,
|
|
10
|
+
import { getCurrentInstance, inject, ref, computed, unref, isRef, defineComponent, createVNode, Fragment, openBlock, createElementBlock, createElementVNode, reactive, createTextVNode, resolveComponent, Teleport, isVNode, onUnmounted, provide, watch, nextTick, markRaw, watchEffect, h, onMounted, toRaw, render, toRef } from "vue";
|
|
11
11
|
|
|
12
12
|
import { localeContextKey as localeContextKey$1, ElMessage, ElTooltip, ElScrollbar, ElDivider, ElColorPicker, ElSwitch, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElDrawer, ElMenuItem, ElSubMenu, ElMenu, ElContainer, ElCol, ElFormItem, ElInput, ElSelect, ElOption, ElDatePicker, ElInputNumber, ElForm, ElRow, ElButton, ElTable, ElTableColumn, ElCheckbox, ElMessageBox, ElPagination, ElDialog, ElTag, ElRadioGroup, ElRadio, ElUpload, ElImageViewer, ElImage, ElTreeSelect, ElCascader, ElTimeSelect, ElCheckboxGroup, ElEmpty, ElPopover, ElPopconfirm } from "element-plus";
|
|
13
13
|
|
|
@@ -1140,11 +1140,11 @@ function useChangeColor() {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
|
-
const {getLightColor: getLightColor$
|
|
1143
|
+
const {getLightColor: getLightColor$5} = useChangeColor(), nextUseCssVar = (cssvar, value) => {
|
|
1144
1144
|
document.documentElement.style.setProperty(cssvar, value);
|
|
1145
1145
|
}, nextUseCssTheme = (cssvar, value) => {
|
|
1146
1146
|
nextUseCssVar(cssvar, value);
|
|
1147
|
-
for (let i = 1; i < 10; i++) nextUseCssVar(cssvar + "-light-" + i, getLightColor$
|
|
1147
|
+
for (let i = 1; i < 10; i++) nextUseCssVar(cssvar + "-light-" + i, getLightColor$5(value, i / 10));
|
|
1148
1148
|
nextUseCssVar(`${cssvar}-dark-2`, value);
|
|
1149
1149
|
}, updateThemeColor = color => {
|
|
1150
1150
|
color && nextUseCssTheme("--el-color-primary", color);
|
|
@@ -1290,7 +1290,7 @@ var defaultConfig$5 = {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
|
-
const ns$
|
|
1293
|
+
const ns$n = useNamespace("text-ellipsis");
|
|
1294
1294
|
|
|
1295
1295
|
const NextTextEllipsis = withInstall(defineComponent({
|
|
1296
1296
|
name: "NextTextEllipsis",
|
|
@@ -1337,7 +1337,7 @@ const NextTextEllipsis = withInstall(defineComponent({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
1339
|
return () => createVNode(Fragment, null, [ createVNode("div", {
|
|
1340
|
-
class: [ ns$
|
|
1340
|
+
class: [ ns$n.b(), props.class ],
|
|
1341
1341
|
style: setWidth.value,
|
|
1342
1342
|
onMouseenter: onMouseenter
|
|
1343
1343
|
}, [ isTip.value ? createVNode(ElTooltip, {
|
|
@@ -1347,11 +1347,11 @@ const NextTextEllipsis = withInstall(defineComponent({
|
|
|
1347
1347
|
disabled: props.disabled
|
|
1348
1348
|
}, {
|
|
1349
1349
|
default: () => [ createVNode("span", {
|
|
1350
|
-
class: ns$
|
|
1350
|
+
class: ns$n.e("text"),
|
|
1351
1351
|
ref: ellipsisRef
|
|
1352
1352
|
}, [ slots.default ? slots.default() : props.content ]) ]
|
|
1353
1353
|
}) : createVNode("span", {
|
|
1354
|
-
class: ns$
|
|
1354
|
+
class: ns$n.e("text"),
|
|
1355
1355
|
ref: ellipsisRef
|
|
1356
1356
|
}, [ slots.default ? slots.default() : props.content ]) ]) ]);
|
|
1357
1357
|
}
|
|
@@ -1711,6 +1711,9 @@ var warning_default = export_helper_default(warning_vue_vue_type_script_lang_def
|
|
|
1711
1711
|
}, {
|
|
1712
1712
|
type: "columns",
|
|
1713
1713
|
text: "分栏"
|
|
1714
|
+
}, {
|
|
1715
|
+
type: "composite",
|
|
1716
|
+
text: "综合"
|
|
1714
1717
|
} ];
|
|
1715
1718
|
return createVNode(ElScrollbar, null, {
|
|
1716
1719
|
default: () => [ createVNode(ElDivider, {
|
|
@@ -1965,9 +1968,9 @@ var HeaderTools = defineComponent({
|
|
|
1965
1968
|
}
|
|
1966
1969
|
});
|
|
1967
1970
|
|
|
1968
|
-
const {getLightColor: getLightColor$
|
|
1971
|
+
const {getLightColor: getLightColor$4} = useChangeColor();
|
|
1969
1972
|
|
|
1970
|
-
var Header$
|
|
1973
|
+
var Header$4 = defineComponent({
|
|
1971
1974
|
setup: () => ({
|
|
1972
1975
|
ns: inject("ns", {})
|
|
1973
1976
|
}),
|
|
@@ -1975,7 +1978,7 @@ var Header$3 = defineComponent({
|
|
|
1975
1978
|
const slots = this.$slots, _ns = this.ns, _config = inject("options", {}), headerStyle = computed((() => {
|
|
1976
1979
|
const {isHeaderBarColorGradual: isHeaderBarColorGradual, headerBarColor: color} = _config.setting;
|
|
1977
1980
|
return isHeaderBarColorGradual ? {
|
|
1978
|
-
background: `linear-gradient(to bottom , ${color}, ${getLightColor$
|
|
1981
|
+
background: `linear-gradient(to bottom , ${color}, ${getLightColor$4(color, .5)})`
|
|
1979
1982
|
} : "";
|
|
1980
1983
|
})), __slots_header_tools = {};
|
|
1981
1984
|
return slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
@@ -2738,7 +2741,7 @@ const NextMenuItem = defineComponent({
|
|
|
2738
2741
|
}, null) ]
|
|
2739
2742
|
}))) ]) ]);
|
|
2740
2743
|
}
|
|
2741
|
-
}), ns$
|
|
2744
|
+
}), ns$m = useNamespace("menu");
|
|
2742
2745
|
|
|
2743
2746
|
const NextMenu = withInstall(defineComponent({
|
|
2744
2747
|
name: "NextMenu",
|
|
@@ -2766,21 +2769,22 @@ const NextMenu = withInstall(defineComponent({
|
|
|
2766
2769
|
}
|
|
2767
2770
|
},
|
|
2768
2771
|
setup(props) {
|
|
2769
|
-
provide("ns", ns$
|
|
2772
|
+
provide("ns", ns$m);
|
|
2770
2773
|
const router = getCurrentInstance().appContext.config.globalProperties.$router, currentPath = router.currentRoute?.value.fullPath, activePath = ref(currentPath);
|
|
2771
2774
|
watch((() => router.currentRoute?.value), (to => {
|
|
2772
2775
|
activePath.value = to.fullPath;
|
|
2773
2776
|
}));
|
|
2774
2777
|
return () => createVNode(Fragment, null, [ createVNode(ElMenu, {
|
|
2775
|
-
class: [ ns$
|
|
2778
|
+
class: [ ns$m.b(), props.className ],
|
|
2776
2779
|
style: props.style,
|
|
2780
|
+
"popper-class": ns$m.b("popper"),
|
|
2777
2781
|
defaultActive: activePath.value,
|
|
2778
2782
|
router: props.router,
|
|
2779
2783
|
mode: props.mode,
|
|
2780
2784
|
ellipsis: !0
|
|
2781
2785
|
}, {
|
|
2782
2786
|
default: () => [ createVNode(Fragment, null, [ props.menuTree.map((item => item.children?.length ? valueExist(item.meta?.isHide, !1) ? null : createVNode(ElSubMenu, {
|
|
2783
|
-
"popper-class": ns$
|
|
2787
|
+
"popper-class": ns$m.b("popper"),
|
|
2784
2788
|
index: item.path || item.id,
|
|
2785
2789
|
teleported: !0
|
|
2786
2790
|
}, {
|
|
@@ -2791,7 +2795,7 @@ const NextMenu = withInstall(defineComponent({
|
|
|
2791
2795
|
menuData: item.children
|
|
2792
2796
|
}, null)
|
|
2793
2797
|
}) : valueExist(item.meta?.isHide, !1) ? null : createVNode(ElMenuItem, {
|
|
2794
|
-
"popper-class": ns$
|
|
2798
|
+
"popper-class": ns$m.b("popper"),
|
|
2795
2799
|
index: item.path
|
|
2796
2800
|
}, {
|
|
2797
2801
|
default: () => [ createVNode(MenuItemTitle, {
|
|
@@ -2802,7 +2806,7 @@ const NextMenu = withInstall(defineComponent({
|
|
|
2802
2806
|
}
|
|
2803
2807
|
}));
|
|
2804
2808
|
|
|
2805
|
-
var Sidebar$
|
|
2809
|
+
var Sidebar$3 = defineComponent({
|
|
2806
2810
|
setup: () => ({
|
|
2807
2811
|
ns: inject("ns", {})
|
|
2808
2812
|
}),
|
|
@@ -2819,11 +2823,11 @@ var Sidebar$2 = defineComponent({
|
|
|
2819
2823
|
}
|
|
2820
2824
|
});
|
|
2821
2825
|
|
|
2822
|
-
const ns$
|
|
2826
|
+
const ns$l = useNamespace("layout-defaults");
|
|
2823
2827
|
|
|
2824
2828
|
var defaults = defineComponent({
|
|
2825
2829
|
props: {},
|
|
2826
|
-
setup: () => (provide("ns", ns$
|
|
2830
|
+
setup: () => (provide("ns", ns$l), {}),
|
|
2827
2831
|
render() {
|
|
2828
2832
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {});
|
|
2829
2833
|
slots.menu;
|
|
@@ -2832,12 +2836,12 @@ var defaults = defineComponent({
|
|
|
2832
2836
|
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2833
2837
|
const isTabs = ref(!!slots.tabs);
|
|
2834
2838
|
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(ElContainer, {
|
|
2835
|
-
class: ns$
|
|
2839
|
+
class: ns$l.b()
|
|
2836
2840
|
}, {
|
|
2837
2841
|
default: () => {
|
|
2838
|
-
return [ createVNode(Sidebar$
|
|
2839
|
-
class: [ ns$
|
|
2840
|
-
}, [ createVNode(Header$
|
|
2842
|
+
return [ createVNode(Sidebar$3, null, null), createVNode("div", {
|
|
2843
|
+
class: [ ns$l.b("content") ]
|
|
2844
|
+
}, [ createVNode(Header$4, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
2841
2845
|
default: () => [ __slots_header_tools ]
|
|
2842
2846
|
})), _config.showTabs ? slots.tabs ? slots.tabs?.() : createVNode(NextTabs, {
|
|
2843
2847
|
tabs: _config.tabs,
|
|
@@ -2846,7 +2850,7 @@ var defaults = defineComponent({
|
|
|
2846
2850
|
onSelect: (...arg) => _emit("tabsSelect", ...arg),
|
|
2847
2851
|
onClose: (...arg) => _emit("tabsClose", ...arg)
|
|
2848
2852
|
}, null) : null, createVNode("main", {
|
|
2849
|
-
class: [ ns$
|
|
2853
|
+
class: [ ns$l.bf("main"), ns$l.is("layout-tabs", isTabs.value) ]
|
|
2850
2854
|
}, [ slots.default?.() ]) ]) ];
|
|
2851
2855
|
var s;
|
|
2852
2856
|
}
|
|
@@ -2854,14 +2858,14 @@ var defaults = defineComponent({
|
|
|
2854
2858
|
}
|
|
2855
2859
|
});
|
|
2856
2860
|
|
|
2857
|
-
const {getLightColor: getLightColor$
|
|
2861
|
+
const {getLightColor: getLightColor$3} = useChangeColor();
|
|
2858
2862
|
|
|
2859
|
-
var Header$
|
|
2863
|
+
var Header$3 = defineComponent({
|
|
2860
2864
|
setup(props, {slots: slots}) {
|
|
2861
2865
|
const _ns = inject("ns", {}), _config = inject("options", {}), headerStyle = computed((() => {
|
|
2862
2866
|
const {isHeaderBarColorGradual: isHeaderBarColorGradual, headerBarColor: color} = _config.setting;
|
|
2863
2867
|
return isHeaderBarColorGradual ? {
|
|
2864
|
-
background: `linear-gradient(to bottom , ${color}, ${getLightColor$
|
|
2868
|
+
background: `linear-gradient(to bottom , ${color}, ${getLightColor$3(color, .5)})`
|
|
2865
2869
|
} : "";
|
|
2866
2870
|
})), __slots_header_tools = {};
|
|
2867
2871
|
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
@@ -2886,18 +2890,18 @@ var Header$2 = defineComponent({
|
|
|
2886
2890
|
}
|
|
2887
2891
|
});
|
|
2888
2892
|
|
|
2889
|
-
const ns$
|
|
2893
|
+
const ns$k = useNamespace("layout-transverse");
|
|
2890
2894
|
|
|
2891
2895
|
var transverse = defineComponent({
|
|
2892
2896
|
props: {},
|
|
2893
|
-
setup: () => (provide("ns", ns$
|
|
2897
|
+
setup: () => (provide("ns", ns$k), {}),
|
|
2894
2898
|
render() {
|
|
2895
2899
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {}), __slots_header = {};
|
|
2896
2900
|
slots[slots_config_headerMenu] && (__slots_header[slots_config_headerMenu] = () => slots[slots_config_headerMenu]()),
|
|
2897
2901
|
slots[slots_config_headerToolsPrefix] && (__slots_header[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
2898
2902
|
slots[slots_config_headerToolsSuffix] && (__slots_header[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2899
2903
|
const isTabs = ref(!!slots.tabs);
|
|
2900
|
-
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(Fragment, null, [ createVNode(Header$
|
|
2904
|
+
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(Fragment, null, [ createVNode(Header$3, null, (s = __slots_header,
|
|
2901
2905
|
"function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header : {
|
|
2902
2906
|
default: () => [ __slots_header ]
|
|
2903
2907
|
})), _config.showTabs ? slots.tabs ? slots.tabs?.() : createVNode(NextTabs, {
|
|
@@ -2907,20 +2911,20 @@ var transverse = defineComponent({
|
|
|
2907
2911
|
onSelect: (...arg) => _emit("tabsSelect", ...arg),
|
|
2908
2912
|
onClose: (...arg) => _emit("tabsClose", ...arg)
|
|
2909
2913
|
}, null) : null, createVNode("main", {
|
|
2910
|
-
class: [ ns$
|
|
2914
|
+
class: [ ns$k.b("main"), ns$k.is("layout-tabs", isTabs.value) ]
|
|
2911
2915
|
}, [ slots.default?.() ]) ]);
|
|
2912
2916
|
var s;
|
|
2913
2917
|
}
|
|
2914
2918
|
});
|
|
2915
2919
|
|
|
2916
|
-
const {getLightColor: getLightColor$
|
|
2920
|
+
const {getLightColor: getLightColor$2} = useChangeColor();
|
|
2917
2921
|
|
|
2918
|
-
var Header$
|
|
2922
|
+
var Header$2 = defineComponent({
|
|
2919
2923
|
setup(props, {slots: slots}) {
|
|
2920
2924
|
const _ns = inject("ns", {}), _config = inject("options", {}), headerStyle = computed((() => {
|
|
2921
2925
|
const {isHeaderBarColorGradual: isHeaderBarColorGradual, headerBarColor: color} = _config.setting;
|
|
2922
2926
|
return isHeaderBarColorGradual ? {
|
|
2923
|
-
background: `linear-gradient(to bottom , ${color}, ${getLightColor$
|
|
2927
|
+
background: `linear-gradient(to bottom , ${color}, ${getLightColor$2(color, .5)})`
|
|
2924
2928
|
} : "";
|
|
2925
2929
|
})), __slots_header_tools = {};
|
|
2926
2930
|
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
@@ -2939,7 +2943,7 @@ var Header$1 = defineComponent({
|
|
|
2939
2943
|
var s;
|
|
2940
2944
|
};
|
|
2941
2945
|
}
|
|
2942
|
-
}), Sidebar$
|
|
2946
|
+
}), Sidebar$2 = defineComponent({
|
|
2943
2947
|
setup: () => ({
|
|
2944
2948
|
ns: inject("ns", {})
|
|
2945
2949
|
}),
|
|
@@ -2954,11 +2958,11 @@ var Header$1 = defineComponent({
|
|
|
2954
2958
|
}
|
|
2955
2959
|
});
|
|
2956
2960
|
|
|
2957
|
-
const ns$
|
|
2961
|
+
const ns$j = useNamespace("layout-columns");
|
|
2958
2962
|
|
|
2959
2963
|
var columns = defineComponent({
|
|
2960
2964
|
props: {},
|
|
2961
|
-
setup: () => (provide("ns", ns$
|
|
2965
|
+
setup: () => (provide("ns", ns$j), {}),
|
|
2962
2966
|
render() {
|
|
2963
2967
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {}), __slots_header = {};
|
|
2964
2968
|
slots[slots_config_headerMenu] && (__slots_header[slots_config_headerMenu] = () => slots[slots_config_headerMenu]()),
|
|
@@ -2966,12 +2970,12 @@ var columns = defineComponent({
|
|
|
2966
2970
|
slots[slots_config_headerToolsSuffix] && (__slots_header[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2967
2971
|
const isTabs = ref(!!slots.tabs);
|
|
2968
2972
|
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(ElContainer, {
|
|
2969
|
-
class: ns$
|
|
2973
|
+
class: ns$j.b()
|
|
2970
2974
|
}, {
|
|
2971
2975
|
default: () => {
|
|
2972
|
-
return [ createVNode(Sidebar$
|
|
2973
|
-
class: [ ns$
|
|
2974
|
-
}, [ createVNode(Header$
|
|
2976
|
+
return [ createVNode(Sidebar$2, null, null), createVNode("div", {
|
|
2977
|
+
class: [ ns$j.b("content") ]
|
|
2978
|
+
}, [ createVNode(Header$2, null, (s = __slots_header, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header : {
|
|
2975
2979
|
default: () => [ __slots_header ]
|
|
2976
2980
|
})), _config.showTabs ? slots.tabs ? slots.tabs?.() : createVNode(NextTabs, {
|
|
2977
2981
|
tabs: _config.tabs,
|
|
@@ -2980,7 +2984,7 @@ var columns = defineComponent({
|
|
|
2980
2984
|
onSelect: (...arg) => _emit("tabsSelect", ...arg),
|
|
2981
2985
|
onClose: (...arg) => _emit("tabsClose", ...arg)
|
|
2982
2986
|
}, null) : null, createVNode("main", {
|
|
2983
|
-
class: [ ns$
|
|
2987
|
+
class: [ ns$j.bf("main"), ns$j.is("layout-tabs", isTabs.value) ]
|
|
2984
2988
|
}, [ slots.default?.() ]) ]) ];
|
|
2985
2989
|
var s;
|
|
2986
2990
|
}
|
|
@@ -2988,14 +2992,14 @@ var columns = defineComponent({
|
|
|
2988
2992
|
}
|
|
2989
2993
|
});
|
|
2990
2994
|
|
|
2991
|
-
const {getLightColor: getLightColor} = useChangeColor();
|
|
2995
|
+
const {getLightColor: getLightColor$1} = useChangeColor();
|
|
2992
2996
|
|
|
2993
|
-
var Header = defineComponent({
|
|
2997
|
+
var Header$1 = defineComponent({
|
|
2994
2998
|
setup(props, {slots: slots}) {
|
|
2995
2999
|
const _ns = inject("ns", {}), _config = inject("options", {}), headerStyle = computed((() => {
|
|
2996
3000
|
const {isHeaderBarColorGradual: isHeaderBarColorGradual, headerBarColor: color} = _config.setting;
|
|
2997
3001
|
return isHeaderBarColorGradual ? {
|
|
2998
|
-
background: `linear-gradient(to bottom , ${color}, ${getLightColor(color, .5)})`
|
|
3002
|
+
background: `linear-gradient(to bottom , ${color}, ${getLightColor$1(color, .5)})`
|
|
2999
3003
|
} : "";
|
|
3000
3004
|
})), __slots_header_tools = {};
|
|
3001
3005
|
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
@@ -3014,7 +3018,7 @@ var Header = defineComponent({
|
|
|
3014
3018
|
var s;
|
|
3015
3019
|
};
|
|
3016
3020
|
}
|
|
3017
|
-
}), Sidebar = defineComponent({
|
|
3021
|
+
}), Sidebar$1 = defineComponent({
|
|
3018
3022
|
setup: () => ({
|
|
3019
3023
|
ns: inject("ns", {})
|
|
3020
3024
|
}),
|
|
@@ -3031,13 +3035,162 @@ var Header = defineComponent({
|
|
|
3031
3035
|
}
|
|
3032
3036
|
});
|
|
3033
3037
|
|
|
3034
|
-
const ns$
|
|
3038
|
+
const ns$i = useNamespace("layout-classic");
|
|
3035
3039
|
|
|
3036
3040
|
var classic = defineComponent({
|
|
3037
3041
|
props: {},
|
|
3038
|
-
setup: () => (provide("ns", ns$
|
|
3039
|
-
ns: ns$
|
|
3042
|
+
setup: () => (provide("ns", ns$i), {
|
|
3043
|
+
ns: ns$i
|
|
3040
3044
|
}),
|
|
3045
|
+
render() {
|
|
3046
|
+
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {});
|
|
3047
|
+
slots.menu;
|
|
3048
|
+
const __slots_header_tools = {};
|
|
3049
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
3050
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
3051
|
+
const isTabs = ref(!!slots.tabs);
|
|
3052
|
+
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(Fragment, null, [ createVNode(Header$1, null, (s = __slots_header_tools,
|
|
3053
|
+
"function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
3054
|
+
default: () => [ __slots_header_tools ]
|
|
3055
|
+
})), createVNode("div", {
|
|
3056
|
+
class: [ ns$i.b("content"), ns$i.is("layout-tabs", isTabs.value) ]
|
|
3057
|
+
}, [ createVNode(Sidebar$1, null, null), createVNode("div", {
|
|
3058
|
+
class: ns$i.b("container")
|
|
3059
|
+
}, [ _config.showTabs ? slots.tabs ? slots.tabs?.() : createVNode(NextTabs, {
|
|
3060
|
+
tabs: _config.tabs,
|
|
3061
|
+
activeTab: _config.activeTab,
|
|
3062
|
+
onChange: (...arg) => _emit("tabsChange", ...arg),
|
|
3063
|
+
onSelect: (...arg) => _emit("tabsSelect", ...arg),
|
|
3064
|
+
onClose: (...arg) => _emit("tabsClose", ...arg)
|
|
3065
|
+
}, null) : null, createVNode("main", {
|
|
3066
|
+
class: [ ns$i.b("main") ]
|
|
3067
|
+
}, [ slots.default?.() ]) ]) ]) ]);
|
|
3068
|
+
var s;
|
|
3069
|
+
}
|
|
3070
|
+
});
|
|
3071
|
+
|
|
3072
|
+
const findParentNode = (path, tree) => {
|
|
3073
|
+
for (const node of tree) {
|
|
3074
|
+
if (node.children?.some((child => child.path === path))) return node;
|
|
3075
|
+
if (node.children) {
|
|
3076
|
+
const parent = findParentNode(path, node.children);
|
|
3077
|
+
if (parent) return parent;
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
return null;
|
|
3081
|
+
}, ns$h = useNamespace("menu");
|
|
3082
|
+
|
|
3083
|
+
var MenuTop = defineComponent({
|
|
3084
|
+
props: {
|
|
3085
|
+
className: {
|
|
3086
|
+
type: String,
|
|
3087
|
+
default: ""
|
|
3088
|
+
},
|
|
3089
|
+
style: {
|
|
3090
|
+
type: Object,
|
|
3091
|
+
default: () => ({})
|
|
3092
|
+
},
|
|
3093
|
+
menuTree: {
|
|
3094
|
+
type: Array,
|
|
3095
|
+
default: () => []
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
setup(props) {
|
|
3099
|
+
provide("ns", ns$h);
|
|
3100
|
+
const updateSubmentTree = inject("updateSubmentTree"), router = getCurrentInstance().appContext.config.globalProperties.$router, currentPath = router.currentRoute?.value.fullPath, parentNode = findParentNode(currentPath, props.menuTree), activeMenuId = ref(parentNode?.id);
|
|
3101
|
+
parentNode?.id && updateSubmentTree(parentNode.children), watch((() => router.currentRoute?.value), (to => {
|
|
3102
|
+
const parentNode = findParentNode(to.fullPath, props.menuTree);
|
|
3103
|
+
activeMenuId.value = parentNode?.id, parentNode?.id && updateSubmentTree(parentNode.children);
|
|
3104
|
+
}));
|
|
3105
|
+
const findTreeFirst = tree => {
|
|
3106
|
+
let result = tree[0];
|
|
3107
|
+
for (let i = 0; i < tree.length; i++) {
|
|
3108
|
+
const node = tree[i];
|
|
3109
|
+
if (node.children?.length && (result = findTreeFirst(node.children), result)) break;
|
|
3110
|
+
}
|
|
3111
|
+
return result;
|
|
3112
|
+
}, renderContent = () => createVNode(ElMenu, {
|
|
3113
|
+
class: [ ns$h.b(), props.className ],
|
|
3114
|
+
style: props.style,
|
|
3115
|
+
"popper-class": ns$h.b("popper"),
|
|
3116
|
+
defaultActive: activeMenuId.value,
|
|
3117
|
+
mode: "horizontal",
|
|
3118
|
+
ellipsis: !0
|
|
3119
|
+
}, {
|
|
3120
|
+
default: () => [ createVNode(Fragment, null, [ props.menuTree.map((item => valueExist(item.meta?.isHide, !1) ? null : createVNode(ElMenuItem, {
|
|
3121
|
+
index: item.id,
|
|
3122
|
+
onClick: val => ((val, item) => {
|
|
3123
|
+
if (updateSubmentTree(item.children), item.children?.length) {
|
|
3124
|
+
const firstNode = findTreeFirst(item.children);
|
|
3125
|
+
router.push(firstNode.path);
|
|
3126
|
+
} else router.push(item.path);
|
|
3127
|
+
})(0, item)
|
|
3128
|
+
}, {
|
|
3129
|
+
default: () => [ createVNode(MenuItemTitle, {
|
|
3130
|
+
meta: item.meta
|
|
3131
|
+
}, null) ]
|
|
3132
|
+
}))) ]) ]
|
|
3133
|
+
});
|
|
3134
|
+
return () => createVNode(Fragment, null, [ renderContent() ]);
|
|
3135
|
+
}
|
|
3136
|
+
});
|
|
3137
|
+
|
|
3138
|
+
const {getLightColor: getLightColor} = useChangeColor();
|
|
3139
|
+
|
|
3140
|
+
var Header = defineComponent({
|
|
3141
|
+
setup(props, {slots: slots}) {
|
|
3142
|
+
const _ns = inject("ns", {}), _config = inject("options", {}), headerStyle = computed((() => {
|
|
3143
|
+
const {isHeaderBarColorGradual: isHeaderBarColorGradual, headerBarColor: color} = _config.setting;
|
|
3144
|
+
return isHeaderBarColorGradual ? {
|
|
3145
|
+
background: `linear-gradient(to bottom , ${color}, ${getLightColor(color, .5)})`
|
|
3146
|
+
} : "";
|
|
3147
|
+
})), __slots_header_tools = {};
|
|
3148
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
3149
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
3150
|
+
return () => {
|
|
3151
|
+
return createVNode(Fragment, null, [ createVNode("header", {
|
|
3152
|
+
class: _ns.b("header"),
|
|
3153
|
+
style: headerStyle.value
|
|
3154
|
+
}, [ createVNode(LogoView, null, null), createVNode("div", {
|
|
3155
|
+
class: _ns.bf("header", "menu")
|
|
3156
|
+
}, [ slots[slots_config_headerMenu] ? slots[slots_config_headerMenu]() : createVNode(MenuTop, {
|
|
3157
|
+
menuTree: _config.menuTree
|
|
3158
|
+
}, null) ]), createVNode("div", {
|
|
3159
|
+
class: _ns.bf("header", "right")
|
|
3160
|
+
}, [ createVNode(HeaderTools, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
3161
|
+
default: () => [ __slots_header_tools ]
|
|
3162
|
+
})) ]) ]) ]);
|
|
3163
|
+
var s;
|
|
3164
|
+
};
|
|
3165
|
+
}
|
|
3166
|
+
}), Sidebar = defineComponent({
|
|
3167
|
+
setup(props, {slots: slots}) {
|
|
3168
|
+
const ns = inject("ns", {}), submenuTree = inject("submenuTree", []);
|
|
3169
|
+
return () => createVNode(Fragment, null, [ 0 === submenuTree.value.length ? null : createVNode("aside", {
|
|
3170
|
+
class: ns.b("sidebar")
|
|
3171
|
+
}, [ slots[slots_config_headerMenu] ? slots[slots_config_headerMenu]() : createVNode(NextMenu, {
|
|
3172
|
+
mode: "vertical",
|
|
3173
|
+
menuTree: submenuTree.value
|
|
3174
|
+
}, null) ]) ]);
|
|
3175
|
+
}
|
|
3176
|
+
});
|
|
3177
|
+
|
|
3178
|
+
const ns$g = useNamespace("layout-composite");
|
|
3179
|
+
|
|
3180
|
+
var composite = defineComponent({
|
|
3181
|
+
props: {},
|
|
3182
|
+
setup() {
|
|
3183
|
+
provide("ns", ns$g);
|
|
3184
|
+
const submenuTree = ref([]);
|
|
3185
|
+
return provide("submenuTree", submenuTree), provide("updateSubmentTree", (val => {
|
|
3186
|
+
submenuTree.value = [], nextTick((() => {
|
|
3187
|
+
submenuTree.value = val;
|
|
3188
|
+
}));
|
|
3189
|
+
})), {
|
|
3190
|
+
ns: ns$g,
|
|
3191
|
+
submenuTree: submenuTree
|
|
3192
|
+
};
|
|
3193
|
+
},
|
|
3041
3194
|
render() {
|
|
3042
3195
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {});
|
|
3043
3196
|
slots.menu;
|
|
@@ -3069,7 +3222,8 @@ const ns$f = useNamespace("layout"), layouts = {
|
|
|
3069
3222
|
defaults: markRaw(defaults),
|
|
3070
3223
|
transverse: markRaw(transverse),
|
|
3071
3224
|
columns: markRaw(columns),
|
|
3072
|
-
classic: markRaw(classic)
|
|
3225
|
+
classic: markRaw(classic),
|
|
3226
|
+
composite: markRaw(composite)
|
|
3073
3227
|
}, customizerCoverArray = (objValue, srcValue) => {
|
|
3074
3228
|
if (Array.isArray(objValue)) return srcValue;
|
|
3075
3229
|
};
|
|
@@ -8276,7 +8430,7 @@ const zoomDialog = app => {
|
|
|
8276
8430
|
}));
|
|
8277
8431
|
}
|
|
8278
8432
|
});
|
|
8279
|
-
}, version = "0.4.
|
|
8433
|
+
}, version = "0.4.3", install = function(app) {
|
|
8280
8434
|
Object.keys(components).forEach((key => {
|
|
8281
8435
|
const component = components[key];
|
|
8282
8436
|
app.component(component.name, component);
|
|
@@ -8286,7 +8440,7 @@ const zoomDialog = app => {
|
|
|
8286
8440
|
};
|
|
8287
8441
|
|
|
8288
8442
|
var index = {
|
|
8289
|
-
version: "0.4.
|
|
8443
|
+
version: "0.4.3",
|
|
8290
8444
|
install: install
|
|
8291
8445
|
};
|
|
8292
8446
|
|