diff --git a/css/hooks-Cqe-s-rU.css b/css/hooks-Cqe-s-rU.css deleted file mode 100644 index 9d771550..00000000 --- a/css/hooks-Cqe-s-rU.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;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 deleted file mode 100644 index 198c3151..00000000 Binary files a/css/hooks-Cqe-s-rU.css.gz and /dev/null differ diff --git a/css/hooks-Ds7YEzcf.css b/css/hooks-Ds7YEzcf.css new file mode 100644 index 00000000..998b8c83 --- /dev/null +++ b/css/hooks-Ds7YEzcf.css @@ -0,0 +1 @@ +@charset "UTF-8";.ray-chart{width:var(--ray-chart-width);height:var(--ray-chart-height);border:none;outline:none;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%;box-sizing:border-box}.ray-collapse-grid{box-sizing:border-box}.ray-collapse-grid .collapse-icon{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items: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);transform:rotate(270deg)}.ray-collapse-grid .collapse-icon>.collapse-icon--arrow.collapse-icon--arrow__expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ray-collapse-grid .ray-collapse-grid__suffix--btn{-webkit-align-self:var(--r-collapse-grid-action-align);align-self:var(--r-collapse-grid-action-align)}.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:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items: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);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);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(4px);filter:blur(4px)}.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:16px}.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{box-shadow:0 -1px 2px #0000001f}.ray-template--dark .r-layout-full__viewer-content{box-shadow:0 -1px 2px #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{box-shadow:2px 0 8px #0000001f}.ray-template--dark .app-menu__sider{box-shadow:2px 0 8px #000000b8}.ray-menu__logo{height:64px;padding:0 18px 0 24px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;gap:8px 12px;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;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{box-sizing:border-box}.content-wrapper[v-cloak]{display:none}.r-layout-full__viewer-content--maximize .layout-content__maximize-out{position:fixed;width:80px;height:80px;border-radius:50%;cursor:pointer;z-index:99;right:-40px;top:-40px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items: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(-14px,14px);transform:translate(-14px,14px)}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:48px;text-align:center;line-height:48px}.ray-template--dark .layout-footer-wrapper{background-color:#18181c}.ray-template--light .layout-footer-wrapper{background-color:#fff}.layout-header{height:64px;padding:0 18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.layout-header>.layout-header__method{width:100%}.ray-template--light .layout-header{box-shadow:0 1px 2px #0000001f}.ray-template--dark .layout-header{box-shadow:0 1px 2px #000000b8}.override-button__layout{padding:0 9px}.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:flex!important;-webkit-box-pack:justify;-webkit-justify-content:space-between;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(20px);transform:translate(20px)}.n-breadcrumb .n-breadcrumb-item.breadcrumb-leave-active{position:absolute}.global-search{position:fixed;width:650px;left:50%;margin-left:-325px;top:60px}.global-search .global-search__wrapper{box-sizing:border-box}.global-search .global-search__wrapper .global-search__card{border-radius:6px;min-width:560px}.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:8px 12px}.global-search .global-search__wrapper .global-search__card .n-card__content,.global-search .global-search__wrapper .global-search__card .n-spin-content{min-height:90px}.global-search .global-search__wrapper .global-search__card .content-item{padding:12px;border-radius:6px;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:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.global-search .global-search__wrapper .global-search__card .item-icon{min-width:24px;border-radius:4px;border:1px solid var(--n-border-color);padding:3px 6px;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);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:18px;height:18px;right:16px;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:22px;padding:0 6px;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:inline-flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-flex-shrink:0;flex-shrink:0;-webkit-box-align:center;-webkit-align-items: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:46px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:6px 0}.menu-tag .menu-tag-space{width:calc(100% - 18px);padding:9px}.menu-tag .menu-tag-space .menu-tag-wrapper{width:calc(100% - 94px)}.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);transform:rotate(180deg)}.menu-tag .menu-tag-space .menu-tag__right-wrapper .menu-tag__right-setting{width:28px;height:20px}.menu-tag .n-tag{cursor:pointer}.menu-tag .menu-tag__btn{padding:7px 10px}.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{width:11px!important;height:11px!important}.menu-tag .menu-tag__btn:hover .menu-tag__btn-icon{width:14px;height:14px;margin-left:5px;font-size:12px;background-color:#0000001f;border-radius:50%;padding:1px;-webkit-transition:all .3s var(--r-bezier);transition:all .3s var(--r-bezier);opacity:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.menu-tag__dropdown .menu-tag__icon{width:18px;height:18px}.menu-tag__right-setting--spinning{-webkit-animation:elementRotate .8s linear infinite;animation:elementRotate .8s linear infinite}.ray-template--light .menu-tag{box-shadow:0 2px 2px #0000001f}.ray-template--dark .menu-tag{box-shadow:0 2px 2px #000000b8} diff --git a/css/hooks-Ds7YEzcf.css.gz b/css/hooks-Ds7YEzcf.css.gz new file mode 100644 index 00000000..fbf84656 Binary files /dev/null and b/css/hooks-Ds7YEzcf.css.gz differ diff --git a/css/index-74sXJ5VP.css b/css/index-74sXJ5VP.css new file mode 100644 index 00000000..66145b73 --- /dev/null +++ b/css/index-74sXJ5VP.css @@ -0,0 +1 @@ +.login{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;overflow:hidden}.login .login-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";position:absolute;width:var(--login-height);height:2px;background:-webkit-linear-gradient(315deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),-webkit-linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background:linear-gradient(135deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background-size:1em 1em;background-repeat:repeat-x,repeat-x;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:0;transform-origin:0;left:50%}.login .login-wrapper .login-title__wrapper{position:absolute;left:24px;top:24px}.login .login-wrapper .login-action__wrapper{position:absolute;height:54.4px;right:24px;top:24px}.login .login-wrapper .login-copyright__wrapper{position:absolute;width:100%;text-align:center;bottom:24px;font-size:14px}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .n-grid{height:100%}.login .login-wrapper .login-wrapper__content .login__left-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-transition:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier)}.login .login-wrapper .login-wrapper__content .login__right-wrapper{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{width:50%;background-color:transparent}.ray-template--light .login__left-wrapper{background-color:#2080f038}.ray-template--light .login__right-wrapper{background-color:#fff}.ray-template--dark .login__left-wrapper{background-color:#2c354b}.ray-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (max-width: 1200px){.login__left-wrapper{display:none!important}}@media screen and (min-width: 768px) and (max-width: 992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (max-width: 768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{width:100%;height:240px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ray-template--light .sso-signing{color:#878787} diff --git a/css/index-74sXJ5VP.css.gz b/css/index-74sXJ5VP.css.gz new file mode 100644 index 00000000..4473ac09 Binary files /dev/null and b/css/index-74sXJ5VP.css.gz differ diff --git a/css/index-B6yUFiKH.css b/css/index-B6yUFiKH.css new file mode 100644 index 00000000..32fc9851 --- /dev/null +++ b/css/index-B6yUFiKH.css @@ -0,0 +1 @@ +.rely-about .n-card{margin-top:18px}.rely-about .n-card:first-child{margin-top:0} diff --git a/css/index-BhnoEzFG.css b/css/index-BhnoEzFG.css deleted file mode 100644 index 9d41dc77..00000000 --- a/css/index-BhnoEzFG.css +++ /dev/null @@ -1 +0,0 @@ -.login{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.login .login-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:auto;-ms-flex:auto;flex:auto}.login .login-wrapper.login-wrapper--divider{position:relative}.login .login-wrapper.login-wrapper--divider:before{content:"";position:absolute;width:var(--login-height);height:.104rem;background:-webkit-linear-gradient(315deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),-webkit-linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background:linear-gradient(135deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%),linear-gradient(45deg,transparent,transparent 75%,#2080f0,transparent 80%,transparent 100%);background-size:1em 1em;background-repeat:repeat-x,repeat-x;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0;left:50%}.login .login-wrapper .login-title__wrapper{position:absolute;left:1.25rem;top:1.25rem}.login .login-wrapper .login-action__wrapper{position:absolute;height:2.833rem;right:1.25rem;top:1.25rem}.login .login-wrapper .login-copyright__wrapper{position:absolute;width:100%;text-align:center;bottom:1.25rem;font-size:.729rem}.login .login-wrapper .login-wrapper__content{width:100%;height:100%}.login .login-wrapper .login-wrapper__content .n-grid{height:100%}.login .login-wrapper .login-wrapper__content .login__left-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-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:background-color .3s var(--r-bezier);transition:background-color .3s var(--r-bezier)}.login .login-wrapper .login-wrapper__content .login__right-wrapper{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}.login .login-wrapper .login-wrapper__content .login__right-wrapper .login__right-wrapper__content{width:50%;background-color:transparent}.ray-template--light .login__left-wrapper{background-color:#2080f038}.ray-template--light .login__right-wrapper{background-color:#fff}.ray-template--dark .login__left-wrapper{background-color:#2c354b}.ray-template--dark .login__right-wrapper{background-color:#2a3146}@media screen and (max-width: 1200px){.login__left-wrapper{display:none!important}}@media screen and (min-width: 768px) and (max-width: 992px){.login__right-wrapper .login__right-wrapper__content{width:55%!important}}@media screen and (max-width: 768px){.login__right-wrapper .login__right-wrapper__content{width:100%!important}}.qrcode-signing{width:100%;height:12.5rem;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}.ray-template--light .sso-signing{color:#878787} diff --git a/css/index-BhnoEzFG.css.gz b/css/index-BhnoEzFG.css.gz deleted file mode 100644 index 57f36340..00000000 Binary files a/css/index-BhnoEzFG.css.gz and /dev/null differ diff --git a/css/index-BqPIKfai.css b/css/index-BqPIKfai.css deleted file mode 100644 index e98a989f..00000000 --- a/css/index-BqPIKfai.css +++ /dev/null @@ -1 +0,0 @@ -.echart{width:100%;height:100%}.echart .n-card{margin-top:.938rem}.echart .n-card:first-child{margin-top:0}.echart .chart--container{width:100%;height:26.042rem} diff --git a/css/index-C7YmoElI.css b/css/index-C7YmoElI.css deleted file mode 100644 index 79807424..00000000 --- a/css/index-C7YmoElI.css +++ /dev/null @@ -1 +0,0 @@ -.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:1.25rem 0px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;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-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;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;font-size:16.667rem;gap:4.167rem;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{padding:0;font-size:4.688rem;padding:1.25rem;border-radius:.208rem}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{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;border-radius:1.563rem;background-color:#141313;font-weight:700;padding:4.167rem;-webkit-filter:blur(.208rem);filter:blur(.208rem)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:.26rem;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:13.542rem;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:1.25rem;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.5rem}[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-1.563rem);-ms-transform:translateX(-1.563rem);transform:translate(-1.563rem)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(1.563rem);-ms-transform:translateX(1.563rem);transform:translate(1.563rem)}.scale-transform-enter-active,.scale-transform-leave-active{-webkit-transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.92);-ms-transform:scale(.92);transform:scale(.92)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.06);-ms-transform:scale(1.06);transform:scale(1.06)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active,.fade-bottom-transform-leave-active{-webkit-transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier),-webkit-transform .45s var(--r-bezier)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-10%);-ms-transform:translateY(-10%);transform:translateY(-10%)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(10%);-ms-transform:translateY(10%);transform:translateY(10%)}.fade-scale-transform-leave-active,.fade-scale-transform-enter-active{-webkit-transition:all .48s var(--r-bezier);transition:all .48s var(--r-bezier)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.2);-ms-transform:scale(1.2);transform:scale(1.2)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:.208rem solid var(--ray-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:0 .313rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 2.135rem)}.r-menu--app .n-menu-item-content-header__extra{margin-right:.417rem}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-C7YmoElI.css.gz b/css/index-C7YmoElI.css.gz deleted file mode 100644 index 50c6f275..00000000 Binary files a/css/index-C7YmoElI.css.gz and /dev/null differ diff --git a/css/index-CIq6_pk2.css b/css/index-CIq6_pk2.css deleted file mode 100644 index 9941849b..00000000 --- a/css/index-CIq6_pk2.css +++ /dev/null @@ -1 +0,0 @@ -.pre-view-icons__card{width:6.25rem;height:6.25rem;padding:.938rem;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;border:1px solid var(--n-border-color);border-radius:var(--n-border-radius)} diff --git a/css/index-CTOeMyqn.css b/css/index-CTOeMyqn.css deleted file mode 100644 index f1e83992..00000000 --- a/css/index-CTOeMyqn.css +++ /dev/null @@ -1 +0,0 @@ -.axios-header__btn{height:3.333rem} diff --git a/css/index-D8hdJTnX.css b/css/index-D8hdJTnX.css new file mode 100644 index 00000000..fefa13f3 --- /dev/null +++ b/css/index-D8hdJTnX.css @@ -0,0 +1 @@ +.app-lock-screen__content .app-lock-screen__input button[class*=n-button]{width:100%}.app-lock-screen__content .app-lock-screen__input form[class*=n-form]{margin:24px 0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg__wrapper{width:100%;height:100%;background-color:#101014}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg{position:absolute;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:320px;gap:80px;z-index:0}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg.app-lock-screen__unlock__content-bg--smaller .right{font-size:90px;padding:24px;border-radius:4px}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .left,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-wrapper .app-lock-screen__unlock__content-bg .right{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:30px;background-color:#141313;font-weight:700;padding:80px;-webkit-filter:blur(4px);filter:blur(4px)}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-avatar{margin-top:5px;color:#bababa;font-weight:bolder;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-input{width:260px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date{position:fixed;width:100%;font-size:3rem;text-align:center;font-weight:500;bottom:24px;z-index:1}.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-year,.app-lock-screen__content .app-lock-screen__unlock .app-lock-screen__unlock__content .app-lock-screen__unlock__content-date .current-date span{font-size:1.5rem}[class*=transform-leave-active]{position:absolute}.fade-slide-transform-leave-active,.fade-slide-transform-enter-active{-webkit-transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier);transition:transform .48s var(--r-bezier),opacity .48s var(--r-bezier),-webkit-transform .48s var(--r-bezier)}.fade-slide-transform-enter-from{opacity:0;-webkit-transform:translateX(-30px);transform:translate(-30px)}.fade-slide-transform-leave-to{opacity:0;-webkit-transform:translateX(30px);transform:translate(30px)}.scale-transform-enter-active,.scale-transform-leave-active{-webkit-transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier);transition:transform .4s var(--r-bezier),opacity .45s var(--r-bezier),-webkit-transform .4s var(--r-bezier)}.scale-transform-enter-from{opacity:0;-webkit-transform:scale(.92);transform:scale(.92)}.scale-transform-leave-to{opacity:0;-webkit-transform:scale(1.06);transform:scale(1.06)}.opacity-transform-leave-active,.opacity-transform-enter-active{-webkit-transition:opacity .55s var(--r-bezier);transition:opacity .55s var(--r-bezier)}.opacity-transform-enter-from,.opacity-transform-leave-to{opacity:0}.fade-bottom-transform-enter-active,.fade-bottom-transform-leave-active{-webkit-transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),-webkit-transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier);transition:opacity .55s var(--r-bezier),transform .45s var(--r-bezier),-webkit-transform .45s var(--r-bezier)}.fade-bottom-transform-enter-from{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}.fade-bottom-transform-leave-to{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}.fade-scale-transform-leave-active,.fade-scale-transform-enter-active{-webkit-transition:all .48s var(--r-bezier);transition:all .48s var(--r-bezier)}.fade-scale-transform-enter-from{opacity:0;-webkit-transform:scale(1.2);transform:scale(1.2)}.fade-scale-transform-leave-to{opacity:0;-webkit-transform:scale(.8);transform:scale(.8)}:root{--r-bezier: cubic-bezier(.4, 0, .2, 1)}@-webkit-keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes elementRotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.r-layout-full__viewer-content .n-spin-container,.r-layout-full__viewer-content .n-spin-container .n-spin-content{width:100%;height:100%}.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.r-menu--app:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--ray-theme-primary-color);-webkit-transition:border-left .1s;transition:border-left .1s}.r-menu--app .n-menu-item-content.n-menu-item-content--selected .n-menu-item-content-header,.r-menu--app .n-menu-item-content .n-menu-item-content-header{display:-webkit-box;display:-webkit-flex;display:flex;gap:0 6px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.r-menu--app .n-menu-item-content-header .n-ellipsis{width:calc(100% - 41px)}.r-menu--app .n-menu-item-content-header__extra{margin-right:8px}body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0}ul,ol,li{list-style:none}fieldset,img{border:0;vertical-align:middle;border-style:none}a{background-color:transparent}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body .ray-template__directive--disabled{opacity:.3!important;pointer-events:none!important;cursor:not-allowed!important;-webkit-filter:brightness(.88);filter:brightness(.88)}.app-style-provider{position:fixed;display:none;z-index:-999999}.v-ripple__container{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;contain:strict}.v-ripple__animation{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none;background:currentcolor;border-radius:50%;opacity:0;will-change:transform,opacity}.v-ripple__animation--enter{opacity:0;-webkit-transition:none;transition:none}.v-ripple__animation--in{opacity:.25;-webkit-transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1);transition:transform .4s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1),-webkit-transform .4s cubic-bezier(0,0,.2,1)}.v-ripple__animation--out{opacity:0;-webkit-transition:opacity .5s cubic-bezier(0,0,.2,1);transition:opacity .5s cubic-bezier(0,0,.2,1)} diff --git a/css/index-D8hdJTnX.css.gz b/css/index-D8hdJTnX.css.gz new file mode 100644 index 00000000..8b7deefc Binary files /dev/null and b/css/index-D8hdJTnX.css.gz differ diff --git a/css/index-DHYYVpM7.css b/css/index-DHYYVpM7.css new file mode 100644 index 00000000..b58c3c81 --- /dev/null +++ b/css/index-DHYYVpM7.css @@ -0,0 +1 @@ +.echart{width:100%;height:100%}.echart .n-card{margin-top:18px}.echart .n-card:first-child{margin-top:0}.echart .chart--container{width:100%;height:500px} diff --git a/css/index-D_4DGt8i.css b/css/index-D_4DGt8i.css new file mode 100644 index 00000000..c79faabe --- /dev/null +++ b/css/index-D_4DGt8i.css @@ -0,0 +1 @@ +.dashboard-layout .n-card{margin-top:18px}.dashboard-layout .n-card:first-child{margin-top:0}.dashboard-layout .dashboard-link{text-decoration:none} diff --git a/css/index-DeeQXRbp.css b/css/index-DeeQXRbp.css deleted file mode 100644 index bdc04dbe..00000000 --- a/css/index-DeeQXRbp.css +++ /dev/null @@ -1 +0,0 @@ -.dashboard-layout .n-card{margin-top:.938rem}.dashboard-layout .n-card:first-child{margin-top:0}.dashboard-layout .dashboard-link{text-decoration:none} diff --git a/css/index-Eq1L-L2-.css b/css/index-Eq1L-L2-.css new file mode 100644 index 00000000..b95d4b1c --- /dev/null +++ b/css/index-Eq1L-L2-.css @@ -0,0 +1 @@ +.pre-view-icons__card{width:120px;height:120px;padding:18px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border:1px solid var(--n-border-color);border-radius:var(--n-border-radius)} diff --git a/css/index-G2qqDeP0.css b/css/index-G2qqDeP0.css deleted file mode 100644 index 73feb50c..00000000 --- a/css/index-G2qqDeP0.css +++ /dev/null @@ -1 +0,0 @@ -.error-page{width:100%;height:100vh;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} diff --git a/css/index-QAd2IBUs.css b/css/index-QAd2IBUs.css new file mode 100644 index 00000000..5996ba09 --- /dev/null +++ b/css/index-QAd2IBUs.css @@ -0,0 +1 @@ +.axios-header__btn{height:64px} diff --git a/css/index-b1h4j9PV.css b/css/index-b1h4j9PV.css new file mode 100644 index 00000000..761ccb7a --- /dev/null +++ b/css/index-b1h4j9PV.css @@ -0,0 +1 @@ +.error-page{width:100%;height:100vh;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center} diff --git a/css/index-cMo-v_SD.css b/css/index-cMo-v_SD.css deleted file mode 100644 index 85fcb49b..00000000 --- a/css/index-cMo-v_SD.css +++ /dev/null @@ -1 +0,0 @@ -.rely-about .n-card{margin-top:.938rem}.rely-about .n-card:first-child{margin-top:0} diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css b/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css new file mode 100644 index 00000000..2cad0e07 --- /dev/null +++ b/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css @@ -0,0 +1 @@ +.ray-qrcode{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;width:var(--ray-qrcode-width);height:var(--ray-qrcode-height);overflow:hidden;border:1px solid rgba(5,5,5,.06);border-radius:var(--ray-qrcode-border-radius);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.ray-qrcode .ray-qrcode__loading--custom{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ray-qrcode .ray-qrcode__loading--custom .ray-qrcode__loading-slots{position:absolute;width:100%;height:100%}.ray-qrcode .ray-qrcode__loading{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ray-qrcode .ray-qrcode__loading:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--ray-qrcode-mask-color)}.ray-qrcode .ray-qrcode__loading .ray-qrcode__spin{position:absolute;width:30px;height:30px;border:3px solid #1677ff;border-top-color:transparent;border-radius:100%;-webkit-animation:ray-qrcode-spin infinite .75s linear;animation:ray-qrcode-spin infinite .75s linear}.ray-qrcode .ray-qrcode__error{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;gap:5px 0;color:#000000e0;-webkit-transition:color .3s ease-in-out;transition:color .3s ease-in-out}.ray-qrcode .ray-qrcode__error:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--ray-qrcode-mask-color);z-index:-1}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-content{text-align:center}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn{cursor:pointer;color:#1677ff}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn:hover{color:#69b1ff}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn .ray-qrcode__error-btn-click{color:#1677ff}@-webkit-keyframes ray-qrcode-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ray-qrcode-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz b/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz new file mode 100644 index 00000000..a74b1ce4 Binary files /dev/null and b/css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css.gz differ diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css b/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css deleted file mode 100644 index c315ea21..00000000 --- a/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css +++ /dev/null @@ -1 +0,0 @@ -.ray-qrcode{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--ray-qrcode-width);height:var(--ray-qrcode-height);overflow:hidden;border:1px solid rgba(5,5,5,.06);border-radius:var(--ray-qrcode-border-radius);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.ray-qrcode .ray-qrcode__loading--custom{position:relative;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}.ray-qrcode .ray-qrcode__loading--custom .ray-qrcode__loading-slots{position:absolute;width:100%;height:100%}.ray-qrcode .ray-qrcode__loading{position:relative;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}.ray-qrcode .ray-qrcode__loading:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--ray-qrcode-mask-color)}.ray-qrcode .ray-qrcode__loading .ray-qrcode__spin{position:absolute;width:30px;height:30px;border:3px solid #1677ff;border-top-color:transparent;border-radius:100%;-webkit-animation:ray-qrcode-spin infinite .75s linear;animation:ray-qrcode-spin infinite .75s linear}.ray-qrcode .ray-qrcode__error{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:10;width:100%;height:100%;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-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:5px 0;color:#000000e0;-webkit-transition:color .3s ease-in-out;transition:color .3s ease-in-out}.ray-qrcode .ray-qrcode__error:before{content:"";position:absolute;width:100%;height:100%;background-color:var(--ray-qrcode-mask-color);z-index:-1}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-content{text-align:center}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn{cursor:pointer;color:#1677ff}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn:hover{color:#69b1ff}.ray-qrcode .ray-qrcode__error .ray-qrcode__error-btn .ray-qrcode__error-btn-click{color:#1677ff}@-webkit-keyframes ray-qrcode-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ray-qrcode-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} diff --git a/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css.gz b/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css.gz deleted file mode 100644 index 84bbc00f..00000000 Binary files a/css/vue3-next-qrcode@2.0.10_typescript@5.2-DMlRaYPw.css.gz and /dev/null differ diff --git a/index.html b/index.html index 2b4cbc48..0a142ce8 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -17,34 +17,34 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> Ray Template - + - - + + - + - - + + - - - - - + + + + + - - - + + + diff --git a/index.html.gz b/index.html.gz index 2a0350a5..24929608 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/js/@vue_reactivity@3.4.34-CztCRbLl.js b/js/@vue_reactivity@3.4.38-CmXFqMGn.js similarity index 77% rename from js/@vue_reactivity@3.4.34-CztCRbLl.js rename to js/@vue_reactivity@3.4.38-CmXFqMGn.js index 3c726306..23c2e4dd 100644 --- a/js/@vue_reactivity@3.4.34-CztCRbLl.js +++ b/js/@vue_reactivity@3.4.38-CmXFqMGn.js @@ -1,5 +1,5 @@ -import{i as r}from"./@vue_shared@3.4.34-C-TABL9H.js";/** -* @vue/reactivity v3.4.34 +import{i as r}from"./@vue_shared@3.4.38-D8qfpBTH.js";/** +* @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(r));function i(e){return e?!!e.__v_raw:!1}function o(e){return!!(e&&e.__v_isRef===!0)}export{i as a,o as i}; diff --git a/js/@vue_runtime-core@3.4.34-DmZqUhja.js.gz b/js/@vue_runtime-core@3.4.34-DmZqUhja.js.gz deleted file mode 100644 index 62d02f56..00000000 Binary files a/js/@vue_runtime-core@3.4.34-DmZqUhja.js.gz and /dev/null differ diff --git a/js/@vue_runtime-core@3.4.34-DmZqUhja.js b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js similarity index 96% rename from js/@vue_runtime-core@3.4.34-DmZqUhja.js rename to js/@vue_runtime-core@3.4.38-f9XU7P4m.js index 6713b8df..9df9ffdd 100644 --- a/js/@vue_runtime-core@3.4.34-DmZqUhja.js +++ b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js @@ -1,5 +1,5 @@ -import{i as A,a as N}from"./@vue_reactivity@3.4.34-CztCRbLl.js";import{a as g,b as m,c as S,g as z,E as j,n as T,d as k,e as h,f as y,h as B}from"./@vue_shared@3.4.34-C-TABL9H.js";/** -* @vue/runtime-core v3.4.34 +import{i as A,a as N}from"./@vue_reactivity@3.4.38-CmXFqMGn.js";import{a as g,b as m,c as S,g as z,E as j,n as T,d as k,e as h,f as y,h as B}from"./@vue_shared@3.4.38-D8qfpBTH.js";/** +* @vue/runtime-core v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let r=null,M=null;function E(t,s){t.shapeFlag&6&&t.component?E(t.component.subTree,s):t.shapeFlag&128?(t.ssContent.transition=s.clone(t.ssContent),t.ssFallback.transition=s.clone(t.ssFallback)):t.transition=s}const P=Symbol.for("v-ndc"),U={},V=t=>Object.getPrototypeOf(t)===U,G=t=>t.__isTeleport,L=t=>t.__isSuspense,I=Symbol.for("v-fgt"),Y=Symbol.for("v-txt"),D=Symbol.for("v-cmt"),H=Symbol.for("v-stc"),f=[];let u=null;function v(t=!1){f.push(u=t?null:[])}function K(){f.pop(),u=f[f.length-1]||null}function q(t){return t.dynamicChildren=u||j,K(),u&&u.push(t),t}function tt(t,s,l,c,n,e){return q(x(t,s,l,c,n,e,!0))}function w(t){return t?t.__v_isVNode===!0:!1}const O=({key:t})=>t??null,_=({ref:t,ref_key:s,ref_for:l})=>(typeof t=="number"&&(t=""+t),t!=null?g(t)||A(t)||S(t)?{i:r,r:t,k:s,f:!!l}:t:null);function x(t,s=null,l=null,c=0,n=null,e=t===I?0:1,i=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:s,key:s&&O(s),ref:s&&_(s),scopeId:M,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:e,patchFlag:c,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:r};return o?(p(a,l),e&128&&t.normalize(a)):l&&(a.shapeFlag|=g(l)?8:16),!i&&u&&(a.patchFlag>0||e&6)&&a.patchFlag!==32&&u.push(a),a}const R=J;function J(t,s=null,l=null,c=0,n=null,e=!1){if((!t||t===P)&&(t=D),w(t)){const o=F(t,s,!0);return l&&p(o,l),!e&&u&&(o.shapeFlag&6?u[u.indexOf(t)]=o:u.push(o)),o.patchFlag=-2,o}if(Z(t)&&(t=t.__vccOpts),s){s=Q(s);let{class:o,style:a}=s;o&&!g(o)&&(s.class=T(o)),k(a)&&(N(a)&&!m(a)&&(a=h({},a)),s.style=y(a))}const i=g(t)?1:L(t)?128:G(t)?64:k(t)?4:S(t)?2:0;return x(t,s,l,c,n,i,e,!0)}function Q(t){return t?N(t)||V(t)?h({},t):t:null}function F(t,s,l=!1,c=!1){const{props:n,ref:e,patchFlag:i,children:o,transition:a}=t,C=s?X(n||{},s):n,b={__v_isVNode:!0,__v_skip:!0,type:t.type,props:C,key:C&&O(C),ref:s&&s.ref?l&&e?m(e)?e.concat(_(s)):[e,_(s)]:_(s):e,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:s&&t.type!==I?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&F(t.ssContent),ssFallback:t.ssFallback&&F(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&c&&E(b,a.clone(b)),b}function W(t=" ",s=0){return R(Y,null,t,s)}function st(t,s){const l=R(H,null,t);return l.staticCount=s,l}function p(t,s){let l=0;const{shapeFlag:c}=t;if(s==null)s=null;else if(m(s))l=16;else if(typeof s=="object")if(c&65){const n=s.default;n&&(n._c&&(n._d=!1),p(t,n()),n._c&&(n._d=!0));return}else{l=32;const n=s._;!n&&!V(s)?s._ctx=r:n===3&&r&&(r.slots._===1?s._=1:(s._=2,t.patchFlag|=1024))}else S(s)?(s={default:s,_ctx:r},l=32):(s=String(s),c&64?(l=16,s=[W(s)]):l=8);t.children=s,t.shapeFlag|=l}function X(...t){const s={};for(let l=0;l{let n;return(n=t[l])||(n=t[l]=[]),n.push(c),e=>{n.length>1?n.forEach(i=>i(e)):n[0](e)}};s("__VUE_INSTANCE_SETTERS__",l=>l),s("__VUE_SSR_SETTERS__",l=>l)}function Z(t){return S(t)&&"__vccOpts"in t}export{st as a,tt as c,v as o}; diff --git a/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz new file mode 100644 index 00000000..bed4f214 Binary files /dev/null and b/js/@vue_runtime-core@3.4.38-f9XU7P4m.js.gz differ diff --git a/js/@vue_runtime-dom@3.4.34-l0sNRNKZ.js b/js/@vue_runtime-dom@3.4.38-l0sNRNKZ.js similarity index 100% rename from js/@vue_runtime-dom@3.4.34-l0sNRNKZ.js rename to js/@vue_runtime-dom@3.4.38-l0sNRNKZ.js diff --git a/js/@vue_shared@3.4.34-C-TABL9H.js b/js/@vue_shared@3.4.38-D8qfpBTH.js similarity index 97% rename from js/@vue_shared@3.4.34-C-TABL9H.js rename to js/@vue_shared@3.4.38-D8qfpBTH.js index 6fb93a03..1a7414a5 100644 --- a/js/@vue_shared@3.4.34-C-TABL9H.js +++ b/js/@vue_shared@3.4.38-D8qfpBTH.js @@ -1,5 +1,5 @@ /** -* @vue/shared v3.4.34 +* @vue/shared v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const h=[],b=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),A=Object.assign,f=Array.isArray,C=t=>typeof t=="function",i=t=>typeof t=="string",E=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object";let c;const R=()=>c||(c=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function a(t){if(f(t)){const o={};for(let n=0;n{if(n){const s=n.split(g);s.length>1&&(o[s[0].trim()]=s[1].trim())}}),o}function y(t){let o="";if(i(t))o=t;else if(f(t))for(let n=0;n{s.forEach(m=>m()),s.length=0},f=(m,u,t,o)=>(m.addEventListener(u,t,o),()=>m.removeEventListener(u,t,o)),p=VueDemi.watch(()=>[b(r),E(a)],([m,u])=>{if(l(),!m)return;const t=H(u)?{...u}:u;s.push(...n.flatMap(o=>i.map(c=>f(m,o,c,t))))},{immediate:!0,flush:"post"}),v=()=>{p(),l()};return N(v),v}let T=!1;function ne(e,r,n={}){const{window:i=g,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!i)return D;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",D)),i.document.documentElement.addEventListener("click",D));let f=!0;const p=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(c=>c===t.target||t.composedPath().includes(c));{const c=b(o);return c&&(t.target===c||t.composedPath().includes(c))}}),m=[V(i,"click",t=>{const o=b(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(f=!p(t)),!f){f=!0;return}r(t)}},{passive:!0,capture:s}),V(i,"pointerdown",t=>{const o=b(e);f=!p(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),l&&V(i,"blur",t=>{setTimeout(()=>{var o;const c=b(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(c!=null&&c.contains(i.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>m.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),r=VueDemi.getCurrentInstance();return r&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:r),e}function W(e){const r=Y();return VueDemi.computed(()=>(r.value,!!e()))}function q(e,r={}){const{window:n=g}=r,i=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const s=VueDemi.ref(!1),l=v=>{s.value=v.matches},f=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},p=VueDemi.watchEffect(()=>{i.value&&(f(),a=n.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return N(()=>{p(),f(),a=void 0}),s}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_="__vueuse_ssr_handlers__",K=$();function $(){return _ in M||(M[_]=M[_]||{}),M[_]}function G(e,r){return K[e]||r}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,r,n,i={}){var a;const{flush:s="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:p=!0,mergeDefaults:v=!1,shallow:m,window:u=g,eventFilter:t,onError:o=d=>{console.error(d)},initOnMounted:c}=i,y=(m?VueDemi.shallowRef:VueDemi.ref)(r);if(!n)try{n=G("getDefaultStorage",()=>{var d;return(d=g)==null?void 0:d.localStorage})()}catch(d){o(d)}if(!n)return y;const h=E(r),O=U(h),A=(a=i.serializer)!=null?a:X[O],{pause:P,resume:L}=k(y,()=>J(y.value),{flush:s,deep:l,eventFilter:t});u&&f&&z(()=>{V(u,"storage",I),V(u,C,x),c&&I()}),c||I();function R(d,w){u&&u.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:d,newValue:w,storageArea:n}}))}function J(d){try{const w=n.getItem(e);if(d==null)R(w,null),n.removeItem(e);else{const S=A.write(d);w!==S&&(n.setItem(e,S),R(w,S))}}catch(w){o(w)}}function j(d){const w=d?d.newValue:n.getItem(e);if(w==null)return p&&h!=null&&n.setItem(e,A.write(h)),h;if(!d&&v){const S=A.read(w);return typeof v=="function"?v(S,h):O==="object"&&!Array.isArray(S)?{...h,...S}:S}else return typeof w!="string"?w:A.read(w)}function I(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){y.value=h;return}if(!(d&&d.key!==e)){P();try{(d==null?void 0:d.newValue)!==A.write(y.value)&&(y.value=j(d))}catch(w){o(w)}finally{d?VueDemi.nextTick(L):L()}}}}function x(d){I(d.detail)}return y}function Z(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"MutationObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(b).filter(F);return new Set(o)}),v=VueDemi.watch(()=>p.value,t=>{f(),l.value&&i&&t.size&&(s=new MutationObserver(r),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),m=()=>s==null?void 0:s.takeRecords(),u=()=>{f(),v()};return N(u),{isSupported:l,stop:u,takeRecords:m}}function ee(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"ResizeObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>Array.isArray(e)?e.map(u=>b(u)):[b(e)]),v=VueDemi.watch(p,u=>{if(f(),l.value&&i){s=new ResizeObserver(r);for(const t of u)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),m=()=>{f(),v()};return N(m),{isSupported:l,stop:m}}function ie(e,r={}){const{reset:n=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=r,l=VueDemi.ref(0),f=VueDemi.ref(0),p=VueDemi.ref(0),v=VueDemi.ref(0),m=VueDemi.ref(0),u=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function c(){const y=b(e);if(!y){n&&(l.value=0,f.value=0,p.value=0,v.value=0,m.value=0,u.value=0,t.value=0,o.value=0);return}const h=y.getBoundingClientRect();l.value=h.height,f.value=h.bottom,p.value=h.left,v.value=h.right,m.value=h.top,u.value=h.width,t.value=h.x,o.value=h.y}return ee(e,c),VueDemi.watch(()=>b(e),y=>!y&&c()),Z(e,c,{attributeFilter:["style","class"]}),a&&V("scroll",c,{capture:!0,passive:!0}),i&&V("resize",c,{passive:!0}),z(()=>{s&&c()}),{height:l,bottom:f,left:p,right:v,top:m,width:u,x:t,y:o,update:c}}function oe(e,r,n={}){const{root:i,rootMargin:a="0px",threshold:s=.1,window:l=g,immediate:f=!0}=n,p=W(()=>l&&"IntersectionObserver"in l),v=VueDemi.computed(()=>{const c=E(e);return(Array.isArray(c)?c:[c]).map(b).filter(F)});let m=D;const u=VueDemi.ref(f),t=p.value?VueDemi.watch(()=>[v.value,b(i),u.value],([c,y])=>{if(m(),!u.value||!c.length)return;const h=new IntersectionObserver(r,{root:b(y),rootMargin:a,threshold:s});c.forEach(O=>O&&h.observe(O)),m=()=>{h.disconnect(),m=D}},{immediate:f,flush:"post"}):D,o=()=>{m(),t(),u.value=!1};return N(o),{isSupported:p,isActive:u,pause(){m(),u.value=!1},resume(){u.value=!0},stop:o}}function se(e={}){const{window:r=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,l=VueDemi.ref(n),f=VueDemi.ref(i),p=()=>{r&&(s?(l.value=r.innerWidth,f.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,f.value=r.document.documentElement.clientHeight))};if(p(),z(p),V("resize",p,{passive:!0}),a){const v=q("(orientation: portrait)");VueDemi.watch(v,()=>p())}return{width:l,height:f}}export{oe as a,ee as b,ie as c,re as d,se as e,ne as o,V as u}; +import{n as D,t as E,i as H,a as N,w as k,b as z,c as B,d as F,e as Q}from"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";function b(e){var r;const n=E(e);return(r=n==null?void 0:n.$el)!=null?r:n}const g=B?window:void 0;function V(...e){let r,n,i,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,a]=e,r=g):[r,n,i,a]=e,!r)return D;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(m=>m()),s.length=0},f=(m,u,t,o)=>(m.addEventListener(u,t,o),()=>m.removeEventListener(u,t,o)),p=VueDemi.watch(()=>[b(r),E(a)],([m,u])=>{if(l(),!m)return;const t=H(u)?{...u}:u;s.push(...n.flatMap(o=>i.map(c=>f(m,o,c,t))))},{immediate:!0,flush:"post"}),v=()=>{p(),l()};return N(v),v}let T=!1;function ne(e,r,n={}){const{window:i=g,ignore:a=[],capture:s=!0,detectIframe:l=!1}=n;if(!i)return D;Q&&!T&&(T=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",D)),i.document.documentElement.addEventListener("click",D));let f=!0;const p=t=>a.some(o=>{if(typeof o=="string")return Array.from(i.document.querySelectorAll(o)).some(c=>c===t.target||t.composedPath().includes(c));{const c=b(o);return c&&(t.target===c||t.composedPath().includes(c))}}),m=[V(i,"click",t=>{const o=b(e);if(!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(f=!p(t)),!f){f=!0;return}r(t)}},{passive:!0,capture:s}),V(i,"pointerdown",t=>{const o=b(e);f=!p(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),l&&V(i,"blur",t=>{setTimeout(()=>{var o;const c=b(e);((o=i.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(c!=null&&c.contains(i.document.activeElement))&&r(t)},0)})].filter(Boolean);return()=>m.forEach(t=>t())}function Y(){const e=VueDemi.ref(!1),r=VueDemi.getCurrentInstance();return r&&VueDemi.onMounted(()=>{e.value=!0},VueDemi.isVue2?null:r),e}function W(e){const r=Y();return VueDemi.computed(()=>(r.value,!!e()))}function q(e,r={}){const{window:n=g}=r,i=W(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const s=VueDemi.ref(!1),l=v=>{s.value=v.matches},f=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},p=VueDemi.watchEffect(()=>{i.value&&(f(),a=n.matchMedia(E(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return N(()=>{p(),f(),a=void 0}),s}const M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_="__vueuse_ssr_handlers__",K=$();function $(){return _ in M||(M[_]=M[_]||{}),M[_]}function G(e,r){return K[e]||r}function U(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const X={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},C="vueuse-storage";function re(e,r,n,i={}){var a;const{flush:s="pre",deep:l=!0,listenToStorageChanges:f=!0,writeDefaults:p=!0,mergeDefaults:v=!1,shallow:m,window:u=g,eventFilter:t,onError:o=d=>{console.error(d)},initOnMounted:c}=i,y=(m?VueDemi.shallowRef:VueDemi.ref)(r);if(!n)try{n=G("getDefaultStorage",()=>{var d;return(d=g)==null?void 0:d.localStorage})()}catch(d){o(d)}if(!n)return y;const h=E(r),O=U(h),A=(a=i.serializer)!=null?a:X[O],{pause:P,resume:L}=k(y,()=>J(y.value),{flush:s,deep:l,eventFilter:t});u&&f&&z(()=>{V(u,"storage",I),V(u,C,x),c&&I()}),c||I();function R(d,w){u&&u.dispatchEvent(new CustomEvent(C,{detail:{key:e,oldValue:d,newValue:w,storageArea:n}}))}function J(d){try{const w=n.getItem(e);if(d==null)R(w,null),n.removeItem(e);else{const S=A.write(d);w!==S&&(n.setItem(e,S),R(w,S))}}catch(w){o(w)}}function j(d){const w=d?d.newValue:n.getItem(e);if(w==null)return p&&h!=null&&n.setItem(e,A.write(h)),h;if(!d&&v){const S=A.read(w);return typeof v=="function"?v(S,h):O==="object"&&!Array.isArray(S)?{...h,...S}:S}else return typeof w!="string"?w:A.read(w)}function I(d){if(!(d&&d.storageArea!==n)){if(d&&d.key==null){y.value=h;return}if(!(d&&d.key!==e)){P();try{(d==null?void 0:d.newValue)!==A.write(y.value)&&(y.value=j(d))}catch(w){o(w)}finally{d?VueDemi.nextTick(L):L()}}}}function x(d){I(d.detail)}return y}function Z(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"MutationObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>{const t=E(e),o=(Array.isArray(t)?t:[t]).map(b).filter(F);return new Set(o)}),v=VueDemi.watch(()=>p.value,t=>{f(),l.value&&i&&t.size&&(s=new MutationObserver(r),t.forEach(o=>s.observe(o,a)))},{immediate:!0,flush:"post"}),m=()=>s==null?void 0:s.takeRecords(),u=()=>{f(),v()};return N(u),{isSupported:l,stop:u,takeRecords:m}}function ee(e,r,n={}){const{window:i=g,...a}=n;let s;const l=W(()=>i&&"ResizeObserver"in i),f=()=>{s&&(s.disconnect(),s=void 0)},p=VueDemi.computed(()=>Array.isArray(e)?e.map(u=>b(u)):[b(e)]),v=VueDemi.watch(p,u=>{if(f(),l.value&&i){s=new ResizeObserver(r);for(const t of u)t&&s.observe(t,a)}},{immediate:!0,flush:"post"}),m=()=>{f(),v()};return N(m),{isSupported:l,stop:m}}function ie(e,r={}){const{reset:n=!0,windowResize:i=!0,windowScroll:a=!0,immediate:s=!0}=r,l=VueDemi.ref(0),f=VueDemi.ref(0),p=VueDemi.ref(0),v=VueDemi.ref(0),m=VueDemi.ref(0),u=VueDemi.ref(0),t=VueDemi.ref(0),o=VueDemi.ref(0);function c(){const y=b(e);if(!y){n&&(l.value=0,f.value=0,p.value=0,v.value=0,m.value=0,u.value=0,t.value=0,o.value=0);return}const h=y.getBoundingClientRect();l.value=h.height,f.value=h.bottom,p.value=h.left,v.value=h.right,m.value=h.top,u.value=h.width,t.value=h.x,o.value=h.y}return ee(e,c),VueDemi.watch(()=>b(e),y=>!y&&c()),Z(e,c,{attributeFilter:["style","class"]}),a&&V("scroll",c,{capture:!0,passive:!0}),i&&V("resize",c,{passive:!0}),z(()=>{s&&c()}),{height:l,bottom:f,left:p,right:v,top:m,width:u,x:t,y:o,update:c}}function oe(e,r,n={}){const{root:i,rootMargin:a="0px",threshold:s=.1,window:l=g,immediate:f=!0}=n,p=W(()=>l&&"IntersectionObserver"in l),v=VueDemi.computed(()=>{const c=E(e);return(Array.isArray(c)?c:[c]).map(b).filter(F)});let m=D;const u=VueDemi.ref(f),t=p.value?VueDemi.watch(()=>[v.value,b(i),u.value],([c,y])=>{if(m(),!u.value||!c.length)return;const h=new IntersectionObserver(r,{root:b(y),rootMargin:a,threshold:s});c.forEach(O=>O&&h.observe(O)),m=()=>{h.disconnect(),m=D}},{immediate:f,flush:"post"}):D,o=()=>{m(),t(),u.value=!1};return N(o),{isSupported:p,isActive:u,pause(){m(),u.value=!1},resume(){u.value=!0},stop:o}}function se(e={}){const{window:r=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:s=!0}=e,l=VueDemi.ref(n),f=VueDemi.ref(i),p=()=>{r&&(s?(l.value=r.innerWidth,f.value=r.innerHeight):(l.value=r.document.documentElement.clientWidth,f.value=r.document.documentElement.clientHeight))};if(p(),z(p),V("resize",p,{passive:!0}),a){const v=q("(orientation: portrait)");VueDemi.watch(v,()=>p())}return{width:l,height:f}}export{oe as a,ee as b,ie as c,re as d,se as e,ne as o,V as u}; diff --git a/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz b/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz new file mode 100644 index 00000000..7cdf95fa Binary files /dev/null and b/js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js.gz differ diff --git a/js/@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js b/js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js similarity index 100% rename from js/@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js rename to js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js diff --git a/js/@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js.gz b/js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js.gz similarity index 100% rename from js/@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js.gz rename to js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js.gz diff --git a/js/BarcodeDemo-S0s4tZmk.js b/js/BarcodeDemo-DfxRtshw.js similarity index 87% rename from js/BarcodeDemo-S0s4tZmk.js rename to js/BarcodeDemo-DfxRtshw.js index b0439ad8..ad082607 100644 --- a/js/BarcodeDemo-S0s4tZmk.js +++ b/js/BarcodeDemo-DfxRtshw.js @@ -1 +1 @@ -import{y as e}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-DfxRtshw.js.gz b/js/BarcodeDemo-DfxRtshw.js.gz new file mode 100644 index 00000000..428913f1 Binary files /dev/null and b/js/BarcodeDemo-DfxRtshw.js.gz differ diff --git a/js/BarcodeDemo-S0s4tZmk.js.gz b/js/BarcodeDemo-S0s4tZmk.js.gz deleted file mode 100644 index 66a06477..00000000 Binary files a/js/BarcodeDemo-S0s4tZmk.js.gz and /dev/null differ diff --git a/js/TablePro-DSdnm-wa.js b/js/TablePro-DSdnm-wa.js new file mode 100644 index 00000000..5317a714 --- /dev/null +++ b/js/TablePro-DSdnm-wa.js @@ -0,0 +1 @@ +import{O as j,P as O,F as I,I as U,Q as G,U as $,H as L,J as z,V as M,W as _,X as H}from"./hooks-C7ZgHAXE.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as S}from"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as J}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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{d as q,u as Q}from"./utils-DCtVzoYl.js";import{o as W}from"./lodash-es@4.17.21-BALnwRTu.js";import"./instance-B383KSvY.js";import{M as A}from"./mockjs@1.1.0-CxlURkif.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";function X(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const Y=Vue.defineComponent({name:"RCollapse",props:Object.assign({},{...j,open:{type:Boolean,default:!0},cols:{type:Number,default:4}},O),render(){const{$slots:t,$props:p}=this,{labelPlacement:V,showFeedback:l,...c}=p;return Vue.createVNode(I,Vue.mergeProps(c,{labelPlacement:"top",showFeedback:!1}),{default:()=>[Vue.createVNode(U,c,X(t)?t:{default:()=>[t]})]})}}),Z={...W(G,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}},ee=Z;function te(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const ae=Vue.defineComponent({name:"RTablePro",props:ee,setup(t){const[p,{getTableInstance:V}]=$(),[l,{getPage:c,getPageSize:i,setCallback:s,setItemCount:y,getPagination:v,resetPagination:T,getItemCount:b}]=L(void 0,{prefix:e=>`共 ${e.itemCount} 条`}),d=Vue.computed(()=>t.request),k=()=>(v(),{getItemCount:b,getPage:c,getPageSize:i}),E=()=>{const{onTablePaginationUpdate:e}=t;e&&q(e,k())},N=e=>{const f=Object.assign({},t.requestConfig,e),{params:a,formatRangeTime:g}=f;return g!=null&&g.length&&a&&g.forEach(h=>{const{key:u,target:o}=h,n=a[u];if(n&&(o!=null&&o.length)){const[r,F]=n;a[o[0]]=r,a[o[1]]=F}else a[u]=null,a[o[0]]=null,a[o[1]]=null}),Object.assign({},a,{page:c(),pageSize:i()})},P=e=>{var a;T();const f=N(e);(a=d.value)==null||a.call(d,f)},C=e=>{var a;const f=N(e);(a=d.value)==null||a.call(d,f)};return Vue.watchEffect(()=>{y(t.paginationCount),s(()=>{const{manual:e}=t;e||C(),E()})}),Vue.onMounted(()=>{const{onRegister:e}=t;if(e&&V()){const{clearFilters:f,clearSorter:a,downloadCsv:g,filters:B,page:h,scrollTo:u,sort:o,filter:n,print:r}=V();q(e,{getTablePagination:k,runTableRequest:P,clearFilters:f,clearSorter:a,downloadCsv:g,filters:B,page:h,scrollTo:u,sort:o,filter:n,print:r,getCurrentTableRequestParams:N})}}),{register:p,paginationRef:l}},render(){const{register:t,$props:p,paginationRef:V,$slots:l}=this,{onRegister:c,showPagination:i,...s}=p;return Vue.createVNode(z,Vue.mergeProps(s,{onRegister:t,pagination:i?V:void 0}),te(l)?l:{default:()=>[l]})}});function ue(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Vue.isVNode(t)}const Ee=Vue.defineComponent({name:"TableProDemo",setup(){const{format:t}=H(),[p,{runTableRequest:V,getCurrentTableRequestParams:l,print:c,downloadCsv:i}]=M(),s=Vue.ref([]),y=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>t(u.signTimeStart)+" ~ "+t(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(n=>Vue.createVNode(naive.NTag,{type:"info",bordered:!1,style:"margin-right: 6px"},ue(n)?n:{default:()=>[n]}))},{title:"Remark",key:"remark"}],v=Vue.ref(0),T=Vue.ref({}),b=Vue.ref((()=>{const o=[],n=S().valueOf();for(let r=0;r<30;r++)o.push({key:Q(),name:A.Random.cname(),age:r+20,address:A.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:S(n).add(r*2,"year").valueOf(),signTimeEnd:S(n).add(r+5,"day").valueOf()});return o})()),d=Vue.ref({pagination:!0,manual:!1}),[k,{checkedRowKeysBind:E,getKeys:N,getRows:P,clearKey:C,clearAll:e,selectKey:f}]=_(s,y,{rowKey:"key",onChange:(u,o,n)=>{}}),a=u=>u==null,g=u=>new Promise(o=>{const{page:n=1,pageSize:r=10,name:F,status:w,signTimeStart:D,signTimeEnd:x}=u||{};let m=b.value;const K=b.value.length;F&&(m=m.filter(R=>R.name.includes(F))),w&&(m=m.filter(R=>R.status===w)),D&&x&&(m=m.filter(R=>R.signTimeStart>=D&&R.signTimeEnd<=x)),m=m.slice((n-1)*r,n*r),setTimeout(()=>{o({code:0,data:m,total:a(w)&&a(F)&&(a(D)||a(x))?K:m.length,message:"success",page:n,pageSize:r})},1e3)}),{run:B,loading:h}=J(g,{onSuccess:u=>{const{data:o,total:n}=u;s.value=o,v.value=n}});return{tableDataRef:s,baseColumns:y,itemCountRef:v,loadingGetPersonList:h,runGetPersonList:B,conditionRef:T,radioRef:d,runTableRequest:V,tableProRegister:p,print:c,downloadCsv:i,checkedRowKeysBind:E,checkedRowKeys:k,getKeys:N,getRows:P,clearKey:C,clearAll:e,selectKey:f}},render(){const{tableDataRef:t,baseColumns:p,itemCountRef:V,loadingGetPersonList:l,runGetPersonList:c,conditionRef:i,radioRef:s,runTableRequest:y,tableProRegister:v,print:T,downloadCsv:b,checkedRowKeysBind:d,getKeys:k,getRows:E,clearKey:N,clearAll:P,selectKey:C}=this;return Vue.createVNode(naive.NFlex,{vertical:!0},{default:()=>[Vue.createVNode(Y,null,{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NFormItemGi,{label:"用户名"},{default:()=>[Vue.createVNode(naive.NInput,{value:i.name,"onUpdate:value":e=>i.name=e,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"状态"},{default:()=>[Vue.createVNode(naive.NSelect,{value:i.status,"onUpdate:value":e=>i.status=e,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"登陆时间"},{default:()=>[Vue.createVNode(naive.NDatePicker,{type:"datetimerange",value:i.RangeTime,"onUpdate:value":e=>i.RangeTime=e,clearable:!0},null)]}),Vue.createVNode(naive.NFormItemGi,{label:"演示折叠的条件框"},{default:()=>[Vue.createVNode(naive.NInput,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>y(),loading:l},{default:()=>[Vue.createTextVNode("查询")]})]})}),Vue.createVNode(naive.NCard,{title:"常用高级拓展功能"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NFormItem,{label:"分页"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:s.pagination,"onUpdate:value":e=>s.pagination=e},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("显示分页")]}),Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("隐藏分页")]})]})]}),Vue.createVNode(naive.NFormItem,{label:"自动更新"},{default:()=>[Vue.createVNode(naive.NRadioGroup,{value:s.manual,"onUpdate:value":e=>s.manual=e},{default:()=>[Vue.createVNode(naive.NRadioButton,{value:!1},{default:()=>[Vue.createTextVNode("自动更新")]}),Vue.createVNode(naive.NRadioButton,{value:!0},{default:()=>[Vue.createTextVNode("取消自动")]})]})]})]})]}),Vue.createVNode(naive.NCard,{title:"useTablePro 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:T},{default:()=>[Vue.createTextVNode("打印")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>b()},{default:()=>[Vue.createTextVNode("下载 csv")]})]})]}),Vue.createVNode(naive.NCard,{title:"useCheckedRowKeys 部分方法"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const e=t[1].key;C(e)}},{default:()=>[Vue.createTextVNode("选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{const e=t[1].key;N(e)}},{default:()=>[Vue.createTextVNode("取消选中第二行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{t==null||t.forEach(e=>C(e.key))}},{default:()=>[Vue.createTextVNode("选中当前页面所有行")]}),Vue.createVNode(naive.NButton,{type:"primary",onClick:()=>{P()}},{default:()=>[Vue.createTextVNode("取消所有已选中行")]})]})]}),Vue.createVNode(ae,{onRegister:v,data:t,columns:p,loading:l,paginationCount:V,request:c,requestConfig:{params:i,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:s.pagination,manual:s.manual,rowKey:e=>e.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":e=>this.checkedRowKeys=e,onUpdateCheckedRowKeys:d},null)]})}});export{Ee as default}; diff --git a/js/TablePro-DSdnm-wa.js.gz b/js/TablePro-DSdnm-wa.js.gz new file mode 100644 index 00000000..ec05fa49 Binary files /dev/null and b/js/TablePro-DSdnm-wa.js.gz differ diff --git a/js/dayjs@1.11.10-C8LoRVP6.js b/js/dayjs@1.11.10-C8LoRVP6.js new file mode 100644 index 00000000..e10bb817 --- /dev/null +++ b/js/dayjs@1.11.10-C8LoRVP6.js @@ -0,0 +1 @@ +import{c as V,g as X}from"./call-bind@1.0.7-Cpj98o6Y.js";var q={exports:{}};(function(z,G){(function(O,D){z.exports=D()})(V,function(){var O=1e3,D=6e4,j=36e5,b="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",p="year",L="date",J="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=R;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(P);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)=n?s:""+Array(n+1-r.length).join(t)+s},X={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;g[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=X;a.l=W,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(Q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==Z},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)i.map(i=>d[i]); -var en=Object.defineProperty;var tn=(e,t,o)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ze=(e,t,o)=>tn(e,typeof t!="symbol"?t+"":t,o);import{s as Te,c as be,t as We,i as ft,p as re,o as Ke}from"./lodash-es@4.17.21-BALnwRTu.js";import{o as on,u as le,a as nn,b as an,c as Oe,d as rn,e as ht}from"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as W}from"./dayjs@1.11.10-D8VSY-p2.js";import{p as ln}from"./print-js@1.6.0-BdoEj60G.js";import{u as gt}from"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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 se,i as G,s as Ue,a as je,c as sn,b as L,r as ee,d as A,e as cn,u as Ve,q as Se,f as ke,h as yt,p as vt,j as qe,k as Je,l as xe,m as un,n as dn,o as pn,t as mn,w as fn,v as U}from"./utils-KzSLWhhh.js";import{i as Qe}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as hn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{d as ne}from"./dom-to-image@2.6.0-DCOFUeQU.js";import{r as gn,u as ae,i as yn,a as vn,b as bn,c as Vn,d as Sn,e as _n,f as wn,g as Cn,h as Nn,j as Tn,k as On,l as kn,m as xn,n as An,o as Rn,p as Pn,q as Mn,s as Ln}from"./echarts@5.5.0-CezqL3m-.js";import{f as En,g as zn}from"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import{c as bt,o as Vt,a as St}from"./@vue_runtime-core@3.4.34-DmZqUhja.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},In="modulepreload",Dn=function(e){return"/ray-template/"+e},et={},k=function(t,o,n){let a=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));a=Promise.all(o.map(l=>{if(l=Dn(l),l in et)return;et[l]=!0;const i=l.endsWith(".css"),u=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":In,i||(c.as="script",c.crossOrigin=""),c.href=l,s&&c.setAttribute("nonce",s),document.head.appendChild(c),i)return new Promise((f,p)=>{c.addEventListener("load",f),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}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.":""))))})},$n=async e=>{var o;const t={};for(const n of e){const a=await jn(Object.assign({"../lang/en-US.ts":()=>k(()=>import("./en-US-B36vO-Y4.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-D6WyREsK.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",_t={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Fn={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Zl="",E={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Bn=[{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"},wt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Wn="zh-CN",Kn="zh-CN",Un={"zh-CN":"zh-cn","en-US":"en"},qn="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),Ct=Vue.ref(null),Gn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Hn=["RLogin","ErrorPage","RayTemplateDoc"],fe=["admin"],es=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),a=Vue.ref(!1),{clickOutside:r}={},s=f=>{a.value=f},l=f=>{f.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:p,clientY:h}=f;o.value=p,n.value=h,s(!0)})};r&&on(e,f=>{r(f)});const i=le(e,"contextmenu",l,t),u=le(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)}function Ce(e){return Vue.readonly(Vue.toRef(_e,e))}function Yn(){return{...Vue.toRefs(Vue.readonly(_e))}}let K;const Xn=async()=>{const e=Yo(),t=await $n(wt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Kn})},ts=async e=>{const t=await Xn();e.use(t),K=t},tt=(e,t)=>t,ie=e=>{if(!K)return{t:r=>tt(e,r),locale:r=>{}};const{t,...o}=K.global;return{...o,t:(r,...s)=>r?!r.includes(".")&&!e?r:t(tt(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,Zn={path:"/dashboard",component:()=>k(()=>import("./index-DahTY4VP.js"),__vite__mapDeps([23,8,1,2,3,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}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/axios",name:"RAxios",component:()=>k(()=>import("./index-BSk1b__p.js"),__vite__mapDeps([26,4,5,2,6,7,27,1,3,12,8,9,10,11,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:P("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ta={path:"barcode",component:()=>k(()=>import("./BarcodeDemo-S0s4tZmk.js"),__vite__mapDeps([29,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.Barcode"),icon:"other",order:2,extra:{label:"new"}}},oa=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={path:"/cache-demo",component:()=>k(()=>import("./index-CFDRyrM7.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,12,8,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CacheDemo"),icon:"other",order:3}},aa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ra={path:"/context-menu",component:()=>k(()=>import("./index-DOsYJ7Jf.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}},la=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),sa={path:"/directive",component:()=>k(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:P("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ia=Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"})),ca={path:"/echart",component:()=>k(()=>import("./index-BoFrDDKW.js"),__vite__mapDeps([32,8,1,2,3,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"}}},ua=Object.freeze(Object.defineProperty({__proto__:null,default:ca},Symbol.toStringTag,{value:"Module"})),da={path:"/form",component:()=>k(()=>import("./index-DaSXHlax.js"),__vite__mapDeps([34,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.Form"),icon:"other",order:2,extra:{label:"useForm"}}},pa=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),ma={path:"/iframe",component:()=>k(()=>import("./index-UnjoS4sw.js"),__vite__mapDeps([35,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},fa=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ha={path:"/mock-demo",component:()=>k(()=>import("./index-BydVTjgZ.js"),__vite__mapDeps([36,8,1,2,3,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"}}},ga=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"})),ya={path:"/modal-demo",component:()=>k(()=>import("./index-CKvChnfa.js"),__vite__mapDeps([37,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.Modal"),icon:"other",order:3}},va=Object.freeze(Object.defineProperty({__proto__:null,default:ya},Symbol.toStringTag,{value:"Module"})),ve=()=>k(()=>Promise.resolve().then(()=>Kr),void 0),ba={path:"/multi",component:ve,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:ve,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:ve,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}}]}]}]},Va=Object.freeze(Object.defineProperty({__proto__:null,default:ba},Symbol.toStringTag,{value:"Module"})),Sa={path:"/precision",component:()=>k(()=>import("./index-BaV3kUha.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,12,8,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.CalculatePrecision"),icon:"other",order:2}},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),wa={path:"/qrcode",component:()=>k(()=>import("./index-DaNdXdWs.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:P("menu.QRCode"),icon:"other",order:2}},Ca=Object.freeze(Object.defineProperty({__proto__:null,default:wa},Symbol.toStringTag,{value:"Module"})),Na={path:"rely-about",component:()=>k(()=>import("./index-6SmwpZr1.js"),__vite__mapDeps([43,44])),meta:{i18nKey:P("menu.RelyAbout"),icon:"rely",order:999}},Ta=Object.freeze(Object.defineProperty({__proto__:null,default:Na},Symbol.toStringTag,{value:"Module"})),Oa={path:"/router-demo",component:ve,meta:{i18nKey:P("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>k(()=>import("./index-fybKXq1D.js"),__vite__mapDeps([45,8,1,2,3,9,10,11,4,5,6,7,12,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}}]},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),xa={path:"/scroll-reveal",component:()=>k(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:P("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Aa=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),Ra={path:"/segment",component:()=>k(()=>import("./index-Dkofov4C.js"),__vite__mapDeps([48,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.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:Ra},Symbol.toStringTag,{value:"Module"})),Ma={path:"/svg-icons",component:()=>k(()=>import("./index-CyBROUEO.js"),__vite__mapDeps([49,8,1,2,3,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}},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),Ea={path:"/table",component:()=>k(()=>import("./index-PJenjIOI.js"),__vite__mapDeps([51,12,8,1,2,4,5,6,7,9,3,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:P("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},za=Object.freeze(Object.defineProperty({__proto__:null,default:Ea},Symbol.toStringTag,{value:"Module"})),Ia={path:"/template-hooks",component:()=>k(()=>import("./index-B4vdbNFr.js"),__vite__mapDeps([52,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.TemplateHooks"),icon:"other",order:1}},Da=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"})),ja=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Jn,"/src/router/modules/demo/axios.ts":ea,"/src/router/modules/demo/barcode.ts":oa,"/src/router/modules/demo/cache-demo.ts":aa,"/src/router/modules/demo/context-menu.ts":la,"/src/router/modules/demo/directive.ts":ia,"/src/router/modules/demo/echart.ts":ua,"/src/router/modules/demo/form.ts":pa,"/src/router/modules/demo/iframe.ts":fa,"/src/router/modules/demo/mock.ts":ga,"/src/router/modules/demo/modal.ts":va,"/src/router/modules/demo/multi-menu.ts":Va,"/src/router/modules/demo/precision.ts":_a,"/src/router/modules/demo/qrcode.ts":Ca,"/src/router/modules/demo/rely.ts":Ta,"/src/router/modules/demo/router-demo.ts":ka,"/src/router/modules/demo/scroll-reveal.ts":Aa,"/src/router/modules/demo/segment.ts":Pa,"/src/router/modules/demo/svg-icons.ts":La,"/src/router/modules/demo/table.ts":za,"/src/router/modules/demo/template-hooks.ts":Da});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},[])},$a=e=>e[0]==="/",Nt=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const a of e){const r=o+($a(a.path)?a.path:"/"+a.path);if((n=a.children)!=null&&n.length){Nt(a.children,t,r);continue}else t.push({...a,path:r})}return t},Fa=e=>Array.isArray(e)?Nt(be(e)):[],Ba=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}),Wa=e=>{const{beforeEach:t}=e,{getRootPath:o}=oe(),n=(a,r)=>a.path==="/"||r.path==="/login";t((a,r,s)=>{const l=se(E.token,"localStorage"),i=se(E.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=a;l!==null?n(a,r)?Ae(!0):!G(c,"Symbol")&&c&&Hn.includes(c)?s():Ko(u)?n(a,r)?i?s(i):Ae(!0):s():Ae(!0):n(a,r)?s():s("/")})},Ae=(e=!0)=>{const{router:t}=Ge(),{push:o,replace:n}=t,{getRootPath:a}=oe();Ue(E.appMenuKey,a.value,"localStorage"),e?n(a.value):o(a.value)},Ka=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Q.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Ua=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()})},Tt=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:a}=t,{MODE:r}=je();return!(n||o||a&&typeof a=="string"&&a!==r||a&&Array.isArray(a)&&!a.includes(r))};var qa={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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 Ot=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=qa,{locale:t}=ie(),{locale:o}=Nl(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Yo(),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"},sideBarLogo:Object.assign({},Fn)}),a=l=>{t(l),o(l),n.localeLanguage=l,Ue(E.localeLanguage,l,"localStorage")},r=(l,i=.3)=>{const u=sn(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const f=document.body;f.style.setProperty("--ray-theme-primary-color",l),f.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return En(()=>n.appTheme,l=>{l?n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:a,changePrimaryColor:r,updateSettingState:s}},{persist:{key:E.appPiniaSettingStore}}),kt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],xt="transparent",At={},Rt={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},Pt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Mt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Lt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Et={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Dt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},$t={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Bt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},Wt={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"}},Kt={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)"}}},Ut={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)"}}},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={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)"]}}},Ht={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)"]}}},Yt={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)"]}}},Xt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Zt={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},Jt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Qt={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"}}},eo={color:["#fc97af","#87f7cf"]},to={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"}},oo={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ga={color:kt,backgroundColor:xt,textStyle:At,title:Rt,line:Pt,radar:Mt,bar:Lt,pie:Et,scatter:zt,boxplot:It,parallel:Dt,sankey:jt,funnel:$t,gauge:Ft,candlestick:Bt,graph:Wt,map:Kt,geo:Ut,categoryAxis:qt,valueAxis:Gt,logAxis:Ht,timeAxis:Yt,toolbox:Xt,legend:Zt,tooltip:Jt,timeline:Qt,visualMap:eo,dataZoom:to,markPoint:oo},Ha=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:xt,bar:Lt,boxplot:It,candlestick:Bt,categoryAxis:qt,color:kt,dataZoom:to,default:Ga,funnel:$t,gauge:Ft,geo:Ut,graph:Wt,legend:Zt,line:Pt,logAxis:Ht,map:Kt,markPoint:oo,parallel:Dt,pie:Et,radar:Mt,sankey:jt,scatter:zt,textStyle:At,timeAxis:Yt,timeline:Qt,title:Rt,toolbox:Xt,tooltip:Jt,valueAxis:Gt,visualMap:eo},Symbol.toStringTag,{value:"Module"})),no=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],ao="transparent",ro={},lo={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},so={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},io={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},co={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ho={itemStyle:{borderWidth:0,borderColor:"#ccc"}},go={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},vo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},bo={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"}},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)"}}},So={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)"}}},_o={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)"]}}},wo={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)"]}}},Co={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)"]}}},No={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)"]}}},To={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Oo={textStyle:{color:"#333333"}},ko={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},xo={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"}}},Ao={color:["#5ab1ef","#e0ffff"]},Ro={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Po={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Ya={color:no,backgroundColor:ao,textStyle:ro,title:lo,line:so,radar:io,bar:co,pie:uo,scatter:po,boxplot:mo,parallel:fo,sankey:ho,funnel:go,gauge:yo,candlestick:vo,graph:bo,map:Vo,geo:So,categoryAxis:_o,valueAxis:wo,logAxis:Co,timeAxis:No,toolbox:To,legend:Oo,tooltip:ko,timeline:xo,visualMap:Ao,dataZoom:Ro,markPoint:Po},Xa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ao,bar:co,boxplot:mo,candlestick:vo,categoryAxis:_o,color:no,dataZoom:Ro,default:Ya,funnel:go,gauge:yo,geo:So,graph:bo,legend:Oo,line:so,logAxis:Co,map:Vo,markPoint:Po,parallel:fo,pie:uo,radar:io,sankey:ho,scatter:po,textStyle:ro,timeAxis:No,timeline:xo,title:lo,toolbox:To,tooltip:ko,valueAxis:wo,visualMap:Ao},Symbol.toStringTag,{value:"Module"})),Za=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Ha,"/src/app-config/echart-themes/macarons/macarons.json":Xa}),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!`)},[])},Ja=e=>{const{getAppTheme:t}=Go(),{theme:o}=t();return Object.assign({},{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.5)":"rgba(255, 255, 255, 0.5)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e)},Qa={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:()=>Ja()},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}},er={notMerge:!1,lazyUpdate:!0,silent:!1,replaceMerge:[]},tr=Za(),ot="__R_CHART_DOWN_LOAD_CHART__";tr.forEach(e=>{gn(e.name,e.theme)});const os=Vue.defineComponent({name:"RChart",props:Qa,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 f=Vue.computed(()=>[{label:"下载图片",key:ot,disabled:!(r.value&&r.value.getDom())}]),p=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),h=Vue.ref(!1);let g;const y=async()=>{var C;ae([vn,bn,Vn,Sn,_n,wn,Cn,Nn]),ae([Tn,On,kn,xn,An,Rn]),ae([Pn,Mn]),ae([Ln]);try{ae((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 R=j=>Object.assign({},M,j);return e.showAria&&(M=R({aria:{enabled:!0,decal:{show:!0}}})),M},d=(C=i)=>{const M=n.value,R=b(e.options),{height:j,width:B}=M.getBoundingClientRect(),{onSuccess:de,onError:pe}=e;try{c=yn(M,C,{width:B===0?200:void 0,height:j===0?200:void 0}),r.value=c,de&&A(de,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{R&&(c==null||c.setOption(R))})):R&&(c==null||c.setOption(R))}catch(Z){throw pe&&A(pe),new Error(`[RChart render error]: ${Z}`)}finally{const{onFinally:Z}=e;Z&&A(Z)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),r.value=void 0,c=null)},O=()=>{c&&c.resize()},v=(C,M)=>{if(C===ot&&!V()){const{filename:j,...B}=e.downloadOptions;cn(c.getDataURL(B),j??`${new Date().getTime()}`)}const{onDropdownSelect:R}=e;R&&A(R,C,M)},w=()=>{if(e.autoResize&&(s||(s=We(O,500)),l||(l=an(e.autoResizeObserverTarget||a,s))),c!=null&&c.getDom()||!h.value&&e.intersectionObserver)return;m(),g==null||g.stop();const{onRegister:C}=e;C&&c&&A(C,c,w,x)};e.intersectionObserver&&(g=nn(e.intersectionObserverTarget||a,([C])=>{h.value=C.isIntersecting},e.intersectionOptions));const x=()=>{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(),m())}),Vue.watch(()=>e.showAria,()=>{S(),m()}),Vue.watchEffect(()=>{e.watchOptions?u=zn(()=>e.options,C=>{const M=b(C),R=Object.assign({},e.setChartOptions,er);c==null||c.setOption(M,R)},{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:a,moreDropDownOptions:f,dropdownSelect:v}},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:ee(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ee(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ee(l,{defaultElement:Vue.createVNode(Eo,{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)}]},or={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:or,setup(e){const t=Vue.ref(!e.open),o=()=>{t.value=!t.value;const{onUpdateValue:a,"onUpdate:value":r}=e;a&&A(a,t.value),r&&A(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(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()]}})]})]}})})}}),nr={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:nr,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:a=>{const{onClick:r}=e;r&&A(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)])])}}),ar={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:ar,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&&A(i,n.value,l)},s=l=>{a.value=!1;const{onError:i}=e;i&&A(i,l)};return le(n,"load",r),le(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)})])}}),rr={...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}},lr=(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=Qe(e).draggable({inertia:!0,autoScroll:!0,allowFrom:r,modifiers:[Qe.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);a(s)}},30)})},Mo=(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;lr(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()})},sr="r-modal__preset-card--fullscreen",Lo="r-modal",te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},ls=Vue.defineComponent({name:"RModal",props:rr,setup(e){const t=Vue.computed(()=>({[te.width]:L(e.width??600),[te.cardWidth]:L(e.cardWidth??600),[te.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&&Mo(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:[Lo,l?sr:""],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:f,dialogWidth:p}=n,h=e({...r,content:s}),{key:g}=h,y={[te.width]:L(c??600),[te.cardWidth]:L(f??600),[te.dialogWidth]:L(p??446)};return Vue.nextTick(()=>{const[m]=Se(`[internalkey="${g}"]`)||[];if(m){if(i&&Mo(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),yt(m,Lo)}}),h},destroyAll:t}},ir={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Eo=Vue.defineComponent({name:"RMoreDropdown",props:ir,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"}),cr(e=ee(a,{defaultElement:Vue.createVNode(T,{name:n,size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),ce={...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")},ur=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],dr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ce},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&&A(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(T,{name:"adjustment",size:F.tableIconSize,cursor:"pointer"},null)]})}}),pr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=gt(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)}}),mr=()=>Vue.createVNode(T,{name:"draggable",size:14,cursor:"grab"},null),nt=({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}),$e=(e,t)=>{if(!t)return[null,null];for(let o=0;obe(e.columns).filter(i=>i.type?(t=i,!1):!0).map((i,u)=>{const{key:c,title:f,children:p,fixed:h,isResizable:g,...y}=i,m=h==="left",b=h==="right",d={...y,title:f,key:c,fixed:h,isLeftFixedActivated:m,isRightFixedActivated:b,isResizable:g};return{...d,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(nt,{icon:"row_head",title:"固定在列首",customClassName:m?Re:"",onClick:r.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:g?Re:"",onClick:a.bind(this,d,u)},null),default:()=>"修改列宽"}),Vue.createVNode(nt,{icon:"row_end",title:"固定在列尾",customClassName:b?Re:"",onClick:r.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&A(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`,f=`${l==="left"?"right":"left"}FixedActivated`;i[f]=!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,f]=$e(i,o.value);if(c===null||f===null)return;c.splice(f,1);const[p,h]=$e(l,o.value);p===null||h===null||(u==="before"?p.splice(h,0,i):p.splice(h+1,0,i),ft(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:mr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),hr=Vue.defineComponent({name:"TablePrint",props:ce,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:""),vt(t,{printOptions:n,domToImageOptions:a})}}},render(){return Vue.createVNode(T,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),gr=Vue.defineComponent({name:"TablePropsSelect",props:{...ce,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&&A(s,r)};return(()=>{const{striped:r,bordered:s,onInitialed:l}=e;r&&o.value.push("striped"),s&&o.value.push("bordered"),l&&A(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:ur,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 yr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const is=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ce,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(Object.assign({striped:!1,bordered:!1},re(e,"striped","bordered"))),f=(d,V)=>{const{onContextMenuClick:S}=e;S&&A(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},g=d=>{const{onUpdateColumns:V,"onUpdate:columns":S}=e;V&&A(V,d),S&&A(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(hr,d,null),Vue.createVNode(dr,Vue.mergeProps(d,{onChangeSize:h.bind(this)}),null),Vue.createVNode(pr,null,null),Vue.createVNode(fr,Vue.mergeProps(d,{onUpdateColumn:g.bind(this)}),null),Vue.createVNode(gr,Vue.mergeProps(d,{onPopselectChange:m.bind(this),onInitialed:m.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let O;return Vue.createVNode(naive.NFlex,{align:"center"},yr(O=y())?O:{default:()=>[O]})}:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),y()]}):S};return Vue.onMounted(()=>{const{onRegister:d}=e;d&&a.value&&A(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:p,contextMenuSelect:f,privateReactive:u,tool:b,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:f}=this,{class:p}=t,{tool:h,combineRowProps:g,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,f,{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:ee(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)}})}}),cs=()=>{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);vt(h)}}}]},zo=(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=zo(a.children,t,o);if(r)return r}}},at=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},vr=(e,t,o,n)=>{const a=Vue.unref(e);return a?t.reduce((r,s)=>{const l=Vue.unref(o).findIndex(u=>u[n]===s);if(l!==-1)return r.push(Vue.unref(o)[l]),r;const i=a.findIndex(u=>u[n]===s);return i!==-1&&r.push(a[i]),r},[]):o},us=(e,t,o)=>{const n=Vue.ref([]),a=Vue.ref([]),{rowKey:r="key",onChange:s}=o||{},l=Vue.computed(()=>at(t)),i=(g,y,m)=>{n.value=g,a.value=Vue.unref(vr(e,g,a,r)),s==null||s(g,a.value,m),at(t)},u=()=>n.value,c=()=>a.value,f=()=>{n.value=[],a.value=[],s==null||s(n.value,a.value,{row:void 0,action:"uncheckAll"})},p=g=>{if(g==null)return;let y;n.value=n.value.filter(m=>m!==g),a.value=a.value.filter(m=>m[r]===g?(y=m,!1):!0),s==null||s(n.value,a.value,{row:y,action:"uncheck"})},h=g=>{if(n.value.includes(g))return;const y=!l.value&&n.value.length>=1,m=zo(Vue.unref(e)||[],r,g);y?n.value=[g]:n.value.push(g),m&&(y?a.value=[m]:a.value.push(m),s==null||s(n.value,a.value,{row:m,action:"check"}))};return qe(()=>{f()}),[n,{checkedRows:a,checkedRowKeysBind:i,getKeys:u,getRows:c,clearAll:f,clearKey:p,selectKey:h}]},br={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Vr=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},br),setup(e){const{getKeepAliveInclude:t}=Er(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:a}=_t;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})])}}}),Sr={...naive.formProps,onRegister:{type:[Function,Array],default:null}},ds=Vue.defineComponent({name:"RForm",props:Sr,setup(e,{expose:t}){const o=Vue.ref();return Vue.onMounted(()=>{const{onRegister:n}=e;n&&o.value&&A(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:()=>be(e)||{},formRules:()=>be(t)||{}}]},_r=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],wr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Cr=Ke({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},..._r);function Nr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Fe=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},Tr=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>Fe(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>Fe(e),default:()=>o})}},ms=Vue.defineComponent({name:"RSegment",props:Cr,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({},wr,a)}),Nr(e=o.map(r=>Vue.createVNode(naive.NTab,{key:r.key,name:r.key,tab:r.popover?Tr(r):Fe(r),disabled:r.disabled},{...r.slots})))?e:{default:()=>[e]})}}),Or={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]}},fs=Vue.defineComponent({name:"RBarcode",props:Or,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&&A(i,s,r,l)}catch(r){const{onError:s}=e;s&&A(s,r)}finally{const{onFinally:r}=e;r&&A(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 kr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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 xr=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Io=(e,t,o)=>{const n=[];if(xr(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const a of e.children){const r=Io(a,t,o);r.length>0&&n.push(e,...r)}return n},Ar=(e,t,o)=>{const n=[];for(const a of e){const r=Io(a,t,o);r.length>0&&n.push(...r)}return n},rt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:o}}=kr,n=o?o.title:"";document.title=t+" - "+n},Rr=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},Do=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=ie(),{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})},lt=()=>{const{getRootPath:e}=oe();return se(E.appMenuKey,"sessionStorage",{defaultValue:e.value})},jo=()=>Ba(ja()),Pr=()=>Fa(jo()),Be=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let he;const $o=(e,t)=>{var o;if(he&&Je(he.fullPath,t))return he;for(const n of e){if(Je(n.fullPath,t))return he=n,n;if((o=n.children)!=null&&o.length){$o(n.children,t);continue}}},Fo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=ie(),{setKeepAliveInclude:a}=zr(),r=Vue.reactive({menuKey:lt(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(d,V)=>{Object.hasOwn(r,d)&&(r[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:Rr(d),extra:Do(d)});return d.fullPath===lt()&&(r.currentMenuOption=x),x.show=Tt(x),x},u=d=>{r.breadcrumbOptions=Ar(r.options,"fullPath",d)},c=(d,V=!0)=>{const O=Array.isArray(d)?[...d]:[d];V?r.menuTagOptions.push(...O):r.menuTagOptions=O},f=(d,V)=>{r.menuTagOptions.find(O=>O.fullPath===d)||r.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(a(V),rt(V),!v)f(d,V),u(d),r.menuKey=d,r.currentMenuOption=V,Ue(E.appMenuKey,d);else{const w=re(i(V),Be);r.breadcrumbOptions.find(C=>C.key===w.key)||r.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=re(O,Be);p(S,i({...v,fullPath:v.path}),V)}},g=()=>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(!Ko(x.meta))continue;v.push(i({...x,fullPath:C}))}return v};if(r.options=V(jo(),""),r.currentMenuOption){const{currentMenuOption:S}=r;r.breadcrumbOptions.length||u(S.key),f(S.fullPath,S),rt(S)}d()}),y=d=>r.collapsed=d,m=(d,V=1)=>r.menuTagOptions.splice(d,V),b=async()=>{s.value&&(await g(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(d,V)=>{await b(),d!==V&&await h(d,o.query)},{immediate:!0}),{...Vue.toRefs(r),changeMenuModelValue:p,collapsedMenu:y,spliceMenTagOptions:m,setMenuTagOptions:c,resolveOption:i,updateMenuState:l}},{persist:{key:E.appPiniaMenuStore,storage:window.localStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Bo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((a,r)=>{ft(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}=Ho(),{appPiniaMenuStore:a,appPiniaSigningStore:r}=E;window.$message.info("账号退出中..."),xe("__all_sessionStorage__","sessionStorage"),xe(a,"localStorage"),xe(r,"localStorage"),n(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:E.appPiniaSigningStore,paths:["signingCallback"],storage:window.localStorage}}),Wo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=_t,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:E.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=Fo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),a=Vue.computed(()=>{const{getRootPath:l}=oe();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}},ue=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a,updateMenuState:r}=Fo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a,updateMenuState:r}},D=()=>{const e=Ot(),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),f=Vue.computed(()=>e.watermarkConfig),p=Vue.computed(()=>e.appRootRoute),h=Vue.computed(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:a,getBreadcrumbSwitch:r,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:f,getAppRootRoute:p,getSideBarLogo:h}},I=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=Ot();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},Mr=()=>{const e=Bo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},Lr=()=>{const{signing:e,logout:t}=Bo();return{signing:e,logout:t}},Er=()=>{const e=Wo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},zr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Wo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},hs=e=>{const t=Pinia.createPinia();e.use(t),t.use(hn)},Ko=e=>{const{getSigningCallback:t}=Mr(),{role:o}=e;return fe!=null&&fe.length&&fe.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},Ir=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Gn;t&&Ua(e),o&&Wa(e)},Dr=Vue.ref(),jr=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{getSideBarLogo:t}=D();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:a})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return Vue.createVNode(T,{name:t.value.icon,size:"30",cursor:a},null);if(G(t.value.icon,"Object"))return ee(t.value.icon)}}},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:Dr},[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:()=>{var a;return Vue.createVNode("h1",{class:"n-menu-item-content"},[((a=e.title)==null?void 0:a[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}}),$r=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o,updateMenuState:n}=ue(),{getMenuOptions:a,getCollapsed:r,getMenuKey:s}=X(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{c()}),s.value),set:()=>{i.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=Ne({observer:p=>{p&&n("collapsed",!1)}}),u=Vue.computed({get:()=>Ce("globalDrawerValue").value,set:p=>{q("globalDrawerValue",p)}}),c=()=>{const p=l.value;p!=null&&Vue.nextTick(()=>{var h,g;return(g=(h=e.value)==null?void 0:h.showOption)==null?void 0:g.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:Ct,collapsed:r.value,onExpand:()=>{n("collapsed",!1)},onCollapse:()=>{n("collapsed",!0)}},{default:()=>[Vue.createVNode(jr,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":p=>l.value=p,options:a.value,indent:Y.menuCollapsedIndent,collapsed:r.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 Fr{constructor(){Ze(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 Pe={requestInstance:null,responseInstance:null},Me={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Br=new Fr,gs=()=>{const e=(l,i)=>{i==="requestInstance"?Pe.requestInstance=l:Pe.responseInstance=l},t=l=>Pe[l],o=(l,i,u)=>{u==="ok"?Me[l]=i:ge[l]=i},n=(l,i)=>i==="ok"?Me[l]:ge[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"?Me[i]:ge[i],f=t(l),{MODE:p}=je();f&&a(c,f,p)},fetchError:(l,i,u)=>{const c=ge[u],{MODE:f}=je();a(c,i,f)}}},Wr=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Br.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Uo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=qo(),{getContentTransition:t}=D(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:r,layoutContentSpinning:s}=Yn();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(T,{name:"out",size:"16",cursor:"pointer"},null)]):null,Vue.createVNode(Wr,null,null),e?Vue.createVNode(Vr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"}));var Ur={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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 qr=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Ur;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Gr=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(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)}}),Hr=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=Go(),{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(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 ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Yr=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}=I(),{getAppTheme:a,getPrimaryColorOverride:r,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=D(),f=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:f,changePrimaryColor:o,getAppTheme:a,getPrimaryColorOverride:r,updateSettingState:n,modelSwitchReactive:p}},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"},ye(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Hr,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ye(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"},ye(o=a("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:Bn,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ye(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 Xr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ue(),{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},Xr(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 Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Jr=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ue(),{getRoutes:a}=VueRouter.useRouter(),r=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(),f=Vue.ref(!1),p="content-item--active",h=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},g=v=>{r.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),h(),r.value=!0)},y=v=>{if(v)f.value=!0;else{f.value=!1,s.searchOptions=[];return}const w=a().reduce((x,C)=>{var B;const M=re(C,["children","meta","path","name"]),R=n({...M,fullPath:C.path}),{breadcrumbLabel:j}=R;return(B=j==null?void 0:j.toLocaleLowerCase())!=null&&B.includes(v.toLocaleLowerCase())&&Tt(R)&&x.push(R),x},[]);setTimeout(()=>{s.searchOptions=w,Vue.nextTick().then(()=>{b()}),f.value=!1},500)},m=v=>{if(v){const{meta:w}=v;w.windowOpen?window.open(w.windowOpen):(r.value=!1,o(v.fullPath,v),setTimeout(un,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;dn(M,p)}if(x!=null&&x.length){const[M]=x;yt(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&&(r.value=!1)}),le(window,"keydown",v=>{g(v),S(v)},!0),{...Vue.toRefs(s),modelShow:r,helperTipOptions:l,fuzzySearchMenuOptions:We(y,300),searchItemClick:m,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:O,loading:f}},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(T,{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"},Le(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]},Le(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"},Le(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?r:{default:()=>[r]})}})])])]})}}),Qr=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=pn();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:a}=e;a&&A(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(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()])]})})}}),el=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"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:se(E.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n,vertical:a}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o,vertical:a},{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]})]})}}),tl=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ol={logout:()=>{const{logout:e}=Lr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=I();e("lockScreenSwitch",!0)}},nl=e=>{const t=ol[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},al=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},rl=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},ll=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=I(),{t:o}=ie(),[n,{toggleFullscreen:a,isEnabled:r}]=gt(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Ne(),f=Ce("globalDrawerValue"),p=Vue.computed(()=>al({isFullscreen:n,isTabletOrSmaller:c})),h=Vue.computed(()=>rl({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",!f.value)}};return{leftIconOptions:p,rightTooltipIconOptions:h,toolIconClick:b=>{var d;(d=g[b])==null||d.call(g)},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:a,updateLocale:r,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(Jr,{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(Gr,{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(Zr,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(Vue.createVNode(Qr,{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(T,{name:l.name,size:18,cursor:"pointer"},null)]})),Vue.createVNode(naive.NDropdown,{options:wt,onSelect:l=>r(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:tl(),onSelect:nl.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(el,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Yr,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),sl=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(ll,null,null)]})}}),il={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},cl=St('',1),ul=[cl];function dl(e,t){return Vt(),bt("svg",il,[...ul])}const pl={render:dl},ml={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},fl=St('',1),hl=[fl];function gl(e,t){return Vt(),bt("svg",ml,[...hl])}const yl={render:gl};function vl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const bl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:a}=X(),{changeMenuModelValue:r}=ue(),{getRootPath:s}=oe(),{maximize:l}=qo(),{reload:i}=kl(),{close:u,closeAll:c,closeRight:f,closeLeft:p,closeOther:h,checkCloseLeft:g,checkCloseRight:y}=Ho(),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(yl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(pl,{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:()=>{f(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(_)},R=(_,N)=>{V.value.forEach(z=>{if(z.key===_){z.disabled=N;return}})},j=_=>{v.actionDropdownShow=!1,r(_.fullPath,_)},B=()=>{const _=document.getElementById(S);if(_)return Array.from(_.childNodes).find(me=>mn(me,C).value)},de=_=>{var z;const N=B();if(N){const me=N.scrollLeft||0,Xe=_==="left"?Math.max(0,me-200):me+200;(z=o.value)==null||z.scrollTo({left:Xe,behavior:"smooth"})}},pe=_=>{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})},He=()=>{const{closeable:_}=a.value[b]??{};R("closeCurrentPage",!_),y(b)?R("closeRight",!1):R("closeRight",!0),g(b)?R("closeLeft",!1):R("closeLeft",!0)},Xo=()=>{b=a.value.findIndex(N=>N.fullPath===n.value),He()},Zo=_=>{a.value.length>1&&_.fullPath!==s.value&&(_.closeable=!0)},Jo=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Qo=()=>{B()&&Vue.nextTick().then(()=>{var N;(N=o.value)==null||N.scrollTo({left:99999,behavior:"smooth"})})},Ye=()=>{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(()=>a.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)?Qo():_.length===(N==null?void 0:N.length)&&Ye()),N===void 0&&Ye()},{immediate:!0}),Vue.watch(()=>v.actionDropdownShow,_=>{var N;_&&((N=We(He,100))==null||N())}),t({}),{getMenuTagOptions:a,closeCurrentMenuTag:M,getMenuKey:n,menuTagClick:j,moreOptions:V,scrollX:de,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:pe,actionState:v,menuTagContextMenu:Z,setCurrentContextmenuIndex:Xo,menuTagMouseenter:Zo,menuTagMouseleave:Jo,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:a,MENU_TAG_DATA:r,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:f,menuTagContextMenu:p,menuTagMouseenter:h,menuTagMouseleave:g,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"},vl(e=a.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:f.bind(this,b),onContextmenu:p.bind(this,d),onMouseenter:h.bind(this,b),onMouseleave:g.bind(this,b),[r]: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||a.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(Eo,{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)]})]})]})])]})}}),Vl=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(bl,null,null)}}),Sl=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`}))},st=rn(E.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),_l=()=>({setLockAppScreen:o=>{st.value=o},getLockAppScreen:()=>st.value}),wl=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:a}=D(),{getLockAppScreen:r}=_l(),s=Sl([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($r,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(sl,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(Vl,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Uo,null,null)]}),o?Vue.createVNode(qr,{ref:"layoutFooterRef"},null):null]})]})}}),Cl=[{path:"/",name:"RLogin",component:()=>k(()=>import("./index-BetZZx4T.js"),__vite__mapDeps([53,1,2,3,4,5,6,7,12,8,9,40,41,42,10,11,24,13,14,15,16,17,18,19,20,21,54]))},{path:"/",name:"RLayout",component:wl,children:[...Pr(),{path:"/:catchAll(.*)",component:()=>k(()=>import("./index-BAQLqlk0.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,12,8,9,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:Cl,scrollBehavior:e=>{Ka(e)}}),ys=e=>{e.use(we),Ir(we)},Ge=()=>we?{router:we}:{router:{}},it="YYYY-MM-DD HH:mm:ss",Nl=()=>({locale:s=>{const l=Un[s];l?W.locale(l):W.locale(qn)},getStartAndEndOfDay:s=>{const{format:l=it}=s??{},i=W(),u=i.startOf("day"),c=i.endOf("day"),f=i.format(l),p=u.format(l),h=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:f,formatStartOfDay:p,formatEndOfDay:h}},format:(s,l)=>{const{format:i=it}=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}=ht(e),n=Vue.ref(!1),{observer:a}=e??{};return fn(()=>{const{media:s=768}=e??{};n.value=t.value<=s,a==null||a(n.value,{width:t.value,height:o.value})}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let ct=999,Ee=!1;const H="ELEMENT-FULLSCREEN-RAY",{width:ut,height:dt}=ht(),pt=document.createElement("style"),Tl=(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:m,top:b}=y.getBoundingClientRect(),d=` - [${H}] { - position: fixed; - width: ${ut.value}px !important; - height: ${dt.value}px !important; - transform: translate(-${m}px, -${b}px) !important; - transition: ${i}; - z-index: ${G(l,"Null")||G(l,"Undefined")?ct:l} !important; - background-color: ${s??null}; - } - `;pt.innerHTML=d,Ee||document.head.appendChild(pt)},f=()=>{const y=U(e);o==null||o(),y&&(y.getAttribute(H)||y.setAttribute(H,H),u||(u=!0,ct+=1),Ee||(c(),Ee=!0),y.style.transition=i,a==null||a())},p=()=>{n==null||n();const y=U(e);y&&y.removeAttribute(H),r==null||r()},h=()=>{const y=U(e);y&&(y.getAttribute(H)?p():f())},g=Vue.watch(()=>[ut.value,dt.value],c);return qe(()=>{const y=U(e);y&&y.removeAttribute(H),g()}),{enter:f,exit:p,toggleFullscreen:h}},ze={svg:ne.toSvg,png:ne.toPng,jpeg:ne.toJpeg,blob:ne.toBlob,pixelData:ne.toPixelData},vs=(e,t)=>{const{beforeCreate:o,created:n,createdError:a,finally:r,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var p;const f=U(e);if(o==null||o(f),!f)return a==null||a(),c("useDomToImage: element is undefined.");(p=ze[i??s??"jpeg"])==null||p.call(ze,f,t).then(h=>(n==null||n(h,f),u(h))).catch(h=>(a==null||a(h),c(h))).finally(()=>{r==null||r()})})}},bs=(e,t)=>({print:()=>{const n=U(e)||e;ln({...Ke(t,["printable"]),printable:n})}}),Ol={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Vs=(e,t)=>{const o=Vue.ref(e),n=Ke(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({},Ol,n,a)),s=r.value.onUpdatePage,l=r.value.onUpdatePageSize,i=()=>r.value.itemCount,u=d=>{r.value.itemCount=d},c=()=>r.value.page,f=d=>{s(d)},p=()=>r.value.pageSize,h=d=>{l(d)},g=()=>r.value,y=e,m=d=>{o.value=d},b=()=>{const{pageSizes:d}=r.value;r.value.page=1,r.value.pageSize=(d==null?void 0:d[0])||10};return qe(()=>{o.value=void 0}),[r,{getItemCount:i,setItemCount:u,getPage:c,setPage:f,getPageSize:p,setPageSize:h,getPagination:g,getCallback:y,setCallback:m,resetPagination:b}]},qo=()=>({isLayoutContentMaximized:Vue.computed(()=>Ce("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:a}=n??{},r=U(Q),{toggleFullscreen:s}=Tl(r,n);q("layoutContentMaximize",o),s(),a&&o&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(a))}}),kl=()=>({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}=I();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=I();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=I();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=D(),{updateSettingState:r}=I();r("watermarkSwitch",!a.value)}}),Ie=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:o}=I();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},Go=()=>{const e=()=>{const{getAppTheme:a}=D(),{t:r}=ie();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}=I();a("appTheme",!0),Ie(!0)},lightTheme:()=>{const{updateSettingState:a}=I();a("appTheme",!1),Ie(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:r}=I();r("appTheme",!a),Ie(!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 Ho(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:r}=ue(),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: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:g}=oe(),{router:{getRoutes:y}}=Ge(),m=y().find(b=>b.path===g.value);if(m){const b=re(m,Be),d=r(b);o(d.path,r({...d,fullPath:d.path}))}},closeRight:g=>{const y=J(g,"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:g=>{const y=J(g,"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:g=>{const y=J(g,"closeOther");if(y){const{option:m}=y;t.value!==m.fullPath?(n(0,e.value.length),o(m.fullPath,m)):a(m,!1)}},getCurrentTagIndex:s,checkCloseRight:g=>{const y=J(g,"checkCloseRight");if(y){const{index:m}=y,b=e.value.length-1;return!(m>=b)}return!1},checkCloseLeft:g=>{const y=J(g,"checkCloseRight");if(y){const{index:m}=y,b=e.value.length-1;return m===0?!1:m>0&&b>0}return!1}}}function _s(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:a,replace:r}}=Ge(),{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],f=p=>{if(p.children&&p.children.length>0){const{children:[h]}=p;f(h);return}i(p.fullPath)};f(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 oe(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=I(),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=Do(e)},mt=(e,t,o)=>{const n=$o(e,t);n&&xl(n,o)},De=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")mt(n.value,e,o);else if(G(e,"Object")){const{fullPath:a}=e;mt(n.value,a,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function ws(){return{hidden:n=>{De(n,"hidden",{show:!1})},show:n=>{De(n,"show",{show:!0})},update:(n,a)=>{De(n,"update",a)}}}const Cs=()=>{const e=Ct.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Yo=()=>se(E.localeLanguage,"localStorage",{defaultValue:Wn});export{Ss as $,Zl as A,os as B,ns as C,qn as D,ps as E,ds as F,rs as G,Vs as H,as as I,is as J,Br as K,Ct as L,Yl as M,gs as N,Ql as O,ss as P,ms as Q,ls as R,Dr as S,Hr as T,cs as U,us as V,Eo as W,qo as X,_s as Y,kl as Z,k as _,bs as a,Go as a0,ws as a1,Cs as b,Jl as c,D as d,E as e,I as f,Hl as g,_l as h,Lr as i,Ne as j,el as k,Ce as l,Xl as m,ts as n,ys as o,oe as p,ie as q,T as r,hs as s,wt as t,vs as u,Ae as v,Ge as w,Gl as x,fs as y,es as z}; diff --git a/js/hooks-BbIBxRo9.js.gz b/js/hooks-BbIBxRo9.js.gz deleted file mode 100644 index c1ff39f3..00000000 Binary files a/js/hooks-BbIBxRo9.js.gz and /dev/null differ diff --git a/js/hooks-C7ZgHAXE.js b/js/hooks-C7ZgHAXE.js new file mode 100644 index 00000000..b14c3ee3 --- /dev/null +++ b/js/hooks-C7ZgHAXE.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CLY6lC7i.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js","js/@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js","js/@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js","js/utils-DCtVzoYl.js","js/interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/@vue_runtime-core@3.4.38-f9XU7P4m.js","js/@vue_reactivity@3.4.38-CmXFqMGn.js","js/@vue_shared@3.4.38-D8qfpBTH.js","js/zh-CN-CaDQLPQN.js","js/index-4kfTDO0r.js","js/index-43Sr2ZDd.js","css/index-D_4DGt8i.css","js/index-CjpCzadx.js","js/instance-B383KSvY.js","css/index-QAd2IBUs.css","js/BarcodeDemo-DfxRtshw.js","js/index-NCC7fydm.js","js/index-PkknP_3z.js","js/index-DroGm3M_.js","css/index-DHYYVpM7.css","js/index-CtW8lgEK.js","js/index-Bf1RTeuh.js","js/index-tkmn2WXc.js","js/index-Bsvn83r6.js","js/index-D3O3Ds63.js","js/index-DU0AD4bw.js","js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js","css/vue3-next-qrcode@2.0.10_typescript@5.2-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-DcVTveMA.js","css/index-B6yUFiKH.css","js/index-DUQF5ve0.js","js/index-E385tkq8.js","css/index-Dig957GB.css","js/index-ZaYYoxBv.js","js/index-COExw1oh.js","css/index-Eq1L-L2-.css","js/TablePro-DSdnm-wa.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BqB5dHh9.js","js/index-DPDK5RVu.js","js/index-w7oxyM--.js","css/index-74sXJ5VP.css","js/index-UXuVFO1a.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]); +var en=Object.defineProperty;var tn=(e,t,o)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Je=(e,t,o)=>tn(e,typeof t!="symbol"?t+"":t,o);import{s as Ne,c as ve,t as Ke,i as ft,p as re,o as Ue}from"./lodash-es@4.17.21-BALnwRTu.js";import{o as on,u as le,a as nn,b as an,c as Oe,d as rn,e as ht}from"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as W}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as ln}from"./print-js@1.6.0-BdoEj60G.js";import{u as gt}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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 se,i as G,s as qe,a as $e,c as sn,b as L,r as ee,d as R,e as cn,u as Ve,q as Se,f as ke,h as yt,p as bt,j as Ge,k as Qe,l as xe,m as un,n as dn,o as pn,t as mn,w as fn,v as U}from"./utils-DCtVzoYl.js";import{i as et}from"./interactjs@1.10.26-DZL_TZzP.js";import{s as hn}from"./pinia-plugin-persistedstate@3.2.1_pinia@2.1.7-RV7uh3T-.js";import{d as ne}from"./dom-to-image@2.6.0-DCOFUeQU.js";import{r as gn,u as ae,i as yn,a as bn,b as vn,c as Vn,d as Sn,e as _n,f as wn,g as Cn,h as Tn,j as Nn,k as On,l as kn,m as xn,n as Rn,o as An,p as Pn,q as Mn,s as Ln}from"./echarts@5.5.0-CezqL3m-.js";import{f as En,g as zn}from"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import{c as vt,o as Vt,a as St}from"./@vue_runtime-core@3.4.38-f9XU7P4m.js";const Yl=(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?(Ne(o,i,o[i]||{}),Ne(o[i],u,a)):Ne(o,i,a||{}))}),o},In="modulepreload",Dn=function(e){return"/ray-template/"+e},tt={},k=function(t,o,n){let a=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));a=Promise.all(o.map(l=>{if(l=Dn(l),l in tt)return;tt[l]=!0;const i=l.endsWith(".css"),u=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":In,i||(c.as="script",c.crossOrigin=""),c.href=l,s&&c.setAttribute("nonce",s),document.head.appendChild(c),i)return new Promise((f,p)=>{c.addEventListener("load",f),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}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.":""))))})},$n=async e=>{var o;const t={};for(const n of e){const a=await jn(Object.assign({"../lang/en-US.ts":()=>k(()=>import("./en-US-CLY6lC7i.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-CaDQLPQN.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},Xl=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}}},Zl={max:5,closable:!1},Jl="loading",_t={setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:5},Fn={icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},Y={menuCollapsedWidth:64,menuCollapsedMode:"width",menuCollapsedIconSize:22,menuCollapsedIndent:24,menuAccordion:!1},Ql="",E={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Bn=[{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"},wt=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Wn="zh-CN",Kn="zh-CN",Un={"zh-CN":"zh-cn","en-US":"en"},qn="zh-cn",es={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)$/},ts={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Q=Vue.ref(null),Ct=Vue.ref(null),Gn={setupRouterLoadingBar:!0,setupRouterGuard:!0},Hn=["RLogin","ErrorPage","RayTemplateDoc"],fe=["admin"],os=(e,t)=>{const o=Vue.ref(0),n=Vue.ref(0),a=Vue.ref(!1),{clickOutside:r}={},s=f=>{a.value=f},l=f=>{f.preventDefault(),s(!1),Vue.nextTick().then(()=>{const{clientX:p,clientY:g}=f;o.value=p,n.value=g,s(!0)})};r&&on(e,f=>{r(f)});const i=le(e,"contextmenu",l,t),u=le(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)}function Ce(e){return Vue.readonly(Vue.toRef(_e,e))}function Yn(){return{...Vue.toRefs(Vue.readonly(_e))}}let K;const Xn=async()=>{const e=Yo(),t=await $n(wt);return VueI18n.createI18n({legacy:!1,locale:e,messages:t,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Kn})},ns=async e=>{const t=await Xn();e.use(t),K=t},ot=(e,t)=>t,ie=e=>{if(!K)return{t:r=>ot(e,r),locale:r=>{}};const{t,...o}=K.global;return{...o,t:(r,...s)=>r?!r.includes(".")&&!e?r:t(ot(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}}},A=e=>e,Zn={path:"/dashboard",component:()=>k(()=>import("./index-4kfTDO0r.js"),__vite__mapDeps([23,8,1,2,3,4,5,6,7,24,9,10,11,12,13,14,15,16,17,18,19,20,21,25])),meta:{i18nKey:A("menu.Dashboard"),icon:"dashboard",order:0}},Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),Qn={path:"/axios",name:"RAxios",component:()=>k(()=>import("./index-CjpCzadx.js"),__vite__mapDeps([26,4,5,2,6,7,27,1,3,12,8,9,10,11,13,14,15,16,17,18,19,20,21,28])),meta:{i18nKey:A("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},ea=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ta={path:"barcode",component:()=>k(()=>import("./BarcodeDemo-DfxRtshw.js"),__vite__mapDeps([29,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},oa=Object.freeze(Object.defineProperty({__proto__:null,default:ta},Symbol.toStringTag,{value:"Module"})),na={path:"/cache-demo",component:()=>k(()=>import("./index-NCC7fydm.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,12,8,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.CacheDemo"),icon:"other",order:3}},aa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ra={path:"/context-menu",component:()=>k(()=>import("./index-PkknP_3z.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:A("menu.ContextMenu"),icon:"other",order:2}},la=Object.freeze(Object.defineProperty({__proto__:null,default:ra},Symbol.toStringTag,{value:"Module"})),sa={path:"/directive",component:()=>k(()=>import("./index-5cxxl6_s.js"),[]),meta:{i18nKey:A("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},ia=Object.freeze(Object.defineProperty({__proto__:null,default:sa},Symbol.toStringTag,{value:"Module"})),ca={path:"/echart",component:()=>k(()=>import("./index-DroGm3M_.js"),__vite__mapDeps([32,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,33])),meta:{i18nKey:A("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},ua=Object.freeze(Object.defineProperty({__proto__:null,default:ca},Symbol.toStringTag,{value:"Module"})),da={path:"/form",component:()=>k(()=>import("./index-CtW8lgEK.js"),__vite__mapDeps([34,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},pa=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),ma={path:"/iframe",component:()=>k(()=>import("./index-Bf1RTeuh.js"),__vite__mapDeps([35,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},fa=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ha={path:"/mock-demo",component:()=>k(()=>import("./index-tkmn2WXc.js"),__vite__mapDeps([36,8,1,2,3,4,5,6,7,27,12,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},ga=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"})),ya={path:"/modal-demo",component:()=>k(()=>import("./index-Bsvn83r6.js"),__vite__mapDeps([37,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Modal"),icon:"other",order:3}},ba=Object.freeze(Object.defineProperty({__proto__:null,default:ya},Symbol.toStringTag,{value:"Module"})),be=()=>k(()=>Promise.resolve().then(()=>qr),void 0),va={path:"/multi",component:be,meta:{i18nKey:A("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:be,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:be,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}}]}]}]},Va=Object.freeze(Object.defineProperty({__proto__:null,default:va},Symbol.toStringTag,{value:"Module"})),Sa={path:"/precision",component:()=>k(()=>import("./index-D3O3Ds63.js"),__vite__mapDeps([38,1,2,3,4,5,6,7,12,8,9,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.CalculatePrecision"),icon:"other",order:2}},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Sa},Symbol.toStringTag,{value:"Module"})),wa={path:"/qrcode",component:()=>k(()=>import("./index-DU0AD4bw.js"),__vite__mapDeps([39,40,41,42])),meta:{i18nKey:A("menu.QRCode"),icon:"other",order:2}},Ca=Object.freeze(Object.defineProperty({__proto__:null,default:wa},Symbol.toStringTag,{value:"Module"})),Ta={path:"rely-about",component:()=>k(()=>import("./index-DcVTveMA.js"),__vite__mapDeps([43,44])),meta:{i18nKey:A("menu.RelyAbout"),icon:"rely",order:999}},Na=Object.freeze(Object.defineProperty({__proto__:null,default:Ta},Symbol.toStringTag,{value:"Module"})),Oa={path:"/router-demo",component:be,meta:{i18nKey:A("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>k(()=>import("./index-DUQF5ve0.js"),__vite__mapDeps([45,8,1,2,3,9,10,11,4,5,6,7,12,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}}]},ka=Object.freeze(Object.defineProperty({__proto__:null,default:Oa},Symbol.toStringTag,{value:"Module"})),xa={path:"/scroll-reveal",component:()=>k(()=>import("./index-E385tkq8.js"),__vite__mapDeps([46,47])),meta:{i18nKey:A("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Ra=Object.freeze(Object.defineProperty({__proto__:null,default:xa},Symbol.toStringTag,{value:"Module"})),Aa={path:"/segment",component:()=>k(()=>import("./index-ZaYYoxBv.js"),__vite__mapDeps([48,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Pa=Object.freeze(Object.defineProperty({__proto__:null,default:Aa},Symbol.toStringTag,{value:"Module"})),Ma={path:"/svg-icons",component:()=>k(()=>import("./index-COExw1oh.js"),__vite__mapDeps([49,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,50])),meta:{i18nKey:A("menu.SvgIcon"),icon:"other",order:3}},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),Ea={path:"/table-pro",component:()=>k(()=>import("./TablePro-DSdnm-wa.js"),__vite__mapDeps([51,8,1,2,3,4,5,6,7,12,9,27,52,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},za=Object.freeze(Object.defineProperty({__proto__:null,default:Ea},Symbol.toStringTag,{value:"Module"})),Ia={path:"/table",component:()=>k(()=>import("./index-BqB5dHh9.js"),__vite__mapDeps([53,12,8,1,2,4,5,6,7,9,3,10,11,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Da=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"})),ja={path:"/template-hooks",component:()=>k(()=>import("./index-DPDK5RVu.js"),__vite__mapDeps([54,8,1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21])),meta:{i18nKey:A("menu.TemplateHooks"),icon:"other",order:1}},$a=Object.freeze(Object.defineProperty({__proto__:null,default:ja},Symbol.toStringTag,{value:"Module"})),Fa=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":Jn,"/src/router/modules/demo/axios.ts":ea,"/src/router/modules/demo/barcode.ts":oa,"/src/router/modules/demo/cache-demo.ts":aa,"/src/router/modules/demo/context-menu.ts":la,"/src/router/modules/demo/directive.ts":ia,"/src/router/modules/demo/echart.ts":ua,"/src/router/modules/demo/form.ts":pa,"/src/router/modules/demo/iframe.ts":fa,"/src/router/modules/demo/mock.ts":ga,"/src/router/modules/demo/modal.ts":ba,"/src/router/modules/demo/multi-menu.ts":Va,"/src/router/modules/demo/precision.ts":_a,"/src/router/modules/demo/qrcode.ts":Ca,"/src/router/modules/demo/rely.ts":Na,"/src/router/modules/demo/router-demo.ts":ka,"/src/router/modules/demo/scroll-reveal.ts":Ra,"/src/router/modules/demo/segment.ts":Pa,"/src/router/modules/demo/svg-icons.ts":La,"/src/router/modules/demo/table-pro.ts":za,"/src/router/modules/demo/table.ts":Da,"/src/router/modules/demo/template-hooks.ts":$a});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},[])},Ba=e=>e[0]==="/",Tt=(e,t=[],o="")=>{var n;if(!Array.isArray(e))return[];for(const a of e){const r=o+(Ba(a.path)?a.path:"/"+a.path);if((n=a.children)!=null&&n.length){Tt(a.children,t,r);continue}else t.push({...a,path:r})}return t},Wa=e=>Array.isArray(e)?Tt(ve(e)):[],Ka=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}),Ua=e=>{const{beforeEach:t}=e,{getRootPath:o}=oe(),n=(a,r)=>a.path==="/"||r.path==="/login";t((a,r,s)=>{const l=se(E.token,"localStorage"),i=se(E.appMenuKey,"sessionStorage",{defaultValue:o.value}),{meta:u,name:c}=a;l!==null?n(a,r)?Re(!0):!G(c,"Symbol")&&c&&Hn.includes(c)?s():Ko(u)?n(a,r)?i?s(i):Re(!0):s():Re(!0):n(a,r)?s():s("/")})},Re=(e=!0)=>{const{router:t}=He(),{push:o,replace:n}=t,{getRootPath:a}=oe();qe(E.appMenuKey,a.value,"localStorage"),e?n(a.value):o(a.value)},qa=e=>{var o;const{meta:t}=e;t!=null&&t.ignoreAutoResetScroll||(o=Q.value)==null||o.scrollTo({top:0,left:0,behavior:"smooth"})},Ga=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()})},Nt=e=>{const{meta:t={}}=e,{hidden:o,sameLevel:n,env:a}=t,{MODE:r}=$e();return!(n||o||a&&typeof a=="string"&&a!==r||a&&Array.isArray(a)&&!a.includes(r))};var Ha={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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 Ot=Pinia.defineStore("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Ha,{locale:t}=ie(),{locale:o}=Ol(),n=Vue.reactive({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},appTheme:!1,menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Yo(),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"},sideBarLogo:Object.assign({},Fn)}),a=l=>{t(l),o(l),n.localeLanguage=l,qe(E.localeLanguage,l,"localStorage")},r=(l,i=.3)=>{const u=sn(l,i),c={primaryColor:l,primaryColorHover:l,primaryColorPressed:l};n.primaryColorOverride.common=c;const f=document.body;f.style.setProperty("--ray-theme-primary-color",l),f.style.setProperty("--ray-theme-primary-fade-color",u)},s=(l,i,u)=>{Object.hasOwn(n,l)&&(n[l]=i),u==null||u()};return En(()=>n.appTheme,l=>{l?n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):n.primaryColorOverride=Object.assign({},n.primaryColorOverride,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light)},{immediate:!0}),{...Vue.toRefs(n),updateLocale:a,changePrimaryColor:r,updateSettingState:s}},{persist:{key:E.appPiniaSettingStore}}),kt=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],xt="transparent",Rt={},At={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},Pt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Mt={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Lt={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Et={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},It={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Dt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},jt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},$t={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Bt={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},Wt={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"}},Kt={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)"}}},Ut={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)"}}},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={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)"]}}},Ht={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)"]}}},Yt={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)"]}}},Xt={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},Zt={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},Jt={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Qt={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"}}},eo={color:["#fc97af","#87f7cf"]},to={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"}},oo={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Ya={color:kt,backgroundColor:xt,textStyle:Rt,title:At,line:Pt,radar:Mt,bar:Lt,pie:Et,scatter:zt,boxplot:It,parallel:Dt,sankey:jt,funnel:$t,gauge:Ft,candlestick:Bt,graph:Wt,map:Kt,geo:Ut,categoryAxis:qt,valueAxis:Gt,logAxis:Ht,timeAxis:Yt,toolbox:Xt,legend:Zt,tooltip:Jt,timeline:Qt,visualMap:eo,dataZoom:to,markPoint:oo},Xa=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:xt,bar:Lt,boxplot:It,candlestick:Bt,categoryAxis:qt,color:kt,dataZoom:to,default:Ya,funnel:$t,gauge:Ft,geo:Ut,graph:Wt,legend:Zt,line:Pt,logAxis:Ht,map:Kt,markPoint:oo,parallel:Dt,pie:Et,radar:Mt,sankey:jt,scatter:zt,textStyle:Rt,timeAxis:Yt,timeline:Qt,title:At,toolbox:Xt,tooltip:Jt,valueAxis:Gt,visualMap:eo},Symbol.toStringTag,{value:"Module"})),no=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],ao="transparent",ro={},lo={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},so={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},io={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},co={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},uo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},po={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},fo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ho={itemStyle:{borderWidth:0,borderColor:"#ccc"}},go={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yo={itemStyle:{borderWidth:0,borderColor:"#ccc"}},bo={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},vo={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"}},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)"}}},So={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)"}}},_o={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)"]}}},wo={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)"]}}},Co={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)"]}}},To={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)"]}}},No={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},Oo={textStyle:{color:"#333333"}},ko={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},xo={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"}}},Ro={color:["#5ab1ef","#e0ffff"]},Ao={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Po={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},Za={color:no,backgroundColor:ao,textStyle:ro,title:lo,line:so,radar:io,bar:co,pie:uo,scatter:po,boxplot:mo,parallel:fo,sankey:ho,funnel:go,gauge:yo,candlestick:bo,graph:vo,map:Vo,geo:So,categoryAxis:_o,valueAxis:wo,logAxis:Co,timeAxis:To,toolbox:No,legend:Oo,tooltip:ko,timeline:xo,visualMap:Ro,dataZoom:Ao,markPoint:Po},Ja=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:ao,bar:co,boxplot:mo,candlestick:bo,categoryAxis:_o,color:no,dataZoom:Ao,default:Za,funnel:go,gauge:yo,geo:So,graph:vo,legend:Oo,line:so,logAxis:Co,map:Vo,markPoint:Po,parallel:fo,pie:uo,radar:io,sankey:ho,scatter:po,textStyle:ro,timeAxis:To,timeline:xo,title:lo,toolbox:No,tooltip:ko,valueAxis:wo,visualMap:Ro},Symbol.toStringTag,{value:"Module"})),Qa=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Xa,"/src/app-config/echart-themes/macarons/macarons.json":Ja}),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!`)},[])},er=e=>{const{getAppTheme:t}=Go(),{theme:o}=t();return Object.assign({},{text:"loading",color:"#c23531",textColor:o?"#fff":"#000",maskColor:o?"rgba(0, 0, 0, 0.5)":"rgba(255, 255, 255, 0.5)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"},e)},tr={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:()=>er()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]})},onRegister:{type:[Function,Array],default:null}},or={notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]},nr=Qa(),nt="__R_CHART_DOWN_LOAD_CHART__";nr.forEach(e=>{gn(e.name,e.theme)});const as=Vue.defineComponent({name:"RChart",props:tr,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 f=Vue.computed(()=>[{label:"下载图片",key:nt,disabled:!(r.value&&r.value.getDom())}]),p=Vue.computed(()=>({"--ray-chart-width":L(e.width),"--ray-chart-height":L(e.height)})),g=Vue.ref(!1);let m;const y=async()=>{var C;ae([bn,vn,Vn,Sn,_n,wn,Cn,Tn]),ae([Nn,On,kn,xn,Rn,An]),ae([Pn,Mn]),ae([Ln]);try{ae((C=e.use)==null?void 0:C.filter(Boolean))}catch(M){console.error("[RChart register error]: ",M)}},h=()=>{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 P=j=>Object.assign({},M,j);return e.showAria&&(M=P({aria:{enabled:!0,decal:{show:!0}}})),M},d=(C=i)=>{const M=n.value,P=b(e.options),{height:j,width:B}=M.getBoundingClientRect(),{onSuccess:de,onError:pe}=e;try{c=yn(M,C,{width:B===0?200:void 0,height:j===0?200:void 0}),r.value=c,de&&R(de,c),e.nextTick?(c.setOption({}),Vue.nextTick(()=>{P&&(c==null||c.setOption(P))})):P&&(c==null||c.setOption(P))}catch(Z){throw pe&&R(pe),new Error(`[RChart render error]: ${Z}`)}finally{const{onFinally:Z}=e;Z&&R(Z)}},V=()=>!(c&&c.getDom()),S=()=>{V()||(c.clear(),c.dispose(),r.value=void 0,c=null)},O=()=>{c&&c.resize()},v=(C,M)=>{if(C===nt&&!V()){const{filename:j,...B}=e.downloadOptions;cn(c.getDataURL(B),j??`${new Date().getTime()}`)}const{onDropdownSelect:P}=e;P&&R(P,C,M)},w=()=>{if(e.autoResize&&(s||(s=Ke(O,500)),l||(l=an(e.autoResizeObserverTarget||a,s))),c!=null&&c.getDom()||!g.value&&e.intersectionObserver)return;h(),m==null||m.stop();const{onRegister:C}=e;C&&c&&R(C,c,w,x)};e.intersectionObserver&&(m=nn(e.intersectionObserverTarget||a,([C])=>{g.value=C.isIntersecting},e.intersectionOptions));const x=()=>{S(),s==null||s.cancel(),l==null||l.stop(),m==null||m.stop(),m=null,s=null,l=null};return Vue.watch(()=>o.value,()=>{e.autoChangeTheme&&(S(),h())}),Vue.watch(()=>e.showAria,()=>{S(),h()}),Vue.watchEffect(()=>{e.watchOptions?u=zn(()=>e.options,C=>{const M=b(C),P=Object.assign({},or,e.setChartOptions);c==null||c.setOption(M,P)},{deep:!0,throttle:e.watchOptionsThrottleWait}):u==null||u(),e.loading?c==null||c.showLoading(e.loadingOptions):c==null||c.hideLoading(),g.value&&w()}),t(),Vue.onBeforeMount(async()=>{await y()}),Vue.onMounted(()=>{w()}),Vue.onBeforeUnmount(()=>{x(),u==null||u()}),{rayChartRef:n,cssVarsRef:p,rayChartWrapperRef:a,moreDropDownOptions:f,dropdownSelect:v}},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:ee(Vue.createVNode("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:ee(e,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}),"header-extra":ee(l,{defaultElement:Vue.createVNode(Eo,{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)])}}),rs=()=>{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)}]},ar={actionAlign:{type:String,default:"end"},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},ls=Vue.defineComponent({name:"RCollapseGrid",props:ar,setup(e){const t=Vue.ref(!e.open),o=Vue.computed(()=>({"--r-collapse-grid-action-align":e.actionAlign})),n=()=>{t.value=!t.value;const{onUpdateValue:r,"onUpdate:value":s}=e;r&&R(r,t.value),s&&R(s,t.value)};return{modelCollapsed:t,collapseClick:n,CollapseIcon:()=>Vue.createVNode("div",{class:"collapse-icon",onClick:n.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)]),cssVars:o}},render(){const{cssVars:e}=this;return Vue.createVNode(naive.NCard,{bordered:this.bordered,style:[e]},{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 t,o;return[(o=(t=this.$slots).default)==null?void 0:o.call(t),Vue.createVNode(naive.NGridItem,{suffix:!0,class:["ray-collapse-grid__suffix--btn"]},{default:()=>[Vue.createVNode(naive.NFlex,{justify:"end",align:"center"},{default:()=>{var n,a;return[(a=(n=this.$slots).action)==null?void 0:a.call(n),this.CollapseIcon()]}})]})]}})})}}),rr={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:rr,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:a=>{const{onClick:r}=e;r&&R(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)])])}}),lr={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}},ss=Vue.defineComponent({name:"RIframe",props:lr,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&&R(i,n.value,l)},s=l=>{a.value=!1;const{onError:i}=e;i&&R(i,l)};return le(n,"load",r),le(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)})])}}),sr={...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}},ir=(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=et(e).draggable({inertia:!0,autoScroll:!0,allowFrom:r,modifiers:[et.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:l=>{n==null||n(l)}}}).resizable(!1);a(s)}},30)})},Mo=(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;ir(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()})},cr="r-modal__preset-card--fullscreen",Lo="r-modal",te={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},is=Vue.defineComponent({name:"RModal",props:sr,setup(e){const t=Vue.computed(()=>({[te.width]:L(e.width??600),[te.cardWidth]:L(e.cardWidth??600),[te.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&&Mo(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:[Lo,l?cr:""],style:[r,l?"height: 100vh":""],preset:n},{id:s},a,o),{...t})}}),cs=()=>{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:{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:f,dialogWidth:p}=n,g=e({...r,content:s}),{key:m}=g,y={[te.width]:L(c??600),[te.cardWidth]:L(f??600),[te.dialogWidth]:L(p??446)};return Vue.nextTick(()=>{const[h]=Se(`[internalkey="${m}"]`)||[];if(h){if(i&&Mo(h,{preset:l,x:0,y:0}),u&&l==="card"){const b=h.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(h,{width:"100%",height:"100vh"})}ke(h,y),yt(h,Lo)}}),g},destroyAll:t}},ur={...naive.dropdownProps,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Eo=Vue.defineComponent({name:"RMoreDropdown",props:ur,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"}),dr(e=ee(a,{defaultElement:Vue.createVNode(N,{name:n,size:t,cursor:o},null)}))?e:{default:()=>[e]})}}),ce={...naive.dataTableProps,renderWrapperHeader:{type:Boolean,default:!0},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")},pr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],mr=Vue.defineComponent({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ce},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&&R(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)]})}}),fr=Vue.defineComponent({name:"TableFullscreen",setup(){const{wrapperRef:e}=Vue.inject(F.tableKey,{}),[t,{toggleFullscreen:o,isEnabled:n}]=gt(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)}}),hr=()=>Vue.createVNode(N,{name:"draggable",size:14,cursor:"grab"},null),at=({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}),Fe=(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:f,children:p,fixed:g,isResizable:m,...y}=i,h=g==="left",b=g==="right",d={...y,title:f,key:c,fixed:g,isLeftFixedActivated:h,isRightFixedActivated:b,isResizable:m};return{...d,suffix:()=>Vue.createVNode(naive.NFlex,{style:"padding-left: 32px;"},{default:()=>[Vue.createVNode(at,{icon:"row_head",title:"固定在列首",customClassName:h?Ae:"",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:m?Ae:"",onClick:a.bind(this,d,u)},null),default:()=>"修改列宽"}),Vue.createVNode(at,{icon:"row_end",title:"固定在列尾",customClassName:b?Ae:"",onClick:r.bind(this,"right",d,u)},null)]})}}),set:()=>{}}),n=l=>{const{onUpdateColumn:i}=e;i&&R(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`,f=`${l==="left"?"right":"left"}FixedActivated`;i[f]=!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,f]=Fe(i,o.value);if(c===null||f===null)return;c.splice(f,1);const[p,g]=Fe(l,o.value);p===null||g===null||(u==="before"?p.splice(g,0,i):p.splice(g+1,0,i),ft(t)||p.unshift(t),n(p))}}},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:hr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),yr=Vue.defineComponent({name:"TablePrint",props:ce,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:""),bt(t,{printOptions:n,domToImageOptions:a})}}},render(){return Vue.createVNode(N,{name:"print",size:F.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),br=Vue.defineComponent({name:"TablePropsSelect",props:{...ce,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&&R(s,r)};return(()=>{const{striped:r,bordered:s,onInitialed:l}=e;r&&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:pr,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 vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const us=Vue.defineComponent({name:"RTable",inheritAttrs:!1,props:ce,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(Object.assign({striped:!1,bordered:!1},re(e,"striped","bordered"))),f=(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})}}},g=d=>{u.size=d},m=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)},h=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(yr,d,null),Vue.createVNode(mr,Vue.mergeProps(d,{onChangeSize:g.bind(this)}),null),Vue.createVNode(fr,null,null),Vue.createVNode(gr,Vue.mergeProps(d,{onUpdateColumn:m.bind(this)}),null),Vue.createVNode(br,Vue.mergeProps(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let O;return Vue.createVNode(naive.NFlex,{align:"center"},vr(O=y())?O:{default:()=>[O]})}:()=>Vue.createVNode(naive.NFlex,{align:"center"},{default:()=>[S(),y()]}):S};return Vue.onMounted(()=>{const{onRegister:d}=e;d&&a.value&&R(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:p,contextMenuSelect:f,privateReactive:u,tool:b,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:f,renderWrapperHeader:p}=this,{class:g}=t,{tool:m,combineRowProps:y,contextMenuSelect:h}=this;return Vue.createVNode(naive.NCard,Vue.mergeProps(e.cardProps,{id:n},{ref:"wrapperRef",bordered:o,class:g}),{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(naive.NDataTable,Vue.mergeProps({id:i},t,e,f,{rowProps:y.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:h.bind(this)},null)]),header:p?ee(u,{defaultElement:Vue.createVNode("div",{style:"display: none;"},null)}):null,"header-extra":m(e),footer:()=>{var b;return(b=c.tableFooter)==null?void 0:b.call(c)},action:()=>{var b;return(b=c.tableAction)==null?void 0:b.call(c)}})}}),ds=()=>{const e=Vue.ref();let t={};const o=(p,g)=>{p&&(e.value=p,t=g)},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};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,g)=>n().sort.call(null,p,g),print:()=>{const{uuidWrapper:p}=t;if(p){const g=document.getElementById(p);bt(g)}}}]},zo=(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=zo(a.children,t,o);if(r)return r}}},rt=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},Vr=(e,t,o,n)=>{const a=Vue.unref(e);return a?t.reduce((r,s)=>{const l=Vue.unref(o).findIndex(u=>u[n]===s);if(l!==-1)return r.push(Vue.unref(o)[l]),r;const i=a.findIndex(u=>u[n]===s);return i!==-1&&r.push(a[i]),r},[]):o},ps=(e,t,o)=>{const n=Vue.ref([]),a=Vue.ref([]),{rowKey:r="key",onChange:s}=o||{},l=Vue.computed(()=>rt(t)),i=(m,y,h)=>{n.value=m,a.value=Vue.unref(Vr(e,m,a,r)),s==null||s(m,a.value,h),rt(t)},u=()=>n.value,c=()=>a.value,f=()=>{n.value=[],a.value=[],s==null||s(n.value,a.value,{row:void 0,action:"uncheckAll"})},p=m=>{if(m==null)return;let y;n.value=n.value.filter(h=>h!==m),a.value=a.value.filter(h=>h[r]===m?(y=h,!1):!0),s==null||s(n.value,a.value,{row:y,action:"uncheck"})},g=m=>{if(n.value.includes(m))return;const y=!l.value&&n.value.length>=1,h=zo(Vue.unref(e)||[],r,m);y?n.value=[m]:n.value.push(m),h&&(y?a.value=[h]:a.value.push(h),s==null||s(n.value,a.value,{row:h,action:"check"}))};return Ge(()=>{f()}),[n,{checkedRows:a,checkedRowKeysBind:i,getKeys:u,getRows:c,clearAll:f,clearKey:p,selectKey:g}]},Sr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},_r=Vue.defineComponent({name:"RTransitionComponent",__name:"index",props:Vue.mergeDefaults({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Sr),setup(e){const{getKeepAliveInclude:t}=Ir(),{setupKeepAlive:o,maxKeepAliveLength:n,keepAliveExclude:a}=_t;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})])}}}),wr={...naive.formProps,onRegister:{type:[Function,Array],default:null}},ms=Vue.defineComponent({name:"RForm",props:wr,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})}}),fs=(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)||{}}]},Cr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Tr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Nr=Ue({...naive.tabsProps,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Cr);function Or(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Be=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},kr=e=>{if(typeof e.popover=="string")return Vue.createVNode(naive.NPopover,null,{trigger:()=>Be(e),default:()=>e.popover});if(G(e.popover,"Object")){const{popover:t}=e,{label:o,...n}=t;return Vue.createVNode(naive.NPopover,n,{trigger:()=>Be(e),default:()=>o})}},hs=Vue.defineComponent({name:"RSegment",props:Nr,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({},Tr,a)}),Or(e=o.map(r=>Vue.createVNode(naive.NTab,{key:r.key,name:r.key,tab:r.popover?kr(r):Be(r),disabled:r.disabled},{...r.slots})))?e:{default:()=>[e]})}}),xr={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]}},gs=Vue.defineComponent({name:"RBarcode",props:xr,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&&R(i,s,r,l)}catch(r){const{onError:s}=e;s&&R(s,r)}finally{const{onFinally:r}=e;r&&R(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 Rr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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 Ar=(e,t,o)=>!e||typeof e!="object"?!1:e[t]===o,Io=(e,t,o)=>{const n=[];if(Ar(e,t,o))return n.push(e),n;if(e.children&&e.children.length>0)for(const a of e.children){const r=Io(a,t,o);r.length>0&&n.push(e,...r)}return n},Pr=(e,t,o)=>{const n=[];for(const a of e){const r=Io(a,t,o);r.length>0&&n.push(...r)}return n},lt=e=>{const{breadcrumbLabel:t}=e;if(!t)return;const{layout:{sideBarLogo:o}}=Rr,n=o?o.title:"";document.title=t+" - "+n},Mr=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},Do=e=>{const{meta:{extra:t}}=e;if(!t)return;const{show:o}=t;if(o===!1)return;const{t:n}=ie(),{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})},st=()=>{const{getRootPath:e}=oe();return se(E.appMenuKey,"sessionStorage",{defaultValue:e.value})},jo=()=>Ka(Fa()),Lr=()=>Wa(jo()),We=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let he;const $o=(e,t)=>{var o;if(he&&Qe(he.fullPath,t))return he;for(const n of e){if(Qe(n.fullPath,t))return he=n,n;if((o=n.children)!=null&&o.length){$o(n.children,t);continue}}},Fo=Pinia.defineStore("menu",()=>{const{push:e,getRoutes:t}=VueRouter.useRouter(),o=VueRouter.useRoute(),{t:n}=ie(),{setKeepAliveInclude:a}=Dr(),r=Vue.reactive({menuKey:st(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=Vue.ref(!0),l=(d,V)=>{Object.hasOwn(r,d)&&(r[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:Mr(d),extra:Do(d)});return d.fullPath===st()&&(r.currentMenuOption=x),x.show=Nt(x),x},u=d=>{r.breadcrumbOptions=Pr(r.options,"fullPath",d)},c=(d,V=!0)=>{const O=Array.isArray(d)?[...d]:[d];V?r.menuTagOptions.push(...O):r.menuTagOptions=O},f=(d,V)=>{r.menuTagOptions.find(O=>O.fullPath===d)||r.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(a(V),lt(V),!v)f(d,V),u(d),r.menuKey=d,r.currentMenuOption=V,qe(E.appMenuKey,d);else{const w=re(i(V),We);r.breadcrumbOptions.find(C=>C.key===w.key)||r.breadcrumbOptions.push({...w,fullPath:String(w.key)})}}},g=async(d,V)=>{const[S]=d.split("?"),O=t().find(v=>v.path===S);if(O){const v=re(O,We);p(S,i({...v,fullPath:v.path}),V)}},m=()=>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(!Ko(x.meta))continue;v.push(i({...x,fullPath:C}))}return v};if(r.options=V(jo(),""),r.currentMenuOption){const{currentMenuOption:S}=r;r.breadcrumbOptions.length||u(S.key),f(S.fullPath,S),lt(S)}d()}),y=d=>r.collapsed=d,h=(d,V=1)=>r.menuTagOptions.splice(d,V),b=async()=>{s.value&&(await m(),s.value=!1)};return Vue.watch(()=>o.fullPath,async(d,V)=>{await b(),d!==V&&await g(d,o.query)},{immediate:!0}),{...Vue.toRefs(r),changeMenuModelValue:p,collapsedMenu:y,spliceMenTagOptions:h,setMenuTagOptions:c,resolveOption:i,updateMenuState:l}},{persist:{key:E.appPiniaMenuStore,storage:window.localStorage,paths:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Bo=Pinia.defineStore("signing",()=>{const e=Vue.reactive({signingCallback:{}}),t=n=>new Promise((a,r)=>{ft(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}=Ho(),{appPiniaMenuStore:a,appPiniaSigningStore:r}=E;window.$message.info("账号退出中..."),xe("__all_sessionStorage__","sessionStorage"),xe(a,"localStorage"),xe(r,"localStorage"),n(),setTimeout(()=>window.location.reload())};return{...Vue.toRefs(e),signing:t,logout:o}},{persist:{key:E.appPiniaSigningStore,paths:["signingCallback"],storage:window.localStorage}}),Wo=Pinia.defineStore("keepAlive",()=>{const{maxKeepAliveLength:e}=_t,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:E.appPiniaKeepAliveStore,storage:window.sessionStorage,paths:["keepAliveInclude"]}}),X=()=>{const e=Fo(),t=Vue.computed(()=>e.options),o=Vue.computed(()=>e.breadcrumbOptions),n=Vue.computed(()=>e.menuKey),a=Vue.computed(()=>{const{getRootPath:l}=oe();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}},ue=()=>{const{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a,updateMenuState:r}=Fo();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:o,setMenuTagOptions:n,resolveOption:a,updateMenuState:r}},D=()=>{const e=Ot(),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),f=Vue.computed(()=>e.watermarkConfig),p=Vue.computed(()=>e.appRootRoute),g=Vue.computed(()=>e.sideBarLogo);return{getDrawerPlacement:t,getPrimaryColorOverride:o,getAppTheme:n,getMenuTagSwitch:a,getBreadcrumbSwitch:r,getLocaleLanguage:s,getLockScreenSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getWatermarkConfig:f,getAppRootRoute:p,getSideBarLogo:g}},I=()=>{const{updateLocale:e,changePrimaryColor:t,updateSettingState:o}=Ot();return{updateLocale:e,changePrimaryColor:t,updateSettingState:o}},Er=()=>{const e=Bo();return{getSigningCallback:Vue.computed(()=>e.signingCallback)}},zr=()=>{const{signing:e,logout:t}=Bo();return{signing:e,logout:t}},Ir=()=>{const e=Wo();return{getKeepAliveInclude:Vue.computed(()=>e.keepAliveInclude)}},Dr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:t}=Wo();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},ys=e=>{const t=Pinia.createPinia();e.use(t),t.use(hn)},Ko=e=>{const{getSigningCallback:t}=Er(),{role:o}=e;return fe!=null&&fe.length&&fe.includes(t.value.role)||!o||!(o!=null&&o.length)?!0:o?o.includes(t.value.role):!0},jr=e=>{const{setupRouterLoadingBar:t,setupRouterGuard:o}=Gn;t&&Ga(e),o&&Ua(e)},$r=Vue.ref(),Fr=Vue.defineComponent({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=VueRouter.useRouter(),{getSideBarLogo:t}=D();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType==="station"?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:a})=>{if(!t.value)return null;if(typeof t.value.icon=="string")return Vue.createVNode(N,{name:t.value.icon,size:"30",cursor:a},null);if(G(t.value.icon,"Object"))return ee(t.value.icon)}}},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:$r},[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:()=>{var a;return Vue.createVNode("h1",{class:"n-menu-item-content"},[((a=e.title)==null?void 0:a[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}}),Br=Vue.defineComponent({name:"AppMenu",setup(){const e=Vue.ref(null),{changeMenuModelValue:t,collapsedMenu:o,updateMenuState:n}=ue(),{getMenuOptions:a,getCollapsed:r,getMenuKey:s}=X(),l=Vue.computed({get:()=>(Vue.nextTick().then(()=>{c()}),s.value),set:()=>{i.value&&q("globalDrawerValue",!1)}}),{isTabletOrSmaller:i}=Te({observer:p=>{p&&n("collapsed",!1)}}),u=Vue.computed({get:()=>Ce("globalDrawerValue").value,set:p=>{q("globalDrawerValue",p)}}),c=()=>{const p=l.value;p!=null&&Vue.nextTick(()=>{var g,m;return(m=(g=e.value)==null?void 0:g.showOption)==null?void 0:m.call(g,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:Ct,collapsed:r.value,onExpand:()=>{n("collapsed",!1)},onCollapse:()=>{n("collapsed",!0)}},{default:()=>[Vue.createVNode(Fr,{collapsed:r.value},null),Vue.createVNode(naive.NMenu,{ref:e,class:"r-menu--app",keyField:"fullPath",value:l.value,"onUpdate:value":p=>l.value=p,options:a.value,indent:Y.menuCollapsedIndent,collapsed:r.value,collapsedIconSize:Y.menuCollapsedIconSize,collapsedWidth:Y.menuCollapsedWidth,onUpdateValue:(p,g)=>{t(p,g)},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 Wr{constructor(){Je(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 Pe={requestInstance:null,responseInstance:null},Me={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},ge={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Kr=new Wr,bs=()=>{const e=(l,i)=>{i==="requestInstance"?Pe.requestInstance=l:Pe.responseInstance=l},t=l=>Pe[l],o=(l,i,u)=>{u==="ok"?Me[l]=i:ge[l]=i},n=(l,i)=>i==="ok"?Me[l]:ge[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"?Me[i]:ge[i],f=t(l),{MODE:p}=$e();f&&a(c,f,p)},fetchError:(l,i,u)=>{const c=ge[u],{MODE:f}=$e();a(c,i,f)}}},Ur=Vue.defineComponent({name:"AppRequestCancelerProvider",setup(e,{expose:t}){VueRouter.onBeforeRouteUpdate(()=>{Kr.cancelAllRequest()}),t()},render(){return Vue.createVNode("div",{class:"app-style-provider"},null)}}),Uo=Vue.defineComponent({name:"LayoutContentWrapper",setup(){VueRouter.useRouter();const{maximize:e}=qo(),{getContentTransition:t}=D(),o=Vue.ref(!1),n={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:r,layoutContentSpinning:s}=Yn();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(Ur,null,null),e?Vue.createVNode(_r,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),qr=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"}));var Gr={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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 Hr=Vue.defineComponent({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Gr;return{copyright:e}},render(){return this.copyright?Vue.createVNode("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Yr=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)}}),Xr=Vue.defineComponent({name:"ThemeSwitch",setup(){const{darkTheme:e,lightTheme:t}=Go(),{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 ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Zr=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}=I(),{getAppTheme:a,getPrimaryColorOverride:r,getMenuTagSwitch:s,getBreadcrumbSwitch:l,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c}=D(),f=Vue.computed({get:()=>e.show,set:g=>{t("update:show",g)}}),p=Vue.computed({get:()=>({getMenuTagSwitch:s.value,getBreadcrumbSwitch:l.value,getCopyrightSwitch:i.value,getContentTransition:u.value,getWatermarkSwitch:c.value}),set:g=>{}});return{modelShow:f,changePrimaryColor:o,getAppTheme:a,getPrimaryColorOverride:r,updateSettingState:n,modelSwitchReactive:p}},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"},ye(e=a("headerSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),Vue.createVNode(Xr,null,null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ye(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"},ye(o=a("headerSettingOptions.ContentTransition"))?o:{default:()=>[o]}),Vue.createVNode(naive.NSelect,{value:this.modelSwitchReactive.getContentTransition,"onUpdate:value":l=>this.modelSwitchReactive.getContentTransition=l,options:Bn,onUpdateValue:l=>{s("contentTransition",l)}},null),Vue.createVNode(naive.NDivider,{titlePlacement:"center"},ye(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 Jr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Qr=Vue.defineComponent({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=ue(),{getBreadcrumbOptions:t}=X(),{isTabletOrSmaller:o}=Te();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},Jr(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 Le(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const el=Vue.defineComponent({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const{changeMenuModelValue:o,resolveOption:n}=ue(),{getRoutes:a}=VueRouter.useRouter(),r=Vue.computed({get:()=>e.show,set:v=>{t("update:show",v),v||g()}}),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}=Te(),f=Vue.ref(!1),p="content-item--active",g=()=>{s.searchOptions=[],s.searchValue=null,i=0,u=i},m=v=>{r.value||(v.ctrlKey||v.metaKey)&&v.key==="k"&&(v.preventDefault(),v.stopPropagation(),g(),r.value=!0)},y=v=>{if(v)f.value=!0;else{f.value=!1,s.searchOptions=[];return}const w=a().reduce((x,C)=>{var B;const M=re(C,["children","meta","path","name"]),P=n({...M,fullPath:C.path}),{breadcrumbLabel:j}=P;return(B=j==null?void 0:j.toLocaleLowerCase())!=null&&B.includes(v.toLocaleLowerCase())&&Nt(P)&&x.push(P),x},[]);setTimeout(()=>{s.searchOptions=w,Vue.nextTick().then(()=>{b()}),f.value=!1},500)},h=v=>{if(v){const{meta:w}=v;w.windowOpen?window.open(w.windowOpen):(r.value=!1,o(v.fullPath,v),setTimeout(un,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;dn(M,p)}if(x!=null&&x.length){const[M]=x;yt(M,p)}})},d=v=>{const{icon:w}=v;return typeof w=="string"?Vue.createVNode(N,{name:w,size:"24"},null):typeof w=="function"?()=>w:Vue.createVNode(N,{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&&h(x);break}b()},O=({menuOption:v})=>Vue.createVNode(naive.NFlex,Vue.mergeProps({align:"center",class:"content-item"},{onClick:h.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(N,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return Vue.watchEffect(()=>{c.value&&(r.value=!1)}),le(window,"keydown",v=>{m(v),S(v)},!0),{...Vue.toRefs(s),modelShow:r,helperTipOptions:l,fuzzySearchMenuOptions:Ke(y,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:c,SearchItem:O,loading:f}},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"},Le(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]},Le(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"},Le(l)?l:{default:()=>[l]})),Vue.createVNode(naive.NFlex,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?r:{default:()=>[r]})}})])])]})}}),tl=Vue.defineComponent({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const n=pn();return n==="MacOS"?"⌘ + K":"CTRL + K"},click:n=>{const{onClick:a}=e;a&&R(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()])]})})}}),ol=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"},vertical:{type:Boolean,default:!1}},setup(e){return{signing:se(E.signing,"localStorage")}},render(){const{signing:e,avatarSize:t,spaceSize:o,$props:n,vertical:a}=this;return Vue.createVNode(naive.NButton,{quaternary:!0,strong:!0},{default:()=>[Vue.createVNode(naive.NFlex,{align:"center",size:o,vertical:a},{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]})]})}}),nl=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],al={logout:()=>{const{logout:e}=zr();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=I();e("lockScreenSwitch",!0)}},rl=e=>{const t=al[e];t?t():window.$message.info("这个人很懒, 没做这个功能~")},ll=e=>{const{isTabletOrSmaller:t}=e,o=[],n=[{name:"menu",size:18,eventKey:"menu"}];return t.value?n:o},sl=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},il=Vue.defineComponent({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:t}=I(),{t:o}=ie(),[n,{toggleFullscreen:a,isEnabled:r}]=gt(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:l}=D(),i=Vue.ref(!1),u=Vue.ref(!1),{isTabletOrSmaller:c}=Te(),f=Ce("globalDrawerValue"),p=Vue.computed(()=>ll({isFullscreen:n,isTabletOrSmaller:c})),g=Vue.computed(()=>sl({isFullscreen:n,isTabletOrSmaller:c})),m={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",!f.value)}};return{leftIconOptions:p,rightTooltipIconOptions:g,toolIconClick:b=>{var d;(d=m[b])==null||d.call(m)},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:a,updateLocale:r,isRenderVNode:s}=this;return Vue.createVNode(naive.NLayoutHeader,{class:"layout-header"},{default:()=>[Vue.createVNode(el,{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(Yr,{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(Qr,null,null):null]}),Vue.createVNode(naive.NFlex,{justify:"end",align:"center",size:[4,0],wrap:!1},{default:()=>[s(Vue.createVNode(tl,{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:wt,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:nl(),onSelect:rl.bind(this),trigger:"click"},{default:()=>[Vue.createVNode(ol,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),Vue.createVNode(Zr,{show:this.showSettings,"onUpdate:show":l=>this.showSettings=l,placement:o},null)]})}}),cl=Vue.defineComponent({name:"LayoutHeaderWrapper",setup(){return{}},render(){return Vue.createVNode(naive.NFlex,{size:[0,0]},{default:()=>[Vue.createVNode(il,null,null)]})}}),ul={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},dl=St('',1),pl=[dl];function ml(e,t){return Vt(),vt("svg",ul,[...pl])}const fl={render:ml},hl={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",viewBox:"0 0 24 24"},gl=St('',1),yl=[gl];function bl(e,t){return Vt(),vt("svg",hl,[...yl])}const vl={render:bl};function Vl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}const Sl=Vue.defineComponent({name:"AppMenuTag",setup(e,{expose:t}){const o=Vue.ref(null),{getMenuKey:n,getMenuTagOptions:a}=X(),{changeMenuModelValue:r}=ue(),{getRootPath:s}=oe(),{maximize:l}=qo(),{reload:i}=Rl(),{close:u,closeAll:c,closeRight:f,closeLeft:p,closeOther:g,checkCloseLeft:m,checkCloseRight:y}=Ho(),h=["closeAll","closeRight","closeLeft","closeOther","closeCurrentPage"];let b=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(vl,{class:"menu-tag__icon"},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>Vue.createVNode(fl,{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),O={closeCurrentPage:()=>{n.value!==s.value&&u(b)},reloadCurrentPage:()=>{i()},closeAll:()=>{c()},closeRight:()=>{f(b)},closeLeft:()=>{p(b)},closeOther:()=>{g(b)}},v=Vue.reactive({x:0,y:0,actionDropdownShow:!1}),w="menu_tag_data",x=Ce("globalMainLayoutLoad"),C="n-scrollbar-container",M=_=>{u(_)},P=(_,T)=>{V.value.forEach(z=>{if(z.key===_){z.disabled=T;return}})},j=_=>{v.actionDropdownShow=!1,r(_.fullPath,_)},B=()=>{const _=document.getElementById(S);if(_)return Array.from(_.childNodes).find(me=>mn(me,C).value)},de=_=>{var z;const T=B();if(T){const me=T.scrollLeft||0,Ze=_==="left"?Math.max(0,me-200):me+200;(z=o.value)==null||z.scrollTo({left:Ze,behavior:"smooth"})}},pe=_=>{v.actionDropdownShow=!1;const T=O[_];T&&T()},Z=(_,T)=>{T.preventDefault(),v.actionDropdownShow=!1,b=_,Vue.nextTick(()=>{v.actionDropdownShow=!0,v.x=T.clientX,v.y=T.clientY})},Ye=()=>{const{closeable:_}=a.value[b]??{};P("closeCurrentPage",!_),y(b)?P("closeRight",!1):P("closeRight",!0),m(b)?P("closeLeft",!1):P("closeLeft",!0)},Xo=()=>{b=a.value.findIndex(T=>T.fullPath===n.value),Ye()},Zo=_=>{a.value.length>1&&_.fullPath!==s.value&&(_.closeable=!0)},Jo=_=>{_.fullPath!==n.value&&(_.closeable=!1)},Qo=()=>{B()&&Vue.nextTick().then(()=>{var T;(T=o.value)==null||T.scrollTo({left:99999,behavior:"smooth"})})},Xe=()=>{Vue.nextTick().then(()=>{const _=Se(`attr:${w}="${n.value}"`);if(_!=null&&_.length){const[T]=_;Vue.nextTick().then(()=>{var z;(z=o.value)==null||z.scrollTo({left:T.offsetLeft,behavior:"smooth"})})}})};return Vue.watch(()=>a.value,(_,T)=>{V.value.forEach(z=>{h.includes(z.key)&&(_.length>1?z.disabled=!1:z.disabled=!0)}),T!=null&&T.length&&(_.length>(T==null?void 0:T.length)?Qo():_.length===(T==null?void 0:T.length)&&Xe()),T===void 0&&Xe()},{immediate:!0}),Vue.watch(()=>v.actionDropdownShow,_=>{var T;_&&((T=Ke(Ye,100))==null||T())}),t({}),{getMenuTagOptions:a,closeCurrentMenuTag:M,getMenuKey:n,menuTagClick:j,moreOptions:V,scrollX:de,scrollRef:o,uuidScrollBar:S,actionDropdownSelect:pe,actionState:v,menuTagContextMenu:Z,setCurrentContextmenuIndex:Xo,menuTagMouseenter:Zo,menuTagMouseleave:Jo,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:a,MENU_TAG_DATA:r,globalMainLayoutLoad:s}=this,{maximize:l,closeCurrentMenuTag:i,scrollX:u,$t:c,menuTagClick:f,menuTagContextMenu:p,menuTagMouseenter:g,menuTagMouseleave:m,actionDropdownSelect:y,reload:h}=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},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[Vue.createVNode(naive.NFlex,{ref:"menuTagSpaceRef",class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Vl(e=a.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:f.bind(this,b),onContextmenu:p.bind(this,d),onMouseenter:g.bind(this,b),onMouseleave:m.bind(this,b),[r]: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||a.length===1)&&b.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:[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(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:()=>{h()}},null),Vue.createVNode(Eo,{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)]})]})]})])]})}}),_l=Vue.defineComponent({name:"LayoutFeatureWrapper",setup(){return{}},render(){return Vue.createVNode(Sl,null,null)}}),wl=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`}))},it=rn(E.isAppLockScreen,!1,sessionStorage,{mergeDefaults:!0}),Cl=()=>({setLockAppScreen:o=>{it.value=o},getLockAppScreen:()=>it.value}),Tl=Vue.defineComponent({name:"RLayout",setup(){const e=Vue.ref(),t=Vue.ref(),o=Vue.ref(),{getMenuTagSwitch:n,getCopyrightSwitch:a}=D(),{getLockAppScreen:r}=Cl(),s=wl([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(Br,null,null),Vue.createVNode(naive.NLayoutContent,{class:"r-layout-full__viewer"},{default:()=>[Vue.createVNode(cl,{ref:"layoutSiderBarRef"},null),e?Vue.createVNode(_l,{ref:"layoutMenuTagRef"},null):null,Vue.createVNode(naive.NLayoutContent,{ref:Q,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[Vue.createVNode(Uo,null,null)]}),o?Vue.createVNode(Hr,{ref:"layoutFooterRef"},null):null]})]})}}),Nl=[{path:"/",name:"RLogin",component:()=>k(()=>import("./index-w7oxyM--.js"),__vite__mapDeps([55,1,2,3,4,5,6,7,12,8,9,40,41,42,10,11,24,13,14,15,16,17,18,19,20,21,56]))},{path:"/",name:"RLayout",component:Tl,children:[...Lr(),{path:"/:catchAll(.*)",component:()=>k(()=>import("./index-UXuVFO1a.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,12,8,9,10,11,13,14,15,16,17,18,19,20,21,58])),meta:{i18nKey:A("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],we=VueRouter.createRouter({history:VueRouter.createWebHashHistory(),routes:Nl,scrollBehavior:e=>{qa(e)}}),vs=e=>{e.use(we),jr(we)},He=()=>we?{router:we}:{router:{}},ct="YYYY-MM-DD HH:mm:ss",Ol=()=>({locale:s=>{const l=Un[s];l?W.locale(l):W.locale(qn)},getStartAndEndOfDay:s=>{const{format:l=ct}=s??{},i=W(),u=i.startOf("day"),c=i.endOf("day"),f=i.format(l),p=u.format(l),g=c.format(l);return{today:i,startOfDay:u,endOfDay:c,formatToday:f,formatStartOfDay:p,formatEndOfDay:g}},format:(s,l)=>{const{format:i=ct}=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 Te(e){const{width:t,height:o}=ht(e),n=Vue.ref(!1),{observer:a}=e??{};return fn(()=>{const{media:s=768}=e??{};n.value=t.value<=s,a==null||a(n.value,{width:t.value,height:o.value})}),{width:t,height:o,isTabletOrSmaller:Vue.readonly(n)}}let Ee=999,ze=!1;const H="ELEMENT-FULLSCREEN-RAY",{width:ut,height:dt}=ht(),pt=document.createElement("style"),kl=(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:h,top:b}=y.getBoundingClientRect(),d=` + [${H}] { + position: fixed; + width: ${ut.value}px !important; + height: ${dt.value}px !important; + transform: translate(-${h}px, -${b}px) !important; + transition: ${i}; + z-index: ${G(l,"Null")||G(l,"Undefined")?Ee:l} !important; + background-color: ${s??null}; + } + `;pt.innerHTML=d,ze||document.head.appendChild(pt)},f=()=>{const y=U(e);o==null||o(),y&&(y.getAttribute(H)||y.setAttribute(H,H),u||(u=!0,Ee+=1),ze||(c(),ze=!0),y.style.transition=i,a==null||a())},p=()=>{n==null||n();const y=U(e);y&&y.removeAttribute(H),r==null||r()},g=()=>{const y=U(e);y&&(y.getAttribute(H)?p():f())},m=Vue.watch(()=>[ut.value,dt.value],c);return Ge(()=>{const y=U(e);y&&y.removeAttribute(H),Ee--,m()}),{enter:f,exit:p,toggleFullscreen:g}},Ie={svg:ne.toSvg,png:ne.toPng,jpeg:ne.toJpeg,blob:ne.toBlob,pixelData:ne.toPixelData},Vs=(e,t)=>{const{beforeCreate:o,created:n,createdError:a,finally:r,imageType:s}=t??{};return{create:i=>new Promise((u,c)=>{var p;const f=U(e);if(o==null||o(f),!f)return a==null||a(),c("useDomToImage: element is undefined.");(p=Ie[i??s??"jpeg"])==null||p.call(Ie,f,t).then(g=>(n==null||n(g,f),u(g))).catch(g=>(a==null||a(g),c(g))).finally(()=>{r==null||r()})})}},Ss=(e,t)=>({print:()=>{const n=U(e)||e;ln({...Ue(t,["printable"]),printable:n})}}),xl={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},_s=(e,t)=>{const o=Vue.ref(e),n=Ue(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({},xl,n,a)),s=r.value.onUpdatePage,l=r.value.onUpdatePageSize,i=()=>r.value.itemCount,u=d=>{r.value.itemCount=d},c=()=>r.value.page,f=d=>{s(d)},p=()=>r.value.pageSize,g=d=>{l(d)},m=()=>r.value,y=e,h=d=>{o.value=d},b=()=>{const{pageSizes:d}=r.value;r.value.page=1,r.value.pageSize=(d==null?void 0:d[0])||10};return Ge(()=>{o.value=void 0}),[r,{getItemCount:i,setItemCount:u,getPage:c,setPage:f,getPageSize:p,setPageSize:g,getPagination:m,getCallback:y,setCallback:h,resetPagination:b}]},qo=()=>({isLayoutContentMaximized:Vue.computed(()=>Ce("layoutContentMaximize").value),maximize:(o,n)=>{var l;const{scrollToOptions:a}=n??{},r=U(Q),{toggleFullscreen:s}=kl(r,n);q("layoutContentMaximize",o),s(),a&&o&&((l=Q==null?void 0:Q.value)==null||l.scrollTo(a))}}),Rl=()=>({reload:(n=800)=>{q("globalMainLayoutLoad",!1),setTimeout(()=>q("globalMainLayoutLoad",!0),n)},openSpin:()=>{q("layoutContentSpinning",!0)},closeSpin:()=>{q("layoutContentSpinning",!1)}}),ws=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:r}=D(),s=Object.assign(r.value,{content:a}),{updateSettingState:l}=I();l("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=I();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=I();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=D(),{updateSettingState:r}=I();r("watermarkSwitch",!a.value)}}),De=e=>{const{getPrimaryColorOverride:t}=D(),{updateSettingState:o}=I();o("primaryColorOverride",e?Object.assign({},t.value,$.appNaiveUIThemeOverrides.dark,$.appNaiveUIThemeOverridesCommon.dark):Object.assign({},t.value,$.appNaiveUIThemeOverrides.light,$.appNaiveUIThemeOverridesCommon.light))},Go=()=>{const e=()=>{const{getAppTheme:a}=D(),{t:r}=ie();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}=I();a("appTheme",!0),De(!0)},lightTheme:()=>{const{updateSettingState:a}=I();a("appTheme",!1),De(!1)},toggleTheme:()=>{const{theme:a}=e(),{updateSettingState:r}=I();r("appTheme",!a),De(!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 Ho(){const{getMenuTagOptions:e,getMenuKey:t}=X(),{changeMenuModelValue:o,spliceMenTagOptions:n,setMenuTagOptions:a,resolveOption:r}=ue(),s=()=>e.value.findIndex(m=>m.fullPath===t.value);return{close:m=>{const y=J(m,"close");if(e.value.length!==1&&y){const{index:h,option:b}=y;if(n(h),b.fullPath===t.value){const d=e.value[h-1];d&&o(d.fullPath,d)}}},closeAll:()=>{n(0,e.value.length);const{getRootPath:m}=oe(),{router:{getRoutes:y}}=He(),h=y().find(b=>b.path===m.value);if(h){const b=re(h,We),d=r(b);o(d.path,r({...d,fullPath:d.path}))}},closeRight:m=>{const y=J(m,"closeRight");if(y){const{option:h,index:b}=y,d=e.value.length-b,V=s();n(b+1,d),b<=V&&t.value!==h.fullPath&&o(h.fullPath,h)}},closeLeft:m=>{const y=J(m,"closeLeft");if(y){const{option:h,index:b}=y,d=s();n(0,b),d<=b&&t.value!==h.fullPath&&o(h.fullPath,h)}},closeOther:m=>{const y=J(m,"closeOther");if(y){const{option:h}=y;t.value!==h.fullPath?(n(0,e.value.length),o(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:m=>{const y=J(m,"checkCloseRight");if(y){const{index:h}=y,b=e.value.length-1;return!(h>=b)}return!1},checkCloseLeft:m=>{const y=J(m,"checkCloseRight");if(y){const{index:h}=y,b=e.value.length-1;return h===0?!1:h>0&&b>0}return!1}}}function Cs(){return{navigationTo:(t,o)=>{const{router:{getRoutes:n,push:a,replace:r}}=He(),{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],f=p=>{if(p.children&&p.children.length>0){const{children:[g]}=p;f(g);return}i(p.fullPath)};f(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 oe(){const{getAppRootRoute:e}=D(),{updateSettingState:t}=I(),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 Al=(e,t)=>{const{show:o,...n}=t;e.meta.extra=Object.assign({},e.meta.extra,{...n,show:o}),e.extra=Do(e)},mt=(e,t,o)=>{const n=$o(e,t);n&&Al(n,o)},je=(e,t,o)=>{const{getMenuOptions:n}=X();if(typeof e=="string")mt(n.value,e,o);else if(G(e,"Object")){const{fullPath:a}=e;mt(n.value,a,o)}else console.warn(`[useBadge ${t}]: target expect string or object.`)};function Ts(){return{hidden:n=>{je(n,"hidden",{show:!1})},show:n=>{je(n,"show",{show:!0})},update:(n,a)=>{je(n,"update",a)}}}const Ns=()=>{const e=Ct.value,{scrollTo:t}=e||{};if(!t)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return t},Yo=()=>se(E.localeLanguage,"localStorage",{defaultValue:Wn}),Os=()=>{const e=Vue.ref(),t=m=>{m&&(e.value=m)},o=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[t,{clearFilters:()=>o().clearFilters.call(null),getTableProInstance:o,clearSorter:()=>o().clearSorter.call(null),downloadCsv:m=>o().downloadCsv.call(null,m),filters:m=>o().filters.call(null,m),page:m=>o().page.call(null,m),scrollTo:m=>o().scrollTo(m),sort:(m,y)=>o().sort.call(null,m,y),getTablePagination:()=>o().getTablePagination.call(null),runTableRequest:m=>o().runTableRequest.call(null,m),print:()=>o().print.call(null),getCurrentTableRequestParams:m=>o().getCurrentTableRequestParams.call(null,m)}]};export{ts as $,Ql as A,as as B,rs as C,qn as D,fs as E,ms as F,ss as G,_s as H,ls as I,us as J,cs as K,Ct as L,Zl as M,hs as N,ar as O,wr as P,ce as Q,is as R,$r as S,Xr as T,ds as U,Os as V,ps as W,Ol as X,Kr as Y,bs as Z,k as _,Ss as a,Eo as a0,qo as a1,Cs as a2,Rl as a3,ws as a4,Go as a5,Ts as a6,Ns as b,es as c,D as d,E as e,I as f,Xl as g,Cl as h,zr as i,Te as j,ol as k,Ce as l,Jl as m,ns as n,vs as o,oe as p,ie as q,N as r,ys as s,wt as t,Vs as u,Re as v,He as w,Yl as x,gs as y,os as z}; diff --git a/js/hooks-C7ZgHAXE.js.gz b/js/hooks-C7ZgHAXE.js.gz new file mode 100644 index 00000000..21682301 Binary files /dev/null and b/js/hooks-C7ZgHAXE.js.gz differ diff --git a/js/index-DahTY4VP.js b/js/index-4kfTDO0r.js similarity index 86% rename from js/index-DahTY4VP.js rename to js/index-4kfTDO0r.js index 2641a11a..624b46e3 100644 --- a/js/index-DahTY4VP.js +++ b/js/index-4kfTDO0r.js @@ -1 +1 @@ -import{r as o}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-4kfTDO0r.js.gz b/js/index-4kfTDO0r.js.gz new file mode 100644 index 00000000..6536e0b7 Binary files /dev/null and b/js/index-4kfTDO0r.js.gz differ diff --git a/js/index-6SmwpZr1.js b/js/index-6SmwpZr1.js deleted file mode 100644 index d829c59f..00000000 --- a/js/index-6SmwpZr1.js +++ /dev/null @@ -1 +0,0 @@ -var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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-6SmwpZr1.js.gz b/js/index-6SmwpZr1.js.gz deleted file mode 100644 index b1a7e758..00000000 Binary files a/js/index-6SmwpZr1.js.gz and /dev/null differ diff --git a/js/index-B4vdbNFr.js b/js/index-B4vdbNFr.js deleted file mode 100644 index 47b4e2bf..00000000 --- a/js/index-B4vdbNFr.js +++ /dev/null @@ -1 +0,0 @@ -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-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-B4vdbNFr.js.gz b/js/index-B4vdbNFr.js.gz deleted file mode 100644 index 37b69870..00000000 Binary files a/js/index-B4vdbNFr.js.gz and /dev/null differ diff --git a/js/index-BAQLqlk0.js.gz b/js/index-BAQLqlk0.js.gz deleted file mode 100644 index 1db37a39..00000000 Binary files a/js/index-BAQLqlk0.js.gz and /dev/null differ diff --git a/js/index-BSk1b__p.js.gz b/js/index-BSk1b__p.js.gz deleted file mode 100644 index f05a46f2..00000000 Binary files a/js/index-BSk1b__p.js.gz and /dev/null differ diff --git a/js/index-BaV3kUha.js.gz b/js/index-BaV3kUha.js.gz deleted file mode 100644 index 23f365b8..00000000 Binary files a/js/index-BaV3kUha.js.gz and /dev/null differ diff --git a/js/index-BetZZx4T.js.gz b/js/index-BetZZx4T.js.gz deleted file mode 100644 index d840a16e..00000000 Binary files a/js/index-BetZZx4T.js.gz and /dev/null differ diff --git a/js/index-UnjoS4sw.js b/js/index-Bf1RTeuh.js similarity index 65% rename from js/index-UnjoS4sw.js rename to js/index-Bf1RTeuh.js index 0b22a70d..628b441d 100644 --- a/js/index-UnjoS4sw.js +++ b/js/index-Bf1RTeuh.js @@ -1 +1 @@ -import{G as e}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-Bf1RTeuh.js.gz b/js/index-Bf1RTeuh.js.gz new file mode 100644 index 00000000..318be686 Binary files /dev/null and b/js/index-Bf1RTeuh.js.gz differ diff --git a/js/index-BoFrDDKW.js.gz b/js/index-BoFrDDKW.js.gz deleted file mode 100644 index a57a99a4..00000000 Binary files a/js/index-BoFrDDKW.js.gz and /dev/null differ diff --git a/js/index-BqB5dHh9.js b/js/index-BqB5dHh9.js new file mode 100644 index 00000000..51814540 --- /dev/null +++ b/js/index-BqB5dHh9.js @@ -0,0 +1 @@ +import{U as B,W as D,I,J as S,r as K,a0 as A}from"./hooks-C7ZgHAXE.js";import{u as G}from"./utils-DCtVzoYl.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"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-BqB5dHh9.js.gz b/js/index-BqB5dHh9.js.gz new file mode 100644 index 00000000..b3242585 Binary files /dev/null and b/js/index-BqB5dHh9.js.gz differ diff --git a/js/index-CKvChnfa.js b/js/index-Bsvn83r6.js similarity index 88% rename from js/index-CKvChnfa.js rename to js/index-Bsvn83r6.js index dc178f93..cb6813f3 100644 --- a/js/index-CKvChnfa.js +++ b/js/index-Bsvn83r6.js @@ -1 +1 @@ -import{P as r,R as a}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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{K as r,R as a}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-Bsvn83r6.js.gz b/js/index-Bsvn83r6.js.gz new file mode 100644 index 00000000..252d0552 Binary files /dev/null and b/js/index-Bsvn83r6.js.gz differ diff --git a/js/index-BydVTjgZ.js.gz b/js/index-BydVTjgZ.js.gz deleted file mode 100644 index 3fd06d29..00000000 Binary files a/js/index-BydVTjgZ.js.gz and /dev/null differ diff --git a/js/index-CFDRyrM7.js.gz b/js/index-CFDRyrM7.js.gz deleted file mode 100644 index 2b78d27e..00000000 Binary files a/js/index-CFDRyrM7.js.gz and /dev/null differ diff --git a/js/index-CKvChnfa.js.gz b/js/index-CKvChnfa.js.gz deleted file mode 100644 index 4c8f1c68..00000000 Binary files a/js/index-CKvChnfa.js.gz and /dev/null differ diff --git a/js/index-CyBROUEO.js b/js/index-COExw1oh.js similarity index 89% rename from js/index-CyBROUEO.js rename to js/index-COExw1oh.js index 24a154d5..a2f3cfbb 100644 --- a/js/index-CyBROUEO.js +++ b/js/index-COExw1oh.js @@ -1 +1 @@ -import{r as s,_ as o}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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}; +import{r as s,_ as o}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-COExw1oh.js.gz b/js/index-COExw1oh.js.gz new file mode 100644 index 00000000..90097315 Binary files /dev/null and b/js/index-COExw1oh.js.gz differ diff --git a/js/index-BSk1b__p.js b/js/index-CjpCzadx.js similarity index 87% rename from js/index-BSk1b__p.js rename to js/index-CjpCzadx.js index 20eb6781..09ffd1fc 100644 --- a/js/index-BSk1b__p.js +++ b/js/index-CjpCzadx.js @@ -1 +1 @@ -import{a as u}from"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-CYUaKSiK.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-BbIBxRo9.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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.2.1_vue@3.4.38-DdMBTcyt.js";import"./lodash@4.17.21-Cw59kuJw.js";import{s as o}from"./instance-B383KSvY.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-C7ZgHAXE.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.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"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-CjpCzadx.js.gz b/js/index-CjpCzadx.js.gz new file mode 100644 index 00000000..b070952f Binary files /dev/null and b/js/index-CjpCzadx.js.gz differ diff --git a/js/index-Cn5RTuqi.js b/js/index-Cn5RTuqi.js new file mode 100644 index 00000000..ab44e437 --- /dev/null +++ b/js/index-Cn5RTuqi.js @@ -0,0 +1 @@ +import{d as _,g as W,M as q,e as m,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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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 L,c as i1,f as b,n as y,h as B,s as C,b as z,i as o1}from"./utils-DCtVzoYl.js";import{g as c1,d as a1,t as n1,f as s1}from"./lodash-es@4.17.21-BALnwRTu.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.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.38-Cp_qoKMZ.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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(m.appPiniaSettingStore,"localStorage");if(r){const d=c1(r,"primaryColorOverride.common.primaryColor",c),h=i1(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),v=()=>{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:v,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;",vertical:!0},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])])])])])}}),v1=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)])]})}}),m1=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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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(m.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=A();return t!==null?e!==t&&(l.value=!0,C(m.appVersionProvider,e,"localStorage")):C(m.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(v1,null,null),Vue.createVNode(u1,null,null),Vue.createVNode(m1,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=a1(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 v;if(!((v=t==null?void 0:t.__d_ripple__)!=null&&v.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,o1(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=n1(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=/^([^-]+-)*[^-]+$/;s1(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-Cn5RTuqi.js.gz b/js/index-Cn5RTuqi.js.gz new file mode 100644 index 00000000..7512f645 Binary files /dev/null and b/js/index-Cn5RTuqi.js.gz differ diff --git a/js/index-DaSXHlax.js b/js/index-CtW8lgEK.js similarity index 85% rename from js/index-DaSXHlax.js rename to js/index-CtW8lgEK.js index 7eb1da42..ab7084f1 100644 --- a/js/index-DaSXHlax.js +++ b/js/index-CtW8lgEK.js @@ -1 +1 @@ -import{E as d,F as l}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-CtW8lgEK.js.gz b/js/index-CtW8lgEK.js.gz new file mode 100644 index 00000000..942ab1fb Binary files /dev/null and b/js/index-CtW8lgEK.js.gz differ diff --git a/js/index-CyBROUEO.js.gz b/js/index-CyBROUEO.js.gz deleted file mode 100644 index 5d096686..00000000 Binary files a/js/index-CyBROUEO.js.gz and /dev/null differ diff --git a/js/index-BaV3kUha.js b/js/index-D3O3Ds63.js similarity index 88% rename from js/index-BaV3kUha.js rename to js/index-D3O3Ds63.js index 57c3637c..603b5aa1 100644 --- a/js/index-BaV3kUha.js +++ b/js/index-D3O3Ds63.js @@ -1 +1 @@ -import"./hooks-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-KzSLWhhh.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DCtVzoYl.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-D3O3Ds63.js.gz b/js/index-D3O3Ds63.js.gz new file mode 100644 index 00000000..667502f6 Binary files /dev/null and b/js/index-D3O3Ds63.js.gz differ diff --git a/js/index-DOsYJ7Jf.js.gz b/js/index-DOsYJ7Jf.js.gz deleted file mode 100644 index 153a29b6..00000000 Binary files a/js/index-DOsYJ7Jf.js.gz and /dev/null differ diff --git a/js/index-DPDK5RVu.js b/js/index-DPDK5RVu.js new file mode 100644 index 00000000..4ba55c2b --- /dev/null +++ b/js/index-DPDK5RVu.js @@ -0,0 +1 @@ +import{l as A,d as E,a1 as h,r as f,a2 as x,a3 as k,a4 as g,a5 as T,a6 as b}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const _=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{_ as default}; diff --git a/js/index-DPDK5RVu.js.gz b/js/index-DPDK5RVu.js.gz new file mode 100644 index 00000000..fa6f9537 Binary files /dev/null and b/js/index-DPDK5RVu.js.gz differ diff --git a/js/index-DaNdXdWs.js b/js/index-DU0AD4bw.js similarity index 94% rename from js/index-DaNdXdWs.js rename to js/index-DU0AD4bw.js index 1c908bae..f36b0757 100644 --- a/js/index-DaNdXdWs.js +++ b/js/index-DU0AD4bw.js @@ -1 +1 @@ -import{Q as e}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.js";import{L as t}from"./ray-dCjhX_JK.js";const l=Vue.defineComponent({name:"RQRCodeDemo",setup(){const u=Vue.ref("ray template yes"),a=Vue.ref(),o=Vue.ref();return{qrcodeText:u,qrcodeStatus:a,rayQRCodeRef:o}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"loading"},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:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var u;(u=this.rayQRCodeRef)==null||u.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:t,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{l as default}; +import{Q as e}from"./vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js";import{L as t}from"./ray-dCjhX_JK.js";const l=Vue.defineComponent({name:"RQRCodeDemo",setup(){const u=Vue.ref("ray template yes"),a=Vue.ref(),o=Vue.ref();return{qrcodeText:u,qrcodeStatus:a,rayQRCodeRef:o}},render(){return Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(naive.NCard,null,{default:()=>[Vue.createVNode("h2",null,[Vue.createTextVNode("基于 awesome-qr 进行封装,支持 LOGO、gif、backgroundImage 等属性。")]),Vue.createVNode("h2",null,[Vue.createTextVNode("该组件会自动监听文本内容变化,然后重新渲染(watchText)")]),Vue.createVNode("h2",null,[Vue.createTextVNode("具体使用请参考 props 配置项")])]}),Vue.createVNode(naive.NCard,{title:"基础二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes"},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t},null),Vue.createVNode(e,{text:"ray template yes",gifBackgroundURL:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif?imageView2/1/w/80/h/80",dotScale:.5,colorDark:"#64d9d6"},null)]})]}),Vue.createVNode(naive.NCard,{title:"状态二维码"},{default:()=>[Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"error",onReload:()=>{window.$message.info("reload event")}},null),Vue.createVNode(e,{text:"ray template yes",logoImage:t,status:"loading"},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:()=>{this.qrcodeStatus="loading",setTimeout(()=>{this.qrcodeText="text updated: "+new Date().getTime(),this.qrcodeStatus=void 0},1e3)}},{default:()=>[Vue.createTextVNode("更新二维码内容")]}),Vue.createVNode(naive.NButton,{onClick:()=>{var u;(u=this.rayQRCodeRef)==null||u.downloadQRCode()}},{default:()=>[Vue.createTextVNode("下载二维码")]})]}),Vue.createVNode(naive.NFlex,null,{default:()=>[Vue.createVNode(e,{text:this.qrcodeText,status:this.qrcodeStatus,logoImage:t,ref:"rayQRCodeRef"},null),Vue.createTextVNode("当前二维码内容:"),this.qrcodeText]})]})]})]})}});export{l as default}; diff --git a/js/index-DU0AD4bw.js.gz b/js/index-DU0AD4bw.js.gz new file mode 100644 index 00000000..d1fe7aa6 Binary files /dev/null and b/js/index-DU0AD4bw.js.gz differ diff --git a/js/index-fybKXq1D.js b/js/index-DUQF5ve0.js similarity index 67% rename from js/index-fybKXq1D.js rename to js/index-DUQF5ve0.js index 3a016ed8..e3159aa3 100644 --- a/js/index-fybKXq1D.js +++ b/js/index-DUQF5ve0.js @@ -1 +1 @@ -import{J as i}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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}; +import{J as i}from"./hooks-C7ZgHAXE.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"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-DUQF5ve0.js.gz b/js/index-DUQF5ve0.js.gz new file mode 100644 index 00000000..cc7a36c8 Binary files /dev/null and b/js/index-DUQF5ve0.js.gz differ diff --git a/js/index-DaNdXdWs.js.gz b/js/index-DaNdXdWs.js.gz deleted file mode 100644 index 1706bac7..00000000 Binary files a/js/index-DaNdXdWs.js.gz and /dev/null differ diff --git a/js/index-DaSXHlax.js.gz b/js/index-DaSXHlax.js.gz deleted file mode 100644 index dbc9d266..00000000 Binary files a/js/index-DaSXHlax.js.gz and /dev/null differ diff --git a/js/index-DahTY4VP.js.gz b/js/index-DahTY4VP.js.gz deleted file mode 100644 index 4b73b438..00000000 Binary files a/js/index-DahTY4VP.js.gz and /dev/null differ diff --git a/js/index-DaiUWuBq.js b/js/index-DaiUWuBq.js deleted file mode 100644 index 8d2c1989..00000000 --- a/js/index-DaiUWuBq.js +++ /dev/null @@ -1 +0,0 @@ -import{d as _,g as W,M as q,e as m,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-BbIBxRo9.js";import{d as u}from"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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 L,c as i1,f as b,n as y,h as B,s as C,b as z,i as o1}from"./utils-KzSLWhhh.js";import{g as c1,d as a1,t as n1,f as s1}from"./lodash-es@4.17.21-BALnwRTu.js";import"./vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.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.34-BEaNfl9U.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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(m.appPiniaSettingStore,"localStorage");if(r){const d=c1(r,"primaryColorOverride.common.primaryColor",c),h=i1(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),v=()=>{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:v,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;",vertical:!0},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])])])])])}}),v1=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)])]})}}),m1=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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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(m.appVersionProvider,"localStorage"),l=Vue.ref(!1),{logout:o}=A();return t!==null?e!==t&&(l.value=!0,C(m.appVersionProvider,e,"localStorage")):C(m.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(v1,null,null),Vue.createVNode(u1,null,null),Vue.createVNode(m1,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=a1(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 v;if(!((v=t==null?void 0:t.__d_ripple__)!=null&&v.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,o1(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=n1(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=/^([^-]+-)*[^-]+$/;s1(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-DaiUWuBq.js.gz b/js/index-DaiUWuBq.js.gz deleted file mode 100644 index 43131466..00000000 Binary files a/js/index-DaiUWuBq.js.gz and /dev/null differ diff --git a/js/index-DcVTveMA.js b/js/index-DcVTveMA.js new file mode 100644 index 00000000..fca328aa --- /dev/null +++ b/js/index-DcVTveMA.js @@ -0,0 +1 @@ +var g={pkg:{dependencies:{"@vueuse/core":"^10.9.0",axios:"^1.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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-DcVTveMA.js.gz b/js/index-DcVTveMA.js.gz new file mode 100644 index 00000000..22506413 Binary files /dev/null and b/js/index-DcVTveMA.js.gz differ diff --git a/js/index-Dkofov4C.js.gz b/js/index-Dkofov4C.js.gz deleted file mode 100644 index 4320aaa8..00000000 Binary files a/js/index-Dkofov4C.js.gz and /dev/null differ diff --git a/js/index-BoFrDDKW.js b/js/index-DroGm3M_.js similarity index 91% rename from js/index-BoFrDDKW.js rename to js/index-DroGm3M_.js index d6bb4148..ac54a199 100644 --- a/js/index-BoFrDDKW.js +++ b/js/index-DroGm3M_.js @@ -1 +1 @@ -import{B as a,C as c}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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}; +import{B as a,C as c}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-DroGm3M_.js.gz b/js/index-DroGm3M_.js.gz new file mode 100644 index 00000000..55995ec8 Binary files /dev/null and b/js/index-DroGm3M_.js.gz differ diff --git a/js/index-CFDRyrM7.js b/js/index-NCC7fydm.js similarity index 84% rename from js/index-CFDRyrM7.js rename to js/index-NCC7fydm.js index e3c7ab24..4cd3f5a1 100644 --- a/js/index-CFDRyrM7.js +++ b/js/index-NCC7fydm.js @@ -1 +1 @@ -import"./hooks-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-KzSLWhhh.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DCtVzoYl.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-NCC7fydm.js.gz b/js/index-NCC7fydm.js.gz new file mode 100644 index 00000000..50461972 Binary files /dev/null and b/js/index-NCC7fydm.js.gz differ diff --git a/js/index-PJenjIOI.js b/js/index-PJenjIOI.js deleted file mode 100644 index 9386c90e..00000000 --- a/js/index-PJenjIOI.js +++ /dev/null @@ -1 +0,0 @@ -import{U as B,V as D,I,J as S,r as K,W as A}from"./hooks-BbIBxRo9.js";import{u as G}from"./utils-KzSLWhhh.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-PJenjIOI.js.gz b/js/index-PJenjIOI.js.gz deleted file mode 100644 index a0935f07..00000000 Binary files a/js/index-PJenjIOI.js.gz and /dev/null differ diff --git a/js/index-DOsYJ7Jf.js b/js/index-PkknP_3z.js similarity index 76% rename from js/index-DOsYJ7Jf.js rename to js/index-PkknP_3z.js index 2b061475..8a63914f 100644 --- a/js/index-DOsYJ7Jf.js +++ b/js/index-PkknP_3z.js @@ -1 +1 @@ -import{z as d}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-PkknP_3z.js.gz b/js/index-PkknP_3z.js.gz new file mode 100644 index 00000000..a46252d0 Binary files /dev/null and b/js/index-PkknP_3z.js.gz differ diff --git a/js/index-BAQLqlk0.js b/js/index-UXuVFO1a.js similarity index 76% rename from js/index-BAQLqlk0.js rename to js/index-UXuVFO1a.js index 864c2275..6972af8d 100644 --- a/js/index-BAQLqlk0.js +++ b/js/index-UXuVFO1a.js @@ -1 +1 @@ -import{v as o,w as u,e as i}from"./hooks-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-KzSLWhhh.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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}; +import{v as o,w as u,e as i}from"./hooks-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DCtVzoYl.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-UXuVFO1a.js.gz b/js/index-UXuVFO1a.js.gz new file mode 100644 index 00000000..68debbe2 Binary files /dev/null and b/js/index-UXuVFO1a.js.gz differ diff --git a/js/index-UnjoS4sw.js.gz b/js/index-UnjoS4sw.js.gz deleted file mode 100644 index 6435ec7b..00000000 Binary files a/js/index-UnjoS4sw.js.gz and /dev/null differ diff --git a/js/index-Dkofov4C.js b/js/index-ZaYYoxBv.js similarity index 90% rename from js/index-Dkofov4C.js rename to js/index-ZaYYoxBv.js index c8d2e95d..8035fd8f 100644 --- a/js/index-Dkofov4C.js +++ b/js/index-ZaYYoxBv.js @@ -1 +1 @@ -import{r as d,Q as u}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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:800},{default:()=>[Vue.createTextVNode("800")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{R as default}; +import{r as d,N as u}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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:800},{default:()=>[Vue.createTextVNode("800")]})]}),Vue.createVNode(u,{defaultValue:"this is two",options:o,width:this.width},null)]})]})]})]})]})}});export{R as default}; diff --git a/js/index-ZaYYoxBv.js.gz b/js/index-ZaYYoxBv.js.gz new file mode 100644 index 00000000..678627a7 Binary files /dev/null and b/js/index-ZaYYoxBv.js.gz differ diff --git a/js/index-fybKXq1D.js.gz b/js/index-fybKXq1D.js.gz deleted file mode 100644 index f1b9c624..00000000 Binary files a/js/index-fybKXq1D.js.gz and /dev/null differ diff --git a/js/index-BydVTjgZ.js b/js/index-tkmn2WXc.js similarity index 84% rename from js/index-BydVTjgZ.js rename to js/index-tkmn2WXc.js index fec96996..475af56c 100644 --- a/js/index-BydVTjgZ.js +++ b/js/index-tkmn2WXc.js @@ -1 +1 @@ -import{H as c,I as p,J as V}from"./hooks-BbIBxRo9.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import{a as F}from"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js";import{s as E}from"./instance-CYUaKSiK.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.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"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-C7ZgHAXE.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{a as F}from"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js";import{s as E}from"./instance-B383KSvY.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.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"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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-tkmn2WXc.js.gz b/js/index-tkmn2WXc.js.gz new file mode 100644 index 00000000..867f1e79 Binary files /dev/null and b/js/index-tkmn2WXc.js.gz differ diff --git a/js/index-BetZZx4T.js b/js/index-w7oxyM--.js similarity index 53% rename from js/index-BetZZx4T.js rename to js/index-w7oxyM--.js index a4403e4b..fbf6cbec 100644 --- a/js/index-BetZZx4T.js +++ b/js/index-w7oxyM--.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-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-KzSLWhhh.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-Du0Nh3g9.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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","localStorage"),d(u.signing,l.data,"localStorage"),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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.34","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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.3.5","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-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.9.2"},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-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DCtVzoYl.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-B-d0H0H3.js";import{L as b}from"./ray-dCjhX_JK.js";import{e as S}from"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import{A as x}from"./index-43Sr2ZDd.js";import"./lodash-es@4.17.21-BALnwRTu.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.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","localStorage"),d(u.signing,l.data,"localStorage"),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.7.2",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.39.0",pinia:"^2.1.7","pinia-plugin-persistedstate":"^3.2.0","print-js":"^1.6.0",vue:"^3.4.38","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","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.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.5.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.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-with-include":"1.2.2",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.4.1","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-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.9.3"},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-w7oxyM--.js.gz b/js/index-w7oxyM--.js.gz new file mode 100644 index 00000000..d685e5a1 Binary files /dev/null and b/js/index-w7oxyM--.js.gz differ diff --git a/js/instance-CYUaKSiK.js b/js/instance-B383KSvY.js similarity index 86% rename from js/instance-CYUaKSiK.js rename to js/instance-B383KSvY.js index e34e3c7f..658d268c 100644 --- a/js/instance-CYUaKSiK.js +++ b/js/instance-B383KSvY.js @@ -1 +1 @@ -import{K as t,N as n,e as R,O as q}from"./hooks-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-KzSLWhhh.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)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[f,P],implementRequestInterceptorErrorArray:[g]},{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{Y as t,Z as n,e as R,$ as q}from"./hooks-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-DCtVzoYl.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)},g=(e,r)=>{t.removePendingRequest(e)},v=(e,r)=>{if(e){const o=e.headers;r.forEach(s=>{o[s.key]=s.value})}},C=(e,r)=>{const o=d(R.token,"localStorage");return e.url,{key:"X-TOKEN",value:o}},f=(e,r)=>{v(e,[C(e),{key:"Demo-Header-Key",value:"Demo Header Value"}])},c={implementRequestInterceptorArray:[f,P],implementRequestInterceptorErrorArray:[g]},{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-B383KSvY.js.gz b/js/instance-B383KSvY.js.gz new file mode 100644 index 00000000..f3649a9a Binary files /dev/null and b/js/instance-B383KSvY.js.gz differ diff --git a/js/instance-CYUaKSiK.js.gz b/js/instance-CYUaKSiK.js.gz deleted file mode 100644 index e632a58a..00000000 Binary files a/js/instance-CYUaKSiK.js.gz and /dev/null differ diff --git a/js/mockjs@1.1.0-CxlURkif.js b/js/mockjs@1.1.0-CxlURkif.js new file mode 100644 index 00000000..a33855cb --- /dev/null +++ b/js/mockjs@1.1.0-CxlURkif.js @@ -0,0 +1,9 @@ +import{g as getDefaultExportFromCjs,c as commonjsGlobal}from"./call-bind@1.0.7-Cpj98o6Y.js";var mock={exports:{}};(function(module,exports){(function(x,n){module.exports=n()})(commonjsGlobal,function(){return function(l){var x={};function n(u){if(x[u])return x[u].exports;var a=x[u]={exports:{},id:u,loaded:!1};return l[u].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}return n.m=l,n.c=x,n.p="",n(0)}([function(l,x,n){var u=n(1),a=n(3),s=n(5),c=n(20),p=n(23),f=n(25),o;typeof window<"u"&&(o=n(27));/*! + Mock - 模拟请求 & 模拟数据 + https://github.com/nuysoft/Mock + 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com +*/var v={Handler:u,Random:s,Util:a,XHR:o,RE:c,toJSONSchema:p,valid:f,heredoc:a.heredoc,setup:function(y){return o.setup(y)},_mocked:{}};v.version="1.0.1-beta3",o&&(o.Mock=v),v.mock=function(y,m,C){return arguments.length===1?u.gen(y):(arguments.length===2&&(C=m,m=void 0),o&&(window.XMLHttpRequest=o),v._mocked[y+(m||"")]={rurl:y,rtype:m,template:C},v)},l.exports=v},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(l,x,n){x=x==null?"":x+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||l,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||l};var u=Parser.parse(x),a=Util.type(l),s;return Handler[a]?(s=Handler[a]({type:a,template:l,name:x,parsedName:x&&x.replace(Constant.RE_KEY,"$1"),rule:u,context:n}),n.root||(n.root=s),s):l},Handler.extend({array:function(l){var x=[],n,u;if(l.template.length===0)return x;if(l.rule.parameters)if(l.rule.min===1&&l.rule.max===void 0)l.context.path.push(l.name),l.context.templatePath.push(l.name),x=Random.pick(Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:x,templateCurrentContext:l.template,root:l.context.root||x,templateRoot:l.context.templateRoot||l.template})),l.context.path.pop(),l.context.templatePath.pop();else if(l.rule.parameters[2])l.template.__order_index=l.template.__order_index||0,l.context.path.push(l.name),l.context.templatePath.push(l.name),x=Handler.gen(l.template,void 0,{path:l.context.path,templatePath:l.context.templatePath,currentContext:x,templateCurrentContext:l.template,root:l.context.root||x,templateRoot:l.context.templateRoot||l.template})[l.template.__order_index%l.template.length],l.template.__order_index+=+l.rule.parameters[2],l.context.path.pop(),l.context.templatePath.pop();else for(n=0;n1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(a=x.context.path.slice(0),a.pop(),a=this.normalizePath(a.concat(u)));try{l=u[u.length-1];for(var s=x.context.root,c=x.context.templateRoot,p=1;p1/(n+u)*n?!a:a):Math.random()>=.5},bool:function(n,u,a){return this.boolean(n,u,a)},natural:function(n,u){return n=typeof n<"u"?parseInt(n,10):0,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},integer:function(n,u){return n=typeof n<"u"?parseInt(n,10):-9007199254740992,u=typeof u<"u"?parseInt(u,10):9007199254740992,Math.round(Math.random()*(u-n))+n},int:function(n,u){return this.integer(n,u)},float:function(n,u,a,s){a=a===void 0?0:a,a=Math.max(Math.min(a,17),0),s=s===void 0?17:s,s=Math.max(Math.min(s,17),0);for(var c=this.integer(n,u)+".",p=0,f=this.natural(a,s);p1&&o--,6*o<1?y=p+(f-p)*6*o:2*o<1?y=f:3*o<2?y=p+(f-p)*(2/3-o)*6:y=p,v[m]=y*255;return v},hsl2hsv:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return c*=2,s*=c<=1?c:2-c,f=(c+s)/2,p=2*s/(c+s),[a,p*100,f*100]},hsv2rgb:function(u){var a=u[0]/60,s=u[1]/100,c=u[2]/100,p=Math.floor(a)%6,f=a-Math.floor(a),o=255*c*(1-s),v=255*c*(1-s*f),y=255*c*(1-s*(1-f));switch(c=255*c,p){case 0:return[c,y,o];case 1:return[v,c,o];case 2:return[o,c,y];case 3:return[o,v,c];case 4:return[y,o,c];case 5:return[c,o,v]}},hsv2hsl:function(u){var a=u[0],s=u[1]/100,c=u[2]/100,p,f;return f=(2-s)*c,p=s*c,p/=f<=1?f:2-f,f/=2,[a,p*100,f*100]},rgb2hex:function(n,u,a){return"#"+((256+n<<8|u)<<8|a).toString(16).slice(1)},hex2rgb:function(n){return n="0x"+n.slice(1).replace(n.length>4?n:/./g,"$&$&")|0,[n>>16,n>>8&255,n&255]}}},function(l,x){l.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(l,x,n){var u=n(6),a=n(14);function s(c,p,f,o){return f===void 0?u.natural(c,p):o===void 0?f:u.natural(parseInt(f,10),parseInt(o,10))}l.exports={paragraph:function(c,p){for(var f=s(3,7,c,p),o=[],v=0;v1&&(s=[].slice.call(arguments,0));var c=a.options,p=c.context.templatePath.join("."),f=a.cache[p]=a.cache[p]||{index:0,array:s};return f.array[f.index++%f.array.length]}}},function(l,x){l.exports={first:function(){var n=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(n)},last:function(){var n=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(n)},name:function(n){return this.first()+" "+(n?this.first()+" ":"")+this.last()},cfirst:function(){var n="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(n)},clast:function(){var n="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(n)},cname:function(){return this.cfirst()+this.clast()}}},function(l,x){l.exports={url:function(n,u){return(n||this.protocol())+"://"+(u||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(n){return this.word()+"."+(n||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(n){return this.character("lower")+"."+this.word()+"@"+(n||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(l,x,n){var u=n(18),a=["东北","华北","华东","华中","华南","西南","西北"];l.exports={region:function(){return this.pick(a)},province:function(){return this.pick(u).name},city:function(s){var c=this.pick(u),p=this.pick(c.children);return s?[c.name,p.name].join(" "):p.name},county:function(s){var c=this.pick(u),p=this.pick(c.children),f=this.pick(p.children)||{name:"-"};return s?[c.name,p.name,f.name].join(" "):f.name},zip:function(s){for(var c="",p=0;p<(s||6);p++)c+=this.natural(0,9);return c}}},function(l,x){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function u(s){for(var c={},p=0,f;pj;j++)W=R.charAt(j),W===` +`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):W==="\r"||W==="\u2028"||W==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function w(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();tr?(g=R.charAt(r),r++):(g=null,E===0&&w(r2)),g!==null?(M=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=T)):(r=e,e=T),e}function L2(){var e,t,g;return e=r,R.charCodeAt(r)===92?(t=a2,r++):(t=null,E===0&&w(u2)),t!==null?(s3.test(R.charAt(r))?(g=R.charAt(r),r++):(g=null,E===0&&w(f3)),g!==null?(M=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=T)):(r=e,e=T),e}function w0(){var e,t,g,A;if(e=r,R.substr(r,2)===e0?(t=e0,r+=2):(t=null,E===0&&w(l2)),t!==null){if(g=[],i2.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(o2)),A!==null)for(;A!==null;)g.push(A),i2.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(o2));else g=T;g!==null?(M=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=T)}else r=e,e=T;return e}function A0(){var e,t,g,A;if(e=r,R.substr(r,2)===c2?(t=c2,r+=2):(t=null,E===0&&w(d3)),t!==null){if(g=[],t0.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(n0)),A!==null)for(;A!==null;)g.push(A),t0.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(n0));else g=T;g!==null?(M=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=T)}else r=e,e=T;return e}function k0(){var e,t,g,A;if(e=r,R.substr(r,2)===s2?(t=s2,r+=2):(t=null,E===0&&w(g3)),t!==null){if(g=[],t0.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(n0)),A!==null)for(;A!==null;)g.push(A),t0.test(R.charAt(r))?(A=R.charAt(r),r++):(A=null,E===0&&w(n0));else g=T;g!==null?(M=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=T)}else r=e,e=T;return e}function T0(){var e,t;return e=r,R.substr(r,2)===e0?(t=e0,r+=2):(t=null,E===0&&w(l2)),t!==null&&(M=e,t=x3()),t===null&&(r=e),e=t,e}function M0(){var e,t,g;return e=r,R.charCodeAt(r)===92?(t=a2,r++):(t=null,E===0&&w(u2)),t!==null?(R.length>r?(g=R.charAt(r),r++):(g=null,E===0&&w(r2)),g!==null?(M=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=T)):(r=e,e=T),e}var l0,Q=arguments.length>1?arguments[1]:{},S0={regexp:I},P0=I,T=null,z="",O2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},N2=function(e,t,g){return new a([e].concat(t).concat([g]))},H0="^",D0='"^"',q2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},G2=function(e,t){return new p(e,t)},z2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",W2='","',L0="}",O0='"}"',J2=function(e,t){return new f(e,t)},F0=",}",Y2='",}"',$2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",N0='"?"',r1=function(){return new f(0,1)},q0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},G0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',R1=function(e,t){return new o(!!e,t)},E1="CharacterRange",w1="-",A1='"-"',k1=function(e,t){return new v(e,t)},T1="Character",M1=/^[^\\\]]/,S1="[^\\\\\\]]",c0=function(e){return new y(e)},P1=".",H1='"."',D1=function(){return new n("any-character")},L1="Literal",O1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",z0='"\\\\b"',I1=function(){return new n("backspace")},N1=function(){return new n("word-boundary")},X0="\\B",q1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},W0="\\D",G1='"\\\\D"',z1=function(){return new n("non-digit")},J0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},Y0="\\n",W1='"\\\\n"',J1=function(){return new n("line-feed")},$0="\\r",Y1='"\\\\r"',$1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,M=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],E=0;if("startRule"in Q){if(!(Q.startRule in S0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');P0=S0[Q.startRule]}if(n.offset=F,n.text=L,l0=P0(),l0!==null&&r===R.length)return l0;throw u0(a0),M=Math.max(r,r0),new D(a0,Mm)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c},function(l,x,n){l.exports=n(28)},function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(h,d,b,k){var H=document.createEvent("CustomEvent");return H.initCustomEvent(h,d,b,k),H}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,k){var H=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:k,options:{url:h,type:C}}),this.custom.timeout=function(L){if(typeof L=="number")return L;if(typeof L=="string"&&!~L.indexOf("-"))return parseInt(L,10);if(typeof L=="string"&&~L.indexOf("-")){var F=L.split("-"),U=parseInt(F[0],10),w=parseInt(F[1],10);return Math.round(Math.random()*(w-U))+U}}(o._settings.timeout);var O=y(this.custom.options);function S(L){for(var F=0;F{var o;const{domToImageOptions:t,printOptions:s}=r??{},{create:n}=x(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}=A(i,{type:"image",base64:!0,targetStyles:["*"],...R(s,["type","base64"])});a()})},P=".n-menu-item-content--selected",V="n-menu-item",Y=()=>{const e=d($),r=e==null?void 0:e.querySelector(P),t=d(C);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=I(),{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={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,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",VITE_APP_URL:"/"};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)},g=(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});S(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});S(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=r.trim().split(" ").filter(c=>c!=="");t.value=a.some(c=>i.includes(c))}},n=Vue.watch(()=>d(e),s,{immediate:!0});return S(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&&(g(r,"String")?t(r,o):g(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});S(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}={};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:g(e,"String")&&v.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"||g(e,"Object"))return()=>e;if(typeof e=="function")return e}function S(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function we(e,r){const t=Vue.watchEffect(e,r);S(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,g as i,S 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{u as x,a as A,b as I,L as $,S as C,A as h,c as v}from"./hooks-C7ZgHAXE.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.2.1_vue@3.4.38-DdMBTcyt.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{o as R,c as b}from"./lodash-es@4.17.21-BALnwRTu.js";import"./print-js@1.6.0-BdoEj60G.js";const X=(e,r)=>{var o;const{domToImageOptions:t,printOptions:s}=r??{},{create:n}=x(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}=A(i,{type:"image",base64:!0,targetStyles:["*"],...R(s,["type","base64"])});a()})},P=".n-menu-item-content--selected",V="n-menu-item",Y=()=>{const e=d($),r=e==null?void 0:e.querySelector(P),t=d(C);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=I(),{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||{});const L={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,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",VITE_APP_URL:"/"},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)},g=(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});S(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});S(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=r.trim().split(" ").filter(c=>c!=="");t.value=a.some(c=>i.includes(c))}},n=Vue.watch(()=>d(e),s,{immediate:!0});return S(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&&(g(r,"String")?t(r,o):g(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});S(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}={};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:g(e,"String")&&v.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"||g(e,"Object"))return()=>e;if(typeof e=="function")return e}function S(e){return Vue.getCurrentScope()?(Vue.onScopeDispose(e),!0):!1}function we(e,r){const t=Vue.watchEffect(e,r);S(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,g as i,S 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-DCtVzoYl.js.gz b/js/utils-DCtVzoYl.js.gz new file mode 100644 index 00000000..157e3f49 Binary files /dev/null and b/js/utils-DCtVzoYl.js.gz differ diff --git a/js/utils-KzSLWhhh.js.gz b/js/utils-KzSLWhhh.js.gz deleted file mode 100644 index 211e0c1b..00000000 Binary files a/js/utils-KzSLWhhh.js.gz and /dev/null differ diff --git a/js/vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js b/js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js similarity index 100% rename from js/vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js rename to js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js diff --git a/js/vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js.gz b/js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js.gz similarity index 100% rename from js/vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.js.gz rename to js/vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.js.gz diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.js b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js similarity index 100% rename from js/vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.js rename to js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js diff --git a/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.js.gz b/js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js.gz similarity index 100% rename from js/vue3-next-qrcode@2.0.10_typescript@5.2.2-Du0Nh3g9.js.gz rename to js/vue3-next-qrcode@2.0.10_typescript@5.2.2-B-d0H0H3.js.gz diff --git a/js/vue@3.4.34_typescript@5.2.2-l0sNRNKZ.js b/js/vue@3.4.38_typescript@5.2.2-l0sNRNKZ.js similarity index 100% rename from js/vue@3.4.34_typescript@5.2.2-l0sNRNKZ.js rename to js/vue@3.4.38_typescript@5.2.2-l0sNRNKZ.js diff --git a/js/zh-CN-CaDQLPQN.js b/js/zh-CN-CaDQLPQN.js new file mode 100644 index 00000000..eefedbe2 --- /dev/null +++ b/js/zh-CN-CaDQLPQN.js @@ -0,0 +1 @@ +import{x as Z}from"./hooks-C7ZgHAXE.js";import"./dayjs@1.11.10-C8LoRVP6.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.38-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.38-Cp_qoKMZ.js";import"./@vueuse_shared@10.9.0_vue@3.4.38-BTLxKjPf.js";import"./utils-DCtVzoYl.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.38-f9XU7P4m.js";import"./@vue_reactivity@3.4.38-CmXFqMGn.js";import"./@vue_shared@3.4.38-D8qfpBTH.js";const e="当前环境不支持全屏",ee={isEnabledFullscreen:e},oe=Object.freeze(Object.defineProperty({__proto__:null,default:ee,isEnabledFullscreen:e},Symbol.toStringTag,{value:"Module"})),o="项目配置",t={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},n="界面显示",c="动画效果",te={Title:o,ThemeOptions:t,InterfaceDisplay:n,ContentTransition:c},ne=Object.freeze(Object.defineProperty({__proto__:null,ContentTransition:c,InterfaceDisplay:n,ThemeOptions:t,Title:o,default:te},Symbol.toStringTag,{value:"Module"})),s="刷新当前页面",i="锁屏",l="设置",r="Github",a="全屏",_="退出全屏",m="搜索",ce={Reload:s,Lock:i,Setting:l,Github:r,FullScreen:a,CancelFullScreen:_,Search:m},se=Object.freeze(Object.defineProperty({__proto__:null,CancelFullScreen:_,FullScreen:a,Github:r,Lock:i,Reload:s,Search:m,Setting:l,default:ce},Symbol.toStringTag,{value:"Module"})),p="请求",d="条形码",g="缓存工具函数",u="数字精度",f="右键菜单",b="首页",h="指令",S="文档",T="文档 (加速地址)",O="文档(内嵌)",C="可视化",y="表单",D="Mock 数据",P="模态框",M="多级菜单(缓存)",j="办公",v="文档",R="演示",z="表格",N="二维码",I="依赖项",L="关于",k="页面详情模式",x="分段器",F="SVG 图标",w="表格",A="模板内置 Api",E="滚动动画",G="高级表格",ie={Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Error:"错误页",Form:y,Mock:D,Modal:P,MultiMenu:M,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,TablePro:G},le=Object.freeze(Object.defineProperty({__proto__:null,Axios:p,Barcode:d,CacheDemo:g,CalculatePrecision:u,ContextMenu:f,Dashboard:b,Directive:h,Doc:S,DocLocal:T,DocLocalInside:O,Echart:C,Form:y,Mock:D,Modal:P,MultiMenu:M,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,TablePro:G,TemplateHooks:A,default:ie,scrollReveal:E},Symbol.toStringTag,{value:"Module"})),Q="项目配置",$={Title:"主题",Dark:"暗色",Light:"明亮",PrimaryColorConfig:"主题色"},B="界面显示",re={Title:Q,ThemeOptions:$,InterfaceDisplay:B},ae=Object.freeze(Object.defineProperty({__proto__:null,InterfaceDisplay:B,ThemeOptions:$,Title:Q,default:re},Symbol.toStringTag,{value:"Module"})),H="注册",V="登录",q="扫码登陆",J="请输入用户名",K="请输入密码",U="登 陆",W="用户名",X="密码",Y="开箱即用的中后台管理系统",_e={Register:H,Signing:V,QRCodeSigning:q,NamePlaceholder:J,PasswordPlaceholder:K,Login:U,Name:W,Password:X,RayTemplate:Y},me=Object.freeze(Object.defineProperty({__proto__:null,Login:U,Name:W,NamePlaceholder:J,Password:X,PasswordPlaceholder:K,QRCodeSigning:q,RayTemplate:Y,Register:H,Signing:V,default:_e},Symbol.toStringTag,{value:"Module"})),pe=Object.assign({"./zh-CN/globalMessage.json":oe,"./zh-CN/headerSettingOptions.json":ne,"./zh-CN/headerTooltip.json":se,"./zh-CN/menu.json":le,"./zh-CN/setting.json":ae,"./zh-CN/views/login/index.json":me}),xe={message:{...Z(pe,"zh-CN")}};export{xe as default}; diff --git a/js/zh-CN-CaDQLPQN.js.gz b/js/zh-CN-CaDQLPQN.js.gz new file mode 100644 index 00000000..10b656c1 Binary files /dev/null and b/js/zh-CN-CaDQLPQN.js.gz differ diff --git a/js/zh-CN-D6WyREsK.js b/js/zh-CN-D6WyREsK.js deleted file mode 100644 index 30470858..00000000 --- a/js/zh-CN-D6WyREsK.js +++ /dev/null @@ -1 +0,0 @@ -import{x as Y}from"./hooks-BbIBxRo9.js";import"./dayjs@1.11.10-D8VSY-p2.js";import"./print-js@1.6.0-BdoEj60G.js";import"./vue-hooks-plus@2.2.1_vue@3.4.34-DdMBTcyt.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-BALnwRTu.js";import"./@vueuse_core@10.9.0_vue@3.4.34-BEaNfl9U.js";import"./@vueuse_shared@10.9.0_vue@3.4.34-BTLxKjPf.js";import"./utils-KzSLWhhh.js";import"./interactjs@1.10.26-DZL_TZzP.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-CezqL3m-.js";import"./zrender@5.5.0-DW8ownf1.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./@vue_runtime-core@3.4.34-DmZqUhja.js";import"./@vue_reactivity@3.4.34-CztCRbLl.js";import"./@vue_shared@3.4.34-C-TABL9H.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-D6WyREsK.js.gz b/js/zh-CN-D6WyREsK.js.gz deleted file mode 100644 index 092915ff..00000000 Binary files a/js/zh-CN-D6WyREsK.js.gz and /dev/null differ diff --git a/mockServer/mock-data.js b/mockServer/mock-data.js index 6abab9ff..5a03f5a5 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-1722055318751.js +// mock-data-1724406394396.js import { transformMockData } from "vite-plugin-mock-dev-server"; // mock/demo/person.mock.ts @@ -85,7 +85,7 @@ var getPersonList = defineMock({ } }); -// mock-data-1722055318751.js +// mock-data-1724406394396.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_1722055318751_default = transformMockData(mockList); +var mock_data_1724406394396_default = transformMockData(mockList); export { - mock_data_1722055318751_default as default + mock_data_1724406394396_default as default }; diff --git a/mockServer/mock-data.js.gz b/mockServer/mock-data.js.gz index 652d4568..e9b5699f 100644 Binary files a/mockServer/mock-data.js.gz and b/mockServer/mock-data.js.gz differ