diff --git a/css/hooks-Cqe-s-rU.css b/css/hooks-Cqe-s-rU.css new file mode 100644 index 00000000..9d771550 --- /dev/null +++ b/css/hooks-Cqe-s-rU.css @@ -0,0 +1 @@ +@charset "UTF-8";.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid{-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:var(--ray-icon-color);-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);-webkit-box-sizing:border-box;box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(.208rem);filter:blur(.208rem)}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:.833rem}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.ray-template--light .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 -1px .104rem #0000001f}.ray-template--dark .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 -1px .104rem #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.1215686275);box-shadow:.104rem 0 .417rem #0000001f}.ray-template--dark .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.7215686275);box-shadow:.104rem 0 .417rem #000000b8}.ray-menu__logo{height:3.333rem;padding:0 .938rem 0 1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:.417rem .625rem;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:4.167rem;height:4.167rem;border-radius:50%;cursor:pointer;z-index:99;right:-2.083rem;top:-2.083rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-.729rem,.729rem);-ms-transform:translate(-.729rem,.729rem);transform:translate(-.729rem,.729rem)}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out{color:#2c2a28;background:#757473}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out:hover{background-color:#d5d3d1;color:#44403c}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out{color:#eae9e8;background:#a19f9d}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out:hover{background-color:#44403c;color:#d5d3d1}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:2.5rem;text-align:center;line-height:2.5rem}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:3.333rem;padding:0 .938rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 1px .104rem #0000001f}.ray-template--dark .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 1px .104rem #000000b8}.override-button__layout{padding:0 .469rem}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.setting-drawer__space{width:100%}.setting-drawer__space .n-descriptions-table-content{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(1.042rem);-ms-transform:translateX(1.042rem);transform:translate(1.042rem)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:33.854rem;left:50%;margin-left:-16.927rem;top:3.125rem}.global-search .global-search__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:.313rem;min-width:29.167rem}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:.417rem .625rem}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:4.688rem}.global-search .global-search__wrapper .global-search__card .content-item{padding:.625rem;border-radius:.313rem;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:1.25rem;border-radius:.208rem;border:1px solid var(--n-border-color);padding:.156rem .313rem;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);-ms-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:.938rem;height:.938rem;right:.833rem;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:1.146rem;padding:0 .313rem;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.app-avatar{cursor:var(--app-avatar-cursor)}.app-avatar .app-avatar__name{font-weight:500}.menu-tag{height:2.396rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.313rem 0}.menu-tag .menu-tag-space{width:calc(100% - .938rem);padding:.469rem}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 4.896rem)}.menu-tag .menu-tag-space .ray-icon{cursor:pointer}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-setting{width:1.458rem;height:1.042rem}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{padding:.365rem .521rem}.menu-tag .menu-tag__btn .menu-tag__btn-icon--hidden{display:none!important}.menu-tag .menu-tag__btn .menu-tag__btn-icon{display:inline;margin-left:0;width:0;height:0;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);overflow:hidden;opacity:0}.menu-tag .menu-tag__btn .menu-tag__btn-icon .ray-icon{-webkit-transform:translate(-1px,0px);-ms-transform:translate(-1px,0px);transform:translate(-1px)}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:.729rem;height:.729rem;margin-left:.26rem;font-size:.625rem;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1}.menu-tag__dropdown .menu-tag__icon{width:.938rem;height:.938rem}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.1215686275);box-shadow:0 .104rem .104rem #0000001f}.ray-template--dark .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.7215686275);box-shadow:0 .104rem .104rem #000000b8} diff --git a/css/hooks-Cqe-s-rU.css.gz b/css/hooks-Cqe-s-rU.css.gz new file mode 100644 index 00000000..198c3151 Binary files /dev/null and b/css/hooks-Cqe-s-rU.css.gz differ diff --git a/css/hooks-NTUCATB8.css b/css/hooks-NTUCATB8.css deleted file mode 100644 index 1e678a87..00000000 --- a/css/hooks-NTUCATB8.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .35s var(--r-bezier);transition:width .35s var(--r-bezier)}.ray-chart .ray-chart__container{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid{-webkit-box-sizing:border-box;box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-transition:color .3s var(--r-bezier);transition:color .3s var(--r-bezier)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow{margin-left:.5em;-webkit-transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier);transition:color .3s var(--r-bezier),transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.ray-icon{position:relative;width:var(--ray-icon-width);height:var(--ray-icon-height);border:none;outline:none;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;fill:currentColor;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:var(--ray-icon-depth);cursor:var(--ray-icon-cursor)}.ray-icon svg[RayIconAttribute=ray-icon]{width:var(--ray-icon-width);height:var(--ray-icon-height);fill:currentColor}.ray-icon-path__animate{stroke-dasharray:var(--ray-icon-path-length);stroke-dashoffset:var(--ray-icon-path-length);-webkit-animation:rayIconPathAnimate 2s forwards;animation:rayIconPathAnimate 2s forwards}@-webkit-keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}@keyframes rayIconPathAnimate{to{stroke-dashoffset:0}}.ray-iframe{width:var(--ray-iframe-width);height:var(--ray-iframe-height);-webkit-box-sizing:border-box;box-sizing:border-box;border:var(--ray-iframe-frameborder)}.ray-iframe .ray-iframe__container{width:100%;height:100%;border:0;outline:0}.r-modal.n-card.r-modal__preset-card--fullscreen{width:100%}.r-modal.n-card.r-modal__preset-card--fullscreen .n-card__content{overflow:scroll}.r-modal.n-card{width:var(--r-modal-card-width)}.r-modal.n-dialog{width:var(--r-modal-dialog-width)}.r-table__c-tree .n-tree-node-switcher.n-tree-node-switcher--hide{visibility:visible}.r-table__c-tree .ray-icon.r-table__c-tool-icon--active{color:var(--ray-theme-primary-color)}.r-table__setting:hover{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);-webkit-transition:-webkit-transform .3s var(--r-bezier);transition:-webkit-transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier);transition:transform .3s var(--r-bezier),-webkit-transform .3s var(--r-bezier)}.r-segment{width:var(--r-segment-width)}.r-barcode{position:relative;width:var(--r-barcode-width);height:var(--r-barcode-height);-webkit-transition:-webkit-filter .3s var(--r-bezier);transition:-webkit-filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier);transition:filter .3s var(--r-bezier),-webkit-filter .3s var(--r-bezier)}.r-barcode.r-barcode--loading{-webkit-filter:blur(.208rem);filter:blur(.208rem)}.r-barcode-spin,.r-barcode-spin .n-spin-content{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}.r-layout-full{position:fixed;top:0;right:0;bottom:0;left:0}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container{overflow:hidden}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content{height:var(--layout-content-height);padding:.833rem}.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container,.r-layout-full .n-layout-scroll-container .r-layout-full__viewer .n-layout-scroll-container .r-layout-full__viewer-content .n-scrollbar-container .n-scrollbar-content{height:100%}.ray-template--light .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 -1px .104rem #0000001f}.ray-template--dark .r-layout-full__viewer-content{-webkit-box-shadow:0 -1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 -1px .104rem #000000b8}.n-drawer.app-menu__drawer{width:auto!important}.n-drawer.app-menu__drawer .n-layout-sider{height:100%}.ray-template--light .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.1215686275);box-shadow:.104rem 0 .417rem #0000001f}.ray-template--dark .app-menu__sider{-webkit-box-shadow:.104rem 0 .417rem rgba(0,0,0,.7215686275);box-shadow:.104rem 0 .417rem #000000b8}.ray-menu__logo{height:3.333rem;padding:0 .938rem 0 1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;gap:.417rem .625rem;font-weight:600;overflow:hidden}.ray-menu__logo.ray-menu__logo-url{position:-webkit-sticky;position:sticky;top:0;cursor:pointer;background-color:var(--n-color);z-index:20}.ray-menu__logo .ray-menu__logo-title{opacity:0;display:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ray-menu__logo .ray-menu__logo-title.ray-menu__logo-title--open{opacity:1;display:inline-block}.content-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:4.167rem;height:4.167rem;border-radius:50%;cursor:pointer;z-index:99;right:-2.083rem;top:-2.083rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier);transition:color .3s var(--r-bezier),background-color .3s var(--r-bezier)}.r-layout-full__viewer-content--maximize .layout-content__maximize-out .ray-icon{-webkit-transform:translate(-.729rem,.729rem);-ms-transform:translate(-.729rem,.729rem);transform:translate(-.729rem,.729rem)}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out{color:#2c2a28;background:#757473}body[class=ray-template--dark] .r-layout-full__viewer-content--maximize--dark .layout-content__maximize-out:hover{background-color:#d5d3d1;color:#44403c}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out{color:#eae9e8;background:#a19f9d}body[class=ray-template--light] .r-layout-full__viewer-content--maximize--light .layout-content__maximize-out:hover{background-color:#44403c;color:#d5d3d1}.ray-template--dark .r-layout-full__viewer-content{background-color:#101014}.ray-template--light .r-layout-full__viewer-content{background-color:#f7f9f8}.layout-footer-wrapper{height:2.5rem;text-align:center;line-height:2.5rem}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:3.333rem;padding:0 .938rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.1215686275);box-shadow:0 1px .104rem #0000001f}.ray-template--dark .layout-header{-webkit-box-shadow:0 1px .104rem rgba(0,0,0,.7215686275);box-shadow:0 1px .104rem #000000b8}.override-button__layout{padding:0 .469rem}.tooltip-text__icon{cursor:pointer;outline:none;border:none}.setting-drawer__space{width:100%}.setting-drawer__space .n-descriptions-table-content{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-active,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active,.n-breadcrumb .n-breadcrumb-item .breadcrumb-move{-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-enter-from,.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{opacity:0;-webkit-transform:translateX(1.042rem);-ms-transform:translateX(1.042rem);transform:translate(1.042rem)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:33.854rem;left:50%;margin-left:-16.927rem;top:3.125rem}.global-search .global-search__wrapper{-webkit-box-sizing:border-box;box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:.313rem;min-width:29.167rem}.global-search .global-search__wrapper .global-search__card .ray-icon{color:var(--ray-theme-primary-color)}.global-search .global-search__wrapper .global-search__card .n-card__action{padding:.417rem .625rem}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:4.688rem}.global-search .global-search__wrapper .global-search__card .content-item{padding:.625rem;border-radius:.313rem;cursor:pointer;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier);border:1px solid var(--n-border-color)}.global-search .global-search__wrapper .global-search__card .content-item .content-item-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:1.25rem;border-radius:.208rem;border:1px solid var(--n-border-color);padding:.156rem .313rem;background-color:var(--n-action-color)}.global-search .global-search__wrapper .global-search__card .item-icon,.global-search .global-search__wrapper .global-search__card .item-label{-webkit-transform:scale(.75);-ms-transform:scale(.75);transform:scale(.75);font-weight:bolder}.n-flex.global-search__card-content .content-item.content-item--active,.n-flex.global-search__card-content .content-item:hover{background-color:var(--ray-theme-primary-fade-color)}.n-flex.global-search__card-content .content-item{position:relative;-webkit-transition:var(--r-bezier);transition:var(--r-bezier)}.n-flex.global-search__card-content .content-item .content-item-icon__enter{position:absolute;width:.938rem;height:.938rem;right:.833rem;opacity:0}.n-flex.global-search__card-content .content-item.content-item--active .content-item-icon__enter,.n-flex.global-search__card-content .content-item:hover .content-item-icon__enter{opacity:1}.global-search-btn__label{height:1.146rem;padding:0 .313rem;font-size:var(--n-font-size);line-height:1;font-family:inherit;text-align:center;cursor:pointer;border-radius:var(--n-border-radius);text-decoration:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:var(--n-border);-webkit-transition:border-color .3s var(--n-bezier);transition:border-color .3s var(--n-bezier)}.global-search__btn-wrapper:hover .global-search-btn__label{border:var(--n-border-hover)}.app-avatar{cursor:var(--app-avatar-cursor)}.app-avatar .app-avatar__name{font-weight:500}.menu-tag{height:2.396rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.313rem 0}.menu-tag .menu-tag-space{width:calc(100% - .938rem);padding:.469rem}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 4.896rem)}.menu-tag .menu-tag-space .ray-icon{cursor:pointer}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-arrow{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-setting{width:1.458rem;height:1.042rem}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{padding:.365rem .521rem}.menu-tag .menu-tag__btn .menu-tag__btn-icon--hidden{display:none!important}.menu-tag .menu-tag__btn .menu-tag__btn-icon{display:inline;margin-left:0;width:0;height:0;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);overflow:hidden;opacity:0}.menu-tag .menu-tag__btn .menu-tag__btn-icon .ray-icon{-webkit-transform:translate(-1px,0px);-ms-transform:translate(-1px,0px);transform:translate(-1px)}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:.729rem;height:.729rem;margin-left:.26rem;font-size:.625rem;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1}.menu-tag__dropdown .menu-tag__icon{width:.938rem;height:.938rem}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.1215686275);box-shadow:0 .104rem .104rem #0000001f}.ray-template--dark .menu-tag{-webkit-box-shadow:0 .104rem .104rem rgba(0,0,0,.7215686275);box-shadow:0 .104rem .104rem #000000b8} diff --git a/css/hooks-NTUCATB8.css.gz b/css/hooks-NTUCATB8.css.gz deleted file mode 100644 index 761c0ccb..00000000 Binary files a/css/hooks-NTUCATB8.css.gz and /dev/null differ diff --git a/index.html b/index.html index 580aab70..7987e27f 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - + @@ -29,7 +29,7 @@ - + @@ -39,10 +39,10 @@ - + - + diff --git a/index.html.gz b/index.html.gz index 7ef8a667..7d596799 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/BarcodeDemo-DsEn-JsL.js b/js/BarcodeDemo-BE4R2dyH.js similarity index 96% rename from js/BarcodeDemo-DsEn-JsL.js rename to js/BarcodeDemo-BE4R2dyH.js index 91fc29b0..54b4868d 100644 --- a/js/BarcodeDemo-DsEn-JsL.js +++ b/js/BarcodeDemo-BE4R2dyH.js @@ -1 +1 @@ -import{w as e}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const T=Vue.defineComponent({name:"BarcodeDemo",setup(){const u={width:4},t=Vue.ref(!1),a=Vue.ref("RayTemplate");return{baseOptions:u,loading:t,text:a}},render(){const{baseOptions:u}=this;return Vue.createVNode(naive.NGrid,{cols:2,xGap:12,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"详细配置项说明"},{default:()=>[Vue.createTextVNode("点击查看详细配置项:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[Vue.createTextVNode("js-barcode options")]),Vue.createTextVNode("。")]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义颜色条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u,lineColor:"red"}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"pharmacode 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[Vue.createTextVNode("pharmacode")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"codabar 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[Vue.createTextVNode("codabar")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"有状态的条形码"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.loading,"onUpdate:value":t=>this.loading=t,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),Vue.createVNode(e,{text:"RayTemplate",loading:this.loading},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"watchText 主动监听 text 变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.text,"onUpdate:value":t=>this.text=t},null),Vue.createVNode(e,{text:this.text,watchText:!0},null)]})]})]})]})}});export{T as default}; +import{y as e}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const T=Vue.defineComponent({name:"BarcodeDemo",setup(){const u={width:4},t=Vue.ref(!1),a=Vue.ref("RayTemplate");return{baseOptions:u,loading:t,text:a}},render(){const{baseOptions:u}=this;return Vue.createVNode(naive.NGrid,{cols:2,xGap:12,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"详细配置项说明"},{default:()=>[Vue.createTextVNode("点击查看详细配置项:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[Vue.createTextVNode("js-barcode options")]),Vue.createTextVNode("。")]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义颜色条形码"},{default:()=>[Vue.createVNode(e,{text:"RayTemplate",options:{...u,lineColor:"red"}},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"pharmacode 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[Vue.createTextVNode("pharmacode")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"codabar 模式"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{type:"warning",title:"注意"},{default:()=>[Vue.createTextVNode("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),Vue.createVNode("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[Vue.createTextVNode("codabar")]),Vue.createTextVNode("。")]}),Vue.createVNode(e,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"有状态的条形码"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.loading,"onUpdate:value":t=>this.loading=t,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),Vue.createVNode(e,{text:"RayTemplate",loading:this.loading},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"watchText 主动监听 text 变化"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.text,"onUpdate:value":t=>this.text=t},null),Vue.createVNode(e,{text:this.text,watchText:!0},null)]})]})]})]})}});export{T as default}; diff --git a/js/BarcodeDemo-BE4R2dyH.js.gz b/js/BarcodeDemo-BE4R2dyH.js.gz new file mode 100644 index 00000000..0d046b7e Binary files /dev/null and b/js/BarcodeDemo-BE4R2dyH.js.gz differ diff --git a/js/BarcodeDemo-DsEn-JsL.js.gz b/js/BarcodeDemo-DsEn-JsL.js.gz deleted file mode 100644 index f6d15aa8..00000000 Binary files a/js/BarcodeDemo-DsEn-JsL.js.gz and /dev/null differ diff --git a/js/en-US-MjnvJ74S.js.gz b/js/en-US-MjnvJ74S.js.gz deleted file mode 100644 index febb230a..00000000 Binary files a/js/en-US-MjnvJ74S.js.gz and /dev/null differ diff --git a/js/en-US-MjnvJ74S.js b/js/en-US-NT-RVN9T.js similarity index 90% rename from js/en-US-MjnvJ74S.js rename to js/en-US-NT-RVN9T.js index 3fdc24cb..dce84b24 100644 --- a/js/en-US-MjnvJ74S.js +++ b/js/en-US-NT-RVN9T.js @@ -1 +1 @@ -import{v as Y}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const e="The current environment does not support full screen",Z={isEnabledFullscreen:e},ee=Object.freeze(Object.defineProperty({__proto__:null,default:Z,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",c="Content Transition",oe={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},te=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:oe},Symbol.toStringTag,{value:"Module"})),i="Reload Current Page",r="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",g="Search",ne={Reload:i,Lock:r,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:g},ce=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:r,Reload:i,Search:g,Setting:s,default:ne},Symbol.toStringTag,{value:"Module"})),u="Axios Request",p="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",O="Mock",R="Modal",P="MultiMenu(catch)",v="Office",M="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",ie={Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:O,Modal:R,MultiMenu:P,Office:v,Office_Document:M,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E},re=Object.freeze(Object.defineProperty({__proto__:null,Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:O,Modal:R,MultiMenu:P,Office:v,Office_Document:M,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="Configuration",N={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},B="Interface Display",se={Title:Q,ThemeOptions:N,InterfaceDisplay:B},le=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:N,Title:Q,default:se},Symbol.toStringTag,{value:"Module"})),G="Register",H="Signing",$="QRCode Signing",q="please enter user name",V="please enter password",J="Login",K="User Name",W="User Password",X="Fast Background Template",ae={Register:G,Signing:H,QRCodeSigning:$,NamePlaceholder:q,PasswordPlaceholder:V,Login:J,Name:K,Password:W,RayTemplate:X},me=Object.freeze(Object.defineProperty({__proto__:null,Login:J,Name:K,NamePlaceholder:q,Password:W,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:X,Register:G,Signing:H,default:ae},Symbol.toStringTag,{value:"Module"})),ge=Object.assign({"./en-US/globalMessage.json":ee,"./en-US/headerSettingOptions.json":te,"./en-US/headerTooltip.json":ce,"./en-US/menu.json":re,"./en-US/setting.json":le,"./en-US/views/login/index.json":me}),Ue={message:{...Y(ge,"en-US")}};export{Ue as default}; +import{x as Y}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const e="The current environment does not support full screen",Z={isEnabledFullscreen:e},ee=Object.freeze(Object.defineProperty({__proto__:null,default:Z,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="Configuration",t={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},n="Display",c="Content Transition",oe={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},te=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:oe},Symbol.toStringTag,{value:"Module"})),i="Reload Current Page",r="Lock",s="Setting",l="Github",a="Full Screen",m="Cancel Full Screen",g="Search",ne={Reload:i,Lock:r,Setting:s,Github:l,FullScreen:a,CancelFullScreen:m,Search:g},ce=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:m,FullScreen:a,Github:l,Lock:r,Reload:i,Search:g,Setting:s,default:ne},Symbol.toStringTag,{value:"Module"})),u="Axios Request",p="Barcode",d="Cache Utils Demo",_="Precision",S="Right Click Menu",f="Home",b="Directive",h="Doc",T="Doc (China)",D="Doc(inside)",y="Chart",C="Form",O="Mock",R="Modal",P="MultiMenu(catch)",M="Office",v="Document",j="Presentation",L="Spreadsheet",k="QRCode",F="Rely",I="Rely About",U="Same Level Router Demo",x="Segment",w="SVG Icon",A="Table",z="Template Api",E="Scroll Reveal",ie={Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Error:"Error Page",Form:C,Mock:O,Modal:R,MultiMenu:P,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,scrollReveal:E},re=Object.freeze(Object.defineProperty({__proto__:null,Axios:u,Barcode:p,CacheDemo:d,CalculatePrecision:_,ContextMenu:S,Dashboard:f,Directive:b,Doc:h,DocLocal:T,DocLocalInside:D,Echart:y,Form:C,Mock:O,Modal:R,MultiMenu:P,Office:M,Office_Document:v,Office_Presentation:j,Office_Spreadsheet:L,QRCode:k,Rely:F,RelyAbout:I,RouterDemo:U,Segment:x,SvgIcon:w,Table:A,TemplateHooks:z,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="Configuration",N={Title:"Theme",Dark:"Dark",Light:"Light",PrimaryColorConfig:"Primary Color"},B="Interface Display",se={Title:Q,ThemeOptions:N,InterfaceDisplay:B},le=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:N,Title:Q,default:se},Symbol.toStringTag,{value:"Module"})),G="Register",H="Signing",$="QRCode Signing",q="please enter user name",V="please enter password",J="Login",K="User Name",W="User Password",X="Fast Background Template",ae={Register:G,Signing:H,QRCodeSigning:$,NamePlaceholder:q,PasswordPlaceholder:V,Login:J,Name:K,Password:W,RayTemplate:X},me=Object.freeze(Object.defineProperty({__proto__:null,Login:J,Name:K,NamePlaceholder:q,Password:W,PasswordPlaceholder:V,QRCodeSigning:$,RayTemplate:X,Register:G,Signing:H,default:ae},Symbol.toStringTag,{value:"Module"})),ge=Object.assign({"./en-US/globalMessage.json":ee,"./en-US/headerSettingOptions.json":te,"./en-US/headerTooltip.json":ce,"./en-US/menu.json":re,"./en-US/setting.json":le,"./en-US/views/login/index.json":me}),Ue={message:{...Y(ge,"en-US")}};export{Ue as default}; diff --git a/js/en-US-NT-RVN9T.js.gz b/js/en-US-NT-RVN9T.js.gz new file mode 100644 index 00000000..9912bed9 Binary files /dev/null and b/js/en-US-NT-RVN9T.js.gz differ diff --git a/js/hooks-BFGxA73i.js b/js/hooks-BFGxA73i.js deleted file mode 100644 index 6ef66049..00000000 --- a/js/hooks-BFGxA73i.js +++ /dev/null @@ -1,12 +0,0 @@ -const __vite__fileDeps=["js/en-US-MjnvJ74S.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-Dos9GOhk.js","js/@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js","js/@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js","js/utils-B_NGfO2V.js","js/interactjs@1.10.26-V8skghJH.js","js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js","js/dom-to-image@2.6.0-DCOFUeQU.js","js/echarts@5.5.0-BEyY33Zi.js","js/zrender@5.5.0-JN1hODMT.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.4.26-Cq5aFJKF.js","js/@vue_reactivity@3.4.26-DTbxPGxS.js","js/@vue_shared@3.4.26-DWpY0PUk.js","js/zh-CN-BJn4N-5B.js","js/index-BCgERcJv.js","js/index-43Sr2ZDd.js","css/index-DeeQXRbp.css","js/index-PkhXpGap.js","js/instance-ClAhwUsY.js","css/index-CTOeMyqn.css","js/BarcodeDemo-DsEn-JsL.js","js/index-_7rv9kmG.js","js/index-B-JIDxHH.js","js/index-ClGwgU9o.js","css/index-BqPIKfai.css","js/index-Cs-0uuwR.js","js/index-saB8SoC_.js","js/index-BAoV7gwx.js","js/index-DQQD1Hi-.js","js/index-CptmWXVL.js","js/index-DXw-vgra.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-DuR3EA5M.css","js/ray-dCjhX_JK.js","js/index-B2ShSf91.js","css/index-cMo-v_SD.css","js/index-B47naHKJ.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-CCddRp-e.js","js/index-ZQp8r9U7.js","css/index-CIq6_pk2.css","js/index-BGhimq3o.js","js/index-F9SfnBMI.js","js/index-C2nyhHG5.js","css/index-G2qqDeP0.css","js/index-2ABOmIsE.js","css/index-BhnoEzFG.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var Xo=Object.defineProperty;var Zo=(e,t,o)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ye=(e,t,o)=>(Zo(e,typeof t!="symbol"?t+"":t,o),o);import{s as Te,c as ve,t as Fe,i as dt,o as Be,p as be}from"./lodash-es@4.17.21-Dos9GOhk.js";import{o as Jo,u as re,a as Qo,b as en,c as Oe,d as tn,e as pt}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import{d as W}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as on}from"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as le,i as G,s as We,a as Ie,c as nn,b as L,r as ae,d as x,e as an,u as Ve,q as Se,f as ke,h as mt,p as ht,j as Ke,k as Xe,l as rn,m as ln,n as sn,o as cn,t as un,w as dn,v as U}from"./utils-B_NGfO2V.js";import{u as ft}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{i as Ze}from"./interactjs@1.10.26-V8skghJH.js";import{s as pn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{d as oe}from"./dom-to-image@2.6.0-DCOFUeQU.js";import{r as mn,u as ne,i as hn,a as fn,b as gn,c as yn,d as vn,e as bn,f as Vn,g as Sn,h as _n,j as wn,k as Cn,l as Nn,m as Tn,n as On,o as kn,p as xn,q as Rn,s as An}from"./echarts@5.5.0-BEyY33Zi.js";import{f as Pn,g as Mn}from"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import{c as gt,o as yt,a as vt}from"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";const Gl=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const a=e[n].default;let r=n.replace(`./${t}/`,"").replace(/^\.\//,"");const s=r.lastIndexOf(".");r=r.substring(0,s);const l=r.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Te(o,i,o[i]||{}),Te(o[i],u,a)):Te(o,i,a||{}))}),o},Ln="modulepreload",zn=function(e){return"/ray-template/"+e},Je={},T=function(t,o,n){let a=Promise.resolve();if(o&&o.length>0){const r=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.all(o.map(i=>{if(i=zn(i),i in Je)return;Je[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!n)for(let v=r.length-1;v>=0;v--){const g=r[v];if(g.href===i&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const m=document.createElement("link");if(m.rel=u?"stylesheet":Ln,u||(m.as="script",m.crossOrigin=""),m.href=i,l&&m.setAttribute("nonce",l),document.head.appendChild(m),u)return new Promise((v,g)=>{m.addEventListener("load",v),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${i}`)))})}))}return a.then(()=>t()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},jn=(e,t,o)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((a,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},En=async e=>{var o;const t={};for(const n of e){const a=await jn(Object.assign({"../lang/en-US.ts":()=>T(()=>import("./en-US-MjnvJ74S.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),"../lang/zh-CN.ts":()=>T(()=>import("./zh-CN-BJn4N-5B.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))}),`../lang/${n.key}.ts`,3),r=n.key;r&&(t[r]=((o=a==null?void 0:a.default)==null?void 0:o.message)??{})}return t},Hl=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Yl={max:5,closable:!1},Xl="loading",bt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Zl="",j={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},In=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},Vt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Dn="zh-CN",$n="zh-CN",Fn={"zh-CN":"zh-cn","en-US":"en"},Bn="zh-cn",Jl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Ql={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),St=Vue.ref(null),Wn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Kn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],es=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),a=Vue.ref(!1),{clickOutside:r}=t??{},s=h=>{a.value=h},l=h=>{h.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:m,clientY:v}=h;o.value=m,n.value=v,s(!0)})};r&&Jo(e,h=>{r(h)});const i=re(e,"contextmenu",l,t),u=re(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(a),updateShow:s}},_e=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function q(e,t,o){Object.hasOwn(_e,e)&&(_e[e]=t,o==null||o())}function Ce(e){return Vue.readonly(Vue.toRef(_e,e))}function Un(){return{...Vue.toRefs(Vue.readonly(_e))}}let K;const qn=async()=>{const e=Uo(),t=await En(Vt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:$n})},ts=async e=>{const t=await qn();e.use(t),K=t},Qe=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,se=e=>{if(!K)return{t:r=>Qe(e,r),locale:r=>{}};const{t,...o}=K.global;return{...o,t:(r,...s)=>r?!r.includes(".")&&!e?r:t(Qe(e,r),...s):"",locale:r=>{K.mode==="legacy"?K.global.locale=r:Vue.isRef(K.global.locale)?K.global.locale.value=r:K.global.locale=r}}},P=e=>e,Gn={path:"/dashboard",component:()=>T(()=>import("./index-BCgERcJv.js"),__vite__mapDeps([23,1,2,3,8,4,5,6,7,24,9,10,11,12,13,14,15,16,17,18,19,20,21,25])),meta:{i18nKey:P("menu.Dashboard"),icon:"dashboard",order:0}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/axios",name:"RAxios",component:()=>T(()=>import("./index-PkhXpGap.js"),__vite__mapDeps([26,4,5,2,6,7,27,1,3,12,9,8,10,11,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:P("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"barcode",component:()=>T(()=>import("./BarcodeDemo-DsEn-JsL.js"),__vite__mapDeps([29,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/cache-demo",component:()=>T(()=>import("./index-_7rv9kmG.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CacheDemo"),icon:"other",order:3}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ta={path:"/context-menu",component:()=>T(()=>import("./index-B-JIDxHH.js"),__vite__mapDeps([31,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.ContextMenu"),icon:"other",order:2}},oa=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={path:"/directive",component:()=>T(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:P("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},aa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ra={path:"/echart",component:()=>T(()=>import("./index-ClGwgU9o.js"),__vite__mapDeps([32,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,33])),meta:{i18nKey:P("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},la=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),sa={path:"/form",component:()=>T(()=>import("./index-Cs-0uuwR.js"),__vite__mapDeps([34,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ia=Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"})),ca={path:"/iframe",component:()=>T(()=>import("./index-saB8SoC_.js"),__vite__mapDeps([35,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},ua=Object.freeze(Object.defineProperty({__proto__:null,default:ca},Symbol.toStringTag,{value:"Module"})),da={path:"/mock-demo",component:()=>T(()=>import("./index-BAoV7gwx.js"),__vite__mapDeps([36,1,2,3,8,4,5,6,7,27,12,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},pa=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),ma={path:"/modal-demo",component:()=>T(()=>import("./index-DQQD1Hi-.js"),__vite__mapDeps([37,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Modal"),icon:"other",order:3}},ha=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ye=()=>T(()=>Promise.resolve().then(()=>Wr),void 0),fa={path:"/multi",component:ye,meta:{i18nKey:P("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>T(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>T(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>T(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},ga=Object.freeze(Object.defineProperty({__proto__:null,default:fa},Symbol.toStringTag,{value:"Module"})),ya={path:"/precision",component:()=>T(()=>import("./index-CptmWXVL.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CalculatePrecision"),icon:"other",order:2}},va=Object.freeze(Object.defineProperty({__proto__:null,default:ya},Symbol.toStringTag,{value:"Module"})),ba={path:"/qrcode",component:()=>T(()=>import("./index-DXw-vgra.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:P("menu.QRCode"),icon:"other",order:2}},Va=Object.freeze(Object.defineProperty({__proto__:null,default:ba},Symbol.toStringTag,{value:"Module"})),Sa={path:"rely-about",component:()=>T(()=>import("./index-B2ShSf91.js"),__vite__mapDeps([43,44])),meta:{i18nKey:P("menu.RelyAbout"),icon:"rely",order:999}},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),wa={path:"/router-demo",component:ye,meta:{i18nKey:P("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>T(()=>import("./index-B47naHKJ.js"),__vite__mapDeps([45,1,2,3,8,9,10,11,12,4,5,6,7,13,14,15,16,17,18,19,20,21])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>T(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Ca=Object.freeze(Object.defineProperty({__proto__:null,default:wa},Symbol.toStringTag,{value:"Module"})),Na={path:"/scroll-reveal",component:()=>T(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:P("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Na},Symbol.toStringTag,{value:"Module"})),Oa={path:"/segment",component:()=>T(()=>import("./index-CCddRp-e.js"),__vite__mapDeps([48,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),xa={path:"/svg-icons",component:()=>T(()=>import("./index-ZQp8r9U7.js"),__vite__mapDeps([49,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,50])),meta:{i18nKey:P("menu.SvgIcon"),icon:"other",order:3}},Ra=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),Aa={path:"/table",component:()=>T(()=>import("./index-BGhimq3o.js"),__vite__mapDeps([51,1,2,3,12,9,8,4,5,6,7,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"})),Ma={path:"/template-hooks",component:()=>T(()=>import("./index-F9SfnBMI.js"),__vite__mapDeps([52,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.TemplateHooks"),icon:"other",order:1}},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),za={path:"/:catchAll(.*)",component:()=>T(()=>import("./index-C2nyhHG5.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21,54])),meta:{i18nKey:P("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}},ja=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"})),Ea=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Hn,"/src/router/modules/demo/axios.ts":Xn,"/src/router/modules/demo/barcode.ts":Jn,"/src/router/modules/demo/cache-demo.ts":ea,"/src/router/modules/demo/context-menu.ts":oa,"/src/router/modules/demo/directive.ts":aa,"/src/router/modules/demo/echart.ts":la,"/src/router/modules/demo/form.ts":ia,"/src/router/modules/demo/iframe.ts":ua,"/src/router/modules/demo/mock.ts":pa,"/src/router/modules/demo/modal.ts":ha,"/src/router/modules/demo/multi-menu.ts":ga,"/src/router/modules/demo/precision.ts":va,"/src/router/modules/demo/qrcode.ts":Va,"/src/router/modules/demo/rely.ts":_a,"/src/router/modules/demo/router-demo.ts":Ca,"/src/router/modules/demo/scroll-reveal.ts":Ta,"/src/router/modules/demo/segment.ts":ka,"/src/router/modules/demo/svg-icons.ts":Ra,"/src/router/modules/demo/table.ts":Pa,"/src/router/modules/demo/template-hooks.ts":La,"/src/router/modules/error-404.ts":ja});return Object.keys(e).reduce((o,n)=>{const a=e[n].default;if(a)o.push(a);else throw new Error(`[combineRawRouteModules]: ${n} module must export default.`);return o},[])},Ia=e=>e[0]==="/",_t=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const a of e){const r=o+(Ia(a.path)?a.path:"/"+a.path);if((n=a.children)!=null&&n.length){_t(a.children,t,r);continue}else t.push({...a,path:r})}return t},Da=e=>Array.isArray(e)?_t(ve(e)):[],$a=e=>e.sort((t,o)=>{var r,s;const n=((r=t.meta)==null?void 0:r.order)??1,a=((s=o.meta)==null?void 0:s.order)??0;if(typeof n!="number"||typeof a!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===a?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-a}),Fa=e=>{const{beforeEach:t}=e,{getRootPath:o}=te(),n=(a,r)=>a.path==="/"||r.path==="/login";t((a,r,s)=>{const l=le(j.token),i=le(j.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=a;l!==null?n(a,r)?xe(!0):!G(c,"Symbol")&&c&&Kn.includes(c)?s():Fo(u)?n(a,r)?i?s(i):xe(!0):s():xe(!0):n(a,r)?s():s("/")})},xe=(e=!0)=>{const{router:t}=Ue(),{push:o,replace:n}=t,{getRootPath:a}=te();We(j.appMenuKey,a.value),e?n(a.value):o(a.value)},Ba=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Q.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Wa=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},wt=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:a}=t,{MODE:r}=Ie();return!(n||o||a&&typeof a=="string"&&a!==r||a&&Array.isArray(a)&&!a.includes(r))};var Ka={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ct=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Ka,{locale:t}=se(),{locale:o}=Cl(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Uo(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),a=l=>{t(l),o(l),n.localeLanguage=l,We(j.localeLanguage,l,"localStorage")},r=(l,i=.3)=>{const u=nn(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const h=document.body;h.style.setProperty("--ray-theme-primary-color",l),h.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return Pn(()=>n.appTheme,l=>{l?Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:a,changePrimaryColor:r,updateSettingState:s}},{persist:{key:j.appPiniaSettingStore}}),Nt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],Tt="transparent",Ot={},kt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},xt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Rt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},At={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Pt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Lt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Et={itemStyle:{borderWidth:0,borderColor:"#ccc"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Dt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},$t={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Ft={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Bt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Wt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ut={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},qt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Gt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Ht={textStyle:{color:"#999999"}},Yt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Xt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Zt={color:["#fc97af","#87f7cf"]},Jt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Qt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ua={color:Nt,backgroundColor:Tt,textStyle:Ot,title:kt,line:xt,radar:Rt,bar:At,pie:Pt,scatter:Mt,boxplot:Lt,parallel:zt,sankey:jt,funnel:Et,gauge:It,candlestick:Dt,graph:$t,map:Ft,geo:Bt,categoryAxis:Wt,valueAxis:Kt,logAxis:Ut,timeAxis:qt,toolbox:Gt,legend:Ht,tooltip:Yt,timeline:Xt,visualMap:Zt,dataZoom:Jt,markPoint:Qt},qa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Tt,bar:At,boxplot:Lt,candlestick:Dt,categoryAxis:Wt,color:Nt,dataZoom:Jt,default:Ua,funnel:Et,gauge:It,geo:Bt,graph:$t,legend:Ht,line:xt,logAxis:Ut,map:Ft,markPoint:Qt,parallel:zt,pie:Pt,radar:Rt,sankey:jt,scatter:Mt,textStyle:Ot,timeAxis:qt,timeline:Xt,title:kt,toolbox:Gt,tooltip:Yt,valueAxis:Kt,visualMap:Zt},Symbol.toStringTag,{value:"Module"})),eo=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],to="transparent",oo={},no={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},ao={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ro={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},lo={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},so={itemStyle:{borderWidth:0,borderColor:"#ccc"}},io={itemStyle:{borderWidth:0,borderColor:"#ccc"}},co={itemStyle:{borderWidth:0,borderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ho={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},go={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},yo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},vo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},bo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Vo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},So={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},_o={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},wo={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Co={textStyle:{color:"#333333"}},No={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},To={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Oo={color:["#5ab1ef","#e0ffff"]},ko={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},xo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ga={color:eo,backgroundColor:to,textStyle:oo,title:no,line:ao,radar:ro,bar:lo,pie:so,scatter:io,boxplot:co,parallel:uo,sankey:po,funnel:mo,gauge:ho,candlestick:fo,graph:go,map:yo,geo:vo,categoryAxis:bo,valueAxis:Vo,logAxis:So,timeAxis:_o,toolbox:wo,legend:Co,tooltip:No,timeline:To,visualMap:Oo,dataZoom:ko,markPoint:xo},Ha=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:to,bar:lo,boxplot:co,candlestick:fo,categoryAxis:bo,color:eo,dataZoom:ko,default:Ga,funnel:mo,gauge:ho,geo:vo,graph:go,legend:Co,line:ao,logAxis:So,map:yo,markPoint:xo,parallel:uo,pie:so,radar:ro,sankey:po,scatter:io,textStyle:oo,timeAxis:_o,timeline:To,title:no,toolbox:wo,tooltip:No,valueAxis:Vo,visualMap:Oo},Symbol.toStringTag,{value:"Module"})),Ya=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":qa,"/src/app-config/echart-themes/macarons/macarons.json":Ha}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,a)=>{var s;const r=(s=a.match(t))==null?void 0:s[1];if(r)return n.push({name:r,theme:e[a].default}),n;throw new Error(`[RChart Theme Error]: name ${a} is invalid!`)},[])},Xa=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Za={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Xa()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]})},onRegister:{type:[Function,Array],default:null}},Ja={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Qa=Ya(),et="__R_CHART_DOWN_LOAD_CHART__";Qa.forEach(e=>{mn(e.name,e.theme)});const os=Vue.defineComponent({name:"RChart",props:Za,setup(e,{expose:t}){const{getAppTheme:o}=D(),n=Vue.ref(),a=Vue.ref(),r=Vue.ref();let s,l;const{echartTheme:i}=$;let u,c;const h=Vue.computed(()=>[{label:"下载图片",key:et,disabled:!(r.value&&r.value.getDom())}]),m=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),v=Vue.ref(!1);let g;const y=async()=>{var O;ne([fn,gn,yn,vn,bn,Vn,Sn,_n]),ne([wn,Cn,Nn,Tn,On,kn]),ne([xn,Rn]),ne([An]);try{ne((O=e.use)==null?void 0:O.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},f=()=>{if(c!=null&&c.getDom()&&S(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const O=e.autoChangeTheme&&o.value?`${i}-dark`:i;d(O)}},p=O=>{let M=Vue.unref(O);const A=I=>Object.assign({},M,I);return e.showAria&&(M=A({aria:{enabled:!0,decal:{show:!0}}})),M},d=(O=i)=>{const M=n.value,A=p(e.options),{height:I,width:B}=M.getBoundingClientRect(),{onSuccess:ue,onError:de}=e;try{c=hn(M,O,{width:B===0?200:void 0,height:I===0?200:void 0}),r.value=c,ue&&x(ue,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{A&&(c==null||c.setOption(A))})):A&&(c==null||c.setOption(A))}catch(Z){throw de&&x(de),new Error(`[RChart render error]: ${Z}`)}finally{const{onFinally:Z}=e;Z&&x(Z)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),r.value=void 0,c=null)},k=()=>{c&&c.resize()},b=(O,M)=>{if(O===et&&!V()){const{filename:I,...B}=e.downloadOptions;an(c.getDataURL(B),I??`${new Date().getTime()}`)}const{onDropdownSelect:A}=e;A&&x(A,O,M)},_=()=>{if(e.autoResize&&(s||(s=Fe(k,500)),l||(l=en(e.autoResizeObserverTarget||a,s))),c!=null&&c.getDom()||!v.value&&e.intersectionObserver)return;f(),g==null||g.stop();const{onRegister:O}=e;O&&c&&x(O,c,_,R)};e.intersectionObserver&&(g=Qo(e.intersectionObserverTarget||a,([O])=>{v.value=O.isIntersecting},e.intersectionOptions));const R=()=>{S(),s==null||s.cancel(),l==null||l.stop(),g==null||g.stop(),g=null,s=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(S(),f())}),Vue.watch(()=>e.showAria,()=>{S(),f()}),Vue.watchEffect(()=>{e.watchOptions?u=Mn(()=>e.options,O=>{const M=p(O),A=Object.assign({},e.setChartOptions,Ja);c==null||c.setOption(M,A)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),v.value&&_()}),t(),Vue.onBeforeMount(async()=>{await y()}),Vue.onMounted(()=>{_()}),Vue.onBeforeUnmount(()=>{R(),u==null||u()}),{rayChartRef:n,cssVarsRef:m,rayChartWrapperRef:a,moreDropDownOptions:h,dropdownSelect:b}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:a,bordered:r,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:r},{default:ae(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ae(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ae(l,{defaultElement:Vue.createVNode(Po,{iconSize:18,cursor:"pointer",options:s??n,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ns=()=>{let e,t,o;const n=(i,u,c)=>{i&&(e=i,t=c,o=u)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:o,echartInst:e}};return[n,{getChartInstance:a,isDispose:()=>!(e&&a().echartInst.getDom()),dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},er={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},as=Vue.defineComponent({name:"RCollapseGrid",props:er,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:a,"onUpdate:value":r}=e;a&&x(a,t.value),r&&x(r,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(N,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),tr={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},N=Vue.defineComponent({name:"RIcon",props:tr,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?L(e.width):L(e.size),"--ray-icon-height":e.height?L(e.height):L(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor}));return{symbolId:t,cssVars:o,iconClick:a=>{const{onClick:r}=e;r&&x(r,a)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),or={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},iframeClass:{type:String,default:null}},rs=Vue.defineComponent({name:"RIframe",props:or,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":L(e.frameborder),"--ray-iframe-width":L(e.width),"--ray-iframe-height":L(e.height)})),n=Vue.ref(),a=Vue.ref(!0),r=l=>{a.value=!1;const{onSuccess:i}=e;i&&x(i,n.value,l)},s=l=>{a.value=!1;const{onError:i}=e;i&&x(i,l)};return re(n,"load",r),re(n,"error",s),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:a}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),nr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},ar=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(a=>{setTimeout(()=>{const r=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Ze(e).draggable({inertia:!0,autoScroll:!0,allowFrom:r,modifiers:[Ze.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);a(s)}},30)})},Ro=(e,t)=>{const o=typeof e=="string"?document.querySelector(e):e;return new Promise((n,a)=>{if(o){o.setAttribute("can-drag","true");const{preset:r,dargCallback:s}=t;let{x:l,y:i}=t;ar(o,r,{scheduler:u=>{const c=u.target;l+=u.dx,i+=u.dy,c.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{n(u)})}else a()})},rr="r-modal__preset-card--fullscreen",Ao="r-modal",ee={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},ls=Vue.defineComponent({name:"RModal",props:nr,setup(e){const t=Vue.computed(()=>({[ee.width]:L(e.width??600),[ee.cardWidth]:L(e.cardWidth??600),[ee.dialogWidth]:L(e.dialogWidth??446)})),o=Ve();let n;const a={x:0,y:0},r=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(o);l&&Ro(l,{preset:e.preset,x:a.x,y:a.y,dargCallback:(i,u)=>{a.x=i,a.y=u}}).then(i=>{n=i}),e.memo&&l&&(l.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(n==null||n.unset(),n=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:r,uuidEl:o}},render(){const{$props:e,$slots:t,$attrs:o}=this,{preset:n,...a}=e,{cssVars:r,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[Ao,l?rr:""],style:[r,l?"height: 100vh":""],preset:n},{id:s},a,o),{...t})}}),ss=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:n=>{const{content:a,...r}=n;let s=a;r.preset==="card"&&r.fullscreen&&(s=()=>Vue.h(naive.NScrollbar,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{padding:"0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left)",width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:l,dad:i,fullscreen:u,width:c,cardWidth:h,dialogWidth:m}=n,v=e({...r,content:s}),{key:g}=v,y={[ee.width]:L(c??600),[ee.cardWidth]:L(h??600),[ee.dialogWidth]:L(m??446)};return Vue.nextTick(()=>{const[f]=Se(`[internalkey="${g}"]`)||[];if(f){if(i&&Ro(f,{preset:l,x:0,y:0}),u&&l==="card"){const p=f.querySelector(".n-card__content");p&&ke(p,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),ke(f,{width:"100%",height:"100vh"})}ke(f,y),mt(f,Ao)}}),v},destroyAll:t}},lr={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function sr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Po=Vue.defineComponent({name:"RMoreDropdown",props:lr,render(){let e;const{iconSize:t,cursor:o,icon:n}=this,{default:a}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),sr(e=ae(a,{defaultElement:Vue.createVNode(N,{name:n,size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),ie={...naive.dataTableProps,cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},F={tableIconSize:"18",tableKey:Symbol("r-table")},ir=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],cr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:r}=e;r&&x(r,a)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"adjustment",size:F.tableIconSize,cursor:"pointer"},null)]})}}),ur=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=ft(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(N,{name:"fullscreen",size:F.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),dr=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"grab"},null),tt=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:e,size:F.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),De=(e,t)=>{if(!t)return[null,null];for(let o=0;ove(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:c,title:h,children:m,fixed:v,isResizable:g,...y}=i,f=v==="left",p=v==="right",d={...y,title:h,key:c,fixed:v,isLeftFixedActivated:f,isRightFixedActivated:p,isResizable:g};return{...d,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(tt,{icon:"row_head",title:"固定在列首",customClassName:f?Re:"",onClick:r.bind(this,"left",d,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"resize_h",size:F.tableIconSize,cursor:"pointer",customClassName:g?Re:"",onClick:a.bind(this,d,u)},null),default:()=>"修改列宽"}),Vue.createVNode(tt,{icon:"row_end",title:"固定在列尾",customClassName:p?Re:"",onClick:r.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&x(i,l)},a=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,o.value[i]=l,n(o.value)},r=(l,i,u)=>{const c=`${l}FixedActivated`,h=`${l==="left"?"right":"left"}FixedActivated`;i[h]=!1,i[c]=!i[c],i[c]?i.fixed=l:i.fixed=void 0,o.value[u]=i,n(o.value)};return{treeDataSource:o,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[c,h]=De(i,o.value);if(c===null||h===null)return;c.splice(h,1);const[m,v]=De(l,o.value);m===null||v===null||(u==="before"?m.splice(v,0,i):m.splice(v+1,0,i),dt(t)||m.unshift(t),n(m))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(N,{name:"setting",size:F.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:dr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),mr=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(F.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:a}={},title:r}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof r=="string"?r:""),ht(t,{printOptions:n,domToImageOptions:a})}}},render(){return Vue.createVNode(N,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),hr=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=r=>{const{onPopselectChange:s}=e;s&&x(s,r)};return(()=>{const{striped:r,bordered:s,onInitialed:l}=e;r&&o.value.push("striped"),s&&o.value.push("bordered"),l&&x(l,o.value)})(),{propsPopselectValue:o,popoverShow:t,updatePopselectValue:n}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:ir,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(N,{name:"expanded",size:F.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const is=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ie,setup(e,t){const{expose:o,emit:n}=t,a=Vue.ref(),r=Vue.ref(),s=Ve(16),l=Ve(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),c=Vue.ref({striped:!1,bordered:!1}),h=(d,V)=>{const{onContextMenuClick:S}=e;S&&x(S,d,V),i.showContextMenu=!1},m=(d,V)=>{var k;return{...(k=e.rowProps)==null?void 0:k.call(e,d,V),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=b.clientX,i.y=b.clientY})}}},v=d=>{u.size=d},g=d=>{const{onUpdateColumns:V,"onUpdate:columns":S}=e;V&&x(V,d),S&&x(S,d)},y=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(V=>typeof V=="function"?V():V)},f=d=>{Object.keys(c.value).forEach(S=>{c.value[S]=d.includes(S)})},p=d=>{const{tool:V}=d;if(!V)return;const S=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(mr,d,null),Vue.createVNode(cr,Vue.mergeProps(d,{onChangeSize:v.bind(this)}),null),Vue.createVNode(ur,null,null),Vue.createVNode(pr,Vue.mergeProps(d,{onUpdateColumn:g.bind(this)}),null),Vue.createVNode(hr,Vue.mergeProps(d,{onPopselectChange:f.bind(this),onInitialed:f.bind(this)}),null)]});if(e.toolOptions)if(e.coverTool){let k;return Vue.createVNode(naive.NFlex,{align:"center"},fr(k=y())?k:{default:()=>[k]})}else return()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),y()]});else return S};return Vue.onMounted(()=>{const{onRegister:d}=e;d&&a.value&&x(d,a.value,{uuidTable:l,uuidWrapper:s,wrapperRef:r})}),Vue.provide(F.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:r}),o(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:a,combineRowProps:m,contextMenuSelect:h,privateReactive:u,tool:p,wrapperRef:r,propsPopselectValue:c}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:a,disabledContextMenu:r,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:c,propsPopselectValue:h}=this,{class:m}=t,{tool:v,combineRowProps:g,contextMenuSelect:y}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:n},{ref:"wrapperRef",bordered:o,class:m}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,h,{rowProps:g.bind(this),size:a.size,ref:"rTableInst"}),{...c}),r?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:ae(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":v(e),footer:()=>{var f;return(f=c.tableFooter)==null?void 0:f.call(c)},action:()=>{var f;return(f=c.tableAction)==null?void 0:f.call(c)}})}}),cs=()=>{const e=Vue.ref();let t={};const o=(m,v)=>{m&&(e.value=m,t=v)},n=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value,e.value};return[o,{getTableInstance:n,clearFilters:()=>n().clearFilters.call(null),clearSorter:()=>n().clearSorter.call(null),downloadCsv:m=>n().downloadCsv.call(null,m),filters:m=>n().filters.call(null,m),page:m=>n().page.call(null,m),scrollTo:m=>n().scrollTo(m),sort:(m,v)=>n().sort.call(null,m,v),print:()=>{const{uuidWrapper:m}=t;if(m){const v=document.getElementById(m);ht(v)}}}]},Mo=(e,t,o)=>{var n;if(e.length)for(const a of e){if(a[t]===o)return a;if((n=a==null?void 0:a.children)!=null&&n.length){const r=Mo(a.children,t,o);if(r)return r}}},ot=e=>{const t=Vue.unref(e);return t?t.findIndex(n=>{const{type:a,multiple:r}=n;if(a==="selection"&&(r==null||r===!0))return!0})!==-1:!0},us=(e,t,o)=>{const n=Vue.ref([]),a=Vue.ref([]),{rowKey:r="key",onChange:s}=o||{},l=Vue.computed(()=>ot(t)),i=(g,y,f)=>{n.value=g,a.value=y,s==null||s(g,y,f),ot(t)},u=()=>n.value,c=()=>a.value,h=()=>{n.value=[],a.value=[],s==null||s(n.value,a.value,{row:void 0,action:"uncheckAll"})},m=g=>{if(g==null)return;let y;n.value=n.value.filter(f=>f!==g),a.value=a.value.filter(f=>f[r]===g?(y=f,!1):!0),s==null||s(n.value,a.value,{row:y,action:"uncheck"})},v=g=>{if(n.value.includes(g))return;const y=!l.value&&n.value.length>=1,f=Mo(Vue.unref(e)||[],r,g);y?n.value=[g]:n.value.push(g),f&&(y?a.value=[f]:a.value.push(f),s==null||s(n.value,a.value,{row:f,action:"check"}))};return Ke(()=>{h()}),[n,{checkedRows:a,checkedRowKeysBind:i,getKeys:u,getRows:c,clearAll:h,clearKey:m,selectKey:v}]},gr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},yr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},gr),setup(e){const{getKeepAliveInclude:t}=Mr(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:a}=bt;return(r,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:r.transitionPropName,mode:r.transitionMode,appear:r.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(a)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})])}}}),vr={...naive.formProps,onRegister:{type:[Function,Array],default:null}},ds=Vue.defineComponent({name:"RForm",props:vr,setup(e,{expose:t}){const o=Vue.ref();return Vue.onMounted(()=>{const{onRegister:n}=e;n&&o.value&&x(n,o.value)}),t(),{formRef:o}},render(){const{$attrs:e,$props:t,$slots:o}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...o})}}),ps=(e,t)=>{const o=Vue.ref(),n=u=>{u&&(o.value=u)},a=()=>{if(!o.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return o.value};return[n,{getFormInstance:a,validate:(u,c)=>a().validate.call(null,u,c),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>ve(e)||{},formRules:()=>ve(t)||{}}]},br=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Vr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Sr=Be({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...br);function _r(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const $e=e=>{const{icon:t,label:o}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[o])]}):o},wr=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>$e(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>$e(e),default:()=>o})}},ms=Vue.defineComponent({name:"RSegment",props:Sr,setup(e,{expose:t}){const o=Vue.computed(()=>{const{width:n}=e;let a="";switch(n){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof n=="number"?L(n):"fit-content"}return{"--r-segment-width":a}});return t(),{cssVars:o}},render(){let e;const{$props:t,options:o,cssVars:n,themeOverrides:a}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[n],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Vr,a)}),_r(e=o.map(r=>Vue.createVNode(naive.NTab,{key:r.key,name:r.key,tab:r.popover?wr(r):$e(r),disabled:r.disabled},{...r.slots})))?e:{default:()=>[e]})}}),Cr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},hs=Vue.defineComponent({name:"RBarcode",props:Cr,setup(e){const t=Vue.ref(),o=Vue.computed(()=>({"--r-barcode-width":L(e.width),"--r-barcode-height":L(e.height)}));let n;const a=()=>{try{const{format:r,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:r});JsBarcode(t.value,s!=null?s.toString():"",u),i&&x(i,s,r,l)}catch(r){const{onError:s}=e;s&&x(s,r)}finally{const{onFinally:r}=e;r&&x(r)}};return Vue.watchEffect(()=>{e.watchText?n=Vue.watch(()=>e.text,a):n==null||n()}),Vue.onMounted(()=>{a()}),Vue.onBeforeUnmount(()=>{n==null||n()}),{barcodeRef:t,cssVars:o}},render(){const{barcodeRender:e,loading:t,cssVars:o}=this,n=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:n,style:o,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:n,style:o,ref:"barcodeRef"},null)]})}});var Nr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Tr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Lo=(e,t,o)=>{const n=[];if(Tr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const a of e.children){const r=Lo(a,t,o);r.length>0&&n.push(e,...r)}return n},Or=(e,t,o)=>{const n=[];for(const a of e){const r=Lo(a,t,o);r.length>0&&n.push(...r)}return n},kr=e=>{const{breadcrumbLabel:t}=e,{layout:{sideBarLogo:o}}=Nr,n=o?o.title:"";document.title=t+" - "+n},xr=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const o=Vue.h(N,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},zo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=se(),{label:a,icon:r,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):a||null,c=()=>r&&(l||a)||!r&&(l||a)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:c()},{default:()=>u(),icon:()=>r})},nt=()=>{const{getRootPath:e}=te();return le(j.appMenuKey,"sessionStorage",{defaultValue:e.value})},jo=()=>$a(Ea()),Rr=()=>Da(jo());let he;const Eo=(e,t)=>{var o;if(he&&Xe(he.fullPath,t))return he;for(const n of e){if(Xe(n.fullPath,t))return he=n,n;if((o=n.children)!=null&&o.length){Eo(n.children,t);continue}}},Io=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=se(),{setKeepAliveInclude:a}=Lr(),r=Vue.reactive({menuKey:nt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=p=>{const{meta:d}=p,{i18nKey:V,noLocalTitle:S}=d,k=Vue.computed(()=>V?n(`${V}`):S),b={...p,key:p.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>k.value}),breadcrumbLabel:k.value},_=Object.assign({},b,{icon:xr(p),extra:zo(p)});return p.fullPath===nt()&&(r.currentMenuOption=_),_.show=wt(_),_},i=p=>{r.breadcrumbOptions=Or(r.options,"fullPath",p)},u=(p,d=!0)=>{const S=Array.isArray(p)?[...p]:[p];d?r.menuTagOptions.push(...S):r.menuTagOptions=S},c=(p,d)=>{r.menuTagOptions.find(S=>S.fullPath===p)||r.menuTagOptions.push(d)},h=(p,d,V)=>{const{meta:S}=d;if(S.windowOpen)window.open(S.windowOpen);else{e({path:String(p),query:V});const{sameLevel:k}=S;if(a(d),kr(d),!k)c(p,d),i(p),r.menuKey=p,r.currentMenuOption=d,We(j.appMenuKey,p);else{const b=be(l(d),["breadcrumbLabel","children","key","meta","name","path","show"]);r.breadcrumbOptions.find(R=>R.key===b.key)||r.breadcrumbOptions.push({...b,fullPath:String(b.key)})}}},m=async(p,d)=>{const[V]=p.split("?"),S=t().find(k=>k.path===V);if(S){const k=be(S,["children","meta","path","name","redirect"]);h(V,l({...k,fullPath:k.path}),d)}},v=()=>new Promise(p=>{const d=(V,S)=>{var b;const k=[];for(const _ of V){let R=`${S.endsWith("/")?S:S+"/"}${_.path}`;if(R=R.replace(/\/+/g,"/"),(b=_.children)!=null&&b.length)_.children=d(_.children,R);else if(!Fo(_.meta))continue;k.push(l({..._,fullPath:R}))}return k};if(r.options=d(jo(),""),r.currentMenuOption){const{currentMenuOption:V}=r;i(V.key),c(V.fullPath,V)}p()}),g=p=>r.collapsed=p,y=(p,d=1)=>r.menuTagOptions.splice(p,d),f=async()=>{s.value&&(await v(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(p,d)=>{await f(),p!==d&&await m(p,o.query)},{immediate:!0}),{...Vue.toRefs(r),changeMenuModelValue:h,collapsedMenu:g,spliceMenTagOptions:y,setMenuTagOptions:u,resolveOption:l}},{persist:{key:j.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),Do=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((a,r)=>{dt(n)?r({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},a({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{const{closeAll:n}=Ko();window.$message.info("账号退出中..."),rn("__all_sessionStorage__","sessionStorage"),n(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:j.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),$o=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=bt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=r=>{const s=o(),{name:l,meta:{keepAlive:i}}=r;if(i){if(s=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},a=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:a}},{persist:{key:j.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=Io(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),a=Vue.computed(()=>{const{getRootPath:l}=te();return e.menuTagOptions.map((i,u,c)=>(i.key===n.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),c.length<=1&&(i.closeable=!1),i))}),r=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:a,getCurrentMenuOption:r,getCollapsed:s}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a}=Io();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a}},D=()=>{const e=Ct(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),a=Vue.computed(()=>e.menuTagSwitch),r=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),h=Vue.computed(()=>e.watermarkConfig),m=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:a,getBreadcrumbSwitch:r,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:h,getAppRootRoute:m}},E=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=Ct();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},Ar=()=>{const e=Do();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Pr=()=>{const{signing:e,logout:t}=Do();return{signing:e,logout:t}},Mr=()=>{const e=$o();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},Lr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=$o();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},fs=e=>{const t=Pinia.createPinia();e.use(t),t.use(pn)},Fo=e=>{const{getSigningCallback:t}=Ar(),{role:o}=e;return me!=null&&me.length&&me.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},zr=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Wn;t&&Wa(e),o&&Fa(e)};var jr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Er=Vue.ref(),Ir=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=jr;return{sideBarLogo:t,sideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:a})=>{if(typeof t.icon=="string")return Vue.createVNode(N,{name:t.icon,size:"30",cursor:a},null);if(G(t.icon,"Object"))return Vue.createVNode(t.icon,null,null)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:o,sideBarLogoClick:n}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:n.bind(this),ref:Er},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>o({cursor:"pointer"}),default:()=>e.title}):o({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>Vue.createVNode("h1",{class:"n-menu-item-content"},[e.title[0]||null]),default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),Dr=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o}=ce(),{getMenuOptions:n,getCollapsed:a,getMenuKey:r}=X(),s=Vue.computed({get:()=>(Vue.nextTick().then(()=>{u()}),r.value),set:()=>{l.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:l}=Ne(),i=Vue.computed({get:()=>Ce("globalDrawerValue").value,set:h=>{q("globalDrawerValue",h)}}),u=()=>{const h=s.value;h!=null&&Vue.nextTick(()=>{var m,v;return(v=(m=e.value)==null?void 0:m.showOption)==null?void 0:v.call(m,h)})};return{isTabletOrSmaller:l,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!l.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1,ref:St},{default:()=>[Vue.createVNode(Ir,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:s.value,"onUpdate:value":h=>s.value=h,options:n.value,indent:Y.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(h,m)=>{t(h,m)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:i}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class $r{constructor(){Ye(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const a=new AbortController;t.signal=a.signal,this.pendingRequest.set(n,a)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ae={requestInstance:null,responseInstance:null},Pe={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Fr=new $r,gs=()=>{const e=(l,i)=>{i==="requestInstance"?Ae.requestInstance=l:Ae.responseInstance=l},t=l=>Ae[l],o=(l,i,u)=>{u==="ok"?Pe[l]=i:fe[l]=i},n=(l,i)=>i==="ok"?Pe[l]:fe[l],a=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const c=u==="ok"?Pe[i]:fe[i],h=t(l),{MODE:m}=Ie();h&&a(c,h,m)},fetchError:(l,i,u)=>{const c=fe[u],{MODE:h}=Ie();a(c,i,h)}}},Br=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Fr.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Bo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Wo(),{getContentTransition:t}=D(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:r,layoutContentSpinning:s}=Un();return{globalMainLayoutLoad:a,spinning:o,themeOverridesSpin:n,getContentTransition:t,layoutContentMaximize:r,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o,maximize:n,spinning:a,themeOverridesSpin:r,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:a||!e||o,description:"loading...",size:"large",themeOverrides:r,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(N,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Br,null,null),e?Vue.createVNode(yr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Wr=Object.freeze(Object.defineProperty({__proto__:null,default:Bo},Symbol.toStringTag,{value:"Module"}));var Kr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ur=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Kr;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),qr=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=a=>{t("click",a)};return{iconClick:o,Icon:()=>Vue.createVNode(N,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Gr=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=kl(),{getAppTheme:o}=D(),n=Vue.ref(o.value);return{darkTheme:e,lightTheme:t,getAppTheme:o,railStyle:({checked:r})=>r?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,darkTheme:t,lightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":a=>this.modelAppThemeRef=a,railStyle:n.bind(this),onUpdateValue:a=>a?t():o()},{"checked-icon":()=>Vue.createVNode(N,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(N,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Hr=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=E(),{getAppTheme:a,getPrimaryColorOverride:r,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=D(),h=Vue.computed({get:()=>e.show,set:v=>{t("update:show",v)}}),m=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:v=>{}});return{modelShow:h,changePrimaryColor:o,getAppTheme:a,getPrimaryColorOverride:r,updateSettingState:n,modelSwitchReactive:m}},render(){let e,t,o,n;const{$t:a,changePrimaryColor:r,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:a("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Gr,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=a("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:r.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=a("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:In,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=a("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Yr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Xr=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=X(),{isTabletOrSmaller:o}=Ne();return{getBreadcrumbOptions:t,dropdownSelect:(r,s)=>{e(r,s)},breadcrumbItemClick:r=>{var s;if(!((s=r.children)!=null&&s.length)){const{meta:l={}}=r;l.sameLevel||e(r.fullPath,r)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:a}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Yr(e=o.map(r=>Vue.createVNode(naive.NBreadcrumbItem,{key:r.fullPath,onClick:a.bind(this,r)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:r.children&&((s=r.children)==null?void 0:s.length)>1?r.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[r.label&&typeof r.label=="function"?r.label():r.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:a}=VueRouter.useRouter(),r=Vue.computed({get:()=>e.show,set:b=>{t("update:show",b),b||v()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:c}=Ne(),h=Vue.ref(!1),m="content-item--active",v=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},g=b=>{r.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),v(),r.value=!0)},y=b=>{if(b)h.value=!0;else{h.value=!1,s.searchOptions=[];return}const _=a().reduce((R,O)=>{var B;const M=be(O,["children","meta","path","name"]),A=n({...M,fullPath:O.path}),{breadcrumbLabel:I}=A;return(B=I==null?void 0:I.toLocaleLowerCase())!=null&&B.includes(b.toLocaleLowerCase())&&wt(A)&&R.push(A),R},[]);setTimeout(()=>{s.searchOptions=_,Vue.nextTick().then(()=>{p()}),h.value=!1},500)},f=b=>{if(b){const{meta:_}=b;_.windowOpen?window.open(_.windowOpen):(r.value=!1,o(b.fullPath,b),setTimeout(ln,300))}},p=()=>{const b=s.searchOptions[i],_=s.searchOptions[u];b&&Vue.nextTick().then(()=>{const R=Se(`attr:data_path="${b.path}"`),O=_?Se(`attr:data_path="${_==null?void 0:_.path}"`):null;if(O!=null&&O.length){const[M]=O;sn(M,m)}if(R!=null&&R.length){const[M]=R;mt(M,m)}})},d=b=>{const{icon:_}=b;return typeof _=="string"?Vue.createVNode(N,{name:_,size:"24"},null):typeof _=="function"?()=>_:Vue.createVNode(N,{name:"search",size:"24"},null)},V=b=>{b==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),b==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},S=b=>{const _=b.key;switch((_==="ArrowUp"||_==="ArrowDown"||_==="Enter")&&(b.preventDefault(),b.stopPropagation()),u=i<=0?0:i,_){case"ArrowUp":V("up");break;case"ArrowDown":V("down");break;case"Enter":const R=s.searchOptions[i];R&&f(R);break}p()},k=({menuOption:b})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:f.bind(this,b),data_path:b.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(b.meta)]),Vue.createVNode("div",{class:"content-item-label"},[b.breadcrumbLabel]),Vue.createVNode(N,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(r.value=!1)}),re(window,"keydown",b=>{g(b),S(b)},!0),{...Vue.toRefs(s),modelShow:r,helperTipOptions:l,fuzzySearchMenuOptions:Fe(y,300),searchItemClick:f,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:k,loading:h}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:a}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":r=>this.modelShow=r,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":r=>this.searchValue=r,clearable:!0,onInput:a.bind(this)},{prefix:()=>Vue.createVNode(N,{name:"search",size:"24"},null)}),default:()=>{let r;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Me(r=t.map((s,l)=>Vue.createVNode(n,{menuOption:s,key:s.fullPath},null)))?r:{default:()=>[r]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let r;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Me(r=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Me(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?r:{default:()=>[r]})}})])])]})}}),Jr=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=cn();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:a}=e;a&&x(a,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(N,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),Qr=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){return{signing:le(j.signing)}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(n,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),el=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],tl={logout:()=>{const{logout:e}=Pr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=E();e("lockScreenSwitch",!0)}},ol=e=>{const t=tl[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},nl=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},al=e=>{const{isTabletOrSmaller:t}=e,o=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],n=[...o],a=[...o];return t.value?a:n},rl=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=E(),{t:o}=se(),[n,{toggleFullscreen:a,isEnabled:r}]=ft(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Ne(),h=Ce("globalDrawerValue"),m=Vue.computed(()=>nl({isFullscreen:n,isTabletOrSmaller:c})),v=Vue.computed(()=>al({isFullscreen:n,isTabletOrSmaller:c})),g={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{r||window.$message.warning(o("globalMessage.isEnabledFullscreen")),a()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{q("globalDrawerValue",!h.value)}};return{leftIconOptions:m,rightTooltipIconOptions:v,toolIconClick:p=>{var d;(d=g[p])==null||d.call(g)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:p=>c.value?null:p}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:a,updateLocale:r,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Zr,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(qr,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:a.bind(this,l.name)},null)),n?Vue.createVNode(Xr,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(Vue.createVNode(Jr,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:a.bind(this,l.name)},{default:()=>[Vue.createVNode(N,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:Vt,onSelect:l=>r(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(N,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:el(),onSelect:ol.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Qr,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Hr,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),ll=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(rl,null,null)]})}}),sl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},il=vt('',1),cl=[il];function ul(e,t){return yt(),gt("svg",sl,[...cl])}const dl={render:ul},pl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},ml=vt('',1),hl=[ml];function fl(e,t){return yt(),gt("svg",pl,[...hl])}const gl={render:fl};function yl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const vl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:a}=X(),{changeMenuModelValue:r}=ce(),{getRootPath:s}=te(),{maximize:l}=Wo(),{reload:i}=Ol(),{close:u,closeAll:c,closeRight:h,closeLeft:m,closeOther:v,checkCloseLeft:g,checkCloseRight:y}=Ko(),f=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let p=1/0;const d={size:16},V=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(N,{name:"reload",size:d.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(N,{name:"close",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(gl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(dl,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(N,{name:"other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(N,{name:"resize_h",size:d.size},null),disabled:!1}]),S=Ve(16),k={closeCurrentPage:()=>{n.value!==s.value&&u(p)},reloadCurrentPage:()=>{i()},closeAll:()=>{c()},closeRight:()=>{h(p)},closeLeft:()=>{m(p)},closeOther:()=>{v(p)}},b=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),_="menu_tag_data",R=Ce("globalMainLayoutLoad"),O="n-scrollbar-container",M=w=>{u(w)},A=(w,C)=>{V.value.forEach(z=>{if(z.key===w){z.disabled=C;return}})},I=w=>{b.actionDropdownShow=!1,r(w.fullPath,w)},B=()=>{const w=document.getElementById(S);if(w)return Array.from(w.childNodes).find(pe=>un(pe,O).value)},ue=w=>{var z;const C=B();if(C){const pe=C.scrollLeft||0,He=w==="left"?Math.max(0,pe-200):pe+200;(z=o.value)==null||z.scrollTo({left:He,behavior:"smooth"})}},de=w=>{b.actionDropdownShow=!1;const C=k[w];C&&C()},Z=(w,C)=>{C.preventDefault(),b.actionDropdownShow=!1,p=w,Vue.nextTick(()=>{b.actionDropdownShow=!0,b.x=C.clientX,b.y=C.clientY})},qe=()=>{const{closeable:w}=a.value[p]??{};A("closeCurrentPage",!w),y(p)?A("closeRight",!1):A("closeRight",!0),g(p)?A("closeLeft",!1):A("closeLeft",!0)},qo=()=>{p=a.value.findIndex(C=>C.fullPath===n.value),qe()},Go=w=>{a.value.length>1&&w.fullPath!==s.value&&(w.closeable=!0)},Ho=w=>{w.fullPath!==n.value&&(w.closeable=!1)},Yo=()=>{B()&&Vue.nextTick().then(()=>{var C;(C=o.value)==null||C.scrollTo({left:99999,behavior:"smooth"})})},Ge=()=>{Vue.nextTick().then(()=>{const w=Se(`attr:${_}="${n.value}"`);if(w!=null&&w.length){const[C]=w;Vue.nextTick().then(()=>{var z;(z=o.value)==null||z.scrollTo({left:C.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>a.value,(w,C)=>{V.value.forEach(z=>{f.includes(z.key)&&(w.length>1?z.disabled=!1:z.disabled=!0)}),C!=null&&C.length&&(w.length>(C==null?void 0:C.length)?Yo():w.length===(C==null?void 0:C.length)&&Ge()),C===void 0&&Ge()},{immediate:!0}),Vue.watch(()=>b.actionDropdownShow,w=>{var C;w&&((C=Fe(qe,100))==null||C())}),t({}),{getMenuTagOptions:a,closeCurrentMenuTag:M,getMenuKey:n,menuTagClick:I,moreOptions:V,scrollX:ue,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:de,actionState:b,menuTagContextMenu:Z,setCurrentContextmenuIndex:qo,menuTagMouseenter:Go,menuTagMouseleave:Ho,MENU_TAG_DATA:_,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:R}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:a,MENU_TAG_DATA:r,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:h,menuTagContextMenu:m,menuTagMouseenter:v,menuTagMouseleave:g,actionDropdownSelect:y,reload:f}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:y.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},yl(e=a.map((p,d)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:p.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:p.fullPath===this.getMenuKey?"primary":"default"},{onClick:h.bind(this,p),onContextmenu:m.bind(this,d),onMouseenter:v.bind(this,p),onMouseleave:g.bind(this,p),[r]:p.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:V,meta:{i18nKey:S}}=p;return S?c(S):V}}),(p.closeable||a.length===1)&&p.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,d)}),{default:()=>[Vue.createVNode(N,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[p.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(N,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(N,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(N,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{f()}},null),Vue.createVNode(Po,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(N,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),bl=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(vl,null,null)}}),Vl=e=>{const t=Oe(e[0]),o=Oe(e[1]),n=Oe(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},at=tn(j.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Sl=()=>({setLockAppScreen:o=>{at.value=o},getLockAppScreen:()=>at.value}),_l=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:a}=D(),{getLockAppScreen:r}=Sl(),s=Vl([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:s,getLockAppScreen:r,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode(Dr,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(ll,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(bl,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Bo,null,null)]}),o?Vue.createVNode(Ur,{ref:"layoutFooterRef"},null):null]})]})}}),wl=[{path:"/",name:"RLogin",component:()=>T(()=>import("./index-2ABOmIsE.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,12,9,8,40,41,42,10,11,24,13,14,15,16,17,18,19,20,21,56]))},{path:"/",name:"RLayout",component:_l,children:Rr()}],we=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:wl,scrollBehavior:e=>{Ba(e)}}),ys=e=>{e.use(we),zr(we)},Ue=()=>we?{router:we}:{router:{}},rt="YYYY-MM-DD HH:mm:ss",Cl=()=>({locale:s=>{const l=Fn[s];l?W.locale(l):W.locale(Bn)},getStartAndEndOfDay:s=>{const{format:l=rt}=s??{},i=W(),u=i.startOf("day"),c=i.endOf("day"),h=i.format(l),m=u.format(l),v=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:h,formatStartOfDay:m,formatEndOfDay:v}},format:(s,l)=>{const{format:i=rt}=l??{};return W(s).format(i)},isDayjs:s=>W.isDayjs(s),daysDiff:(s,l)=>{const i=W(s);return W(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,c=W(s);return c.isAfter(i)&&c.isBefore(u)}});function Ne(e){const{width:t,height:o}=pt(e),n=Vue.ref(!1);return dn(()=>{const{media:r=768}=e??{};n.value=t.value<=r}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let lt=999,Le=!1;const H="ELEMENT-FULLSCREEN-RAY",{width:st,height:it}=pt(),ct=document.createElement("style"),Nl=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:a,exit:r,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const c=()=>{const y=U(e);if(!y)return;const{left:f,top:p}=y.getBoundingClientRect(),d=` - [${H}] { - position: fixed; - width: ${st.value}px !important; - height: ${it.value}px !important; - transform: translate(-${f}px, -${p}px) !important; - transition: ${i}; - z-index: ${G(l,"Null")||G(l,"Undefined")?lt:l} !important; - background-color: ${s??null}; - } - `;ct.innerHTML=d,Le||document.head.appendChild(ct)},h=()=>{const y=U(e);o==null||o(),y&&(y.getAttribute(H)||y.setAttribute(H,H),u||(u=!0,lt+=1),Le||(c(),Le=!0),y.style.transition=i,a==null||a())},m=()=>{n==null||n();const y=U(e);y&&y.removeAttribute(H),r==null||r()},v=()=>{const y=U(e);y&&(y.getAttribute(H)?m():h())},g=Vue.watch(()=>[st.value,it.value],c);return Ke(()=>{const y=U(e);y&&y.removeAttribute(H),g()}),{enter:h,exit:m,toggleFullscreen:v}},ze={svg:oe.toSvg,png:oe.toPng,jpeg:oe.toJpeg,blob:oe.toBlob,pixelData:oe.toPixelData},vs=(e,t)=>{const{beforeCreate:o,created:n,createdError:a,finally:r,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var m;const h=U(e);if(o==null||o(h),!h)return a==null||a(),c("useDomToImage: element is undefined.");(m=ze[i??s??"jpeg"])==null||m.call(ze,h,t).then(v=>(n==null||n(v,h),u(v))).catch(v=>(a==null||a(v),c(v))).finally(()=>{r==null||r()})})}},bs=(e,t)=>({print:()=>{const n=U(e)||e;on({...Be(t,["printable"]),printable:n})}}),Tl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Vs=(e,t)=>{const o=Vue.ref(e),n=Be(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),a={onUpdatePage:d=>{var V;r.value.page=d,(V=o.value)==null||V.call(o)},onUpdatePageSize:d=>{var V;r.value.pageSize=d,r.value.page=1,(V=o.value)==null||V.call(o)}},r=Vue.ref(Object.assign({},Tl,n,a)),s=r.value.onUpdatePage,l=r.value.onUpdatePageSize,i=()=>r.value.itemCount,u=d=>{r.value.itemCount=d},c=()=>r.value.page,h=d=>{s(d)},m=()=>r.value.pageSize,v=d=>{l(d)},g=()=>r.value,y=e,f=d=>{o.value=d},p=()=>{const{pageSizes:d}=r.value;r.value.page=1,r.value.pageSize=(d==null?void 0:d[0])||10};return Ke(()=>{o.value=void 0}),[r,{getItemCount:i,setItemCount:u,getPage:c,setPage:h,getPageSize:m,setPageSize:v,getPagination:g,getCallback:y,setCallback:f,resetPagination:p}]},Wo=()=>({isLayoutContentMaximized:Vue.computed(()=>Ce("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:a}=n??{},r=U(Q),{toggleFullscreen:s}=Nl(r,n);q("layoutContentMaximize",o),s(),a&&o&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(a))}}),Ol=()=>({reload:(n=800)=>{q("globalMainLayoutLoad",!1),setTimeout(()=>q("globalMainLayoutLoad",!0),n)},openSpin:()=>{q("layoutContentSpinning",!0)},closeSpin:()=>{q("layoutContentSpinning",!1)}}),Ss=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:r}=D(),s=Object.assign(r.value,{content:a}),{updateSettingState:l}=E();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=E();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=E();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=D(),{updateSettingState:r}=E();r("watermarkSwitch",!a.value)}}),je=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:o}=E();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},kl=()=>{const e=()=>{const{getAppTheme:a}=D(),{t:r}=se();return{theme:a.value,themeI18nLabel:a.value?r("headerSettingOptions.ThemeOptions.Dark"):r("headerSettingOptions.ThemeOptions.Light"),themeLabel:a.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:a}=E();a("appTheme",!0),je(!0)},lightTheme:()=>{const{updateSettingState:a}=E();a("appTheme",!1),je(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:r}=E();r("appTheme",!a),je(!a)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=X();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(a=>a.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,a=o.value.findIndex(r=>r.fullPath===n);if(a===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function Ko(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:r}=ce(),s=()=>e.value.findIndex(g=>g.fullPath===t.value);return{close:g=>{const y=J(g,"close");if(e.value.length!==1&&y){const{index:f,option:p}=y;if(n(f),p.fullPath===t.value){const d=e.value[f-1];d&&o(d.fullPath,d)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:g}=te(),{router:{getRoutes:y}}=Ue(),f=y().find(p=>p.path===g.value);if(f){const p=be(f,["children","meta","path","name","redirect"]),d=r(p);o(d.path,r({...d,fullPath:d.path}))}},closeRight:g=>{const y=J(g,"closeRight");if(y){const{option:f,index:p}=y,d=e.value.length-p,V=s();n(p+1,d),p<=V&&t.value!==f.fullPath&&o(f.fullPath,f)}},closeLeft:g=>{const y=J(g,"closeLeft");if(y){const{option:f,index:p}=y,d=s();n(0,p),d<=p&&t.value!==f.fullPath&&o(f.fullPath,f)}},closeOther:g=>{const y=J(g,"closeOther");if(y){const{option:f}=y;t.value!==f.fullPath?(n(0,e.value.length),o(f.fullPath,f)):a(f,!1)}},getCurrentTagIndex:s,checkCloseRight:g=>{const y=J(g,"checkCloseRight");if(y){const{index:f}=y,p=e.value.length-1;return!(f>=p)}return!1},checkCloseLeft:g=>{const y=J(g,"checkCloseRight");if(y){const{index:f}=y,p=e.value.length-1;return f===0?!1:f>0&&p>0}return!1}}}function _s(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:a,replace:r}}=Ue(),{isPush:s=!0,query:l}=o||{},i=u=>s?a({path:u,query:l}):r({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=X();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],h=m=>{if(m.children&&m.children.length>0){const{children:[v]}=m;h(v);return}i(m.fullPath)};h(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function te(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=E(),o=e,n=Vue.computed(()=>e.value.path),a=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:a,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const xl=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=zo(e)},ut=(e,t,o)=>{const n=Eo(e,t);n&&xl(n,o)},Ee=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")ut(n.value,e,o);else if(G(e,"Object")){const{fullPath:a}=e;ut(n.value,a,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function ws(){return{hidden:n=>{Ee(n,"hidden",{show:!1})},show:n=>{Ee(n,"show",{show:!0})},update:(n,a)=>{Ee(n,"update",a)}}}const Cs=()=>{const e=St.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Uo=()=>le(j.localeLanguage,"localStorage",{defaultValue:Dn});export{ws as $,Zl as A,ps as B,ds as C,Bn as D,rs as E,Vs as F,as as G,is as H,Fr as I,gs as J,Ql as K,St as L,Yl as M,ss as N,ms as O,cs as P,us as Q,ls as R,Er as S,Gr as T,Po as U,Wo as V,_s as W,Ol as X,Ss as Y,kl as Z,T as _,bs as a,xe as a0,Ue as a1,Cs as b,Jl as c,D as d,j as e,E as f,Hl as g,Sl as h,Pr as i,Ne as j,Qr as k,Ce as l,Xl as m,ts as n,ys as o,te as p,se as q,N as r,fs as s,Vt as t,vs as u,Gl as v,hs as w,es as x,os as y,ns as z}; diff --git a/js/hooks-BFGxA73i.js.gz b/js/hooks-BFGxA73i.js.gz deleted file mode 100644 index 3315881b..00000000 Binary files a/js/hooks-BFGxA73i.js.gz and /dev/null differ diff --git a/js/hooks-BGLytdb9.js b/js/hooks-BGLytdb9.js new file mode 100644 index 00000000..6e2bdb59 --- /dev/null +++ b/js/hooks-BGLytdb9.js @@ -0,0 +1,12 @@ +const __vite__fileDeps=["js/en-US-NT-RVN9T.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/currency.js@2.0.4-9OAR_aOO.js","js/lodash-es@4.17.21-Dos9GOhk.js","js/@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js","js/@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js","js/utils-CZebg5KX.js","js/interactjs@1.10.26-V8skghJH.js","js/pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js","js/dom-to-image@2.6.0-DCOFUeQU.js","js/echarts@5.5.0-BEyY33Zi.js","js/zrender@5.5.0-JN1hODMT.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.4.26-Cq5aFJKF.js","js/@vue_reactivity@3.4.26-DTbxPGxS.js","js/@vue_shared@3.4.26-DWpY0PUk.js","js/zh-CN-C_apBV4j.js","js/index-DFXoKFzV.js","js/index-43Sr2ZDd.js","css/index-DeeQXRbp.css","js/index-8MJEg22w.js","js/instance-B7DjWjPE.js","css/index-CTOeMyqn.css","js/BarcodeDemo-BE4R2dyH.js","js/index-mtfnxTVB.js","js/index-g1xWjPrC.js","js/index-ZAONhno3.js","css/index-BqPIKfai.css","js/index-DYHwA1XI.js","js/index-CCBKm2To.js","js/index-5Nwsrxy3.js","js/index-BKB69qG7.js","js/index-BR70wTwp.js","js/index-DXw-vgra.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-DuR3EA5M.css","js/ray-dCjhX_JK.js","js/index-Bg-qGje5.js","css/index-cMo-v_SD.css","js/index-pQyv_gpc.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-Dgdpbbi8.js","js/index-BYZzQUjS.js","css/index-CIq6_pk2.css","js/index-B5gAPoLH.js","js/index-DK-aA1yw.js","js/index-NrsCk1Kq.js","css/index-BhnoEzFG.css","js/index-Dl1Y5YxY.js","css/index-G2qqDeP0.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var Xo=Object.defineProperty;var Zo=(e,t,o)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ye=(e,t,o)=>(Zo(e,typeof t!="symbol"?t+"":t,o),o);import{s as Te,c as ve,t as Fe,i as dt,o as Be,p as be}from"./lodash-es@4.17.21-Dos9GOhk.js";import{o as Jo,u as re,a as Qo,b as en,c as Oe,d as tn,e as pt}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import{d as W}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as on}from"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as le,i as G,s as We,a as Ie,c as nn,b as L,r as ae,d as R,e as an,u as Ve,q as Se,f as ke,h as mt,p as ht,j as Ke,k as Xe,l as rn,m as ln,n as sn,o as cn,t as un,w as dn,v as U}from"./utils-CZebg5KX.js";import{u as ft}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{i as Ze}from"./interactjs@1.10.26-V8skghJH.js";import{s as pn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{d as oe}from"./dom-to-image@2.6.0-DCOFUeQU.js";import{r as mn,u as ne,i as hn,a as fn,b as gn,c as yn,d as vn,e as bn,f as Vn,g as Sn,h as _n,j as wn,k as Cn,l as Nn,m as Tn,n as On,o as kn,p as xn,q as Rn,s as An}from"./echarts@5.5.0-BEyY33Zi.js";import{f as Pn,g as Mn}from"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import{c as gt,o as yt,a as vt}from"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";const Ul=(e,t)=>{if(typeof t!="string"||!t.trim())throw new TypeError("Expected prefix to be a non-empty string");const o={};return Object.keys(e).forEach(n=>{const r=e[n].default;let a=n.replace(`./${t}/`,"").replace(/^\.\//,"");const s=a.lastIndexOf(".");a=a.substring(0,s);const l=a.split("/"),i=l.shift(),u=l.join(".");i&&(u?(Te(o,i,o[i]||{}),Te(o[i],u,r)):Te(o,i,r||{}))}),o},Ln="modulepreload",zn=function(e){return"/ray-template/"+e},Je={},k=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));r=Promise.all(o.map(i=>{if(i=zn(i),i in Je)return;Je[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!n)for(let h=a.length-1;h>=0;h--){const f=a[h];if(f.href===i&&(!u||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":Ln,u||(p.as="script",p.crossOrigin=""),p.href=i,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((h,f)=>{p.addEventListener("load",h),p.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},En=(e,t,o)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},jn=async e=>{var o;const t={};for(const n of e){const r=await En(Object.assign({"../lang/en-US.ts":()=>k(()=>import("./en-US-NT-RVN9T.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),"../lang/zh-CN.ts":()=>k(()=>import("./zh-CN-C_apBV4j.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))}),`../lang/${n.key}.ts`,3),a=n.key;a&&(t[a]=((o=r==null?void 0:r.default)==null?void 0:o.message)??{})}return t},ql=e=>{switch(e){case"zh-CN":return{locale:naive.zhCN,dateLocal:naive.dateZhCN};case"en-US":return{locale:null,dateLocal:null};default:return{locale:naive.zhCN,dateLocal:naive.dateZhCN}}},Gl={max:5,closable:!1},Hl="loading",bt={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Yl="",E={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},In=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],$={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#a6e4f7","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},Vt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Dn="zh-CN",$n="zh-CN",Fn={"zh-CN":"zh-cn","en-US":"en"},Bn="zh-cn",Xl={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/},Zl={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),St=Vue.ref(null),Wn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Kn=["RLogin","ErrorPage","RayTemplateDoc"],me=["admin"],Jl=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),r=Vue.ref(!1),{clickOutside:a}=t??{},s=g=>{r.value=g},l=g=>{g.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:p,clientY:h}=g;o.value=p,n.value=h,s(!0)})};a&&Jo(e,g=>{a(g)});const i=re(e,"contextmenu",l,t),u=re(e,"click",()=>{s(!1)});return{stop:()=>{i(),u()},x:Vue.readonly(o),y:Vue.readonly(n),show:Vue.readonly(r),updateShow:s}},_e=Vue.reactive({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function q(e,t,o){Object.hasOwn(_e,e)&&(_e[e]=t,o==null||o())}function Ce(e){return Vue.readonly(Vue.toRef(_e,e))}function Un(){return{...Vue.toRefs(Vue.readonly(_e))}}let K;const qn=async()=>{const e=Uo(),t=await jn(Vt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:$n})},Ql=async e=>{const t=await qn();e.use(t),K=t},Qe=(e,t)=>!e||t[0]===e?t:`${e}.${t}`,se=e=>{if(!K)return{t:a=>Qe(e,a),locale:a=>{}};const{t,...o}=K.global;return{...o,t:(a,...s)=>a?!a.includes(".")&&!e?a:t(Qe(e,a),...s):"",locale:a=>{K.mode==="legacy"?K.global.locale=a:Vue.isRef(K.global.locale)?K.global.locale.value=a:K.global.locale=a}}},P=e=>e,Gn={path:"/dashboard",component:()=>k(()=>import("./index-DFXoKFzV.js"),__vite__mapDeps([23,1,2,3,8,4,5,6,7,24,9,10,11,12,13,14,15,16,17,18,19,20,21,25])),meta:{i18nKey:P("menu.Dashboard"),icon:"dashboard",order:0}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Yn={path:"/axios",name:"RAxios",component:()=>k(()=>import("./index-8MJEg22w.js"),__vite__mapDeps([26,4,5,2,6,7,27,1,3,12,9,8,10,11,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:P("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},Xn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={path:"barcode",component:()=>k(()=>import("./BarcodeDemo-BE4R2dyH.js"),__vite__mapDeps([29,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/cache-demo",component:()=>k(()=>import("./index-mtfnxTVB.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CacheDemo"),icon:"other",order:3}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ta={path:"/context-menu",component:()=>k(()=>import("./index-g1xWjPrC.js"),__vite__mapDeps([31,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.ContextMenu"),icon:"other",order:2}},oa=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={path:"/directive",component:()=>k(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:P("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},aa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ra={path:"/echart",component:()=>k(()=>import("./index-ZAONhno3.js"),__vite__mapDeps([32,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,33])),meta:{i18nKey:P("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},la=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),sa={path:"/form",component:()=>k(()=>import("./index-DYHwA1XI.js"),__vite__mapDeps([34,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},ia=Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"})),ca={path:"/iframe",component:()=>k(()=>import("./index-CCBKm2To.js"),__vite__mapDeps([35,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},ua=Object.freeze(Object.defineProperty({__proto__:null,default:ca},Symbol.toStringTag,{value:"Module"})),da={path:"/mock-demo",component:()=>k(()=>import("./index-5Nwsrxy3.js"),__vite__mapDeps([36,1,2,3,8,4,5,6,7,27,12,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},pa=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),ma={path:"/modal-demo",component:()=>k(()=>import("./index-BKB69qG7.js"),__vite__mapDeps([37,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Modal"),icon:"other",order:3}},ha=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ye=()=>k(()=>Promise.resolve().then(()=>Fr),void 0),fa={path:"/multi",component:ye,meta:{i18nKey:P("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>k(()=>import("./index-BtZPyenx.js"),[]),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:ye,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>k(()=>import("./index-B6a_PCdD.js"),[]),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:ye,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>k(()=>import("./index-Cg1Whvge.js"),[]),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},ga=Object.freeze(Object.defineProperty({__proto__:null,default:fa},Symbol.toStringTag,{value:"Module"})),ya={path:"/precision",component:()=>k(()=>import("./index-BR70wTwp.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CalculatePrecision"),icon:"other",order:2}},va=Object.freeze(Object.defineProperty({__proto__:null,default:ya},Symbol.toStringTag,{value:"Module"})),ba={path:"/qrcode",component:()=>k(()=>import("./index-DXw-vgra.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:P("menu.QRCode"),icon:"other",order:2}},Va=Object.freeze(Object.defineProperty({__proto__:null,default:ba},Symbol.toStringTag,{value:"Module"})),Sa={path:"rely-about",component:()=>k(()=>import("./index-Bg-qGje5.js"),__vite__mapDeps([43,44])),meta:{i18nKey:P("menu.RelyAbout"),icon:"rely",order:999}},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),wa={path:"/router-demo",component:ye,meta:{i18nKey:P("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>k(()=>import("./index-pQyv_gpc.js"),__vite__mapDeps([45,1,2,3,8,9,10,11,12,4,5,6,7,13,14,15,16,17,18,19,20,21])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>k(()=>import("./index-BRGdSJVO.js"),[]),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},Ca=Object.freeze(Object.defineProperty({__proto__:null,default:wa},Symbol.toStringTag,{value:"Module"})),Na={path:"/scroll-reveal",component:()=>k(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:P("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Na},Symbol.toStringTag,{value:"Module"})),Oa={path:"/segment",component:()=>k(()=>import("./index-Dgdpbbi8.js"),__vite__mapDeps([48,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),xa={path:"/svg-icons",component:()=>k(()=>import("./index-BYZzQUjS.js"),__vite__mapDeps([49,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,50])),meta:{i18nKey:P("menu.SvgIcon"),icon:"other",order:3}},Ra=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),Aa={path:"/table",component:()=>k(()=>import("./index-B5gAPoLH.js"),__vite__mapDeps([51,1,2,3,12,9,8,4,5,6,7,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"})),Ma={path:"/template-hooks",component:()=>k(()=>import("./index-DK-aA1yw.js"),__vite__mapDeps([52,1,2,3,8,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.TemplateHooks"),icon:"other",order:1}},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),za=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Hn,"/src/router/modules/demo/axios.ts":Xn,"/src/router/modules/demo/barcode.ts":Jn,"/src/router/modules/demo/cache-demo.ts":ea,"/src/router/modules/demo/context-menu.ts":oa,"/src/router/modules/demo/directive.ts":aa,"/src/router/modules/demo/echart.ts":la,"/src/router/modules/demo/form.ts":ia,"/src/router/modules/demo/iframe.ts":ua,"/src/router/modules/demo/mock.ts":pa,"/src/router/modules/demo/modal.ts":ha,"/src/router/modules/demo/multi-menu.ts":ga,"/src/router/modules/demo/precision.ts":va,"/src/router/modules/demo/qrcode.ts":Va,"/src/router/modules/demo/rely.ts":_a,"/src/router/modules/demo/router-demo.ts":Ca,"/src/router/modules/demo/scroll-reveal.ts":Ta,"/src/router/modules/demo/segment.ts":ka,"/src/router/modules/demo/svg-icons.ts":Ra,"/src/router/modules/demo/table.ts":Pa,"/src/router/modules/demo/template-hooks.ts":La});return Object.keys(e).reduce((o,n)=>{const r=e[n].default;if(r)o.push(r);else throw new Error(`[combineRawRouteModules]: ${n} module must export default.`);return o},[])},Ea=e=>e[0]==="/",_t=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const r of e){const a=o+(Ea(r.path)?r.path:"/"+r.path);if((n=r.children)!=null&&n.length){_t(r.children,t,a);continue}else t.push({...r,path:a})}return t},ja=e=>Array.isArray(e)?_t(ve(e)):[],Ia=e=>e.sort((t,o)=>{var a,s;const n=((a=t.meta)==null?void 0:a.order)??1,r=((s=o.meta)==null?void 0:s.order)??0;if(typeof n!="number"||typeof r!="number")throw new TypeError("orderRoutes error: order must be a number!");return n===r?t.name?o.name?t.name.localeCompare(o.name):-1:1:n-r}),Da=e=>{const{beforeEach:t}=e,{getRootPath:o}=te(),n=(r,a)=>r.path==="/"||a.path==="/login";t((r,a,s)=>{const l=le(E.token),i=le(E.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=r;l!==null?n(r,a)?xe(!0):!G(c,"Symbol")&&c&&Kn.includes(c)?s():Fo(u)?n(r,a)?i?s(i):xe(!0):s():xe(!0):n(r,a)?s():s("/")})},xe=(e=!0)=>{const{router:t}=Ue(),{push:o,replace:n}=t,{getRootPath:r}=te();We(E.appMenuKey,r.value),e?n(r.value):o(r.value)},$a=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Q.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Fa=e=>{e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{var t;(t=window.$loadingBar)==null||t.finish()}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})},wt=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:r}=t,{MODE:a}=Ie();return!(n||o||r&&typeof r=="string"&&r!==a||r&&Array.isArray(r)&&!r.includes(a))};var Ba={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Ct=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Ba,{locale:t}=se(),{locale:o}=_l(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Uo(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15},appRootRoute:{name:"Dashboard",path:"/dashboard"}}),r=l=>{t(l),o(l),n.localeLanguage=l,We(E.localeLanguage,l,"localStorage")},a=(l,i=.3)=>{const u=nn(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const g=document.body;g.style.setProperty("--ray-theme-primary-color",l),g.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return Pn(()=>n.appTheme,l=>{l?Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:r,changePrimaryColor:a,updateSettingState:s}},{persist:{key:E.appPiniaSettingStore}}),Nt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],Tt="transparent",Ot={},kt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},xt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Rt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},At={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Pt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Mt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Lt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Et={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Dt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},$t={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},Ft={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Bt={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Wt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Kt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ut={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},qt={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Gt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Ht={textStyle:{color:"#999999"}},Yt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Xt={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Zt={color:["#fc97af","#87f7cf"]},Jt={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Qt={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Wa={color:Nt,backgroundColor:Tt,textStyle:Ot,title:kt,line:xt,radar:Rt,bar:At,pie:Pt,scatter:Mt,boxplot:Lt,parallel:zt,sankey:Et,funnel:jt,gauge:It,candlestick:Dt,graph:$t,map:Ft,geo:Bt,categoryAxis:Wt,valueAxis:Kt,logAxis:Ut,timeAxis:qt,toolbox:Gt,legend:Ht,tooltip:Yt,timeline:Xt,visualMap:Zt,dataZoom:Jt,markPoint:Qt},Ka=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Tt,bar:At,boxplot:Lt,candlestick:Dt,categoryAxis:Wt,color:Nt,dataZoom:Jt,default:Wa,funnel:jt,gauge:It,geo:Bt,graph:$t,legend:Ht,line:xt,logAxis:Ut,map:Ft,markPoint:Qt,parallel:zt,pie:Pt,radar:Rt,sankey:Et,scatter:Mt,textStyle:Ot,timeAxis:qt,timeline:Xt,title:kt,toolbox:Gt,tooltip:Yt,valueAxis:Kt,visualMap:Zt},Symbol.toStringTag,{value:"Module"})),eo=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],to="transparent",oo={},no={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},ao={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},ro={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},lo={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},so={itemStyle:{borderWidth:0,borderColor:"#ccc"}},io={itemStyle:{borderWidth:0,borderColor:"#ccc"}},co={itemStyle:{borderWidth:0,borderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ho={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},go={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},yo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},vo={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},bo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Vo={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},So={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},_o={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},wo={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Co={textStyle:{color:"#333333"}},No={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},To={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Oo={color:["#5ab1ef","#e0ffff"]},ko={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},xo={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ua={color:eo,backgroundColor:to,textStyle:oo,title:no,line:ao,radar:ro,bar:lo,pie:so,scatter:io,boxplot:co,parallel:uo,sankey:po,funnel:mo,gauge:ho,candlestick:fo,graph:go,map:yo,geo:vo,categoryAxis:bo,valueAxis:Vo,logAxis:So,timeAxis:_o,toolbox:wo,legend:Co,tooltip:No,timeline:To,visualMap:Oo,dataZoom:ko,markPoint:xo},qa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:to,bar:lo,boxplot:co,candlestick:fo,categoryAxis:bo,color:eo,dataZoom:ko,default:Ua,funnel:mo,gauge:ho,geo:vo,graph:go,legend:Co,line:ao,logAxis:So,map:yo,markPoint:xo,parallel:uo,pie:so,radar:ro,sankey:po,scatter:io,textStyle:oo,timeAxis:_o,timeline:To,title:no,toolbox:wo,tooltip:No,valueAxis:Vo,visualMap:Oo},Symbol.toStringTag,{value:"Module"})),Ga=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ka,"/src/app-config/echart-themes/macarons/macarons.json":qa}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{var s;const a=(s=r.match(t))==null?void 0:s[1];if(a)return n.push({name:a,theme:e[r].default}),n;throw new Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},Ha=e=>Object.assign({},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.9)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e),Ya={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Ha()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]})},onRegister:{type:[Function,Array],default:null}},Xa={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},Za=Ga(),et="__R_CHART_DOWN_LOAD_CHART__";Za.forEach(e=>{mn(e.name,e.theme)});const es=Vue.defineComponent({name:"RChart",props:Ya,setup(e,{expose:t}){const{getAppTheme:o}=D(),n=Vue.ref(),r=Vue.ref(),a=Vue.ref();let s,l;const{echartTheme:i}=$;let u,c;const g=Vue.computed(()=>[{label:"下载图片",key:et,disabled:!(a.value&&a.value.getDom())}]),p=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),h=Vue.ref(!1);let f;const y=async()=>{var C;ne([fn,gn,yn,vn,bn,Vn,Sn,_n]),ne([wn,Cn,Nn,Tn,On,kn]),ne([xn,Rn]),ne([An]);try{ne((C=e.use)==null?void 0:C.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},m=()=>{if(c!=null&&c.getDom()&&S(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const C=e.autoChangeTheme&&o.value?`${i}-dark`:i;d(C)}},b=C=>{let M=Vue.unref(C);const A=I=>Object.assign({},M,I);return e.showAria&&(M=A({aria:{enabled:!0,decal:{show:!0}}})),M},d=(C=i)=>{const M=n.value,A=b(e.options),{height:I,width:B}=M.getBoundingClientRect(),{onSuccess:ue,onError:de}=e;try{c=hn(M,C,{width:B===0?200:void 0,height:I===0?200:void 0}),a.value=c,ue&&R(ue,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{A&&(c==null||c.setOption(A))})):A&&(c==null||c.setOption(A))}catch(Z){throw de&&R(de),new Error(`[RChart render error]: ${Z}`)}finally{const{onFinally:Z}=e;Z&&R(Z)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),a.value=void 0,c=null)},O=()=>{c&&c.resize()},v=(C,M)=>{if(C===et&&!V()){const{filename:I,...B}=e.downloadOptions;an(c.getDataURL(B),I??`${new Date().getTime()}`)}const{onDropdownSelect:A}=e;A&&R(A,C,M)},w=()=>{if(e.autoResize&&(s||(s=Fe(O,500)),l||(l=en(e.autoResizeObserverTarget||r,s))),c!=null&&c.getDom()||!h.value&&e.intersectionObserver)return;m(),f==null||f.stop();const{onRegister:C}=e;C&&c&&R(C,c,w,x)};e.intersectionObserver&&(f=Qo(e.intersectionObserverTarget||r,([C])=>{h.value=C.isIntersecting},e.intersectionOptions));const x=()=>{S(),s==null||s.cancel(),l==null||l.stop(),f==null||f.stop(),f=null,s=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(S(),m())}),Vue.watch(()=>e.showAria,()=>{S(),m()}),Vue.watchEffect(()=>{e.watchOptions?u=Mn(()=>e.options,C=>{const M=b(C),A=Object.assign({},e.setChartOptions,Xa);c==null||c.setOption(M,A)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),h.value&&w()}),t(),Vue.onBeforeMount(async()=>{await y()}),Vue.onMounted(()=>{w()}),Vue.onBeforeUnmount(()=>{x(),u==null||u()}),{rayChartRef:n,cssVarsRef:p,rayChartWrapperRef:r,moreDropDownOptions:g,dropdownSelect:v}},render(){const{title:e,contentStyle:t,preset:o,moreDropDownOptions:n,dropdownSelect:r,bordered:a,dropdownOptions:s}=this,{cardExtra:l}=this.$slots;return o==="card"?Vue.createVNode(naive.NCard,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:t,bordered:a},{default:ae(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ae(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ae(l,{defaultElement:Vue.createVNode(Po,{iconSize:18,cursor:"pointer",options:s??n,trigger:"click",onSelect:r.bind(this),placement:"bottom-end"},null)})}):Vue.createVNode("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),ts=()=>{let e,t,o;const n=(i,u,c)=>{i&&(e=i,t=c,o=u)},r=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:t,render:o,echartInst:e}};return[n,{getChartInstance:r,isDispose:()=>!(e&&r().echartInst.getDom()),dispose:()=>r().dispose.call(null),render:()=>r().render.call(null)}]},Ja={open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!1},onUpdateValue:{type:[Function,Array],default:null},"onUpdate:value":{type:[Function,Array],default:null},...naive.gridProps},os=Vue.defineComponent({name:"RCollapseGrid",props:Ja,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":a}=e;r&&R(r,t.value),a&&R(a,t.value)};return{modelCollapsed:t,collapseClick:o,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:o.bind(this)},[Vue.createVNode("span",null,[t.value?e.collapseToggleText[0]:e.collapseToggleText[1]]),Vue.createVNode(T,{customClassName:`collapse-icon--arrow ${t.value?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)])}},render(){return Vue.createVNode(naive.NCard,{bordered:this.bordered},{default:()=>Vue.createVNode(naive.NGrid,Vue.mergeProps({class:"ray-collapse-grid"},this.$props,{collapsed:this.modelCollapsed,xGap:this.xGap||12,yGap:this.yGap||18,collapsedRows:this.collapsedRows}),{default:()=>{var e,t;return[(t=(e=this.$slots).default)==null?void 0:t.call(e),Vue.createVNode(naive.NGridItem,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var o,n;return[(n=(o=this.$slots).action)==null?void 0:n.call(o),this.CollapseIcon()]}})]})]}})})}}),Qa={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},T=Vue.defineComponent({name:"RIcon",props:Qa,setup(e){const t=Vue.computed(()=>`#${e.prefix}-${e.name}`),o=Vue.computed(()=>({"--ray-icon-width":e.width?L(e.width):L(e.size),"--ray-icon-height":e.height?L(e.height):L(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:t,cssVars:o,iconClick:r=>{const{onClick:a}=e;a&&R(a,r)}}},render(){return Vue.createVNode("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[Vue.createVNode("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[Vue.createVNode("use",Vue.mergeProps({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),er={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},iframeClass:{type:String,default:null}},ns=Vue.defineComponent({name:"RIframe",props:er,setup(e,{expose:t}){const o=Vue.computed(()=>({"--ray-iframe-frameborder":L(e.frameborder),"--ray-iframe-width":L(e.width),"--ray-iframe-height":L(e.height)})),n=Vue.ref(),r=Vue.ref(!0),a=l=>{r.value=!1;const{onSuccess:i}=e;i&&R(i,n.value,l)},s=l=>{r.value=!1;const{onError:i}=e;i&&R(i,l)};return re(n,"load",a),re(n,"error",s),t({iframeInst:n}),{cssVars:o,iframeRef:n,spinShow:r}},render(){return Vue.createVNode("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[Vue.createVNode(naive.NSpin,Vue.mergeProps(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>Vue.createVNode("iframe",Vue.mergeProps({class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title},{loading:this.lazy?"lazy":null}),null)})])}}),tr={...naive.modalProps,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},or=(e,t,o)=>{const{scheduler:n}=o??{};return new Promise(r=>{setTimeout(()=>{const a=t==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Ze(e).draggable({inertia:!0,autoScroll:!0,allowFrom:a,modifiers:[Ze.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);r(s)}},30)})},Ro=(e,t)=>{const o=typeof e=="string"?document.querySelector(e):e;return new Promise((n,r)=>{if(o){o.setAttribute("can-drag","true");const{preset:a,dargCallback:s}=t;let{x:l,y:i}=t;or(o,a,{scheduler:u=>{const c=u.target;l+=u.dx,i+=u.dy,c.style.transform=`translate(${l}px, ${i}px)`,s==null||s(l,i,u)}}).then(u=>{n(u)})}else r()})},nr="r-modal__preset-card--fullscreen",Ao="r-modal",ee={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},as=Vue.defineComponent({name:"RModal",props:tr,setup(e){const t=Vue.computed(()=>({[ee.width]:L(e.width??600),[ee.cardWidth]:L(e.cardWidth??600),[ee.dialogWidth]:L(e.dialogWidth??446)})),o=Ve();let n;const r={x:0,y:0},a=Vue.computed(()=>e.preset==="card"&&e.fullscreen);return Vue.watch(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?Vue.nextTick(()=>{const l=document.getElementById(o);l&&Ro(l,{preset:e.preset,x:r.x,y:r.y,dargCallback:(i,u)=>{r.x=i,r.y=u}}).then(i=>{n=i}),e.memo&&l&&(l.style.transform=`translate(${r.x}px, ${r.y}px)`)}):(n==null||n.unset(),n=null)},{immediate:!0}),{cssVars:t,isFullscreenCardType:a,uuidEl:o}},render(){const{$props:e,$slots:t,$attrs:o}=this,{preset:n,...r}=e,{cssVars:a,uuidEl:s,isFullscreenCardType:l}=this;return Vue.createVNode(naive.NModal,Vue.mergeProps({class:[Ao,l?nr:""],style:[a,l?"height: 100vh":""],preset:n},{id:s},r,o),{...t})}}),rs=()=>{const{create:e,destroyAll:t}=naive.useModal();return{create:n=>{const{content:r,...a}=n;let s=r;a.preset==="card"&&a.fullscreen&&(s=()=>Vue.h(naive.NScrollbar,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{padding:"0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left)",width:"auto",height:"calc(100vh - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof r=="function"?r():r}));const{preset:l,dad:i,fullscreen:u,width:c,cardWidth:g,dialogWidth:p}=n,h=e({...a,content:s}),{key:f}=h,y={[ee.width]:L(c??600),[ee.cardWidth]:L(g??600),[ee.dialogWidth]:L(p??446)};return Vue.nextTick(()=>{const[m]=Se(`[internalkey="${f}"]`)||[];if(m){if(i&&Ro(m,{preset:l,x:0,y:0}),u&&l==="card"){const b=m.querySelector(".n-card__content");b&&ke(b,{maxHeight:"calc(100vh - 9px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))",overflowY:"hidden",padding:"0"}),ke(m,{width:"100%",height:"100vh"})}ke(m,y),mt(m,Ao)}}),h},destroyAll:t}},ar={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Po=Vue.defineComponent({name:"RMoreDropdown",props:ar,render(){let e;const{iconSize:t,cursor:o,icon:n}=this,{default:r}=this.$slots;return Vue.createVNode(naive.NDropdown,Vue.mergeProps(this.$props,this.$attrs,{placement:"bottom-start"}),rr(e=ae(r,{defaultElement:Vue.createVNode(T,{name:n,size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),ie={...naive.dataTableProps,cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!1},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},F={tableIconSize:"18",tableKey:Symbol("r-table")},lr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],sr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ie},setup(e){return{size:Vue.ref(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:r=>{const{onChangeSize:a}=e;a&&R(a,r)}}},render(){return Vue.createVNode(naive.NPopselect,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(T,{name:"adjustment",size:F.tableIconSize,cursor:"pointer"},null)]})}}),ir=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=ft(e);return{toggleFullscreen:o,isEnabled:n}},render(){const{toggleFullscreen:e,isEnabled:t,$t:o}=this;return Vue.createVNode(T,{name:"fullscreen",size:F.tableIconSize,cursor:"pointer",onClick:()=>{t||window.$message.warning(o("globalMessage.isEnabledFullscreen")),e()}},null)}}),cr=()=>Vue.createVNode(T,{name:"draggable",size:14,cursor:"grab"},null),tt=({icon:e,title:t,onClick:o,customClassName:n})=>Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:e,size:F.tableIconSize,cursor:"pointer",customClassName:n,onClick:o==null?void 0:o.bind(null)},null),default:()=>t}),De=(e,t)=>{if(!t)return[null,null];for(let o=0;ove(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:c,title:g,children:p,fixed:h,isResizable:f,...y}=i,m=h==="left",b=h==="right",d={...y,title:g,key:c,fixed:h,isLeftFixedActivated:m,isRightFixedActivated:b,isResizable:f};return{...d,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(tt,{icon:"row_head",title:"固定在列首",customClassName:m?Re:"",onClick:a.bind(this,"left",d,u)},null),Vue.createVNode(naive.NPopover,{showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:"resize_h",size:F.tableIconSize,cursor:"pointer",customClassName:f?Re:"",onClick:r.bind(this,d,u)},null),default:()=>"修改列宽"}),Vue.createVNode(tt,{icon:"row_end",title:"固定在列尾",customClassName:b?Re:"",onClick:a.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&R(i,l)},r=(l,i)=>{l.isResizable=!l.isResizable,l.resizable=l.isResizable,o.value[i]=l,n(o.value)},a=(l,i,u)=>{const c=`${l}FixedActivated`,g=`${l==="left"?"right":"left"}FixedActivated`;i[g]=!1,i[c]=!i[c],i[c]?i.fixed=l:i.fixed=void 0,o.value[u]=i,n(o.value)};return{treeDataSource:o,treeDrop:({node:l,dragNode:i,dropPosition:u})=>{const[c,g]=De(i,o.value);if(c===null||g===null)return;c.splice(g,1);const[p,h]=De(l,o.value);p===null||h===null||(u==="before"?p.splice(h,0,i):p.splice(h+1,0,i),dt(t)||p.unshift(t),n(p))}}},render(){return Vue.createVNode(naive.NPopover,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>Vue.createVNode(T,{name:"setting",size:F.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>Vue.createVNode(naive.NTree,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:cr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),dr=Vue.defineComponent({name:"TablePrint",props:ie,setup(e){const{wrapperRef:t}=Vue.inject(F.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:n={},domToImageOptions:r}={},title:a}=e;(n.documentTitle===""||n.documentTitle===void 0||n.documentTitle===null)&&(n.documentTitle=typeof a=="string"?a:""),ht(t,{printOptions:n,domToImageOptions:r})}}},render(){return Vue.createVNode(T,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),pr=Vue.defineComponent({name:"TablePropsSelect",props:{...ie,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const t=Vue.ref(!1),o=Vue.ref([]),n=a=>{const{onPopselectChange:s}=e;s&&R(s,a)};return(()=>{const{striped:a,bordered:s,onInitialed:l}=e;a&&o.value.push("striped"),s&&o.value.push("bordered"),l&&R(l,o.value)})(),{propsPopselectValue:o,popoverShow:t,updatePopselectValue:n}},render(){return Vue.createVNode(naive.NPopselect,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:lr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[Vue.createVNode(T,{name:"expanded",size:F.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function mr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ls=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ie,setup(e,t){const{expose:o,emit:n}=t,r=Vue.ref(),a=Vue.ref(),s=Ve(16),l=Ve(16),i=Vue.reactive({x:0,y:0,showContextMenu:!1}),u=Vue.reactive({size:e.size}),c=Vue.ref({striped:!1,bordered:!1}),g=(d,V)=>{const{onContextMenuClick:S}=e;S&&R(S,d,V),i.showContextMenu=!1},p=(d,V)=>{var O;return{...(O=e.rowProps)==null?void 0:O.call(e,d,V),onContextmenu:e.disabledContextMenu?void 0:v=>{v.preventDefault(),i.showContextMenu=!1,Vue.nextTick().then(()=>{i.showContextMenu=!0,i.x=v.clientX,i.y=v.clientY})}}},h=d=>{u.size=d},f=d=>{const{onUpdateColumns:V,"onUpdate:columns":S}=e;V&&R(V,d),S&&R(S,d)},y=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(()=>Boolean).map(V=>typeof V=="function"?V():V)},m=d=>{Object.keys(c.value).forEach(S=>{c.value[S]=d.includes(S)})},b=d=>{const{tool:V}=d;if(!V)return;const S=()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(dr,d,null),Vue.createVNode(sr,Vue.mergeProps(d,{onChangeSize:h.bind(this)}),null),Vue.createVNode(ir,null,null),Vue.createVNode(ur,Vue.mergeProps(d,{onUpdateColumn:f.bind(this)}),null),Vue.createVNode(pr,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]});if(e.toolOptions)if(e.coverTool){let O;return Vue.createVNode(naive.NFlex,{align:"center"},mr(O=y())?O:{default:()=>[O]})}else return()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),y()]});else return S};return Vue.onMounted(()=>{const{onRegister:d}=e;d&&r.value&&R(d,r.value,{uuidTable:l,uuidWrapper:s,wrapperRef:a})}),Vue.provide(F.tableKey,{uuidTable:l,uuidWrapper:s,wrapperRef:a}),o(),{uuidWrapper:s,uuidTable:l,contextMenuReactive:i,rTableInst:r,combineRowProps:p,contextMenuSelect:g,privateReactive:u,tool:b,wrapperRef:a,propsPopselectValue:c}},render(){const{$props:e,$attrs:t,wrapperBordered:o,uuidWrapper:n,privateReactive:r,disabledContextMenu:a,contextMenuReactive:s,contextMenuOptions:l,uuidTable:i,title:u,$slots:c,propsPopselectValue:g}=this,{class:p}=t,{tool:h,combineRowProps:f,contextMenuSelect:y}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:n},{ref:"wrapperRef",bordered:o,class:p}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,g,{rowProps:f.bind(this),size:r.size,ref:"rTableInst"}),{...c}),a?null:Vue.createVNode(naive.NDropdown,{show:s.showContextMenu,placement:"bottom-start",trigger:"manual",x:s.x,y:s.y,options:l,onClickoutside:()=>s.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:ae(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":h(e),footer:()=>{var m;return(m=c.tableFooter)==null?void 0:m.call(c)},action:()=>{var m;return(m=c.tableAction)==null?void 0:m.call(c)}})}}),ss=()=>{const e=Vue.ref();let t={};const o=(p,h)=>{p&&(e.value=p,t=h)},n=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value,e.value};return[o,{getTableInstance:n,clearFilters:()=>n().clearFilters.call(null),clearSorter:()=>n().clearSorter.call(null),downloadCsv:p=>n().downloadCsv.call(null,p),filters:p=>n().filters.call(null,p),page:p=>n().page.call(null,p),scrollTo:p=>n().scrollTo(p),sort:(p,h)=>n().sort.call(null,p,h),print:()=>{const{uuidWrapper:p}=t;if(p){const h=document.getElementById(p);ht(h)}}}]},Mo=(e,t,o)=>{var n;if(e.length)for(const r of e){if(r[t]===o)return r;if((n=r==null?void 0:r.children)!=null&&n.length){const a=Mo(r.children,t,o);if(a)return a}}},ot=e=>{const t=Vue.unref(e);return t?t.findIndex(n=>{const{type:r,multiple:a}=n;if(r==="selection"&&(a==null||a===!0))return!0})!==-1:!0},is=(e,t,o)=>{const n=Vue.ref([]),r=Vue.ref([]),{rowKey:a="key",onChange:s}=o||{},l=Vue.computed(()=>ot(t)),i=(f,y,m)=>{n.value=f,r.value=y,s==null||s(f,y,m),ot(t)},u=()=>n.value,c=()=>r.value,g=()=>{n.value=[],r.value=[],s==null||s(n.value,r.value,{row:void 0,action:"uncheckAll"})},p=f=>{if(f==null)return;let y;n.value=n.value.filter(m=>m!==f),r.value=r.value.filter(m=>m[a]===f?(y=m,!1):!0),s==null||s(n.value,r.value,{row:y,action:"uncheck"})},h=f=>{if(n.value.includes(f))return;const y=!l.value&&n.value.length>=1,m=Mo(Vue.unref(e)||[],a,f);y?n.value=[f]:n.value.push(f),m&&(y?r.value=[m]:r.value.push(m),s==null||s(n.value,r.value,{row:m,action:"check"}))};return Ke(()=>{g()}),[n,{checkedRows:r,checkedRowKeysBind:i,getKeys:u,getRows:c,clearAll:g,clearKey:p,selectKey:h}]},hr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},fr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},hr),setup(e){const{getKeepAliveInclude:t}=Ar(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:r}=bt;return(a,s)=>{const l=Vue.resolveComponent("RouterView");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(({Component:i,route:u})=>[i?(Vue.openBlock(),Vue.createBlock(Vue.Transition,{key:0,name:a.transitionPropName,mode:a.transitionMode,appear:a.transitionAppear},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createBlock(Vue.Suspense,null,{default:Vue.withCtx(()=>[Vue.unref(o)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,max:Vue.unref(n),include:Vue.unref(t),exclude:Vue.unref(r)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))],1032,["max","include","exclude"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i),{key:u.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Vue.createCommentVNode("",!0)]),_:1})])}}}),gr={...naive.formProps,onRegister:{type:[Function,Array],default:null}},cs=Vue.defineComponent({name:"RForm",props:gr,setup(e,{expose:t}){const o=Vue.ref();return Vue.onMounted(()=>{const{onRegister:n}=e;n&&o.value&&R(n,o.value)}),t(),{formRef:o}},render(){const{$attrs:e,$props:t,$slots:o}=this;return Vue.createVNode(naive.NForm,Vue.mergeProps(e,t,{ref:"formRef"}),{...o})}}),us=(e,t)=>{const o=Vue.ref(),n=u=>{u&&(o.value=u)},r=()=>{if(!o.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return o.value};return[n,{getFormInstance:r,validate:(u,c)=>r().validate.call(null,u,c),restoreValidation:()=>r().restoreValidation.call(null),formModel:()=>ve(e)||{},formRules:()=>ve(t)||{}}]},yr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],vr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},br=Be({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...yr);function Vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const $e=e=>{const{icon:t,label:o}=e;return t?Vue.createVNode(naive.NFlex,{align:"center",wrap:!1,size:"small"},{default:()=>[Vue.createVNode(t,null,null),Vue.createVNode("div",null,[o])]}):o},Sr=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>$e(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>$e(e),default:()=>o})}},ds=Vue.defineComponent({name:"RSegment",props:br,setup(e,{expose:t}){const o=Vue.computed(()=>{const{width:n}=e;let r="";switch(n){case"block":r="100%";break;case"fitContent":r="fit-content";break;default:r=typeof n=="number"?L(n):"fit-content"}return{"--r-segment-width":r}});return t(),{cssVars:o}},render(){let e;const{$props:t,options:o,cssVars:n,themeOverrides:r}=this;return Vue.createVNode(naive.NTabs,Vue.mergeProps(t,{ref:"segmentRef",style:[n],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},vr,r)}),Vr(e=o.map(a=>Vue.createVNode(naive.NTab,{key:a.key,name:a.key,tab:a.popover?Sr(a):$e(a),disabled:a.disabled},{...a.slots})))?e:{default:()=>[e]})}}),_r={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},ps=Vue.defineComponent({name:"RBarcode",props:_r,setup(e){const t=Vue.ref(),o=Vue.computed(()=>({"--r-barcode-width":L(e.width),"--r-barcode-height":L(e.height)}));let n;const r=()=>{try{const{format:a,text:s,options:l,onSuccess:i}=e,u=Object.assign({},l,{format:a});JsBarcode(t.value,s!=null?s.toString():"",u),i&&R(i,s,a,l)}catch(a){const{onError:s}=e;s&&R(s,a)}finally{const{onFinally:a}=e;a&&R(a)}};return Vue.watchEffect(()=>{e.watchText?n=Vue.watch(()=>e.text,r):n==null||n()}),Vue.onMounted(()=>{r()}),Vue.onBeforeUnmount(()=>{n==null||n()}),{barcodeRef:t,cssVars:o}},render(){const{barcodeRender:e,loading:t,cssVars:o}=this,n=["r-barcode",{"r-barcode--loading":t}];return Vue.createVNode(naive.NSpin,{class:"r-barcode-spin",show:t},{default:()=>[e==="canvas"?Vue.createVNode("canvas",{class:n,style:o,ref:"barcodeRef"},null):Vue.createVNode("svg",{class:n,style:o,ref:"barcodeRef"},null)]})}});var wr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Cr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Lo=(e,t,o)=>{const n=[];if(Cr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const r of e.children){const a=Lo(r,t,o);a.length>0&&n.push(e,...a)}return n},Nr=(e,t,o)=>{const n=[];for(const r of e){const a=Lo(r,t,o);a.length>0&&n.push(...a)}return n},Tr=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:o}}=wr,n=o?o.title:"";document.title=t+" - "+n},Or=e=>{const{meta:{icon:t}}=e;if(!t)return;if(G(t,"Object"))return()=>t;const o=Vue.h(T,{name:t,size:Y.menuCollapsedIconSize,cursor:"pointer"},{});return()=>o},zo=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=se(),{label:r,icon:a,type:s,i18nLabel:l}=t,i={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},u=()=>l?n(l):r||null,c=()=>a&&(l||r)||!a&&(l||r)?null:{"padding-right":"0"};if(G(t,"Object"))return()=>Vue.h(naive.NTag,{...i,type:s||"primary",style:c()},{default:()=>u(),icon:()=>a})},nt=()=>{const{getRootPath:e}=te();return le(E.appMenuKey,"sessionStorage",{defaultValue:e.value})},Eo=()=>Ia(za()),kr=()=>ja(Eo());let he;const jo=(e,t)=>{var o;if(he&&Xe(he.fullPath,t))return he;for(const n of e){if(Xe(n.fullPath,t))return he=n,n;if((o=n.children)!=null&&o.length){jo(n.children,t);continue}}},Io=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=se(),{setKeepAliveInclude:r}=Pr(),a=Vue.reactive({menuKey:nt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(d,V)=>{Object.hasOwn(a,d)&&(a[d]=V)},i=d=>{const{meta:V}=d,{i18nKey:S,noLocalTitle:O}=V,v=Vue.computed(()=>S?n(`${S}`):O),w={...d,key:d.fullPath,label:()=>Vue.h(naive.NEllipsis,null,{default:()=>v.value}),breadcrumbLabel:v.value},x=Object.assign({},w,{icon:Or(d),extra:zo(d)});return d.fullPath===nt()&&(a.currentMenuOption=x),x.show=wt(x),x},u=d=>{a.breadcrumbOptions=Nr(a.options,"fullPath",d)},c=(d,V=!0)=>{const O=Array.isArray(d)?[...d]:[d];V?a.menuTagOptions.push(...O):a.menuTagOptions=O},g=(d,V)=>{a.menuTagOptions.find(O=>O.fullPath===d)||a.menuTagOptions.push(V)},p=(d,V,S)=>{const{meta:O}=V;if(O.windowOpen)window.open(O.windowOpen);else{e({path:String(d),query:S});const{sameLevel:v}=O;if(r(V),Tr(V),!v)g(d,V),u(d),a.menuKey=d,a.currentMenuOption=V,We(E.appMenuKey,d);else{const w=be(i(V),["breadcrumbLabel","children","key","meta","name","path","show"]);a.breadcrumbOptions.find(C=>C.key===w.key)||a.breadcrumbOptions.push({...w,fullPath:String(w.key)})}}},h=async(d,V)=>{const[S]=d.split("?"),O=t().find(v=>v.path===S);if(O){const v=be(O,["children","meta","path","name","redirect"]);p(S,i({...v,fullPath:v.path}),V)}},f=()=>new Promise(d=>{const V=(S,O)=>{var w;const v=[];for(const x of S){let C=`${O.endsWith("/")?O:O+"/"}${x.path}`;if(C=C.replace(/\/+/g,"/"),(w=x.children)!=null&&w.length)x.children=V(x.children,C);else if(!Fo(x.meta))continue;v.push(i({...x,fullPath:C}))}return v};if(a.options=V(Eo(),""),a.currentMenuOption){const{currentMenuOption:S}=a;u(S.key),g(S.fullPath,S)}d()}),y=d=>a.collapsed=d,m=(d,V=1)=>a.menuTagOptions.splice(d,V),b=async()=>{s.value&&(await f(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(d,V)=>{await b(),d!==V&&await h(d,o.query)},{immediate:!0}),{...Vue.toRefs(a),changeMenuModelValue:p,collapsedMenu:y,spliceMenTagOptions:m,setMenuTagOptions:c,resolveOption:i,updateMenuState:l}},{persist:{key:E.appPiniaMenuStore,storage:window.sessionStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions"]}}),Do=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((r,a)=>{dt(n)?a({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:n.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},r({code:0,message:"登陆成功",data:e.signingCallback}))}),o=()=>{const{closeAll:n}=Ko();window.$message.info("账号退出中..."),rn("__all_sessionStorage__","sessionStorage"),n(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:E.appPiniaSigningStore,paths:["signingCallback"],storage:sessionStorage}}),$o=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=bt,t=Vue.reactive({keepAliveInclude:[]}),o=()=>t.keepAliveInclude.length,n=a=>{const s=o(),{name:l,meta:{keepAlive:i}}=a;if(i){if(s=e&&(t.keepAliveInclude.splice(0,1),t.keepAliveInclude.push(l))}},r=()=>t.keepAliveInclude;return{...Vue.toRefs(t),setKeepAliveInclude:n,getKeepAliveInclude:r}},{persist:{key:E.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=Io(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),r=Vue.computed(()=>{const{getRootPath:l}=te();return e.menuTagOptions.map((i,u,c)=>(i.key===n.value&&i.key!==l.value?i.closeable=!0:i.closeable=!1,i.key===l.value&&(i.closeable=!1),c.length<=1&&(i.closeable=!1),i))}),a=Vue.computed(()=>e.currentMenuOption),s=Vue.computed(()=>e.collapsed);return{getMenuOptions:t,getBreadcrumbOptions:o,getMenuKey:n,getMenuTagOptions:r,getCurrentMenuOption:a,getCollapsed:s}},ce=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r,updateMenuState:a}=Io();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:r,updateMenuState:a}},D=()=>{const e=Ct(),t=Vue.computed(()=>e.drawerPlacement),o=Vue.computed(()=>e.primaryColorOverride),n=Vue.computed(()=>e.appTheme),r=Vue.computed(()=>e.menuTagSwitch),a=Vue.computed(()=>e.breadcrumbSwitch),s=Vue.computed(()=>e.localeLanguage),l=Vue.computed(()=>e.lockScreenSwitch),i=Vue.computed(()=>e.copyrightSwitch),u=Vue.computed(()=>e.contentTransition),c=Vue.computed(()=>e.watermarkSwitch),g=Vue.computed(()=>e.watermarkConfig),p=Vue.computed(()=>e.appRootRoute);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:r,getBreadcrumbSwitch:a,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:g,getAppRootRoute:p}},j=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=Ct();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},xr=()=>{const e=Do();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Rr=()=>{const{signing:e,logout:t}=Do();return{signing:e,logout:t}},Ar=()=>{const e=$o();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},Pr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=$o();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ms=e=>{const t=Pinia.createPinia();e.use(t),t.use(pn)},Fo=e=>{const{getSigningCallback:t}=xr(),{role:o}=e;return me!=null&&me.length&&me.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},Mr=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Wn;t&&Fa(e),o&&Da(e)};var Lr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const zr=Vue.ref(),Er=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{layout:{sideBarLogo:t}}=Lr;return{sideBarLogo:t,sideBarLogoClick:()=>{t&&t.url&&(t.jumpType==="station"?e.push(t.url):window.open(t.url))},TemplateLogo:({cursor:r})=>{if(typeof t.icon=="string")return Vue.createVNode(T,{name:t.icon,size:"30",cursor:r},null);if(G(t.icon,"Object"))return Vue.createVNode(t.icon,null,null)}}},render(){const{sideBarLogo:e,collapsed:t,TemplateLogo:o,sideBarLogoClick:n}=this;return e!=null&&e.title?Vue.createVNode("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:n.bind(this),ref:zr},[e!=null&&e.icon?t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>o({cursor:"pointer"}),default:()=>e.title}):o({cursor:"pointer"}):t?Vue.createVNode(naive.NTooltip,{placement:"right"},{trigger:()=>Vue.createVNode("h1",{class:"n-menu-item-content"},[e.title[0]||null]),default:()=>e.title}):null,Vue.createVNode("h1",{class:[t?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"']},[Vue.createVNode(naive.NEllipsis,null,{default:()=>[e.title]})])]):null}}),jr=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o,updateMenuState:n}=ce(),{getMenuOptions:r,getCollapsed:a,getMenuKey:s}=X(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{c()}),s.value),set:()=>{i.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=Ne(),u=Vue.computed({get:()=>Ce("globalDrawerValue").value,set:p=>{q("globalDrawerValue",p)}}),c=()=>{const p=l.value;p!=null&&Vue.nextTick(()=>{var h,f;return(f=(h=e.value)==null?void 0:h.showOption)==null?void 0:f.call(h,p)})};return{isTabletOrSmaller:i,BasicMenu:()=>Vue.createVNode(naive.NLayoutSider,{class:"app-menu__sider",showTrigger:!i.value,collapseMode:Y.menuCollapsedMode,collapsedWidth:Y.menuCollapsedWidth,onUpdateCollapsed:o.bind(this),nativeScrollbar:!1,ref:St,collapsed:a.value,onExpand:()=>{n("collapsed",!1)},onCollapse:()=>{n("collapsed",!0)}},{default:()=>[Vue.createVNode(Er,{collapsed:a.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":p=>l.value=p,options:r.value,indent:Y.menuCollapsedIndent,collapsed:a.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,h)=>{t(p,h)},accordion:Y.menuAccordion},null)]}),modelGlobalDrawerValue:u}},render(){const{isTabletOrSmaller:e,BasicMenu:t}=this;return e?Vue.createVNode(naive.NDrawer,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":o=>this.modelGlobalDrawerValue=o,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[Vue.createVNode(t,null,null)]}):Vue.createVNode(t,null,null)}});class Ir{constructor(){Ye(this,"pendingRequest");this.pendingRequest=new Map}isAppending(t){var o;return((o=t.cancelConfig)==null?void 0:o.cancel)??!0}generateRequestKey(t){const{method:o,url:n}=t;return[n||"",o||"",JSON.stringify(t.params),JSON.stringify(t.data)].join("&")}addPendingRequest(t){var o;if(this.isAppending(t)){t.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const n=this.generateRequestKey(t);if(this.pendingRequest.has(n))t.signal=(o=this.pendingRequest.get(n))==null?void 0:o.signal;else{const r=new AbortController;t.signal=r.signal,this.pendingRequest.set(n,r)}}}removePendingRequest(t){const o=this.generateRequestKey(t);this.pendingRequest.has(o)&&(this.pendingRequest.get(o).abort(),this.pendingRequest.delete(o))}cancelAllRequest(){this.pendingRequest.forEach(t=>{t.abort()})}}const Ae={requestInstance:null,responseInstance:null},Pe={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},fe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Dr=new Ir,hs=()=>{const e=(l,i)=>{i==="requestInstance"?Ae.requestInstance=l:Ae.responseInstance=l},t=l=>Ae[l],o=(l,i,u)=>{u==="ok"?Pe[l]=i:fe[l]=i},n=(l,i)=>i==="ok"?Pe[l]:fe[l],r=(l,...i)=>{Array.isArray(l)&&l.forEach(u=>{typeof u=="function"&&u(...i)})};return{createAxiosInstance:e,setImplement:o,getImplement:n,getAxiosInstance:t,beforeFetch:(l,i,u)=>{const c=u==="ok"?Pe[i]:fe[i],g=t(l),{MODE:p}=Ie();g&&r(c,g,p)},fetchError:(l,i,u)=>{const c=fe[u],{MODE:g}=Ie();r(c,i,g)}}},$r=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Dr.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Bo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=Wo(),{getContentTransition:t}=D(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:r,layoutContentMaximize:a,layoutContentSpinning:s}=Un();return{globalMainLayoutLoad:r,spinning:o,themeOverridesSpin:n,getContentTransition:t,layoutContentMaximize:a,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:t,layoutContentSpinning:o,maximize:n,spinning:r,themeOverridesSpin:a,getContentTransition:s}=this;return Vue.createVNode(naive.NSpin,{show:r||!e||o,description:"loading...",size:"large",themeOverrides:a,class:[t?"r-layout-full__viewer-content--maximize":null,"r-layout-full__viewer-content--maximize--light","r-layout-full__viewer-content--maximize--dark"]},{default:()=>[t?Vue.createVNode("div",{class:"layout-content__maximize-out",onClick:()=>{n(!1)}},[Vue.createVNode(T,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode($r,null,null),e?Vue.createVNode(fr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Bo},Symbol.toStringTag,{value:"Module"}));var Br={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Wr=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Br;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Kr=Vue.defineComponent({name:"TooltipIcon",props:{...naive.tooltipProps,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:t}){const o=r=>{t("click",r)};return{iconClick:o,Icon:()=>Vue.createVNode(T,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:o.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?Vue.createVNode(naive.NTooltip,this.$props,{trigger:()=>Vue.createVNode(e,null,null),default:()=>this.tooltipText}):Vue.createVNode(e,null,null)}}),Ur=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=Tl(),{getAppTheme:o}=D(),n=Vue.ref(o.value);return{darkTheme:e,lightTheme:t,getAppTheme:o,railStyle:({checked:a})=>a?{backgroundColor:"#000000"}:{color:"#000000"},modelAppThemeRef:n}},render(){const{$t:e,darkTheme:t,lightTheme:o,railStyle:n}=this;return Vue.createVNode(naive.NFlex,{justify:"center"},{default:()=>[Vue.createVNode(naive.NTooltip,null,{trigger:()=>Vue.createVNode(naive.NSwitch,{value:this.modelAppThemeRef,"onUpdate:value":r=>this.modelAppThemeRef=r,railStyle:n.bind(this),onUpdateValue:r=>r?t():o()},{"checked-icon":()=>Vue.createVNode(T,{name:"dark"},null),"unchecked-icon":()=>Vue.createVNode(T,{name:"light"},null),checked:()=>"亮",unchecked:()=>"暗"}),default:()=>this.getAppTheme?e("headerSettingOptions.ThemeOptions.Dark"):e("headerSettingOptions.ThemeOptions.Light")})]})}});function ge(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const qr=Vue.defineComponent({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{changePrimaryColor:o,updateSettingState:n}=j(),{getAppTheme:r,getPrimaryColorOverride:a,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=D(),g=Vue.computed({get:()=>e.show,set:h=>{t("update:show",h)}}),p=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:h=>{}});return{modelShow:g,changePrimaryColor:o,getAppTheme:r,getPrimaryColorOverride:a,updateSettingState:n,modelSwitchReactive:p}},render(){let e,t,o,n;const{$t:r,changePrimaryColor:a,updateSettingState:s}=this;return Vue.createVNode(naive.NDrawer,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,placement:this.placement,width:this.width},{default:()=>[Vue.createVNode(naive.NDrawerContent,{title:r("headerSettingOptions.Title")},{default:()=>[Vue.createVNode(naive.NFlex,{class:"setting-drawer__space",vertical:!0},{default:()=>[Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(e=r("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Ur,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(t=r("headerSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),Vue.createVNode(naive.NColorPicker,{swatches:$.appThemeColors,value:this.getPrimaryColorOverride.common.primaryColor,"onUpdate:value":l=>this.getPrimaryColorOverride.common.primaryColor=l,onUpdateValue:a.bind(this)},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(o=r("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:In,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ge(n=r("headerSettingOptions.InterfaceDisplay"))?n:{default:()=>[n]}),Vue.createVNode(naive.NDescriptions,{labelPlacement:"left",column:1},{default:()=>[Vue.createVNode(naive.NDescriptionsItem,{label:"多标签"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getMenuTagSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getMenuTagSwitch=l,onUpdateValue:l=>s("menuTagSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"面包屑"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getBreadcrumbSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getBreadcrumbSwitch=l,onUpdateValue:l=>s("breadcrumbSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"水印"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getWatermarkSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getWatermarkSwitch=l,onUpdateValue:l=>s("watermarkSwitch",l)},null)]}),Vue.createVNode(naive.NDescriptionsItem,{label:"版权信息"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.modelSwitchReactive.getCopyrightSwitch,"onUpdate:value":l=>this.modelSwitchReactive.getCopyrightSwitch=l,onUpdateValue:l=>s("copyrightSwitch",l)},null)]})]})]})]})]})}});function Gr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Hr=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ce(),{getBreadcrumbOptions:t}=X(),{isTabletOrSmaller:o}=Ne();return{getBreadcrumbOptions:t,dropdownSelect:(a,s)=>{e(a,s)},breadcrumbItemClick:a=>{var s;if(!((s=a.children)!=null&&s.length)){const{meta:l={}}=a;l.sameLevel||e(a.fullPath,a)}},isTabletOrSmaller:o}},render(){let e;const{isTabletOrSmaller:t,getBreadcrumbOptions:o}=this,{dropdownSelect:n,breadcrumbItemClick:r}=this;return t?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NBreadcrumb,null,{default:()=>[Vue.createVNode(Vue.TransitionGroup,{tag:"li",name:"breadcrumb",appear:!0},Gr(e=o.map(a=>Vue.createVNode(naive.NBreadcrumbItem,{key:a.fullPath,onClick:r.bind(this,a)},{default:()=>{var s;return[Vue.createVNode(naive.NDropdown,{labelField:"breadcrumbLabel",keyField:"fullPath",options:a.children&&((s=a.children)==null?void 0:s.length)>1?a.children:[],onSelect:n.bind(this)},{default:()=>Vue.createVNode("span",null,[a.label&&typeof a.label=="function"?a.label():a.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function Me(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Yr=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ce(),{getRoutes:r}=VueRouter.useRouter(),a=Vue.computed({get:()=>e.show,set:v=>{t("update:show",v),v||h()}}),s=Vue.reactive({searchValue:null,searchOptions:[]}),l=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let i=0,u=i;const{isTabletOrSmaller:c}=Ne(),g=Vue.ref(!1),p="content-item--active",h=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},f=v=>{a.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),h(),a.value=!0)},y=v=>{if(v)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const w=r().reduce((x,C)=>{var B;const M=be(C,["children","meta","path","name"]),A=n({...M,fullPath:C.path}),{breadcrumbLabel:I}=A;return(B=I==null?void 0:I.toLocaleLowerCase())!=null&&B.includes(v.toLocaleLowerCase())&&wt(A)&&x.push(A),x},[]);setTimeout(()=>{s.searchOptions=w,Vue.nextTick().then(()=>{b()}),g.value=!1},500)},m=v=>{if(v){const{meta:w}=v;w.windowOpen?window.open(w.windowOpen):(a.value=!1,o(v.fullPath,v),setTimeout(ln,300))}},b=()=>{const v=s.searchOptions[i],w=s.searchOptions[u];v&&Vue.nextTick().then(()=>{const x=Se(`attr:data_path="${v.path}"`),C=w?Se(`attr:data_path="${w==null?void 0:w.path}"`):null;if(C!=null&&C.length){const[M]=C;sn(M,p)}if(x!=null&&x.length){const[M]=x;mt(M,p)}})},d=v=>{const{icon:w}=v;return typeof w=="string"?Vue.createVNode(T,{name:w,size:"24"},null):typeof w=="function"?()=>w:Vue.createVNode(T,{name:"search",size:"24"},null)},V=v=>{v==="up"&&(i-=1,i<0&&(i=s.searchOptions.length-1)),v==="down"&&(i+=1,i>=s.searchOptions.length&&(i=0))},S=v=>{const w=v.key;switch((w==="ArrowUp"||w==="ArrowDown"||w==="Enter")&&(v.preventDefault(),v.stopPropagation()),u=i<=0?0:i,w){case"ArrowUp":V("up");break;case"ArrowDown":V("down");break;case"Enter":const x=s.searchOptions[i];x&&m(x);break}b()},O=({menuOption:v})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:m.bind(this,v),data_path:v.path}),{default:()=>[Vue.createVNode("div",{class:"content-item-icon"},[d(v.meta)]),Vue.createVNode("div",{class:"content-item-label"},[v.breadcrumbLabel]),Vue.createVNode(T,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(a.value=!1)}),re(window,"keydown",v=>{f(v),S(v)},!0),{...Vue.toRefs(s),modelShow:a,helperTipOptions:l,fuzzySearchMenuOptions:Fe(y,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:O,loading:g}},render(){const{isTabletOrSmaller:e,searchOptions:t,loading:o}=this,{SearchItem:n,fuzzySearchMenuOptions:r}=this;return e?Vue.createVNode("div",{style:"display: none;"},null):Vue.createVNode(naive.NModal,{show:this.modelShow,"onUpdate:show":a=>this.modelShow=a,transformOrigin:"center",displayDirective:"if"},{default:()=>[Vue.createVNode("div",{class:"global-search global-search--dark global-search--light"},[Vue.createVNode("div",{class:"global-search__wrapper"},[Vue.createVNode(naive.NCard,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>Vue.createVNode(naive.NInput,{size:"large",value:this.searchValue,"onUpdate:value":a=>this.searchValue=a,clearable:!0,onInput:r.bind(this)},{prefix:()=>Vue.createVNode(T,{name:"search",size:"24"},null)}),default:()=>{let a;return Vue.createVNode(naive.NScrollbar,null,{default:()=>[Vue.createVNode(naive.NSpin,{show:o},{default:()=>[t.length?Vue.createVNode(naive.NFlex,{vertical:!0,size:[0,6],class:"global-search__card-content"},Me(a=t.map((s,l)=>Vue.createVNode(n,{menuOption:s,key:s.fullPath},null)))?a:{default:()=>[a]}):Vue.createVNode(naive.NResult,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>Vue.createVNode(naive.NFlex,{justify:"center",class:"global-search__empty-content"},{default:()=>[Vue.createVNode(naive.NText,null,{default:()=>[Vue.createTextVNode("没有搜索结果")]})]})})]})]})},action:()=>{let a;return Vue.createVNode(naive.NFlex,{justify:"flex-start",align:"center",size:[16,0]},Me(a=this.helperTipOptions.map(s=>Vue.createVNode(naive.NFlex,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(l=>Vue.createVNode(naive.NFlex,{class:"item-icon",align:"center",justify:"center"},Me(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?a:{default:()=>[a]})}})])])]})}}),Xr=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=cn();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:r}=e;r&&R(r,n)}}},render(){const{getShortcutKeyAboutSystem:e,click:t,$t:o}=this;return Vue.createVNode(naive.NButton,{class:"global-search__btn-wrapper",bordered:!1,onClick:t.bind(this)},{icon:()=>Vue.createVNode(T,{name:"search",size:"16"},null),default:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[o("headerTooltip.Search"),Vue.createVNode("div",{class:"global-search-btn__label"},[e()])]})})}}),Zr=Vue.defineComponent({name:"AppAvatar",props:{...naive.avatarProps,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"}},setup(e){return{signing:le(E.signing)}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o},{default:()=>[Vue.createVNode(naive.NAvatar,Vue.mergeProps(n,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:t}),null),e==null?void 0:e.name]})]})}}),Jr=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],Qr={logout:()=>{const{logout:e}=Rr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=j();e("lockScreenSwitch",!0)}},el=e=>{const t=Qr[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},tl=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},ol=e=>{const{isTabletOrSmaller:t}=e,o=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],n=[...o],r=[...o];return t.value?r:n},nl=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=j(),{t:o}=se(),[n,{toggleFullscreen:r,isEnabled:a}]=ft(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Ne(),g=Ce("globalDrawerValue"),p=Vue.computed(()=>tl({isFullscreen:n,isTabletOrSmaller:c})),h=Vue.computed(()=>ol({isFullscreen:n,isTabletOrSmaller:c})),f={search:()=>{u.value=!0},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{a||window.$message.warning(o("globalMessage.isEnabledFullscreen")),r()},lock:()=>{t("lockScreenSwitch",!0)},menu:()=>{q("globalDrawerValue",!g.value)}};return{leftIconOptions:p,rightTooltipIconOptions:h,toolIconClick:b=>{var d;(d=f[b])==null||d.call(f)},showSettings:i,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:l,globalSearchShown:u,isRenderVNode:b=>c.value?null:b}},render(){const{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:o,getBreadcrumbSwitch:n}=this,{toolIconClick:r,updateLocale:a,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Yr,{show:this.globalSearchShown,"onUpdate:show":l=>this.globalSearchShown=l},null),Vue.createVNode(naive.NFlex,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",wrap:!1},{default:()=>[t.map(l=>Vue.createVNode(Kr,{key:l.name,iconName:l.name,tooltipText:Vue.isRef(l.tooltip)?l.tooltip.value:l.tooltip,customClassName:l.iconClass,onClick:r.bind(this,l.name)},null)),n?Vue.createVNode(Hr,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(Vue.createVNode(Xr,{onClick:l=>{l.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(l=>Vue.createVNode(naive.NButton,{class:"override-button__layout",quaternary:!0,size:"medium",key:l.name,onClick:r.bind(this,l.name)},{default:()=>[Vue.createVNode(T,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:Vt,onSelect:l=>a(String(l)),trigger:"click"},{default:()=>[Vue.createVNode(naive.NButton,{quaternary:!0,class:"override-button__layout"},{default:()=>[Vue.createVNode(T,{customClassName:"layout-header__method--icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NDropdown,{options:Jr(),onSelect:el.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(Zr,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(qr,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),al=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(nl,null,null)]})}}),rl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},ll=vt('',1),sl=[ll];function il(e,t){return yt(),gt("svg",rl,[...sl])}const cl={render:il},ul={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},dl=vt('',1),pl=[dl];function ml(e,t){return yt(),gt("svg",ul,[...pl])}const hl={render:ml};function fl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const gl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:r}=X(),{changeMenuModelValue:a}=ce(),{getRootPath:s}=te(),{maximize:l}=Wo(),{reload:i}=Nl(),{close:u,closeAll:c,closeRight:g,closeLeft:p,closeOther:h,checkCloseLeft:f,checkCloseRight:y}=Ko(),m=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=1/0;const d={size:16},V=Vue.ref([{label:"刷新页面",key:"reloadCurrentPage",icon:()=>Vue.createVNode(T,{name:"reload",size:d.size},null)},{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>Vue.createVNode(T,{name:"close",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>Vue.createVNode(hl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(cl,{class:"menu-tag__icon"},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>Vue.createVNode(T,{name:"other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>Vue.createVNode(T,{name:"resize_h",size:d.size},null),disabled:!1}]),S=Ve(16),O={closeCurrentPage:()=>{n.value!==s.value&&u(b)},reloadCurrentPage:()=>{i()},closeAll:()=>{c()},closeRight:()=>{g(b)},closeLeft:()=>{p(b)},closeOther:()=>{h(b)}},v=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),w="menu_tag_data",x=Ce("globalMainLayoutLoad"),C="n-scrollbar-container",M=_=>{u(_)},A=(_,N)=>{V.value.forEach(z=>{if(z.key===_){z.disabled=N;return}})},I=_=>{v.actionDropdownShow=!1,a(_.fullPath,_)},B=()=>{const _=document.getElementById(S);if(_)return Array.from(_.childNodes).find(pe=>un(pe,C).value)},ue=_=>{var z;const N=B();if(N){const pe=N.scrollLeft||0,He=_==="left"?Math.max(0,pe-200):pe+200;(z=o.value)==null||z.scrollTo({left:He,behavior:"smooth"})}},de=_=>{v.actionDropdownShow=!1;const N=O[_];N&&N()},Z=(_,N)=>{N.preventDefault(),v.actionDropdownShow=!1,b=_,Vue.nextTick(()=>{v.actionDropdownShow=!0,v.x=N.clientX,v.y=N.clientY})},qe=()=>{const{closeable:_}=r.value[b]??{};A("closeCurrentPage",!_),y(b)?A("closeRight",!1):A("closeRight",!0),f(b)?A("closeLeft",!1):A("closeLeft",!0)},qo=()=>{b=r.value.findIndex(N=>N.fullPath===n.value),qe()},Go=_=>{r.value.length>1&&_.fullPath!==s.value&&(_.closeable=!0)},Ho=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Yo=()=>{B()&&Vue.nextTick().then(()=>{var N;(N=o.value)==null||N.scrollTo({left:99999,behavior:"smooth"})})},Ge=()=>{Vue.nextTick().then(()=>{const _=Se(`attr:${w}="${n.value}"`);if(_!=null&&_.length){const[N]=_;Vue.nextTick().then(()=>{var z;(z=o.value)==null||z.scrollTo({left:N.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>r.value,(_,N)=>{V.value.forEach(z=>{m.includes(z.key)&&(_.length>1?z.disabled=!1:z.disabled=!0)}),N!=null&&N.length&&(_.length>(N==null?void 0:N.length)?Yo():_.length===(N==null?void 0:N.length)&&Ge()),N===void 0&&Ge()},{immediate:!0}),Vue.watch(()=>v.actionDropdownShow,_=>{var N;_&&((N=Fe(qe,100))==null||N())}),t({}),{getMenuTagOptions:r,closeCurrentMenuTag:M,getMenuKey:n,menuTagClick:I,moreOptions:V,scrollX:ue,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:de,actionState:v,menuTagContextMenu:Z,setCurrentContextmenuIndex:qo,menuTagMouseenter:Go,menuTagMouseleave:Ho,MENU_TAG_DATA:w,iconConfig:{width:22,height:22},maximize:l,getRootPath:s,reload:i,globalMainLayoutLoad:x}},render(){let e;const{iconConfig:t,getRootPath:o,uuidScrollBar:n,getMenuTagOptions:r,MENU_TAG_DATA:a,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:g,menuTagContextMenu:p,menuTagMouseenter:h,menuTagMouseleave:f,actionDropdownSelect:y,reload:m}=this;return Vue.createVNode(naive.NLayoutHeader,null,{default:()=>[Vue.createVNode("div",{class:"menu-tag"},[Vue.createVNode(naive.NDropdown,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:y.bind(this),onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),Vue.createVNode(naive.NFlex,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0,size:[16,0]},{default:()=>[Vue.createVNode(T,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__left-arrow",onClick:this.scrollX.bind(this,"left")},null),Vue.createVNode(naive.NScrollbar,Vue.mergeProps({xScrollable:!0,ref:"scrollRef"},{id:n}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},fl(e=r.map((b,d)=>Vue.createVNode(naive.NButton,Vue.mergeProps({key:b.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:b.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,b),onContextmenu:p.bind(this,d),onMouseenter:h.bind(this,b),onMouseleave:f.bind(this,b),[a]:b.path},{size:"small"}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("span",null,{default:()=>{const{breadcrumbLabel:V,meta:{i18nKey:S}}=b;return S?c(S):V}}),(b.closeable||r.length===1)&&b.fullPath!==o?Vue.createVNode(naive.NIcon,Vue.mergeProps({class:"menu-tag__btn-icon"},{onMousedown:i.bind(this,d)}),{default:()=>[Vue.createVNode(T,{name:"close",size:"14"},null)]}):Vue.createVNode(naive.NIcon,{class:[b.fullPath!==o?"menu-tag__btn-icon":"menu-tag__btn-icon--hidden"]},null)])})))?e:{default:()=>[e]})]}),Vue.createVNode(naive.NFlex,{class:"menu-tag__right-wrapper",align:"center",inline:!0,wrap:!1,size:[8,0]},{default:()=>[Vue.createVNode(T,{name:"expanded",width:t.width,height:t.height,customClassName:"menu-tag__right-arrow",onClick:u.bind(this,"right")},null),Vue.createVNode(T,{name:"fullscreen_fold",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:()=>{l(!0)}},null),Vue.createVNode(T,{name:"reload",width:t.width,height:t.height,customClassName:`menu-tag__right-setting ${s?"":"menu-tag__right-setting--spinning"}`,onClick:()=>{m()}},null),Vue.createVNode(Po,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:20,keyboard:!1},{default:()=>[Vue.createVNode(T,{name:"more",width:t.width,height:t.height,customClassName:"menu-tag__right-setting",onClick:this.setCurrentContextmenuIndex.bind(this)},null)]})]})]})])]})}}),yl=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(gl,null,null)}}),vl=e=>{const t=Oe(e[0]),o=Oe(e[1]),n=Oe(e[2]);return Vue.computed(()=>({"--layout-content-height":`calc(100% - ${t.height.value}px - ${o.height.value}px - ${n.height.value}px)`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${o.height.value}px`,"--layout-footer-height":`${n.height.value}px`}))},at=tn(E.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),bl=()=>({setLockAppScreen:o=>{at.value=o},getLockAppScreen:()=>at.value}),Vl=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:r}=D(),{getLockAppScreen:a}=bl(),s=vl([e,t,o]);return{getMenuTagSwitch:n,cssVarsRef:s,getLockAppScreen:a,layoutSiderBarRef:e,layoutMenuTagRef:t,layoutFooterRef:o,getCopyrightSwitch:r}},render(){const{getMenuTagSwitch:e,cssVarsRef:t,getCopyrightSwitch:o}=this,{getLockAppScreen:n}=this;return n()?null:Vue.createVNode(naive.NLayout,{class:"r-layout-full",style:[t],hasSider:!0,embedded:!0},{default:()=>[Vue.createVNode(jr,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(al,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(yl,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Bo,null,null)]}),o?Vue.createVNode(Wr,{ref:"layoutFooterRef"},null):null]})]})}}),Sl=[{path:"/",name:"RLogin",component:()=>k(()=>import("./index-NrsCk1Kq.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,12,9,8,40,41,42,10,11,24,13,14,15,16,17,18,19,20,21,54]))},{path:"/",name:"RLayout",component:Vl,children:[...kr(),{path:"/:catchAll(.*)",component:()=>k(()=>import("./index-Dl1Y5YxY.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,12,9,8,10,11,13,14,15,16,17,18,19,20,21,56])),meta:{i18nKey:P("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],we=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:Sl,scrollBehavior:e=>{$a(e)}}),fs=e=>{e.use(we),Mr(we)},Ue=()=>we?{router:we}:{router:{}},rt="YYYY-MM-DD HH:mm:ss",_l=()=>({locale:s=>{const l=Fn[s];l?W.locale(l):W.locale(Bn)},getStartAndEndOfDay:s=>{const{format:l=rt}=s??{},i=W(),u=i.startOf("day"),c=i.endOf("day"),g=i.format(l),p=u.format(l),h=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:g,formatStartOfDay:p,formatEndOfDay:h}},format:(s,l)=>{const{format:i=rt}=l??{};return W(s).format(i)},isDayjs:s=>W.isDayjs(s),daysDiff:(s,l)=>{const i=W(s);return W(l).diff(i,"days")},isDateInRange:(s,l)=>{const{start:i,end:u}=l,c=W(s);return c.isAfter(i)&&c.isBefore(u)}});function Ne(e){const{width:t,height:o}=pt(e),n=Vue.ref(!1);return dn(()=>{const{media:a=768}=e??{};n.value=t.value<=a}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let lt=999,Le=!1;const H="ELEMENT-FULLSCREEN-RAY",{width:st,height:it}=pt(),ct=document.createElement("style"),wl=(e,t)=>{const{beforeEnter:o,beforeExit:n,enter:r,exit:a,backgroundColor:s,zIndex:l,transition:i="all 0.3s var(--r-bezier)"}=t??{};let u=!1;const c=()=>{const y=U(e);if(!y)return;const{left:m,top:b}=y.getBoundingClientRect(),d=` + [${H}] { + position: fixed; + width: ${st.value}px !important; + height: ${it.value}px !important; + transform: translate(-${m}px, -${b}px) !important; + transition: ${i}; + z-index: ${G(l,"Null")||G(l,"Undefined")?lt:l} !important; + background-color: ${s??null}; + } + `;ct.innerHTML=d,Le||document.head.appendChild(ct)},g=()=>{const y=U(e);o==null||o(),y&&(y.getAttribute(H)||y.setAttribute(H,H),u||(u=!0,lt+=1),Le||(c(),Le=!0),y.style.transition=i,r==null||r())},p=()=>{n==null||n();const y=U(e);y&&y.removeAttribute(H),a==null||a()},h=()=>{const y=U(e);y&&(y.getAttribute(H)?p():g())},f=Vue.watch(()=>[st.value,it.value],c);return Ke(()=>{const y=U(e);y&&y.removeAttribute(H),f()}),{enter:g,exit:p,toggleFullscreen:h}},ze={svg:oe.toSvg,png:oe.toPng,jpeg:oe.toJpeg,blob:oe.toBlob,pixelData:oe.toPixelData},gs=(e,t)=>{const{beforeCreate:o,created:n,createdError:r,finally:a,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var p;const g=U(e);if(o==null||o(g),!g)return r==null||r(),c("useDomToImage: element is undefined.");(p=ze[i??s??"jpeg"])==null||p.call(ze,g,t).then(h=>(n==null||n(h,g),u(h))).catch(h=>(r==null||r(h),c(h))).finally(()=>{a==null||a()})})}},ys=(e,t)=>({print:()=>{const n=U(e)||e;on({...Be(t,["printable"]),printable:n})}}),Cl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},vs=(e,t)=>{const o=Vue.ref(e),n=Be(t,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),r={onUpdatePage:d=>{var V;a.value.page=d,(V=o.value)==null||V.call(o)},onUpdatePageSize:d=>{var V;a.value.pageSize=d,a.value.page=1,(V=o.value)==null||V.call(o)}},a=Vue.ref(Object.assign({},Cl,n,r)),s=a.value.onUpdatePage,l=a.value.onUpdatePageSize,i=()=>a.value.itemCount,u=d=>{a.value.itemCount=d},c=()=>a.value.page,g=d=>{s(d)},p=()=>a.value.pageSize,h=d=>{l(d)},f=()=>a.value,y=e,m=d=>{o.value=d},b=()=>{const{pageSizes:d}=a.value;a.value.page=1,a.value.pageSize=(d==null?void 0:d[0])||10};return Ke(()=>{o.value=void 0}),[a,{getItemCount:i,setItemCount:u,getPage:c,setPage:g,getPageSize:p,setPageSize:h,getPagination:f,getCallback:y,setCallback:m,resetPagination:b}]},Wo=()=>({isLayoutContentMaximized:Vue.computed(()=>Ce("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:r}=n??{},a=U(Q),{toggleFullscreen:s}=wl(a,n);q("layoutContentMaximize",o),s(),r&&o&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(r))}}),Nl=()=>({reload:(n=800)=>{q("globalMainLayoutLoad",!1),setTimeout(()=>q("globalMainLayoutLoad",!0),n)},openSpin:()=>{q("layoutContentSpinning",!0)},closeSpin:()=>{q("layoutContentSpinning",!1)}}),bs=()=>({setWatermarkContent:r=>{const{getWatermarkConfig:a}=D(),s=Object.assign(a.value,{content:r}),{updateSettingState:l}=j();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:r}=j();r("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:r}=D(),{updateSettingState:a}=j();a("watermarkSwitch",!r.value)}}),Ee=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:o}=j();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},Tl=()=>{const e=()=>{const{getAppTheme:r}=D(),{t:a}=se();return{theme:r.value,themeI18nLabel:r.value?a("headerSettingOptions.ThemeOptions.Dark"):a("headerSettingOptions.ThemeOptions.Light"),themeLabel:r.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!0),Ee(!0)},lightTheme:()=>{const{updateSettingState:r}=j();r("appTheme",!1),Ee(!1)},toggleTheme:()=>{const{theme:r}=e(),{updateSettingState:a}=j();a("appTheme",!r),Ee(!r)},getAppTheme:e}},J=(e,t)=>{const{getMenuTagOptions:o}=X();if(typeof e=="number"){if(isNaN(e)){console.warn(`${t}: The ${e} is NaN, expect number.`);return}if(e>o.value.length||e<-1){console.warn(`${t}: The incoming index ${e} did not match the corresponding item.`);return}return{option:o.value[e],index:e}}else if(typeof e=="string"){const n=o.value.findIndex(r=>r.fullPath===e);return n>-1?{option:o.value[n],index:n}:console.warn(`${t}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:n}=e,r=o.value.findIndex(a=>a.fullPath===n);if(r===-1){console.warn(`${t}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:r}}};function Ko(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:a}=ce(),s=()=>e.value.findIndex(f=>f.fullPath===t.value);return{close:f=>{const y=J(f,"close");if(e.value.length!==1&&y){const{index:m,option:b}=y;if(n(m),b.fullPath===t.value){const d=e.value[m-1];d&&o(d.fullPath,d)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:f}=te(),{router:{getRoutes:y}}=Ue(),m=y().find(b=>b.path===f.value);if(m){const b=be(m,["children","meta","path","name","redirect"]),d=a(b);o(d.path,a({...d,fullPath:d.path}))}},closeRight:f=>{const y=J(f,"closeRight");if(y){const{option:m,index:b}=y,d=e.value.length-b,V=s();n(b+1,d),b<=V&&t.value!==m.fullPath&&o(m.fullPath,m)}},closeLeft:f=>{const y=J(f,"closeLeft");if(y){const{option:m,index:b}=y,d=s();n(0,b),d<=b&&t.value!==m.fullPath&&o(m.fullPath,m)}},closeOther:f=>{const y=J(f,"closeOther");if(y){const{option:m}=y;t.value!==m.fullPath?(n(0,e.value.length),o(m.fullPath,m)):r(m,!1)}},getCurrentTagIndex:s,checkCloseRight:f=>{const y=J(f,"checkCloseRight");if(y){const{index:m}=y,b=e.value.length-1;return!(m>=b)}return!1},checkCloseLeft:f=>{const y=J(f,"checkCloseRight");if(y){const{index:m}=y,b=e.value.length-1;return m===0?!1:m>0&&b>0}return!1}}}function Vs(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:r,replace:a}}=Ue(),{isPush:s=!0,query:l}=o||{},i=u=>s?r({path:u,query:l}):a({path:u,query:l});if(typeof t=="number"){if(isNaN(t)){console.warn(`[navigationTo]: The ${t} is NaN, expect number.`);return}const{getMenuOptions:u}=X();if(t>u.value.length){console.warn(`[navigationTo]: The current ${t} exceeds the maximum number of menus.`);return}const c=u.value[t],g=p=>{if(p.children&&p.children.length>0){const{children:[h]}=p;g(h);return}i(p.fullPath)};g(c)}else if(typeof t=="string"){const u=n().find(c=>c.path===t);u?i(u.path):console.warn(`[navigationTo]: The path "${t}" is not found.`)}else i(t.fullPath)}}}function te(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=j(),o=e,n=Vue.computed(()=>e.value.path),r=Vue.computed(()=>e.value.name);return{getRootRoute:o,getRootPath:n,getRootName:r,setRootRoute:s=>{t("appRootRoute",Object.assign({},e.value,s))}}}const Ol=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=zo(e)},ut=(e,t,o)=>{const n=jo(e,t);n&&Ol(n,o)},je=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")ut(n.value,e,o);else if(G(e,"Object")){const{fullPath:r}=e;ut(n.value,r,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Ss(){return{hidden:n=>{je(n,"hidden",{show:!1})},show:n=>{je(n,"show",{show:!0})},update:(n,r)=>{je(n,"update",r)}}}const _s=()=>{const e=St.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Uo=()=>le(E.localeLanguage,"localStorage",{defaultValue:Dn});export{bs as $,Yl as A,es as B,ts as C,Bn as D,us as E,cs as F,ns as G,vs as H,os as I,ls as J,Dr as K,St as L,Gl as M,hs as N,Zl as O,rs as P,ds as Q,as as R,zr as S,Ur as T,ss as U,is as V,Po as W,Wo as X,Vs as Y,Nl as Z,k as _,ys as a,Tl as a0,Ss as a1,_s as b,Xl as c,D as d,E as e,j as f,ql as g,bl as h,Rr as i,Ne as j,Zr as k,Ce as l,Hl as m,Ql as n,fs as o,te as p,se as q,T as r,ms as s,Vt as t,gs as u,xe as v,Ue as w,Ul as x,ps as y,Jl as z}; diff --git a/js/hooks-BGLytdb9.js.gz b/js/hooks-BGLytdb9.js.gz new file mode 100644 index 00000000..ddd1cc79 Binary files /dev/null and b/js/hooks-BGLytdb9.js.gz differ diff --git a/js/index-2ABOmIsE.js.gz b/js/index-2ABOmIsE.js.gz deleted file mode 100644 index 41cc9315..00000000 Binary files a/js/index-2ABOmIsE.js.gz and /dev/null differ diff --git a/js/index-BAoV7gwx.js b/js/index-5Nwsrxy3.js similarity index 94% rename from js/index-BAoV7gwx.js rename to js/index-5Nwsrxy3.js index d959c3cb..637513e3 100644 --- a/js/index-BAoV7gwx.js +++ b/js/index-5Nwsrxy3.js @@ -1 +1 @@ -import{F as c,G as p,H as V}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{a as F}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import{s as E}from"./instance-ClAhwUsY.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const N=u=>E({url:"/api/list",method:"get",params:u}),H=Vue.defineComponent({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:o=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],e=Vue.reactive({email:null}),[r,{getPage:t,getPageSize:a,setItemCount:i,getCallback:n,setPage:g,setPageSize:C}]=c(()=>{m({page:t(),pageSize:a(),email:e.email})}),{data:l,loading:d,run:m}=F(N,{defaultParams:[{page:t(),pageSize:a(),email:e.email}],onSuccess:o=>{const{total:s}=o;i(s)}});return{personData:l,personLoading:d,columns:u,...Vue.toRefs(e),getCallback:n,paginationRef:r}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var u;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":e=>this.email=e,clearable:!0},null)]})]),action:()=>{var e;return Vue.createVNode(naive.NButton,{type:"primary",onClick:(e=this.getCallback)==null?void 0:e.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})}})]}),Vue.createVNode(V,{title:"Mock数据表格",data:(u=this.personData)==null?void 0:u.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":e=>this.columns=e,pagination:this.paginationRef,remote:!0,rowKey:e=>e.id},null)]}})}});export{H as default}; +import{H as c,I as p,J as V}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{a as F}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import{s as E}from"./instance-B7DjWjPE.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const N=u=>E({url:"/api/list",method:"get",params:u}),H=Vue.defineComponent({name:"MockDemo",setup(){const u=[{type:"selection",multiple:!0},{title:"id",key:"id"},{title:"邮箱",key:"email"},{title:"地址",key:"address"},{title:"姓名",key:"name"},{title:"年龄",key:"age"},{title:"创建时间",key:"createDate"},{title:"操作",key:"action",render:o=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.info("查看")}},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:()=>{window.$message.warning("编辑")}},{default:()=>[Vue.createTextVNode("编辑")]}),Vue.createVNode(naive.NButton,{type:"error",text:!0,onClick:()=>{window.$message.error("删除")}},{default:()=>[Vue.createTextVNode("删除")]})]})}],e=Vue.reactive({email:null}),[r,{getPage:t,getPageSize:a,setItemCount:i,getCallback:n,setPage:g,setPageSize:C}]=c(()=>{m({page:t(),pageSize:a(),email:e.email})}),{data:l,loading:d,run:m}=F(N,{defaultParams:[{page:t(),pageSize:a(),email:e.email}],onSuccess:o=>{const{total:s}=o;i(s)}});return{personData:l,personLoading:d,columns:u,...Vue.toRefs(e),getCallback:n,paginationRef:r}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var u;return[Vue.createVNode(naive.NCard,{title:"Mock 数据"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("mock 数据使用。但是,并没有启用生产环境的部署,所以生产环境结果为空。")])]}),Vue.createVNode(naive.NCard,{title:"提示"},{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("RTable 组件有一个比较值得注意的地方就是,该组件会自动的按照数据量计算分页条数。所以你在异步获取数据的时候,一定要手动设置 remote 属性为 true,并且设置 itemCount 或者 pageCount。")])]}),Vue.createVNode(naive.NForm,{labelPlacement:"left"},{default:()=>[Vue.createVNode(p,{bordered:!1,cols:3},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"邮箱"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.email,"onUpdate:value":e=>this.email=e,clearable:!0},null)]})]),action:()=>{var e;return Vue.createVNode(naive.NButton,{type:"primary",onClick:(e=this.getCallback)==null?void 0:e.bind(this)},{default:()=>[Vue.createTextVNode("搜索")]})}})]}),Vue.createVNode(V,{title:"Mock数据表格",data:(u=this.personData)==null?void 0:u.data,loading:this.personLoading,columns:this.columns,"onUpdate:columns":e=>this.columns=e,pagination:this.paginationRef,remote:!0,rowKey:e=>e.id},null)]}})}});export{H as default}; diff --git a/js/index-5Nwsrxy3.js.gz b/js/index-5Nwsrxy3.js.gz new file mode 100644 index 00000000..6dde70cc Binary files /dev/null and b/js/index-5Nwsrxy3.js.gz differ diff --git a/js/index-PkhXpGap.js b/js/index-8MJEg22w.js similarity index 96% rename from js/index-PkhXpGap.js rename to js/index-8MJEg22w.js index 5d81d715..0c8e90b6 100644 --- a/js/index-PkhXpGap.js +++ b/js/index-8MJEg22w.js @@ -1 +1 @@ -import{a as u}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-ClAhwUsY.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./hooks-BFGxA73i.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function D(e,t){return u(()=>o(e),Object.assign({},t))}const p=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),H=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:s}=u(p,{throttleWait:1e3,manual:!0}),{data:m,loading:F,run:N}=D({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:s,demoData:m,demoLoading:F,demoRun:N}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{H as default}; +import{a as u}from"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-B7DjWjPE.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./hooks-BGLytdb9.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function D(e,t){return u(()=>o(e),Object.assign({},t))}const p=e=>o({url:`https://www.tianqiapi.com/api?version=v9&appid=23035354&appsecret=8YvlPNrz&city=${e}`,method:"get"}),n=()=>o({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get"}),H=Vue.defineComponent({name:"RAxios",setup(){const e=Vue.reactive({weatherData:[],inputCityValue:null,throttleDemoInputValue:null,debounceDemoInputValue:null,weatherDemoInputValue:null}),{data:t,loading:a,run:r}=u(n,{throttleWait:1e3,manual:!0}),{data:l,loading:d,run:V}=u(n,{debounceWait:1e3,manual:!0}),{data:i,loading:c,run:s}=u(p,{throttleWait:1e3,manual:!0}),{data:m,loading:F,run:N}=D({url:"https://jsonplaceholder.typicode.com/todos/1",method:"get",cancelConfig:{cancel:!0}},{manual:!0,onError:()=>{window.$message.error("接口出现异常")}});return{...Vue.toRefs(e),throttleDemoValue:t,throttleDemoLoading:a,throttleDemoRun:r,debounceDemoValue:l,debounceDemoLoading:d,debounceDemoRun:V,weatherDemoValue:i,weatherDemoLoading:c,weatherDemoRun:s,demoData:m,demoLoading:F,demoRun:N}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h1",null,[Vue.createTextVNode("请求")]),Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("useRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持配置化请求数据")]),Vue.createVNode("h2",null,[Vue.createTextVNode("useHookPlusRequest")]),Vue.createVNode("p",null,[Vue.createTextVNode("支持包裹一个拥有 promise 状态的异步函数,可以用来包裹一个 axios 请求返回值方法")])]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useRequest 获取")]),Vue.createVNode(naive.NCard,{title:"请求函数"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("1.基于 axios 封装,能够自动取消连续请求,避免重复渲染造成问题")]),Vue.createVNode("h3",null,[Vue.createTextVNode("2.打开控制台 => 网络 => 使用低速3g网络 => 查看控制台被取消的请求")]),Vue.createVNode("h3",null,[Vue.createTextVNode("3.详情请查看文档")])]}),Vue.createVNode(naive.NCard,{title:"useRequest示例(手动触发)"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>{var e;return[Vue.createVNode(naive.NButton,{onClick:this.demoRun.bind(this)},{default:()=>[Vue.createTextVNode("获取数据")]}),Vue.createVNode("h3",null,[Vue.createTextVNode("结果: "),this.demoLoading?"获取中...":(e=this.demoData)==null?void 0:e.title])]}})]}),Vue.createVNode("h1",null,[Vue.createTextVNode("使用 useHookPlusRequest 获取")]),Vue.createVNode(naive.NCard,{title:"节流"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.throttleDemoInputValue,"onUpdate:value":e=>this.throttleDemoInputValue=e,onUpdateValue:()=>{this.throttleDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("不论触发多少次,一秒钟之内仅会触发一次")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.throttleDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"防抖"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.debounceDemoInputValue,"onUpdate:value":e=>this.debounceDemoInputValue=e,onUpdateValue:()=>{this.debounceDemoRun()}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("一秒后才会执行,如果中途重新请求,则会重新计时")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.debounceDemoLoading?"获取中...":"获取成功!!!"])]})]}),Vue.createVNode(naive.NCard,{title:"获取气候"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.weatherDemoInputValue,"onUpdate:value":e=>this.weatherDemoInputValue=e,onUpdateValue:e=>{this.weatherDemoRun(e)}},null),Vue.createVNode("h3",null,[Vue.createTextVNode("该示例演示了如何根据动态值获取数据")]),Vue.createVNode("h3",null,[Vue.createTextVNode("当前状态: "),this.weatherDemoLoading?"获取中...":"获取成功!!!"])]})]})]})]})}});export{H as default}; diff --git a/js/index-8MJEg22w.js.gz b/js/index-8MJEg22w.js.gz new file mode 100644 index 00000000..3b0b7980 Binary files /dev/null and b/js/index-8MJEg22w.js.gz differ diff --git a/js/index-B-JIDxHH.js.gz b/js/index-B-JIDxHH.js.gz deleted file mode 100644 index 64ce46e2..00000000 Binary files a/js/index-B-JIDxHH.js.gz and /dev/null differ diff --git a/js/index-B2ShSf91.js.gz b/js/index-B2ShSf91.js.gz deleted file mode 100644 index 0456f547..00000000 Binary files a/js/index-B2ShSf91.js.gz and /dev/null differ diff --git a/js/index-B47naHKJ.js.gz b/js/index-B47naHKJ.js.gz deleted file mode 100644 index 8389017c..00000000 Binary files a/js/index-B47naHKJ.js.gz and /dev/null differ diff --git a/js/index-B5gAPoLH.js b/js/index-B5gAPoLH.js new file mode 100644 index 00000000..56b837b6 --- /dev/null +++ b/js/index-B5gAPoLH.js @@ -0,0 +1 @@ +import{U as B,V as D,I,J as S,r as K,W as A}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as G}from"./utils-CZebg5KX.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function h(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const ne=Vue.defineComponent({name:"TableView",setup(){const[u,{getTableInstance:l,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,print:N}]=B(),p=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(e,a)=>a.name.includes(e.toString())},{title:"Age",key:"age",sorter:(e,a)=>e.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:e=>e.tags.map(n=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},h(n)?n:{default:()=>[n]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(A,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],m=Vue.ref([...p].map((e,a)=>({...e}))),o=Vue.ref([]),f=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],v=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[k,{checkedRowKeysBind:y,getKeys:C,getRows:t,clearKey:b,clearAll:w,selectKey:g}]=D(o,m,{rowKey:"key",onChange:(e,a,n)=>{}}),T=()=>{for(let e=0;e<10;e++)o.value.push({key:G(),name:e%2===0?"John Brown":"Jim Green",age:e+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},x=e=>{window.$message.info(`${e}`)},F=()=>{const{key:e}=o.value[1];b(e)},E=()=>{o.value.map(a=>a.key).forEach(a=>g(a))},R=()=>{const{key:e}=o.value[1];g(e)};return T(),{...Vue.toRefs(v),tableData:o,actionColumns:m,baseColumns:p,tableMenuOptions:f,menuSelect:x,register:u,getKeys:C,getRows:t,clearKey:b,clearAll:w,checkedRowKeysBind:y,checkedRowKeys:k,clearSecondIndexRow:F,selectAll:E,selectSecondIndexRow:R,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,getTableInstance:l,print:N}},render(){let u;const{register:l,clearAll:r,checkedRowKeysBind:i,clearSecondIndexRow:d,selectAll:c,selectSecondIndexRow:s,clearFilters:V,clearSorter:N,scrollTo:p,filters:m,sort:o,downloadCsv:f,getTableInstance:v,getRows:k,getKeys:y,print:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(naive.NCard,{title:"useTable"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"DataTable Methods",type:"info"},{default:()=>[Vue.createTextVNode("其余的方法查看")," ",Vue.createVNode("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[Vue.createTextVNode("Naive UI")]),Vue.createTextVNode("官网,保持一致。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:N.bind(this)},{default:()=>[Vue.createTextVNode("清除所有排序")]}),Vue.createVNode(naive.NButton,{onClick:V.bind(this)},{default:()=>[Vue.createTextVNode("清除所有过滤")]}),Vue.createVNode(naive.NButton,{onClick:()=>{f()}},{default:()=>[Vue.createTextVNode("下载 CSV")]}),Vue.createVNode(naive.NButton,{onClick:v.bind(this)},{default:()=>[Vue.createTextVNode("getTableInstance")]}),Vue.createVNode(naive.NButton,{onClick:C.bind(this)},{default:()=>[Vue.createTextVNode("打印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("选中所有行")]}),Vue.createVNode(naive.NButton,{onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("取消所有已选中行")]}),Vue.createVNode(naive.NButton,{onClick:s.bind(this)},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{onClick:d.bind(this)},{default:()=>[Vue.createTextVNode("取消第二行选中")]})]}),Vue.createVNode(naive.NFlex,null,h(u=this.checkedRowKeys.map(t=>Vue.createVNode(naive.NTag,{type:"success",key:t},h(t)?t:{default:()=>[t]})))?u:{default:()=>[u]})]})]}),Vue.createVNode(I,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`我是 RCollapseGrid 组件${t?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(S,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:i.bind(this),onRegister:l.bind(this),scrollX:1e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:t=>this.tableLoading=t},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(K,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:t=>t.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{ne as default}; diff --git a/js/index-B5gAPoLH.js.gz b/js/index-B5gAPoLH.js.gz new file mode 100644 index 00000000..ca11838f Binary files /dev/null and b/js/index-B5gAPoLH.js.gz differ diff --git a/js/index-BAoV7gwx.js.gz b/js/index-BAoV7gwx.js.gz deleted file mode 100644 index 8d9a8a7d..00000000 Binary files a/js/index-BAoV7gwx.js.gz and /dev/null differ diff --git a/js/index-Dn72_gS8.js b/js/index-BBITLPPc.js similarity index 99% rename from js/index-Dn72_gS8.js rename to js/index-BBITLPPc.js index 6c37fc4d..22a4ee16 100644 --- a/js/index-Dn72_gS8.js +++ b/js/index-BBITLPPc.js @@ -1 +1 @@ -import{d as _,g as W,M as q,e as v,f as M,h as V,i as A,j as G,k as J,R as P,l as K,m as X,D as Q,s as e1,n as t1,o as l1}from"./hooks-BFGxA73i.js";import{d as u}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as i1,d as o1,t as c1,f as a1}from"./lodash-es@4.17.21-Dos9GOhk.js";import{g as L,c as n1,f as b,n as y,h as B,s as C,b as z,i as s1}from"./utils-B_NGfO2V.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js";import{C as r1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as T}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const d1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=_(),a=Vue.computed(()=>{const n=i.value;return W(n)}),c=()=>{const{message:n,notification:s,dialog:r,loadingBar:d}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=r,window.$message=n,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:l,theme:o?naive.darkTheme:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,q,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var p1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const u1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=_(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=p1,s=document.body,r=L(v.appPiniaSettingStore,"localStorage");if(r){const d=i1(r,"primaryColorOverride.common.primaryColor",c),h=n1(d,.38);s.style.setProperty("--ray-theme-primary-color",d),s.style.setProperty("--ray-theme-primary-fade-color",h||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&b(c,{display:"none"})},a=c=>{const n=document.body,s="ray-template--dark",r="ray-template--light";c?y(n,r):y(n,s),B(n,c?s:r)};o(),i(),Vue.watch(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),j={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},g=()=>({lockPassword:null}),h1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{setLockAppScreen:l}=V(),{updateSettingState:o}=M(),i=Vue.reactive({lockCondition:g()}),a=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=g())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var c;(c=t.value)==null||c.focus()})}),{...Vue.toRefs(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:j,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),f1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{logout:l}=A(),{updateSettingState:o}=M(),{setLockAppScreen:i}=V(),{isTabletOrSmaller:a}=G(),c="HH:mm",n="A",s="YY年MM月DD日",r="ddd",d=Vue.reactive({lockCondition:g(),HH_MM:u().format(c),AM_PM:u().locale("en").format(n),YY_MM_DD:u().format(s),DDD:u().format(r)}),h=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(n)},6e3),f=setInterval(()=>{d.YY_MM_DD=u().format(s),d.DDD=u().format(r)},864e5),m=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},U=()=>{var k;(k=e.value)==null||k.validate(Y=>{Y||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=g())})};return Vue.onBeforeUnmount(()=>{clearInterval(h),clearInterval(f)}),{...Vue.toRefs(d),backToSigning:m,unlockScreen:U,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(J,{avatarSize:52,style:"pointer-events: none;"},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:j},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&c()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[t,Vue.createTextVNode(" "),Vue.createVNode("span",null,[l])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[i])])])])])}}),m1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=V(),{updateSettingState:t}=M(),{getLockScreenSwitch:l}=_();return{lockScreenSwitchRef:Vue.computed({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(P,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(f1,null,null):Vue.createVNode(h1,null,null)])]})}}),v1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=_();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),g1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:K("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var _1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const b1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=_1,t=L(v.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=A();return t!==null?e!==t&&(l.value=!0,C(v.appVersionProvider,e,"localStorage")):C(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(P,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),D=Vue.defineComponent({name:"App",render(){return Vue.createVNode(d1,null,{default:()=>[Vue.createVNode(b1,null,null),Vue.createVNode(m1,null,null),Vue.createVNode(u1,null,null),Vue.createVNode(v1,null,null),Vue.createVNode(g1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>X})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const y1=()=>{u.locale(Q)},Z=(e,t)=>{const l=new r1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},M1=()=>({mounted:(e,{value:t})=>{Z(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),Z(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),V1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"})),w1=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=o1(i,c,Object.assign({},n)),t=T(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},k1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),S=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),B(e,l)):(e.removeAttribute("disabled"),y(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},C1=()=>({mounted:(e,{value:t})=>{S(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&S(e,t)}}),z1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),H=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?b(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:z(i)}):b(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:z(i)})},Z1=()=>({mounted:(e,{value:t})=>{H(e,t)},updated:(e,{value:t})=>{H(e,t)}}),S1=Object.freeze(Object.defineProperty({__proto__:null,default:Z1},Symbol.toStringTag,{value:"Module"})),p={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},H1="v-ripple__container";function x(e,t){e.style.transform=t}function R(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),w.show(e,l,t))}function O(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),w.hide(t))}const x1=(e,t,l={})=>{var f;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,n=.3;(f=t.__d_ripple__)!=null&&f.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-c*2)/2}px`,r=`${(t.clientHeight-c*2)/2}px`,d=l.center?s:`${i-c}px`,h=l.center?r:`${a-c}px`;return{radius:c,scale:n,x:d,y:h,centerX:s,centerY:r}},w={show(e,t,l={}){var m;if(!((m=t==null?void 0:t.__d_ripple__)!=null&&m.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=H1,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:n,y:s,centerX:r,centerY:d}=x1(e,t,l),h=`${a*2}px`;i.className=p.vRippleAnimation,i.style.width=h,i.style.height=h,t.appendChild(o);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationVisible),x(i,`translate(${n}, ${s}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationIn),x(i,`translate(${r}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(p.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(p.vRippleAnimationIn),l.classList.add(p.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(p.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function E(e){return typeof e>"u"||!!e}function $(e){e.removeEventListener("pointerdown",R),e.removeEventListener("pointerup",O)}function N(e,t,l){const{value:o,modifiers:i}=t,a=E(o);a||w.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,s1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",R),e.addEventListener("pointerup",O)):!a&&l&&$(e)}const N1=()=>({mounted:(e,t)=>{N(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,$(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=E(t.oldValue);N(e,t,l)}}),A1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"})),P1=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=c1(o,a,Object.assign({},c)),T(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},L1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),B1=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),T1=e=>{const l=B1(Object.assign({"/src/directives/modules/copy/index.ts":V1,"/src/directives/modules/debounce/index.ts":k1,"/src/directives/modules/disabled/index.ts":z1,"/src/directives/modules/ellipsis/index.ts":S1,"/src/directives/modules/ripple/index.ts":A1,"/src/directives/modules/throttle/index.ts":L1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;a1(l,(a,c)=>{var s;const n=(s=c.match(o))==null?void 0:s[0];typeof n=="string"&&i.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},F=async()=>{},I=async e=>{e1(e),await t1(e),l1(e),y1(),T1(e)},j1=async()=>{const e=Vue.createApp(D);await I(e),e.mount("#app"),await F()},D1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(D),await I(e),e.mount("#app"),await F()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?D1():j1(); +import{d as _,g as W,M as q,e as v,f as M,h as V,i as A,j as G,k as J,R as P,l as K,m as X,D as Q,s as e1,n as t1,o as l1}from"./hooks-BGLytdb9.js";import{d as u}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{g as i1,d as o1,t as c1,f as a1}from"./lodash-es@4.17.21-Dos9GOhk.js";import{g as L,c as n1,f as b,n as y,h as B,s as C,b as z,i as s1}from"./utils-CZebg5KX.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js";import{C as r1}from"./clipboard@2.0.11-DheAgBlr.js";import{u as T}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function l(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(i){if(i.ep)return;i.ep=!0;const a=l(i);fetch(i.href,a)}})();const d1=Vue.defineComponent({name:"GlobalProvider",setup(e,{expose:t}){const{getPrimaryColorOverride:l,getAppTheme:o,getLocaleLanguage:i}=_(),a=Vue.computed(()=>{const n=i.value;return W(n)}),c=()=>{const{message:n,notification:s,dialog:r,loadingBar:d}=naive.createDiscreteApi(["message","dialog","notification","loadingBar"],{configProviderProps:Vue.computed(()=>({theme:o.value?naive.darkTheme:null}))});window.$dialog=r,window.$message=n,window.$loadingBar=d,window.$notification=s};return t(),{getPrimaryColorOverride:l,localePackage:a,getAppTheme:o,discreteApi:c}},render(){const{$slots:{default:e},discreteApi:t}=this,{getPrimaryColorOverride:l,getAppTheme:o,localePackage:i}=this;return Vue.createVNode(naive.NConfigProvider,{themeOverrides:l,theme:o?naive.darkTheme:null,locale:i.locale,dateLocale:i.dateLocal},{default:()=>[Vue.createVNode(naive.NLoadingBarProvider,null,{default:()=>[Vue.createVNode(naive.NMessageProvider,q,{default:()=>[Vue.createVNode(naive.NDialogProvider,null,{default:()=>[Vue.createVNode(naive.NModalProvider,null,{default:()=>[Vue.createVNode(naive.NNotificationProvider,null,{default:()=>[Vue.createVNode(naive.NGlobalStyle,null,null),e==null?void 0:e(),t()]})]})]})]})]})]})}});var p1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const u1=Vue.defineComponent({name:"AppStyleProvider",setup(e,{expose:t}){const{getAppTheme:l}=_(),o=()=>{const{appPrimaryColor:{primaryColor:c,primaryFadeColor:n}}=p1,s=document.body,r=L(v.appPiniaSettingStore,"localStorage");if(r){const d=i1(r,"primaryColorOverride.common.primaryColor",c),h=n1(d,.38);s.style.setProperty("--ray-theme-primary-color",d),s.style.setProperty("--ray-theme-primary-fade-color",h||n)}},i=()=>{const c=document.getElementById("pre-loading-animation");c&&b(c,{display:"none"})},a=c=>{const n=document.body,s="ray-template--dark",r="ray-template--light";c?y(n,r):y(n,s),B(n,c?s:r)};o(),i(),Vue.watch(()=>l.value,c=>{a(c)},{immediate:!0}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),j={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},g=()=>({lockPassword:null}),h1=Vue.defineComponent({name:"LockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{setLockAppScreen:l}=V(),{updateSettingState:o}=M(),i=Vue.reactive({lockCondition:g()}),a=()=>{var c;(c=e.value)==null||c.validate(n=>{n||(l(!0),o("lockScreenSwitch",!0),i.lockCondition=g())})};return Vue.onMounted(()=>{Vue.nextTick(()=>{var c;(c=t.value)==null||c.focus()})}),{...Vue.toRefs(i),lockScreen:a,formInstRef:e,inputInstRef:t}},render(){return Vue.createVNode("div",{class:"app-lock-screen__input"},[Vue.createVNode(naive.NForm,{ref:"formInstRef",model:this.lockCondition,rules:j,labelPlacement:"left"},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:"password",placeholder:"请输入锁屏密码",clearable:!0,showPasswordOn:"click",minlength:6,maxlength:12,onKeydown:e=>{e.code==="Enter"&&this.lockScreen()}},null)]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:this.lockScreen.bind(this)},{default:()=>[Vue.createTextVNode("锁屏")]})]})])}}),f1=Vue.defineComponent({name:"UnlockScreen",setup(){const e=Vue.ref(null),t=Vue.ref(null),{logout:l}=A(),{updateSettingState:o}=M(),{setLockAppScreen:i}=V(),{isTabletOrSmaller:a}=G(),c="HH:mm",n="A",s="YY年MM月DD日",r="ddd",d=Vue.reactive({lockCondition:g(),HH_MM:u().format(c),AM_PM:u().locale("en").format(n),YY_MM_DD:u().format(s),DDD:u().format(r)}),h=setInterval(()=>{d.HH_MM=u().format(c),d.AM_PM=u().format(n)},6e3),f=setInterval(()=>{d.YY_MM_DD=u().format(s),d.DDD=u().format(r)},864e5),m=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{l(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},U=()=>{var k;(k=e.value)==null||k.validate(Y=>{Y||(i(!1),o("lockScreenSwitch",!1),d.lockCondition=g())})};return Vue.onBeforeUnmount(()=>{clearInterval(h),clearInterval(f)}),{...Vue.toRefs(d),backToSigning:m,unlockScreen:U,formRef:e,inputInstRef:t,isTabletOrSmaller:a}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:l,YY_MM_DD:o,DDD:i}=this,a=t.split(":"),{unlockScreen:c,backToSigning:n}=this;return Vue.createVNode("div",{class:"app-lock-screen__unlock"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content"},[Vue.createVNode("div",{class:"app-lock-screen__unlock__content-wrapper"},[Vue.createVNode("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[Vue.createVNode("div",{class:"left"},[a[0]]),Vue.createVNode("div",{class:"right"},[a[1]])])]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-avatar"},[Vue.createVNode(J,{avatarSize:52,style:"pointer-events: none;"},null)]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-input"},[Vue.createVNode(naive.NForm,{ref:"formRef",model:this.lockCondition,rules:j},{default:()=>[Vue.createVNode(naive.NFormItem,{path:"lockPassword"},{default:()=>[Vue.createVNode(naive.NInput,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":s=>this.lockCondition.lockPassword=s,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:s=>{s.code==="Enter"&&c()}},null)]}),Vue.createVNode(naive.NFlex,{justify:"space-between"},{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:n.bind(this)},{default:()=>[Vue.createTextVNode("返回登陆")]}),Vue.createVNode(naive.NButton,{type:"primary",text:!0,onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("进入系统")]})]})]})]),Vue.createVNode("div",{class:"app-lock-screen__unlock__content-date"},[Vue.createVNode("div",{class:"current-date"},[t,Vue.createTextVNode(" "),Vue.createVNode("span",null,[l])]),Vue.createVNode("div",{class:"current-year"},[o,Vue.createTextVNode(" "),Vue.createVNode("span",null,[i])])])])])}}),m1=Vue.defineComponent({name:"AppLockScreen",setup(){const{getLockAppScreen:e}=V(),{updateSettingState:t}=M(),{getLockScreenSwitch:l}=_();return{lockScreenSwitchRef:Vue.computed({get:()=>l.value,set:i=>{t("lockScreenSwitch",i)}}),getLockAppScreen:e}},render(){const{getLockAppScreen:e}=this;return Vue.createVNode(P,{show:this.lockScreenSwitchRef,"onUpdate:show":t=>this.lockScreenSwitchRef=t,transformOrigin:"center",autoFocus:!1,maskClosable:!1,closeOnEsc:!1,preset:e()?void 0:"dialog",title:"锁定屏幕"},{default:()=>[Vue.createVNode("div",{class:"app-lock-screen__content"},[e()?Vue.createVNode(f1,null,null):Vue.createVNode(h1,null,null)])]})}}),v1=Vue.defineComponent({name:"AppWatermarkProvider",setup(){const{getWatermarkSwitch:e,getWatermarkConfig:t}=_();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){const{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?Vue.createVNode(naive.NWatermark,Vue.mergeProps({cross:!0,fullscreen:!0},e),null):null}}),g1=Vue.defineComponent({name:"GlobalSpin",props:{...naive.spinProps},setup(){const e={opacitySpinning:"0.3"};return{spinValue:K("globalSpinning"),overrides:e}},render(){return Vue.createVNode(naive.NSpin,Vue.mergeProps(this.$props,{show:this.spinValue,themeOverrides:this.overrides}),{...this.$slots})}});var _1={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const b1=Vue.defineComponent({name:"AppVersionProvider",setup(){const{pkg:{version:e}}=_1,t=L(v.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=A();return t!==null?e!==t&&(l.value=!0,C(v.appVersionProvider,e,"localStorage")):C(v.appVersionProvider,e,"localStorage"),{modalShow:l,logout:o}},render(){const{logout:e}=this;return Vue.createVNode("div",{class:"app-style-provider"},[Vue.createVNode(P,{show:this.modalShow,"onUpdate:show":t=>this.modalShow=t,closeOnEsc:!1,maskClosable:!1,preset:"dialog",closable:!1,title:"发现新版本",content:"当前版本已更新,点击确认加载新版本~",zIndex:999999999,dad:!0,positiveText:"确认",negativeText:"取消",onPositiveClick:e,onNegativeClick:()=>{this.modalShow=!1}},null)])}}),D=Vue.defineComponent({name:"App",render(){return Vue.createVNode(d1,null,{default:()=>[Vue.createVNode(b1,null,null),Vue.createVNode(m1,null,null),Vue.createVNode(u1,null,null),Vue.createVNode(v1,null,null),Vue.createVNode(g1,null,{default:()=>Vue.createVNode(VueRouter.RouterView,null,null),description:()=>X})]})}});if(typeof window<"u"){let e=function(){var t=document.body,l=document.getElementById("__svg__icons__dom__");l||(l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.position="absolute",l.style.width="0",l.style.height="0",l.id="__svg__icons__dom__",l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),l.innerHTML='',t.insertBefore(l,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}const y1=()=>{u.locale(Q)},Z=(e,t)=>{const l=new r1(e,{text:()=>t});e.$$clipboard=l,e.$$clipboard.on("success",()=>{window.$message.success("复制成功")}),e.$$clipboard.on("error",()=>{window.$message.error("复制失败")})},M1=()=>({mounted:(e,{value:t})=>{Z(e,t)},updated:(e,{value:t,oldValue:l})=>{var o;t!==l&&((o=e.$$clipboard)==null||o.destroy(),Z(e,t))},beforeUnmount:e=>{var t;e.$$clipboard&&((t=e.$$clipboard)==null||t.destroy(),e.$$clipboard=null)}}),V1=Object.freeze(Object.defineProperty({__proto__:null,default:M1},Symbol.toStringTag,{value:"Module"})),w1=()=>{let e,t;return{beforeMount:(l,{value:o})=>{const{func:i,trigger:a="click",wait:c=500,options:n}=o;if(typeof i!="function")throw new TypeError("debounce directive value must be a function");e=o1(i,c,Object.assign({},n)),t=T(l,a,e)},beforeUnmount:(l,{value:o})=>{e&&(e.cancel(),t==null||t()),e=null}}},k1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),S=(e,t)=>{if(e){const l="ray-template__directive--disabled";t?(e.setAttribute("disabled","disabled"),B(e,l)):(e.removeAttribute("disabled"),y(e,l)),e==null||e.setAttribute("disabled",t?"disabled":"")}},C1=()=>({mounted:(e,{value:t})=>{S(e,t)},updated:(e,{value:t,oldValue:l})=>{t!==l&&S(e,t)}}),z1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),H=(e,t)=>{const{line:l=1,type:o="block",width:i,popoverText:a}=t;if(i==null){console.error(`[v-ellipsis]: Expected width is string or number, but got typeof ${i}!`);return}a&&e.textContent&&e.setAttribute("title",e.textContent),o==="line"?b(e,{display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":l,overflow:"hidden",width:z(i)}):b(e,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:z(i)})},Z1=()=>({mounted:(e,{value:t})=>{H(e,t)},updated:(e,{value:t})=>{H(e,t)}}),S1=Object.freeze(Object.defineProperty({__proto__:null,default:Z1},Symbol.toStringTag,{value:"Module"})),p={vRippleAnimationEnter:"v-ripple__animation--enter",vRippleAnimationVisible:"v-ripple__animation--visible",vRippleAnimationIn:"v-ripple__animation--in",vRippleAnimationOut:"v-ripple__animation--out",vRippleAnimation:"v-ripple__animation"},H1="v-ripple__container";function x(e,t){e.style.transform=t}function R(e){const t={},l=e.currentTarget;!(l!=null&&l.__d_ripple__)||l.__d_ripple__.touched||(t.center=l.__d_ripple__.centered,l.__d_ripple__.class&&(t.class=l.__d_ripple__.class),w.show(e,l,t))}function O(e){const t=e.currentTarget;t!=null&&t.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),w.hide(t))}const x1=(e,t,l={})=>{var f;const o=t.getBoundingClientRect(),i=e.clientX-o.left,a=e.clientY-o.top;let c=0,n=.3;(f=t.__d_ripple__)!=null&&f.circle?(n=.15,c=t.clientWidth/2,c=l.center?c:c+Math.sqrt((i-c)**2+(a-c)**2)/4):c=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-c*2)/2}px`,r=`${(t.clientHeight-c*2)/2}px`,d=l.center?s:`${i-c}px`,h=l.center?r:`${a-c}px`;return{radius:c,scale:n,x:d,y:h,centerX:s,centerY:r}},w={show(e,t,l={}){var m;if(!((m=t==null?void 0:t.__d_ripple__)!=null&&m.enabled))return;const o=document.createElement("span"),i=document.createElement("span");o.appendChild(i),o.className=H1,l.class&&(o.className+=` ${l.class}`);const{radius:a,scale:c,x:n,y:s,centerX:r,centerY:d}=x1(e,t,l),h=`${a*2}px`;i.className=p.vRippleAnimation,i.style.width=h,i.style.height=h,t.appendChild(o);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationVisible),x(i,`translate(${n}, ${s}) scale3d(${c},${c},${c})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(p.vRippleAnimationEnter),i.classList.add(p.vRippleAnimationIn),x(i,`translate(${r}, ${d}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e.__d_ripple__)!=null&&a.enabled))return;const t=e.getElementsByClassName(p.vRippleAnimation);if(t.length===0)return;const l=t[t.length-1];if(l.dataset.isHiding)return;l.dataset.isHiding="true";const o=performance.now()-Number(l.dataset.activated),i=Math.max(250-o,0);setTimeout(()=>{l.classList.remove(p.vRippleAnimationIn),l.classList.add(p.vRippleAnimationOut),setTimeout(()=>{var n;e.getElementsByClassName(p.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((n=l.parentNode)==null?void 0:n.parentNode)===e&&e.removeChild(l.parentNode)},300)},i)}};function E(e){return typeof e>"u"||!!e}function $(e){e.removeEventListener("pointerdown",R),e.removeEventListener("pointerup",O)}function N(e,t,l){const{value:o,modifiers:i}=t,a=E(o);a||w.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,s1(o,"Object")&&o.class&&(e.__d_ripple__.class=o.class),a&&!l?(e.addEventListener("pointerdown",R),e.addEventListener("pointerup",O)):!a&&l&&$(e)}const N1=()=>({mounted:(e,t)=>{N(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,$(e)},updated:(e,t)=>{if(t.value===t.oldValue)return;const l=E(t.oldValue);N(e,t,l)}}),A1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"})),P1=()=>{let e;return{beforeMount:(t,{value:l})=>{const{func:o,trigger:i="click",wait:a=500,options:c}=l;if(typeof o!="function")throw new TypeError("throttle directive value must be a function");e=c1(o,a,Object.assign({},c)),T(t,i,e)},beforeUnmount:()=>{e&&e.cancel(),e=null}}},L1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),B1=e=>Object.keys(e).reduce((l,o)=>{var a;const i=(a=e[o])==null?void 0:a.default;if(typeof i=="function")return l[o]=i,l;throw new TypeError(`directiveModules: ${o} is not function`)},{}),T1=e=>{const l=B1(Object.assign({"/src/directives/modules/copy/index.ts":V1,"/src/directives/modules/debounce/index.ts":k1,"/src/directives/modules/disabled/index.ts":z1,"/src/directives/modules/ellipsis/index.ts":S1,"/src/directives/modules/ripple/index.ts":A1,"/src/directives/modules/throttle/index.ts":L1})),o=new RegExp("(?<=modules\\/).*(?=\\/index\\.ts)"),i=/^([^-]+-)*[^-]+$/;a1(l,(a,c)=>{var s;const n=(s=c.match(o))==null?void 0:s[0];typeof n=="string"&&i.test(n)?e.directive(n,a()):console.error(`[setupDirectives] ${n} is not a valid directive name`)})},F=async()=>{},I=async e=>{e1(e),await t1(e),l1(e),y1(),T1(e)},j1=async()=>{const e=Vue.createApp(D);await I(e),e.mount("#app"),await F()},D1=async()=>{let e;window.__WUJIE_MOUNT=async()=>{e=Vue.createApp(D),await I(e),e.mount("#app"),await F()},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?D1():j1(); diff --git a/js/index-BBITLPPc.js.gz b/js/index-BBITLPPc.js.gz new file mode 100644 index 00000000..590579c6 Binary files /dev/null and b/js/index-BBITLPPc.js.gz differ diff --git a/js/index-BCgERcJv.js.gz b/js/index-BCgERcJv.js.gz deleted file mode 100644 index 4a105639..00000000 Binary files a/js/index-BCgERcJv.js.gz and /dev/null differ diff --git a/js/index-BGhimq3o.js b/js/index-BGhimq3o.js deleted file mode 100644 index f7184bb8..00000000 --- a/js/index-BGhimq3o.js +++ /dev/null @@ -1 +0,0 @@ -import{P as B,Q as D,G as I,H as S,r as K,U as G}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{u as A}from"./utils-B_NGfO2V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function h(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const ne=Vue.defineComponent({name:"TableView",setup(){const[u,{getTableInstance:l,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,print:N}]=B(),p=[{type:"selection"},{title:"Name",key:"name",filterOptions:[{label:"John Brown",value:"John Brown"},{label:"Jim Green",value:"Jim Green"}],filter:(e,a)=>a.name.includes(e.toString())},{title:"Age",key:"age",sorter:(e,a)=>e.age-a.age},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:e=>e.tags.map(n=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},h(n)?n:{default:()=>[n]}))},{title:"Remark",key:"remark"},{title:"Action",key:"actions",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{size:"tiny"},{default:()=>[Vue.createTextVNode("查看")]}),Vue.createVNode(G,{options:[{label:"编辑",key:"edit"},{label:"新增",key:"add"}],onSelect:a=>{window.$message.info(`当前选择: ${a}`)}},null)]})}],m=Vue.ref([...p].map((e,a)=>({...e}))),o=Vue.ref([]),f=[{label:"编辑",key:"edit"},{label:()=>Vue.createVNode("span",{style:"color: red;"},[Vue.createTextVNode("删除")]),key:"delete"}],v=Vue.reactive({gridItemCount:4,gridCollapsedRows:1,tableLoading:!1}),[k,{checkedRowKeysBind:y,getKeys:C,getRows:t,clearKey:b,clearAll:w,selectKey:g}]=D(o,m,{rowKey:"key",onChange:(e,a,n)=>{}}),T=()=>{for(let e=0;e<10;e++)o.value.push({key:A(),name:e%2===0?"John Brown":"Jim Green",age:e+20,address:"New York No. 1 Lake Park",tags:["nice","developer"],remark:"我是一条很长很长的备注"})},x=e=>{window.$message.info(`${e}`)},F=()=>{const{key:e}=o.value[1];b(e)},E=()=>{o.value.map(a=>a.key).forEach(a=>g(a))},R=()=>{const{key:e}=o.value[1];g(e)};return T(),{...Vue.toRefs(v),tableData:o,actionColumns:m,baseColumns:p,tableMenuOptions:f,menuSelect:x,register:u,getKeys:C,getRows:t,clearKey:b,clearAll:w,checkedRowKeysBind:y,checkedRowKeys:k,clearSecondIndexRow:F,selectAll:E,selectSecondIndexRow:R,clearFilters:r,clearSorter:i,scrollTo:d,filters:c,sort:s,downloadCsv:V,getTableInstance:l,print:N}},render(){let u;const{register:l,clearAll:r,checkedRowKeysBind:i,clearSecondIndexRow:d,selectAll:c,selectSecondIndexRow:s,clearFilters:V,clearSorter:N,scrollTo:p,filters:m,sort:o,downloadCsv:f,getTableInstance:v,getRows:k,getKeys:y,print:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"RTable"},{default:()=>[Vue.createTextVNode("基于 NDataTable 封装,继承该组件所有 props 属性。查看 RTable props 文件即可查看该组件拓展项")]}),Vue.createVNode(naive.NCard,{title:"useTable"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"DataTable Methods",type:"info"},{default:()=>[Vue.createTextVNode("其余的方法查看")," ",Vue.createVNode("a",{style:"color: transparent",href:"https://www.naiveui.com/zh-CN/dark/components/data-table#DataTable-Methods"},[Vue.createTextVNode("Naive UI")]),Vue.createTextVNode("官网,保持一致。")]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:N.bind(this)},{default:()=>[Vue.createTextVNode("清除所有排序")]}),Vue.createVNode(naive.NButton,{onClick:V.bind(this)},{default:()=>[Vue.createTextVNode("清除所有过滤")]}),Vue.createVNode(naive.NButton,{onClick:()=>{f()}},{default:()=>[Vue.createTextVNode("下载 CSV")]}),Vue.createVNode(naive.NButton,{onClick:v.bind(this)},{default:()=>[Vue.createTextVNode("getTableInstance")]}),Vue.createVNode(naive.NButton,{onClick:C.bind(this)},{default:()=>[Vue.createTextVNode("打印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:c.bind(this)},{default:()=>[Vue.createTextVNode("选中所有行")]}),Vue.createVNode(naive.NButton,{onClick:r.bind(this)},{default:()=>[Vue.createTextVNode("取消所有已选中行")]}),Vue.createVNode(naive.NButton,{onClick:s.bind(this)},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{onClick:d.bind(this)},{default:()=>[Vue.createTextVNode("取消第二行选中")]})]}),Vue.createVNode(naive.NFlex,null,h(u=this.checkedRowKeys.map(t=>Vue.createVNode(naive.NTag,{type:"success",key:t},h(t)?t:{default:()=>[t]})))?u:{default:()=>[u]})]})]}),Vue.createVNode(I,{bordered:!1,collapsedRows:this.gridCollapsedRows,cols:this.gridItemCount,onUpdateValue:t=>window.$message.info(`我是 RCollapseGrid 组件${t?"收起":"展开"}的回调函数`)},{action:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NButton,{type:"primary"},{default:()=>[Vue.createTextVNode("搜索")]}),Vue.createVNode(naive.NButton,null,{default:()=>[Vue.createTextVNode("重置")]})]),default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NSelect,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",clearable:!0},null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]}),Vue.createVNode(naive.NGridItem,null,{default:()=>[Vue.createVNode(naive.NInput,null,null)]})])}),Vue.createVNode(S,{checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:i.bind(this),onRegister:l.bind(this),scrollX:1e3,title:Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode("span",null,[Vue.createTextVNode("标题插槽:")]),Vue.createVNode(naive.NSwitch,{onUpdateValue:t=>this.tableLoading=t},null)]}),data:this.tableData,columns:this.actionColumns,"onUpdate:columns":t=>this.actionColumns=t,pagination:{pageSize:10},contextMenuOptions:this.tableMenuOptions,loading:this.tableLoading,onContextMenuClick:this.menuSelect.bind(this),toolOptions:[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(K,{name:"search",size:"18",cursor:"pointer",onClick:()=>{window.$message.info("点击了搜索按钮")}},null),default:()=>"我是自定义工具栏示例"})],rowKey:t=>t.key,striped:!0},{tableFooter:()=>"表格的底部内容区域插槽,有时候你可能会用上",tableAction:()=>"表格的操作区域内容插槽,有时候可能会用上"})]})}});export{ne as default}; diff --git a/js/index-BGhimq3o.js.gz b/js/index-BGhimq3o.js.gz deleted file mode 100644 index 52cbe910..00000000 Binary files a/js/index-BGhimq3o.js.gz and /dev/null differ diff --git a/js/index-DQQD1Hi-.js b/js/index-BKB69qG7.js similarity index 97% rename from js/index-DQQD1Hi-.js rename to js/index-BKB69qG7.js index c40a2e63..a6effa9f 100644 --- a/js/index-DQQD1Hi-.js +++ b/js/index-BKB69qG7.js @@ -1 +1 @@ -import{N as r,R as a}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const g=Vue.defineComponent({name:"ModalDemo",setup(){const t=Vue.reactive({modal1:!1,modal2:!1,modal3:!1}),{create:e}=r(),u=()=>{e({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},o=()=>{e({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...Vue.toRefs(t),createCardModal:u,createDialogModal:o}},render(){const{createCardModal:t,createDialogModal:e}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(a,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(a,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(a,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),Vue.createVNode(naive.NCard,{title:"重写 useModal"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("创建卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("创建对话框模态框")]})]})]})}});export{g as default}; +import{P as r,R as a}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const g=Vue.defineComponent({name:"ModalDemo",setup(){const t=Vue.reactive({modal1:!1,modal2:!1,modal3:!1}),{create:e}=r(),u=()=>{e({title:"卡片模态框",dad:!0,preset:"card",content:"我可以被拖拽的全屏card模态框",fullscreen:!0})},o=()=>{e({title:"模态框",content:"内容",preset:"dialog",dad:!0})};return{...Vue.toRefs(t),createCardModal:u,createDialogModal:o}},render(){const{createCardModal:t,createDialogModal:e}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"props"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("memoryPosition: 是否记住上一次被拖拽的位置,如果设置为 true,那么下一次打开的时候会自动定位到上一次的位置。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("fullscreen: 全屏模态框。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("dad: 启用拖拽,当配置为 false 时,会禁用拖拽效果。")])]})]}),Vue.createVNode(a,{show:this.modal1,"onUpdate:show":u=>this.modal1=u,title:"全屏模态框",fullscreen:!0,preset:"card"},{default:()=>[Vue.createTextVNode("我是全屏模态框,并且会自动启用滚动条。")]}),Vue.createVNode(a,{show:this.modal2,"onUpdate:show":u=>this.modal2=u,preset:"card",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(a,{show:this.modal3,"onUpdate:show":u=>this.modal3=u,preset:"dialog",title:"可拖拽卡片模态框",dad:!0},{default:()=>[Vue.createVNode("p",null,[Vue.createTextVNode("我可以被拖拽")])]}),Vue.createVNode(naive.NCard,{title:"可拖拽模态框"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>this.modal2=!0},{default:()=>[Vue.createTextVNode("卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:()=>this.modal3=!0},{default:()=>[Vue.createTextVNode("对话框模态框")]})]}),Vue.createVNode(naive.NCard,{title:"全屏模态框"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("全屏模态框需要同时设置:fullscreen 为 true,并且 preset 为 card 时才会生效。")]),Vue.createVNode(naive.NButton,{onClick:()=>this.modal1=!0},{default:()=>[Vue.createTextVNode("打开")]})]})]}),Vue.createVNode(naive.NCard,{title:"手动设置宽度"},{default:()=>[Vue.createVNode("h4",null,[Vue.createTextVNode("width(--r-modal-width): 当 preset 不为 dialog 或者 card 的时候,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("dialogWidth(--r-modal-dialog-width): 当 preset 为 dialog,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("cardWidth(--r-modal-card-width): 当 preset 为 card,你可能用得上。")]),Vue.createVNode("h4",null,[Vue.createTextVNode("所有的宽度配置属性都会注入一个对应的 `css variable`,有时候会用上。")])]}),Vue.createVNode(naive.NCard,{title:"重写 useModal"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("创建卡片模态框")]}),Vue.createVNode(naive.NButton,{onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("创建对话框模态框")]})]})]})}});export{g as default}; diff --git a/js/index-BKB69qG7.js.gz b/js/index-BKB69qG7.js.gz new file mode 100644 index 00000000..fee25772 Binary files /dev/null and b/js/index-BKB69qG7.js.gz differ diff --git a/js/index-CptmWXVL.js b/js/index-BR70wTwp.js similarity index 96% rename from js/index-CptmWXVL.js rename to js/index-BR70wTwp.js index d47a1bba..36bc3e10 100644 --- a/js/index-CptmWXVL.js +++ b/js/index-BR70wTwp.js @@ -1 +1 @@ -import"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{y as s,z as p,A as d,B as l,C as c,D as V}from"./utils-B_NGfO2V.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const k=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(a,o)=>{const n=e[o],r=n(...a);return"结果: "+s(r)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{k as default}; +import"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{y as s,z as p,A as d,B as l,C as c,D as V}from"./utils-CZebg5KX.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const k=Vue.defineComponent({name:"CalculatePrecision",setup(){const t=Vue.reactive({addOptions:["1","0.2","0.1","1.1"],subtractOptions:["1","0.2","0.1","1.1"],multiplyOptions:["1","0.2","0.1","1.1"],divideOptions:["1","0.2","0.1","1.1"],distributeValue:12,distributeOutputValue:[],distributeLength:3}),e={addOptions:d,subtractOptions:l,multiplyOptions:c,divideOptions:V},i=(a,o)=>{const n=e[o],r=n(...a);return"结果: "+s(r)},u=()=>{Vue.nextTick().then(()=>{t.distributeOutputValue=p(t.distributeValue,t.distributeLength)})};return u(),{...Vue.toRefs(t),copilotFunc:i,updateDistributeValue:u}},render(){return Vue.createVNode(naive.NLayout,null,{default:()=>[Vue.createVNode("h2",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("计算方法,默认都保留八位小数与四舍五入,可以根据 format 方法自行转换")]),Vue.createVNode("h3",{style:"margin: 0 0 20px 0"},[Vue.createTextVNode("示例方法都基于 currency.js 封装,利用其精度处理能力封装了常用的一些计算方法,解决精度问题。如果需要其他的方法请阅读官方文档 https://currency.js.org/#subtract")]),Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"加法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.addOptions,"onUpdate:value":t=>this.addOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"addOptions")}},null),footer:()=>this.copilotFunc(this.addOptions,"addOptions")}),Vue.createVNode(naive.NCard,{title:"减法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.subtractOptions,"onUpdate:value":t=>this.subtractOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"subtractOptions")}},null),footer:()=>this.copilotFunc(this.subtractOptions,"subtractOptions")}),Vue.createVNode(naive.NCard,{title:"乘法"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.multiplyOptions,"onUpdate:value":t=>this.multiplyOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"multiplyOptions")}},null),footer:()=>this.copilotFunc(this.multiplyOptions,"multiplyOptions")}),Vue.createVNode(naive.NCard,{title:"除法(非取模)"},{default:()=>Vue.createVNode(naive.NDynamicTags,{value:this.divideOptions,"onUpdate:value":t=>this.divideOptions=t,onUpdateValue:t=>{this.copilotFunc(t,"divideOptions")}},null),footer:()=>this.copilotFunc(this.divideOptions,"divideOptions")}),Vue.createVNode(naive.NCard,{title:"平分一个值"},{default:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.distributeValue,"onUpdate:value":t=>this.distributeValue=t,onUpdateValue:()=>{this.updateDistributeValue()}},null),Vue.createVNode(naive.NInputNumber,{value:this.distributeLength,"onUpdate:value":t=>this.distributeLength=t,onUpdateValue:()=>{this.updateDistributeValue()}},null)]}),footer:()=>"结果: "+this.distributeOutputValue.join(", ")})]})]})}});export{k as default}; diff --git a/js/index-BR70wTwp.js.gz b/js/index-BR70wTwp.js.gz new file mode 100644 index 00000000..36c28eee Binary files /dev/null and b/js/index-BR70wTwp.js.gz differ diff --git a/js/index-ZQp8r9U7.js b/js/index-BYZzQUjS.js similarity index 81% rename from js/index-ZQp8r9U7.js rename to js/index-BYZzQUjS.js index a5ee8019..0b881287 100644 --- a/js/index-ZQp8r9U7.js +++ b/js/index-BYZzQUjS.js @@ -1 +1 @@ -import{r as e,_ as o}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function s(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const b=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const i=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(t=>{const r=t.match(/\/(\w+)\.svg/)[1];r&&i.value.push(r)}),{icons:i}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return Vue.createVNode(naive.NFlex,null,s(i=this.icons.map(_=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:_},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(e,{name:_,size:"56",cursor:"pointer"},null),default:()=>_})]),[[Vue.resolveDirective("copy"),``]])))?i:{default:()=>[i]})}})}});export{b as default}; +import{r as s,_ as o}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function c(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const w=Vue.defineComponent({name:"PreviewSVGIcons",setup(){const i=Vue.ref([]);return Object.keys(Object.assign({"/src/icons/action/draggable.svg":()=>o(()=>import("./draggable-D6qza0mp.js"),[]),"/src/icons/action/fullscreen.svg":()=>o(()=>import("./fullscreen-Cjm0bPGx.js"),[]),"/src/icons/action/fullscreen_fold.svg":()=>o(()=>import("./fullscreen_fold-BUWP5JFn.js"),[]),"/src/icons/action/out.svg":()=>o(()=>import("./out-CMQCc625.js"),[]),"/src/icons/action/reload.svg":()=>o(()=>import("./reload-BCsJCBo-.js"),[]),"/src/icons/action/search.svg":()=>o(()=>import("./search-DPR73sQp.js"),[]),"/src/icons/action/setting.svg":()=>o(()=>import("./setting-CqYm8XBn.js"),[]),"/src/icons/directional/adjustment.svg":()=>o(()=>import("./adjustment-DIo_g8Za.js"),[]),"/src/icons/directional/close_left.svg":()=>o(()=>import("./close_left-C6k2eGWg.js"),[]),"/src/icons/directional/close_right.svg":()=>o(()=>import("./close_right-CrnE5vtw.js"),[]),"/src/icons/directional/expanded.svg":()=>o(()=>import("./expanded-BswQDJyW.js"),[]),"/src/icons/directional/left_arrow.svg":()=>o(()=>import("./left_arrow-DAKeumRT.js"),[]),"/src/icons/directional/lock.svg":()=>o(()=>import("./lock-dC7sQfx2.js"),[]),"/src/icons/directional/resize_h.svg":()=>o(()=>import("./resize_h-DA2p7YCQ.js"),[]),"/src/icons/directional/right_arrow.svg":()=>o(()=>import("./right_arrow-CbmroMoE.js"),[]),"/src/icons/directional/row_end.svg":()=>o(()=>import("./row_end-CqbNhb3G.js"),[]),"/src/icons/directional/row_head.svg":()=>o(()=>import("./row_head-BCxi2x-p.js"),[]),"/src/icons/logo/github.svg":()=>o(()=>import("./github-B4ARmChV.js"),[]),"/src/icons/logo/google.svg":()=>o(()=>import("./google-GEcrFhWr.js"),[]),"/src/icons/logo/login_bg.svg":()=>o(()=>import("./login_bg-CRcyXHBf.js"),[]),"/src/icons/logo/office.svg":()=>o(()=>import("./office-B5pC1KGi.js"),[]),"/src/icons/logo/ray.svg":()=>o(()=>import("./ray-B93BjtIh.js"),[]),"/src/icons/logo/twitter.svg":()=>o(()=>import("./twitter-DjE7U1HD.js"),[]),"/src/icons/template/dark.svg":()=>o(()=>import("./dark-BqsidBpX.js"),[]),"/src/icons/template/light.svg":()=>o(()=>import("./light-DWbddXnY.js"),[]),"/src/icons/tip/axios.svg":()=>o(()=>import("./axios-o8g4A-7A.js"),[]),"/src/icons/tip/close.svg":()=>o(()=>import("./close-10SEVxdb.js"),[]),"/src/icons/tip/dashboard.svg":()=>o(()=>import("./dashboard-70op-CO0.js"),[]),"/src/icons/tip/echart.svg":()=>o(()=>import("./echart-c_3t778P.js"),[]),"/src/icons/tip/enter.svg":()=>o(()=>import("./enter-CPGcsJ25.js"),[]),"/src/icons/tip/error.svg":()=>o(()=>import("./error-CjWalrOZ.js"),[]),"/src/icons/tip/export_excel.svg":()=>o(()=>import("./export_excel-ZmNoLzCr.js"),[]),"/src/icons/tip/language.svg":()=>o(()=>import("./language-C4AMs4_p.js"),[]),"/src/icons/tip/menu.svg":()=>o(()=>import("./menu-CPMkWw77.js"),[]),"/src/icons/tip/more.svg":()=>o(()=>import("./more-DW-qndwg.js"),[]),"/src/icons/tip/mouse.svg":()=>o(()=>import("./mouse-C_l6KSTs.js"),[]),"/src/icons/tip/other.svg":()=>o(()=>import("./other-DU6bZUrM.js"),[]),"/src/icons/tip/print.svg":()=>o(()=>import("./print-jFo_n0lx.js"),[]),"/src/icons/tip/rely.svg":()=>o(()=>import("./rely-DlDUQEbT.js"),[]),"/src/icons/tip/table.svg":()=>o(()=>import("./table-tYkftQGA.js"),[])})).forEach(e=>{var t;const r=(t=e.match(/\/(\w+)\.svg/))==null?void 0:t[1];r&&i.value.push(r)}),{icons:i}},render(){return Vue.createVNode(naive.NCard,{title:"svg图标"},{"header-extra":()=>"点击图标复制代码",default:()=>{let i;return Vue.createVNode(naive.NFlex,null,c(i=this.icons.map(_=>Vue.withDirectives(Vue.createVNode("div",{class:"pre-view-icons__card",key:_},[Vue.createVNode(naive.NPopover,null,{trigger:()=>Vue.createVNode(s,{name:_,size:"56",cursor:"pointer"},null),default:()=>_})]),[[Vue.resolveDirective("copy"),``]])))?i:{default:()=>[i]})}})}});export{w as default}; diff --git a/js/index-BYZzQUjS.js.gz b/js/index-BYZzQUjS.js.gz new file mode 100644 index 00000000..30d5b801 Binary files /dev/null and b/js/index-BYZzQUjS.js.gz differ diff --git a/js/index-B2ShSf91.js b/js/index-Bg-qGje5.js similarity index 98% rename from js/index-B2ShSf91.js rename to js/index-Bg-qGje5.js index 66cf5f5c..bb9a9b7e 100644 --- a/js/index-B2ShSf91.js +++ b/js/index-Bg-qGje5.js @@ -1 +1 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; +var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const V=Vue.defineComponent({name:"RelyAbout",setup(){const{pkg:t}=g,{dependencies:i,devDependencies:n,name:e,version:d}=t,c=[{title:"依赖名称",key:"name"},{title:"依赖版本",key:"relyVersion"},{title:"依赖地址",key:"relyAddress"}],l=Vue.ref([]),o=Vue.ref([]),v=[{name:"项目名称",label:e},{name:"版本信息",label:d},{name:"项目地址",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],m=()=>{const s=r=>Object.keys(r).reduce((p,u)=>(p.push({name:u,relyVersion:r[u],relyAddress:""}),p),[]);l.value=s(i),o.value=s(n)},y=s=>{s.url&&window.open(s.url)};return Vue.onBeforeMount(()=>{m()}),{columns:c,dependenciesOptions:l,devDependenciesOptions:o,templateOptions:v,handleTagClick:y}},render(){let t,i,n;return Vue.createVNode("div",{class:"rely-about"},[Vue.createVNode(naive.NCard,{title:"关于项目"},{default:()=>[Vue.createTextVNode("ray template 是一个基于: tsx pinia vue3.x vite sass 的中后台解决方案. 项目干净与轻巧, 已经集成了很多项目中可能需要的搬砖工具可以让你快速起一个相关项目, 并且不需要剔除大量无用页面与组件.")]}),Vue.createVNode(naive.NCard,{title:"项目信息"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(t=this.templateOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[Vue.createVNode(naive.NTag,Vue.mergeProps({bordered:!1,type:"info"},{onClick:this.handleTagClick.bind(this,e)},{style:[e.url?"cursor: pointer":""]}),{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NCard,{title:"生产依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(i=this.dependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?i:{default:()=>[i]})]}),Vue.createVNode(naive.NCard,{title:"开发依赖"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left"},a(n=this.devDependenciesOptions.map(e=>Vue.createVNode(naive.NDescriptionsItem,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{V as default}; diff --git a/js/index-Bg-qGje5.js.gz b/js/index-Bg-qGje5.js.gz new file mode 100644 index 00000000..41e5c81d Binary files /dev/null and b/js/index-Bg-qGje5.js.gz differ diff --git a/js/index-C2nyhHG5.js b/js/index-C2nyhHG5.js deleted file mode 100644 index 3965999f..00000000 --- a/js/index-C2nyhHG5.js +++ /dev/null @@ -1 +0,0 @@ -import{a0 as o,a1 as u,e as i}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as a}from"./utils-B_NGfO2V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const s=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},setup(){const{router:e}=u();return{goBack:()=>{const{appMenuKey:r}=i,t=a(r,"sessionStorage",{defaultValue:""});t&&e.replace(t)}}},render(){const{goBack:e}=this;return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NFlex,{align:"center",justify:"center"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:o.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("返回上一页面")]})]})})])}}),T=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(s,{status:"404"},null)}});export{T as default}; diff --git a/js/index-C2nyhHG5.js.gz b/js/index-C2nyhHG5.js.gz deleted file mode 100644 index 9812c998..00000000 Binary files a/js/index-C2nyhHG5.js.gz and /dev/null differ diff --git a/js/index-saB8SoC_.js b/js/index-CCBKm2To.js similarity index 91% rename from js/index-saB8SoC_.js rename to js/index-CCBKm2To.js index f08fc2c6..0d43bd23 100644 --- a/js/index-saB8SoC_.js +++ b/js/index-CCBKm2To.js @@ -1 +1 @@ -import{E as e}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const b=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(e,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(e,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{b as default}; +import{G as e}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const b=Vue.defineComponent({name:"IframeDemo",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{vertical:!0,size:[20,20]},{default:()=>[Vue.createVNode(naive.NCard,{title:"naive ui(延迟加载)"},{default:()=>[Vue.createVNode(e,{src:"https://www.naiveui.com/zh-CN/dark",height:"300",allow:"fullscreen"},null)]}),Vue.createVNode(naive.NCard,{title:"vue-hooks-plus(立即加载)"},{default:()=>[Vue.createVNode(e,{src:"https://inhiblabcore.github.io/docs/hooks/",height:"300",lazy:!1},null)]})]})}});export{b as default}; diff --git a/js/index-CCBKm2To.js.gz b/js/index-CCBKm2To.js.gz new file mode 100644 index 00000000..cf9ec608 Binary files /dev/null and b/js/index-CCBKm2To.js.gz differ diff --git a/js/index-CCddRp-e.js.gz b/js/index-CCddRp-e.js.gz deleted file mode 100644 index 3804b48e..00000000 Binary files a/js/index-CCddRp-e.js.gz and /dev/null differ diff --git a/js/index-ClGwgU9o.js.gz b/js/index-ClGwgU9o.js.gz deleted file mode 100644 index c7b26fcc..00000000 Binary files a/js/index-ClGwgU9o.js.gz and /dev/null differ diff --git a/js/index-CptmWXVL.js.gz b/js/index-CptmWXVL.js.gz deleted file mode 100644 index 7b3027dc..00000000 Binary files a/js/index-CptmWXVL.js.gz and /dev/null differ diff --git a/js/index-Cs-0uuwR.js.gz b/js/index-Cs-0uuwR.js.gz deleted file mode 100644 index c732314f..00000000 Binary files a/js/index-Cs-0uuwR.js.gz and /dev/null differ diff --git a/js/index-BCgERcJv.js b/js/index-DFXoKFzV.js similarity index 96% rename from js/index-BCgERcJv.js rename to js/index-DFXoKFzV.js index e78ceca3..8097978a 100644 --- a/js/index-BCgERcJv.js +++ b/js/index-DFXoKFzV.js @@ -1 +1 @@ -import{r as o}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{A as r}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function l(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const O=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(o,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},l(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},l(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,l(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{O as default}; +import{r as o}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{A as r}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function l(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Vue.isVNode(u)}const O=Vue.defineComponent({name:"RDashboard",setup(){return{coverLetterOptions:[{label:"掌握搬砖框架",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("Vue3.x")]}),Vue.createVNode(naive.NTag,{type:"info"},{default:()=>[Vue.createTextVNode("React")]})]})},{label:"从事搬砖时长",des:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NTag,{type:"success"},{default:()=>[Vue.createTextVNode("练习时长两年半的小白前端搬砖师")]})]})},{label:"个人",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(o,{name:"ray",size:"22"},null),Vue.createTextVNode("努力搬砖、努力摸鱼, 建设美丽家园")]}),span:2},{label:"补充说明",des:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createTextVNode("如果有希望补充的功能可以在"),Vue.createVNode("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[Vue.createTextVNode("GitHub")]),Vue.createTextVNode("提一个 Issues")]}),span:2}],technologyTagOptions:[{label:"Vue3.x",value:"Vue3.x"},{label:"Vite5.x",value:"Vite5.x"},{label:"Pinia",value:"Pinia"},{label:"TS(X)",value:"TS(X)"}]}},render(){let u,t;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,null,{header:()=>Vue.createVNode(o,{name:"ray",size:"64"},null),default:()=>"当你看见这个页面后, 就说明项目已经启动成功了~"}),Vue.createVNode(naive.NCard,{title:"个人介绍"},{default:()=>[Vue.createVNode(naive.NDescriptions,{bordered:!0,labelPlacement:"left",column:2},l(u=this.coverLetterOptions.map(e=>{let a;return Vue.createVNode(naive.NDescriptionsItem,{key:e.label,label:e.label,span:e==null?void 0:e.span},l(a=e.des())?a:{default:()=>[a]})}))?u:{default:()=>[u]})]}),Vue.createVNode(naive.NCard,{title:"项目介绍"},{default:()=>[Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("技术栈")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createVNode(naive.NFlex,null,l(t=this.technologyTagOptions.map(e=>Vue.createVNode(naive.NTag,{key:e.value,type:"info"},{default:()=>[e.label]})))?t:{default:()=>[t]})]}),Vue.createVNode(naive.NH6,null,{default:()=>[Vue.createTextVNode("项目介绍")]}),Vue.createVNode(naive.NP,null,{default:()=>[Vue.createTextVNode("预设了最佳构建体验的配置与常用搬砖工具。意在提供一个简洁、快速上手的模板。")]})]}),Vue.createVNode(naive.NCard,{title:"友情链接"},{default:()=>[Vue.createVNode(r,null,null)]})]})}});export{O as default}; diff --git a/js/index-DFXoKFzV.js.gz b/js/index-DFXoKFzV.js.gz new file mode 100644 index 00000000..a5981eac Binary files /dev/null and b/js/index-DFXoKFzV.js.gz differ diff --git a/js/index-DK-aA1yw.js b/js/index-DK-aA1yw.js new file mode 100644 index 00000000..5ff37bac --- /dev/null +++ b/js/index-DK-aA1yw.js @@ -0,0 +1 @@ +import{l as A,d as E,X as h,r as f,Y as x,Z as k,$ as g,a0 as T,a1 as b}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const Q=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=A("layoutContentMaximize"),o=Vue.ref(E().getWatermarkConfig.value.content),n=Vue.ref("new"),{navigationTo:i}=x(),{maximize:r,isLayoutContentMaximized:l}=h(),{reload:d,openSpin:V,closeSpin:F}=k(),{showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=g(),{darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e}=T(),{hidden:p,show:v,update:D}=b();return{navigationTo:i,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:F,showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:p,badgeShow:v,badgeUpdateLabel:D,badgeValue:n}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:n,closeSpin:i,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,darkTheme:F,lightTheme:c,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:s,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>s("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(f,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{n(),setTimeout(()=>{i()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{Q as default}; diff --git a/js/index-DK-aA1yw.js.gz b/js/index-DK-aA1yw.js.gz new file mode 100644 index 00000000..6d85dfac Binary files /dev/null and b/js/index-DK-aA1yw.js.gz differ diff --git a/js/index-DQQD1Hi-.js.gz b/js/index-DQQD1Hi-.js.gz deleted file mode 100644 index 1aa7d751..00000000 Binary files a/js/index-DQQD1Hi-.js.gz and /dev/null differ diff --git a/js/index-Cs-0uuwR.js b/js/index-DYHwA1XI.js similarity index 96% rename from js/index-Cs-0uuwR.js rename to js/index-DYHwA1XI.js index 3b1af22c..59ea4176 100644 --- a/js/index-Cs-0uuwR.js +++ b/js/index-DYHwA1XI.js @@ -1 +1 @@ -import{B as d,C as l}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const w=Vue.defineComponent({name:"RFormDemo",setup(){const[u,{getFormInstance:i,validate:t,restoreValidation:r,formModel:a,formRules:e}]=d({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),o=Vue.ref(e()),n=Vue.ref(a());return{register:u,rules:o,condition:n,restoreValidation:r,formModel:a,validate:t}},render(){const{rules:u}=this,{register:i,restoreValidation:t,formModel:r,validate:a}=this;return Vue.createVNode(l,{onRegister:i,rules:u,model:this.condition},{default:()=>[Vue.createVNode(naive.NGrid,{cols:24,xGap:24},{default:()=>[Vue.createVNode(naive.NFormItemGi,{label:"姓名",path:"name",span:12},{default:()=>[Vue.createVNode(naive.NInput,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"年龄",path:"age",span:12},{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"出生日期",path:"date",span:12},{default:()=>[Vue.createVNode(naive.NDatePicker,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"性别",path:"gender",span:12},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"girl"},{default:()=>[Vue.createTextVNode("女")]}),Vue.createVNode(naive.NRadio,{value:"man"},{default:()=>[Vue.createTextVNode("男")]})]})]}),Vue.createVNode(naive.NFormItemGi,{label:"备注信息",span:24},{default:()=>[Vue.createVNode(naive.NInput,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),Vue.createVNode(naive.NFormItemGi,{span:24},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"flex-end",style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",onClick:()=>{this.condition=r(),t()}},{default:()=>[Vue.createTextVNode("重置表单为初始状态")]}),Vue.createVNode(naive.NButton,{type:"warning",onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("移除校验状态")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>a()},{default:()=>[Vue.createTextVNode("校验")]})]})]})]})]})}});export{w as default}; +import{E as d,F as l}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const w=Vue.defineComponent({name:"RFormDemo",setup(){const[u,{getFormInstance:i,validate:t,restoreValidation:r,formModel:a,formRules:e}]=d({name:null,age:null,gender:null,date:null,remark:null},{name:{required:!0,message:"请输入姓名",trigger:["blur","change"]},date:{required:!0,message:"请选择日期",trigger:["blur","change"],type:"number"},gender:{required:!0,message:"请选择性别",trigger:"change"},age:{required:!0,message:"请输入年龄",trigger:["blur","change"],type:"number"}}),o=Vue.ref(e()),n=Vue.ref(a());return{register:u,rules:o,condition:n,restoreValidation:r,formModel:a,validate:t}},render(){const{rules:u}=this,{register:i,restoreValidation:t,formModel:r,validate:a}=this;return Vue.createVNode(l,{onRegister:i,rules:u,model:this.condition},{default:()=>[Vue.createVNode(naive.NGrid,{cols:24,xGap:24},{default:()=>[Vue.createVNode(naive.NFormItemGi,{label:"姓名",path:"name",span:12},{default:()=>[Vue.createVNode(naive.NInput,{value:this.condition.name,"onUpdate:value":e=>this.condition.name=e},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"年龄",path:"age",span:12},{default:()=>[Vue.createVNode(naive.NInputNumber,{value:this.condition.age,"onUpdate:value":e=>this.condition.age=e,showButton:!1,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"出生日期",path:"date",span:12},{default:()=>[Vue.createVNode(naive.NDatePicker,{value:this.condition.date,"onUpdate:value":e=>this.condition.date=e,style:"width: 100%"},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"性别",path:"gender",span:12},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.condition.gender,"onUpdate:value":e=>this.condition.gender=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"girl"},{default:()=>[Vue.createTextVNode("女")]}),Vue.createVNode(naive.NRadio,{value:"man"},{default:()=>[Vue.createTextVNode("男")]})]})]}),Vue.createVNode(naive.NFormItemGi,{label:"备注信息",span:24},{default:()=>[Vue.createVNode(naive.NInput,{type:"textarea",value:this.condition.remark,"onUpdate:value":e=>this.condition.remark=e},null)]}),Vue.createVNode(naive.NFormItemGi,{span:24},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"flex-end",style:"width: 100%"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",onClick:()=>{this.condition=r(),t()}},{default:()=>[Vue.createTextVNode("重置表单为初始状态")]}),Vue.createVNode(naive.NButton,{type:"warning",onClick:t.bind(this)},{default:()=>[Vue.createTextVNode("移除校验状态")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>a()},{default:()=>[Vue.createTextVNode("校验")]})]})]})]})]})}});export{w as default}; diff --git a/js/index-DYHwA1XI.js.gz b/js/index-DYHwA1XI.js.gz new file mode 100644 index 00000000..d06b4ae1 Binary files /dev/null and b/js/index-DYHwA1XI.js.gz differ diff --git a/js/index-CCddRp-e.js b/js/index-Dgdpbbi8.js similarity index 95% rename from js/index-CCddRp-e.js rename to js/index-Dgdpbbi8.js index d6b9a31d..cdb1685a 100644 --- a/js/index-CCddRp-e.js +++ b/js/index-Dgdpbbi8.js @@ -1 +1 @@ -import{r as d,O as u}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const O=Vue.defineComponent({name:"SegmentDemo",setup(){const t=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],a=[...t,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],o=[...t,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],i=[{label:"设置",key:"setting",icon:Vue.createVNode(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:Vue.createVNode(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:Vue.createVNode(d,{name:"search"},null),popover:"我是搜索"}],l=Vue.ref("this is three"),e=Vue.ref("medium"),n=Vue.ref("block");return{baseOptions:t,options:a,segmentValueOne:l,segmentChange:r=>{window.$message.info(String(r))},size:e,width:n,disabledOptions:o,iconOptions:i}},render(){const{options:t,baseOptions:a,disabledOptions:o,iconOptions:i}=this,{segmentChange:l}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"警告⚠️",type:"warning"},{default:()=>[Vue.createTextVNode("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),Vue.createVNode(naive.NAlert,{title:"注已知问题",type:"warning"},{default:()=>[Vue.createTextVNode("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),Vue.createVNode("br",null,null),Vue.createTextVNode("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),Vue.createVNode(naive.NCard,{title:"分段器"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),Vue.createVNode(naive.NGrid,{cols:2,xGap:8,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础非受控分段器"},{default:()=>[Vue.createVNode(u,{defaultValue:"this is two",options:a},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义分段器插槽"},{default:()=>[Vue.createVNode(u,{defaultValue:this.segmentValueOne,options:t},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"updateValue 事件"},{default:()=>[Vue.createVNode(u,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:o,onUpdateValue:l.bind(this),width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自适应宽度"},{default:()=>[Vue.createVNode(u,{defaultValue:"setting",options:i,width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"尺寸"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"small"},{default:()=>[Vue.createTextVNode("小")]}),Vue.createVNode(naive.NRadio,{value:"medium"},{default:()=>[Vue.createTextVNode("不小")]}),Vue.createVNode(naive.NRadio,{value:"large"},{default:()=>[Vue.createTextVNode("不太小")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:a,size:this.size,width:"block"},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"宽度"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"info"},{default:()=>[Vue.createTextVNode("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),Vue.createVNode(naive.NRadioGroup,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"fitContent"},{default:()=>[Vue.createTextVNode("fitContent")]}),Vue.createVNode(naive.NRadio,{value:"block"},{default:()=>[Vue.createTextVNode("block")]}),Vue.createVNode(naive.NRadio,{value:700},{default:()=>[Vue.createTextVNode("700")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{O as default}; +import{r as d,Q as u}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const R=Vue.defineComponent({name:"SegmentDemo",setup(){const t=[{label:"这是一",key:"this is one"},{label:"这是二",key:"this is two"},{label:"这是三",key:"this is three"}],a=[...t,{label:"这是四",key:"this is four",slots:{default:()=>"我是自定义"}}],o=[...t,{label:"不许点",key:"disabled option",disabled:!0},{label:"popover",key:"popover",popover:"我是 popover"},{label:"popover options",key:"popover options",popover:{label:"我是配置项的 popover"}}],i=[{label:"设置",key:"setting",icon:Vue.createVNode(d,{name:"setting"},null)},{label:"刷新",key:"reload",icon:Vue.createVNode(d,{name:"reload"},null)},{label:"搜索",key:"search",icon:Vue.createVNode(d,{name:"search"},null),popover:"我是搜索"}],l=Vue.ref("this is three"),e=Vue.ref("medium"),n=Vue.ref("block");return{baseOptions:t,options:a,segmentValueOne:l,segmentChange:r=>{window.$message.info(String(r))},size:e,width:n,disabledOptions:o,iconOptions:i}},render(){const{options:t,baseOptions:a,disabledOptions:o,iconOptions:i}=this,{segmentChange:l}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NAlert,{title:"警告⚠️",type:"warning"},{default:()=>[Vue.createTextVNode("n-tabs 默认情况下会从 slot 获取默认展示的 tab 值,因此会产生一个 vue slot 的 warning。如果你不想看到这个 warning,请设定一个 default-value。")]}),Vue.createVNode(naive.NAlert,{title:"注已知问题",type:"warning"},{default:()=>[Vue.createTextVNode("由于 NTabs 设计缘故,手动设置 width 为 fitContent 后,配置了 disabled, popover 的配置项,会丢失过度效果。具体可以看下面的例子。"),Vue.createVNode("br",null,null),Vue.createTextVNode("解决方法,在该组件外层包一层 div,设置宽度,但是不能为 fit-content。")]}),Vue.createVNode(naive.NCard,{title:"分段器"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 NTabs + NTabPane 封装,所以保留了一些该组件的特性。")])]}),Vue.createVNode(naive.NGrid,{cols:2,xGap:8,yGap:12},{default:()=>[Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"基础非受控分段器"},{default:()=>[Vue.createVNode(u,{defaultValue:"this is two",options:a},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自定义分段器插槽"},{default:()=>[Vue.createVNode(u,{defaultValue:this.segmentValueOne,options:t},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"updateValue 事件"},{default:()=>[Vue.createVNode(u,{value:this.segmentValueOne,"onUpdate:value":e=>this.segmentValueOne=e,defaultValue:"this is two",options:o,onUpdateValue:l.bind(this),width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:1},{default:()=>[Vue.createVNode(naive.NCard,{title:"自适应宽度"},{default:()=>[Vue.createVNode(u,{defaultValue:"setting",options:i,width:"block"},null)]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"尺寸"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:this.size,"onUpdate:value":e=>this.size=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"small"},{default:()=>[Vue.createTextVNode("小")]}),Vue.createVNode(naive.NRadio,{value:"medium"},{default:()=>[Vue.createTextVNode("不小")]}),Vue.createVNode(naive.NRadio,{value:"large"},{default:()=>[Vue.createTextVNode("不太小")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:a,size:this.size,width:"block"},null)]})]})]}),Vue.createVNode(naive.NGridItem,{span:2},{default:()=>[Vue.createVNode(naive.NCard,{title:"宽度"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0,size:"large"},{default:()=>[Vue.createVNode(naive.NAlert,{title:"注意",type:"info"},{default:()=>[Vue.createTextVNode("RSegment 组件宽度默认为 fitContent,按照内容自适应宽度;如果需要自适应宽度,请设置 width 为 block;如果需要手动指定宽度请设置一个数字。")]}),Vue.createVNode(naive.NRadioGroup,{value:this.width,"onUpdate:value":e=>this.width=e},{default:()=>[Vue.createVNode(naive.NRadio,{value:"fitContent"},{default:()=>[Vue.createTextVNode("fitContent")]}),Vue.createVNode(naive.NRadio,{value:"block"},{default:()=>[Vue.createTextVNode("block")]}),Vue.createVNode(naive.NRadio,{value:700},{default:()=>[Vue.createTextVNode("700")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{R as default}; diff --git a/js/index-Dgdpbbi8.js.gz b/js/index-Dgdpbbi8.js.gz new file mode 100644 index 00000000..a7e712db Binary files /dev/null and b/js/index-Dgdpbbi8.js.gz differ diff --git a/js/index-Dl1Y5YxY.js b/js/index-Dl1Y5YxY.js new file mode 100644 index 00000000..bef66452 --- /dev/null +++ b/js/index-Dl1Y5YxY.js @@ -0,0 +1 @@ +import{v as o,w as u,e as i}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as a}from"./utils-CZebg5KX.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const s=Vue.defineComponent({name:"PageResult",props:{...naive.resultProps},setup(){const{router:e}=u();return{goBack:()=>{const{appMenuKey:r}=i,t=a(r,"sessionStorage",{defaultValue:""});t&&e.replace(t)}}},render(){const{goBack:e}=this;return Vue.createVNode("div",{class:"error-page"},[Vue.createVNode(naive.NResult,Vue.mergeProps(this.$props,{status:"500",title:"404 资源不存在",description:"小调皮你走错地方了"}),{...this.$slots,footer:()=>Vue.createVNode(naive.NFlex,{align:"center",justify:"center"},{default:()=>[Vue.createVNode(naive.NButton,{onClick:o.bind(this,!0)},{default:()=>[Vue.createTextVNode("返回首页")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:e.bind(this)},{default:()=>[Vue.createTextVNode("返回上一页面")]})]})})])}}),T=Vue.defineComponent({name:"ErrorPage404",setup(){return{}},render(){return Vue.createVNode(s,{status:"404"},null)}});export{T as default}; diff --git a/js/index-Dl1Y5YxY.js.gz b/js/index-Dl1Y5YxY.js.gz new file mode 100644 index 00000000..c27152f9 Binary files /dev/null and b/js/index-Dl1Y5YxY.js.gz differ diff --git a/js/index-Dn72_gS8.js.gz b/js/index-Dn72_gS8.js.gz deleted file mode 100644 index d54c3ef0..00000000 Binary files a/js/index-Dn72_gS8.js.gz and /dev/null differ diff --git a/js/index-F9SfnBMI.js b/js/index-F9SfnBMI.js deleted file mode 100644 index 43a4993b..00000000 --- a/js/index-F9SfnBMI.js +++ /dev/null @@ -1 +0,0 @@ -import{l as A,d as E,V as h,r as f,W as x,X as k,Y as g,Z as T,$ as b}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const Q=Vue.defineComponent({name:"TemplateHooks",setup(){const t=Vue.ref(""),a=A("layoutContentMaximize"),o=Vue.ref(E().getWatermarkConfig.value.content),n=Vue.ref("new"),{navigationTo:i}=x(),{maximize:r,isLayoutContentMaximized:l}=h(),{reload:d,openSpin:V,closeSpin:F}=k(),{showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,toggleWatermark:C}=g(),{darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e}=T(),{hidden:p,show:v,update:D}=b();return{navigationTo:i,reload:d,currentMenuOption:t,maximize:r,maximizeRef:a,openSpin:V,closeSpin:F,showWatermark:c,hiddenWatermark:N,setWatermarkContent:m,watermark:o,toggleWatermark:C,darkTheme:B,lightTheme:s,toggleTheme:u,getAppTheme:e,isLayoutContentMaximized:l,badgeHidden:p,badgeShow:v,badgeUpdateLabel:D,badgeValue:n}},render(){const{navigationTo:t,reload:a,maximize:o,openSpin:n,closeSpin:i,showWatermark:r,hiddenWatermark:l,setWatermarkContent:d,toggleWatermark:V,darkTheme:F,lightTheme:c,toggleTheme:N,getAppTheme:m,isLayoutContentMaximized:C,badgeHidden:B,badgeShow:s,badgeUpdateLabel:u}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"接口说明"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("hooks/template 包存放模板专属 hook 方法。这里不做过多的赘述,可以查看文档具体描述。")])]}),Vue.createVNode(naive.NCard,{title:"useBadge 菜单标记"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.badgeValue,"onUpdate:value":e=>this.badgeValue=e},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>B("/template-hooks")},{default:()=>[Vue.createTextVNode("隐藏当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>s("/template-hooks")},{default:()=>[Vue.createTextVNode("显示当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>u("/template-hooks",{label:this.badgeValue})},{default:()=>[Vue.createTextVNode("更新当前菜单标记")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:Vue.createVNode(f,{name:"error",size:"18"},null)})}},{default:()=>[Vue.createTextVNode("添加标记图标")]}),Vue.createVNode(naive.NButton,{onClick:()=>{u("/template-hooks",{label:this.badgeValue,icon:void 0})}},{default:()=>[Vue.createTextVNode("隐藏标记图标")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTheme 主题"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("getAppTheme 获取当前主题色: "),m().themeLabel]),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>F()},{default:()=>[Vue.createTextVNode("切换暗黑主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>c()},{default:()=>[Vue.createTextVNode("切换明亮主题")]}),Vue.createVNode(naive.NButton,{onClick:()=>N()},{default:()=>[Vue.createTextVNode("切换主题")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useWatermark 水印"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NInput,{value:this.watermark,"onUpdate:value":e=>this.watermark=e,onInput:e=>{d(e)}},null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>r()},{default:()=>[Vue.createTextVNode("显示水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>l()},{default:()=>[Vue.createTextVNode("隐藏水印")]}),Vue.createVNode(naive.NButton,{onClick:()=>V()},{default:()=>[Vue.createTextVNode("切换水印")]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useSpinning"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("手动刷新内容区域,会使得当前路由页面内容强制重新加载(会执行完整的 vue 生命周期)。默认 800ms 延迟。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{a()}},{default:()=>[Vue.createTextVNode("刷新(强制刷新)")]}),Vue.createVNode(naive.NButton,{onClick:()=>{n(),setTimeout(()=>{i()},800)}},{default:()=>[Vue.createTextVNode("触发加载动画(不强制刷新)")]})]})]}),Vue.createVNode(naive.NCard,{title:"useMaximize 内容区域最大化"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("isLayoutContentMaximized 检测当前内容区域是否最大化:"),C?"最大化":"正常尺寸"]),Vue.createVNode(naive.NButton,{onClick:()=>{o(!this.maximizeRef,{scrollToOptions:{left:0,top:0}})}},{default:()=>[Vue.createTextVNode("最大化内容区域,并且滚动至顶部")]})]}),Vue.createVNode(naive.NCard,{title:"useAppNavigation 导航方法"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("navigationTo 参数为正整数时,会更具当前的菜单顺序进行自动导航匹配。但是此方法仅能导航一级菜单。并且如果导航菜单非根菜单项,会自动递归导航至一子菜单。 支持传入完整的菜单路径,如:/multi/multi-menu-one。")]),Vue.createVNode("br",null,null),Vue.createVNode(naive.NButton,{onClick:()=>t("/multi/multi-menu-one")},{default:()=>[Vue.createTextVNode("跳转至多级菜单")]})]})]})}});export{Q as default}; diff --git a/js/index-F9SfnBMI.js.gz b/js/index-F9SfnBMI.js.gz deleted file mode 100644 index d1c62af6..00000000 Binary files a/js/index-F9SfnBMI.js.gz and /dev/null differ diff --git a/js/index-2ABOmIsE.js b/js/index-NrsCk1Kq.js similarity index 97% rename from js/index-2ABOmIsE.js rename to js/index-NrsCk1Kq.js index 01a99e8a..a0eb3c9b 100644 --- a/js/index-2ABOmIsE.js +++ b/js/index-NrsCk1Kq.js @@ -1 +1 @@ -import{i as V,p as v,q as h,e as u,r as a,f as N,T as f,t as y}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as d}from"./utils-B_NGfO2V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Q as w}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function _(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=h(),{signing:i}=V(),{getRootPath:n}=v(),o=Vue.ref(!1),c=()=>({name:"Ray Admin",pwd:"123456"}),p=VueRouter.useRouter(),r=Vue.ref(c()),g={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var s;(s=e.value)==null||s.validate(m=>{m||(o.value=!0,i(r.value).then(l=>{l.code===0&&setTimeout(()=>{window.$message.success(`欢迎${r.value.name}登陆~`),d(u.token,"tokenValue"),d(u.signing,l.data),p.push(n.value),o.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:g,loading:o}},render(){let e;const{$t:t,loading:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},_(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),j=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),C=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:b},null)])}});function k(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const F=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},k(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(a,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var O={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.5"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ae=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=O,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=S(),{updateLocale:o}=N();return{...Vue.toRefs(t),windowHeight:i,updateLocale:o,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(a,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(f,null,null),Vue.createVNode(naive.NDropdown,{options:y,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(a,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(a,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},L(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(R,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(j,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(C,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(F,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(x,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ae as default}; +import{i as V,p as v,q as h,e as u,r as a,f as N,T as f,t as y}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as d}from"./utils-CZebg5KX.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{Q as w}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-DsqDmAzR.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";function _(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const R=Vue.defineComponent({name:"RSigning",setup(){const e=Vue.ref(),{t}=h(),{signing:i}=V(),{getRootPath:n}=v(),o=Vue.ref(!1),c=()=>({name:"Ray Admin",pwd:"123456"}),p=VueRouter.useRouter(),r=Vue.ref(c()),g={name:{required:!0,message:t("views.login.index.NamePlaceholder"),trigger:["blur","input"]},pwd:{required:!0,message:t("views.login.index.PasswordPlaceholder"),trigger:["blur","input"]}};return{signingForm:r,loginFormRef:e,handleLogin:()=>{var s;(s=e.value)==null||s.validate(m=>{m||(o.value=!0,i(r.value).then(l=>{l.code===0&&setTimeout(()=>{window.$message.success(`欢迎${r.value.name}登陆~`),d(u.token,"tokenValue"),d(u.signing,l.data),p.push(n.value),o.value=!1},2*1e3)}).catch(()=>{window.$message.error("不可以这样哟, 不可以哟")}))})},rules:g,loading:o}},render(){let e;const{$t:t,loading:i}=this;return Vue.createVNode(naive.NForm,{model:this.signingForm,ref:"loginFormRef",rules:this.rules},{default:()=>[Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Name"),path:"name"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.name,"onUpdate:value":n=>this.signingForm.name=n,placeholder:t("views.login.index.NamePlaceholder")},null)]}),Vue.createVNode(naive.NFormItem,{label:t("views.login.index.Password"),path:"pwd"},{default:()=>[Vue.createVNode(naive.NInput,{value:this.signingForm.pwd,"onUpdate:value":n=>this.signingForm.pwd=n,type:"password",showPasswordOn:"click",placeholder:t("views.login.index.PasswordPlaceholder")},null)]}),Vue.createVNode(naive.NButton,{style:["width: 100%","margin-to: 18px"],type:"primary",onClick:this.handleLogin.bind(this),loading:i},_(e=t("views.login.index.Login"))?e:{default:()=>[e]})]})}}),j=Vue.defineComponent({name:"RRegister",render(){return Vue.createVNode(naive.NResult,{status:"info",title:"提示",description:"我实在是不想写了..."},null)}}),C=Vue.defineComponent({name:"QRCodeSigning",setup(){const e=Vue.reactive({qrcodeValue:"https://github.com/XiaoDaiGua-Ray/xiaodaigua-ray.github.io"});return{...Vue.toRefs(e)}},render(){return Vue.createVNode("div",{class:"qrcode-signing"},[Vue.createVNode(w,{text:"ray template yes",size:200,logoImage:b},null)])}});function k(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const F=Vue.defineComponent({name:"SSOSigning",setup(){return{ssoSigningOptions:[{icon:"github",key:"github",tooltipLabel:"Github登陆"},{icon:"google",key:"google",tooltipLabel:"Google登陆"},{icon:"twitter",key:"twitter",tooltipLabel:"Twitter登陆"}],handleSSOSigningClick:i=>{window.$message.info(`调用${i.tooltipLabel}`)}}},render(){let e;return Vue.createVNode(naive.NFlex,{class:"sso-signing",align:"center"},k(e=this.ssoSigningOptions.map(t=>Vue.createVNode(naive.NPopover,{key:t.key},{trigger:()=>Vue.createVNode(a,{name:t.icon,size:"24",cursor:"pointer",onClick:this.handleSSOSigningClick.bind(this,t)},null),default:()=>t.tooltipLabel})))?e:{default:()=>[e]})}});var O={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.6.7",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10","dom-to-image":"2.6.0",echarts:"^5.5.0",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.38.2",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.26","vue-demi":"0.14.6","vue-hooks-plus":"2.1.0","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.1.1","@types/dom-to-image":"2.6.7","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.11","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.15",depcheck:"^1.4.5",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.1.0",postcss:"^8.4.31","postcss-px-to-viewport-8-plugin":"1.2.3",prettier:"^3.2.5",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.2.2","unplugin-auto-import":"^0.17.5","unplugin-vue-components":"^0.26.0",vite:"^5.2.11","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-compression":"^0.5.1","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-imp":"^2.4.0","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.0.11"},name:"ray-template",version:"4.8.6"},layout:{copyright:"Copyright © 2022-present Ray",sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"}},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};function L(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const ae=Vue.defineComponent({name:"RLogin",setup(){const{layout:{copyright:e}}=O,t=Vue.reactive({tabsValue:"signing"}),{height:i,width:n}=S(),{updateLocale:o}=N();return{...Vue.toRefs(t),windowHeight:i,updateLocale:o,copyright:e,windowWidth:n}},render(){let e;const{$t:t}=this;return Vue.createVNode("div",{class:["login"],style:[`height: ${this.windowHeight}px`,`--login-height: ${this.windowHeight}px`]},[Vue.createVNode("div",{class:["login-wrapper",this.windowWidth>=1440?"login-wrapper--divider":""]},[Vue.createVNode("div",{class:["login-wrapper__content"]},[Vue.createVNode(naive.NFlex,{align:"center",class:"login-title__wrapper"},{default:()=>[Vue.createVNode(a,{name:"ray",size:"48"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:28},{default:()=>[Vue.createTextVNode("Ray Template")]})]}),Vue.createVNode(naive.NFlex,{align:"center",class:"login-action__wrapper"},{default:()=>[Vue.createVNode(f,null,null),Vue.createVNode(naive.NDropdown,{options:y,onSelect:i=>this.updateLocale(i),trigger:"click"},{default:()=>[Vue.createVNode(a,{customClassName:"login-icon",name:"language",size:"18",cursor:"pointer"},null)]})]}),Vue.createVNode(naive.NGrid,{cols:"s:1 m:1 l:2 xl:2 2xl:2",itemResponsive:!1,responsive:"screen"},{default:()=>[Vue.createVNode(naive.NGridItem,{span:"s:0 m:0 l:1 xl:1 2xl:1",class:"login__left-wrapper"},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",vertical:!0},{default:()=>[Vue.createVNode(a,{name:"login_bg",width:"368",height:"368"},null),Vue.createVNode(naive.NGradientText,{class:"login-title",type:"info",size:36},L(e=t("views.login.index.RayTemplate"))?e:{default:()=>[e]})]})]}),Vue.createVNode(naive.NGridItem,{span:1,class:"login__right-wrapper"},{default:()=>[Vue.createVNode(naive.NCard,{class:"login__right-wrapper__content",embedded:!0,bordered:!1},{default:()=>[Vue.createVNode(naive.NTabs,{value:this.tabsValue,"onUpdate:value":i=>this.tabsValue=i,type:"line",animated:!0,size:"large"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Signing"),name:"signing"},{default:()=>[Vue.createVNode(R,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.Register"),name:"register"},{default:()=>[Vue.createVNode(j,null,null)]}),Vue.createVNode(naive.NTabPane,{tab:t("views.login.index.QRCodeSigning"),name:"qrcodeSigning"},{default:()=>[Vue.createVNode(C,null,null)]})])}),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("其他登陆方式")]}),Vue.createVNode(F,null,null),Vue.createVNode(naive.NDivider,null,{default:()=>[Vue.createTextVNode("友情链接")]}),Vue.createVNode(x,null,null)]})]})]}),Vue.createVNode(naive.NFlex,{align:"center",justify:"center",class:"login-copyright__wrapper"},{default:()=>[this.copyright]})])])])}});export{ae as default}; diff --git a/js/index-NrsCk1Kq.js.gz b/js/index-NrsCk1Kq.js.gz new file mode 100644 index 00000000..9048f788 Binary files /dev/null and b/js/index-NrsCk1Kq.js.gz differ diff --git a/js/index-PkhXpGap.js.gz b/js/index-PkhXpGap.js.gz deleted file mode 100644 index 80b09149..00000000 Binary files a/js/index-PkhXpGap.js.gz and /dev/null differ diff --git a/js/index-ClGwgU9o.js b/js/index-ZAONhno3.js similarity index 95% rename from js/index-ClGwgU9o.js rename to js/index-ZAONhno3.js index 613a8bd3..4392d7ec 100644 --- a/js/index-ClGwgU9o.js +++ b/js/index-ZAONhno3.js @@ -1 +1 @@ -import{y as a,z as c}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const q=Vue.defineComponent({name:"REchart",setup(){const[u,{getChartInstance:n,dispose:i,render:r,isDispose:o}]=c(),[t,{getChartInstance:v,dispose:h,render:p,isDispose:V}]=c(),m=Vue.ref(!1),d=Vue.ref(!1),l=Vue.reactive({loading:!1}),g={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},N={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},s=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),f=e=>{l.loading=e},C=e=>{d.value=e},E=()=>{o()?r():window.$message.warning("不可以重复渲染图表~")},A=()=>{i()},F=()=>{const e=()=>Math.floor((Math.random()+1)*100);s.value.series[0].data=new Array(7).fill(0).map(()=>e()),s.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:g,chartLoading:m,handleLoadingShow:f,chartAria:d,handleAriaShow:C,basePieOptions:N,baseLineOptions:s,...Vue.toRefs(l),mountChart:E,unmountChart:A,updateChartOptions:F,register:u,register2:t,dispose2:h,render2:p,isDispose2:V}},render(){const{register:u,register2:n,dispose2:i,render2:r,isDispose2:o}=this;return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:u,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{o()?r():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:n,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{q as default}; +import{B as a,C as c}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const z=Vue.defineComponent({name:"REchart",setup(){const[u,{getChartInstance:n,dispose:i,render:r,isDispose:o}]=c(),[t,{getChartInstance:v,dispose:h,render:p,isDispose:V}]=c(),m=Vue.ref(!1),d=Vue.ref(!1),l=Vue.reactive({loading:!1}),g={legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"日期",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}},{name:"数量",data:[12,220,250,180,20,10,190],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},N={title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},s=Vue.ref({tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}),f=e=>{l.loading=e},C=e=>{d.value=e},E=()=>{o()?r():window.$message.warning("不可以重复渲染图表~")},A=()=>{i()},F=()=>{const e=()=>Math.floor((Math.random()+1)*100);s.value.series[0].data=new Array(7).fill(0).map(()=>e()),s.value.series[1].data=new Array(7).fill(0).map(()=>e())};return{baseOptions:g,chartLoading:m,handleLoadingShow:f,chartAria:d,handleAriaShow:C,basePieOptions:N,baseLineOptions:s,...Vue.toRefs(l),mountChart:E,unmountChart:A,updateChartOptions:F,register:u,register2:t,dispose2:h,render2:p,isDispose2:V}},render(){const{register:u,register2:n,dispose2:i,render2:r,isDispose2:o}=this;return Vue.createVNode("div",{class:"echart"},[Vue.createVNode(naive.NCard,{title:"chart 组件"},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("该组件基于 ECharts, Vueuse 封装。默认做了最佳的优化封装实践。")]),Vue.createVNode("h3",null,[Vue.createTextVNode("开箱即用的优化策略:节流更新图表、异步渲染、自动销毁、贴花、加载、主题、视窗区域渲染、自动更新尺寸等高级特性。")])]}),Vue.createVNode(naive.NCard,{title:"预设 card 风格图表"},{default:()=>[Vue.createVNode(naive.NFlex,{style:["padding: 18px 0"]},{default:()=>[Vue.createVNode(naive.NButton,{onClick:this.mountChart.bind(this)},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:this.unmountChart.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]}),Vue.createVNode(naive.NButton,{onClick:this.updateChartOptions.bind(this)},{default:()=>[Vue.createTextVNode("更新配置项")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:u,title:"周销售量",autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria,preset:"card"},null)])]}),Vue.createVNode(naive.NCard,{title:"不跟随主题切换的暗色主题可视化图,并且手动指定原始主题色"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{o()?r():window.$message.warning("不可以重复渲染图表~")}},{default:()=>[Vue.createTextVNode("渲染")]}),Vue.createVNode(naive.NButton,{onClick:i.bind(this)},{default:()=>[Vue.createTextVNode("卸载")]})]}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{onRegister:n,autoChangeTheme:!1,theme:"default",options:this.baseOptions},null)])]})]}),Vue.createVNode(naive.NCard,{title:"加载动画"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartLoading,"onUpdate:value":t=>this.chartLoading=t,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏加载动画",unchecked:()=>"显示加载动画"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{loading:this.loading,options:this.baseOptions},null)])]}),Vue.createVNode(naive.NCard,{title:"贴画可视化图"},{default:()=>[Vue.createVNode(naive.NSwitch,{value:this.chartAria,"onUpdate:value":t=>this.chartAria=t,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"隐藏贴花",unchecked:()=>"显示贴花"}),Vue.createVNode("div",{class:"chart--container"},[Vue.createVNode(a,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{z as default}; diff --git a/js/index-ZAONhno3.js.gz b/js/index-ZAONhno3.js.gz new file mode 100644 index 00000000..66149c3c Binary files /dev/null and b/js/index-ZAONhno3.js.gz differ diff --git a/js/index-ZQp8r9U7.js.gz b/js/index-ZQp8r9U7.js.gz deleted file mode 100644 index be210be5..00000000 Binary files a/js/index-ZQp8r9U7.js.gz and /dev/null differ diff --git a/js/index-_7rv9kmG.js.gz b/js/index-_7rv9kmG.js.gz deleted file mode 100644 index 371fb470..00000000 Binary files a/js/index-_7rv9kmG.js.gz and /dev/null differ diff --git a/js/index-B-JIDxHH.js b/js/index-g1xWjPrC.js similarity index 94% rename from js/index-B-JIDxHH.js rename to js/index-g1xWjPrC.js index 71c9b932..e80988d5 100644 --- a/js/index-B-JIDxHH.js +++ b/js/index-g1xWjPrC.js @@ -1 +1 @@ -import{x as d}from"./hooks-BFGxA73i.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const A=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),u=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:r,y:i,show:a,updateShow:t}=d(e);return{demoOneRef:e,demoOneShow:o,x:r,y:i,show:a,options:u,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:u}=this,{clickOutside:r,updateShow:i}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:u,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),i(!1)},onClickoutside:r.bind(this)},null)]})}});export{A as default}; +import{z as d}from"./hooks-BGLytdb9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const A=Vue.defineComponent({name:"ContextMenuDemo",setup(){const e=Vue.ref(),o=Vue.ref(!1),u=Vue.ref([{label:"杰·盖茨比",key:"jay gatsby"},{label:"黛西·布坎南",key:"daisy buchanan"},{type:"divider",key:"d1"},{label:"尼克·卡拉威",key:"nick caraway"}]),{x:r,y:i,show:a,updateShow:t}=d(e);return{demoOneRef:e,demoOneShow:o,x:r,y:i,show:a,options:u,clickOutside:n=>{n.preventDefault(),t(!1)},updateShow:t}},render(){const{x:e,y:o,show:u}=this,{clickOutside:r,updateShow:i}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(naive.NCard,{title:"useContextmenuCoordinate + NDropdown 实现右键菜单"},{default:()=>[Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("默认点击元素外部会关闭菜单。")]),Vue.createVNode("div",{ref:"demoOneRef",style:"width: 100%; height: 200px; background-color: rgba(0, 128, 0, 0.5)"},[Vue.createTextVNode("右击")])]})]}),Vue.createVNode(naive.NDropdown,{show:u,x:e,y:o,options:this.options,trigger:"manual",placement:"bottom-start",onSelect:(a,t)=>{window.$message.info(`选中了 ${t.label}`),i(!1)},onClickoutside:r.bind(this)},null)]})}});export{A as default}; diff --git a/js/index-g1xWjPrC.js.gz b/js/index-g1xWjPrC.js.gz new file mode 100644 index 00000000..b9f4679d Binary files /dev/null and b/js/index-g1xWjPrC.js.gz differ diff --git a/js/index-_7rv9kmG.js b/js/index-mtfnxTVB.js similarity index 93% rename from js/index-_7rv9kmG.js rename to js/index-mtfnxTVB.js index f3864ba2..279e86cb 100644 --- a/js/index-_7rv9kmG.js +++ b/js/index-mtfnxTVB.js @@ -1 +1 @@ -import"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as u,g as r,l as a,x as o}from"./utils-B_NGfO2V.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const P=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{u("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=r("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{P as default}; +import"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{s as u,g as r,l as a,x as o}from"./utils-CZebg5KX.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const P=Vue.defineComponent({name:"CacheDemo",setup(){const e=Vue.ref("Ray"),t=Vue.ref("ray:");return{nameValue:e,currentPrefix:t}},render(){return Vue.createVNode(naive.NCard,{title:"cache 工具包示例"},{default:()=>Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode("h3",null,[Vue.createTextVNode("点击 setStorage 按钮,设置缓存示例")]),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置缓存内容")]}),Vue.createVNode(naive.NInput,{value:this.nameValue,"onUpdate:value":e=>this.nameValue=e,placeholder:"请输入姓名"},null)]}),Vue.createVNode(naive.NInputGroup,null,{default:()=>[Vue.createVNode(naive.NInputGroupLabel,null,{default:()=>[Vue.createTextVNode("设置前缀")]}),Vue.createVNode(naive.NInput,{value:this.currentPrefix,"onUpdate:value":e=>this.currentPrefix=e,placeholder:"请输入前缀"},null)]})]}),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{onClick:()=>{u("name",this.nameValue,"sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("设置成功")}},{default:()=>[Vue.createTextVNode("setStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=r("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`获取到的姓名为:${e}`)}},{default:()=>[Vue.createTextVNode("getStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{a("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix}),window.$message.success("删除成功")}},{default:()=>[Vue.createTextVNode("removeStorage")]}),Vue.createVNode(naive.NButton,{onClick:()=>{const e=o("name","sessionStorage",{prefix:!0,prefixKey:this.currentPrefix});window.$message.success(`是否存在:${e}`)}},{default:()=>[Vue.createTextVNode("hasStorage")]})]})})}});export{P as default}; diff --git a/js/index-mtfnxTVB.js.gz b/js/index-mtfnxTVB.js.gz new file mode 100644 index 00000000..091a7bfb Binary files /dev/null and b/js/index-mtfnxTVB.js.gz differ diff --git a/js/index-B47naHKJ.js b/js/index-pQyv_gpc.js similarity index 84% rename from js/index-B47naHKJ.js rename to js/index-pQyv_gpc.js index 5ec8151d..77a35f58 100644 --- a/js/index-B47naHKJ.js +++ b/js/index-pQyv_gpc.js @@ -1 +1 @@ -import{H as i}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const F=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{F as default}; +import{J as i}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./interactjs@1.10.26-V8skghJH.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const H=Vue.defineComponent({name:"RouterDemoHome",setup(){const t=VueRouter.useRouter(),r=Vue.ref([{title:"姓名",key:"name"},{title:"地址",key:"address"},{title:"联系方式",key:"phone"},{title:"操作",key:"",render:e=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[Vue.createVNode(naive.NButton,{type:"info",text:!0,size:"tiny",onClick:()=>{t.push({path:"/router-demo/router-demo-detail",query:{name:e.name}})}},{default:()=>[Vue.createTextVNode("详情")]})]})}]),o=[];for(let e=0;e<10;e++)o.push({name:"张三"+e,address:"New York No. 1 Lake Park",phone:"010-121212",key:e});return{dataSource:o,columns:r}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(i,{columns:this.columns,"onUpdate:columns":t=>this.columns=t,data:this.dataSource},null)]})}});export{H as default}; diff --git a/js/index-pQyv_gpc.js.gz b/js/index-pQyv_gpc.js.gz new file mode 100644 index 00000000..54965890 Binary files /dev/null and b/js/index-pQyv_gpc.js.gz differ diff --git a/js/index-saB8SoC_.js.gz b/js/index-saB8SoC_.js.gz deleted file mode 100644 index 8267eae7..00000000 Binary files a/js/index-saB8SoC_.js.gz and /dev/null differ diff --git a/js/instance-ClAhwUsY.js b/js/instance-B7DjWjPE.js similarity index 93% rename from js/instance-ClAhwUsY.js rename to js/instance-B7DjWjPE.js index 96966321..bcfa97b7 100644 --- a/js/instance-ClAhwUsY.js +++ b/js/instance-B7DjWjPE.js @@ -1 +1 @@ -import{I as t,J as n,e as R,K as q}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as d}from"./utils-B_NGfO2V.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},v=(e,r)=>{t.removePendingRequest(e)},g=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{g(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[f,P],implementRequestInterceptorErrorArray:[v]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; +import{K as t,N as n,e as R,O as q}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{g as d}from"./utils-CZebg5KX.js";import"./currency.js@2.0.4-9OAR_aOO.js";const A=(e,r)=>{t.removePendingRequest(e)},y=(e,r)=>{t.removePendingRequest(e)},p={implementResponseInterceptorArray:[A],implementResponseInterceptorErrorArray:[y]},{setImplement:m}=n(),E=()=>{const{implementResponseInterceptorArray:e}=p;m("implementResponseInterceptorArray",e,"ok")},k=()=>{const{implementResponseInterceptorErrorArray:e}=p;m("implementResponseInterceptorErrorArray",e,"error")},P=(e,r)=>{t.removePendingRequest(e),t.addPendingRequest(e)},v=(e,r)=>{t.removePendingRequest(e)},g=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=d(R.token);return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{g(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[f,P],implementRequestInterceptorErrorArray:[v]},{setImplement:a}=n(),H=()=>{const{implementRequestInterceptorArray:e}=c;a("implementRequestInterceptorArray",e,"ok")},j=()=>{const{implementRequestInterceptorErrorArray:e}=c;a("implementRequestInterceptorErrorArray",e,"error")},i=axios.create(q),{createAxiosInstance:u,beforeFetch:l,fetchError:I}=n();i.interceptors.request.use(e=>(u(e,"requestInstance"),H(),l("requestInstance","implementRequestInterceptorArray","ok"),e),e=>(j(),I("requestError",e,"implementRequestInterceptorErrorArray"),Promise.reject(e)));i.interceptors.response.use(e=>{u(e,"responseInstance"),E(),l("responseInstance","implementResponseInterceptorArray","ok");const{data:r}=e;return Promise.resolve(r)},e=>(k(),I("responseError",e,"implementResponseInterceptorErrorArray"),Promise.reject(e)));export{i as s}; diff --git a/js/instance-B7DjWjPE.js.gz b/js/instance-B7DjWjPE.js.gz new file mode 100644 index 00000000..60a725c9 Binary files /dev/null and b/js/instance-B7DjWjPE.js.gz differ diff --git a/js/instance-ClAhwUsY.js.gz b/js/instance-ClAhwUsY.js.gz deleted file mode 100644 index 788afc8e..00000000 Binary files a/js/instance-ClAhwUsY.js.gz and /dev/null differ diff --git a/js/utils-B_NGfO2V.js.gz b/js/utils-B_NGfO2V.js.gz deleted file mode 100644 index 8121893f..00000000 Binary files a/js/utils-B_NGfO2V.js.gz and /dev/null differ diff --git a/js/utils-B_NGfO2V.js b/js/utils-CZebg5KX.js similarity index 99% rename from js/utils-B_NGfO2V.js rename to js/utils-CZebg5KX.js index b63f2c0b..272b2b3b 100644 --- a/js/utils-B_NGfO2V.js +++ b/js/utils-CZebg5KX.js @@ -1 +1 @@ -import{o as x,c as b}from"./lodash-es@4.17.21-Dos9GOhk.js";import{u as A,a as I,b as $,L as C,S as v,A as h,c as R}from"./hooks-BFGxA73i.js";import{c as l}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./print-js@1.6.0-BdoEj60G.js";const X=(e,r)=>{var o;const{domToImageOptions:t,printOptions:s}=r??{},{create:n}=A(e,{...t,beforeCreate:i=>{var a,c;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,i),(c=window.$loadingBar)==null||c.start()},created(i,a){var c,f;(c=t==null?void 0:t.created)==null||c.call(t,i,a),(f=window.$loadingBar)==null||f.finish()},createdError(i){var a,c;(a=t==null?void 0:t.createdError)==null||a.call(t,i),(c=window.$loadingBar)==null||c.error()}});(o=n("jpeg"))==null||o.then(i=>{const{print:a}=I(i,{type:"image",base64:!0,targetStyles:["*"],...x(s,["type","base64"])});a()})},P=".n-menu-item-content--selected",V="n-menu-item",Y=()=>{const e=d(C),r=e==null?void 0:e.querySelector(P),t=d(v);let s=0;const n=e==null?void 0:e.querySelector(V);if(t){const{height:o}=t.getBoundingClientRect();s=o}if(r&&e){const o=$(),{top:i}=e.getBoundingClientRect(),{top:a}=r.getBoundingClientRect(),c=e.scrollTop,f=n?parseInt(window.getComputedStyle(n).marginTop):6;o({top:a-i+c-s-f,left:0,behavior:"smooth"})}};var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{}),L={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const G=()=>L,H=(e,r)=>{const t=document.createElement("a");t.href=e,t.download=r,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},S=(e,r)=>Object.prototype.toString.call(e).includes(r),J=(e=16,r=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[],n=window.crypto||window.msCrypto;let o=0;for(o=0;o{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},Q=(e,r)=>{const t=e.split("?").filter(Boolean)[0],s=r.split("?").filter(Boolean)[0],n=/\/$/;return t.replace(n,"")===s.replace(n,"")};function Z(e,r="sessionStorage",t){const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=r==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===o+e)}function z(e,r,t="sessionStorage",s){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:n,prefixKey:o}=s??{},i=n?o||h:"";try{const a=JSON.stringify(r);t==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function ee(e,r="sessionStorage",t){const{prefix:s,prefixKey:n,defaultValue:o}=t??{},i=s?n||h:"";try{const a=r==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?o??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),o??null}}const te=(e,r,t)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(f,w)=>{(f?[...a,...i]:w==="localStorage"?i:a).forEach(p=>{e==="__all__"?(window.sessionStorage.removeItem(o+p),window.localStorage.removeItem(o+p)):w==="localStorage"?window.localStorage.removeItem(o+p):window.sessionStorage.removeItem(o+p)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:r==="localStorage"?window.localStorage.removeItem(o+e):window.sessionStorage.removeItem(o+e);break}},re=(e,r)=>{const t=()=>{const n=d(e);n&&(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.add(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});g(s)},ne=(e,r)=>{const t=()=>{const n=d(e);if(n)if(r==="removeAllClass"){const o=n.classList;o.forEach(i=>o.remove(i))}else(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.remove(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});g(s)},se=(e,r)=>{const t=Vue.ref(!1),s=()=>{const o=d(e);if(!o)t.value=!1;else{const i=o.className,a=typeof r=="string"?r.trim().split(" ").filter(c=>c!==""):r;t.value=a.some(c=>i.includes(c))}},n=Vue.watch(()=>d(e),s,{immediate:!0});return g(n),t},k=e=>{const r=["webkit","moz","ms","o"],t={};return r.forEach(s=>{t[`${s}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},oe=(e,r)=>{const t=(o,i)=>{o.split(";").forEach(a=>{const[c,f]=a.split(":");if(c&&f){const w=c.trim(),_=f.trim();if(c.startsWith("--"))i.style.setProperty(w,_);else if(c.startsWith("-"))i.style[c]=f;else{const p=k(w);Object.keys(p).forEach(E=>{i.style[E]=p[E]}),i.style[w]=_}}})},s=()=>{const o=d(e);o&&(S(r,"String")?t(r,o):S(r,"Array")?r.forEach(i=>{t(i,o)}):Object.keys(r).forEach(a=>{t(`${a}: ${r[a]}`,o)}))},n=Vue.watch(()=>d(e),s,{immediate:!0});g(n)},ie=(e,r=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${r})`);if(e.includes("#")){const t=e.replace("#","");switch(t.length){case 3:return`rgba(${parseInt(t[0]+t[0],16)}, ${parseInt(t[1]+t[1],16)}, ${parseInt(t[2]+t[2],16)}, ${r})`;case 6:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${r})`;case 8:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${(parseInt(t.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},ae=(e,r)=>{const{defaultElement:t}=r||{};if(!e)return t?[t]:null;const s=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const n=Array.from(document.querySelectorAll(s));return!n.length&&t?[t]:n}catch(n){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,n),t?[t]:null}},ce=(e,r="px")=>e==="auto"?e:typeof e=="number"?e.toString()+r:S(e,"String")&&R.cssUnit.test(e)?e:e+r,u={precision:8,decimal:"."},y=(e,r,t)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((n,o,i,a)=>(n=t==null?void 0:t(n,o,i,a),n),r):0,j=(e,r)=>{const t=Object.assign({},u,r),s=l(e,t),{type:n="number"}=t;return n==="number"?s.value:s.toString()},le=(...e)=>e.length===1?l(e[0],u).add(0):y(e,0,(r,t)=>l(r,u).add(t)),ue=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[s,n]=e;return l(s,u).subtract(n)}const r=b(e),t=r.shift();return r.length?y(r,t,(s,n)=>l(s,u).subtract(n)):t},fe=(...e)=>e.length===1?l(e[0],u).multiply(1):y(e,1,(r,t)=>l(r,u).multiply(t)),de=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[s,n]=e;return l(s,u).divide(n)}const r=b(e),t=r.shift();return y(r,t,(s,n)=>l(s,u).divide(n))},pe=(e,r,t)=>{if(r<=1)return[e||0];if(!e)return new Array(r).fill(0);const s=Object.assign({},u,t);return l(e,s).distribute(r).map(o=>j(o,s))};function B(e,...r){if(Array.isArray(e))e.forEach(t=>B(t,...r));else return e(...r)}function d(e,r){var s;if(!e)return r;let t;return typeof e=="function"?t=e():Vue.isRef(e)?t=((s=e.value)==null?void 0:s.$el)??e.value:t=e,t}function me(e,r){if(!e){const{defaultElement:t=null}=r??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function g(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function we(e,r){const t=Vue.watchEffect(e,r);g(t)}export{le as A,ue as B,fe as C,de as D,G as a,ce as b,ie as c,B as d,H as e,oe as f,ee as g,re as h,S as i,g as j,Q as k,te as l,Y as m,ne as n,N as o,X as p,ae as q,me as r,z as s,se as t,J as u,d as v,we as w,Z as x,j as y,pe as z}; +import{o as x,c as b}from"./lodash-es@4.17.21-Dos9GOhk.js";import{u as A,a as I,b as $,L as C,S as v,A as h,c as R}from"./hooks-BGLytdb9.js";import{c as l}from"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./print-js@1.6.0-BdoEj60G.js";const X=(e,r)=>{var o;const{domToImageOptions:t,printOptions:s}=r??{},{create:n}=A(e,{...t,beforeCreate:i=>{var a,c;(a=t==null?void 0:t.beforeCreate)==null||a.call(t,i),(c=window.$loadingBar)==null||c.start()},created(i,a){var c,f;(c=t==null?void 0:t.created)==null||c.call(t,i,a),(f=window.$loadingBar)==null||f.finish()},createdError(i){var a,c;(a=t==null?void 0:t.createdError)==null||a.call(t,i),(c=window.$loadingBar)==null||c.error()}});(o=n("jpeg"))==null||o.then(i=>{const{print:a}=I(i,{type:"image",base64:!0,targetStyles:["*"],...x(s,["type","base64"])});a()})},P=".n-menu-item-content--selected",V="n-menu-item",Y=()=>{const e=d(C),r=e==null?void 0:e.querySelector(P),t=d(v);let s=0;const n=e==null?void 0:e.querySelector(V);if(t){const{height:o}=t.getBoundingClientRect();s=o}if(r&&e){const o=$(),{top:i}=e.getBoundingClientRect(),{top:a}=r.getBoundingClientRect(),c=e.scrollTop,f=n?parseInt(window.getComputedStyle(n).marginTop):6;o({top:a-i+c-s-f,left:0,behavior:"smooth"})}};var m=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(m||{}),L={VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const G=()=>L,H=(e,r)=>{const t=document.createElement("a");t.href=e,t.download=r,t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},S=(e,r)=>Object.prototype.toString.call(e).includes(r),J=(e=16,r=62)=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[],n=window.crypto||window.msCrypto;let o=0;for(o=0;o{const e=navigator.userAgent;return/windows/i.test(e)?m.Windows:/macintosh|mac os x/i.test(e)?m.MacOS:/linux/i.test(e)?m.Linux:/android/i.test(e)?m.Android:/iphone|ipad|ipod/i.test(e)?m.IOS:m.Unknown},Q=(e,r)=>{const t=e.split("?").filter(Boolean)[0],s=r.split("?").filter(Boolean)[0],n=/\/$/;return t.replace(n,"")===s.replace(n,"")};function Z(e,r="sessionStorage",t){const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=r==="localStorage"?window.localStorage:window.sessionStorage;return!!Object.keys(i).find(a=>a===o+e)}function z(e,r,t="sessionStorage",s){if(!e){console.error(`[setStorage]: Failed to set stored data: key ${e} is empty`);return}const{prefix:n,prefixKey:o}=s??{},i=n?o||h:"";try{const a=JSON.stringify(r);t==="localStorage"?window.localStorage.setItem(i+e,a):window.sessionStorage.setItem(i+e,a)}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function ee(e,r="sessionStorage",t){const{prefix:s,prefixKey:n,defaultValue:o}=t??{},i=s?n||h:"";try{const a=r==="localStorage"?window.localStorage.getItem(i+e):window.sessionStorage.getItem(i+e);return a===null?o??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),o??null}}const te=(e,r,t)=>{if(!e){console.error(`[removeStorage]: Failed to remove stored data: key ${e} is empty or undefined`);return}const{prefix:s,prefixKey:n}=t??{},o=s?n||h:"",i=Object.keys(window.localStorage),a=Object.keys(window.sessionStorage),c=(f,w)=>{(f?[...a,...i]:w==="localStorage"?i:a).forEach(p=>{e==="__all__"?(window.sessionStorage.removeItem(o+p),window.localStorage.removeItem(o+p)):w==="localStorage"?window.localStorage.removeItem(o+p):window.sessionStorage.removeItem(o+p)})};switch(e){case"__all__":c(!0);break;case"__all_sessionStorage__":c(!1,"sessionStorage");break;case"__all_localStorage__":c(!1,"localStorage");break;default:r==="localStorage"?window.localStorage.removeItem(o+e):window.sessionStorage.removeItem(o+e);break}},re=(e,r)=>{const t=()=>{const n=d(e);n&&(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.add(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});g(s)},ne=(e,r)=>{const t=()=>{const n=d(e);if(n)if(r==="removeAllClass"){const o=n.classList;o.forEach(i=>o.remove(i))}else(typeof r=="string"?r.trim().split(" "):r).forEach(i=>{i&&n.classList.remove(i)})},s=Vue.watch(()=>d(e),t,{immediate:!0});g(s)},se=(e,r)=>{const t=Vue.ref(!1),s=()=>{const o=d(e);if(!o)t.value=!1;else{const i=o.className,a=typeof r=="string"?r.trim().split(" ").filter(c=>c!==""):r;t.value=a.some(c=>i.includes(c))}},n=Vue.watch(()=>d(e),s,{immediate:!0});return g(n),t},k=e=>{const r=["webkit","moz","ms","o"],t={};return r.forEach(s=>{t[`${s}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),t[e]=e,t},oe=(e,r)=>{const t=(o,i)=>{o.split(";").forEach(a=>{const[c,f]=a.split(":");if(c&&f){const w=c.trim(),_=f.trim();if(c.startsWith("--"))i.style.setProperty(w,_);else if(c.startsWith("-"))i.style[c]=f;else{const p=k(w);Object.keys(p).forEach(E=>{i.style[E]=p[E]}),i.style[w]=_}}})},s=()=>{const o=d(e);o&&(S(r,"String")?t(r,o):S(r,"Array")?r.forEach(i=>{t(i,o)}):Object.keys(r).forEach(a=>{t(`${a}: ${r[a]}`,o)}))},n=Vue.watch(()=>d(e),s,{immediate:!0});g(n)},ie=(e,r=1)=>{if(e.includes("rgba"))return e;if(e.includes("rgb"))return e.replace("rgb","rgba").replace(")",`, ${r})`);if(e.includes("#")){const t=e.replace("#","");switch(t.length){case 3:return`rgba(${parseInt(t[0]+t[0],16)}, ${parseInt(t[1]+t[1],16)}, ${parseInt(t[2]+t[2],16)}, ${r})`;case 6:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${r})`;case 8:return`rgba(${parseInt(t.slice(0,2),16)}, ${parseInt(t.slice(2,4),16)}, ${parseInt(t.slice(4,6),16)}, ${(parseInt(t.slice(6,8),16)/255).toFixed(2)})`;default:return e}}return e},ae=(e,r)=>{const{defaultElement:t}=r||{};if(!e)return t?[t]:null;const s=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const n=Array.from(document.querySelectorAll(s));return!n.length&&t?[t]:n}catch(n){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,n),t?[t]:null}},ce=(e,r="px")=>e==="auto"?e:typeof e=="number"?e.toString()+r:S(e,"String")&&R.cssUnit.test(e)?e:e+r,u={precision:8,decimal:"."},y=(e,r,t)=>e!=null&&e.length?e.length===1?l(e[0],u):e.reduce((n,o,i,a)=>(n=t==null?void 0:t(n,o,i,a),n),r):0,j=(e,r)=>{const t=Object.assign({},u,r),s=l(e,t),{type:n="number"}=t;return n==="number"?s.value:s.toString()},le=(...e)=>e.length===1?l(e[0],u).add(0):y(e,0,(r,t)=>l(r,u).add(t)),ue=(...e)=>{if(e.length===1)return l(e[0],u).subtract(0);if(e.length===2){const[s,n]=e;return l(s,u).subtract(n)}const r=b(e),t=r.shift();return r.length?y(r,t,(s,n)=>l(s,u).subtract(n)):t},fe=(...e)=>e.length===1?l(e[0],u).multiply(1):y(e,1,(r,t)=>l(r,u).multiply(t)),de=(...e)=>{if(e.length===1)return l(e[0],u).divide(1);if(e.length===2){const[s,n]=e;return l(s,u).divide(n)}const r=b(e),t=r.shift();return y(r,t,(s,n)=>l(s,u).divide(n))},pe=(e,r,t)=>{if(r<=1)return[e||0];if(!e)return new Array(r).fill(0);const s=Object.assign({},u,t);return l(e,s).distribute(r).map(o=>j(o,s))};function B(e,...r){if(Array.isArray(e))e.forEach(t=>B(t,...r));else return e(...r)}function d(e,r){var s;if(!e)return r;let t;return typeof e=="function"?t=e():Vue.isRef(e)?t=((s=e.value)==null?void 0:s.$el)??e.value:t=e,t}function me(e,r){if(!e){const{defaultElement:t=null}=r??{};return typeof t=="function"?t:()=>t}if(typeof e=="string"||S(e,"Object"))return()=>e;if(typeof e=="function")return e}function g(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function we(e,r){const t=Vue.watchEffect(e,r);g(t)}export{le as A,ue as B,fe as C,de as D,G as a,ce as b,ie as c,B as d,H as e,oe as f,ee as g,re as h,S as i,g as j,Q as k,te as l,Y as m,ne as n,N as o,X as p,ae as q,me as r,z as s,se as t,J as u,d as v,we as w,Z as x,j as y,pe as z}; diff --git a/js/utils-CZebg5KX.js.gz b/js/utils-CZebg5KX.js.gz new file mode 100644 index 00000000..da12ddbd Binary files /dev/null and b/js/utils-CZebg5KX.js.gz differ diff --git a/js/zh-CN-BJn4N-5B.js.gz b/js/zh-CN-BJn4N-5B.js.gz deleted file mode 100644 index 01341278..00000000 Binary files a/js/zh-CN-BJn4N-5B.js.gz and /dev/null differ diff --git a/js/zh-CN-BJn4N-5B.js b/js/zh-CN-C_apBV4j.js similarity index 86% rename from js/zh-CN-BJn4N-5B.js rename to js/zh-CN-C_apBV4j.js index 7c43811d..33e37cc2 100644 --- a/js/zh-CN-BJn4N-5B.js +++ b/js/zh-CN-C_apBV4j.js @@ -1 +1 @@ -import{v as Y}from"./hooks-BFGxA73i.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-B_NGfO2V.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const e="当前环境不支持全屏",Z={isEnabledFullscreen:e},ee=Object.freeze(Object.defineProperty({__proto__:null,default:Z,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",oe={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},te=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:oe},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ne={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},ce=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ne},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",O="文档 (加速地址)",T="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",v="模态框",M="多级菜单(缓存)",P="办公",j="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",F="分段器",x="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",se={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:v,MultiMenu:M,Office:P,Office_Document:j,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,scrollReveal:E},ie=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:C,Form:y,Mock:D,Modal:v,MultiMenu:M,Office:P,Office_Document:j,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:F,SvgIcon:x,Table:w,TemplateHooks:A,default:se,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),G="项目配置",Q={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},$="界面显示",le={Title:G,ThemeOptions:Q,InterfaceDisplay:$},re=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:$,ThemeOptions:Q,Title:G,default:le},Symbol.toStringTag,{value:"Module"})),B="注册",H="登录",V="扫码登陆",q="请输入用户名",J="请输入密码",K="登 陆",U="用户名",W="密码",X="开箱即用的中后台管理系统",ae={Register:B,Signing:H,QRCodeSigning:V,NamePlaceholder:q,PasswordPlaceholder:J,Login:K,Name:U,Password:W,RayTemplate:X},_e=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:U,NamePlaceholder:q,Password:W,PasswordPlaceholder:J,QRCodeSigning:V,RayTemplate:X,Register:B,Signing:H,default:ae},Symbol.toStringTag,{value:"Module"})),me=Object.assign({"./zh-CN/globalMessage.json":ee,"./zh-CN/headerSettingOptions.json":te,"./zh-CN/headerTooltip.json":ce,"./zh-CN/menu.json":ie,"./zh-CN/setting.json":re,"./zh-CN/views/login/index.json":_e}),ke={message:{...Y(me,"zh-CN")}};export{ke as default}; +import{x as Y}from"./hooks-BGLytdb9.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.1.0_vue@3.4.26-CIuz-_xn.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-Dos9GOhk.js";import"./@vueuse_core@10.9.0_vue@3.4.26-BxvIaqQO.js";import"./@vueuse_shared@10.9.0_vue@3.4.26-7aSumFzu.js";import"./utils-CZebg5KX.js";import"./interactjs@1.10.26-V8skghJH.js";import"./call-bind@1.0.7-Cpj98o6Y.js";import"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import"./dom-to-image@2.6.0-DCOFUeQU.js";import"./echarts@5.5.0-BEyY33Zi.js";import"./zrender@5.5.0-JN1hODMT.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.26-Cq5aFJKF.js";import"./@vue_reactivity@3.4.26-DTbxPGxS.js";import"./@vue_shared@3.4.26-DWpY0PUk.js";const e="当前环境不支持全屏",Z={isEnabledFullscreen:e},ee=Object.freeze(Object.defineProperty({__proto__:null,default:Z,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",oe={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},te=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:oe},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ne={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},ce=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ne},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",O="文档 (加速地址)",T="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",M="模态框",P="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",x="分段器",F="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",se={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:M,MultiMenu:P,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:x,SvgIcon:F,Table:w,TemplateHooks:A,scrollReveal:E},ie=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:O,DocLocalInside:T,Echart:C,Form:y,Mock:D,Modal:M,MultiMenu:P,Office:j,Office_Document:v,Office_Presentation:R,Office_Spreadsheet:z,QRCode:N,Rely:I,RelyAbout:L,RouterDemo:k,Segment:x,SvgIcon:F,Table:w,TemplateHooks:A,default:se,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),G="项目配置",Q={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},$="界面显示",le={Title:G,ThemeOptions:Q,InterfaceDisplay:$},re=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:$,ThemeOptions:Q,Title:G,default:le},Symbol.toStringTag,{value:"Module"})),B="注册",H="登录",V="扫码登陆",q="请输入用户名",J="请输入密码",K="登 陆",U="用户名",W="密码",X="开箱即用的中后台管理系统",ae={Register:B,Signing:H,QRCodeSigning:V,NamePlaceholder:q,PasswordPlaceholder:J,Login:K,Name:U,Password:W,RayTemplate:X},_e=Object.freeze(Object.defineProperty({__proto__:null,Login:K,Name:U,NamePlaceholder:q,Password:W,PasswordPlaceholder:J,QRCodeSigning:V,RayTemplate:X,Register:B,Signing:H,default:ae},Symbol.toStringTag,{value:"Module"})),me=Object.assign({"./zh-CN/globalMessage.json":ee,"./zh-CN/headerSettingOptions.json":te,"./zh-CN/headerTooltip.json":ce,"./zh-CN/menu.json":ie,"./zh-CN/setting.json":re,"./zh-CN/views/login/index.json":_e}),ke={message:{...Y(me,"zh-CN")}};export{ke as default}; diff --git a/js/zh-CN-C_apBV4j.js.gz b/js/zh-CN-C_apBV4j.js.gz new file mode 100644 index 00000000..c5d20b7b Binary files /dev/null and b/js/zh-CN-C_apBV4j.js.gz differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index b44dc42f..ddcd1af4 100644 --- a/mockServer/mock-data.js +++ b/mockServer/mock-data.js @@ -4,7 +4,7 @@ var __export = (target, all) => { __defProp(target, name, { get: all[name], enumerable: true }); }; -// mock-data-1715931261786.js +// mock-data-1716802866761.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1715931261786.js +// mock-data-1716802866761.js var exporters = [person_mock_exports]; var mockList = exporters.map((raw) => { let mockConfig; @@ -99,7 +99,7 @@ var mockList = exporters.map((raw) => { } return mockConfig; }); -var mock_data_1715931261786_default = transformMockData(mockList); +var mock_data_1716802866761_default = transformMockData(mockList); export { - mock_data_1715931261786_default as default + mock_data_1716802866761_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 4611ea4c..384f4959 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ