@flatbiz/pro-layout 5.0.18 → 5.0.19
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.d.ts +10 -2
- package/dist/index.js +129 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bread-wrapper{align-items:center;border-radius:6px;display:flex;justify-content:space-between;margin-bottom:5px;padding:3px 15px 6px 8px}.bread-wrapper .bread{display:inline-block}.bread-wrapper .ant-breadcrumb ol{margin:0;padding:0}.bread-extend{flex:1}.header-account{color:unset;cursor:pointer;flex-shrink:0;height:100%;line-height:normal;margin-right:20px}.header-account:hover{background:var(--header-menuSelectedBgColor);color:var(--header-menuSelectedTextColor)}.header-account .header-account-wraper{align-items:center;display:flex;height:100%;padding:0 15px}.header-account .header-account-wraper img.user-avatar{border-radius:100%;height:24px;object-fit:cover;width:24px}.account-dropdown-overlay{box-shadow:0 4px 8px 0 rgba(0,0,0,.08);z-index:900}.layout-brand{align-items:center;background:var(--header-bgColor);color:var(--header-textColor);display:flex;justify-content:center;overflow:hidden;position:relative;transition:all .2s;white-space:nowrap}.brand-logo{background-position:50%;background-repeat:no-repeat;background-size:40px 100%;height:100%;width:40px}.brand-name{font-size:18px;margin-left:15px;white-space:nowrap}.ant-layout-sider-collapsed .layout-brand{display:block;overflow:hidden}.ant-layout-sider-collapsed .brand-logo{width:60px}.flatbiz-layout-main-header{background:var(--header-bgColor);color:var(--header-textColor);display:flex;flex-shrink:0;z-index:10}.flatbiz-layout-system-name{align-items:center;color:unset;display:flex;flex-shrink:0;font-size:18px;margin-left:15px}.flatbiz-layout-header-fill{display:flex;flex:1;justify-content:flex-end;overflow:hidden}.flatbiz-layout-header-fill>.ant-menu{background:unset;border-bottom:none;height:unset}.flatbiz-layout-header-fill>.ant-menu.ant-menu-horizontal{border-bottom:none;line-height:inherit}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item{align-items:center;border-radius:0!important;display:flex}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item:hover:after{border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item:after{border-bottom:0;bottom:12px}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-selected:after{background:var(--header-menuSelectedTextColor);border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-active:not(.ant-menu-item-selected){background:var(--header-menuActiveBgColor)}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-active:not(.ant-menu-item-selected):after{background:var(--header-menuActiveTextColor);border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item-active:after,.flatbiz-layout-header-fill>.ant-menu .ant-menu-item-selected:after{border-radius:3px;bottom:12px;content:"";height:3px;left:50%!important;min-width:22px;position:absolute;transform:translateX(-50%);width:30%}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest{align-items:center;background-color:transparent!important;display:flex}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest .ant-menu-submenu-title{color:var(--header-textColor)!important}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest .ant-menu-submenu-title:hover{color:unset!important}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest:after{width:0}.flatbiz-layout-topmenu{flex:1;overflow:hidden}.flatbiz-layout-main-header-has-menu .flatbiz-layout-header-fill{justify-content:space-between}.flatbiz-layout-topmenu-overflowed-modal .ant-menu-submenu{background-color:transparent!important}.light-theme .flatbiz-layout-topmenu-overflowed-modal .ant-menu-item{color:#000!important}.dark-theme .flatbiz-layout-topmenu-overflowed-modal .ant-menu-item{color:#fff}.loader{align-items:center;background-color:var(--block-bg-color);bottom:0;display:flex;justify-content:center;left:0;opacity:1;position:absolute;right:0;text-align:center;top:0;z-index:100000}.loader.fullScreen{position:fixed}.loader .loader-wrapper{display:inline-flex;flex-direction:column;height:100px;justify-content:space-around;width:100px}.loader .loader-inner{animation:spinner .6s linear infinite;border:2px solid rgba(0,128,227,.08);border-left-color:rgba(0,84,153,.7);border-radius:50%;height:30px;margin:0 auto;text-indent:-12345px;width:30px;z-index:100001}.loader .loader-text{color:#0080e3;font-size:12px;height:20px;letter-spacing:4px;text-align:center;width:100px}.loader.hidden{display:none}@keyframes spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.page{flex:1;overflow-x:hidden;overflow-y:auto;position:relative}.page-flex{display:flex;flex-direction:column}.page-full{flex:1;overflow-y:auto}.layout-shrink{align-items:center;cursor:pointer;display:flex;font-size:18px;justify-content:center;padding:10px 0;transition:all .3s ease-out}.sider-bar-shrink{background-color:var(--sidebar-bgColor);box-shadow:0 0 17px rgba(0,0,0,.1);color:var(--sidebar-menuSelectedTextColor)}.sider-bar-shrink:hover{color:var(--sidebar-menuSelectedBgColor)}.header-shrink{color:var(--header-textColor);width:50px}.header-shrink:hover{color:var(--header-menuSelectedBgColor)}.icon-change-show-active .menu-icon-img-active{display:block}.icon-change-show-active .menu-icon-img{display:none}.menu-icon-img,.menu-icon-img-active{background-position:0;background-repeat:no-repeat;background-size:100% 100%;display:none;flex-shrink:0;height:16px;width:16px}.menu-icon-img{display:block}.flatbiz-layout-sider{display:flex;flex:1!important;flex-direction:column;height:100%;overflow:hidden;z-index:10}.flatbiz-layout-sider .ant-layout-sider-children{display:flex;flex-direction:column}.flatbiz-layout-sider .ant-layout-sider-children>.ant-menu-root{padding-bottom:30px}.flatbiz-layout-sider .ant-menu-root{flex:1;overflow-x:hidden;overflow-y:auto}.flatbiz-layout-sider .ant-menu-title-content{margin-left:5px}.flatbiz-layout-sider .ant-menu-item-selected .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-item-selected .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-item-active .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-item-active .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-submenu-active .ant-menu-submenu-title .menu-icon-img-active,.flatbiz-layout-sider .ant-menu-submenu-selected .ant-menu-submenu-title .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-submenu-active .ant-menu-submenu-title .menu-icon-img,.flatbiz-layout-sider .ant-menu-submenu-selected .ant-menu-submenu-title .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-light.ant-menu-root.ant-menu-inline,.flatbiz-layout-sider .ant-menu-light.ant-menu-root.ant-menu-vertical{border-inline-end:none}.ant-menu-root.ant-menu-inline-collapsed>.ant-menu-submenu .ant-menu-submenu-title{align-items:center;display:flex}.ant-menu-root.ant-menu-inline-collapsed>.ant-menu-submenu .ant-menu-submenu-title>.ant-menu-title-content{display:none}.ant-menu-root.ant-menu-inline-collapsed>.ant-menu-item,.menu-icon-wrapper{align-items:center;display:flex}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .menu-icon-img-active{display:block}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .menu-icon-img{display:none}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .ant-menu-title-content{color:var(--sidebar-menuSelectedTextColor)}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .menu-icon-img-active{display:block}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .menu-icon-img{display:none}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .ant-menu-title-content{color:var(--sidebar-menuSelectedTextColor)}.flatbiz-layout-sider-submenu-popup .ant-menu-item{align-items:center!important;display:flex!important}.flatbiz-layout-sider-submenu-popup .ant-menu-title-content{color:rgba(0,0,0,.88);margin-left:5px}.sider-bar-search{align-items:center;background-color:var(--sidebar-bgColor);display:flex;padding:10px}.sider-bar-search input{background-color:transparent}.sider-bar-search:not(.sider-bar-search-bgfff) input{color:#fff}.sider-bar-search:not(.sider-bar-search-bgfff) input::placeholder{color:#fff}.flatbiz-layout-sider .ant-menu:not(.ant-menu-inline-collapsed) .sider-bar-menu-badge-parent{align-items:center;display:flex;justify-content:center;position:absolute;right:40px}.sider-bar-menu-badge{align-items:center;display:flex;justify-content:center;position:absolute;right:15px}.iframe-tabs{overflow:hidden;z-index:5}.iframe-tabs .ant-tabs-tab{background:transparent!important;border:none!important;border-radius:0!important;height:38px;margin:0!important;padding:0 16px!important}.iframe-tabs .ant-tabs-tab.ant-tabs-tab-active{background-color:var(--bg-color)!important;border-bottom:none!important}.iframe-tabs .ant-tabs-tab-btn{margin:0 auto}.iframe-tabs .ant-tabs-tab-remove{display:flex;height:16px;margin-left:4px;padding:0;width:16px}.iframe-tabs .tab-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAV5JREFUWEftVTtSwzAQfZuchJqL2KGJDAMFyKkIDZ+GUJGZDNDwafg0QGUbCpjBdkPsg3AALoKXUUhsF8YfKNRYnaTdt2/falcEzYs0x0dLoFWgVaBSAeftfdLtdtaY6UQK47VO23pBvE7g868kcQarK5Myn0oCT2H0wYxlBdIB2ZvC8MoAvTC2wewoGwI+t4S59C8CKhuAXxYgzDy0rd5jEagXREMA99kdbVSpVqmAAnsOYpmA3RzwnhTGXZ6E60f7RLhOz4gGsm/kfIp1qEVAubr+dJuIHrIAPJL93pXae340AuEiF2JHCjOzLalBbQKzQEG8C/BtWg5gPK/1aVYiHNiWeVPnsc5965r+2Hnh9BBMl4VejCNpmcV3v4RppMACww2iYwLSrNU5A2NbmGfN0pl1SvOllYDWEmh9hFrbUOsg0j6KtX9G2r/j5lOimcefBlGzEOXWLYFWgVaBb9EEtCFLbAZ7AAAAAElFTkSuQmCC);background-size:100% 100%;border-radius:100%;display:inline-block;height:100%;width:100%}.iframe-tabs .tab-icon:hover{background-color:#f96868;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASdJREFUWEftljtOBDEQRF8dhZjrIIhYIpaET8ISsRICEj4JCwkQARGchwNwk0KWvFJrNcN4dpCcjKORu11dXW13j6i8VDk+I4FRgVGBTgVsXwBbwKWkr5Jna3sbuAHeJKXzrauEwDewmREmkj7+ArQ9SYGzz4+kjaEEUjafAWQq6bUJ1PYUeA62nS7VOhVIYLZ3gfcAfCTpKZKwfQw8hL09SfFMoxBFBDKJfeAloMwk3WfbDLgNtgNJ0Xf9O7CS5SHwGPbm+fsq7J1IWpRc1uRTrMAS0PYpcNcS4ExSm21YCVaUOAdi1sk8l3RdmvnSr7cCueb1CFQtge16l9B2vWdYtRHlwVKvFduuPozqjuO+jaWv/1qNqG+QQf8D/xmsCWtUYFSgugK/gSWEIdTkUcAAAAAASUVORK5CYII=");background-size:100% 100%}.iframe-tabs .ant-tabs-nav{background-color:var(--block-bg-color);margin:0!important}.iframe-tabs .ant-tabs-nav:before{border:none!important}.iframe-tabs .ant-tabs-content{height:100%}.iframe-tabs .ant-tabs-extra-content{margin-right:20px}.iframe-tabs .menu-tabs-operate{text-align:center;width:24px}.content-top-menus{margin:0}.content-top-menus .ant-tabs-tab{background:transparent!important;border:none!important;border-radius:0!important;height:38px;margin:0!important;padding:0 16px!important}.content-top-menus .ant-tabs-tab.ant-tabs-tab-active{background-color:var(--bg-color)!important;border-bottom:none!important}.content-top-menus .ant-tabs-nav{background-color:var(--block-bg-color);margin:0!important}.content-top-menus .ant-tabs-nav:before{border:none!important}.iframe-tabs-tab-badge{position:absolute}.iframe-tabs-tab-badge .ant-badge-dot{transform:none!important}.layout-page-wrapper{background:var(--bg-color);flex:1;padding:8px 8px 0}.layout-page,.layout-page-wrapper{height:100%;overflow:hidden;position:relative}.layout-page{display:flex;flex-direction:column}.layout-page-noheader{padding:0}.layout-page-noheader .bread-wrapper{padding:5px 15px 5px 8px}.layout-page-noheader .page{padding:0 8px 8px}#app,#app>.ant-app,body,html{height:100%;margin:0;width:100%}*,:after,:before{box-sizing:border-box}#app{background-color:var(--bg-color)}.flatbiz-layout{bottom:0;display:flex;flex-direction:row;height:100vh;left:0;overflow:auto;position:fixed;right:0;top:0}.flatbiz-layout-main{display:flex;flex:1;overflow:hidden}.flatbiz-layout-main-content{flex:1;overflow-y:auto}.flatbiz-layout-windows ::-webkit-scrollbar,.layout-page-windows ::-webkit-scrollbar,.page-windows ::-webkit-scrollbar{background-color:#eee;height:8px;width:8px}.flatbiz-layout-windows ::-webkit-scrollbar-thumb,.layout-page-windows ::-webkit-scrollbar-thumb,.page-windows ::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.flatbiz-layout-windows ::-webkit-scrollbar-thumb:hover,.layout-page-windows ::-webkit-scrollbar-thumb:hover,.page-windows ::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}.flatbiz-layout-windows ::-webkit-scrollbar-thumb:active,.layout-page-windows ::-webkit-scrollbar-thumb:active,.page-windows ::-webkit-scrollbar-thumb:active{background-color:#787878}
|
|
1
|
+
.bread-wrapper{align-items:center;border-radius:6px;display:flex;justify-content:space-between;margin-bottom:5px;padding:3px 15px 6px 8px}.bread-wrapper .bread{display:inline-block}.bread-wrapper .ant-breadcrumb ol{margin:0;padding:0}.bread-extend{flex:1}.dev-float-help-active .ant-float-btn-body:hover{background-color:transparent!important}.header-account{color:unset;cursor:pointer;flex-shrink:0;height:100%;line-height:normal;margin-right:20px}.header-account:hover{background:var(--header-menuSelectedBgColor);color:var(--header-menuSelectedTextColor)}.header-account .header-account-wraper{align-items:center;display:flex;height:100%;padding:0 15px}.header-account .header-account-wraper img.user-avatar{border-radius:100%;height:24px;object-fit:cover;width:24px}.account-dropdown-overlay{box-shadow:0 4px 8px 0 rgba(0,0,0,.08);z-index:900}.layout-brand{align-items:center;background:var(--header-bgColor);color:var(--header-textColor);display:flex;justify-content:center;overflow:hidden;position:relative;transition:all .2s;white-space:nowrap}.brand-logo{background-position:50%;background-repeat:no-repeat;background-size:40px 100%;height:100%;width:40px}.brand-name{font-size:18px;margin-left:15px;white-space:nowrap}.ant-layout-sider-collapsed .layout-brand{display:block;overflow:hidden}.ant-layout-sider-collapsed .brand-logo{width:60px}.flatbiz-layout-main-header{background:var(--header-bgColor);color:var(--header-textColor);display:flex;flex-shrink:0;z-index:10}.flatbiz-layout-system-name{align-items:center;color:unset;display:flex;flex-shrink:0;font-size:18px;margin-left:15px}.flatbiz-layout-header-fill{display:flex;flex:1;justify-content:flex-end;overflow:hidden}.flatbiz-layout-header-fill>.ant-menu{background:unset;border-bottom:none;height:unset}.flatbiz-layout-header-fill>.ant-menu.ant-menu-horizontal{border-bottom:none;line-height:inherit}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item{align-items:center;border-radius:0!important;display:flex}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item:hover:after{border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item:after{border-bottom:0;bottom:12px}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-selected:after{background:var(--header-menuSelectedTextColor);border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-active:not(.ant-menu-item-selected){background:var(--header-menuActiveBgColor)}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item.ant-menu-item-active:not(.ant-menu-item-selected):after{background:var(--header-menuActiveTextColor);border:none}.flatbiz-layout-header-fill>.ant-menu .ant-menu-item-active:after,.flatbiz-layout-header-fill>.ant-menu .ant-menu-item-selected:after{border-radius:3px;bottom:12px;content:"";height:3px;left:50%!important;min-width:22px;position:absolute;transform:translateX(-50%);width:30%}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest{align-items:center;background-color:transparent!important;display:flex}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest .ant-menu-submenu-title{color:var(--header-textColor)!important}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest .ant-menu-submenu-title:hover{color:unset!important}.flatbiz-layout-header-fill>.ant-menu .ant-menu-overflow-item-rest:after{width:0}.flatbiz-layout-topmenu{flex:1;overflow:hidden}.flatbiz-layout-main-header-has-menu .flatbiz-layout-header-fill{justify-content:space-between}.flatbiz-layout-topmenu-overflowed-modal .ant-menu-submenu{background-color:transparent!important}.light-theme .flatbiz-layout-topmenu-overflowed-modal .ant-menu-item{color:#000!important}.dark-theme .flatbiz-layout-topmenu-overflowed-modal .ant-menu-item{color:#fff}.loader{align-items:center;background-color:var(--block-bg-color);bottom:0;display:flex;justify-content:center;left:0;opacity:1;position:absolute;right:0;text-align:center;top:0;z-index:100000}.loader.fullScreen{position:fixed}.loader .loader-wrapper{display:inline-flex;flex-direction:column;height:100px;justify-content:space-around;width:100px}.loader .loader-inner{animation:spinner .6s linear infinite;border:2px solid rgba(0,128,227,.08);border-left-color:rgba(0,84,153,.7);border-radius:50%;height:30px;margin:0 auto;text-indent:-12345px;width:30px;z-index:100001}.loader .loader-text{color:#0080e3;font-size:12px;height:20px;letter-spacing:4px;text-align:center;width:100px}.loader.hidden{display:none}@keyframes spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.page{flex:1;overflow-x:hidden;overflow-y:auto;position:relative}.page-flex{display:flex;flex-direction:column}.page-full{flex:1;overflow-y:auto}.layout-shrink{align-items:center;cursor:pointer;display:flex;font-size:18px;justify-content:center;padding:10px 0;transition:all .3s ease-out}.sider-bar-shrink{background-color:var(--sidebar-bgColor);box-shadow:0 0 17px rgba(0,0,0,.1);color:var(--sidebar-menuSelectedTextColor)}.sider-bar-shrink:hover{color:var(--sidebar-menuSelectedBgColor)}.header-shrink{color:var(--header-textColor);width:50px}.header-shrink:hover{color:var(--header-menuSelectedBgColor)}.icon-change-show-active .menu-icon-img-active{display:block}.icon-change-show-active .menu-icon-img{display:none}.menu-icon-img,.menu-icon-img-active{background-position:0;background-repeat:no-repeat;background-size:100% 100%;display:none;flex-shrink:0;height:16px;width:16px}.menu-icon-img{display:block}.flatbiz-layout-sider{display:flex;flex:1!important;flex-direction:column;height:100%;overflow:hidden;z-index:10}.flatbiz-layout-sider .ant-layout-sider-children{display:flex;flex-direction:column}.flatbiz-layout-sider .ant-layout-sider-children>.ant-menu-root{padding-bottom:30px}.flatbiz-layout-sider .ant-menu-root{flex:1;overflow-x:hidden;overflow-y:auto}.flatbiz-layout-sider .ant-menu-title-content{margin-left:5px}.flatbiz-layout-sider .ant-menu-item-selected .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-item-selected .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-item-active .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-item-active .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-submenu-active .ant-menu-submenu-title .menu-icon-img-active,.flatbiz-layout-sider .ant-menu-submenu-selected .ant-menu-submenu-title .menu-icon-img-active{display:block}.flatbiz-layout-sider .ant-menu-submenu-active .ant-menu-submenu-title .menu-icon-img,.flatbiz-layout-sider .ant-menu-submenu-selected .ant-menu-submenu-title .menu-icon-img{display:none}.flatbiz-layout-sider .ant-menu-light.ant-menu-root.ant-menu-inline,.flatbiz-layout-sider .ant-menu-light.ant-menu-root.ant-menu-vertical{border-inline-end:none}.ant-menu-root.ant-menu-inline-collapsed>.ant-menu-item,.ant-menu-root.ant-menu-inline-collapsed>.ant-menu-submenu .ant-menu-submenu-title{align-items:center;display:flex}.ant-menu-root.ant-menu-inline-collapsed .collapsed-menu-icon-badge+span,.ant-menu-root.ant-menu-inline-collapsed .menu-icon-img-active+span{display:none}.menu-icon-wrapper{align-items:center;display:flex}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .menu-icon-img-active{display:block}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .menu-icon-img{display:none}.flatbiz-layout-sider-submenu-popup .ant-menu-item-selected .ant-menu-title-content{color:var(--sidebar-menuSelectedTextColor)}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .menu-icon-img-active{display:block}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .menu-icon-img{display:none}.flatbiz-layout-sider-submenu-popup .ant-menu-item-active .ant-menu-title-content{color:var(--sidebar-menuSelectedTextColor)}.flatbiz-layout-sider-submenu-popup .ant-menu-item{align-items:center!important;display:flex!important}.flatbiz-layout-sider-submenu-popup .ant-menu-title-content{color:rgba(0,0,0,.88);margin-left:5px}.sider-bar-search{align-items:center;background-color:var(--sidebar-bgColor);display:flex;padding:10px}.sider-bar-search input{background-color:transparent}.sider-bar-search:not(.sider-bar-search-bgfff) input{color:#fff}.sider-bar-search:not(.sider-bar-search-bgfff) input::placeholder{color:#fff}.flatbiz-layout-sider .ant-menu:not(.ant-menu-inline-collapsed) .sider-bar-menu-badge-parent{align-items:center;display:flex;justify-content:center;position:absolute;right:40px}.sider-bar-menu-badge{align-items:center;display:flex;justify-content:center;position:absolute;right:15px}.iframe-tabs{overflow:hidden;z-index:5}.iframe-tabs .ant-tabs-tab{background:transparent!important;border:none!important;border-radius:0!important;height:38px;margin:0!important;padding:0 16px!important}.iframe-tabs .ant-tabs-tab.ant-tabs-tab-active{background-color:var(--bg-color)!important;border-bottom:none!important}.iframe-tabs .ant-tabs-tab-btn{margin:0 auto}.iframe-tabs .ant-tabs-tab-remove{display:flex;height:16px;margin-left:4px;padding:0;width:16px}.iframe-tabs .tab-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAV5JREFUWEftVTtSwzAQfZuchJqL2KGJDAMFyKkIDZ+GUJGZDNDwafg0QGUbCpjBdkPsg3AALoKXUUhsF8YfKNRYnaTdt2/falcEzYs0x0dLoFWgVaBSAeftfdLtdtaY6UQK47VO23pBvE7g868kcQarK5Myn0oCT2H0wYxlBdIB2ZvC8MoAvTC2wewoGwI+t4S59C8CKhuAXxYgzDy0rd5jEagXREMA99kdbVSpVqmAAnsOYpmA3RzwnhTGXZ6E60f7RLhOz4gGsm/kfIp1qEVAubr+dJuIHrIAPJL93pXae340AuEiF2JHCjOzLalBbQKzQEG8C/BtWg5gPK/1aVYiHNiWeVPnsc5965r+2Hnh9BBMl4VejCNpmcV3v4RppMACww2iYwLSrNU5A2NbmGfN0pl1SvOllYDWEmh9hFrbUOsg0j6KtX9G2r/j5lOimcefBlGzEOXWLYFWgVaBb9EEtCFLbAZ7AAAAAElFTkSuQmCC);background-size:100% 100%;border-radius:100%;display:inline-block;height:100%;width:100%}.iframe-tabs .tab-icon:hover{background-color:#f96868;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAASdJREFUWEftljtOBDEQRF8dhZjrIIhYIpaET8ISsRICEj4JCwkQARGchwNwk0KWvFJrNcN4dpCcjKORu11dXW13j6i8VDk+I4FRgVGBTgVsXwBbwKWkr5Jna3sbuAHeJKXzrauEwDewmREmkj7+ArQ9SYGzz4+kjaEEUjafAWQq6bUJ1PYUeA62nS7VOhVIYLZ3gfcAfCTpKZKwfQw8hL09SfFMoxBFBDKJfeAloMwk3WfbDLgNtgNJ0Xf9O7CS5SHwGPbm+fsq7J1IWpRc1uRTrMAS0PYpcNcS4ExSm21YCVaUOAdi1sk8l3RdmvnSr7cCueb1CFQtge16l9B2vWdYtRHlwVKvFduuPozqjuO+jaWv/1qNqG+QQf8D/xmsCWtUYFSgugK/gSWEIdTkUcAAAAAASUVORK5CYII=");background-size:100% 100%}.iframe-tabs .ant-tabs-nav{background-color:var(--block-bg-color);margin:0!important}.iframe-tabs .ant-tabs-nav:before{border:none!important}.iframe-tabs .ant-tabs-content{height:100%}.iframe-tabs .ant-tabs-extra-content{margin-right:20px}.iframe-tabs .menu-tabs-operate{text-align:center;width:24px}.content-top-menus{margin:0}.content-top-menus .ant-tabs-tab{background:transparent!important;border:none!important;border-radius:0!important;height:38px;margin:0!important;padding:0 16px!important}.content-top-menus .ant-tabs-tab.ant-tabs-tab-active{background-color:var(--bg-color)!important;border-bottom:none!important}.content-top-menus .ant-tabs-nav{background-color:var(--block-bg-color);margin:0!important}.content-top-menus .ant-tabs-nav:before{border:none!important}.iframe-tabs-tab-badge{position:absolute}.iframe-tabs-tab-badge .ant-badge-dot{transform:none!important}.layout-page-wrapper{background:var(--bg-color);flex:1;padding:8px 8px 0}.layout-page,.layout-page-wrapper{height:100%;overflow:hidden;position:relative}.layout-page{display:flex;flex-direction:column}.layout-page-noheader{padding:0}.layout-page-noheader .bread-wrapper{padding:5px 15px 5px 8px}.layout-page-noheader .page{padding:0 8px 8px}#app,#app>.ant-app,body,html{height:100%;margin:0;width:100%}*,:after,:before{box-sizing:border-box}#app{background-color:var(--bg-color)}.flatbiz-layout{bottom:0;display:flex;flex-direction:row;height:100vh;left:0;overflow:auto;position:fixed;right:0;top:0}.flatbiz-layout-main{display:flex;flex:1;overflow:hidden}.flatbiz-layout-main-content{flex:1;overflow-y:auto}.flatbiz-layout-windows ::-webkit-scrollbar,.layout-page-windows ::-webkit-scrollbar,.page-windows ::-webkit-scrollbar{background-color:#eee;height:8px;width:8px}.flatbiz-layout-windows ::-webkit-scrollbar-thumb,.layout-page-windows ::-webkit-scrollbar-thumb,.page-windows ::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.flatbiz-layout-windows ::-webkit-scrollbar-thumb:hover,.layout-page-windows ::-webkit-scrollbar-thumb:hover,.page-windows ::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}.flatbiz-layout-windows ::-webkit-scrollbar-thumb:active,.layout-page-windows ::-webkit-scrollbar-thumb:active,.page-windows ::-webkit-scrollbar-thumb:active{background-color:#787878}
|
package/dist/index.d.ts
CHANGED
|
@@ -325,7 +325,7 @@ export type BootstrapOptions = {
|
|
|
325
325
|
*/
|
|
326
326
|
iframeTabBarExtra?: JSX.Element;
|
|
327
327
|
/**
|
|
328
|
-
* 品牌logo尺寸:40px * ?(?不超过
|
|
328
|
+
* 品牌logo尺寸:40px * ?(?不超过50)
|
|
329
329
|
*/
|
|
330
330
|
logoPath?: string;
|
|
331
331
|
/**
|
|
@@ -341,7 +341,7 @@ export type BootstrapOptions = {
|
|
|
341
341
|
*/
|
|
342
342
|
hideHeader?: boolean;
|
|
343
343
|
/**
|
|
344
|
-
* 顶部结构高度。默认:
|
|
344
|
+
* 顶部结构高度。默认:54
|
|
345
345
|
*/
|
|
346
346
|
headerHeight?: number;
|
|
347
347
|
/**
|
|
@@ -575,6 +575,14 @@ export type BootstrapOptions = {
|
|
|
575
575
|
/** 执行异常渲染 */
|
|
576
576
|
errorRender?: (data?: TPlainObject) => ReactElement;
|
|
577
577
|
};
|
|
578
|
+
/** 显示生产环境的环境引导, 其他环境默认显示 */
|
|
579
|
+
showProdEnvGuide?: boolean;
|
|
580
|
+
/** 开发环境环境引导配置 */
|
|
581
|
+
developmentEnvGuideConfigs?: {
|
|
582
|
+
inte: string;
|
|
583
|
+
rc: string;
|
|
584
|
+
prod: string;
|
|
585
|
+
};
|
|
578
586
|
};
|
|
579
587
|
export type LayoutCtxProps = {
|
|
580
588
|
menus: TMenuItem[];
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { extend } from '@dimjs/utils/extend/extend';
|
|
|
26
26
|
import { get } from '@dimjs/utils/get/get';
|
|
27
27
|
import { isString } from '@dimjs/lang/is-string';
|
|
28
28
|
import { exception } from '@wove/react/exception';
|
|
29
|
+
import _CloseOutlined from '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
29
30
|
import { useMediaQuery } from 'react-responsive';
|
|
30
31
|
import { findAncestors } from '@dimjs/utils/tree/find-ancestors';
|
|
31
32
|
import { getEnvName } from '@dimjs/utils/env/get-env-name';
|
|
@@ -36,7 +37,6 @@ import _UserOutlined from '@ant-design/icons/es/icons/UserOutlined.js';
|
|
|
36
37
|
import _LogoutOutlined from '@ant-design/icons/es/icons/LogoutOutlined.js';
|
|
37
38
|
import _CaretDownOutlined from '@ant-design/icons/es/icons/CaretDownOutlined.js';
|
|
38
39
|
import _LoadingOutlined from '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
39
|
-
import _CloseOutlined from '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
40
40
|
import _RedoOutlined from '@ant-design/icons/es/icons/RedoOutlined.js';
|
|
41
41
|
import { arrayRemove } from '@dimjs/utils/array/array-remove';
|
|
42
42
|
import { Model } from '@dimjs/model-react';
|
|
@@ -1782,29 +1782,132 @@ var IframeTabRoutesTiming = function IframeTabRoutesTiming() {
|
|
|
1782
1782
|
return /*#__PURE__*/jsx(Fragment, {});
|
|
1783
1783
|
};
|
|
1784
1784
|
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
return true;
|
|
1790
|
-
}
|
|
1791
|
-
return false;
|
|
1792
|
-
}, []);
|
|
1793
|
-
if (!showHelpInfo) {
|
|
1794
|
-
return null;
|
|
1785
|
+
function getEnvUrl(url) {
|
|
1786
|
+
// 匹配 .qa. 或 .t. 格式
|
|
1787
|
+
if (url.includes('.qa.')) {
|
|
1788
|
+
return url.replace('.qa.', ".{envName}.");
|
|
1795
1789
|
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1790
|
+
if (url.includes('.t.')) {
|
|
1791
|
+
return url.replace('.t.', ".{envName}.");
|
|
1792
|
+
}
|
|
1793
|
+
return url;
|
|
1794
|
+
}
|
|
1795
|
+
function getCurrentEnv() {
|
|
1796
|
+
var host = location.host;
|
|
1797
|
+
if (host.includes('dev.flatjs.com') || !!location.port) {
|
|
1798
|
+
return 'me';
|
|
1799
|
+
}
|
|
1800
|
+
if (host.includes('.qa.')) {
|
|
1801
|
+
return 'inte';
|
|
1802
|
+
}
|
|
1803
|
+
if (host.includes('.t.')) {
|
|
1804
|
+
return 'rc';
|
|
1805
|
+
}
|
|
1806
|
+
return 'prod';
|
|
1807
|
+
}
|
|
1808
|
+
var getUrlByEnv = function getUrlByEnv(toEnv) {
|
|
1809
|
+
var host = location.host;
|
|
1810
|
+
var pathname = location.pathname;
|
|
1811
|
+
var envUrl = getEnvUrl("".concat(location.protocol, "//").concat(host).concat(pathname));
|
|
1812
|
+
if (toEnv === 'inte') {
|
|
1813
|
+
return envUrl.replace('.{envName}.', '.qa.');
|
|
1814
|
+
}
|
|
1815
|
+
if (toEnv === 'rc') {
|
|
1816
|
+
return envUrl.replace('.{envName}.', '.t.');
|
|
1817
|
+
}
|
|
1818
|
+
return envUrl.replace('.{envName}.', '.');
|
|
1819
|
+
};
|
|
1820
|
+
var DevFloatHelp = function DevFloatHelp() {
|
|
1821
|
+
var layoutCtx = useLayoutCtx();
|
|
1822
|
+
var currentEnv = getCurrentEnv();
|
|
1823
|
+
// const currentEnv = 'prod';
|
|
1824
|
+
var _useState = useState(false),
|
|
1825
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1826
|
+
hidden = _useState2[0],
|
|
1827
|
+
setHidden = _useState2[1];
|
|
1828
|
+
var developmentEnvGuideConfigs = layoutCtx.developmentEnvGuideConfigs;
|
|
1829
|
+
var operateList = [{
|
|
1830
|
+
label: '测试',
|
|
1831
|
+
onClick: function onClick() {
|
|
1832
|
+
if (developmentEnvGuideConfigs) {
|
|
1833
|
+
openNewWindow(developmentEnvGuideConfigs.inte);
|
|
1834
|
+
} else {
|
|
1835
|
+
openNewWindow(getUrlByEnv('inte'));
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
hidden: function hidden() {
|
|
1839
|
+
if (developmentEnvGuideConfigs) return false;
|
|
1840
|
+
return currentEnv === 'me';
|
|
1841
|
+
},
|
|
1842
|
+
active: currentEnv === 'inte'
|
|
1843
|
+
}, {
|
|
1844
|
+
label: '预发',
|
|
1845
|
+
onClick: function onClick() {
|
|
1846
|
+
if (developmentEnvGuideConfigs) {
|
|
1847
|
+
openNewWindow(developmentEnvGuideConfigs.rc);
|
|
1848
|
+
} else {
|
|
1849
|
+
openNewWindow(getUrlByEnv('rc'));
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
hidden: function hidden() {
|
|
1853
|
+
if (developmentEnvGuideConfigs) return false;
|
|
1854
|
+
return currentEnv === 'me';
|
|
1855
|
+
},
|
|
1856
|
+
active: currentEnv === 'rc'
|
|
1857
|
+
}, {
|
|
1858
|
+
label: '生产',
|
|
1859
|
+
onClick: function onClick() {
|
|
1860
|
+
if (developmentEnvGuideConfigs) {
|
|
1861
|
+
openNewWindow(developmentEnvGuideConfigs.prod);
|
|
1862
|
+
} else {
|
|
1863
|
+
openNewWindow(getUrlByEnv('prod'));
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
hidden: function hidden() {
|
|
1867
|
+
if (developmentEnvGuideConfigs) return false;
|
|
1868
|
+
return currentEnv === 'me';
|
|
1869
|
+
},
|
|
1870
|
+
active: currentEnv === 'prod'
|
|
1871
|
+
}, {
|
|
1872
|
+
label: '开发 文档',
|
|
1800
1873
|
onClick: function onClick() {
|
|
1801
1874
|
openNewWindow('https://fex.qa.tcshuke.com/docs/admin/main/intro');
|
|
1802
1875
|
},
|
|
1876
|
+
hidden: function hidden() {
|
|
1877
|
+
return currentEnv !== 'me' && currentEnv !== 'inte';
|
|
1878
|
+
},
|
|
1879
|
+
active: false
|
|
1880
|
+
}];
|
|
1881
|
+
if (hidden || currentEnv === 'prod' && !layoutCtx.showProdEnvGuide) {
|
|
1882
|
+
return null;
|
|
1883
|
+
}
|
|
1884
|
+
return /*#__PURE__*/jsxs(FloatButton.Group, {
|
|
1885
|
+
shape: "square",
|
|
1886
|
+
open: true,
|
|
1803
1887
|
style: {
|
|
1804
1888
|
bottom: 50,
|
|
1805
1889
|
right: 10,
|
|
1806
1890
|
transform: 'scale(0.8)'
|
|
1807
|
-
}
|
|
1891
|
+
},
|
|
1892
|
+
children: [operateList.map(function (item, index) {
|
|
1893
|
+
if (item.hidden()) {
|
|
1894
|
+
return null;
|
|
1895
|
+
}
|
|
1896
|
+
return /*#__PURE__*/jsx(FloatButton, {
|
|
1897
|
+
description: item.label,
|
|
1898
|
+
onClick: item.active ? undefined : item.onClick,
|
|
1899
|
+
style: {
|
|
1900
|
+
cursor: item.active ? 'default' : 'pointer'
|
|
1901
|
+
},
|
|
1902
|
+
type: item.active ? 'primary' : undefined,
|
|
1903
|
+
className: item.active ? 'dev-float-help-active' : ''
|
|
1904
|
+
}, index);
|
|
1905
|
+
}), /*#__PURE__*/jsx(FloatButton, {
|
|
1906
|
+
icon: /*#__PURE__*/jsx(_CloseOutlined, {}),
|
|
1907
|
+
onClick: function onClick() {
|
|
1908
|
+
setHidden(true);
|
|
1909
|
+
}
|
|
1910
|
+
})]
|
|
1808
1911
|
});
|
|
1809
1912
|
};
|
|
1810
1913
|
|
|
@@ -2708,6 +2811,7 @@ var MenuIconView = function MenuIconView(props) {
|
|
|
2708
2811
|
if (props.collapsed) {
|
|
2709
2812
|
return /*#__PURE__*/jsx(Badge, {
|
|
2710
2813
|
dot: true,
|
|
2814
|
+
className: "collapsed-menu-icon-badge",
|
|
2711
2815
|
children: /*#__PURE__*/jsx(SiderBarIcon, _objectSpread2({}, props))
|
|
2712
2816
|
});
|
|
2713
2817
|
}
|
|
@@ -2721,7 +2825,7 @@ var MenuNoChildrenTextView = function MenuNoChildrenTextView(props) {
|
|
|
2721
2825
|
children: [/*#__PURE__*/jsx(Badge, {
|
|
2722
2826
|
dot: true,
|
|
2723
2827
|
style: {
|
|
2724
|
-
marginRight:
|
|
2828
|
+
marginRight: 6
|
|
2725
2829
|
}
|
|
2726
2830
|
}), props.name]
|
|
2727
2831
|
});
|
|
@@ -2800,7 +2904,7 @@ var SiderBar = function SiderBar() {
|
|
|
2800
2904
|
if (item.children && item.children.length > 0) {
|
|
2801
2905
|
return {
|
|
2802
2906
|
key: String(item.id),
|
|
2803
|
-
icon: /*#__PURE__*/jsx(MenuIconView, {
|
|
2907
|
+
icon: index === 0 ? /*#__PURE__*/jsx(MenuIconView, {
|
|
2804
2908
|
iconImg: item.iconImg,
|
|
2805
2909
|
iconImgActive: item.iconImgActive,
|
|
2806
2910
|
colorActive: colorActive,
|
|
@@ -2808,6 +2912,12 @@ var SiderBar = function SiderBar() {
|
|
|
2808
2912
|
textColor: textColor,
|
|
2809
2913
|
collapsed: layoutCtx.collapsed,
|
|
2810
2914
|
badgeCount: menuBadgeMap[item.id]
|
|
2915
|
+
}) : /*#__PURE__*/jsx(SiderBarIcon, {
|
|
2916
|
+
iconImg: item.iconImg,
|
|
2917
|
+
iconImgActive: item.iconImgActive,
|
|
2918
|
+
colorActive: colorActive,
|
|
2919
|
+
icon: item.icon,
|
|
2920
|
+
textColor: textColor
|
|
2811
2921
|
}),
|
|
2812
2922
|
label: layoutCtx.collapsed ? item.name : /*#__PURE__*/jsxs(Fragment, {
|
|
2813
2923
|
children: [/*#__PURE__*/jsx("span", {
|
|
@@ -4532,7 +4642,7 @@ var Bootstrap = function Bootstrap(options) {
|
|
|
4532
4642
|
headerThemeConfig: headerThemeConfigNew,
|
|
4533
4643
|
sidebarThemeConfig: sidebarThemeConfigNew,
|
|
4534
4644
|
iframeTabClickRefresh: iframeTabClickRefresh,
|
|
4535
|
-
headerHeight: options.headerHeight === undefined ?
|
|
4645
|
+
headerHeight: options.headerHeight === undefined ? 54 : options.headerHeight,
|
|
4536
4646
|
menus: menus,
|
|
4537
4647
|
completeMenus: completeMenus,
|
|
4538
4648
|
dark: isDark
|