nubomed-ui 2.0.34 → 2.0.35
Sign up to get free protection for your applications and to get access to all the features.
- package/css/nb-ui/index.css +1 -1
- package/nubomed-ui.common.js +4 -345
- package/nubomed-ui.common.js.map +1 -1
- package/nubomed-ui.umd.js +8 -357
- package/nubomed-ui.umd.js.map +1 -1
- package/nubomed-ui.umd.min.js +1 -1
- package/nubomed-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/css/nb-ui/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
@charset "UTF-8";html{font-size:.8333333333vw}.color-danger,.danger-color{color:#E52D3E!important}.color-success{color:#00A572!important}.color-primary,.primary-color{color:#0066E0!important}.nb-tag{height:32px;padding:0 8px;border-radius:16px;font-size:20px;line-height:32px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background-color:#CCE0F9;color:#0066E0}.nb-tag.nb-tag--fill{background-color:#0066E0;color:#fff}.nb-tag--success{background-color:#CCEDE3;color:#00A572}.nb-tag--success.nb-tag--fill{background-color:#00A572;color:#fff}.nb-tag--danger{background-color:#FAD5D8;color:#E52D3E}.nb-tag--danger.nb-tag--fill{background-color:#E52D3E;color:#fff}.nb-tag--warning{background-color:#FEE7CC;color:#F98900}.nb-tag--warning.nb-tag--fill{background-color:#F98900;color:#fff}.nb-tag--large{height:36px;padding:0 12px;border-radius:18px;font-size:24px;line-height:36px}.nb-notification.el-notification{width:auto;max-width:80%;padding:31px 40px;border-width:2px!important;left:50%!important;transform:translate(-50%)}.nb-notification.el-notification .el-notification__content{font-size:40px;line-height:56px;margin-top:0;color:#181D41}.nb-notification.el-notification .el-notification__icon{width:50px;height:50px;font-size:50px;margin-top:3px}.nb-notification.el-notification .el-icon-success::before{content:"\e630";font-family:iconfont}.nb-notification.el-notification .el-icon-error::before{content:"\e629";font-family:iconfont}.nb-notification.el-notification.nb-notification--success{border-color:#7FD2B8;background-color:#F0FBFA}.nb-notification.el-notification.nb-notification--error{border-color:#F2969E;background-color:#FDF4F5}.nb-notification.el-notification.nb-notification--warning{border-color:#FCC47F;background-color:#FEF9F2}.nb-dialog.el-dialog{border-radius:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:0}.nb-dialog.el-dialog .el-dialog__header .el-dialog__title{line-height:1.5}.nb-dialog.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:40px;color:#8B8EA0;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.nb-dialog.el-dialog[aria-label=dialog] .el-dialog__header{padding:0!important}.nb-dialog.el-dialog .slot-title .el-dialog__tips{font-size:28px;line-height:1.5}.nb-dialog.el-dialog .slot-title .el-dialog__tips--danger{color:#E52D3E}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__tips,.nb-dialog.el-dialog .slot-title .el-dialog__tips--success{color:#00A572}.nb-dialog.el-dialog .el-dialog__body{flex:1;padding:0;color:#181D41;overflow-y:auto;overflow-x:hidden}.nb-dialog.el-dialog .el-dialog__footer{width:100%;height:100px;padding:0;display:flex;overflow:hidden;background:#FFF;box-shadow:0 -6px 16px 0 rgba(24,29,65,.08);position:relative}.nb-dialog.el-dialog .el-dialog__footer::after{content:"";position:absolute;left:0;right:0;top:0;background-color:#CAD0E0;height:1px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__headerbtn,.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__headerbtn{top:40px;right:40px}.nb-dialog.el-dialog .el-dialog__footer .el-button{flex:1;height:100%;text-align:center;font-size:36px;border-radius:0}.nb-dialog.el-dialog .el-dialog__footer .el-button+.el-button{margin:0;border-radius:0 0 16px}.nb-dialog.el-dialog.is-fullscreen{border-radius:0}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog{width:720px;height:520px}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__header{padding:36px 40px 0}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=small] .slot-title{margin:36px 40px 0}.el-dialog__wrapper[type=small] .slot-title .el-dialog__tips{font-size:36px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog{width:1000px;height:640px;margin-top:50px!important}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header{padding:36px 40px 0}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:28px;line-height:42px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header--has-form{display:flex;align-items:center;justify-content:space-between;padding:18px 40px}.el-dialog__wrapper[type=medium] .el-dialog--center.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=medium] .slot-title{margin:36px 40px 0}.el-dialog__wrapper[type=medium] .slot-title .el-dialog__tips{font-size:36px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog{width:1600px;height:900px;margin-top:90px!important}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header{padding:32px 24px 0}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:28px;line-height:42px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header--has-form{display:flex;align-items:center;justify-content:space-between;padding:18px 24px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__headerbtn{top:32px;right:24px}.el-dialog__wrapper[type=large] .el-dialog__footer>div{flex:1;padding:24px;font-size:32px;line-height:42px;display:flex;align-items:center;text-align:left}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text{color:#181D41}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text strong{margin-left:4px;font-size:50px;line-height:76px}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text i{font-size:24px;line-height:32px;color:rgba(24,29,65,.5)}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text b{margin-left:4px;font-size:28px;line-height:42px;color:#181D41}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text--danger strong{color:#E52D3E}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text--success strong{color:#00A572}.el-dialog__wrapper[type=large] .el-dialog__footer>div~.el-button{min-width:400px;flex:inherit}.el-dialog__wrapper[type=large] .el-dialog--center.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=large] .slot-title{margin:32px 24px 0}.nb-pagination.el-pagination .btn-next,.nb-pagination.el-pagination .number+.number{margin-left:16px}.el-dialog__wrapper[type=large] .slot-title .el-dialog__tips{font-size:28px}.el-dialog.is-fullscreen{border-radius:0;box-shadow:none}.el-dialog__wrapper[body-bg-color] .el-dialog__body{background-color:#ECF0F5}.el-dialog__wrapper[dialog-center=true] .el-dialog,.el-dialog__wrapper[dialog-center] .el-dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin-top:0!important}.el-dialog__wrapper[title-padding-bottom][type=large] .el-dialog__header{padding-bottom:32px}.el-dialog__wrapper[title-padding-bottom][type=medium] .el-dialog__header,.el-dialog__wrapper[title-padding-bottom][type=small] .el-dialog__header{padding-bottom:36px}.el-dialog__wrapper[title-center] .el-dialog__header{text-align:center}.el-dialog__wrapper[header-shadow] .el-dialog__header{box-shadow:0 2px 4px 0 rgba(0,0,0,.1)}.el-dialog__wrapper[title-error] .el-dialog__title{color:#E52D3E}.el-dialog__wrapper[title-warning] .el-dialog__title{color:#F98900}.el-dialog__wrapper[title-success] .el-dialog__title{color:#00A572}.el-dialog__wrapper[body-padding] .el-dialog__body{padding:24px;box-sizing:border-box}.el-dialog__wrapper[body-flex-column-center] .el-dialog__body{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-pagination.el-pagination{padding:0;box-sizing:border-box;font-weight:400}.nb-pagination.el-pagination .el-pager li,.nb-pagination.el-pagination button{font-size:24px;line-height:64px;min-width:64px;height:64px}.nb-pagination.el-pagination .el-pager li.active+li{border-left:1px solid #CAD0E0}.nb-pagination.el-pagination li.active{background:linear-gradient(180deg,#3385E6 0,#0066E0 100%);box-shadow:0 1px 6px 0 rgba(24,29,65,.12);color:#FFF;border:none}.nb-pagination.el-pagination .btn-next,.nb-pagination.el-pagination .btn-prev,.nb-pagination.el-pagination .number{background:linear-gradient(180deg,#FFF 0,#F4F6F9 100%);box-shadow:0 1px 6px 0 rgba(24,29,65,.12);border-radius:8px;border:1px solid #CAD0E0;box-sizing:border-box}.nb-pagination.el-pagination .btn-prev{margin-right:16px}.nb-pagination.el-pagination .btn-prev .el-icon{font-size:32px;font-weight:400}.nb-pagination.el-pagination .btn-next .el-icon{font-size:32px}.nb-pagination.el-pagination .btn-next:disabled,.nb-pagination.el-pagination .btn-prev:disabled{background:#CAD0E0;box-shadow:none;border:none}.nb-empty,.nb-summary-bar{background-color:transparent}.nb-pagination.el-pagination .el-pager li.btn-quicknext,.nb-pagination.el-pagination .el-pager li.btn-quickprev{color:rgba(24,29,65,.7);padding-top:0}.nb-pagination.el-pagination .nb-pagination--right{text-align:right}.nb-pagination.el-pagination .nb-pagination--center{text-align:center}.nb-empty{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-empty--center{width:100%;height:100%}.nb-empty__text{line-height:1.5;text-align:center;font-weight:400}.nb-empty__tips{font-size:24px;color:#00A572;text-align:center;line-height:36px}.nb-empty__buttons{display:flex;align-items:center;margin-top:24px}.nb-empty__buttons .el-button+.el-button{margin-left:20px}.nb-empty>.el-button{margin-top:24px}.nb-empty--large .nb-empty__icon{width:500px;height:500px}.nb-empty--large .nb-empty__text{font-size:32px;line-height:48px}.nb-empty--large .nb-empty__tips,.nb-empty--small .nb-empty__text,.nb-empty--small .nb-empty__tips{font-size:24px}.nb-empty--small .nb-empty__icon{width:300px;height:300px}.nb-summary-bar{width:100%;padding:24px;box-sizing:border-box;overflow:hidden}.nb-summary-bar__icon,.nb-summary-bar__icon.svg-icon{width:80px;height:80px;margin-right:20px;flex-shrink:0}.nb-summary-bar__text{font-size:28px;line-height:42px;display:inline-flex;align-items:center}.nb-summary-bar__text i{white-space:nowrap;color:rgba(24,29,65,.7)}.nb-summary-bar__text strong{font-size:50px;margin:0 4px;font-weight:400;white-space:nowrap}.nb-summary-bar__link{color:#0066E0;font-size:24px;line-height:36px;white-space:nowrap;margin-left:16px;cursor:pointer}.nb-summary-bar__text+.nb-summary-bar__text{margin-left:16px}.nb-summary-bar--loading .nb-summary-bar__text{color:#181D41}.nb-summary-bar--error .nb-summary-bar__text{color:#E52D3E}.nb-summary-bar--info .nb-summary-bar__text,.nb-summary-bar--success .nb-summary-bar__text{color:rgba(24,29,65,.7)}.nb-summary-bar--info .nb-summary-bar__text strong,.nb-summary-bar--success .nb-summary-bar__text strong,.nb-summary-bar--tips{color:#00A572}.nb-summary-bar .nb-summary-bar-container{height:112px;padding:0 24px;background:#fff;box-shadow:0 6px 18px 0 rgba(24,29,65,.18);border-radius:16px;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;overflow:hidden}.nb-summary-bar .nb-summary-bar__left{flex:1;display:flex;align-items:center;overflow:hidden}.nb-summary-bar .nb-summary-bar__left .text-item{text-align:left;width:min-content}.nb-summary-bar .nb-summary-bar__left .text-item .nb-summary-bar__text{margin-left:0}.nb-summary-bar .nb-summary-bar__left .text-item .nb-summary-bar__text strong{font-size:32px}.nb-summary-bar .nb-summary-bar__left .text-item+.text-item{margin-left:32px}.nb-summary-bar .nb-summary-bar__right{display:flex;align-items:center;flex-shrink:0}.nb-summary-bar .nb-summary-bar__right .el-button{margin-left:24px}.nb-summary-bar--bottom{position:absolute;left:0;right:0;bottom:0;z-index:99}.nb-summary-bar--full{padding:24px 0 0}.nb-summary-bar--full .nb-summary-bar-container{box-shadow:0 4 40px 0 rgba(24,29,65,.08),0 2 28px 0 rgba(24,29,65,.1),0 0 10px 0 rgba(24,29,65,.08);border-radius:16px 16px 0 0}.nb-header{width:100%;height:80px;background-color:#181D41;display:flex;align-items:center;justify-content:space-between;overflow-y:hidden;overflow-x:auto;color:#fff;overflow:hidden;font-size:32px;line-height:42px;position:relative}.nb-header .nb-header__back .nb-icon::before,.nb-header .nb-header__logout .nb-icon::before{font-size:40px}.nb-header .nb-header__back{padding:0 36px 0 32px;height:100%;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__back .svg-icon{width:40px;height:40px;margin-right:4px}.nb-header .nb-header__back .nb-icon{width:40px;height:40px;margin-right:10px}.nb-header .nb-header__back__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__logout{padding:0 32px 0 34px;height:100%;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__logout .nb-icon,.nb-header .nb-header__logout .svg-icon{width:40px;height:40px;margin-right:10px}.nb-header .nb-header__logout__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__tabs,.nb-header .nb-header__title{height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1}.nb-header .nb-header__title{width:fit-content;text-align:center;font-size:32px;line-height:42px;font-family:OPPOSans B,OPPOSans-B,OPPOSans;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__tabs{display:flex;align-items:center;justify-content:center;padding:0;margin:0}.nb-header .nb-header__tabs .nb-header__tab{height:100%;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.nb-header .nb-header__tabs .nb-header__tab__text{height:48px;display:flex;flex-direction:column;justify-content:center;background-color:#0f377a}.nb-header .nb-header__tabs .nb-header__tab__text span{padding:0 30px;min-width:200px;height:48px;text-align:center;font-size:28px;line-height:48px;box-sizing:border-box;position:relative}.nb-header .nb-header__tabs .nb-header__tab__text .el-badge{display:inline-block;vertical-align:inherit;font-family:inherit}.nb-header .nb-header__tabs .nb-header__tab__text .el-badge .el-badge__content.is-fixed{top:4px!important;right:4px;z-index:1}.nb-header .nb-header__tabs .nb-header__tab--active .nb-header__tab__text span{background-color:#0066E0;border-radius:24px!important}.nb-header .nb-header__tabs .nb-header__tab--disabled{cursor:not-allowed}.nb-header .nb-header__tabs .nb-header__tab--disabled .nb-header__tab__text span{background-color:#122e67;color:rgba(255,255,255,.2)}.nb-header .nb-header__tabs .nb-header__tab--import .nb-header__tab__text span{color:#f98900;font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__tabs .nb-header__tab:first-child .nb-header__tab__text{border-radius:24px 0 0 24px}.nb-header .nb-header__tabs .nb-header__tab:last-child .nb-header__tab__text{border-radius:0 24px 24px 0}.nb-header .nb-header__left{flex:auto}.nb-header .nb-header__right{flex:auto;display:inline-flex;align-items:center;justify-content:flex-end}.nb-header .nb-header__right .nb-header__btn{padding:0 32px 0 10px;height:100%;display:inline-flex;align-items:center;justify-content:center}.nb-header .nb-header__right .nb-header__btn .nb-icon{width:40px;height:40px;font-size:40px;margin-right:10px}.nb-header .nb-header__right .nb-header__btn__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-form-dialog.el-dialog .el-dialog__body{padding:0 40px;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.nb-form-dialog.el-dialog .form-header{width:100%;margin-bottom:40px;text-align:center}.nb-form-dialog.el-dialog .form-header__title{font-size:40px;line-height:56px}.nb-form-dialog.el-dialog .form-header__message{margin-top:10px;font-size:28px;line-height:42px;color:rgba(24,29,65,.5)}.nb-form-dialog.el-dialog .form-header__tips{margin-top:10px;font-size:28px;line-height:42px;color:#00A572}.nb-form-dialog.el-dialog .form-drug{width:100%;margin-top:20px;margin-bottom:40px;text-align:left}.nb-form-dialog.el-dialog .form-drug__name{font-size:40px;line-height:56px}.nb-form-dialog.el-dialog .form-drug__spec{margin-top:10px;font-size:28px;line-height:42px}.nb-form-dialog.el-dialog .form-drug__spec i{color:rgba(24,29,65,.5);margin-right:8px}.nb-form-dialog.el-dialog .el-form{width:100%}.nb-form-dialog.el-dialog .el-form[hidden-label]{width:auto}.nb-form-dialog.el-dialog.el-dialog--center .el-dialog__body{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-form-dialog.el-dialog .el-radio-group{padding:12px 0}
|
1
|
+
@charset "UTF-8";.nb-notify,.nb-tag{display:inline-flex}html{font-size:.8333333333vw}.color-danger,.danger-color{color:#E52D3E!important}.color-success{color:#00A572!important}.color-primary,.primary-color{color:#0066E0!important}.nb-tag{height:32px;padding:0 8px;border-radius:16px;font-size:20px;line-height:32px;align-items:center;justify-content:center;white-space:nowrap;background-color:#CCE0F9;color:#0066E0}.nb-tag.nb-tag--fill{background-color:#0066E0;color:#fff}.nb-tag--success{background-color:#CCEDE3;color:#00A572}.nb-tag--success.nb-tag--fill{background-color:#00A572;color:#fff}.nb-tag--danger{background-color:#FAD5D8;color:#E52D3E}.nb-tag--danger.nb-tag--fill{background-color:#E52D3E;color:#fff}.nb-tag--warning{background-color:#FEE7CC;color:#F98900}.nb-tag--warning.nb-tag--fill{background-color:#F98900;color:#fff}.nb-tag--large{height:36px;padding:0 12px;border-radius:18px;font-size:24px;line-height:36px}.nb-notify{width:auto;max-width:80%;padding:31px 40px;border-width:2px;border-style:solid;border-radius:8px;position:fixed;left:50%;transform:translate(-50%);align-items:center;transition:opacity .3s,transform .3s,left .3s,right .3s,top .4s,bottom .3s}.nb-notify__icon{font-size:50px;margin-right:8px}.nb-notify__message{font-size:40px;line-height:56px;margin-top:0;color:#181D41;word-break:break-word}.nb-notify--success{border-color:#7FD2B8;background-color:#F0FBFA}.nb-notify--success .nb-notify__icon{color:#00A572}.nb-notify--error{border-color:#F2969E;background-color:#FDF4F5}.nb-notify--error .nb-notify__icon{color:#E52D3E}.nb-notify--warning{border-color:#FCC47F;background-color:#FEF9F2}.nb-notify--warning .nb-notify__icon{color:#F98900}.el-notification-fade-enter.right{right:0;transform:translateX(100%)}.el-notification-fade-enter.left{left:0;transform:translateX(-100%)}.el-notification-fade-leave-active{opacity:0}.nb-dialog.el-dialog{border-radius:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:0}.nb-dialog.el-dialog .el-dialog__header .el-dialog__title{line-height:1.5}.nb-dialog.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:40px;color:#8B8EA0;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.nb-dialog.el-dialog[aria-label=dialog] .el-dialog__header{padding:0!important}.nb-dialog.el-dialog .slot-title .el-dialog__tips{font-size:28px;line-height:1.5}.nb-dialog.el-dialog .slot-title .el-dialog__tips--danger{color:#E52D3E}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__tips,.nb-dialog.el-dialog .slot-title .el-dialog__tips--success{color:#00A572}.nb-dialog.el-dialog .el-dialog__body{flex:1;padding:0;color:#181D41;overflow-y:auto;overflow-x:hidden}.nb-dialog.el-dialog .el-dialog__footer{width:100%;height:100px;padding:0;display:flex;overflow:hidden;background:#FFF;box-shadow:0 -6px 16px 0 rgba(24,29,65,.08);position:relative}.nb-dialog.el-dialog .el-dialog__footer::after{content:"";position:absolute;left:0;right:0;top:0;background-color:#CAD0E0;height:1px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__headerbtn,.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__headerbtn{top:40px;right:40px}.nb-dialog.el-dialog .el-dialog__footer .el-button{flex:1;height:100%;text-align:center;font-size:36px;border-radius:0}.nb-dialog.el-dialog .el-dialog__footer .el-button+.el-button{margin:0;border-radius:0 0 16px}.nb-dialog.el-dialog.is-fullscreen{border-radius:0}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog{width:720px;height:520px}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__header{padding:36px 40px 0}.el-dialog__wrapper[type=small] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=small] .slot-title{margin:36px 40px 0}.el-dialog__wrapper[type=small] .slot-title .el-dialog__tips{font-size:36px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog{width:1000px;height:640px;margin-top:50px!important}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header{padding:36px 40px 0}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:28px;line-height:42px}.el-dialog__wrapper[type=medium] .nb-dialog.el-dialog .el-dialog__header--has-form{display:flex;align-items:center;justify-content:space-between;padding:18px 40px}.el-dialog__wrapper[type=medium] .el-dialog--center.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=medium] .slot-title{margin:36px 40px 0}.el-dialog__wrapper[type=medium] .slot-title .el-dialog__tips{font-size:36px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog{width:1600px;height:900px;margin-top:90px!important}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header{padding:32px 24px 0}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header .el-dialog__title{font-size:28px;line-height:42px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__header--has-form{display:flex;align-items:center;justify-content:space-between;padding:18px 24px}.el-dialog__wrapper[type=large] .nb-dialog.el-dialog .el-dialog__headerbtn{top:32px;right:24px}.el-dialog__wrapper[type=large] .el-dialog__footer>div{flex:1;padding:24px;font-size:32px;line-height:42px;display:flex;align-items:center;text-align:left}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text{color:#181D41}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text strong{margin-left:4px;font-size:50px;line-height:76px}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text i{font-size:24px;line-height:32px;color:rgba(24,29,65,.5)}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text b{margin-left:4px;font-size:28px;line-height:42px;color:#181D41}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text--danger strong{color:#E52D3E}.el-dialog__wrapper[type=large] .el-dialog__footer>div.footer__text--success strong{color:#00A572}.el-dialog__wrapper[type=large] .el-dialog__footer>div~.el-button{min-width:400px;flex:inherit}.el-dialog__wrapper[type=large] .el-dialog--center.el-dialog .el-dialog__header .el-dialog__title{font-size:36px;line-height:54px}.el-dialog__wrapper[type=large] .slot-title{margin:32px 24px 0}.nb-pagination.el-pagination .btn-next,.nb-pagination.el-pagination .number+.number{margin-left:16px}.el-dialog__wrapper[type=large] .slot-title .el-dialog__tips{font-size:28px}.el-dialog.is-fullscreen{border-radius:0;box-shadow:none}.el-dialog__wrapper[body-bg-color] .el-dialog__body{background-color:#ECF0F5}.el-dialog__wrapper[dialog-center=true] .el-dialog,.el-dialog__wrapper[dialog-center] .el-dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin-top:0!important}.el-dialog__wrapper[title-padding-bottom][type=large] .el-dialog__header{padding-bottom:32px}.el-dialog__wrapper[title-padding-bottom][type=medium] .el-dialog__header,.el-dialog__wrapper[title-padding-bottom][type=small] .el-dialog__header{padding-bottom:36px}.el-dialog__wrapper[title-center] .el-dialog__header{text-align:center}.el-dialog__wrapper[header-shadow] .el-dialog__header{box-shadow:0 2px 4px 0 rgba(0,0,0,.1)}.el-dialog__wrapper[title-error] .el-dialog__title{color:#E52D3E}.el-dialog__wrapper[title-warning] .el-dialog__title{color:#F98900}.el-dialog__wrapper[title-success] .el-dialog__title{color:#00A572}.el-dialog__wrapper[body-padding] .el-dialog__body{padding:24px;box-sizing:border-box}.el-dialog__wrapper[body-flex-column-center] .el-dialog__body{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-pagination.el-pagination{padding:0;box-sizing:border-box;font-weight:400}.nb-pagination.el-pagination .el-pager li,.nb-pagination.el-pagination button{font-size:24px;line-height:64px;min-width:64px;height:64px}.nb-pagination.el-pagination .el-pager li.active+li{border-left:1px solid #CAD0E0}.nb-pagination.el-pagination li.active{background:linear-gradient(180deg,#3385E6 0,#0066E0 100%);box-shadow:0 1px 6px 0 rgba(24,29,65,.12);color:#FFF;border:none}.nb-pagination.el-pagination .btn-next,.nb-pagination.el-pagination .btn-prev,.nb-pagination.el-pagination .number{background:linear-gradient(180deg,#FFF 0,#F4F6F9 100%);box-shadow:0 1px 6px 0 rgba(24,29,65,.12);border-radius:8px;border:1px solid #CAD0E0;box-sizing:border-box}.nb-pagination.el-pagination .btn-prev{margin-right:16px}.nb-pagination.el-pagination .btn-prev .el-icon{font-size:32px;font-weight:400}.nb-pagination.el-pagination .btn-next .el-icon{font-size:32px}.nb-pagination.el-pagination .btn-next:disabled,.nb-pagination.el-pagination .btn-prev:disabled{background:#CAD0E0;box-shadow:none;border:none}.nb-empty,.nb-summary-bar{background-color:transparent}.nb-pagination.el-pagination .el-pager li.btn-quicknext,.nb-pagination.el-pagination .el-pager li.btn-quickprev{color:rgba(24,29,65,.7);padding-top:0}.nb-pagination.el-pagination .nb-pagination--right{text-align:right}.nb-pagination.el-pagination .nb-pagination--center{text-align:center}.nb-empty{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-empty--center{width:100%;height:100%}.nb-empty__text{line-height:1.5;text-align:center;font-weight:400}.nb-empty__tips{font-size:24px;color:#00A572;text-align:center;line-height:36px}.nb-empty__buttons{display:flex;align-items:center;margin-top:24px}.nb-empty__buttons .el-button+.el-button{margin-left:20px}.nb-empty>.el-button{margin-top:24px}.nb-empty--large .nb-empty__icon{width:500px;height:500px}.nb-empty--large .nb-empty__text{font-size:32px;line-height:48px}.nb-empty--large .nb-empty__tips,.nb-empty--small .nb-empty__text,.nb-empty--small .nb-empty__tips{font-size:24px}.nb-empty--small .nb-empty__icon{width:300px;height:300px}.nb-summary-bar{width:100%;padding:24px;box-sizing:border-box;overflow:hidden}.nb-summary-bar__icon,.nb-summary-bar__icon.svg-icon{width:80px;height:80px;margin-right:20px;flex-shrink:0}.nb-summary-bar__text{font-size:28px;line-height:42px;display:inline-flex;align-items:center}.nb-summary-bar__text i{white-space:nowrap;color:rgba(24,29,65,.7)}.nb-summary-bar__text strong{font-size:50px;margin:0 4px;font-weight:400;white-space:nowrap}.nb-summary-bar__link{color:#0066E0;font-size:24px;line-height:36px;white-space:nowrap;margin-left:16px;cursor:pointer}.nb-summary-bar__text+.nb-summary-bar__text{margin-left:16px}.nb-summary-bar--loading .nb-summary-bar__text{color:#181D41}.nb-summary-bar--error .nb-summary-bar__text{color:#E52D3E}.nb-summary-bar--info .nb-summary-bar__text,.nb-summary-bar--success .nb-summary-bar__text{color:rgba(24,29,65,.7)}.nb-summary-bar--info .nb-summary-bar__text strong,.nb-summary-bar--success .nb-summary-bar__text strong,.nb-summary-bar--tips{color:#00A572}.nb-summary-bar .nb-summary-bar-container{height:112px;padding:0 24px;background:#fff;box-shadow:0 6px 18px 0 rgba(24,29,65,.18);border-radius:16px;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;overflow:hidden}.nb-summary-bar .nb-summary-bar__left{flex:1;display:flex;align-items:center;overflow:hidden}.nb-summary-bar .nb-summary-bar__left .text-item{text-align:left;width:min-content}.nb-summary-bar .nb-summary-bar__left .text-item .nb-summary-bar__text{margin-left:0}.nb-summary-bar .nb-summary-bar__left .text-item .nb-summary-bar__text strong{font-size:32px}.nb-summary-bar .nb-summary-bar__left .text-item+.text-item{margin-left:32px}.nb-summary-bar .nb-summary-bar__right{display:flex;align-items:center;flex-shrink:0}.nb-summary-bar .nb-summary-bar__right .el-button{margin-left:24px}.nb-summary-bar--bottom{position:absolute;left:0;right:0;bottom:0;z-index:99}.nb-summary-bar--full{padding:24px 0 0}.nb-summary-bar--full .nb-summary-bar-container{box-shadow:0 4 40px 0 rgba(24,29,65,.08),0 2 28px 0 rgba(24,29,65,.1),0 0 10px 0 rgba(24,29,65,.08);border-radius:16px 16px 0 0}.nb-header{width:100%;height:80px;background-color:#181D41;display:flex;align-items:center;justify-content:space-between;overflow-y:hidden;overflow-x:auto;color:#fff;overflow:hidden;font-size:32px;line-height:42px;position:relative}.nb-header .nb-header__back .nb-icon::before,.nb-header .nb-header__logout .nb-icon::before{font-size:40px}.nb-header .nb-header__back{padding:0 36px 0 32px;height:100%;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__back .svg-icon{width:40px;height:40px;margin-right:4px}.nb-header .nb-header__back .nb-icon{width:40px;height:40px;margin-right:10px}.nb-header .nb-header__back__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__logout{padding:0 32px 0 34px;height:100%;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__logout .nb-icon,.nb-header .nb-header__logout .svg-icon{width:40px;height:40px;margin-right:10px}.nb-header .nb-header__logout__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__tabs,.nb-header .nb-header__title{height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1}.nb-header .nb-header__title{width:fit-content;text-align:center;font-size:32px;line-height:42px;font-family:OPPOSans B,OPPOSans-B,OPPOSans;display:flex;align-items:center;justify-content:center}.nb-header .nb-header__tabs{display:flex;align-items:center;justify-content:center;padding:0;margin:0}.nb-header .nb-header__tabs .nb-header__tab{height:100%;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.nb-header .nb-header__tabs .nb-header__tab__text{height:48px;display:flex;flex-direction:column;justify-content:center;background-color:#0f377a}.nb-header .nb-header__tabs .nb-header__tab__text span{padding:0 30px;min-width:200px;height:48px;text-align:center;font-size:28px;line-height:48px;box-sizing:border-box;position:relative}.nb-header .nb-header__tabs .nb-header__tab__text .el-badge{display:inline-block;vertical-align:inherit;font-family:inherit}.nb-header .nb-header__tabs .nb-header__tab__text .el-badge .el-badge__content.is-fixed{top:4px!important;right:4px;z-index:1}.nb-header .nb-header__tabs .nb-header__tab--active .nb-header__tab__text span{background-color:#0066E0;border-radius:24px!important}.nb-header .nb-header__tabs .nb-header__tab--disabled{cursor:not-allowed}.nb-header .nb-header__tabs .nb-header__tab--disabled .nb-header__tab__text span{background-color:#122e67;color:rgba(255,255,255,.2)}.nb-header .nb-header__tabs .nb-header__tab--import .nb-header__tab__text span{color:#f98900;font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-header .nb-header__tabs .nb-header__tab:first-child .nb-header__tab__text{border-radius:24px 0 0 24px}.nb-header .nb-header__tabs .nb-header__tab:last-child .nb-header__tab__text{border-radius:0 24px 24px 0}.nb-header .nb-header__left{flex:auto}.nb-header .nb-header__right{flex:auto;display:inline-flex;align-items:center;justify-content:flex-end}.nb-header .nb-header__right .nb-header__btn{padding:0 32px 0 10px;height:100%;display:inline-flex;align-items:center;justify-content:center}.nb-header .nb-header__right .nb-header__btn .nb-icon{width:40px;height:40px;font-size:40px;margin-right:10px}.nb-header .nb-header__right .nb-header__btn__text{font-family:OPPOSans B,OPPOSans-B,OPPOSans}.nb-form-dialog.el-dialog .el-dialog__body{padding:0 40px;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.nb-form-dialog.el-dialog .form-header{width:100%;margin-bottom:40px;text-align:center}.nb-form-dialog.el-dialog .form-header__title{font-size:40px;line-height:56px}.nb-form-dialog.el-dialog .form-header__message{margin-top:10px;font-size:28px;line-height:42px;color:rgba(24,29,65,.5)}.nb-form-dialog.el-dialog .form-header__tips{margin-top:10px;font-size:28px;line-height:42px;color:#00A572}.nb-form-dialog.el-dialog .form-drug{width:100%;margin-top:20px;margin-bottom:40px;text-align:left}.nb-form-dialog.el-dialog .form-drug__name{font-size:40px;line-height:56px}.nb-form-dialog.el-dialog .form-drug__spec{margin-top:10px;font-size:28px;line-height:42px}.nb-form-dialog.el-dialog .form-drug__spec i{color:rgba(24,29,65,.5);margin-right:8px}.nb-form-dialog.el-dialog .el-form{width:100%}.nb-form-dialog.el-dialog .el-form[hidden-label]{width:auto}.nb-form-dialog.el-dialog.el-dialog--center .el-dialog__body{display:flex;flex-direction:column;align-items:center;justify-content:center}.nb-form-dialog.el-dialog .el-radio-group{padding:12px 0}
|
package/nubomed-ui.common.js
CHANGED
@@ -157,27 +157,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-1d7955de]{display:inl
|
|
157
157
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
158
158
|
|
159
159
|
|
160
|
-
/***/ }),
|
161
|
-
|
162
|
-
/***/ 7034:
|
163
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
164
|
-
|
165
|
-
"use strict";
|
166
|
-
__webpack_require__.r(__webpack_exports__);
|
167
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
168
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
169
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
170
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
171
|
-
// Imports
|
172
|
-
|
173
|
-
|
174
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
175
|
-
// Module
|
176
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".el-pagination--left[data-v-15e54efa]{text-align:left}.el-pagination--center[data-v-15e54efa]{text-align:center}.el-pagination--right[data-v-15e54efa]{text-align:right}", ""]);
|
177
|
-
// Exports
|
178
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
179
|
-
|
180
|
-
|
181
160
|
/***/ }),
|
182
161
|
|
183
162
|
/***/ 4988:
|
@@ -1487,22 +1466,6 @@ var update = add("1485bda7", content, true, {"sourceMap":false,"shadowMode":fals
|
|
1487
1466
|
|
1488
1467
|
/***/ }),
|
1489
1468
|
|
1490
|
-
/***/ 5240:
|
1491
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1492
|
-
|
1493
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1494
|
-
|
1495
|
-
// load the styles
|
1496
|
-
var content = __webpack_require__(7034);
|
1497
|
-
if(content.__esModule) content = content.default;
|
1498
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
1499
|
-
if(content.locals) module.exports = content.locals;
|
1500
|
-
// add the styles to the DOM
|
1501
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
1502
|
-
var update = add("6179b8be", content, true, {"sourceMap":false,"shadowMode":false});
|
1503
|
-
|
1504
|
-
/***/ }),
|
1505
|
-
|
1506
1469
|
/***/ 9190:
|
1507
1470
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1508
1471
|
|
@@ -4566,311 +4529,6 @@ const i18n = function (fn) {
|
|
4566
4529
|
t,
|
4567
4530
|
i18n
|
4568
4531
|
});
|
4569
|
-
;// external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
4570
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
4571
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
|
4572
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=template&id=15e54efa&scoped=true
|
4573
|
-
var render = function render() {
|
4574
|
-
var _vm = this,
|
4575
|
-
_c = _vm._self._c;
|
4576
|
-
return _c('transition', {
|
4577
|
-
attrs: {
|
4578
|
-
"name": "el-notification-fade"
|
4579
|
-
}
|
4580
|
-
}, [_c('div', {
|
4581
|
-
directives: [{
|
4582
|
-
name: "show",
|
4583
|
-
rawName: "v-show",
|
4584
|
-
value: _vm.visible,
|
4585
|
-
expression: "visible"
|
4586
|
-
}],
|
4587
|
-
class: ['el-notification', 'nb-notification'],
|
4588
|
-
style: _vm.positionStyle,
|
4589
|
-
attrs: {
|
4590
|
-
"role": "alert"
|
4591
|
-
},
|
4592
|
-
on: {
|
4593
|
-
"mouseenter": function ($event) {
|
4594
|
-
return _vm.clearTimer();
|
4595
|
-
},
|
4596
|
-
"mouseleave": function ($event) {
|
4597
|
-
return _vm.startTimer();
|
4598
|
-
},
|
4599
|
-
"click": _vm.click
|
4600
|
-
}
|
4601
|
-
}, [_vm.type || _vm.iconClass ? _c('i', {
|
4602
|
-
staticClass: "el-notification__icon",
|
4603
|
-
class: [_vm.typeClass, _vm.iconClass]
|
4604
|
-
}) : _vm._e(), _c('div', {
|
4605
|
-
staticClass: "el-notification__group",
|
4606
|
-
class: {
|
4607
|
-
'is-with-icon': _vm.typeClass || _vm.iconClass
|
4608
|
-
}
|
4609
|
-
}, [_c('h2', {
|
4610
|
-
staticClass: "el-notification__title",
|
4611
|
-
domProps: {
|
4612
|
-
"textContent": _vm._s(_vm.title)
|
4613
|
-
}
|
4614
|
-
}), _c('div', {
|
4615
|
-
directives: [{
|
4616
|
-
name: "show",
|
4617
|
-
rawName: "v-show",
|
4618
|
-
value: _vm.message,
|
4619
|
-
expression: "message"
|
4620
|
-
}],
|
4621
|
-
staticClass: "el-notification__content"
|
4622
|
-
}, [_vm._t("default", function () {
|
4623
|
-
return [!_vm.dangerouslyUseHTMLString ? _c('p', [_vm._v(_vm._s(_vm.message))]) : _vm._e(), _c('p', {
|
4624
|
-
domProps: {
|
4625
|
-
"innerHTML": _vm._s(_vm.message)
|
4626
|
-
}
|
4627
|
-
})];
|
4628
|
-
})], 2), _vm.showClose ? _c('div', {
|
4629
|
-
staticClass: "el-notification__closeBtn el-icon-close",
|
4630
|
-
on: {
|
4631
|
-
"click": function ($event) {
|
4632
|
-
$event.stopPropagation();
|
4633
|
-
return _vm.close.apply(null, arguments);
|
4634
|
-
}
|
4635
|
-
}
|
4636
|
-
}) : _vm._e()])])]);
|
4637
|
-
};
|
4638
|
-
var staticRenderFns = [];
|
4639
|
-
|
4640
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
|
4641
|
-
let typeMap = {
|
4642
|
-
success: 'success',
|
4643
|
-
info: 'info',
|
4644
|
-
warning: 'warning',
|
4645
|
-
error: 'error'
|
4646
|
-
};
|
4647
|
-
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
4648
|
-
name: 'NBNotify',
|
4649
|
-
data() {
|
4650
|
-
return {
|
4651
|
-
visible: false,
|
4652
|
-
title: '',
|
4653
|
-
message: '',
|
4654
|
-
duration: 4500,
|
4655
|
-
type: '',
|
4656
|
-
showClose: false,
|
4657
|
-
customClass: '',
|
4658
|
-
iconClass: '',
|
4659
|
-
onClose: null,
|
4660
|
-
onClick: null,
|
4661
|
-
closed: false,
|
4662
|
-
verticalOffset: 0,
|
4663
|
-
timer: null,
|
4664
|
-
dangerouslyUseHTMLString: true,
|
4665
|
-
position: 'top-right'
|
4666
|
-
};
|
4667
|
-
},
|
4668
|
-
computed: {
|
4669
|
-
typeClass() {
|
4670
|
-
return this.type && typeMap[this.type] ? `el-icon-${typeMap[this.type]}` : '';
|
4671
|
-
},
|
4672
|
-
horizontalClass() {
|
4673
|
-
return this.position.indexOf('right') > -1 ? 'right' : 'left';
|
4674
|
-
},
|
4675
|
-
verticalProperty() {
|
4676
|
-
return /^top-/.test(this.position) ? 'top' : 'bottom';
|
4677
|
-
},
|
4678
|
-
positionStyle() {
|
4679
|
-
return {
|
4680
|
-
[this.verticalProperty]: `${this.verticalOffset}px`
|
4681
|
-
};
|
4682
|
-
}
|
4683
|
-
},
|
4684
|
-
watch: {
|
4685
|
-
closed(newVal) {
|
4686
|
-
if (newVal) {
|
4687
|
-
this.visible = false;
|
4688
|
-
this.$el.addEventListener('transitionend', this.destroyElement);
|
4689
|
-
}
|
4690
|
-
}
|
4691
|
-
},
|
4692
|
-
methods: {
|
4693
|
-
destroyElement() {
|
4694
|
-
this.$el.removeEventListener('transitionend', this.destroyElement);
|
4695
|
-
this.$destroy(true);
|
4696
|
-
this.$el.parentNode.removeChild(this.$el);
|
4697
|
-
},
|
4698
|
-
click() {
|
4699
|
-
if (typeof this.onClick === 'function') {
|
4700
|
-
this.onClick();
|
4701
|
-
}
|
4702
|
-
},
|
4703
|
-
close() {
|
4704
|
-
this.closed = true;
|
4705
|
-
if (typeof this.onClose === 'function') {
|
4706
|
-
this.onClose();
|
4707
|
-
}
|
4708
|
-
},
|
4709
|
-
clearTimer() {
|
4710
|
-
clearTimeout(this.timer);
|
4711
|
-
},
|
4712
|
-
startTimer() {
|
4713
|
-
if (this.duration > 0) {
|
4714
|
-
this.timer = setTimeout(() => {
|
4715
|
-
if (!this.closed) {
|
4716
|
-
this.close();
|
4717
|
-
}
|
4718
|
-
}, this.duration);
|
4719
|
-
}
|
4720
|
-
},
|
4721
|
-
keydown(e) {
|
4722
|
-
if (e.keyCode === 46 || e.keyCode === 8) {
|
4723
|
-
this.clearTimer(); // detele 取消倒计时
|
4724
|
-
} else if (e.keyCode === 27) {
|
4725
|
-
// esc关闭消息
|
4726
|
-
if (!this.closed) {
|
4727
|
-
this.close();
|
4728
|
-
}
|
4729
|
-
} else {
|
4730
|
-
this.startTimer(); // 恢复倒计时
|
4731
|
-
}
|
4732
|
-
}
|
4733
|
-
},
|
4734
|
-
mounted() {
|
4735
|
-
if (this.duration > 0) {
|
4736
|
-
this.timer = setTimeout(() => {
|
4737
|
-
if (!this.closed) {
|
4738
|
-
this.close();
|
4739
|
-
}
|
4740
|
-
}, this.duration);
|
4741
|
-
}
|
4742
|
-
document.addEventListener('keydown', this.keydown);
|
4743
|
-
},
|
4744
|
-
beforeDestroy() {
|
4745
|
-
document.removeEventListener('keydown', this.keydown);
|
4746
|
-
}
|
4747
|
-
});
|
4748
|
-
;// ./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
|
4749
|
-
/* harmony default export */ var NBNotify_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
4750
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=15e54efa&prod&lang=scss&scoped=true
|
4751
|
-
var srcvue_type_style_index_0_id_15e54efa_prod_lang_scss_scoped_true = __webpack_require__(5240);
|
4752
|
-
;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=15e54efa&prod&lang=scss&scoped=true
|
4753
|
-
|
4754
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
4755
|
-
var componentNormalizer = __webpack_require__(1656);
|
4756
|
-
;// ./packages/components/NBNotify/src/index.vue
|
4757
|
-
|
4758
|
-
|
4759
|
-
|
4760
|
-
;
|
4761
|
-
|
4762
|
-
|
4763
|
-
/* normalize component */
|
4764
|
-
|
4765
|
-
var component = (0,componentNormalizer/* default */.A)(
|
4766
|
-
NBNotify_srcvue_type_script_lang_js,
|
4767
|
-
render,
|
4768
|
-
staticRenderFns,
|
4769
|
-
false,
|
4770
|
-
null,
|
4771
|
-
"15e54efa",
|
4772
|
-
null
|
4773
|
-
|
4774
|
-
)
|
4775
|
-
|
4776
|
-
/* harmony default export */ var NBNotify_src = (component.exports);
|
4777
|
-
;// ./packages/components/NBNotify/src/notify.js
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
/*
|
4782
|
-
* @Author: chenghuan.dong
|
4783
|
-
* @Date: 2024-11-14 09:44:58
|
4784
|
-
* @LastEditTime: 2024-11-14 10:47:42
|
4785
|
-
* @LastEditors: chenghuan.dong
|
4786
|
-
* @Description:
|
4787
|
-
* @FilePath: \nubomed-ui\packages\components\NBNotify\src\notify.js
|
4788
|
-
*/
|
4789
|
-
|
4790
|
-
|
4791
|
-
// import merge from '../../../utils/merge'
|
4792
|
-
// import { PopupManager } from '../../../utils/popup'
|
4793
|
-
// import { isVNode } from '../../../utils/vdom'
|
4794
|
-
|
4795
|
-
let instance;
|
4796
|
-
let instances = [];
|
4797
|
-
let seed = 1;
|
4798
|
-
const Notification = function (options) {
|
4799
|
-
console.log('Vue', (external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
4800
|
-
if (!(external_commonjs_vue_commonjs2_vue_root_Vue_default())) {
|
4801
|
-
return;
|
4802
|
-
}
|
4803
|
-
if ((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer) return;
|
4804
|
-
options = Object.assign({}, options);
|
4805
|
-
const userOnClose = options.onClose;
|
4806
|
-
const id = 'notification_' + seed++;
|
4807
|
-
const position = options.position || 'top-right';
|
4808
|
-
options.onClose = function () {
|
4809
|
-
Notification.close(id, userOnClose);
|
4810
|
-
};
|
4811
|
-
const NotificationConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(NBNotify_src);
|
4812
|
-
instance = new NotificationConstructor({
|
4813
|
-
data: options
|
4814
|
-
});
|
4815
|
-
instance.$slots.default = [options.message];
|
4816
|
-
options.message = 'REPLACED_BY_VNODE';
|
4817
|
-
instance.id = id;
|
4818
|
-
instance.$mount();
|
4819
|
-
document.body.appendChild(instance.$el);
|
4820
|
-
instance.visible = true;
|
4821
|
-
instance.dom = instance.$el;
|
4822
|
-
// instance.dom.style.zIndex = PopupManager.nextZIndex()
|
4823
|
-
|
4824
|
-
let verticalOffset = options.offset || 0;
|
4825
|
-
instances.filter(item => item.position === position).forEach(item => {
|
4826
|
-
verticalOffset += item.$el.offsetHeight + 16;
|
4827
|
-
});
|
4828
|
-
verticalOffset += 16;
|
4829
|
-
instance.verticalOffset = verticalOffset;
|
4830
|
-
instances.push(instance);
|
4831
|
-
return instance;
|
4832
|
-
};
|
4833
|
-
['success', 'warning', 'info', 'error'].forEach(type => {
|
4834
|
-
Notification[type] = options => {
|
4835
|
-
if (typeof options === 'string') {
|
4836
|
-
options = {
|
4837
|
-
message: options
|
4838
|
-
};
|
4839
|
-
}
|
4840
|
-
options.type = type;
|
4841
|
-
return Notification(options);
|
4842
|
-
};
|
4843
|
-
});
|
4844
|
-
Notification.close = function (id, userOnClose) {
|
4845
|
-
let index = -1;
|
4846
|
-
const len = instances.length;
|
4847
|
-
const instance = instances.filter((instance, i) => {
|
4848
|
-
if (instance.id === id) {
|
4849
|
-
index = i;
|
4850
|
-
return true;
|
4851
|
-
}
|
4852
|
-
return false;
|
4853
|
-
})[0];
|
4854
|
-
if (!instance) return;
|
4855
|
-
if (typeof userOnClose === 'function') {
|
4856
|
-
userOnClose(instance);
|
4857
|
-
}
|
4858
|
-
instances.splice(index, 1);
|
4859
|
-
if (len <= 1) return;
|
4860
|
-
const position = instance.position;
|
4861
|
-
const removedHeight = instance.dom.offsetHeight;
|
4862
|
-
for (let i = index; i < len - 1; i++) {
|
4863
|
-
if (instances[i].position === position) {
|
4864
|
-
instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
|
4865
|
-
}
|
4866
|
-
}
|
4867
|
-
};
|
4868
|
-
Notification.closeAll = function () {
|
4869
|
-
for (let i = instances.length - 1; i >= 0; i--) {
|
4870
|
-
instances[i].close();
|
4871
|
-
}
|
4872
|
-
};
|
4873
|
-
/* harmony default export */ var notify = (Notification);
|
4874
4532
|
// EXTERNAL MODULE: ./packages/iconfont/iconfont.css
|
4875
4533
|
var iconfont = __webpack_require__(1970);
|
4876
4534
|
;// ./packages/index.js
|
@@ -4880,7 +4538,7 @@ var iconfont = __webpack_require__(1970);
|
|
4880
4538
|
/*
|
4881
4539
|
* @Author: chenghuan.dong
|
4882
4540
|
* @Date: 2024-11-08 17:23:47
|
4883
|
-
* @LastEditTime: 2024-11-14
|
4541
|
+
* @LastEditTime: 2024-11-14 12:08:59
|
4884
4542
|
* @LastEditors: chenghuan.dong
|
4885
4543
|
* @Description: 主index.js导出全部组件
|
4886
4544
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -4888,7 +4546,7 @@ var iconfont = __webpack_require__(1970);
|
|
4888
4546
|
|
4889
4547
|
|
4890
4548
|
|
4891
|
-
|
4549
|
+
// import nbNotify from './components/NBNotify/src/notify.js'
|
4892
4550
|
|
4893
4551
|
// 使用iconfont图标
|
4894
4552
|
|
@@ -4914,7 +4572,8 @@ const install = function (Vue, options = {}) {
|
|
4914
4572
|
Vue.component(name, component);
|
4915
4573
|
}
|
4916
4574
|
});
|
4917
|
-
|
4575
|
+
|
4576
|
+
// Vue.prototype.$nbNotify = nbNotify
|
4918
4577
|
};
|
4919
4578
|
const packages_i18n = locale.i18n;
|
4920
4579
|
const API = {
|