hflvcomp 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/hflvcomp.es.js +1225 -1152
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.subpage-container[data-v-a6c74f38]{display:flex;align-items:center;margin:0;overflow:hidden}.subpage-container[data-v-3deb553c]{padding:0;display:flex;align-items:center}:root{--vue-scroll-rect-scrollbar-thumb-color: rgba(122,122,122, .3);--vue-scroll-rect-scrollbar-thumb-color-light: rgba(122, 122, 122, .5);--vue-scroll-rect-scrollbar-thumb-color-pressed: rgba(112, 112, 112, .2);--vue-scroll-rect-scrollbar-thumb-radius: 5px;--vue-scroll-rect-scrollbar-thumb-margin: 0px;--vue-scroll-rect-scrollbar-size: 8px}.vue-scroll-rect{position:relative;width:100%;height:100%;margin:0;overflow:hidden}.vue-scroll-rect>.scroll-content{position:relative;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.vue-scroll-rect>.scroll-content::-webkit-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content::-ms-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content.both{overflow:scroll}.vue-scroll-rect>.scroll-content.horizontal{overflow-x:scroll}.vue-scroll-rect>.scroll-content.vertical{overflow-y:scroll}.vue-scroll-rect:hover>.scrollbar{opacity:1;transition:opacity .1s}.vue-scroll-rect.always-show-scrollbar>.scrollbar,.vue-scroll-rect .dragging>.scrollbar{opacity:1}.vue-scroll-rect.background-clickable>.scrollbar{pointer-events:all}.vue-scroll-rect>.scrollbar{position:absolute;opacity:0;transition:opacity 1.5s;pointer-events:none}.vue-scroll-rect>.scrollbar:hover{opacity:1}.vue-scroll-rect>.scrollbar .thumb{position:absolute;background-color:var(--vue-scroll-rect-scrollbar-thumb-color);border-radius:var(--vue-scroll-rect-scrollbar-thumb-radius);pointer-events:all}.vue-scroll-rect>.scrollbar .thumb:hover{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-light)}.vue-scroll-rect>.scrollbar .thumb:active{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-pressed)}.vue-scroll-rect>.scrollbar.horizontal{left:0;bottom:0;right:0;height:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.horizontal .thumb{top:var(--vue-scroll-rect-scrollbar-thumb-margin);bottom:var(--vue-scroll-rect-scrollbar-thumb-margin)}.vue-scroll-rect>.scrollbar.vertical{top:0;bottom:0;right:0;width:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.vertical .thumb{left:var(--vue-scroll-rect-scrollbar-thumb-margin);right:var(--vue-scroll-rect-scrollbar-thumb-margin)}:root{--mx-menu-backgroud: #fff;--mx-menu-hover-backgroud: #f1f1f1;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #f1f1f1;--mx-menu-divider: #f0f0f0;--mx-menu-text: #2e2e2e;--mx-menu-hover-text: #2e2e2e;--mx-menu-active-text: #2e2e2e;--mx-menu-open-text: #2e2e2e;--mx-menu-open-hover-text: #2e2e2e;--mx-menu-disabled-text: #c9c8c8;--mx-menu-icon-size: 16px;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-scrollbar-thumb-color: rgba(0, 0, 0, .2);--mx-menu-scrollbar-thumb-color-light: rgba(0, 0, 0, .3);--mx-menu-scrollbar-thumb-color-pressed: rgba(0, 0, 0, .1);--mx-menu-shortcut-backgroud: #ebebeb;--mx-menu-shortcut-backgroud-hover:#ebebeb;--mx-menu-shortcut-backgroud-active:#ebebeb;--mx-menu-shortcut-backgroud-open:#ebebeb;--mx-menu-shortcut-backgroud-disabled:#fdfdfd;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #424242;--mx-menu-shortcut-text-active: #424242;--mx-menu-shortcut-text-open: #424242;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-placeholder-width: 24px}.mx-context-menu{pointer-events:all;display:inline-block;overflow:visible;position:absolute;background-color:var(--mx-menu-backgroud);border-radius:var(--mx-menu-backgroud-radius);padding:12px 0;box-shadow:0 10px 40px 10px var(--mx-menu-shadow-color);opacity:1;transition:opacity .2s ease-in-out;--vue-scroll-rect-scrollbar-thumb-color: var(--mx-menu-scrollbar-thumb-color);--vue-scroll-rect-scrollbar-thumb-color-light: var(--mx-menu-scrollbar-thumb-color-light);--vue-scroll-rect-scrollbar-thumb-color-pressed: var(--mx-menu-scrollbar-thumb-color-pressed)}.mx-context-menu-items{position:relative;overflow:visible}.mx-context-menu-scroll{overscroll-behavior:contain}.mx-context-menu-item{display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:6px 15px;-webkit-user-select:none;user-select:none;overflow:visible;white-space:nowrap;text-overflow:ellipsis;color:var(--mx-menu-text)}.mx-context-menu-item .mx-right-arrow,.mx-context-menu-item .mx-checked-mark{fill:var(--mx-menu-text)}.mx-context-menu-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-right-arrow,.mx-context-menu-item:hover .mx-checked-mark{fill:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-hover);color:var(--mx-menu-shortcut-text-hover)}.mx-context-menu-item:active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-right-arrow,.mx-context-menu-item:active .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-context-menu-item.open{background-color:var(--mx-menu-open-backgroud);color:var(--mx-menu-open-text)}.mx-context-menu-item.open:hover{background-color:var(--mx-menu-open-hover-backgroud);color:var(--mx-menu-open-hover-text)}.mx-context-menu-item.open .mx-right-arrow,.mx-context-menu-item.open .mx-checked-mark{fill:var(--mx-menu-open-text)}.mx-context-menu-item.open .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-open);color:var(--mx-menu-shortcut-text-open)}.mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud)}.mx-context-menu-item.disabled{color:var(--mx-menu-disabled-text);cursor:not-allowed}.mx-context-menu-item.disabled:hover,.mx-context-menu-item.disabled:active{background-color:transparent}.mx-context-menu-item.disabled .mx-right-arrow,.mx-context-menu-item.disabled .mx-checked-mark{fill:var(--mx-menu-disabled-text)}.mx-context-menu-item.disabled .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-disabled);color:var(--mx-menu-shortcut-text-second)}.mx-context-menu-item .mx-item-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.mx-context-menu-item .mx-icon-placeholder{position:relative;display:flex;flex-direction:row;align-items:center;height:auto;overflow:hidden}.mx-context-menu-item .mx-icon-placeholder.preserve-width{width:var(--mx-menu-placeholder-width)}.mx-context-menu-item .icon{display:inline-block;font-size:var(--mx-menu-icon-size)}.mx-context-menu-item .icon.svg{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-context-menu-item .label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:16px}.mx-context-menu-item-wrapper{position:relative}.mx-context-menu-item-sperator{display:block;padding:5px 0;background-color:var(--mx-menu-backgroud)}.mx-context-menu-item-sperator:after{display:block;content:"";background-color:var(--mx-menu-divider);height:1px}.mx-right-arrow{width:14px;height:14px}.mx-checked-mark{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-shortcut{position:relative;justify-self:flex-end;font-size:11.5px;padding:2px 4px;background-color:var(--mx-menu-shortcut-backgroud);color:var(--mx-menu-shortcut-text)}.mx-menu-bar.dark,.mx-context-menu.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #464646;--mx-menu-text: #ffffff;--mx-menu-hover-text: #ffffff;--mx-menu-active-text: #ffffff;--mx-menu-open-text: #ffffff;--mx-menu-open-hover-text: #ffffff;--mx-menu-disabled-text: #9c9c9c;--mx-menu-shadow-color: rgba(51, 51, 51, .2);--mx-menu-scrollbar-thumb-color: rgba(255, 255, 255, .3);--mx-menu-scrollbar-thumb-color-light: rgba(255, 255, 255, .5);--mx-menu-scrollbar-thumb-color-pressed: rgba(255, 255, 255, .2);--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d}.mx-menu-bar.flat,.mx-context-menu.flat{border-radius:0;padding:7px 0;box-shadow:0 1px 2px 1px var(--mx-menu-shadow-color)}.mx-menu-bar.flat .mx-context-menu-item,.mx-context-menu.flat .mx-context-menu-item{padding:3px 12px}.mx-menu-bar.win10,.mx-context-menu.win10{border-radius:0;padding:8px 0;border:1px solid var(--mx-menu-border-color);box-shadow:2px 2px 1px 0 var(--mx-menu-shadow-color)}.mx-menu-bar.win10,.mx-context-menu.win10{--mx-menu-backgroud: #eeeeee;--mx-menu-hover-backgroud: #d8d8d8;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #d8d8d8;--mx-menu-divider: #aaaaaa;--mx-menu-border-color: #b1b1b1;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover: transparent;--mx-menu-shortcut-backgroud-active: transparent;--mx-menu-shortcut-backgroud-open: transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #272727;--mx-menu-shortcut-text-hover: #272727;--mx-menu-shortcut-text-active: #272727;--mx-menu-shortcut-text-open: #272727;--mx-menu-shortcut-text-disabled: #6b6b6b}.mx-menu-bar.win10 .mx-context-menu-item,.mx-context-menu.win10 .mx-context-menu-item{padding:2px 4px;margin:0 4px}.mx-menu-bar.win10 .mx-context-menu-item-sperator,.mx-context-menu.win10 .mx-context-menu-item-sperator{margin:0 4px}.mx-menu-bar.win10.dark,.mx-context-menu.win10.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #808080;--mx-menu-border-color: #656565;--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d;padding:8px 0}.mx-menu-bar.win10.dark .mx-context-menu-item,.mx-context-menu.win10.dark .mx-context-menu-item{padding:6px 12px;margin:0}.mx-menu-bar.win10.dark .mx-context-menu-item-sperator,.mx-context-menu.win10.dark .mx-context-menu-item-sperator{margin:0 7px}.mx-menu-bar.mac,.mx-context-menu.mac{padding:8px 0;box-shadow:0 5px 7px 1px var(--mx-menu-shadow-color);border:1px solid var(--mx-menu-border-color)}.mx-menu-bar.mac,.mx-context-menu.mac{--mx-menu-backgroud: #ececec;--mx-menu-hover-backgroud: #0165e1;--mx-menu-active-backgroud: #0165e1;--mx-menu-open-backgroud: #858585;--mx-menu-open-hover-backgroud: #0165e1;--mx-menu-divider: #d2d2d2;--mx-menu-text: #232323;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #bbbbbb;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-border-color: #bbbbbb}.mx-menu-bar.mac.dark,.mx-context-menu.mac.dark{--mx-menu-backgroud: #333333;--mx-menu-hover-backgroud: #0153d2;--mx-menu-active-backgroud: #0153d2;--mx-menu-open-hover-backgroud: #0153d2;--mx-menu-open-backgroud: #414346;--mx-menu-divider: #575757;--mx-menu-text: #dcdcdc;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #6a6a6a;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #dadada;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #6a6a6a;--mx-menu-border-color: #222}.mx-menu-bar.mac .mx-context-menu-item,.mx-context-menu.mac .mx-context-menu-item{border-radius:5px;margin:0 6px;padding:3px 6px}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text);outline:none}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-shortcut,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-menu-bar.mac .mx-context-menu-item-sperator,.mx-context-menu.mac .mx-context-menu-item-sperator{margin:0 12px}.mx-context-menu .vue-scroll-rect>.scroll-content{overflow-y:scroll;height:100%;width:auto;position:relative!important}.mx-menu-ghost-host{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mx-menu-ghost-host.fullscreen{position:fixed}.mx-menu-bar{flex:1;display:flex;flex-direction:row;align-items:center;background-color:var(--mx-menu-backgroud);padding:5px 0}.mx-menu-bar.mini{flex-grow:0}.mx-menu-bar .mx-menu-bar-content{display:flex;flex-direction:row;align-items:center}.mx-menu-bar .mx-menu-bar-item{padding:2px 8px;border-radius:5px;-webkit-user-select:none;user-select:none;background-color:var(--mx-menu-backgroud);color:var(--mx-menu-text)}.mx-menu-bar .mx-menu-bar-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:hover .mx-menu-bar-icon-menu{fill:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:active,.mx-menu-bar .mx-menu-bar-item.active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-item:active .mx-menu-bar-icon-menu,.mx-menu-bar .mx-menu-bar-item.active .mx-menu-bar-icon-menu{fill:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-icon-menu{fill:var(--mx-menu-text);width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-menu-bar.flat .mx-menu-bar-item{border-radius:0}.picture-container[data-v-b63faafe]{overflow:hidden}.svg-container[data-v-ecab498d]{width:100%;height:100%}.svg-container svg[data-v-ecab498d]{width:100%;height:100%}.svg-container[data-v-f136e4e8]{width:100%;height:100%;cursor:pointer}.svg-container svg[data-v-f136e4e8]{width:100%;height:100%}.svg-container[data-v-0a8a6304]{width:100%;height:100%;cursor:pointer}.svg-container svg[data-v-0a8a6304]{width:100%;height:100%}.svg-container[data-v-7dcb2081]{width:100%;height:100%}.svg-container svg[data-v-7dcb2081]{width:100%;height:100%}.svg-container[data-v-4ce499b1]{width:100%;height:100%}.svg-container svg[data-v-4ce499b1]{width:100%;height:100%}.svg-container[data-v-aec13cc0]{width:100%;height:100%}.svg-container svg[data-v-aec13cc0]{width:100%;height:100%}.svg-container[data-v-cddc7262]{width:100%;height:100%}.svg-container svg[data-v-cddc7262]{width:100%;height:100%}.svg-container[data-v-ea6a17d7]{width:100%;height:100%;cursor:pointer}.svg-container svg[data-v-ea6a17d7]{width:100%;height:100%}.svg-container[data-v-ac44471c]{width:100%;height:100%;cursor:pointer}.svg-container svg[data-v-ac44471c]{width:100%;height:100%}.svg-container[data-v-78f636ae]{width:100%;height:100%}.svg-container svg[data-v-78f636ae]{width:100%;height:100%}.svg-container[data-v-82417625]{width:100%;height:100%}.svg-container svg[data-v-82417625]{width:100%;height:100%}.svg-container[data-v-56539202]{width:100%;height:100%}.svg-container svg[data-v-56539202]{width:100%;height:100%}.svg-container[data-v-56539202] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-56539202] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-56539202] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-56539202] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-56539202] .svg-five-color{fill:var(--custom-five-color)!important}.canvas-grid-container[data-v-6480756a]{width:100%;height:100%;overflow:hidden}.grid-container[data-v-dced3ee3]{width:100%;height:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { inject as me, resolveComponent as Ye, createElementBlock as K, openBlock as P, normalizeStyle as Be, createVNode as Ve, ref as b, computed as w, watch as A, provide as we, onBeforeMount as J, onMounted as q, onBeforeUnmount as Z, onUnmounted as $, Fragment as at, renderList as ct, createBlock as ve, KeepAlive as jt, createCommentVNode as ue, defineComponent as De, toRefs as Ae, h as Je, nextTick as Se, unref as E, renderSlot as Ce, normalizeClass as Te, createElementVNode as re, mergeProps as ut, toDisplayString as Ie, Teleport as It, Transition as Bt, withCtx as Re, createSlots as Ot, reactive as Xe, useSlots as Wt, normalizeProps as Tt, guardReactiveProps as At, render as pt, createTextVNode as ge } from "vue";
3
- import { CommonUtils as Q, useDataCacheStore as se, createSmartAccessor as ie, reCalcCanvasSize as mt, CreateCompContext as ee, useEventHandler as te } from "hflvloader";
2
+ import { inject as me, resolveComponent as Ye, createElementBlock as K, openBlock as P, normalizeStyle as Re, createVNode as Ve, ref as b, computed as x, watch as A, provide as we, onBeforeMount as J, onMounted as q, onBeforeUnmount as Z, onUnmounted as $, Fragment as at, renderList as ct, createBlock as ve, KeepAlive as jt, createCommentVNode as ie, defineComponent as De, toRefs as Ae, h as Je, nextTick as Se, unref as E, renderSlot as Ce, normalizeClass as Be, createElementVNode as ue, mergeProps as ut, toDisplayString as Ie, Teleport as It, Transition as Tt, withCtx as Le, createSlots as Ot, reactive as Xe, useSlots as Wt, normalizeProps as Bt, guardReactiveProps as At, render as ht, createTextVNode as ge } from "vue";
3
+ import { CommonUtils as Q, useDataCacheStore as ne, createSmartAccessor as re, reCalcCanvasSize as mt, CreateCompContext as ee, useEventHandler as te } from "hflvloader";
4
4
  import { useRouter as le, useRoute as oe } from "vue-router";
5
5
  (function() {
6
6
  const t = () => {
7
- console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.4", "color: #2ecc71;"), console.log("%c编译日期: 2025/12/16 16:20:14", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2025 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2025 qbansanguo All rights reserved.", "color: #f39c12;");
7
+ console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.5", "color: #2ecc71;"), console.log("%c编译日期: 2026/1/4 10:09:35", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
8
8
  };
9
9
  if (typeof window < "u") {
10
10
  window._copyright_hflvcomp = t;
@@ -27,7 +27,7 @@ function $e() {
27
27
  throw new Error("组件注册时未提供API,请检查!");
28
28
  return t;
29
29
  }
30
- const he = (t, s) => {
30
+ const pe = (t, s) => {
31
31
  const r = t.__vccOpts || t;
32
32
  for (const [e, d] of s)
33
33
  r[e] = d;
@@ -53,79 +53,79 @@ const he = (t, s) => {
53
53
  },
54
54
  setup(t, { expose: s }) {
55
55
  s();
56
- const { isNotEmpty: r } = Q, e = $e(), d = t, o = b(null), l = b({}), n = b([]);
57
- let i = {}, a = [], g = "transparent";
58
- const y = w(() => d.propValue), u = w(() => d.element), _ = w(() => u.value.events || []), I = w(() => u.value.containerParam || {}), L = w(() => ({
56
+ const { isNotEmpty: r } = Q, e = $e(), d = t, n = b(null), o = b({}), l = b([]);
57
+ let i = {}, a = [], h = "transparent";
58
+ const m = x(() => d.propValue), u = x(() => d.element), S = x(() => u.value.events || []), W = x(() => u.value.containerParam || {}), L = x(() => ({
59
59
  width: `${u.value.style.width}px`,
60
60
  height: `${u.value.style.height}px`,
61
- backgroundColor: g
62
- })), D = se(), h = ie(D), H = b(null), R = w(() => r(y.value.subpageId) ? y.value.subpageId : r(y.value.subpageIdCK) ? h[y.value.subpageIdCK] : "");
63
- A(() => R.value, (O) => {
64
- r(O) && v();
65
- }), A(() => u.value.style.width, (O) => {
61
+ backgroundColor: h
62
+ })), D = ne(), p = re(D), V = b(null), H = x(() => r(m.value.subpageId) ? m.value.subpageId : r(m.value.subpageIdCK) ? p[m.value.subpageIdCK] : "");
63
+ A(() => H.value, (R) => {
64
+ r(R) && v();
65
+ }), A(() => u.value.style.width, (R) => {
66
66
  c();
67
- }), A(() => u.value.style.height, (O) => {
67
+ }), A(() => u.value.style.height, (R) => {
68
68
  c();
69
69
  });
70
- const W = () => {
71
- i = {}, a = [], l.value = {}, n.value = [], g = "transparent";
70
+ const I = () => {
71
+ i = {}, a = [], o.value = {}, l.value = [], h = "transparent";
72
72
  }, v = () => {
73
- let O = R.value;
74
- if (r(O)) {
73
+ let R = H.value;
74
+ if (r(R)) {
75
75
  let C = "DB";
76
- if (d.designStatus || (C = D.pageSource || "DB", r(y.value.pageSource) && (C = d.pageSource)), C == "DB") {
76
+ if (d.designStatus || (C = D.pageSource || "DB", r(m.value.pageSource) && (C = d.pageSource)), C == "DB") {
77
77
  let Y = {};
78
- Y.id = O, e.qryPageConfigData(Y).then(function(B) {
79
- let f = JSON.parse(B.data.pageData);
80
- f ? (i = f.canvasStyle || {}, a = f.componentData || [], i.passToParentSwitch && i.backgroundColor && (g = i.backgroundColor), c()) : W();
78
+ Y.id = R, e.qryPageConfigData(Y).then(function(T) {
79
+ let f = JSON.parse(T.data.pageData);
80
+ f ? (i = f.canvasStyle || {}, a = f.componentData || [], i.passToParentSwitch && i.backgroundColor && (h = i.backgroundColor), c()) : I();
81
81
  });
82
82
  } else {
83
- let Y = O + ".json";
84
- e.getJsonFile(Y, function(B) {
85
- if (B && B.status == 200) {
86
- let f = B.data || {};
87
- f ? (i = f.canvasStyle || {}, a = f.componentData || [], i.passToParentSwitch && i.backgroundColor && (g = i.backgroundColor), c()) : W();
83
+ let Y = R + ".json";
84
+ e.getJsonFile(Y, function(T) {
85
+ if (T && T.status == 200) {
86
+ let f = T.data || {};
87
+ f ? (i = f.canvasStyle || {}, a = f.componentData || [], i.passToParentSwitch && i.backgroundColor && (h = i.backgroundColor), c()) : I();
88
88
  } else
89
- W();
90
- }, function(B) {
91
- W();
89
+ I();
90
+ }, function(T) {
91
+ I();
92
92
  });
93
93
  }
94
94
  } else
95
- W();
95
+ I();
96
96
  }, c = () => {
97
- let O = mt(u.value.style.width, u.value.style.height, i, a);
98
- O ? (l.value = O.canvasStyleData || {}, n.value = O.componentData || []) : (l.value = {}, n.value = []);
97
+ let R = mt(u.value.style.width, u.value.style.height, i, a);
98
+ R ? (o.value = R.canvasStyleData || {}, l.value = R.componentData || []) : (o.value = {}, l.value = []);
99
99
  };
100
- we("VE-ContainerParam", I);
101
- const p = le(), j = oe(), S = ee(y, u, p, j);
100
+ we("VE-ContainerParam", W);
101
+ const g = le(), j = oe(), _ = ee(m, u, g, j);
102
102
  J(() => {
103
- H.value = te(_.value, d.designStatus, S), H.value?.beforeMount();
103
+ V.value = te(S.value, d.designStatus, _), V.value?.beforeMount();
104
104
  }), q(() => {
105
- v(), H.value?.mounted();
105
+ v(), V.value?.mounted();
106
106
  }), Z(() => {
107
- H.value?.beforeUnmount();
107
+ V.value?.beforeUnmount();
108
108
  }), $(() => {
109
- H.value?.unmounted();
109
+ V.value?.unmounted();
110
110
  });
111
- const T = { isNotEmpty: r, api: e, props: d, vePageRef: o, canvasStyle: l, componentData: n, get oldCanvasStyle() {
111
+ const B = { isNotEmpty: r, api: e, props: d, vePageRef: n, canvasStyle: o, componentData: l, get oldCanvasStyle() {
112
112
  return i;
113
- }, set oldCanvasStyle(O) {
114
- i = O;
113
+ }, set oldCanvasStyle(R) {
114
+ i = R;
115
115
  }, get oldComponentData() {
116
116
  return a;
117
- }, set oldComponentData(O) {
118
- a = O;
117
+ }, set oldComponentData(R) {
118
+ a = R;
119
119
  }, get backgroundColor() {
120
- return g;
121
- }, set backgroundColor(O) {
122
- g = O;
123
- }, propValue: y, element: u, events: _, containerParam: I, containerStyle: L, dataCache: D, smartData: h, eventHandler: H, pageId: R, clearData: W, loadPageInfo: v, reCalcSizeData: c, router: p, route: j, compContext: S, ref: b, computed: w, onMounted: q, watch: A, provide: we, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
120
+ return h;
121
+ }, set backgroundColor(R) {
122
+ h = R;
123
+ }, propValue: m, element: u, events: S, containerParam: W, containerStyle: L, dataCache: D, smartData: p, eventHandler: V, pageId: H, clearData: I, loadPageInfo: v, reCalcSizeData: c, router: g, route: j, compContext: _, ref: b, computed: x, onMounted: q, watch: A, provide: we, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
124
124
  return te;
125
125
  }, get useDataCacheStore() {
126
- return se;
126
+ return ne;
127
127
  }, get createSmartAccessor() {
128
- return ie;
128
+ return re;
129
129
  }, get CreateCompContext() {
130
130
  return ee;
131
131
  }, get useRoute() {
@@ -139,23 +139,23 @@ const he = (t, s) => {
139
139
  }, get reCalcCanvasSize() {
140
140
  return mt;
141
141
  } };
142
- return Object.defineProperty(T, "__isScriptSetup", { enumerable: !1, value: !0 }), T;
142
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
143
143
  }
144
144
  });
145
- function Et(t, s, r, e, d, o) {
146
- const l = Ye("VEPage");
145
+ function Et(t, s, r, e, d, n) {
146
+ const o = Ye("VEPage");
147
147
  return P(), K("div", {
148
148
  class: "subpage-container",
149
- style: Be(e.containerStyle)
149
+ style: Re(e.containerStyle)
150
150
  }, [
151
- Ve(l, {
151
+ Ve(o, {
152
152
  ref: "vePageRef",
153
153
  "canvas-style": e.canvasStyle,
154
154
  "component-data": e.componentData
155
155
  }, null, 8, ["canvas-style", "component-data"])
156
156
  ], 4);
157
157
  }
158
- const zt = /* @__PURE__ */ he(Ft, [["render", Et], ["__scopeId", "data-v-a6c74f38"], ["__file", "Component.vue"]]), Nt = /* @__PURE__ */ Object.assign({
158
+ const zt = /* @__PURE__ */ pe(Ft, [["render", Et], ["__scopeId", "data-v-a6c74f38"], ["__file", "Component.vue"]]), Nt = /* @__PURE__ */ Object.assign({
159
159
  name: "MultiSubpage"
160
160
  }, {
161
161
  __name: "Component",
@@ -176,33 +176,33 @@ const zt = /* @__PURE__ */ he(Ft, [["render", Et], ["__scopeId", "data-v-a6c74f3
176
176
  },
177
177
  setup(t, { expose: s }) {
178
178
  s();
179
- const { isArray: r, isNotEmpty: e, isObject: d } = Q, o = t, l = w(() => o.propValue), n = w(() => o.element), i = w(() => n.value.events || []), a = se(), g = ie(a), y = b(null), u = g[l.value.dsCacheKey], _ = w(() => l.value.staticData ? l.value.items || [] : r(u.value) ? u.value : []), I = w(() => {
180
- let v = _.value || [], c = [];
181
- return v.forEach((p, j) => {
179
+ const { isArray: r, isNotEmpty: e, isObject: d } = Q, n = t, o = x(() => n.propValue), l = x(() => n.element), i = x(() => l.value.events || []), a = ne(), h = re(a), m = b(null), u = h[o.value.dsCacheKey], S = x(() => o.value.staticData ? o.value.items || [] : r(u.value) ? u.value : []), W = x(() => {
180
+ let v = S.value || [], c = [];
181
+ return v.forEach((g, j) => {
182
182
  c[j] = {};
183
- let S = {};
184
- S.style = {}, S.style.width = n.value.style.width, S.style.height = n.value.style.height, S.prop = {}, S.prop.subpageId = p.value, c[j].subpageId = p.value, c[j].prop = S.prop, c[j].element = S;
183
+ let _ = {};
184
+ _.style = {}, _.style.width = l.value.style.width, _.style.height = l.value.style.height, _.prop = {}, _.prop.subpageId = g.value, c[j].subpageId = g.value, c[j].prop = _.prop, c[j].element = _;
185
185
  }), c;
186
- }), L = b(null), D = g[l.value.activeSubpageIdCK];
186
+ }), L = b(null), D = h[o.value.activeSubpageIdCK];
187
187
  A(() => D.value, (v) => {
188
- e(l.value.activeSubpageIdCK) && (d(v) || (L.value = v));
188
+ e(o.value.activeSubpageIdCK) && (d(v) || (L.value = v));
189
189
  }, { immediate: !0 });
190
- const h = le(), H = oe(), R = ee(l, n, h, H);
190
+ const p = le(), V = oe(), H = ee(o, l, p, V);
191
191
  J(() => {
192
- y.value = te(i.value, o.designStatus, R), y.value?.beforeMount();
192
+ m.value = te(i.value, n.designStatus, H), m.value?.beforeMount();
193
193
  }), q(() => {
194
- l.value.activeSubpageId && (L.value = l.value.activeSubpageId), y.value?.mounted();
194
+ o.value.activeSubpageId && (L.value = o.value.activeSubpageId), m.value?.mounted();
195
195
  }), Z(() => {
196
- y.value?.beforeUnmount();
196
+ m.value?.beforeUnmount();
197
197
  }), $(() => {
198
- y.value?.unmounted();
198
+ m.value?.unmounted();
199
199
  });
200
- const W = { isArray: r, isNotEmpty: e, isObject: d, props: o, propValue: l, element: n, events: i, dataCache: a, smartData: g, eventHandler: y, cacheDS: u, options: _, itemData: I, curPageId: L, cacheValue: D, router: h, route: H, compContext: R, ref: b, computed: w, onMounted: q, watch: A, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
200
+ const I = { isArray: r, isNotEmpty: e, isObject: d, props: n, propValue: o, element: l, events: i, dataCache: a, smartData: h, eventHandler: m, cacheDS: u, options: S, itemData: W, curPageId: L, cacheValue: D, router: p, route: V, compContext: H, ref: b, computed: x, onMounted: q, watch: A, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
201
201
  return te;
202
202
  }, get useDataCacheStore() {
203
- return se;
203
+ return ne;
204
204
  }, get createSmartAccessor() {
205
- return ie;
205
+ return re;
206
206
  }, get CreateCompContext() {
207
207
  return ee;
208
208
  }, get CommonUtils() {
@@ -212,24 +212,24 @@ const zt = /* @__PURE__ */ he(Ft, [["render", Et], ["__scopeId", "data-v-a6c74f3
212
212
  }, get useRouter() {
213
213
  return le;
214
214
  } };
215
- return Object.defineProperty(W, "__isScriptSetup", { enumerable: !1, value: !0 }), W;
215
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
216
216
  }
217
217
  });
218
- function Kt(t, s, r, e, d, o) {
219
- const l = Ye("Subpage");
218
+ function Kt(t, s, r, e, d, n) {
219
+ const o = Ye("Subpage");
220
220
  return P(), K("div", { class: "subpage-container" }, [
221
- (P(!0), K(at, null, ct(e.itemData, (n, i) => (P(), K("div", { key: i }, [
221
+ (P(!0), K(at, null, ct(e.itemData, (l, i) => (P(), K("div", { key: i }, [
222
222
  (P(), ve(jt, { max: 15 }, [
223
- e.curPageId == n.subpageId ? (P(), ve(l, {
223
+ e.curPageId == l.subpageId ? (P(), ve(o, {
224
224
  key: i,
225
- "prop-value": n.prop,
226
- element: n.element
227
- }, null, 8, ["prop-value", "element"])) : ue("", !0)
225
+ "prop-value": l.prop,
226
+ element: l.element
227
+ }, null, 8, ["prop-value", "element"])) : ie("", !0)
228
228
  ], 1024))
229
229
  ]))), 128))
230
230
  ]);
231
231
  }
232
- const Gt = /* @__PURE__ */ he(Nt, [["render", Kt], ["__scopeId", "data-v-3deb553c"], ["__file", "Component.vue"]]);
232
+ const Gt = /* @__PURE__ */ pe(Nt, [["render", Kt], ["__scopeId", "data-v-3deb553c"], ["__file", "Component.vue"]]);
233
233
  function st(t) {
234
234
  var s = typeof t;
235
235
  return t != null && (s == "object" || s == "function");
@@ -288,53 +288,53 @@ function Ct(t) {
288
288
  var r = dl.test(t);
289
289
  return r || fl.test(t) ? vl(t.slice(2), r ? 2 : 8) : cl.test(t) ? yt : +t;
290
290
  }
291
- var hl = "Expected a function", pl = Math.max, ml = Math.min;
291
+ var pl = "Expected a function", hl = Math.max, ml = Math.min;
292
292
  function tt(t, s, r) {
293
- var e, d, o, l, n, i, a = 0, g = !1, y = !1, u = !0;
293
+ var e, d, n, o, l, i, a = 0, h = !1, m = !1, u = !0;
294
294
  if (typeof t != "function")
295
- throw new TypeError(hl);
296
- s = Ct(s) || 0, st(r) && (g = !!r.leading, y = "maxWait" in r, o = y ? pl(Ct(r.maxWait) || 0, s) : o, u = "trailing" in r ? !!r.trailing : u);
297
- function _(c) {
298
- var p = e, j = d;
299
- return e = d = void 0, a = c, l = t.apply(j, p), l;
295
+ throw new TypeError(pl);
296
+ s = Ct(s) || 0, st(r) && (h = !!r.leading, m = "maxWait" in r, n = m ? hl(Ct(r.maxWait) || 0, s) : n, u = "trailing" in r ? !!r.trailing : u);
297
+ function S(c) {
298
+ var g = e, j = d;
299
+ return e = d = void 0, a = c, o = t.apply(j, g), o;
300
300
  }
301
- function I(c) {
302
- return a = c, n = setTimeout(h, s), g ? _(c) : l;
301
+ function W(c) {
302
+ return a = c, l = setTimeout(p, s), h ? S(c) : o;
303
303
  }
304
304
  function L(c) {
305
- var p = c - i, j = c - a, S = s - p;
306
- return y ? ml(S, o - j) : S;
305
+ var g = c - i, j = c - a, _ = s - g;
306
+ return m ? ml(_, n - j) : _;
307
307
  }
308
308
  function D(c) {
309
- var p = c - i, j = c - a;
310
- return i === void 0 || p >= s || p < 0 || y && j >= o;
309
+ var g = c - i, j = c - a;
310
+ return i === void 0 || g >= s || g < 0 || m && j >= n;
311
311
  }
312
- function h() {
312
+ function p() {
313
313
  var c = nt();
314
314
  if (D(c))
315
- return H(c);
316
- n = setTimeout(h, L(c));
315
+ return V(c);
316
+ l = setTimeout(p, L(c));
317
317
  }
318
- function H(c) {
319
- return n = void 0, u && e ? _(c) : (e = d = void 0, l);
318
+ function V(c) {
319
+ return l = void 0, u && e ? S(c) : (e = d = void 0, o);
320
320
  }
321
- function R() {
322
- n !== void 0 && clearTimeout(n), a = 0, e = i = d = n = void 0;
321
+ function H() {
322
+ l !== void 0 && clearTimeout(l), a = 0, e = i = d = l = void 0;
323
323
  }
324
- function W() {
325
- return n === void 0 ? l : H(nt());
324
+ function I() {
325
+ return l === void 0 ? o : V(nt());
326
326
  }
327
327
  function v() {
328
- var c = nt(), p = D(c);
329
- if (e = arguments, d = this, i = c, p) {
330
- if (n === void 0)
331
- return I(i);
332
- if (y)
333
- return clearTimeout(n), n = setTimeout(h, s), _(i);
328
+ var c = nt(), g = D(c);
329
+ if (e = arguments, d = this, i = c, g) {
330
+ if (l === void 0)
331
+ return W(i);
332
+ if (m)
333
+ return clearTimeout(l), l = setTimeout(p, s), S(i);
334
334
  }
335
- return n === void 0 && (n = setTimeout(h, s)), l;
335
+ return l === void 0 && (l = setTimeout(p, s)), o;
336
336
  }
337
- return v.cancel = R, v.flush = W, v;
337
+ return v.cancel = H, v.flush = I, v;
338
338
  }
339
339
  let Me = null;
340
340
  function gl() {
@@ -349,7 +349,7 @@ function bt(t) {
349
349
  function Rt() {
350
350
  Me && (Me.closeMenu(), Me = null);
351
351
  }
352
- const _e = {
352
+ const ke = {
353
353
  defaultDirection: "br",
354
354
  defaultMinWidth: 100,
355
355
  defaultMaxWidth: 600,
@@ -381,16 +381,16 @@ function Lt(t) {
381
381
  if (s) {
382
382
  const d = typeof s == "function" ? s() : s;
383
383
  if (d) {
384
- let o = d.getAttribute("id");
385
- return o || (o = bl + xl++, d.setAttribute("id", o)), {
386
- eleId: o,
384
+ let n = d.getAttribute("id");
385
+ return n || (n = bl + xl++, d.setAttribute("id", n)), {
386
+ eleId: n,
387
387
  container: d,
388
388
  isNew: !1
389
389
  };
390
390
  }
391
391
  }
392
392
  let e = document.getElementById(rt);
393
- return e || (e = document.createElement("div"), e.setAttribute("id", rt), e.setAttribute("class", "mx-menu-ghost-host fullscreen"), document.body.appendChild(e)), e.style.zIndex = r?.toString() || _e.defaultZindex.toString(), {
393
+ return e || (e = document.createElement("div"), e.setAttribute("id", rt), e.setAttribute("class", "mx-menu-ghost-host fullscreen"), document.body.appendChild(e)), e.style.zIndex = r?.toString() || ke.defaultZindex.toString(), {
394
394
  eleId: rt,
395
395
  container: e,
396
396
  isNew: !0
@@ -407,7 +407,7 @@ function wl(t) {
407
407
  function xt(t) {
408
408
  return typeof t == "number" ? `${t}px` : t;
409
409
  }
410
- const ke = De({
410
+ const _e = De({
411
411
  props: {
412
412
  /**
413
413
  * Can be VNode or (data: unknown) => VNode
@@ -433,7 +433,7 @@ function Sl(t, s) {
433
433
  const r = { ...t };
434
434
  return delete r[s], r;
435
435
  }
436
- var kl = Object.defineProperty, _l = (t, s, r) => s in t ? kl(t, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[s] = r, wt = (t, s, r) => _l(t, typeof s != "symbol" ? s + "" : s, r);
436
+ var _l = Object.defineProperty, kl = (t, s, r) => s in t ? _l(t, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[s] = r, wt = (t, s, r) => kl(t, typeof s != "symbol" ? s + "" : s, r);
437
437
  class St {
438
438
  constructor(s, r) {
439
439
  wt(this, "x", 0), wt(this, "y", 0), this.x = s || 0, this.y = r || 0;
@@ -445,16 +445,16 @@ class St {
445
445
  this.x -= s.x, this.y -= s.y;
446
446
  }
447
447
  }
448
- function kt(t) {
449
- const { onDown: s, onMove: r, onUp: e } = t, d = new St(), o = new St();
450
- let l;
451
- function n(a) {
452
- a.stopPropagation(), o.set(a.x, a.y), o.substract(d), r(d, o, a, l);
448
+ function _t(t) {
449
+ const { onDown: s, onMove: r, onUp: e } = t, d = new St(), n = new St();
450
+ let o;
451
+ function l(a) {
452
+ a.stopPropagation(), n.set(a.x, a.y), n.substract(d), r(d, n, a, o);
453
453
  }
454
454
  function i(a) {
455
- e(a, l), d.set(0, 0), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", i);
455
+ e(a, o), d.set(0, 0), document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", i);
456
456
  }
457
- return (a, g) => s(a, g) ? (l = g, d.set(a.x, a.y), document.addEventListener("mousemove", n), document.addEventListener("mouseup", i), a.stopPropagation(), !0) : !1;
457
+ return (a, h) => s(a, h) ? (o = h, d.set(a.x, a.y), document.addEventListener("mousemove", l), document.addEventListener("mouseup", i), a.stopPropagation(), !0) : !1;
458
458
  }
459
459
  function Vl(t, s) {
460
460
  let r = 0;
@@ -469,22 +469,22 @@ function Vl(t, s) {
469
469
  }
470
470
  };
471
471
  }
472
- const Ne = [], _t = Vl(100, () => {
472
+ const Ne = [], kt = Vl(100, () => {
473
473
  for (const t of Ne)
474
474
  t();
475
475
  });
476
476
  function Ml(t, s, r, e) {
477
- let d = 0, o = 0;
478
- function l() {
479
- t.value && (s && d !== t.value.offsetWidth && s(t.value.offsetWidth), r && o !== t.value.offsetHeight && r(t.value.offsetHeight), d = t.value.offsetWidth, o = t.value.offsetHeight);
477
+ let d = 0, n = 0;
478
+ function o() {
479
+ t.value && (s && d !== t.value.offsetWidth && s(t.value.offsetWidth), r && n !== t.value.offsetHeight && r(t.value.offsetHeight), d = t.value.offsetWidth, n = t.value.offsetHeight);
480
480
  }
481
481
  return {
482
482
  startResizeChecker() {
483
- _t.start(), Ne.push(l);
483
+ kt.start(), Ne.push(o);
484
484
  },
485
485
  stopResizeChecker() {
486
- const n = Ne.indexOf(l);
487
- n >= 0 && Ne.splice(n, 1), Ne.length === 0 && _t.stop();
486
+ const l = Ne.indexOf(o);
487
+ l >= 0 && Ne.splice(l, 1), Ne.length === 0 && kt.stop();
488
488
  }
489
489
  };
490
490
  }
@@ -556,7 +556,7 @@ const Vt = 140, Il = 70, Ol = /* @__PURE__ */ De({
556
556
  },
557
557
  emits: ["scroll", "resized"],
558
558
  setup(t, { expose: s, emit: r }) {
559
- const e = t, d = r, o = b(), l = b(), n = b(), i = b(), a = b(), g = b(), y = b(!1), u = w(() => e.scroll === "horizontal" || e.scroll === "both"), _ = w(() => e.scroll === "vertical" || e.scroll === "both"), I = Xe({
559
+ const e = t, d = r, n = b(), o = b(), l = b(), i = b(), a = b(), h = b(), m = b(!1), u = x(() => e.scroll === "horizontal" || e.scroll === "both"), S = x(() => e.scroll === "vertical" || e.scroll === "both"), W = Xe({
560
560
  show: !1,
561
561
  size: 0,
562
562
  sizeRaw: 0,
@@ -567,145 +567,145 @@ const Vt = 140, Il = 70, Ol = /* @__PURE__ */ De({
567
567
  sizeRaw: 0,
568
568
  pos: 0
569
569
  });
570
- let D = 0, h = 0, H = 0, R = 0, W = null;
570
+ let D = 0, p = 0, V = 0, H = 0, I = null;
571
571
  const v = { attributes: !0, childList: !0 };
572
572
  function c() {
573
- if (o.value) {
574
- if (I.show) {
575
- const k = o.value.offsetWidth / o.value.scrollWidth;
576
- I.sizeRaw = k * o.value.offsetWidth, I.size = k * 100, I.pos = o.value.scrollLeft / (o.value.scrollWidth - o.value.offsetWidth) * (100 - I.size), k >= 1 && (I.show = !1);
573
+ if (n.value) {
574
+ if (W.show) {
575
+ const k = n.value.offsetWidth / n.value.scrollWidth;
576
+ W.sizeRaw = k * n.value.offsetWidth, W.size = k * 100, W.pos = n.value.scrollLeft / (n.value.scrollWidth - n.value.offsetWidth) * (100 - W.size), k >= 1 && (W.show = !1);
577
577
  }
578
578
  if (L.show) {
579
- const k = o.value.offsetHeight / o.value.scrollHeight;
580
- L.sizeRaw = k * o.value.offsetHeight, L.size = k * 100, L.pos = o.value.scrollTop / (o.value.scrollHeight - o.value.offsetHeight) * (100 - L.size), k >= 1 && (L.show = !1);
579
+ const k = n.value.offsetHeight / n.value.scrollHeight;
580
+ L.sizeRaw = k * n.value.offsetHeight, L.size = k * 100, L.pos = n.value.scrollTop / (n.value.scrollHeight - n.value.offsetHeight) * (100 - L.size), k >= 1 && (L.show = !1);
581
581
  }
582
- d("scroll", o.value.scrollLeft, o.value.scrollTop);
582
+ d("scroll", n.value.scrollLeft, n.value.scrollTop);
583
583
  }
584
584
  }
585
- function p(k = !1) {
586
- if (!o.value)
585
+ function g(k = !1) {
586
+ if (!n.value)
587
587
  return;
588
- let U = u.value, M = _.value;
589
- const ce = U && (D !== o.value.scrollWidth || H !== o.value.offsetWidth), ye = _ && (h !== o.value.scrollHeight || R !== o.value.offsetHeight);
588
+ let U = u.value, O = S.value;
589
+ const ce = U && (D !== n.value.scrollWidth || V !== n.value.offsetWidth), ye = S && (p !== n.value.scrollHeight || H !== n.value.offsetHeight);
590
590
  if (!k && !ce && !ye)
591
591
  return;
592
- const de = window.getComputedStyle(o.value);
593
- (de.overflow === "hidden" || de.overflowX === "hidden") && (U = !1), (de.overflow === "hidden" || de.overflowY === "hidden") && (M = !1), I.show = U, L.show = M, c(), H = o.value.offsetWidth, R = o.value.offsetHeight, D = o.value.scrollWidth, h = o.value.scrollHeight, d("resized", D, h);
592
+ const de = window.getComputedStyle(n.value);
593
+ (de.overflow === "hidden" || de.overflowX === "hidden") && (U = !1), (de.overflow === "hidden" || de.overflowY === "hidden") && (O = !1), W.show = U, L.show = O, c(), V = n.value.offsetWidth, H = n.value.offsetHeight, D = n.value.scrollWidth, p = n.value.scrollHeight, d("resized", D, p);
594
594
  }
595
595
  function j(k) {
596
596
  var U;
597
- e.scroll == "horizontal" && (k.deltaMode == 0 && ((U = o.value) == null || U.scrollTo({
598
- left: o.value.scrollLeft + (k.deltaY > 0 ? Vt : -140),
597
+ e.scroll == "horizontal" && (k.deltaMode == 0 && ((U = n.value) == null || U.scrollTo({
598
+ left: n.value.scrollLeft + (k.deltaY > 0 ? Vt : -140),
599
599
  behavior: "smooth"
600
600
  })), k.preventDefault(), k.stopPropagation());
601
601
  }
602
- function S(k) {
602
+ function _(k) {
603
603
  var U;
604
- k.deltaMode == 0 && ((U = o.value) == null || U.scrollTo({
605
- left: o.value.scrollLeft + (k.deltaY > 0 ? Vt : -140),
604
+ k.deltaMode == 0 && ((U = n.value) == null || U.scrollTo({
605
+ left: n.value.scrollLeft + (k.deltaY > 0 ? Vt : -140),
606
606
  behavior: "smooth"
607
607
  }), k.preventDefault(), k.stopPropagation());
608
608
  }
609
- function T(k) {
609
+ function B(k) {
610
610
  var U;
611
- k.deltaMode == 0 && ((U = o.value) == null || U.scrollTo({
612
- top: o.value.scrollTop + (k.deltaY > 0 ? Il : -70),
611
+ k.deltaMode == 0 && ((U = n.value) == null || U.scrollTo({
612
+ top: n.value.scrollTop + (k.deltaY > 0 ? Il : -70),
613
613
  behavior: "smooth"
614
614
  }), k.preventDefault(), k.stopPropagation());
615
615
  }
616
- let O = 0, C = 0, Y = 0, B = 0;
617
- const f = kt({
616
+ let R = 0, C = 0, Y = 0, T = 0;
617
+ const f = _t({
618
618
  onDown(k) {
619
- return !n.value || !a.value ? !1 : (O = k.offsetX, C = k.x - k.offsetX - a.value.offsetLeft, k.preventDefault(), y.value = !0, !0);
619
+ return !l.value || !a.value ? !1 : (R = k.offsetX, C = k.x - k.offsetX - a.value.offsetLeft, k.preventDefault(), m.value = !0, !0);
620
620
  },
621
- onMove(k, U, M) {
622
- o.value && n.value && (F(M.x - O - C), M.preventDefault(), M.stopPropagation());
621
+ onMove(k, U, O) {
622
+ n.value && l.value && (F(O.x - R - C), O.preventDefault(), O.stopPropagation());
623
623
  },
624
624
  onUp() {
625
- y.value = !1;
625
+ m.value = !1;
626
626
  }
627
- }), m = kt({
627
+ }), y = _t({
628
628
  onDown(k) {
629
- return !i.value || !g.value ? !1 : (Y = k.offsetY, B = k.y - k.offsetY - g.value.offsetTop, k.preventDefault(), y.value = !0, !0);
629
+ return !i.value || !h.value ? !1 : (Y = k.offsetY, T = k.y - k.offsetY - h.value.offsetTop, k.preventDefault(), m.value = !0, !0);
630
630
  },
631
- onMove(k, U, M) {
632
- o.value && i.value && (X(M.y - Y - B), M.preventDefault(), M.stopPropagation());
631
+ onMove(k, U, O) {
632
+ n.value && i.value && (X(O.y - Y - T), O.preventDefault(), O.stopPropagation());
633
633
  },
634
634
  onUp() {
635
- y.value = !1;
635
+ m.value = !1;
636
636
  }
637
637
  });
638
- function x(k) {
639
- o.value && (o.value.scrollLeft = k / 100 * (o.value.scrollWidth - o.value.offsetWidth));
638
+ function w(k) {
639
+ n.value && (n.value.scrollLeft = k / 100 * (n.value.scrollWidth - n.value.offsetWidth));
640
640
  }
641
641
  function z(k) {
642
- o.value && (o.value.scrollLeft = k / 100 * (o.value.scrollHeight - o.value.offsetHeight));
642
+ n.value && (n.value.scrollLeft = k / 100 * (n.value.scrollHeight - n.value.offsetHeight));
643
643
  }
644
644
  function F(k) {
645
- o.value && (o.value.scrollLeft = k / (o.value.offsetWidth - I.sizeRaw) * (o.value.scrollWidth - o.value.offsetWidth));
645
+ n.value && (n.value.scrollLeft = k / (n.value.offsetWidth - W.sizeRaw) * (n.value.scrollWidth - n.value.offsetWidth));
646
646
  }
647
647
  function X(k) {
648
- o.value && (o.value.scrollTop = k / (o.value.offsetHeight - L.sizeRaw) * (o.value.scrollHeight - o.value.offsetHeight));
648
+ n.value && (n.value.scrollTop = k / (n.value.offsetHeight - L.sizeRaw) * (n.value.scrollHeight - n.value.offsetHeight));
649
649
  }
650
- function V(k) {
651
- e.scrollBarBackgroundClickable && F(k.offsetX - I.sizeRaw / 2);
650
+ function M(k) {
651
+ e.scrollBarBackgroundClickable && F(k.offsetX - W.sizeRaw / 2);
652
652
  }
653
- function ae(k) {
653
+ function se(k) {
654
654
  e.scrollBarBackgroundClickable && X(k.offsetY - L.sizeRaw / 2);
655
655
  }
656
656
  const {
657
657
  startResizeChecker: xe,
658
658
  stopResizeChecker: N
659
659
  } = Ml(
660
- o,
661
- () => p(),
662
- () => p()
660
+ n,
661
+ () => g(),
662
+ () => g()
663
663
  );
664
664
  return q(() => {
665
665
  Se(() => {
666
- setTimeout(() => p(!0), 200), p(!0), xe(), W = new MutationObserver(() => p()), W.observe(o.value, v);
666
+ setTimeout(() => g(!0), 200), g(!0), xe(), I = new MutationObserver(() => g()), I.observe(n.value, v);
667
667
  });
668
668
  }), Z(() => {
669
- N(), W && (W.disconnect(), W = null);
669
+ N(), I && (I.disconnect(), I = null);
670
670
  }), s({
671
671
  refreshScrollState() {
672
- p(!0);
672
+ g(!0);
673
673
  },
674
674
  getScrollContainer() {
675
- return o.value;
675
+ return n.value;
676
676
  },
677
677
  scrollTo(k, U) {
678
- var M;
679
- (M = o.value) == null || M.scrollTo(k, U);
678
+ var O;
679
+ (O = n.value) == null || O.scrollTo(k, U);
680
680
  },
681
681
  scrollToTop() {
682
682
  var k;
683
- (k = o.value) == null || k.scrollTo(0, 0);
683
+ (k = n.value) == null || k.scrollTo(0, 0);
684
684
  },
685
685
  scrollToBottom() {
686
686
  var k;
687
- (k = o.value) == null || k.scrollTo(o.value.scrollWidth, o.value.scrollHeight);
687
+ (k = n.value) == null || k.scrollTo(n.value.scrollWidth, n.value.scrollHeight);
688
688
  }
689
689
  }), (k, U) => (P(), K("div", {
690
690
  ref_key: "scrollrect",
691
- ref: l,
692
- class: Te([
691
+ ref: o,
692
+ class: Be([
693
693
  "vue-scroll-rect",
694
694
  t.scrollBarAlwaysShow ? "always-show-scrollbar" : "",
695
695
  t.scrollBarBackgroundClickable ? "background-clickable" : "",
696
- y.value ? "dragging" : ""
696
+ m.value ? "dragging" : ""
697
697
  ]),
698
- style: Be({
698
+ style: Re({
699
699
  width: t.width ? `${t.width}px` : void 0,
700
700
  height: t.height ? `${t.height}px` : void 0
701
701
  }),
702
702
  onWheel: j
703
703
  }, [
704
- re("div", {
704
+ ue("div", {
705
705
  ref_key: "container",
706
- ref: o,
707
- class: Te(["scroll-content", t.scroll, t.containerClass]),
708
- style: Be({
706
+ ref: n,
707
+ class: Be(["scroll-content", t.scroll, t.containerClass]),
708
+ style: Re({
709
709
  maxWidth: t.maxWidth ? `${t.maxWidth}px` : void 0,
710
710
  maxHeight: t.maxHeight ? `${t.maxHeight}px` : void 0,
711
711
  ...t.containerStyle
@@ -714,29 +714,29 @@ const Vt = 140, Il = 70, Ol = /* @__PURE__ */ De({
714
714
  }, [
715
715
  Ce(k.$slots, "default")
716
716
  ], 38),
717
- I.show ? Ce(k.$slots, "scrollBarX", {
717
+ W.show ? Ce(k.$slots, "scrollBarX", {
718
718
  key: 0,
719
- scrollBarValue: I,
720
- onScroll: x
719
+ scrollBarValue: W,
720
+ onScroll: w
721
721
  }, () => [
722
- re("div", {
722
+ ue("div", {
723
723
  ref_key: "scrollBarRefX",
724
- ref: n,
724
+ ref: l,
725
725
  class: "scrollbar horizontal",
726
- onClick: V,
727
- onWheel: S
726
+ onClick: M,
727
+ onWheel: _
728
728
  }, [
729
- re("div", {
729
+ ue("div", {
730
730
  class: "thumb",
731
731
  ref_key: "scrollBarThumbRefX",
732
732
  ref: a,
733
- style: Be({ left: `${I.pos}%`, width: `${I.size}%` }),
733
+ style: Re({ left: `${W.pos}%`, width: `${W.size}%` }),
734
734
  onMousedown: U[0] || (U[0] = //@ts-ignore
735
- (...M) => E(f) && E(f)(...M)),
736
- onWheel: S
735
+ (...O) => E(f) && E(f)(...O)),
736
+ onWheel: _
737
737
  }, null, 36)
738
738
  ], 544)
739
- ]) : ue("", !0),
739
+ ]) : ie("", !0),
740
740
  L.show ? Ce(k.$slots, "scrollBarY", {
741
741
  key: 1,
742
742
  scrollBarValue: L,
@@ -747,20 +747,20 @@ const Vt = 140, Il = 70, Ol = /* @__PURE__ */ De({
747
747
  ref_key: "scrollBarRefY",
748
748
  ref: i,
749
749
  class: "scrollbar vertical",
750
- onClick: ae,
751
- onWheel: T
750
+ onClick: se,
751
+ onWheel: B
752
752
  }, [
753
- re("div", {
753
+ ue("div", {
754
754
  class: "thumb",
755
755
  ref_key: "scrollBarThumbRefY",
756
- ref: g,
757
- style: Be({ top: `${L.pos}%`, height: `${L.size}%` }),
756
+ ref: h,
757
+ style: Re({ top: `${L.pos}%`, height: `${L.size}%` }),
758
758
  onMousedown: U[1] || (U[1] = //@ts-ignore
759
- (...M) => E(m) && E(m)(...M)),
760
- onWheel: T
759
+ (...O) => E(y) && E(y)(...O)),
760
+ onWheel: B
761
761
  }, null, 36)
762
- ], 544)) : ue("", !0)
763
- ]) : ue("", !0)
762
+ ], 544)) : ie("", !0)
763
+ ]) : ie("", !0)
764
764
  ], 38));
765
765
  }
766
766
  }), dt = (t, s) => {
@@ -772,21 +772,21 @@ const Vt = 140, Il = 70, Ol = /* @__PURE__ */ De({
772
772
  class: "mx-checked-mark",
773
773
  "aria-hidden": "true",
774
774
  viewBox: "0 0 1024 1024"
775
- }, Hl = /* @__PURE__ */ re("path", { d: "M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z" }, null, -1), Rl = [
775
+ }, Hl = /* @__PURE__ */ ue("path", { d: "M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z" }, null, -1), Rl = [
776
776
  Hl
777
777
  ];
778
778
  function Ll(t, s) {
779
779
  return P(), K("svg", Dl, Rl);
780
780
  }
781
- const Pl = /* @__PURE__ */ dt(Wl, [["render", Ll]]), jl = {}, Bl = {
781
+ const Pl = /* @__PURE__ */ dt(Wl, [["render", Ll]]), jl = {}, Tl = {
782
782
  class: "mx-right-arrow",
783
783
  "aria-hidden": "true",
784
784
  viewBox: "0 0 1024 1024"
785
- }, Tl = /* @__PURE__ */ re("path", { d: "M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z" }, null, -1), Al = [
786
- Tl
785
+ }, Bl = /* @__PURE__ */ ue("path", { d: "M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z" }, null, -1), Al = [
786
+ Bl
787
787
  ];
788
788
  function Fl(t, s) {
789
- return P(), K("svg", Bl, Al);
789
+ return P(), K("svg", Tl, Al);
790
790
  }
791
791
  const El = /* @__PURE__ */ dt(jl, [["render", Fl]]), zl = { class: "mx-item-row" }, Nl = ["xlink:href"], Kl = {
792
792
  key: 1,
@@ -926,183 +926,183 @@ const El = /* @__PURE__ */ dt(jl, [["render", Fl]]), zl = { class: "mx-item-row"
926
926
  ],
927
927
  setup(t, { expose: s, emit: r }) {
928
928
  const e = t, d = r, {
929
- clickHandler: o,
930
- clickClose: l,
931
- clickableWhenHasChildren: n,
929
+ clickHandler: n,
930
+ clickClose: o,
931
+ clickableWhenHasChildren: l,
932
932
  disabled: i,
933
933
  hidden: a,
934
- label: g,
935
- icon: y,
934
+ label: h,
935
+ icon: m,
936
936
  iconFontClass: u,
937
- showRightArrow: _,
938
- shortcut: I,
937
+ showRightArrow: S,
938
+ shortcut: W,
939
939
  hasChildren: L
940
- } = Ae(e), D = b(!1), h = b(!1), H = b(), R = me("globalOptions"), W = me("globalHasSlot"), v = me("globalRenderSlot"), c = me("globalCloseMenu"), p = me("menuContext"), j = w(() => typeof g.value == "string" ? g.value : typeof g.value == "function" ? wl(g.value.toString()) : "MenuItem[unknow]");
940
+ } = Ae(e), D = b(!1), p = b(!1), V = b(), H = me("globalOptions"), I = me("globalHasSlot"), v = me("globalRenderSlot"), c = me("globalCloseMenu"), g = me("menuContext"), j = x(() => typeof h.value == "string" ? h.value : typeof h.value == "function" ? wl(h.value.toString()) : "MenuItem[unknow]");
941
941
  we("MenuItemName", j);
942
- const S = {
942
+ const _ = {
943
943
  getSubMenuInstance: () => {
944
944
  },
945
- showSubMenu: () => D.value ? (p.markActiveMenuItem(S, !0), !0) : L.value ? (O(), !0) : !1,
945
+ showSubMenu: () => D.value ? (g.markActiveMenuItem(_, !0), !0) : L.value ? (R(), !0) : !1,
946
946
  hideSubMenu: () => {
947
- p.closeOtherSubMenu();
947
+ g.closeOtherSubMenu();
948
948
  },
949
949
  isDisabledOrHidden: () => i.value || a.value,
950
- getElement: () => H.value,
951
- focus: () => h.value = !0,
952
- blur: () => h.value = !1,
953
- click: T
950
+ getElement: () => V.value,
951
+ focus: () => p.value = !0,
952
+ blur: () => p.value = !1,
953
+ click: B
954
954
  };
955
- we("menuItemInstance", S), q(() => {
956
- p.isMenuItemDataCollectedFlag() ? Se(() => {
957
- let B = 0;
958
- const f = p.getElement();
955
+ we("menuItemInstance", _), q(() => {
956
+ g.isMenuItemDataCollectedFlag() ? Se(() => {
957
+ let T = 0;
958
+ const f = g.getElement();
959
959
  if (f) {
960
- let m = 0;
961
- for (let x = 0; x < f.children.length; x++) {
962
- const z = f.children[x];
960
+ let y = 0;
961
+ for (let w = 0; w < f.children.length; w++) {
962
+ const z = f.children[w];
963
963
  if (z.getAttribute("data-type") === "ContextMenuItem") {
964
- if (z === H.value) {
965
- B = m;
964
+ if (z === V.value) {
965
+ T = y;
966
966
  break;
967
967
  }
968
- m++;
968
+ y++;
969
969
  }
970
970
  }
971
971
  }
972
- p.addChildMenuItem(S, B);
973
- }) : p.addChildMenuItem(S);
972
+ g.addChildMenuItem(_, T);
973
+ }) : g.addChildMenuItem(_);
974
974
  }), Z(() => {
975
- p.removeChildMenuItem(S);
975
+ g.removeChildMenuItem(_);
976
976
  });
977
- function T(B) {
977
+ function B(T) {
978
978
  if (!i.value) {
979
- if (B) {
980
- const f = B.target;
981
- if (f.classList.contains("mx-context-no-clickable") || R.value.ignoreClickClassName && f.classList.contains(R.value.ignoreClickClassName))
979
+ if (T) {
980
+ const f = T.target;
981
+ if (f.classList.contains("mx-context-no-clickable") || H.value.ignoreClickClassName && f.classList.contains(H.value.ignoreClickClassName))
982
982
  return;
983
- if (R.value.clickCloseClassName && f.classList.contains(R.value.clickCloseClassName)) {
984
- B.stopPropagation(), c(e.rawMenuItem);
983
+ if (H.value.clickCloseClassName && f.classList.contains(H.value.clickCloseClassName)) {
984
+ T.stopPropagation(), c(e.rawMenuItem);
985
985
  return;
986
986
  }
987
987
  }
988
- L.value ? n.value ? (typeof o.value == "function" && o.value(B), d("click", B)) : D.value || O() : (typeof o.value == "function" && o.value(B), d("click", B), l.value && c(e.rawMenuItem));
988
+ L.value ? l.value ? (typeof n.value == "function" && n.value(T), d("click", T)) : D.value || R() : (typeof n.value == "function" && n.value(T), d("click", T), o.value && c(e.rawMenuItem));
989
989
  }
990
990
  }
991
- function O(B) {
992
- h.value = !1, p.checkCloseOtherSubMenuTimeOut() || p.closeOtherSubMenu(), i.value || (p.markActiveMenuItem(S), L.value && (B || p.markThisOpenedByKeyBoard(), p.addOpenedSubMenu(C), D.value = !0, Se(() => d("subMenuOpen", S))));
991
+ function R(T) {
992
+ p.value = !1, g.checkCloseOtherSubMenuTimeOut() || g.closeOtherSubMenu(), i.value || (g.markActiveMenuItem(_), L.value && (T || g.markThisOpenedByKeyBoard(), g.addOpenedSubMenu(C), D.value = !0, Se(() => d("subMenuOpen", _))));
993
993
  }
994
994
  function C() {
995
- h.value = !1, D.value = !1, d("subMenuClose", S);
995
+ p.value = !1, D.value = !1, d("subMenuClose", _);
996
996
  }
997
997
  function Y() {
998
998
  return {
999
999
  disabled: i.value,
1000
- label: g.value,
1001
- icon: y.value,
1000
+ label: h.value,
1001
+ icon: m.value,
1002
1002
  iconFontClass: u.value,
1003
- showRightArrow: _.value,
1004
- clickClose: l.value,
1005
- clickableWhenHasChildren: n.value,
1006
- shortcut: I.value,
1007
- theme: R.value.theme,
1003
+ showRightArrow: S.value,
1004
+ clickClose: o.value,
1005
+ clickableWhenHasChildren: l.value,
1006
+ shortcut: W.value,
1007
+ theme: H.value.theme,
1008
1008
  isOpen: D,
1009
1009
  hasChildren: L,
1010
- onClick: T,
1011
- onMouseEnter: O,
1010
+ onClick: B,
1011
+ onMouseEnter: R,
1012
1012
  closeMenu: c
1013
1013
  };
1014
1014
  }
1015
- return s(S), (B, f) => E(a) ? ue("", !0) : (P(), K("div", {
1015
+ return s(_), (T, f) => E(a) ? ie("", !0) : (P(), K("div", {
1016
1016
  key: 0,
1017
1017
  class: "mx-context-menu-item-wrapper",
1018
1018
  ref_key: "menuItemRef",
1019
- ref: H,
1019
+ ref: V,
1020
1020
  "data-type": "ContextMenuItem"
1021
1021
  }, [
1022
- E(W)("itemRender") ? (P(), ve(E(ke), {
1022
+ E(I)("itemRender") ? (P(), ve(E(_e), {
1023
1023
  key: 0,
1024
1024
  vnode: () => E(v)("itemRender", Y())
1025
- }, null, 8, ["vnode"])) : t.customRender ? (P(), ve(E(ke), {
1025
+ }, null, 8, ["vnode"])) : t.customRender ? (P(), ve(E(_e), {
1026
1026
  key: 1,
1027
1027
  vnode: t.customRender,
1028
1028
  data: Y()
1029
1029
  }, null, 8, ["vnode", "data"])) : (P(), K("div", {
1030
1030
  key: 2,
1031
- class: Te([
1031
+ class: Be([
1032
1032
  "mx-context-menu-item",
1033
1033
  E(i) ? "disabled" : "",
1034
- h.value ? "keyboard-focus" : "",
1034
+ p.value ? "keyboard-focus" : "",
1035
1035
  t.customClass ? " " + t.customClass : "",
1036
1036
  D.value ? "open" : ""
1037
1037
  ]),
1038
- onClick: T,
1039
- onMouseenter: O
1038
+ onClick: B,
1039
+ onMouseenter: R
1040
1040
  }, [
1041
- Ce(B.$slots, "default", {}, () => [
1042
- re("div", zl, [
1043
- re("div", {
1044
- class: Te([
1041
+ Ce(T.$slots, "default", {}, () => [
1042
+ ue("div", zl, [
1043
+ ue("div", {
1044
+ class: Be([
1045
1045
  "mx-icon-placeholder",
1046
1046
  t.preserveIconWidth ? "preserve-width" : ""
1047
1047
  ])
1048
1048
  }, [
1049
- Ce(B.$slots, "icon", {}, () => [
1050
- E(W)("itemIconRender") ? (P(), ve(E(ke), {
1049
+ Ce(T.$slots, "icon", {}, () => [
1050
+ E(I)("itemIconRender") ? (P(), ve(E(_e), {
1051
1051
  key: 0,
1052
1052
  vnode: () => E(v)("itemIconRender", Y())
1053
1053
  }, null, 8, ["vnode"])) : typeof t.svgIcon == "string" && t.svgIcon ? (P(), K("svg", ut({
1054
1054
  key: 1,
1055
1055
  class: "icon svg"
1056
1056
  }, t.svgProps), [
1057
- re("use", { "xlink:href": t.svgIcon }, null, 8, Nl)
1058
- ], 16)) : typeof E(y) != "string" ? (P(), ve(E(ke), {
1057
+ ue("use", { "xlink:href": t.svgIcon }, null, 8, Nl)
1058
+ ], 16)) : typeof E(m) != "string" ? (P(), ve(E(_e), {
1059
1059
  key: 2,
1060
- vnode: E(y),
1061
- data: E(y)
1062
- }, null, 8, ["vnode", "data"])) : typeof E(y) == "string" && E(y) !== "" ? (P(), K("i", {
1060
+ vnode: E(m),
1061
+ data: E(m)
1062
+ }, null, 8, ["vnode", "data"])) : typeof E(m) == "string" && E(m) !== "" ? (P(), K("i", {
1063
1063
  key: 3,
1064
- class: Te(E(y) + " icon " + E(u) + " " + E(R).iconFontClass)
1065
- }, null, 2)) : ue("", !0)
1064
+ class: Be(E(m) + " icon " + E(u) + " " + E(H).iconFontClass)
1065
+ }, null, 2)) : ie("", !0)
1066
1066
  ]),
1067
- t.checked ? Ce(B.$slots, "check", { key: 0 }, () => [
1068
- E(W)("itemCheckRender") ? (P(), ve(E(ke), {
1067
+ t.checked ? Ce(T.$slots, "check", { key: 0 }, () => [
1068
+ E(I)("itemCheckRender") ? (P(), ve(E(_e), {
1069
1069
  key: 0,
1070
1070
  vnode: () => E(v)("itemCheckRender", Y())
1071
- }, null, 8, ["vnode"])) : ue("", !0),
1071
+ }, null, 8, ["vnode"])) : ie("", !0),
1072
1072
  Ve(Pl)
1073
- ]) : ue("", !0)
1073
+ ]) : ie("", !0)
1074
1074
  ], 2),
1075
- Ce(B.$slots, "label", {}, () => [
1076
- E(W)("itemLabelRender") ? (P(), ve(E(ke), {
1075
+ Ce(T.$slots, "label", {}, () => [
1076
+ E(I)("itemLabelRender") ? (P(), ve(E(_e), {
1077
1077
  key: 0,
1078
1078
  vnode: () => E(v)("itemLabelRender", Y())
1079
- }, null, 8, ["vnode"])) : typeof E(g) == "string" ? (P(), K("span", Kl, Ie(E(g)), 1)) : (P(), ve(E(ke), {
1079
+ }, null, 8, ["vnode"])) : typeof E(h) == "string" ? (P(), K("span", Kl, Ie(E(h)), 1)) : (P(), ve(E(_e), {
1080
1080
  key: 2,
1081
- vnode: E(g),
1082
- data: E(g)
1081
+ vnode: E(h),
1082
+ data: E(h)
1083
1083
  }, null, 8, ["vnode", "data"]))
1084
1084
  ])
1085
1085
  ]),
1086
- re("div", Gl, [
1087
- E(I) || B.$slots.shortcut ? Ce(B.$slots, "shortcut", { key: 0 }, () => [
1088
- E(W)("itemShortcutRender") ? (P(), ve(E(ke), {
1086
+ ue("div", Gl, [
1087
+ E(W) || T.$slots.shortcut ? Ce(T.$slots, "shortcut", { key: 0 }, () => [
1088
+ E(I)("itemShortcutRender") ? (P(), ve(E(_e), {
1089
1089
  key: 0,
1090
1090
  vnode: () => E(v)("itemShortcutRender", Y())
1091
- }, null, 8, ["vnode"])) : ue("", !0),
1092
- re("span", Ul, Ie(E(I)), 1)
1093
- ]) : ue("", !0),
1094
- E(_) ? Ce(B.$slots, "rightArrow", { key: 1 }, () => [
1095
- E(W)("itemRightArrowRender") ? (P(), ve(E(ke), {
1091
+ }, null, 8, ["vnode"])) : ie("", !0),
1092
+ ue("span", Ul, Ie(E(W)), 1)
1093
+ ]) : ie("", !0),
1094
+ E(S) ? Ce(T.$slots, "rightArrow", { key: 1 }, () => [
1095
+ E(I)("itemRightArrowRender") ? (P(), ve(E(_e), {
1096
1096
  key: 0,
1097
1097
  vnode: () => E(v)("itemRightArrowRender", Y())
1098
- }, null, 8, ["vnode"])) : ue("", !0),
1098
+ }, null, 8, ["vnode"])) : ie("", !0),
1099
1099
  Ve(El)
1100
- ]) : ue("", !0)
1100
+ ]) : ie("", !0)
1101
1101
  ])
1102
1102
  ])
1103
1103
  ], 34)),
1104
- Ce(B.$slots, "submenu", {
1105
- context: S,
1104
+ Ce(T.$slots, "submenu", {
1105
+ context: _,
1106
1106
  show: D.value
1107
1107
  })
1108
1108
  ], 512));
@@ -1110,7 +1110,7 @@ const El = /* @__PURE__ */ dt(jl, [["render", Fl]]), zl = { class: "mx-item-row"
1110
1110
  }), Xl = De({
1111
1111
  name: "ContextMenuSperator",
1112
1112
  components: {
1113
- VNodeRender: ke
1113
+ VNodeRender: _e
1114
1114
  },
1115
1115
  setup() {
1116
1116
  const t = me("globalHasSlot"), s = me("globalRenderSlot");
@@ -1123,9 +1123,9 @@ const El = /* @__PURE__ */ dt(jl, [["render", Fl]]), zl = { class: "mx-item-row"
1123
1123
  key: 1,
1124
1124
  class: "mx-context-menu-item-sperator mx-context-no-clickable"
1125
1125
  };
1126
- function ql(t, s, r, e, d, o) {
1127
- const l = Ye("VNodeRender");
1128
- return t.globalHasSlot("separatorRender") ? (P(), ve(l, {
1126
+ function ql(t, s, r, e, d, n) {
1127
+ const o = Ye("VNodeRender");
1128
+ return t.globalHasSlot("separatorRender") ? (P(), ve(o, {
1129
1129
  key: 0,
1130
1130
  vnode: () => t.globalRenderSlot("separatorRender", {})
1131
1131
  }, null, 8, ["vnode"])) : (P(), K("div", Yl));
@@ -1190,28 +1190,28 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1190
1190
  },
1191
1191
  emits: ["closeAnimFinished"],
1192
1192
  setup(t, { expose: s, emit: r }) {
1193
- const e = t, d = r, o = b(!1), l = me("globalGetMenuHostId", ""), n = me("menuContext"), i = me("globalOptions");
1193
+ const e = t, d = r, n = b(!1), o = me("globalGetMenuHostId", ""), l = me("menuContext"), i = me("globalOptions");
1194
1194
  me("globalHasSlot"), me("globalRenderSlot");
1195
- const a = b("UnknowOrRoot"), g = me("MenuItemName", a), { zIndex: y, getParentWidth: u, getParentHeight: _, getZoom: I } = n, { adjustPosition: L } = Ae(e), D = b(), h = b(), H = b(), R = [], W = me("globalSetCurrentSubMenu"), v = [];
1196
- let c = null, p = 0;
1195
+ const a = b("UnknowOrRoot"), h = me("MenuItemName", a), { zIndex: m, getParentWidth: u, getParentHeight: S, getZoom: W } = l, { adjustPosition: L } = Ae(e), D = b(), p = b(), V = b(), H = [], I = me("globalSetCurrentSubMenu"), v = [];
1196
+ let c = null, g = 0;
1197
1197
  function j() {
1198
1198
  c && c.blur();
1199
1199
  }
1200
- function S(N, k) {
1200
+ function _(N, k) {
1201
1201
  if (N) {
1202
1202
  for (let U = k !== void 0 ? k : 0; U < v.length; U++)
1203
1203
  if (!v[U].isDisabledOrHidden()) {
1204
- T(U);
1204
+ B(U);
1205
1205
  break;
1206
1206
  }
1207
1207
  } else
1208
1208
  for (let U = k !== void 0 ? k : v.length - 1; U >= 0; U--)
1209
1209
  if (!v[U].isDisabledOrHidden()) {
1210
- T(U);
1210
+ B(U);
1211
1211
  break;
1212
1212
  }
1213
1213
  }
1214
- function T(N) {
1214
+ function B(N) {
1215
1215
  if (c && j(), N !== void 0 && (c = v[Math.max(0, Math.min(N, v.length - 1))]), !c)
1216
1216
  return;
1217
1217
  c.focus();
@@ -1222,13 +1222,13 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1222
1222
  inline: "nearest"
1223
1223
  });
1224
1224
  }
1225
- function O() {
1226
- W(C);
1225
+ function R() {
1226
+ I(C);
1227
1227
  }
1228
1228
  const C = {
1229
- el: H,
1230
- name: g,
1231
- isTopLevel: () => n.getParentContext() === null,
1229
+ el: V,
1230
+ name: h,
1231
+ isTopLevel: () => l.getParentContext() === null,
1232
1232
  closeSelfAndActiveParent: () => {
1233
1233
  const N = f.getParentContext();
1234
1234
  if (N) {
@@ -1243,41 +1243,41 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1243
1243
  var N;
1244
1244
  return (N = f.getParentContext()) == null ? void 0 : N.closeOtherSubMenu();
1245
1245
  },
1246
- moveCurrentItemFirst: () => S(!0),
1247
- moveCurrentItemLast: () => S(!1),
1248
- moveCurrentItemDown: () => S(!0, c ? v.indexOf(c) + 1 : 0),
1249
- moveCurrentItemUp: () => S(!1, c ? v.indexOf(c) - 1 : 0),
1250
- focusCurrentItem: () => T(),
1246
+ moveCurrentItemFirst: () => _(!0),
1247
+ moveCurrentItemLast: () => _(!1),
1248
+ moveCurrentItemDown: () => _(!0, c ? v.indexOf(c) + 1 : 0),
1249
+ moveCurrentItemUp: () => _(!1, c ? v.indexOf(c) - 1 : 0),
1250
+ focusCurrentItem: () => B(),
1251
1251
  openCurrentItemSubMenu: () => c ? c?.showSubMenu() : !1,
1252
1252
  triggerCurrentItemClick: (N) => c?.click(N)
1253
1253
  };
1254
- let Y = !1, B = !1;
1254
+ let Y = !1, T = !1;
1255
1255
  const f = {
1256
- zIndex: y + 1,
1257
- container: n.container,
1258
- adjustPadding: i.value.adjustPadding || _e.defaultAdjustPadding,
1256
+ zIndex: m + 1,
1257
+ container: l.container,
1258
+ adjustPadding: i.value.adjustPadding || ke.defaultAdjustPadding,
1259
1259
  getParentWidth: () => {
1260
1260
  var N;
1261
- return ((N = H.value) == null ? void 0 : N.offsetWidth) || 0;
1261
+ return ((N = V.value) == null ? void 0 : N.offsetWidth) || 0;
1262
1262
  },
1263
1263
  getParentHeight: () => {
1264
1264
  var N;
1265
- return ((N = H.value) == null ? void 0 : N.offsetHeight) || 0;
1265
+ return ((N = V.value) == null ? void 0 : N.offsetHeight) || 0;
1266
1266
  },
1267
- getPositon: () => [V.value.x, V.value.y],
1268
- getZoom: () => i.value.zoom || _e.defaultZoom,
1267
+ getPositon: () => [M.value.x, M.value.y],
1268
+ getZoom: () => i.value.zoom || ke.defaultZoom,
1269
1269
  addOpenedSubMenu(N) {
1270
- R.push(N);
1270
+ H.push(N);
1271
1271
  },
1272
1272
  closeOtherSubMenu() {
1273
- R.forEach((N) => N()), R.splice(0, R.length), W(C);
1273
+ H.forEach((N) => N()), H.splice(0, H.length), I(C);
1274
1274
  },
1275
1275
  checkCloseOtherSubMenuTimeOut() {
1276
- return p ? (clearTimeout(p), p = 0, !0) : !1;
1276
+ return g ? (clearTimeout(g), g = 0, !0) : !1;
1277
1277
  },
1278
1278
  closeOtherSubMenuWithTimeOut() {
1279
- p = setTimeout(() => {
1280
- p = 0, this.closeOtherSubMenu();
1279
+ g = setTimeout(() => {
1280
+ g = 0, this.closeOtherSubMenu();
1281
1281
  }, 200);
1282
1282
  },
1283
1283
  addChildMenuItem: (N, k) => {
@@ -1288,26 +1288,26 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1288
1288
  };
1289
1289
  },
1290
1290
  markActiveMenuItem: (N, k = !1) => {
1291
- j(), c = N, k && T();
1291
+ j(), c = N, k && B();
1292
1292
  },
1293
1293
  markThisOpenedByKeyBoard: () => {
1294
1294
  Y = !0;
1295
1295
  },
1296
1296
  isOpenedByKeyBoardFlag: () => Y ? (Y = !1, !0) : !1,
1297
- isMenuItemDataCollectedFlag: () => B,
1298
- getElement: () => H.value || null,
1299
- getParentContext: () => n,
1297
+ isMenuItemDataCollectedFlag: () => T,
1298
+ getElement: () => V.value || null,
1299
+ getParentContext: () => l,
1300
1300
  getSubMenuInstanceContext: () => C
1301
1301
  };
1302
1302
  we("menuContext", f);
1303
- const m = {
1303
+ const y = {
1304
1304
  getChildItem: (N) => v[N],
1305
- getMenuDimensions: () => h.value ? {
1306
- width: h.value.offsetWidth,
1307
- height: h.value.offsetHeight
1305
+ getMenuDimensions: () => p.value ? {
1306
+ width: p.value.offsetWidth,
1307
+ height: p.value.offsetHeight
1308
1308
  } : { width: 0, height: 0 },
1309
- getSubmenuRoot: () => h.value,
1310
- getMenu: () => H.value,
1309
+ getSubmenuRoot: () => p.value,
1310
+ getMenu: () => V.value,
1311
1311
  getScrollValue: () => {
1312
1312
  var N, k;
1313
1313
  return ((k = (N = D.value) == null ? void 0 : N.getScrollContainer()) == null ? void 0 : k.scrollTop) || 0;
@@ -1318,40 +1318,40 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1318
1318
  },
1319
1319
  getScrollHeight: () => z.value,
1320
1320
  adjustPosition: () => {
1321
- ae();
1321
+ se();
1322
1322
  },
1323
1323
  getMaxHeight: () => F.value,
1324
- getPosition: () => V.value,
1324
+ getPosition: () => M.value,
1325
1325
  setPosition: (N, k) => {
1326
- V.value.x = N, V.value.y = k;
1326
+ M.value.x = N, M.value.y = k;
1327
1327
  }
1328
- }, x = me("menuItemInstance", void 0);
1329
- x && (x.getSubMenuInstance = () => m);
1330
- const z = b(0), F = b(0), X = b(!1), V = b({ x: 0, y: 0 });
1331
- function ae() {
1328
+ }, w = me("menuItemInstance", void 0);
1329
+ w && (w.getSubMenuInstance = () => y);
1330
+ const z = b(0), F = b(0), X = b(!1), M = b({ x: 0, y: 0 });
1331
+ function se() {
1332
1332
  Se(() => {
1333
- const N = H.value, k = h.value;
1333
+ const N = V.value, k = p.value;
1334
1334
  if (N && k && D.value) {
1335
- const { container: U } = n, M = u?.() ?? 0, ce = _?.() ?? 0, ye = getComputedStyle(k), de = parseFloat(ye.paddingLeft), He = parseFloat(ye.paddingTop), Le = ce > 0 ? He : 0, qe = document.documentElement.scrollHeight / I(), Ze = document.documentElement.scrollWidth / I(), Qe = Math.min(Ze, U.offsetWidth), lt = Math.min(qe, U.offsetHeight);
1336
- let Pe = Ge(N, U), G = Ke(N, U);
1337
- e.direction.includes("l") ? V.value.x -= N.offsetWidth + de : e.direction.includes("r") ? V.value.x += M + de : (V.value.x += M / 2, V.value.x -= (N.offsetWidth + de) / 2), e.direction.includes("t") ? V.value.y -= (N.offsetHeight + He * 2) / I() : e.direction.includes("b") ? V.value.y -= He / I() : V.value.y -= (N.offsetHeight + He) / 2 / I(), Se(() => {
1338
- var ne, fe;
1339
- Pe = Ge(N, U), G = Ke(N, U);
1340
- const pe = ((fe = (ne = D.value) == null ? void 0 : ne.getScrollContainer()) == null ? void 0 : fe.scrollHeight) || 0, je = e.maxHeight;
1341
- z.value = e.maxHeight ? Math.min(pe, e.maxHeight) : pe;
1342
- const ot = Pe + N.offsetWidth - Qe, ht = G + z.value + Le * 2 - lt;
1343
- if (X.value = ht > 0, L.value && ot > 0) {
1344
- const Fe = M + N.offsetWidth - de, Ee = Pe;
1345
- Fe > Ee ? V.value.x -= Ee : V.value.x -= Fe;
1335
+ const { container: U } = l, O = u?.() ?? 0, ce = S?.() ?? 0, ye = getComputedStyle(k), de = parseFloat(ye.paddingLeft), He = parseFloat(ye.paddingTop), Pe = ce > 0 ? He : 0, qe = document.documentElement.scrollHeight / W(), Ze = document.documentElement.scrollWidth / W(), Qe = Math.min(Ze, U.offsetWidth), lt = Math.min(qe, U.offsetHeight);
1336
+ let je = Ge(N, U), G = Ke(N, U);
1337
+ e.direction.includes("l") ? M.value.x -= N.offsetWidth + de : e.direction.includes("r") ? M.value.x += O + de : (M.value.x += O / 2, M.value.x -= (N.offsetWidth + de) / 2), e.direction.includes("t") ? M.value.y -= (N.offsetHeight + He * 2) / W() : e.direction.includes("b") ? M.value.y -= He / W() : M.value.y -= (N.offsetHeight + He) / 2 / W(), Se(() => {
1338
+ var ae, fe;
1339
+ je = Ge(N, U), G = Ke(N, U);
1340
+ const he = ((fe = (ae = D.value) == null ? void 0 : ae.getScrollContainer()) == null ? void 0 : fe.scrollHeight) || 0, Te = e.maxHeight;
1341
+ z.value = e.maxHeight ? Math.min(he, e.maxHeight) : he;
1342
+ const ot = je + N.offsetWidth - Qe, pt = G + z.value + Pe * 2 - lt;
1343
+ if (X.value = pt > 0, L.value && ot > 0) {
1344
+ const Fe = O + N.offsetWidth - de, Ee = je;
1345
+ Fe > Ee ? M.value.x -= Ee : M.value.x -= Fe;
1346
1346
  }
1347
1347
  if (X.value) {
1348
1348
  if (L.value) {
1349
- const Fe = ht, Ee = G;
1350
- Fe > Ee ? V.value.y -= Ee - Le : V.value.y -= Fe - Le;
1349
+ const Fe = pt, Ee = G;
1350
+ Fe > Ee ? M.value.y -= Ee - Pe : M.value.y -= Fe - Pe;
1351
1351
  }
1352
- F.value = lt - (V.value.y + He);
1352
+ F.value = lt - (M.value.y + He);
1353
1353
  } else
1354
- F.value = je || 0;
1354
+ F.value = Te || 0;
1355
1355
  });
1356
1356
  }
1357
1357
  });
@@ -1360,40 +1360,40 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1360
1360
  var N;
1361
1361
  const k = (N = e.parentMenuItemContext) == null ? void 0 : N.getElement();
1362
1362
  if (k) {
1363
- const U = Ge(k, n.container), M = Ke(k, n.container);
1364
- V.value.x = U, V.value.y = M;
1363
+ const U = Ge(k, l.container), O = Ke(k, l.container);
1364
+ M.value.x = U, M.value.y = O;
1365
1365
  } else {
1366
- const [U, M] = n.getPositon();
1367
- V.value.x = U, V.value.y = M;
1366
+ const [U, O] = l.getPositon();
1367
+ M.value.x = U, M.value.y = O;
1368
1368
  }
1369
1369
  Se(() => {
1370
1370
  var U;
1371
- W(C), (U = H.value) == null || U.focus({ preventScroll: !0 }), n.isOpenedByKeyBoardFlag() && Se(() => S(!0)), B = !0;
1372
- }), ae();
1371
+ I(C), (U = V.value) == null || U.focus({ preventScroll: !0 }), l.isOpenedByKeyBoardFlag() && Se(() => _(!0)), T = !0;
1372
+ }), se();
1373
1373
  }
1374
1374
  return A(() => e.show, (N) => {
1375
1375
  N && xe();
1376
1376
  }), q(() => {
1377
- o.value = !0, e.show ? xe() : ae();
1377
+ n.value = !0, e.show ? xe() : se();
1378
1378
  }), Z(() => {
1379
- o.value = !1, x && (x.getSubMenuInstance = () => {
1379
+ n.value = !1, w && (w.getSubMenuInstance = () => {
1380
1380
  });
1381
- }), s(m), (N, k) => {
1381
+ }), s(y), (N, k) => {
1382
1382
  const U = Ye("ContextSubMenu", !0);
1383
- return o.value ? (P(), ve(It, {
1383
+ return n.value ? (P(), ve(It, {
1384
1384
  key: 0,
1385
- to: `#${E(l)}`
1385
+ to: `#${E(o)}`
1386
1386
  }, [
1387
- Ve(Bt, ut({ appear: "" }, E(i).menuTransitionProps || {
1387
+ Ve(Tt, ut({ appear: "" }, E(i).menuTransitionProps || {
1388
1388
  duration: 10
1389
1389
  }, {
1390
- onAfterLeave: k[0] || (k[0] = (M) => d("closeAnimFinished"))
1390
+ onAfterLeave: k[0] || (k[0] = (O) => d("closeAnimFinished"))
1391
1391
  }), {
1392
- default: Re(() => [
1392
+ default: Le(() => [
1393
1393
  t.show ? (P(), K("div", ut({
1394
1394
  key: 0,
1395
1395
  ref_key: "submenuRoot",
1396
- ref: h
1396
+ ref: p
1397
1397
  }, N.$attrs, {
1398
1398
  class: [
1399
1399
  "mx-context-menu",
@@ -1401,14 +1401,14 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1401
1401
  E(i).theme ?? ""
1402
1402
  ],
1403
1403
  style: {
1404
- maxWidth: t.maxWidth ? E(xt)(t.maxWidth) : `${E(_e).defaultMaxWidth}px`,
1405
- minWidth: t.minWidth ? E(xt)(t.minWidth) : `${E(_e).defaultMinWidth}px`,
1406
- zIndex: E(y),
1407
- left: `${V.value.x}px`,
1408
- top: `${V.value.y}px`
1404
+ maxWidth: t.maxWidth ? E(xt)(t.maxWidth) : `${E(ke).defaultMaxWidth}px`,
1405
+ minWidth: t.minWidth ? E(xt)(t.minWidth) : `${E(ke).defaultMinWidth}px`,
1406
+ zIndex: E(m),
1407
+ left: `${M.value.x}px`,
1408
+ top: `${M.value.y}px`
1409
1409
  },
1410
1410
  "data-type": "ContextSubMenu",
1411
- onClick: O
1411
+ onClick: R
1412
1412
  }), [
1413
1413
  Ve(E(Ol), {
1414
1414
  ref_key: "scrollRectRef",
@@ -1417,73 +1417,73 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1417
1417
  maxHeight: F.value,
1418
1418
  containerClass: "mx-context-menu-scroll"
1419
1419
  }, {
1420
- default: Re(() => [
1421
- re("div", {
1422
- class: Te(["mx-context-menu-items"]),
1420
+ default: Le(() => [
1421
+ ue("div", {
1422
+ class: Be(["mx-context-menu-items"]),
1423
1423
  ref_key: "menu",
1424
- ref: H
1424
+ ref: V
1425
1425
  }, [
1426
1426
  Ce(N.$slots, "default", {}, () => [
1427
- (P(!0), K(at, null, ct(t.items, (M, ce) => (P(), K(at, { key: ce }, [
1428
- M.hidden !== !0 && M.divided === "up" ? (P(), ve(Ue, { key: 0 })) : ue("", !0),
1429
- M.hidden !== !0 && M.divided === "self" ? (P(), ve(Ue, { key: 1 })) : (P(), ve(ft, {
1427
+ (P(!0), K(at, null, ct(t.items, (O, ce) => (P(), K(at, { key: ce }, [
1428
+ O.hidden !== !0 && O.divided === "up" ? (P(), ve(Ue, { key: 0 })) : ie("", !0),
1429
+ O.hidden !== !0 && O.divided === "self" ? (P(), ve(Ue, { key: 1 })) : (P(), ve(ft, {
1430
1430
  key: 2,
1431
- clickHandler: M.onClick ? (ye) => M.onClick(ye) : void 0,
1432
- disabled: typeof M.disabled == "object" ? M.disabled.value : M.disabled,
1433
- hidden: typeof M.hidden == "object" ? M.hidden.value : M.hidden,
1434
- icon: M.icon,
1435
- iconFontClass: M.iconFontClass,
1436
- svgIcon: M.svgIcon,
1437
- svgProps: M.svgProps,
1438
- label: M.label,
1439
- customRender: M.customRender,
1440
- customClass: M.customClass,
1441
- checked: typeof M.checked == "object" ? M.checked.value : M.checked,
1442
- shortcut: M.shortcut,
1443
- clickClose: M.clickClose,
1444
- clickableWhenHasChildren: M.clickableWhenHasChildren,
1445
- preserveIconWidth: M.preserveIconWidth !== void 0 ? M.preserveIconWidth : E(i).preserveIconWidth,
1446
- showRightArrow: M.children && M.children.length > 0,
1447
- hasChildren: M.children && M.children.length > 0,
1448
- rawMenuItem: M,
1431
+ clickHandler: O.onClick ? (ye) => O.onClick(ye) : void 0,
1432
+ disabled: typeof O.disabled == "object" ? O.disabled.value : O.disabled,
1433
+ hidden: typeof O.hidden == "object" ? O.hidden.value : O.hidden,
1434
+ icon: O.icon,
1435
+ iconFontClass: O.iconFontClass,
1436
+ svgIcon: O.svgIcon,
1437
+ svgProps: O.svgProps,
1438
+ label: O.label,
1439
+ customRender: O.customRender,
1440
+ customClass: O.customClass,
1441
+ checked: typeof O.checked == "object" ? O.checked.value : O.checked,
1442
+ shortcut: O.shortcut,
1443
+ clickClose: O.clickClose,
1444
+ clickableWhenHasChildren: O.clickableWhenHasChildren,
1445
+ preserveIconWidth: O.preserveIconWidth !== void 0 ? O.preserveIconWidth : E(i).preserveIconWidth,
1446
+ showRightArrow: O.children && O.children.length > 0,
1447
+ hasChildren: O.children && O.children.length > 0,
1448
+ rawMenuItem: O,
1449
1449
  onSubMenuOpen: (ye) => {
1450
1450
  var de;
1451
- return (de = M.onSubMenuOpen) == null ? void 0 : de.call(M, ye);
1451
+ return (de = O.onSubMenuOpen) == null ? void 0 : de.call(O, ye);
1452
1452
  },
1453
1453
  onSubMenuClose: (ye) => {
1454
1454
  var de;
1455
- return (de = M.onSubMenuClose) == null ? void 0 : de.call(M, ye);
1455
+ return (de = O.onSubMenuClose) == null ? void 0 : de.call(O, ye);
1456
1456
  }
1457
1457
  }, Ot({ _: 2 }, [
1458
- M.children && M.children.length > 0 ? {
1458
+ O.children && O.children.length > 0 ? {
1459
1459
  name: "submenu",
1460
- fn: Re(({ context: ye, show: de }) => [
1460
+ fn: Le(({ context: ye, show: de }) => [
1461
1461
  Ve(U, {
1462
1462
  show: de,
1463
1463
  parentMenuItemContext: ye,
1464
- items: M.children,
1465
- maxWidth: M.maxWidth,
1466
- minWidth: M.minWidth,
1467
- maxHeight: M.maxHeight,
1468
- adjustPosition: M.adjustSubMenuPosition !== void 0 ? M.adjustSubMenuPosition : E(i).adjustPosition,
1469
- direction: M.direction !== void 0 ? M.direction : E(i).direction
1464
+ items: O.children,
1465
+ maxWidth: O.maxWidth,
1466
+ minWidth: O.minWidth,
1467
+ maxHeight: O.maxHeight,
1468
+ adjustPosition: O.adjustSubMenuPosition !== void 0 ? O.adjustSubMenuPosition : E(i).adjustPosition,
1469
+ direction: O.direction !== void 0 ? O.direction : E(i).direction
1470
1470
  }, null, 8, ["show", "parentMenuItemContext", "items", "maxWidth", "minWidth", "maxHeight", "adjustPosition", "direction"])
1471
1471
  ]),
1472
1472
  key: "0"
1473
1473
  } : void 0
1474
1474
  ]), 1032, ["clickHandler", "disabled", "hidden", "icon", "iconFontClass", "svgIcon", "svgProps", "label", "customRender", "customClass", "checked", "shortcut", "clickClose", "clickableWhenHasChildren", "preserveIconWidth", "showRightArrow", "hasChildren", "rawMenuItem", "onSubMenuOpen", "onSubMenuClose"])),
1475
- M.hidden !== !0 && (M.divided === "down" || M.divided === !0) ? (P(), ve(Ue, { key: 3 })) : ue("", !0)
1475
+ O.hidden !== !0 && (O.divided === "down" || O.divided === !0) ? (P(), ve(Ue, { key: 3 })) : ie("", !0)
1476
1476
  ], 64))), 128))
1477
1477
  ])
1478
1478
  ], 512)
1479
1479
  ]),
1480
1480
  _: 3
1481
1481
  }, 8, ["maxHeight"])
1482
- ], 16)) : ue("", !0)
1482
+ ], 16)) : ie("", !0)
1483
1483
  ]),
1484
1484
  _: 3
1485
1485
  }, 16)
1486
- ], 8, ["to"])) : ue("", !0);
1486
+ ], 8, ["to"])) : ie("", !0);
1487
1487
  };
1488
1488
  }
1489
1489
  }), Pt = /* @__PURE__ */ De({
@@ -1520,8 +1520,8 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1520
1520
  },
1521
1521
  emits: ["close", "closeAnimFinished"],
1522
1522
  setup(t, { expose: s, emit: r }) {
1523
- const e = t, d = r, o = Wt(), l = b(), {
1524
- options: n,
1523
+ const e = t, d = r, n = Wt(), o = b(), {
1524
+ options: l,
1525
1525
  show: i,
1526
1526
  container: a
1527
1527
  } = Ae(e);
@@ -1530,95 +1530,95 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1530
1530
  }), Z(() => {
1531
1531
  D();
1532
1532
  }), A(i, (c) => {
1533
- c ? u() : (bt(g), D());
1533
+ c ? u() : (bt(h), D());
1534
1534
  });
1535
- const g = {
1536
- closeMenu: _,
1537
- isClosed: I,
1538
- getMenuRef: () => l.value,
1535
+ const h = {
1536
+ closeMenu: S,
1537
+ isClosed: W,
1538
+ getMenuRef: () => o.value,
1539
1539
  getMenuDimensions: () => {
1540
1540
  var c;
1541
- return ((c = l.value) == null ? void 0 : c.getMenuDimensions()) ?? { width: 0, height: 0 };
1541
+ return ((c = o.value) == null ? void 0 : c.getMenuDimensions()) ?? { width: 0, height: 0 };
1542
1542
  }
1543
1543
  };
1544
- let y = !1;
1544
+ let m = !1;
1545
1545
  function u() {
1546
- L(), yl(g);
1546
+ L(), yl(h);
1547
1547
  }
1548
- function _(c) {
1549
- y = !0, d("close", c), n.value.menuTransitionProps || d("closeAnimFinished"), bt(g);
1548
+ function S(c) {
1549
+ m = !0, d("close", c), l.value.menuTransitionProps || d("closeAnimFinished"), bt(h);
1550
1550
  }
1551
- function I() {
1552
- return y;
1551
+ function W() {
1552
+ return m;
1553
1553
  }
1554
1554
  function L() {
1555
1555
  setTimeout(() => {
1556
- document.addEventListener("click", W, !0), document.addEventListener("contextmenu", W, !0), document.addEventListener("scroll", R, !0), !e.isFullScreenContainer && a.value && a.value.addEventListener("scroll", R, !0), n.value.keyboardControl !== !1 && document.addEventListener("keydown", H, !0);
1556
+ document.addEventListener("click", I, !0), document.addEventListener("contextmenu", I, !0), document.addEventListener("scroll", H, !0), !e.isFullScreenContainer && a.value && a.value.addEventListener("scroll", H, !0), l.value.keyboardControl !== !1 && document.addEventListener("keydown", V, !0);
1557
1557
  }, 50);
1558
1558
  }
1559
1559
  function D() {
1560
- document.removeEventListener("contextmenu", W, !0), document.removeEventListener("click", W, !0), document.removeEventListener("scroll", R, !0), !e.isFullScreenContainer && a.value && a.value.removeEventListener("scroll", R, !0), n.value.keyboardControl !== !1 && document.removeEventListener("keydown", H, !0);
1560
+ document.removeEventListener("contextmenu", I, !0), document.removeEventListener("click", I, !0), document.removeEventListener("scroll", H, !0), !e.isFullScreenContainer && a.value && a.value.removeEventListener("scroll", H, !0), l.value.keyboardControl !== !1 && document.removeEventListener("keydown", V, !0);
1561
1561
  }
1562
- const h = b();
1563
- we("globalSetCurrentSubMenu", (c) => h.value = c), we("globalGetMenuHostId", a.value.id);
1564
- function H(c) {
1565
- var p, j, S, T, O, C, Y, B, f, m, x, z, F;
1562
+ const p = b();
1563
+ we("globalSetCurrentSubMenu", (c) => p.value = c), we("globalGetMenuHostId", a.value.id);
1564
+ function V(c) {
1565
+ var g, j, _, B, R, C, Y, T, f, y, w, z, F;
1566
1566
  let X = !0;
1567
1567
  switch (c.key) {
1568
1568
  case "Escape": {
1569
- ((p = h.value) == null ? void 0 : p.isTopLevel()) === !1 ? (j = h.value) == null || j.closeCurrentSubMenu() : _();
1569
+ ((g = p.value) == null ? void 0 : g.isTopLevel()) === !1 ? (j = p.value) == null || j.closeCurrentSubMenu() : S();
1570
1570
  break;
1571
1571
  }
1572
1572
  case "ArrowDown":
1573
- (S = h.value) == null || S.moveCurrentItemDown();
1573
+ (_ = p.value) == null || _.moveCurrentItemDown();
1574
1574
  break;
1575
1575
  case "ArrowUp":
1576
- (T = h.value) == null || T.moveCurrentItemUp();
1576
+ (B = p.value) == null || B.moveCurrentItemUp();
1577
1577
  break;
1578
1578
  case "Home":
1579
- (O = h.value) == null || O.moveCurrentItemFirst();
1579
+ (R = p.value) == null || R.moveCurrentItemFirst();
1580
1580
  break;
1581
1581
  case "End":
1582
- (C = h.value) == null || C.moveCurrentItemLast();
1582
+ (C = p.value) == null || C.moveCurrentItemLast();
1583
1583
  break;
1584
1584
  case "ArrowLeft": {
1585
- (Y = h.value) != null && Y.closeSelfAndActiveParent() || (f = (B = n.value).onKeyFocusMoveLeft) == null || f.call(B);
1585
+ (Y = p.value) != null && Y.closeSelfAndActiveParent() || (f = (T = l.value).onKeyFocusMoveLeft) == null || f.call(T);
1586
1586
  break;
1587
1587
  }
1588
1588
  case "ArrowRight":
1589
- (m = h.value) != null && m.openCurrentItemSubMenu() || (z = (x = n.value).onKeyFocusMoveRight) == null || z.call(x);
1589
+ (y = p.value) != null && y.openCurrentItemSubMenu() || (z = (w = l.value).onKeyFocusMoveRight) == null || z.call(w);
1590
1590
  break;
1591
1591
  case "Enter":
1592
- (F = h.value) == null || F.triggerCurrentItemClick(c);
1592
+ (F = p.value) == null || F.triggerCurrentItemClick(c);
1593
1593
  break;
1594
1594
  default:
1595
1595
  X = !1;
1596
1596
  break;
1597
1597
  }
1598
- X && h.value && (c.stopPropagation(), c.preventDefault());
1598
+ X && p.value && (c.stopPropagation(), c.preventDefault());
1599
1599
  }
1600
- function R(c) {
1601
- n.value.closeWhenScroll !== !1 && v(c.target, null);
1600
+ function H(c) {
1601
+ l.value.closeWhenScroll !== !1 && v(c.target, null);
1602
1602
  }
1603
- function W(c) {
1603
+ function I(c) {
1604
1604
  v(c.target, c);
1605
1605
  }
1606
- function v(c, p) {
1607
- for (var j, S; c; ) {
1606
+ function v(c, g) {
1607
+ for (var j, _; c; ) {
1608
1608
  if (c.classList && c.classList.contains("mx-context-menu"))
1609
1609
  return;
1610
1610
  c = c.parentNode;
1611
1611
  }
1612
- p ? n.value.clickCloseOnOutside !== !1 ? (D(), _()) : (S = (j = n.value).onClickOnOutside) == null || S.call(j, p) : (D(), _());
1612
+ g ? l.value.clickCloseOnOutside !== !1 ? (D(), S()) : (_ = (j = l.value).onClickOnOutside) == null || _.call(j, g) : (D(), S());
1613
1613
  }
1614
- return we("globalOptions", n), we("globalCloseMenu", _), we("globalIsFullScreenContainer", e.isFullScreenContainer), we("globalHasSlot", (c) => o[c] !== void 0), we("globalRenderSlot", (c, p) => Ce(o, c, { ...p }, () => [Je("span", "Render slot failed")], !1)), we("menuContext", {
1615
- zIndex: n.value.zIndex || _e.defaultZindex,
1614
+ return we("globalOptions", l), we("globalCloseMenu", S), we("globalIsFullScreenContainer", e.isFullScreenContainer), we("globalHasSlot", (c) => n[c] !== void 0), we("globalRenderSlot", (c, g) => Ce(n, c, { ...g }, () => [Je("span", "Render slot failed")], !1)), we("menuContext", {
1615
+ zIndex: l.value.zIndex || ke.defaultZindex,
1616
1616
  container: a.value,
1617
1617
  adjustPadding: { x: 0, y: 0 },
1618
- getZoom: () => n.value.zoom || _e.defaultZoom,
1618
+ getZoom: () => l.value.zoom || ke.defaultZoom,
1619
1619
  getParentWidth: () => 0,
1620
1620
  getParentHeight: () => 0,
1621
- getPositon: () => [n.value.x, n.value.y],
1621
+ getPositon: () => [l.value.x, l.value.y],
1622
1622
  closeOtherSubMenuWithTimeOut: () => {
1623
1623
  },
1624
1624
  checkCloseOtherSubMenuTimeOut: () => !1,
@@ -1639,19 +1639,19 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1639
1639
  },
1640
1640
  isOpenedByKeyBoardFlag: () => !1,
1641
1641
  isMenuItemDataCollectedFlag: () => !1
1642
- }), s(g), (c, p) => (P(), ve(vt, {
1642
+ }), s(h), (c, g) => (P(), ve(vt, {
1643
1643
  ref_key: "submenuInstance",
1644
- ref: l,
1644
+ ref: o,
1645
1645
  show: E(i),
1646
- items: E(n).items,
1647
- adjustPosition: E(n).adjustPosition,
1648
- maxWidth: E(n).maxWidth || E(_e).defaultMaxWidth,
1649
- minWidth: E(n).minWidth || E(_e).defaultMinWidth,
1650
- maxHeight: E(n).maxHeight,
1651
- direction: E(n).direction || E(_e).defaultDirection,
1652
- onCloseAnimFinished: p[0] || (p[0] = (j) => d("closeAnimFinished"))
1646
+ items: E(l).items,
1647
+ adjustPosition: E(l).adjustPosition,
1648
+ maxWidth: E(l).maxWidth || E(ke).defaultMaxWidth,
1649
+ minWidth: E(l).minWidth || E(ke).defaultMinWidth,
1650
+ maxHeight: E(l).maxHeight,
1651
+ direction: E(l).direction || E(ke).defaultDirection,
1652
+ onCloseAnimFinished: g[0] || (g[0] = (j) => d("closeAnimFinished"))
1653
1653
  }, {
1654
- default: Re(() => [
1654
+ default: Le(() => [
1655
1655
  Ce(c.$slots, "default")
1656
1656
  ]),
1657
1657
  _: 3
@@ -1677,38 +1677,38 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1677
1677
  },
1678
1678
  emits: ["update:show", "close"],
1679
1679
  setup(t, { expose: s, emit: r }) {
1680
- const e = r, d = t, { options: o, show: l } = Ae(d), { isNew: n, container: i, eleId: a } = Lt(o.value), g = b(null), y = Wt();
1681
- function u(_) {
1682
- var I, L;
1683
- e("update:show", !1), e("close"), (L = (I = o.value).onClose) == null || L.call(I, _);
1680
+ const e = r, d = t, { options: n, show: o } = Ae(d), { isNew: l, container: i, eleId: a } = Lt(n.value), h = b(null), m = Wt();
1681
+ function u(S) {
1682
+ var W, L;
1683
+ e("update:show", !1), e("close"), (L = (W = n.value).onClose) == null || L.call(W, S);
1684
1684
  }
1685
1685
  return s({
1686
1686
  closeMenu: () => e("update:show", !1),
1687
- isClosed: () => !l.value,
1687
+ isClosed: () => !o.value,
1688
1688
  getMenuRef: () => {
1689
- var _;
1690
- return (_ = g.value) == null ? void 0 : _.getMenuRef();
1689
+ var S;
1690
+ return (S = h.value) == null ? void 0 : S.getMenuRef();
1691
1691
  },
1692
1692
  getMenuDimensions: () => {
1693
- var _;
1694
- return ((_ = g.value) == null ? void 0 : _.getMenuDimensions()) ?? { width: 0, height: 0 };
1693
+ var S;
1694
+ return ((S = h.value) == null ? void 0 : S.getMenuDimensions()) ?? { width: 0, height: 0 };
1695
1695
  }
1696
- }), (_, I) => (P(), ve(It, {
1696
+ }), (S, W) => (P(), ve(It, {
1697
1697
  to: `#${E(a)}`
1698
1698
  }, [
1699
1699
  Ve(Pt, {
1700
1700
  ref_key: "menuRef",
1701
- ref: g,
1702
- options: E(o),
1703
- show: E(l),
1701
+ ref: h,
1702
+ options: E(n),
1703
+ show: E(o),
1704
1704
  container: E(i),
1705
- isFullScreenContainer: !E(n),
1705
+ isFullScreenContainer: !E(l),
1706
1706
  onClose: u
1707
1707
  }, Ot({ _: 2 }, [
1708
- ct(E(y), (L, D) => ({
1708
+ ct(E(m), (L, D) => ({
1709
1709
  name: D,
1710
- fn: Re((h) => [
1711
- Ce(_.$slots, D, Tt(At(h)))
1710
+ fn: Le((p) => [
1711
+ Ce(S.$slots, D, Bt(At(p)))
1712
1712
  ])
1713
1713
  }))
1714
1714
  ]), 1032, ["options", "show", "container", "isFullScreenContainer"])
@@ -1852,7 +1852,7 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1852
1852
  }
1853
1853
  },
1854
1854
  setup(t, s) {
1855
- const r = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth: d, minWidth: o, maxHeight: l } = Ae(t), n = typeof e.value < "u" ? e.value : r.value.adjustPosition, i = b(), a = b();
1855
+ const r = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth: d, minWidth: n, maxHeight: o } = Ae(t), l = typeof e.value < "u" ? e.value : r.value.adjustPosition, i = b(), a = b();
1856
1856
  return s.expose({
1857
1857
  getSubMenuRef: () => i.value,
1858
1858
  getMenuItemRef: () => a.value
@@ -1867,14 +1867,14 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1867
1867
  hasChildren: typeof s.slots.default !== void 0
1868
1868
  }, s.slots.default ? {
1869
1869
  //Create SubMenu
1870
- submenu: (g) => Je(vt, {
1870
+ submenu: (h) => Je(vt, {
1871
1871
  ref: i,
1872
- show: g.show,
1872
+ show: h.show,
1873
1873
  maxWidth: d.value,
1874
- minWidth: o.value,
1875
- maxHeight: l.value,
1876
- adjustPosition: n,
1877
- parentMenuItemContext: g.context
1874
+ minWidth: n.value,
1875
+ maxHeight: o.value,
1876
+ adjustPosition: l,
1877
+ parentMenuItemContext: h.context
1878
1878
  }, {
1879
1879
  default: s.slots.default
1880
1880
  }),
@@ -1884,20 +1884,20 @@ const Ue = /* @__PURE__ */ dt(Xl, [["render", ql]]), vt = /* @__PURE__ */ De({
1884
1884
  }
1885
1885
  });
1886
1886
  function Jl(t, s, r, e) {
1887
- const d = b(!0), o = Je(Pt, {
1887
+ const d = b(!0), n = Je(Pt, {
1888
1888
  options: t,
1889
1889
  show: d,
1890
1890
  container: s,
1891
1891
  isFullScreenContainer: !r,
1892
1892
  onCloseAnimFinished: () => {
1893
- pt(null, s);
1893
+ ht(null, s);
1894
1894
  },
1895
- onClose: (l) => {
1896
- var n;
1897
- (n = t.onClose) == null || n.call(t, l), d.value = !1;
1895
+ onClose: (o) => {
1896
+ var l;
1897
+ (l = t.onClose) == null || l.call(t, o), d.value = !1;
1898
1898
  }
1899
1899
  }, e);
1900
- return pt(o, s), o.component;
1900
+ return ht(n, s), n.component;
1901
1901
  }
1902
1902
  function Mt(t, s) {
1903
1903
  const r = Lt(t);
@@ -1988,15 +1988,15 @@ const Oe = {
1988
1988
  function We() {
1989
1989
  return {
1990
1990
  processMenus: (s, r) => {
1991
- const e = (d) => d.map((o) => {
1992
- const l = { ...o };
1993
- return l.children && l.children.length > 0 ? l.children = e(l.children) : l.onClick || (l.onClick = (n) => {
1994
- if (l.disabled) {
1995
- n?.preventDefault();
1991
+ const e = (d) => d.map((n) => {
1992
+ const o = { ...n };
1993
+ return o.children && o.children.length > 0 ? o.children = e(o.children) : o.onClick || (o.onClick = (l) => {
1994
+ if (o.disabled) {
1995
+ l?.preventDefault();
1996
1996
  return;
1997
1997
  }
1998
- r(l, n);
1999
- }), l;
1998
+ r(o, l);
1999
+ }), o;
2000
2000
  });
2001
2001
  return e(s);
2002
2002
  }
@@ -2025,87 +2025,87 @@ const $l = /* @__PURE__ */ Object.assign({
2025
2025
  },
2026
2026
  setup(t, { expose: s }) {
2027
2027
  s();
2028
- const { isNotEmpty: r, isArray: e } = Q, d = t, o = se(), l = ie(o), n = b(null), i = w(() => d.propValue || {}), a = w(() => d.element || {}), g = w(() => a.value.events || []), y = b(!0), u = b(null);
2029
- let _, I = null, L = !0, D = !1;
2030
- const h = l[i.value.urlCK], H = w(() => r(i.value.url) ? i.value.url : r(i.value.urlCK) && h.value || "");
2028
+ const { isNotEmpty: r, isArray: e } = Q, d = t, n = ne(), o = re(n), l = b(null), i = x(() => d.propValue || {}), a = x(() => d.element || {}), h = x(() => a.value.events || []), m = b(!0), u = b(null);
2029
+ let S, W = null, L = !0, D = !1;
2030
+ const p = o[i.value.urlCK], V = x(() => r(i.value.url) ? i.value.url : r(i.value.urlCK) && p.value || "");
2031
2031
  A(
2032
2032
  () => a.value?.style?.display,
2033
- (B) => {
2034
- B ? y.value = !1 : y.value = !0;
2033
+ (T) => {
2034
+ T ? m.value = !1 : m.value = !0;
2035
2035
  }
2036
2036
  ), A(
2037
2037
  () => i.value.flipVertical,
2038
- () => W()
2038
+ () => I()
2039
2039
  ), A(
2040
2040
  () => i.value.flipHorizontal,
2041
- () => W()
2041
+ () => I()
2042
2042
  ), A(
2043
- () => H.value,
2044
- (B) => {
2045
- L = !0, _ = null, D = !1, v();
2043
+ () => V.value,
2044
+ (T) => {
2045
+ L = !0, S = null, D = !1, v();
2046
2046
  }
2047
2047
  );
2048
- const R = () => {
2049
- const { width: B, height: f } = a.value.style;
2050
- u.value.width = B, u.value.height = f, L && H.value ? (L = !1, _ = document.createElement("img"), _.onload = () => {
2051
- D = !0, I.drawImage(_, 0, 0, B, f), W();
2052
- }, _.src = H.value) : W();
2053
- }, W = () => {
2054
- const B = i.value.flipVertical, f = i.value.flipHorizontal, { width: m, height: x } = a.value.style, z = f ? -1 : 1, F = B ? -1 : 1;
2055
- I.clearRect(0, 0, m, x), D && _ && (I.translate(m / 2 - m * z / 2, x / 2 - x * F / 2), I.scale(z, F), I.drawImage(_, 0, 0, m, x), I.setTransform(1, 0, 0, 1, 0, 0));
2056
- }, v = tt(R, 500);
2057
- A([() => a.value?.style?.height, () => a.value?.style?.width], ([B, f]) => {
2058
- I && (L = !0, _ = null, D = !1, v());
2048
+ const H = () => {
2049
+ const { width: T, height: f } = a.value.style;
2050
+ u.value.width = T, u.value.height = f, L && V.value ? (L = !1, S = document.createElement("img"), S.onload = () => {
2051
+ D = !0, W.drawImage(S, 0, 0, T, f), I();
2052
+ }, S.src = V.value) : I();
2053
+ }, I = () => {
2054
+ const T = i.value.flipVertical, f = i.value.flipHorizontal, { width: y, height: w } = a.value.style, z = f ? -1 : 1, F = T ? -1 : 1;
2055
+ W.clearRect(0, 0, y, w), D && S && (W.translate(y / 2 - y * z / 2, w / 2 - w * F / 2), W.scale(z, F), W.drawImage(S, 0, 0, y, w), W.setTransform(1, 0, 0, 1, 0, 0));
2056
+ }, v = tt(H, 500);
2057
+ A([() => a.value?.style?.height, () => a.value?.style?.width], ([T, f]) => {
2058
+ W && (L = !0, S = null, D = !1, v());
2059
2059
  }, { immediate: !0 });
2060
- const c = (B) => {
2061
- n.value?.handleClick(B);
2062
- }, p = (B) => {
2063
- n.value?.handleDblClick(B);
2064
- }, j = le(), S = oe(), T = ee(i, a, j, S);
2060
+ const c = (T) => {
2061
+ l.value?.handleClick(T);
2062
+ }, g = (T) => {
2063
+ l.value?.handleDblClick(T);
2064
+ }, j = le(), _ = oe(), B = ee(i, a, j, _);
2065
2065
  J(() => {
2066
- n.value = te(g.value, d.designStatus, T), n.value?.beforeMount();
2066
+ l.value = te(h.value, d.designStatus, B), l.value?.beforeMount();
2067
2067
  }), q(() => {
2068
- I = u.value?.getContext("2d"), v(), n.value?.mounted();
2068
+ W = u.value?.getContext("2d"), v(), l.value?.mounted();
2069
2069
  }), Z(() => {
2070
- n.value?.beforeUnmount();
2070
+ l.value?.beforeUnmount();
2071
2071
  }), $(() => {
2072
- n.value?.unmounted();
2072
+ l.value?.unmounted();
2073
2073
  });
2074
- const { processMenus: O } = We(), Y = { isNotEmpty: r, isArray: e, props: d, dataCache: o, smartData: l, eventHandler: n, propValue: i, element: a, events: g, isVisible: y, canvas: u, get img() {
2075
- return _;
2076
- }, set img(B) {
2077
- _ = B;
2074
+ const { processMenus: R } = We(), Y = { isNotEmpty: r, isArray: e, props: d, dataCache: n, smartData: o, eventHandler: l, propValue: i, element: a, events: h, isVisible: m, canvas: u, get img() {
2075
+ return S;
2076
+ }, set img(T) {
2077
+ S = T;
2078
2078
  }, get ctx() {
2079
- return I;
2080
- }, set ctx(B) {
2081
- I = B;
2079
+ return W;
2080
+ }, set ctx(T) {
2081
+ W = T;
2082
2082
  }, get isFirst() {
2083
2083
  return L;
2084
- }, set isFirst(B) {
2085
- L = B;
2084
+ }, set isFirst(T) {
2085
+ L = T;
2086
2086
  }, get loadSuccess() {
2087
2087
  return D;
2088
- }, set loadSuccess(B) {
2089
- D = B;
2090
- }, urlData: h, url: H, drawImage: R, mirrorFlip: W, debouncedDraw: v, clickHandler: c, dblclickHandler: p, router: j, route: S, compContext: T, processMenus: O, openContextMenu: (B) => {
2091
- B.preventDefault();
2088
+ }, set loadSuccess(T) {
2089
+ D = T;
2090
+ }, urlData: p, url: V, drawImage: H, mirrorFlip: I, debouncedDraw: v, clickHandler: c, dblclickHandler: g, router: j, route: _, compContext: B, processMenus: R, openContextMenu: (T) => {
2091
+ T.preventDefault();
2092
2092
  let f = i.value.menuItems || [];
2093
2093
  if (e(f) && f.length > 0) {
2094
- let m = [];
2095
- m = O(f, function(x, z) {
2096
- n.value?.handleContextMenu(B, x.value);
2094
+ let y = [];
2095
+ y = R(f, function(w, z) {
2096
+ l.value?.handleContextMenu(T, w.value);
2097
2097
  }), Oe.showContextMenu({
2098
- x: B.x,
2099
- y: B.y,
2100
- items: m
2098
+ x: T.x,
2099
+ y: T.y,
2100
+ items: y
2101
2101
  });
2102
2102
  }
2103
- }, computed: w, onMounted: q, ref: b, watch: A, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
2103
+ }, computed: x, onMounted: q, ref: b, watch: A, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
2104
2104
  return te;
2105
2105
  }, get useDataCacheStore() {
2106
- return se;
2106
+ return ne;
2107
2107
  }, get createSmartAccessor() {
2108
- return ie;
2108
+ return re;
2109
2109
  }, get CreateCompContext() {
2110
2110
  return ee;
2111
2111
  }, get CommonUtils() {
@@ -2124,7 +2124,7 @@ const $l = /* @__PURE__ */ Object.assign({
2124
2124
  return Object.defineProperty(Y, "__isScriptSetup", { enumerable: !1, value: !0 }), Y;
2125
2125
  }
2126
2126
  });
2127
- function eo(t, s, r, e, d, o) {
2127
+ function eo(t, s, r, e, d, n) {
2128
2128
  return e.isVisible ? (P(), K("div", {
2129
2129
  key: 0,
2130
2130
  class: "picture-container",
@@ -2132,10 +2132,10 @@ function eo(t, s, r, e, d, o) {
2132
2132
  onDblclick: e.dblclickHandler,
2133
2133
  onContextmenu: e.openContextMenu
2134
2134
  }, [
2135
- re("canvas", { ref: "canvas" }, null, 512)
2136
- ], 32)) : ue("", !0);
2135
+ ue("canvas", { ref: "canvas" }, null, 512)
2136
+ ], 32)) : ie("", !0);
2137
2137
  }
2138
- const to = /* @__PURE__ */ he($l, [["render", eo], ["__scopeId", "data-v-b63faafe"], ["__file", "Component.vue"]]);
2138
+ const to = /* @__PURE__ */ pe($l, [["render", eo], ["__scopeId", "data-v-b63faafe"], ["__file", "Component.vue"]]);
2139
2139
  function be(t, s, r, e) {
2140
2140
  const d = Xe({
2141
2141
  dataColor: null,
@@ -2146,13 +2146,13 @@ function be(t, s, r, e) {
2146
2146
  // 线颜色
2147
2147
  fillColor: null
2148
2148
  // 填充颜色
2149
- }), o = s[t.value.colorCK], l = (i, a, g) => e.hasOwnPathInObject(i, a) ? e.getValueByPath(i, a) : g, n = (i, a) => e.isNotEmpty(a) && r ? r[a] ? r[a][i] : null : i;
2150
- return A(() => o?.value, (i) => {
2149
+ }), n = s[t.value.colorCK], o = (i, a, h) => e.hasOwnPathInObject(i, a) ? e.getValueByPath(i, a) : h, l = (i, a) => e.isNotEmpty(a) && r ? r[a] ? r[a][i] : null : i;
2150
+ return A(() => n?.value, (i) => {
2151
2151
  if (e.isObject(i) && e.isNotEmpty(t.value.colorCK)) {
2152
2152
  if (!t.value.dycFlag)
2153
2153
  return;
2154
2154
  let a;
2155
- e.isNotEmpty(t.value.fColorKey) && (a = l(i, t.value.fColorKey, null), d.dataColor = n(a, t.value.fColorRule)), e.isNotEmpty(t.value.bgColorKey) && (a = l(i, t.value.bgColorKey, null), d.backgroundColor = n(a, t.value.bgColorRule)), e.isNotEmpty(t.value.lineColorKey) && (a = l(i, t.value.lineColorKey, null), d.lineColor = n(a, t.value.lineColorRule)), e.isNotEmpty(t.value.fillColorKey) && (a = l(i, t.value.fillColorKey, null), d.fillColor = n(a, t.value.fillColorRule));
2155
+ e.isNotEmpty(t.value.fColorKey) && (a = o(i, t.value.fColorKey, null), d.dataColor = l(a, t.value.fColorRule)), e.isNotEmpty(t.value.bgColorKey) && (a = o(i, t.value.bgColorKey, null), d.backgroundColor = l(a, t.value.bgColorRule)), e.isNotEmpty(t.value.lineColorKey) && (a = o(i, t.value.lineColorKey, null), d.lineColor = l(a, t.value.lineColorRule)), e.isNotEmpty(t.value.fillColorKey) && (a = o(i, t.value.fillColorKey, null), d.fillColor = l(a, t.value.fillColorRule));
2156
2156
  }
2157
2157
  }, { immediate: !0 }), { dynamicColor: d };
2158
2158
  }
@@ -2179,36 +2179,36 @@ const lo = /* @__PURE__ */ Object.assign({
2179
2179
  },
2180
2180
  setup(t, { expose: s }) {
2181
2181
  s();
2182
- const r = t, e = se(), d = ie(e), o = b(null), l = w(() => r.propValue || {}), n = w(() => r.element || {}), i = w(() => n.value.events || []), a = le(), g = oe(), y = ee(l, n, a, g);
2182
+ const r = t, e = ne(), d = re(e), n = b(null), o = x(() => r.propValue || {}), l = x(() => r.element || {}), i = x(() => l.value.events || []), a = le(), h = oe(), m = ee(o, l, a, h);
2183
2183
  J(() => {
2184
- o.value = te(i.value, r.designStatus, y), o.value?.beforeMount();
2184
+ n.value = te(i.value, r.designStatus, m), n.value?.beforeMount();
2185
2185
  }), q(() => {
2186
- H(), o.value?.mounted();
2186
+ V(), n.value?.mounted();
2187
2187
  }), Z(() => {
2188
- o.value?.beforeUnmount();
2188
+ n.value?.beforeUnmount();
2189
2189
  }), $(() => {
2190
- o.value?.unmounted();
2190
+ n.value?.unmounted();
2191
2191
  });
2192
- const { dynamicColor: u } = be(l, d, e.rules, Q), _ = w(() => u.fillColor ? u.fillColor : l.value.fillColor ? l.value.fillColor : "none"), I = w(() => u.lineColor ? u.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), L = b(0), D = b(0), h = b(0);
2193
- A(() => n.value.style.width, (v) => {
2194
- H();
2195
- }), A(() => n.value.style.height, (v) => {
2196
- H();
2192
+ const { dynamicColor: u } = be(o, d, e.rules, Q), S = x(() => u.fillColor ? u.fillColor : o.value.fillColor ? o.value.fillColor : "none"), W = x(() => u.lineColor ? u.lineColor : o.value.strokeColor ? o.value.strokeColor : "none"), L = b(0), D = b(0), p = b(0);
2193
+ A(() => l.value.style.width, (v) => {
2194
+ V();
2195
+ }), A(() => l.value.style.height, (v) => {
2196
+ V();
2197
2197
  });
2198
- const H = () => {
2199
- const { width: v, height: c } = n.value.style;
2200
- R(v, c);
2201
- }, R = (v, c) => {
2202
- L.value = 0.5 * v, D.value = 0.5 * c, h.value = 0.45 * c;
2203
- }, W = { props: r, dataCache: e, smartData: d, eventHandler: o, propValue: l, element: n, events: i, router: a, route: g, compContext: y, dynamicColor: u, showFillColor: _, showLineColor: I, cx: L, cy: D, cr: h, draw: H, drawChart: R, get useEventHandler() {
2198
+ const V = () => {
2199
+ const { width: v, height: c } = l.value.style;
2200
+ H(v, c);
2201
+ }, H = (v, c) => {
2202
+ L.value = 0.5 * v, D.value = 0.5 * c, p.value = 0.45 * c;
2203
+ }, I = { props: r, dataCache: e, smartData: d, eventHandler: n, propValue: o, element: l, events: i, router: a, route: h, compContext: m, dynamicColor: u, showFillColor: S, showLineColor: W, cx: L, cy: D, cr: p, draw: V, drawChart: H, get useEventHandler() {
2204
2204
  return te;
2205
2205
  }, get useDataCacheStore() {
2206
- return se;
2206
+ return ne;
2207
2207
  }, get createSmartAccessor() {
2208
- return ie;
2208
+ return re;
2209
2209
  }, get CreateCompContext() {
2210
2210
  return ee;
2211
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2211
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2212
2212
  return oe;
2213
2213
  }, get useRouter() {
2214
2214
  return le;
@@ -2217,17 +2217,17 @@ const lo = /* @__PURE__ */ Object.assign({
2217
2217
  }, get CommonUtils() {
2218
2218
  return Q;
2219
2219
  } };
2220
- return Object.defineProperty(W, "__isScriptSetup", { enumerable: !1, value: !0 }), W;
2220
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
2221
2221
  }
2222
2222
  });
2223
- function oo(t, s, r, e, d, o) {
2223
+ function oo(t, s, r, e, d, n) {
2224
2224
  return P(), K("div", { class: "svg-container" }, [
2225
2225
  (P(), K("svg", {
2226
2226
  xmlns: "http://www.w3.org/2000/svg",
2227
2227
  width: e.element.style.width,
2228
2228
  height: e.element.style.height
2229
2229
  }, [
2230
- re("circle", {
2230
+ ue("circle", {
2231
2231
  cx: e.cx,
2232
2232
  cy: e.cy,
2233
2233
  r: e.cr,
@@ -2238,7 +2238,7 @@ function oo(t, s, r, e, d, o) {
2238
2238
  ], 8, ["width", "height"]))
2239
2239
  ]);
2240
2240
  }
2241
- const no = /* @__PURE__ */ he(lo, [["render", oo], ["__scopeId", "data-v-ecab498d"], ["__file", "Component.vue"]]), ro = /* @__PURE__ */ Object.assign({
2241
+ const no = /* @__PURE__ */ pe(lo, [["render", oo], ["__scopeId", "data-v-ecab498d"], ["__file", "Component.vue"]]), ro = /* @__PURE__ */ Object.assign({
2242
2242
  name: "SVGDataText"
2243
2243
  }, {
2244
2244
  __name: "Component",
@@ -2265,128 +2265,128 @@ const no = /* @__PURE__ */ he(lo, [["render", oo], ["__scopeId", "data-v-ecab498
2265
2265
  formatDate: r,
2266
2266
  getDate: e,
2267
2267
  getWeek: d,
2268
- isNotEmpty: o,
2269
- isNumber: l,
2270
- isObject: n,
2268
+ isNotEmpty: n,
2269
+ isNumber: o,
2270
+ isObject: l,
2271
2271
  isValid: i,
2272
2272
  hasOwnPathInObject: a,
2273
- getValueByPath: g
2274
- } = Q, y = t, u = w(() => y.propValue || {}), _ = w(() => y.element || {}), I = w(() => _.value.events || []), L = se(), D = ie(L), h = b(null), H = b(0), R = b(0), W = b(""), v = b(""), c = b(!1), p = b("");
2275
- let j = null, S = null;
2276
- const T = b("");
2277
- let O = null;
2278
- const C = D[u.value.dataCK], Y = D[u.value.timeCK], B = (G, ne, fe) => a(G, ne) ? g(G, ne) : fe;
2273
+ getValueByPath: h
2274
+ } = Q, m = t, u = x(() => m.propValue || {}), S = x(() => m.element || {}), W = x(() => S.value.events || []), L = ne(), D = re(L), p = b(null), V = b(0), H = b(0), I = b(""), v = b(""), c = b(!1), g = b("");
2275
+ let j = null, _ = null;
2276
+ const B = b("");
2277
+ let R = null;
2278
+ const C = D[u.value.dataCK], Y = D[u.value.timeCK], T = (G, ae, fe) => a(G, ae) ? h(G, ae) : fe;
2279
2279
  function f(G) {
2280
- n(G) ? (j = B(G, u.value.valueKey, null), S = B(G, u.value.timeKey, null)) : j = G;
2280
+ l(G) ? (j = T(G, u.value.valueKey, null), _ = T(G, u.value.timeKey, null)) : j = G;
2281
2281
  }
2282
- function m(G) {
2283
- f(G), p.value = ye(j);
2282
+ function y(G) {
2283
+ f(G), g.value = ye(j);
2284
2284
  }
2285
2285
  A(() => C.value, (G) => {
2286
- i(G) && m(G);
2286
+ i(G) && y(G);
2287
2287
  }), A(() => Y.value, (G) => {
2288
- o(u.value.timeCK) && i(G) && (o(u.value.timeKey) ? n(G) && (S = B(G, u.value.timeKey, null)) : S = G);
2288
+ n(u.value.timeCK) && i(G) && (n(u.value.timeKey) ? l(G) && (_ = T(G, u.value.timeKey, null)) : _ = G);
2289
2289
  });
2290
- const { dynamicColor: x } = be(u, D, L.rules, Q), z = w(() => x.dataColor ? x.dataColor : u.value.fontColor ? u.value.fontColor : "none"), F = w(() => x.backgroundColor ? x.backgroundColor : u.value.fillColor ? u.value.fillColor : "none"), X = (G) => {
2291
- h.value?.setParam(G);
2292
- }, V = (G) => {
2293
- h.value?.handleDblClick(G);
2290
+ const { dynamicColor: w } = be(u, D, L.rules, Q), z = x(() => w.dataColor ? w.dataColor : u.value.fontColor ? u.value.fontColor : "none"), F = x(() => w.backgroundColor ? w.backgroundColor : u.value.fillColor ? u.value.fillColor : "none"), X = (G) => {
2291
+ p.value?.setParam(G);
2292
+ }, M = (G) => {
2293
+ p.value?.handleDblClick(G);
2294
2294
  };
2295
- A(() => _.value.style.width, (G) => {
2296
- M();
2297
- }), A(() => _.value.style.height, (G) => {
2298
- M();
2295
+ A(() => S.value.style.width, (G) => {
2296
+ O();
2297
+ }), A(() => S.value.style.height, (G) => {
2298
+ O();
2299
2299
  }), A(() => u.value.horizontalAlign, (G) => {
2300
- M();
2300
+ O();
2301
2301
  }), A(() => u.value.offsetX, (G) => {
2302
- M();
2302
+ O();
2303
2303
  });
2304
- const ae = w(() => y.designStatus ? !0 : u.value.showTooltip ? !c.value : !0), xe = w(() => u.value.tooltipPlacement || "bottom-start"), N = w(() => u.value.tooltipEffect || "dark"), k = (G) => {
2305
- y.designStatus || (U(), o(T.value) ? c.value = !0 : c.value = !1);
2304
+ const se = x(() => m.designStatus ? !0 : u.value.showTooltip ? !c.value : !0), xe = x(() => u.value.tooltipPlacement || "bottom-start"), N = x(() => u.value.tooltipEffect || "dark"), k = (G) => {
2305
+ m.designStatus || (U(), n(B.value) ? c.value = !0 : c.value = !1);
2306
2306
  }, U = () => {
2307
- if (T.value = "", u.value.showTooltip && S && l(S)) {
2308
- let G = e(S), ne = "";
2307
+ if (B.value = "", u.value.showTooltip && _ && o(_)) {
2308
+ let G = e(_), ae = "";
2309
2309
  if (G) {
2310
- ne = r(G, "yyyy-MM-dd HH:mm:ss");
2311
- let fe = "数值:" + p.value, pe = "时间:" + ne;
2312
- T.value = fe + "<br/>" + pe;
2310
+ ae = r(G, "yyyy-MM-dd HH:mm:ss");
2311
+ let fe = "数值:" + g.value, he = "时间:" + ae;
2312
+ B.value = fe + "<br/>" + he;
2313
2313
  }
2314
2314
  }
2315
- }, M = () => {
2316
- const { width: G, height: ne } = y.element.style;
2317
- ce(G, ne);
2318
- }, ce = (G, ne) => {
2319
- let fe = y.propValue.horizontalAlign || "left", pe = y.propValue.offsetX || 0;
2320
- fe == "center" ? (v.value = "middle", H.value = G * 0.5) : fe == "right" ? (H.value = G - pe, v.value = "end") : (H.value = 0 + pe, v.value = "start"), W.value = "central", R.value = ne * 0.5;
2315
+ }, O = () => {
2316
+ const { width: G, height: ae } = m.element.style;
2317
+ ce(G, ae);
2318
+ }, ce = (G, ae) => {
2319
+ let fe = m.propValue.horizontalAlign || "left", he = m.propValue.offsetX || 0;
2320
+ fe == "center" ? (v.value = "middle", V.value = G * 0.5) : fe == "right" ? (V.value = G - he, v.value = "end") : (V.value = 0 + he, v.value = "start"), I.value = "central", H.value = ae * 0.5;
2321
2321
  }, ye = (G) => {
2322
- let ne = G;
2323
- if (l(G)) {
2324
- let fe = u.value.fractionDigits || 0, pe = u.value.factor;
2325
- l(pe) && (pe = Number(pe), G = Number(G) * pe), ne = de(Number(G), fe);
2322
+ let ae = G;
2323
+ if (o(G)) {
2324
+ let fe = u.value.fractionDigits || 0, he = u.value.factor;
2325
+ o(he) && (he = Number(he), G = Number(G) * he), ae = de(Number(G), fe);
2326
2326
  } else
2327
- ne + "" == "undefined" && (ne = "");
2328
- return o(u.value.unit) && (ne = ne + u.value.unit), ne;
2329
- }, de = (G, ne) => {
2327
+ ae + "" == "undefined" && (ae = "");
2328
+ return n(u.value.unit) && (ae = ae + u.value.unit), ae;
2329
+ }, de = (G, ae) => {
2330
2330
  let fe = G;
2331
2331
  if (G) {
2332
- const pe = u.value.valueType;
2333
- if (pe == 2 && Number(G))
2334
- ne && Number(ne) ? ne = parseInt(ne) : ne = 0, fe = G.toFixed(ne);
2335
- else if (pe == 3) {
2336
- let je = e(G);
2332
+ const he = u.value.valueType;
2333
+ if (he == 2 && Number(G))
2334
+ ae && Number(ae) ? ae = parseInt(ae) : ae = 0, fe = G.toFixed(ae);
2335
+ else if (he == 3) {
2336
+ let Te = e(G);
2337
2337
  const ot = u.value.dateformat || "yyyy-MM-dd";
2338
- je && (o(u.value.weekMode) ? fe = d(je, l(u.value.weekMode) ? Number(u.value.weekMode) : 0) : fe = r(je, ot));
2338
+ Te && (n(u.value.weekMode) ? fe = d(Te, o(u.value.weekMode) ? Number(u.value.weekMode) : 0) : fe = r(Te, ot));
2339
2339
  }
2340
2340
  }
2341
2341
  return fe;
2342
2342
  }, He = () => {
2343
- }, Le = le(), qe = oe(), Ze = ee(u, _, Le, qe);
2343
+ }, Pe = le(), qe = oe(), Ze = ee(u, S, Pe, qe);
2344
2344
  J(() => {
2345
- h.value = te(I.value, y.designStatus, Ze), h.value?.beforeMount();
2345
+ p.value = te(W.value, m.designStatus, Ze), p.value?.beforeMount();
2346
2346
  }), q(() => {
2347
- M(), O = setInterval(() => {
2348
- i(C.value) && m(C.value);
2349
- }, 1e3), h.value?.mounted();
2347
+ O(), R = setInterval(() => {
2348
+ i(C.value) && y(C.value);
2349
+ }, 1e3), p.value?.mounted();
2350
2350
  }), Z(() => {
2351
- h.value?.beforeUnmount();
2351
+ p.value?.beforeUnmount();
2352
2352
  }), $(() => {
2353
- h.value?.unmounted();
2353
+ p.value?.unmounted();
2354
2354
  });
2355
- const { processMenus: Qe } = We(), Pe = { formatDate: r, getDate: e, getWeek: d, isNotEmpty: o, isNumber: l, isObject: n, isValid: i, hasOwnPathInObject: a, getValueByPath: g, props: y, propValue: u, element: _, events: I, dataCache: L, smartData: D, eventHandler: h, textX: H, textY: R, textBaseLine: W, textAnchor: v, hasTooltipContent: c, showDataValue: p, get dataValue() {
2355
+ const { processMenus: Qe } = We(), je = { formatDate: r, getDate: e, getWeek: d, isNotEmpty: n, isNumber: o, isObject: l, isValid: i, hasOwnPathInObject: a, getValueByPath: h, props: m, propValue: u, element: S, events: W, dataCache: L, smartData: D, eventHandler: p, textX: V, textY: H, textBaseLine: I, textAnchor: v, hasTooltipContent: c, showDataValue: g, get dataValue() {
2356
2356
  return j;
2357
2357
  }, set dataValue(G) {
2358
2358
  j = G;
2359
2359
  }, get dataTime() {
2360
- return S;
2360
+ return _;
2361
2361
  }, set dataTime(G) {
2362
- S = G;
2363
- }, tooltipContent: T, get timer() {
2364
- return O;
2362
+ _ = G;
2363
+ }, tooltipContent: B, get timer() {
2364
+ return R;
2365
2365
  }, set timer(G) {
2366
- O = G;
2367
- }, bsData: C, timeData: Y, _getValueFromObj: B, parseBsData: f, dealBsData: m, dynamicColor: x, showFontColor: z, showBackgroundColor: F, handleClick: X, handleDblClick: V, disableToolTip: ae, tooltipPlacement: xe, tooltipEffect: N, showTooltip: k, loadTipInfo: U, draw: M, drawChart: ce, showValue: ye, dataFormatter: de, clearInterval: He, router: Le, route: qe, compContext: Ze, processMenus: Qe, openContextMenu: (G) => {
2366
+ R = G;
2367
+ }, bsData: C, timeData: Y, _getValueFromObj: T, parseBsData: f, dealBsData: y, dynamicColor: w, showFontColor: z, showBackgroundColor: F, handleClick: X, handleDblClick: M, disableToolTip: se, tooltipPlacement: xe, tooltipEffect: N, showTooltip: k, loadTipInfo: U, draw: O, drawChart: ce, showValue: ye, dataFormatter: de, clearInterval: He, router: Pe, route: qe, compContext: Ze, processMenus: Qe, openContextMenu: (G) => {
2368
2368
  G.preventDefault();
2369
- let ne = u.value.menuItems || [];
2370
- if (Q.isArray(ne) && ne.length > 0) {
2369
+ let ae = u.value.menuItems || [];
2370
+ if (Q.isArray(ae) && ae.length > 0) {
2371
2371
  let fe = [];
2372
- fe = Qe(ne, function(pe, je) {
2373
- h.value?.handleContextMenu(G, pe.value);
2372
+ fe = Qe(ae, function(he, Te) {
2373
+ p.value?.handleContextMenu(G, he.value);
2374
2374
  }), Oe.showContextMenu({
2375
2375
  x: G.x,
2376
2376
  y: G.y,
2377
2377
  items: fe
2378
2378
  });
2379
2379
  }
2380
- }, watch: A, onMounted: q, computed: w, onBeforeUnmount: Z, ref: b, onBeforeMount: J, onUnmounted: $, reactive: Xe, get useRoute() {
2380
+ }, watch: A, onMounted: q, computed: x, onBeforeUnmount: Z, ref: b, onBeforeMount: J, onUnmounted: $, reactive: Xe, get useRoute() {
2381
2381
  return oe;
2382
2382
  }, get useRouter() {
2383
2383
  return le;
2384
2384
  }, get useEventHandler() {
2385
2385
  return te;
2386
2386
  }, get useDataCacheStore() {
2387
- return se;
2387
+ return ne;
2388
2388
  }, get createSmartAccessor() {
2389
- return ie;
2389
+ return re;
2390
2390
  }, get CreateCompContext() {
2391
2391
  return ee;
2392
2392
  }, get CommonUtils() {
@@ -2398,11 +2398,11 @@ const no = /* @__PURE__ */ he(lo, [["render", oo], ["__scopeId", "data-v-ecab498
2398
2398
  }, get useMenuHandler() {
2399
2399
  return We;
2400
2400
  } };
2401
- return Object.defineProperty(Pe, "__isScriptSetup", { enumerable: !1, value: !0 }), Pe;
2401
+ return Object.defineProperty(je, "__isScriptSetup", { enumerable: !1, value: !0 }), je;
2402
2402
  }
2403
2403
  });
2404
- function ao(t, s, r, e, d, o) {
2405
- const l = Ye("el-tooltip");
2404
+ function ao(t, s, r, e, d, n) {
2405
+ const o = Ye("el-tooltip");
2406
2406
  return P(), K("div", {
2407
2407
  class: "svg-container",
2408
2408
  onClick: e.handleClick,
@@ -2410,16 +2410,16 @@ function ao(t, s, r, e, d, o) {
2410
2410
  onMouseenter: e.showTooltip,
2411
2411
  onContextmenu: e.openContextMenu
2412
2412
  }, [
2413
- Ve(l, {
2413
+ Ve(o, {
2414
2414
  class: "item",
2415
2415
  placement: e.tooltipPlacement,
2416
2416
  disabled: e.disableToolTip,
2417
2417
  effect: e.tooltipEffect
2418
2418
  }, {
2419
- content: Re(() => [
2420
- re("div", { innerHTML: e.tooltipContent }, null, 8, ["innerHTML"])
2419
+ content: Le(() => [
2420
+ ue("div", { innerHTML: e.tooltipContent }, null, 8, ["innerHTML"])
2421
2421
  ]),
2422
- default: Re(() => [
2422
+ default: Le(() => [
2423
2423
  (P(), K("svg", {
2424
2424
  xmlns: "http://www.w3.org/2000/svg",
2425
2425
  width: e.element.style.width,
@@ -2434,9 +2434,9 @@ function ao(t, s, r, e, d, o) {
2434
2434
  fill: e.showBackgroundColor,
2435
2435
  stroke: e.propValue.strokeColor,
2436
2436
  "stroke-width": e.propValue.strokeWidth
2437
- }, null, 8, ["width", "height", "fill", "stroke", "stroke-width"])) : ue("", !0),
2437
+ }, null, 8, ["width", "height", "fill", "stroke", "stroke-width"])) : ie("", !0),
2438
2438
  ge(),
2439
- re("text", {
2439
+ ue("text", {
2440
2440
  x: e.textX,
2441
2441
  y: e.textY,
2442
2442
  dx: e.propValue.dx,
@@ -2453,7 +2453,7 @@ function ao(t, s, r, e, d, o) {
2453
2453
  }, 8, ["placement", "disabled", "effect"])
2454
2454
  ], 32);
2455
2455
  }
2456
- const uo = /* @__PURE__ */ he(ro, [["render", ao], ["__scopeId", "data-v-f136e4e8"], ["__file", "Component.vue"]]), so = /* @__PURE__ */ Object.assign({
2456
+ const uo = /* @__PURE__ */ pe(ro, [["render", ao], ["__scopeId", "data-v-f136e4e8"], ["__file", "Component.vue"]]), so = /* @__PURE__ */ Object.assign({
2457
2457
  name: "SVGDateText"
2458
2458
  }, {
2459
2459
  __name: "Component",
@@ -2480,74 +2480,74 @@ const uo = /* @__PURE__ */ he(ro, [["render", ao], ["__scopeId", "data-v-f136e4e
2480
2480
  formatDate: r,
2481
2481
  getDate: e,
2482
2482
  getWeek: d,
2483
- isNotEmpty: o,
2484
- isNumber: l
2485
- } = Q, n = t, i = w(() => n.propValue || {}), a = w(() => n.element || {}), g = w(() => a.value.events || []), y = b(null), u = b(0), _ = b(0), I = b(""), L = b(""), D = b(!1), h = b("");
2486
- let H = null, R = null;
2487
- const W = b("");
2483
+ isNotEmpty: n,
2484
+ isNumber: o
2485
+ } = Q, l = t, i = x(() => l.propValue || {}), a = x(() => l.element || {}), h = x(() => a.value.events || []), m = b(null), u = b(0), S = b(0), W = b(""), L = b(""), D = b(!1), p = b("");
2486
+ let V = null, H = null;
2487
+ const I = b("");
2488
2488
  let v = null;
2489
- A(() => a.value.style.width, (x) => {
2489
+ A(() => a.value.style.width, (w) => {
2490
2490
  c();
2491
- }), A(() => a.value.style.height, (x) => {
2491
+ }), A(() => a.value.style.height, (w) => {
2492
2492
  c();
2493
- }), A(() => i.value.horizontalAlign, (x) => {
2493
+ }), A(() => i.value.horizontalAlign, (w) => {
2494
2494
  c();
2495
- }), A(() => i.value.offsetX, (x) => {
2495
+ }), A(() => i.value.offsetX, (w) => {
2496
2496
  c();
2497
2497
  });
2498
2498
  const c = () => {
2499
- const { width: x, height: z } = n.element.style;
2500
- p(x, z);
2501
- }, p = (x, z) => {
2502
- let F = n.propValue.horizontalAlign || "left", X = n.propValue.offsetX || 0;
2503
- F == "center" ? (L.value = "middle", u.value = x * 0.5) : F == "right" ? (u.value = x - X, L.value = "end") : (u.value = 0 + X, L.value = "start"), I.value = "central", _.value = z * 0.5;
2504
- }, j = (x) => {
2505
- let z = x;
2506
- return l(x) ? z = S(Number(x)) : z + "" == "undefined" && (z = ""), z;
2507
- }, S = (x) => {
2508
- let z = x;
2509
- if (x) {
2510
- let F = e(x);
2499
+ const { width: w, height: z } = l.element.style;
2500
+ g(w, z);
2501
+ }, g = (w, z) => {
2502
+ let F = l.propValue.horizontalAlign || "left", X = l.propValue.offsetX || 0;
2503
+ F == "center" ? (L.value = "middle", u.value = w * 0.5) : F == "right" ? (u.value = w - X, L.value = "end") : (u.value = 0 + X, L.value = "start"), W.value = "central", S.value = z * 0.5;
2504
+ }, j = (w) => {
2505
+ let z = w;
2506
+ return o(w) ? z = _(Number(w)) : z + "" == "undefined" && (z = ""), z;
2507
+ }, _ = (w) => {
2508
+ let z = w;
2509
+ if (w) {
2510
+ let F = e(w);
2511
2511
  const X = i.value.dateformat || "yyyy-MM-dd";
2512
- F && (o(i.value.weekMode) ? z = d(F, l(i.value.weekMode) ? Number(i.value.weekMode) : 0) : z = r(F, X));
2512
+ F && (n(i.value.weekMode) ? z = d(F, o(i.value.weekMode) ? Number(i.value.weekMode) : 0) : z = r(F, X));
2513
2513
  }
2514
2514
  return z;
2515
- }, T = () => {
2516
- }, O = (x) => {
2517
- y.value?.handleClick(x);
2518
- }, C = (x) => {
2519
- y.value?.handleDblClick(x);
2520
- }, Y = le(), B = oe(), f = ee(i, a, Y, B);
2515
+ }, B = () => {
2516
+ }, R = (w) => {
2517
+ m.value?.handleClick(w);
2518
+ }, C = (w) => {
2519
+ m.value?.handleDblClick(w);
2520
+ }, Y = le(), T = oe(), f = ee(i, a, Y, T);
2521
2521
  J(() => {
2522
- y.value = te(g.value, n.designStatus, f), y.value?.beforeMount();
2522
+ m.value = te(h.value, l.designStatus, f), m.value?.beforeMount();
2523
2523
  }), q(() => {
2524
2524
  c(), v = setInterval(() => {
2525
- let x = (/* @__PURE__ */ new Date()).getTime();
2526
- h.value = j(x);
2527
- }, 500), y.value?.mounted();
2525
+ let w = (/* @__PURE__ */ new Date()).getTime();
2526
+ p.value = j(w);
2527
+ }, 500), m.value?.mounted();
2528
2528
  }), Z(() => {
2529
- y.value?.beforeUnmount();
2529
+ m.value?.beforeUnmount();
2530
2530
  }), $(() => {
2531
- y.value?.unmounted();
2531
+ m.value?.unmounted();
2532
2532
  });
2533
- const m = { formatDate: r, getDate: e, getWeek: d, isNotEmpty: o, isNumber: l, props: n, propValue: i, element: a, events: g, eventHandler: y, textX: u, textY: _, textBaseLine: I, textAnchor: L, hasTooltipContent: D, showDataValue: h, get dataValue() {
2534
- return H;
2535
- }, set dataValue(x) {
2536
- H = x;
2533
+ const y = { formatDate: r, getDate: e, getWeek: d, isNotEmpty: n, isNumber: o, props: l, propValue: i, element: a, events: h, eventHandler: m, textX: u, textY: S, textBaseLine: W, textAnchor: L, hasTooltipContent: D, showDataValue: p, get dataValue() {
2534
+ return V;
2535
+ }, set dataValue(w) {
2536
+ V = w;
2537
2537
  }, get dataTime() {
2538
- return R;
2539
- }, set dataTime(x) {
2540
- R = x;
2541
- }, tooltipContent: W, get timer() {
2538
+ return H;
2539
+ }, set dataTime(w) {
2540
+ H = w;
2541
+ }, tooltipContent: I, get timer() {
2542
2542
  return v;
2543
- }, set timer(x) {
2544
- v = x;
2545
- }, draw: c, drawChart: p, showValue: j, dataFormatter: S, clearInterval: T, handleClick: O, handleDblClick: C, router: Y, route: B, compContext: f, watch: A, onMounted: q, computed: w, onBeforeUnmount: Z, ref: b, onBeforeMount: J, onUnmounted: $, get useEventHandler() {
2543
+ }, set timer(w) {
2544
+ v = w;
2545
+ }, draw: c, drawChart: g, showValue: j, dataFormatter: _, clearInterval: B, handleClick: R, handleDblClick: C, router: Y, route: T, compContext: f, watch: A, onMounted: q, computed: x, onBeforeUnmount: Z, ref: b, onBeforeMount: J, onUnmounted: $, get useEventHandler() {
2546
2546
  return te;
2547
2547
  }, get useDataCacheStore() {
2548
- return se;
2548
+ return ne;
2549
2549
  }, get createSmartAccessor() {
2550
- return ie;
2550
+ return re;
2551
2551
  }, get CreateCompContext() {
2552
2552
  return ee;
2553
2553
  }, get useRoute() {
@@ -2557,10 +2557,10 @@ const uo = /* @__PURE__ */ he(ro, [["render", ao], ["__scopeId", "data-v-f136e4e
2557
2557
  }, get CommonUtils() {
2558
2558
  return Q;
2559
2559
  } };
2560
- return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
2560
+ return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
2561
2561
  }
2562
2562
  });
2563
- function io(t, s, r, e, d, o) {
2563
+ function io(t, s, r, e, d, n) {
2564
2564
  return P(), K("div", {
2565
2565
  class: "svg-container",
2566
2566
  onClick: e.handleClick,
@@ -2576,9 +2576,9 @@ function io(t, s, r, e, d, o) {
2576
2576
  fill: e.propValue.fillColor ? e.propValue.fillColor : "none",
2577
2577
  stroke: e.propValue.strokeColor,
2578
2578
  "stroke-width": e.propValue.strokeWidth
2579
- }, null, 8, ["width", "height", "fill", "stroke", "stroke-width"])) : ue("", !0),
2579
+ }, null, 8, ["width", "height", "fill", "stroke", "stroke-width"])) : ie("", !0),
2580
2580
  ge(),
2581
- re("text", {
2581
+ ue("text", {
2582
2582
  x: e.textX,
2583
2583
  y: e.textY,
2584
2584
  dx: e.propValue.dx,
@@ -2592,7 +2592,7 @@ function io(t, s, r, e, d, o) {
2592
2592
  ]))
2593
2593
  ], 32);
2594
2594
  }
2595
- const co = /* @__PURE__ */ he(so, [["render", io], ["__scopeId", "data-v-0a8a6304"], ["__file", "Component.vue"]]), fo = /* @__PURE__ */ Object.assign({
2595
+ const co = /* @__PURE__ */ pe(so, [["render", io], ["__scopeId", "data-v-0a8a6304"], ["__file", "Component.vue"]]), fo = /* @__PURE__ */ Object.assign({
2596
2596
  name: "SVGHLine"
2597
2597
  }, {
2598
2598
  __name: "Component",
@@ -2615,37 +2615,37 @@ const co = /* @__PURE__ */ he(so, [["render", io], ["__scopeId", "data-v-0a8a630
2615
2615
  },
2616
2616
  setup(t, { expose: s }) {
2617
2617
  s();
2618
- const r = t, e = se(), d = ie(e), o = b(null), l = w(() => r.propValue || {}), n = w(() => r.element || {}), i = w(() => n.value.events || []), a = le(), g = oe(), y = ee(l, n, a, g);
2618
+ const r = t, e = ne(), d = re(e), n = b(null), o = x(() => r.propValue || {}), l = x(() => r.element || {}), i = x(() => l.value.events || []), a = le(), h = oe(), m = ee(o, l, a, h);
2619
2619
  J(() => {
2620
- o.value = te(i.value, r.designStatus, y), o.value?.beforeMount();
2620
+ n.value = te(i.value, r.designStatus, m), n.value?.beforeMount();
2621
2621
  }), q(() => {
2622
- D(), o.value?.mounted();
2622
+ D(), n.value?.mounted();
2623
2623
  }), Z(() => {
2624
- o.value?.beforeUnmount();
2624
+ n.value?.beforeUnmount();
2625
2625
  }), $(() => {
2626
- o.value?.unmounted();
2626
+ n.value?.unmounted();
2627
2627
  });
2628
- const { dynamicColor: u } = be(l, d, e.rules, Q), _ = w(() => u.lineColor ? u.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), I = b([]), L = b([]);
2629
- A(() => n.value.style.width, (R) => {
2628
+ const { dynamicColor: u } = be(o, d, e.rules, Q), S = x(() => u.lineColor ? u.lineColor : o.value.strokeColor ? o.value.strokeColor : "none"), W = b([]), L = b([]);
2629
+ A(() => l.value.style.width, (H) => {
2630
2630
  D();
2631
- }), A(() => n.value.style.height, (R) => {
2631
+ }), A(() => l.value.style.height, (H) => {
2632
2632
  D();
2633
2633
  });
2634
2634
  const D = () => {
2635
- const { width: R, height: W } = n.value.style;
2636
- h(R, W);
2637
- }, h = (R, W) => {
2635
+ const { width: H, height: I } = l.value.style;
2636
+ p(H, I);
2637
+ }, p = (H, I) => {
2638
2638
  const v = [0, 0.5], c = [1, 0.5];
2639
- I.value = [R * v[0], W * v[1]], L.value = [R * c[0], W * c[1]];
2640
- }, H = { props: r, dataCache: e, smartData: d, eventHandler: o, propValue: l, element: n, events: i, router: a, route: g, compContext: y, dynamicColor: u, showLineColor: _, LineL1P1: I, LineL1P2: L, draw: D, drawChart: h, get useEventHandler() {
2639
+ W.value = [H * v[0], I * v[1]], L.value = [H * c[0], I * c[1]];
2640
+ }, V = { props: r, dataCache: e, smartData: d, eventHandler: n, propValue: o, element: l, events: i, router: a, route: h, compContext: m, dynamicColor: u, showLineColor: S, LineL1P1: W, LineL1P2: L, draw: D, drawChart: p, get useEventHandler() {
2641
2641
  return te;
2642
2642
  }, get useDataCacheStore() {
2643
- return se;
2643
+ return ne;
2644
2644
  }, get createSmartAccessor() {
2645
- return ie;
2645
+ return re;
2646
2646
  }, get CreateCompContext() {
2647
2647
  return ee;
2648
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2648
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2649
2649
  return oe;
2650
2650
  }, get useRouter() {
2651
2651
  return le;
@@ -2654,17 +2654,17 @@ const co = /* @__PURE__ */ he(so, [["render", io], ["__scopeId", "data-v-0a8a630
2654
2654
  }, get useDynamicColor() {
2655
2655
  return be;
2656
2656
  } };
2657
- return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
2657
+ return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
2658
2658
  }
2659
2659
  });
2660
- function vo(t, s, r, e, d, o) {
2660
+ function vo(t, s, r, e, d, n) {
2661
2661
  return P(), K("div", { class: "svg-container" }, [
2662
2662
  (P(), K("svg", {
2663
2663
  xmlns: "http://www.w3.org/2000/svg",
2664
2664
  width: e.element.style.width,
2665
2665
  height: e.element.style.height
2666
2666
  }, [
2667
- re("line", {
2667
+ ue("line", {
2668
2668
  x1: e.LineL1P1[0],
2669
2669
  y1: e.LineL1P1[1],
2670
2670
  x2: e.LineL1P2[0],
@@ -2680,12 +2680,12 @@ function vo(t, s, r, e, d, o) {
2680
2680
  to: e.propValue.animateTo,
2681
2681
  dur: e.propValue.animateDur + "s",
2682
2682
  repeatCount: "indefinite"
2683
- }, null, 8, ["from", "to", "dur"])) : ue("", !0)
2683
+ }, null, 8, ["from", "to", "dur"])) : ie("", !0)
2684
2684
  ], 8, ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"])
2685
2685
  ], 8, ["width", "height"]))
2686
2686
  ]);
2687
2687
  }
2688
- const ho = /* @__PURE__ */ he(fo, [["render", vo], ["__scopeId", "data-v-7dcb2081"], ["__file", "Component.vue"]]), po = /* @__PURE__ */ Object.assign({
2688
+ const po = /* @__PURE__ */ pe(fo, [["render", vo], ["__scopeId", "data-v-7dcb2081"], ["__file", "Component.vue"]]), ho = /* @__PURE__ */ Object.assign({
2689
2689
  name: "SVGRectangle"
2690
2690
  }, {
2691
2691
  __name: "Component",
@@ -2708,37 +2708,37 @@ const ho = /* @__PURE__ */ he(fo, [["render", vo], ["__scopeId", "data-v-7dcb208
2708
2708
  },
2709
2709
  setup(t, { expose: s }) {
2710
2710
  s();
2711
- const { generateSecureUUID: r } = Q, e = t, d = se(), o = ie(d), l = b(null), n = w(() => e.propValue || {}), i = w(() => e.element || {}), a = w(() => i.value.events || []), g = le(), y = oe(), u = ee(n, i, g, y);
2711
+ const { generateSecureUUID: r } = Q, e = t, d = ne(), n = re(d), o = b(null), l = x(() => e.propValue || {}), i = x(() => e.element || {}), a = x(() => i.value.events || []), h = le(), m = oe(), u = ee(l, i, h, m);
2712
2712
  J(() => {
2713
- l.value = te(a.value, e.designStatus, u), l.value?.beforeMount(), j.value = r();
2713
+ o.value = te(a.value, e.designStatus, u), o.value?.beforeMount(), j.value = r();
2714
2714
  }), q(() => {
2715
- c(), l.value?.mounted();
2715
+ c(), o.value?.mounted();
2716
2716
  }), Z(() => {
2717
- l.value?.beforeUnmount();
2717
+ o.value?.beforeUnmount();
2718
2718
  }), $(() => {
2719
- l.value?.unmounted();
2719
+ o.value?.unmounted();
2720
2720
  });
2721
- const { dynamicColor: _ } = be(n, o, d.rules, Q), I = w(() => _.fillColor ? _.fillColor : n.value.fillColor ? n.value.fillColor : "none"), L = w(() => _.lineColor ? _.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), D = b(0), h = b(0), H = b(1), R = b(1), W = b(0), v = b(0);
2722
- A(() => i.value.style.width, (O) => {
2721
+ const { dynamicColor: S } = be(l, n, d.rules, Q), W = x(() => S.fillColor ? S.fillColor : l.value.fillColor ? l.value.fillColor : "none"), L = x(() => S.lineColor ? S.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), D = b(0), p = b(0), V = b(1), H = b(1), I = b(0), v = b(0);
2722
+ A(() => i.value.style.width, (R) => {
2723
2723
  c();
2724
- }), A(() => i.value.style.height, (O) => {
2724
+ }), A(() => i.value.style.height, (R) => {
2725
2725
  c();
2726
2726
  });
2727
2727
  const c = () => {
2728
- const { width: O, height: C } = i.value.style;
2729
- p(O, C);
2730
- }, p = (O, C) => {
2731
- let x = n.value.strokeWidth, z = x / 2;
2732
- D.value = 0 * O + z, h.value = 0 * C + z, H.value = C * 1 - x, R.value = O * 1 - x;
2733
- }, j = b(""), S = w(() => n.value.hasGradient ? `url(#${j.value})` : I.value), T = { generateSecureUUID: r, props: e, dataCache: d, smartData: o, eventHandler: l, propValue: n, element: i, events: a, router: g, route: y, compContext: u, dynamicColor: _, showFillColor: I, showLineColor: L, rlux: D, rluy: h, rhight: H, rwidth: R, rrx: W, rry: v, draw: c, drawChart: p, gradientId: j, fillStyle: S, get useEventHandler() {
2728
+ const { width: R, height: C } = i.value.style;
2729
+ g(R, C);
2730
+ }, g = (R, C) => {
2731
+ let w = l.value.strokeWidth, z = w / 2;
2732
+ D.value = 0 * R + z, p.value = 0 * C + z, V.value = C * 1 - w, H.value = R * 1 - w;
2733
+ }, j = b(""), _ = x(() => l.value.hasGradient ? `url(#${j.value})` : W.value), B = { generateSecureUUID: r, props: e, dataCache: d, smartData: n, eventHandler: o, propValue: l, element: i, events: a, router: h, route: m, compContext: u, dynamicColor: S, showFillColor: W, showLineColor: L, rlux: D, rluy: p, rhight: V, rwidth: H, rrx: I, rry: v, draw: c, drawChart: g, gradientId: j, fillStyle: _, get useEventHandler() {
2734
2734
  return te;
2735
2735
  }, get useDataCacheStore() {
2736
- return se;
2736
+ return ne;
2737
2737
  }, get createSmartAccessor() {
2738
- return ie;
2738
+ return re;
2739
2739
  }, get CreateCompContext() {
2740
2740
  return ee;
2741
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get CommonUtils() {
2741
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get CommonUtils() {
2742
2742
  return Q;
2743
2743
  }, get useRoute() {
2744
2744
  return oe;
@@ -2747,20 +2747,20 @@ const ho = /* @__PURE__ */ he(fo, [["render", vo], ["__scopeId", "data-v-7dcb208
2747
2747
  }, get useDynamicColor() {
2748
2748
  return be;
2749
2749
  } };
2750
- return Object.defineProperty(T, "__isScriptSetup", { enumerable: !1, value: !0 }), T;
2750
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
2751
2751
  }
2752
2752
  });
2753
- function mo(t, s, r, e, d, o) {
2753
+ function mo(t, s, r, e, d, n) {
2754
2754
  return P(), K("div", { class: "svg-container" }, [
2755
2755
  (P(), K("svg", {
2756
2756
  xmlns: "http://www.w3.org/2000/svg",
2757
2757
  width: e.element.style.width,
2758
2758
  height: e.element.style.height
2759
2759
  }, [
2760
- ue(" 根据条件判断是否渲染渐变定义 "),
2760
+ ie(" 根据条件判断是否渲染渐变定义 "),
2761
2761
  ge(),
2762
2762
  e.propValue.hasGradient ? (P(), K("defs", { key: 0 }, [
2763
- ue(" 这里根据渐变类型动态渲染线性或径向渐变 "),
2763
+ ie(" 这里根据渐变类型动态渲染线性或径向渐变 "),
2764
2764
  ge(),
2765
2765
  e.propValue.gradientType === "linear" ? (P(), K("linearGradient", {
2766
2766
  key: 0,
@@ -2802,9 +2802,9 @@ function mo(t, s, r, e, d, o) {
2802
2802
  "stop-color": e.propValue.gradientStopsColor2
2803
2803
  }, null, 8, ["offset", "stop-color"]))
2804
2804
  ], 8, ["id", "cx", "cy", "r", "fx", "fy"]))
2805
- ])) : ue("", !0),
2805
+ ])) : ie("", !0),
2806
2806
  ge(),
2807
- re("rect", {
2807
+ ue("rect", {
2808
2808
  x: e.rlux,
2809
2809
  y: e.rluy,
2810
2810
  height: e.rhight,
@@ -2821,7 +2821,7 @@ function mo(t, s, r, e, d, o) {
2821
2821
  ], 8, ["width", "height"]))
2822
2822
  ]);
2823
2823
  }
2824
- const go = /* @__PURE__ */ he(po, [["render", mo], ["__scopeId", "data-v-4ce499b1"], ["__file", "Component.vue"]]), yo = /* @__PURE__ */ Object.assign({
2824
+ const go = /* @__PURE__ */ pe(ho, [["render", mo], ["__scopeId", "data-v-4ce499b1"], ["__file", "Component.vue"]]), yo = /* @__PURE__ */ Object.assign({
2825
2825
  name: "SVGTriangle"
2826
2826
  }, {
2827
2827
  __name: "Component",
@@ -2844,38 +2844,38 @@ const go = /* @__PURE__ */ he(po, [["render", mo], ["__scopeId", "data-v-4ce499b
2844
2844
  },
2845
2845
  setup(t, { expose: s }) {
2846
2846
  s();
2847
- const r = t, e = se(), d = ie(e), o = b(null), l = w(() => r.propValue || {}), n = w(() => r.element || {}), i = w(() => n.value.events || []), a = le(), g = oe(), y = ee(l, n, a, g);
2847
+ const r = t, e = ne(), d = re(e), n = b(null), o = x(() => r.propValue || {}), l = x(() => r.element || {}), i = x(() => l.value.events || []), a = le(), h = oe(), m = ee(o, l, a, h);
2848
2848
  J(() => {
2849
- o.value = te(i.value, r.designStatus, y), o.value?.beforeMount();
2849
+ n.value = te(i.value, r.designStatus, m), n.value?.beforeMount();
2850
2850
  }), q(() => {
2851
- D(), o.value?.mounted();
2851
+ D(), n.value?.mounted();
2852
2852
  }), Z(() => {
2853
- o.value?.beforeUnmount();
2853
+ n.value?.beforeUnmount();
2854
2854
  }), $(() => {
2855
- o.value?.unmounted();
2855
+ n.value?.unmounted();
2856
2856
  });
2857
- const { dynamicColor: u } = be(l, d, e.rules, Q), _ = w(() => u.fillColor ? u.fillColor : l.value.fillColor ? l.value.fillColor : "none"), I = w(() => u.lineColor ? u.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), L = b([]);
2858
- A(() => n.value.style.width, (R) => {
2857
+ const { dynamicColor: u } = be(o, d, e.rules, Q), S = x(() => u.fillColor ? u.fillColor : o.value.fillColor ? o.value.fillColor : "none"), W = x(() => u.lineColor ? u.lineColor : o.value.strokeColor ? o.value.strokeColor : "none"), L = b([]);
2858
+ A(() => l.value.style.width, (H) => {
2859
2859
  D();
2860
- }), A(() => n.value.style.height, (R) => {
2860
+ }), A(() => l.value.style.height, (H) => {
2861
2861
  D();
2862
2862
  });
2863
2863
  const D = () => {
2864
- const { width: R, height: W } = n.value.style;
2865
- h(R, W);
2866
- }, h = (R, W) => {
2864
+ const { width: H, height: I } = l.value.style;
2865
+ p(H, I);
2866
+ }, p = (H, I) => {
2867
2867
  const v = [];
2868
- let c = 0, p = l.value.strokeWidth;
2869
- v[c++] = "M", v[c++] = 0.5 * R, v[c++] = 0 + p, v[c++] = "L", v[c++] = 0 + p, v[c++] = W - p, v[c++] = "L", v[c++] = R - p, v[c++] = W - p, v[c++] = "Z", L.value = v.join(" ");
2870
- }, H = { props: r, dataCache: e, smartData: d, eventHandler: o, propValue: l, element: n, events: i, router: a, route: g, compContext: y, dynamicColor: u, showFillColor: _, showLineColor: I, pathData: L, draw: D, drawChart: h, get useEventHandler() {
2868
+ let c = 0, g = o.value.strokeWidth;
2869
+ v[c++] = "M", v[c++] = 0.5 * H, v[c++] = 0 + g, v[c++] = "L", v[c++] = 0 + g, v[c++] = I - g, v[c++] = "L", v[c++] = H - g, v[c++] = I - g, v[c++] = "Z", L.value = v.join(" ");
2870
+ }, V = { props: r, dataCache: e, smartData: d, eventHandler: n, propValue: o, element: l, events: i, router: a, route: h, compContext: m, dynamicColor: u, showFillColor: S, showLineColor: W, pathData: L, draw: D, drawChart: p, get useEventHandler() {
2871
2871
  return te;
2872
2872
  }, get useDataCacheStore() {
2873
- return se;
2873
+ return ne;
2874
2874
  }, get createSmartAccessor() {
2875
- return ie;
2875
+ return re;
2876
2876
  }, get CreateCompContext() {
2877
2877
  return ee;
2878
- }, ref: b, computed: w, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, watch: A, get useRoute() {
2878
+ }, ref: b, computed: x, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, watch: A, get useRoute() {
2879
2879
  return oe;
2880
2880
  }, get useRouter() {
2881
2881
  return le;
@@ -2884,17 +2884,17 @@ const go = /* @__PURE__ */ he(po, [["render", mo], ["__scopeId", "data-v-4ce499b
2884
2884
  }, get useDynamicColor() {
2885
2885
  return be;
2886
2886
  } };
2887
- return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
2887
+ return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
2888
2888
  }
2889
2889
  });
2890
- function Co(t, s, r, e, d, o) {
2890
+ function Co(t, s, r, e, d, n) {
2891
2891
  return P(), K("div", { class: "svg-container" }, [
2892
2892
  (P(), K("svg", {
2893
2893
  xmlns: "http://www.w3.org/2000/svg",
2894
2894
  width: e.element.style.width,
2895
2895
  height: e.element.style.height
2896
2896
  }, [
2897
- re("path", {
2897
+ ue("path", {
2898
2898
  d: e.pathData,
2899
2899
  stroke: e.showLineColor,
2900
2900
  "stroke-width": e.propValue.strokeWidth,
@@ -2903,7 +2903,7 @@ function Co(t, s, r, e, d, o) {
2903
2903
  ], 8, ["width", "height"]))
2904
2904
  ]);
2905
2905
  }
2906
- const bo = /* @__PURE__ */ he(yo, [["render", Co], ["__scopeId", "data-v-aec13cc0"], ["__file", "Component.vue"]]), xo = /* @__PURE__ */ Object.assign({
2906
+ const bo = /* @__PURE__ */ pe(yo, [["render", Co], ["__scopeId", "data-v-aec13cc0"], ["__file", "Component.vue"]]), xo = /* @__PURE__ */ Object.assign({
2907
2907
  name: "SVGVLine"
2908
2908
  }, {
2909
2909
  __name: "Component",
@@ -2926,37 +2926,37 @@ const bo = /* @__PURE__ */ he(yo, [["render", Co], ["__scopeId", "data-v-aec13cc
2926
2926
  },
2927
2927
  setup(t, { expose: s }) {
2928
2928
  s();
2929
- const r = t, e = se(), d = ie(e), o = b(null), l = w(() => r.propValue || {}), n = w(() => r.element || {}), i = w(() => n.value.events || []), a = le(), g = oe(), y = ee(l, n, a, g);
2929
+ const r = t, e = ne(), d = re(e), n = b(null), o = x(() => r.propValue || {}), l = x(() => r.element || {}), i = x(() => l.value.events || []), a = le(), h = oe(), m = ee(o, l, a, h);
2930
2930
  J(() => {
2931
- o.value = te(i.value, r.designStatus, y), o.value?.beforeMount();
2931
+ n.value = te(i.value, r.designStatus, m), n.value?.beforeMount();
2932
2932
  }), q(() => {
2933
- D(), o.value?.mounted();
2933
+ D(), n.value?.mounted();
2934
2934
  }), Z(() => {
2935
- o.value?.beforeUnmount();
2935
+ n.value?.beforeUnmount();
2936
2936
  }), $(() => {
2937
- o.value?.unmounted();
2937
+ n.value?.unmounted();
2938
2938
  });
2939
- const { dynamicColor: u } = be(l, d, e.rules, Q), _ = w(() => u.lineColor ? u.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), I = b([]), L = b([]);
2940
- A(() => n.value.style.width, (R) => {
2939
+ const { dynamicColor: u } = be(o, d, e.rules, Q), S = x(() => u.lineColor ? u.lineColor : o.value.strokeColor ? o.value.strokeColor : "none"), W = b([]), L = b([]);
2940
+ A(() => l.value.style.width, (H) => {
2941
2941
  D();
2942
- }), A(() => n.value.style.height, (R) => {
2942
+ }), A(() => l.value.style.height, (H) => {
2943
2943
  D();
2944
2944
  });
2945
2945
  const D = () => {
2946
- const { width: R, height: W } = n.value.style;
2947
- h(R, W);
2948
- }, h = (R, W) => {
2946
+ const { width: H, height: I } = l.value.style;
2947
+ p(H, I);
2948
+ }, p = (H, I) => {
2949
2949
  const v = [0.5, 0], c = [0.5, 1];
2950
- I.value = [R * v[0], W * v[1]], L.value = [R * c[0], W * c[1]];
2951
- }, H = { props: r, dataCache: e, smartData: d, eventHandler: o, propValue: l, element: n, events: i, router: a, route: g, compContext: y, dynamicColor: u, showLineColor: _, LineL1P1: I, LineL1P2: L, draw: D, drawChart: h, get useEventHandler() {
2950
+ W.value = [H * v[0], I * v[1]], L.value = [H * c[0], I * c[1]];
2951
+ }, V = { props: r, dataCache: e, smartData: d, eventHandler: n, propValue: o, element: l, events: i, router: a, route: h, compContext: m, dynamicColor: u, showLineColor: S, LineL1P1: W, LineL1P2: L, draw: D, drawChart: p, get useEventHandler() {
2952
2952
  return te;
2953
2953
  }, get useDataCacheStore() {
2954
- return se;
2954
+ return ne;
2955
2955
  }, get createSmartAccessor() {
2956
- return ie;
2956
+ return re;
2957
2957
  }, get CreateCompContext() {
2958
2958
  return ee;
2959
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2959
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
2960
2960
  return oe;
2961
2961
  }, get useRouter() {
2962
2962
  return le;
@@ -2965,17 +2965,17 @@ const bo = /* @__PURE__ */ he(yo, [["render", Co], ["__scopeId", "data-v-aec13cc
2965
2965
  }, get useDynamicColor() {
2966
2966
  return be;
2967
2967
  } };
2968
- return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
2968
+ return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
2969
2969
  }
2970
2970
  });
2971
- function wo(t, s, r, e, d, o) {
2971
+ function wo(t, s, r, e, d, n) {
2972
2972
  return P(), K("div", { class: "svg-container" }, [
2973
2973
  (P(), K("svg", {
2974
2974
  xmlns: "http://www.w3.org/2000/svg",
2975
2975
  width: e.element.style.width,
2976
2976
  height: e.element.style.height
2977
2977
  }, [
2978
- re("line", {
2978
+ ue("line", {
2979
2979
  x1: e.LineL1P1[0],
2980
2980
  y1: e.LineL1P1[1],
2981
2981
  x2: e.LineL1P2[0],
@@ -2991,12 +2991,12 @@ function wo(t, s, r, e, d, o) {
2991
2991
  to: e.propValue.animateTo,
2992
2992
  dur: e.propValue.animateDur + "s",
2993
2993
  repeatCount: "indefinite"
2994
- }, null, 8, ["from", "to", "dur"])) : ue("", !0)
2994
+ }, null, 8, ["from", "to", "dur"])) : ie("", !0)
2995
2995
  ], 8, ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"])
2996
2996
  ], 8, ["width", "height"]))
2997
2997
  ]);
2998
2998
  }
2999
- const So = /* @__PURE__ */ he(xo, [["render", wo], ["__scopeId", "data-v-cddc7262"], ["__file", "Component.vue"]]), ko = /* @__PURE__ */ Object.assign({
2999
+ const So = /* @__PURE__ */ pe(xo, [["render", wo], ["__scopeId", "data-v-cddc7262"], ["__file", "Component.vue"]]), _o = /* @__PURE__ */ Object.assign({
3000
3000
  name: "SVGWenBen"
3001
3001
  }, {
3002
3002
  __name: "Component",
@@ -3018,62 +3018,62 @@ const So = /* @__PURE__ */ he(xo, [["render", wo], ["__scopeId", "data-v-cddc726
3018
3018
  }
3019
3019
  },
3020
3020
  setup(t, { expose: s }) {
3021
- const r = t, e = b(null), d = w(() => r.propValue || {}), o = w(() => r.element || {}), l = w(() => o.value.events || []), n = b(0), i = b(0), a = b(""), g = b(""), y = (v) => {
3021
+ const r = t, e = b(null), d = x(() => r.propValue || {}), n = x(() => r.element || {}), o = x(() => n.value.events || []), l = b(0), i = b(0), a = b(""), h = b(""), m = (v) => {
3022
3022
  e.value?.handleClick(v);
3023
3023
  }, u = (v) => {
3024
3024
  e.value?.handleDblClick(v);
3025
3025
  };
3026
- A(() => o.value.style.width, (v) => {
3027
- _();
3028
- }), A(() => o.value.style.height, (v) => {
3029
- _();
3026
+ A(() => n.value.style.width, (v) => {
3027
+ S();
3028
+ }), A(() => n.value.style.height, (v) => {
3029
+ S();
3030
3030
  }), A(() => d.value.horizontalAlign, (v) => {
3031
- _();
3031
+ S();
3032
3032
  }), A(() => d.value.offsetX, (v) => {
3033
- _();
3033
+ S();
3034
3034
  });
3035
- const _ = () => {
3035
+ const S = () => {
3036
3036
  const { width: v, height: c } = r.element.style;
3037
- I(v, c);
3038
- }, I = (v, c) => {
3039
- let p = r.propValue.horizontalAlign || "left", j = r.propValue.offsetX || 0;
3040
- p == "center" ? (g.value = "middle", n.value = v * 0.5) : p == "right" ? (n.value = v - j, g.value = "end") : (n.value = 0 + j, g.value = "start"), a.value = "central", i.value = c * 0.5;
3041
- }, L = le(), D = oe(), h = ee(d, o, L, D);
3037
+ W(v, c);
3038
+ }, W = (v, c) => {
3039
+ let g = r.propValue.horizontalAlign || "left", j = r.propValue.offsetX || 0;
3040
+ g == "center" ? (h.value = "middle", l.value = v * 0.5) : g == "right" ? (l.value = v - j, h.value = "end") : (l.value = 0 + j, h.value = "start"), a.value = "central", i.value = c * 0.5;
3041
+ }, L = le(), D = oe(), p = ee(d, n, L, D);
3042
3042
  J(() => {
3043
- e.value = te(l.value, r.designStatus, h), e.value?.beforeMount();
3043
+ e.value = te(o.value, r.designStatus, p), e.value?.beforeMount();
3044
3044
  }), q(() => {
3045
- _(), e.value?.mounted();
3045
+ S(), e.value?.mounted();
3046
3046
  }), Z(() => {
3047
3047
  e.value?.beforeUnmount();
3048
3048
  }), $(() => {
3049
3049
  e.value?.unmounted();
3050
3050
  }), s({
3051
- handleClick: y
3051
+ handleClick: m
3052
3052
  });
3053
- const { processMenus: H } = We(), W = { props: r, eventHandler: e, propValue: d, element: o, events: l, textX: n, textY: i, textBaseLine: a, textAnchor: g, handleClick: y, handleDblClick: u, draw: _, drawChart: I, router: L, route: D, compContext: h, processMenus: H, openContextMenu: (v) => {
3053
+ const { processMenus: V } = We(), I = { props: r, eventHandler: e, propValue: d, element: n, events: o, textX: l, textY: i, textBaseLine: a, textAnchor: h, handleClick: m, handleDblClick: u, draw: S, drawChart: W, router: L, route: D, compContext: p, processMenus: V, openContextMenu: (v) => {
3054
3054
  v.preventDefault();
3055
3055
  let c = d.value.menuItems || [];
3056
3056
  if (Q.isArray(c) && c.length > 0) {
3057
- let p = [];
3058
- p = H(c, function(j, S) {
3057
+ let g = [];
3058
+ g = V(c, function(j, _) {
3059
3059
  e.value?.handleContextMenu(v, j.value);
3060
3060
  }), Oe.showContextMenu({
3061
3061
  x: v.x,
3062
3062
  y: v.y,
3063
- items: p
3063
+ items: g
3064
3064
  });
3065
3065
  }
3066
3066
  }, get useEventHandler() {
3067
3067
  return te;
3068
3068
  }, get useDataCacheStore() {
3069
- return se;
3069
+ return ne;
3070
3070
  }, get createSmartAccessor() {
3071
- return ie;
3071
+ return re;
3072
3072
  }, get CreateCompContext() {
3073
3073
  return ee;
3074
3074
  }, get CommonUtils() {
3075
3075
  return Q;
3076
- }, watch: A, onMounted: q, computed: w, ref: b, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3076
+ }, watch: A, onMounted: q, computed: x, ref: b, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3077
3077
  return oe;
3078
3078
  }, get useRouter() {
3079
3079
  return le;
@@ -3082,10 +3082,10 @@ const So = /* @__PURE__ */ he(xo, [["render", wo], ["__scopeId", "data-v-cddc726
3082
3082
  }, get useMenuHandler() {
3083
3083
  return We;
3084
3084
  } };
3085
- return Object.defineProperty(W, "__isScriptSetup", { enumerable: !1, value: !0 }), W;
3085
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
3086
3086
  }
3087
3087
  });
3088
- function _o(t, s, r, e, d, o) {
3088
+ function ko(t, s, r, e, d, n) {
3089
3089
  return P(), K("div", {
3090
3090
  class: "svg-container",
3091
3091
  onClick: e.handleClick,
@@ -3110,9 +3110,9 @@ function _o(t, s, r, e, d, o) {
3110
3110
  "fill-opacity": e.propValue.fillOpacity,
3111
3111
  "stroke-opacity": e.propValue.strokeOpacity,
3112
3112
  "stroke-width": e.propValue.strokeWidth
3113
- }, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ue("", !0),
3113
+ }, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ie("", !0),
3114
3114
  ge(),
3115
- re("text", {
3115
+ ue("text", {
3116
3116
  x: e.textX,
3117
3117
  y: e.textY,
3118
3118
  dx: e.propValue.dx,
@@ -3126,7 +3126,7 @@ function _o(t, s, r, e, d, o) {
3126
3126
  ], 8, ["width", "height"]))
3127
3127
  ], 32);
3128
3128
  }
3129
- const Vo = /* @__PURE__ */ he(ko, [["render", _o], ["__scopeId", "data-v-ea6a17d7"], ["__file", "Component.vue"]]), Mo = /* @__PURE__ */ Object.assign({
3129
+ const Vo = /* @__PURE__ */ pe(_o, [["render", ko], ["__scopeId", "data-v-ea6a17d7"], ["__file", "Component.vue"]]), Mo = /* @__PURE__ */ Object.assign({
3130
3130
  name: "SVGWenBen2"
3131
3131
  }, {
3132
3132
  __name: "Component",
@@ -3149,62 +3149,62 @@ const Vo = /* @__PURE__ */ he(ko, [["render", _o], ["__scopeId", "data-v-ea6a17d
3149
3149
  },
3150
3150
  setup(t, { expose: s }) {
3151
3151
  s();
3152
- const { isNotEmpty: r } = Q, e = t, d = w(() => e.propValue || {}), o = w(() => e.element || {}), l = w(() => o.value.events || []), n = b(null), i = w(() => {
3153
- const { width: p, height: j } = o.value.style;
3154
- let S = p / 2, T = j / 2;
3155
- return r(d.value.translateX) || r(d.value.translateY) ? r(d.value.translateX) && r(d.value.translateY) ? `rotate(90,${S},${T}) translate(${d.value.translateX}, ${d.value.translateY})` : r(d.value.translateX) ? `rotate(90,${S},${T}) translate(${d.value.translateX}, 0)` : `rotate(90,${S},${T}) translate(0, ${d.value.translateY})` : `rotate(90,${S},${T})`;
3156
- }), a = b(0), g = b(0), y = b(""), u = b(""), _ = (p) => {
3157
- n.value?.handleClick(p);
3158
- }, I = (p) => {
3159
- n.value?.handleDblClick(p);
3152
+ const { isNotEmpty: r } = Q, e = t, d = x(() => e.propValue || {}), n = x(() => e.element || {}), o = x(() => n.value.events || []), l = b(null), i = x(() => {
3153
+ const { width: g, height: j } = n.value.style;
3154
+ let _ = g / 2, B = j / 2;
3155
+ return r(d.value.translateX) || r(d.value.translateY) ? r(d.value.translateX) && r(d.value.translateY) ? `rotate(90,${_},${B}) translate(${d.value.translateX}, ${d.value.translateY})` : r(d.value.translateX) ? `rotate(90,${_},${B}) translate(${d.value.translateX}, 0)` : `rotate(90,${_},${B}) translate(0, ${d.value.translateY})` : `rotate(90,${_},${B})`;
3156
+ }), a = b(0), h = b(0), m = b(""), u = b(""), S = (g) => {
3157
+ l.value?.handleClick(g);
3158
+ }, W = (g) => {
3159
+ l.value?.handleDblClick(g);
3160
3160
  };
3161
- A(() => o.value.style.width, (p) => {
3161
+ A(() => n.value.style.width, (g) => {
3162
3162
  L();
3163
- }), A(() => o.value.style.height, (p) => {
3163
+ }), A(() => n.value.style.height, (g) => {
3164
3164
  L();
3165
- }), A(() => d.value.horizontalAlign, (p) => {
3165
+ }), A(() => d.value.horizontalAlign, (g) => {
3166
3166
  L();
3167
- }), A(() => d.value.offsetX, (p) => {
3167
+ }), A(() => d.value.offsetX, (g) => {
3168
3168
  L();
3169
3169
  });
3170
3170
  const L = () => {
3171
- const { width: p, height: j } = e.element.style;
3172
- D(p, j);
3173
- }, D = (p, j) => {
3174
- let S = e.propValue.horizontalAlign || "left", T = e.propValue.offsetX || 0;
3175
- S == "center" ? (u.value = "middle", a.value = p * 0.5) : S == "right" ? (a.value = p - T, u.value = "end") : (a.value = 0 + T, u.value = "start"), y.value = "central", g.value = j * 0.5;
3176
- }, h = le(), H = oe(), R = ee(d, o, h, H);
3171
+ const { width: g, height: j } = e.element.style;
3172
+ D(g, j);
3173
+ }, D = (g, j) => {
3174
+ let _ = e.propValue.horizontalAlign || "left", B = e.propValue.offsetX || 0;
3175
+ _ == "center" ? (u.value = "middle", a.value = g * 0.5) : _ == "right" ? (a.value = g - B, u.value = "end") : (a.value = 0 + B, u.value = "start"), m.value = "central", h.value = j * 0.5;
3176
+ }, p = le(), V = oe(), H = ee(d, n, p, V);
3177
3177
  J(() => {
3178
- n.value = te(l.value, e.designStatus, R), n.value?.beforeMount();
3178
+ l.value = te(o.value, e.designStatus, H), l.value?.beforeMount();
3179
3179
  }), q(() => {
3180
- L(), n.value?.mounted();
3180
+ L(), l.value?.mounted();
3181
3181
  }), Z(() => {
3182
- n.value?.beforeUnmount();
3182
+ l.value?.beforeUnmount();
3183
3183
  }), $(() => {
3184
- n.value?.unmounted();
3184
+ l.value?.unmounted();
3185
3185
  });
3186
- const { processMenus: W } = We(), c = { isNotEmpty: r, props: e, propValue: d, element: o, events: l, eventHandler: n, transformAttr: i, textX: a, textY: g, textBaseLine: y, textAnchor: u, handleClick: _, handleDblClick: I, draw: L, drawChart: D, router: h, route: H, compContext: R, processMenus: W, openContextMenu: (p) => {
3187
- p.preventDefault();
3186
+ const { processMenus: I } = We(), c = { isNotEmpty: r, props: e, propValue: d, element: n, events: o, eventHandler: l, transformAttr: i, textX: a, textY: h, textBaseLine: m, textAnchor: u, handleClick: S, handleDblClick: W, draw: L, drawChart: D, router: p, route: V, compContext: H, processMenus: I, openContextMenu: (g) => {
3187
+ g.preventDefault();
3188
3188
  let j = d.value.menuItems || [];
3189
3189
  if (Q.isArray(j) && j.length > 0) {
3190
- let S = [];
3191
- S = W(j, function(T, O) {
3192
- n.value?.handleContextMenu(p, T.value);
3190
+ let _ = [];
3191
+ _ = I(j, function(B, R) {
3192
+ l.value?.handleContextMenu(g, B.value);
3193
3193
  }), Oe.showContextMenu({
3194
- x: p.x,
3195
- y: p.y,
3196
- items: S
3194
+ x: g.x,
3195
+ y: g.y,
3196
+ items: _
3197
3197
  });
3198
3198
  }
3199
3199
  }, get useEventHandler() {
3200
3200
  return te;
3201
3201
  }, get useDataCacheStore() {
3202
- return se;
3202
+ return ne;
3203
3203
  }, get createSmartAccessor() {
3204
- return ie;
3204
+ return re;
3205
3205
  }, get CreateCompContext() {
3206
3206
  return ee;
3207
- }, ref: b, watch: A, computed: w, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3207
+ }, ref: b, watch: A, computed: x, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3208
3208
  return oe;
3209
3209
  }, get useRouter() {
3210
3210
  return le;
@@ -3218,7 +3218,7 @@ const Vo = /* @__PURE__ */ he(ko, [["render", _o], ["__scopeId", "data-v-ea6a17d
3218
3218
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
3219
3219
  }
3220
3220
  });
3221
- function Io(t, s, r, e, d, o) {
3221
+ function Io(t, s, r, e, d, n) {
3222
3222
  return P(), K("div", {
3223
3223
  class: "svg-container",
3224
3224
  onClick: e.handleClick,
@@ -3243,7 +3243,7 @@ function Io(t, s, r, e, d, o) {
3243
3243
  "fill-opacity": e.propValue.fillOpacity,
3244
3244
  "stroke-opacity": e.propValue.strokeOpacity,
3245
3245
  "stroke-width": e.propValue.strokeWidth
3246
- }, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ue("", !0),
3246
+ }, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ie("", !0),
3247
3247
  ge(),
3248
3248
  e.propValue.verticalText ? (P(), K("text", {
3249
3249
  key: 1,
@@ -3274,7 +3274,7 @@ function Io(t, s, r, e, d, o) {
3274
3274
  ], 8, ["width", "height"]))
3275
3275
  ], 32);
3276
3276
  }
3277
- const Oo = /* @__PURE__ */ he(Mo, [["render", Io], ["__scopeId", "data-v-ac44471c"], ["__file", "Component.vue"]]), Wo = /* @__PURE__ */ Object.assign({
3277
+ const Oo = /* @__PURE__ */ pe(Mo, [["render", Io], ["__scopeId", "data-v-ac44471c"], ["__file", "Component.vue"]]), Wo = /* @__PURE__ */ Object.assign({
3278
3278
  name: "SVGRhombus"
3279
3279
  }, {
3280
3280
  __name: "Component",
@@ -3297,41 +3297,41 @@ const Oo = /* @__PURE__ */ he(Mo, [["render", Io], ["__scopeId", "data-v-ac44471
3297
3297
  },
3298
3298
  setup(t, { expose: s }) {
3299
3299
  s();
3300
- const { generateSecureUUID: r } = Q, e = t, d = se(), o = ie(d), l = b(null), n = w(() => e.propValue || {}), i = w(() => e.element || {}), a = w(() => i.value.events || []), g = le(), y = oe(), u = ee(n, i, g, y);
3300
+ const { generateSecureUUID: r } = Q, e = t, d = ne(), n = re(d), o = b(null), l = x(() => e.propValue || {}), i = x(() => e.element || {}), a = x(() => i.value.events || []), h = le(), m = oe(), u = ee(l, i, h, m);
3301
3301
  J(() => {
3302
- l.value = te(a.value, e.designStatus, u), l.value?.beforeMount(), W.value = r();
3302
+ o.value = te(a.value, e.designStatus, u), o.value?.beforeMount(), I.value = r();
3303
3303
  }), q(() => {
3304
- H(), l.value?.mounted();
3304
+ V(), o.value?.mounted();
3305
3305
  }), Z(() => {
3306
- l.value?.beforeUnmount();
3306
+ o.value?.beforeUnmount();
3307
3307
  }), $(() => {
3308
- l.value?.unmounted();
3308
+ o.value?.unmounted();
3309
3309
  });
3310
- const { dynamicColor: _ } = be(n, o, d.rules, Q), I = w(() => _.fillColor ? _.fillColor : n.value.fillColor ? n.value.fillColor : "none"), L = w(() => _.lineColor ? _.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), D = b(""), h = b(2);
3311
- A(() => i.value.style.width, (p) => {
3312
- H();
3313
- }), A(() => i.value.style.height, (p) => {
3314
- H();
3315
- }), A(() => n.value.tilt, (p) => {
3316
- H();
3317
- }), A(() => n.value.offsetLen, (p) => {
3318
- H();
3310
+ const { dynamicColor: S } = be(l, n, d.rules, Q), W = x(() => S.fillColor ? S.fillColor : l.value.fillColor ? l.value.fillColor : "none"), L = x(() => S.lineColor ? S.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), D = b(""), p = b(2);
3311
+ A(() => i.value.style.width, (g) => {
3312
+ V();
3313
+ }), A(() => i.value.style.height, (g) => {
3314
+ V();
3315
+ }), A(() => l.value.tilt, (g) => {
3316
+ V();
3317
+ }), A(() => l.value.offsetLen, (g) => {
3318
+ V();
3319
3319
  });
3320
- const H = () => {
3321
- const { width: p, height: j } = i.value.style;
3322
- R(p, j);
3323
- }, R = (p, j) => {
3324
- let S = n.value.tilt || "right", T = n.value.offsetLen || 0, O = [], C = 0, Y = Math.round((p - 2 * h.value) * 0.5);
3325
- T = Number(T), T = T < 0 ? 0 : T, T = T > Y ? Y : T, S == "left" ? (O[C++] = h.value, O[C++] = ",", O[C++] = h.value, O[C++] = p - h.value - T, O[C++] = ",", O[C++] = h.value, O[C++] = p - h.value, O[C++] = ",", O[C++] = j - h.value, O[C++] = h.value + T, O[C++] = ",", O[C++] = j - h.value, O[C++] = h.value, O[C++] = ",", O[C++] = h.value, D.value = O.join(" ")) : (O[C++] = h.value + T, O[C++] = ",", O[C++] = h.value, O[C++] = p - h.value, O[C++] = ",", O[C++] = h.value, O[C++] = p - h.value - T, O[C++] = ",", O[C++] = j - h.value, O[C++] = h.value, O[C++] = ",", O[C++] = j - h.value, O[C++] = h.value + T, O[C++] = ",", O[C++] = h.value, D.value = O.join(" "));
3326
- }, W = b(""), v = w(() => n.value.hasGradient ? `url(#${W.value})` : I.value), c = { generateSecureUUID: r, props: e, dataCache: d, smartData: o, eventHandler: l, propValue: n, element: i, events: a, router: g, route: y, compContext: u, dynamicColor: _, showFillColor: I, showLineColor: L, pointDatas: D, gap: h, draw: H, drawChart: R, gradientId: W, fillStyle: v, get useEventHandler() {
3320
+ const V = () => {
3321
+ const { width: g, height: j } = i.value.style;
3322
+ H(g, j);
3323
+ }, H = (g, j) => {
3324
+ let _ = l.value.tilt || "right", B = l.value.offsetLen || 0, R = [], C = 0, Y = Math.round((g - 2 * p.value) * 0.5);
3325
+ B = Number(B), B = B < 0 ? 0 : B, B = B > Y ? Y : B, _ == "left" ? (R[C++] = p.value, R[C++] = ",", R[C++] = p.value, R[C++] = g - p.value - B, R[C++] = ",", R[C++] = p.value, R[C++] = g - p.value, R[C++] = ",", R[C++] = j - p.value, R[C++] = p.value + B, R[C++] = ",", R[C++] = j - p.value, R[C++] = p.value, R[C++] = ",", R[C++] = p.value, D.value = R.join(" ")) : (R[C++] = p.value + B, R[C++] = ",", R[C++] = p.value, R[C++] = g - p.value, R[C++] = ",", R[C++] = p.value, R[C++] = g - p.value - B, R[C++] = ",", R[C++] = j - p.value, R[C++] = p.value, R[C++] = ",", R[C++] = j - p.value, R[C++] = p.value + B, R[C++] = ",", R[C++] = p.value, D.value = R.join(" "));
3326
+ }, I = b(""), v = x(() => l.value.hasGradient ? `url(#${I.value})` : W.value), c = { generateSecureUUID: r, props: e, dataCache: d, smartData: n, eventHandler: o, propValue: l, element: i, events: a, router: h, route: m, compContext: u, dynamicColor: S, showFillColor: W, showLineColor: L, pointDatas: D, gap: p, draw: V, drawChart: H, gradientId: I, fillStyle: v, get useEventHandler() {
3327
3327
  return te;
3328
3328
  }, get useDataCacheStore() {
3329
- return se;
3329
+ return ne;
3330
3330
  }, get createSmartAccessor() {
3331
- return ie;
3331
+ return re;
3332
3332
  }, get CreateCompContext() {
3333
3333
  return ee;
3334
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get CommonUtils() {
3334
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get CommonUtils() {
3335
3335
  return Q;
3336
3336
  }, get useRoute() {
3337
3337
  return oe;
@@ -3343,17 +3343,17 @@ const Oo = /* @__PURE__ */ he(Mo, [["render", Io], ["__scopeId", "data-v-ac44471
3343
3343
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
3344
3344
  }
3345
3345
  });
3346
- function Do(t, s, r, e, d, o) {
3346
+ function Do(t, s, r, e, d, n) {
3347
3347
  return P(), K("div", { class: "svg-container" }, [
3348
3348
  (P(), K("svg", {
3349
3349
  xmlns: "http://www.w3.org/2000/svg",
3350
3350
  width: e.element.style.width,
3351
3351
  height: e.element.style.height
3352
3352
  }, [
3353
- ue(" 根据条件判断是否渲染渐变定义 "),
3353
+ ie(" 根据条件判断是否渲染渐变定义 "),
3354
3354
  ge(),
3355
3355
  e.propValue.hasGradient ? (P(), K("defs", { key: 0 }, [
3356
- ue(" 这里根据渐变类型动态渲染线性或径向渐变 "),
3356
+ ie(" 这里根据渐变类型动态渲染线性或径向渐变 "),
3357
3357
  ge(),
3358
3358
  e.propValue.gradientType === "linear" ? (P(), K("linearGradient", {
3359
3359
  key: 0,
@@ -3395,9 +3395,9 @@ function Do(t, s, r, e, d, o) {
3395
3395
  "stop-color": e.propValue.gradientStopsColor2
3396
3396
  }, null, 8, ["offset", "stop-color"]))
3397
3397
  ], 8, ["id", "cx", "cy", "r", "fx", "fy"]))
3398
- ])) : ue("", !0),
3398
+ ])) : ie("", !0),
3399
3399
  ge(),
3400
- re("polygon", {
3400
+ ue("polygon", {
3401
3401
  points: e.pointDatas,
3402
3402
  stroke: e.showLineColor,
3403
3403
  "stroke-width": e.propValue.strokeWidth,
@@ -3409,7 +3409,7 @@ function Do(t, s, r, e, d, o) {
3409
3409
  ], 8, ["width", "height"]))
3410
3410
  ]);
3411
3411
  }
3412
- const Ho = /* @__PURE__ */ he(Wo, [["render", Do], ["__scopeId", "data-v-78f636ae"], ["__file", "Component.vue"]]), Ro = {
3412
+ const Ho = /* @__PURE__ */ pe(Wo, [["render", Do], ["__scopeId", "data-v-78f636ae"], ["__file", "Component.vue"]]), Ro = {
3413
3413
  __name: "index",
3414
3414
  props: {
3415
3415
  propValue: {
@@ -3421,46 +3421,46 @@ const Ho = /* @__PURE__ */ he(Wo, [["render", Do], ["__scopeId", "data-v-78f636a
3421
3421
  },
3422
3422
  setup(t, { expose: s }) {
3423
3423
  s();
3424
- const r = t, e = w(() => r.propValue), d = b("");
3425
- let o = null, l = 3, n = 0;
3424
+ const r = t, e = x(() => r.propValue), d = b("");
3425
+ let n = null, o = 3, l = 0;
3426
3426
  q(() => {
3427
- o = setInterval(i, 100);
3427
+ n = setInterval(i, 100);
3428
3428
  });
3429
3429
  const i = () => {
3430
- let g = e.value.value || 0;
3431
- if (isNaN(g))
3430
+ let h = e.value.value || 0;
3431
+ if (isNaN(h))
3432
3432
  return;
3433
- g <= 0 && (g = 0);
3434
- let y = 48 - 46 * g / 100, u = [];
3435
- u[0] = "M", u[1] = 0, u[2] = 25, u[3] = "Q", u[4] = 6.25, u[5] = 30, u[6] = ",", u[7] = 12.5, u[8] = 25, u[9] = "T", u[10] = 25, u[11] = 25, u[12] = "T", u[13] = 37.5, u[14] = 25, u[15] = "T", u[16] = 50, u[17] = 25, u[18] = "T", u[19] = 62.5, u[20] = 25, u[21] = "T", u[22] = 75, u[23] = 25, u[24] = "V", u[25] = 50, u[26] = "H", u[27] = 0, n += 1, n > 25 && (n = 0), u[1] = 0 - n, u[4] = 6.25 - n, u[7] = 12.5 - n, u[10] = 25 - n, u[13] = 37.5 - n, u[16] = 50 - n, u[19] = 62.5 - n, u[22] = 75 - n, u[2] = y, u[5] = y + l, u[8] = y, u[11] = y, u[14] = y, u[17] = y, u[20] = y, u[23] = y, d.value = u.join(" ");
3433
+ h <= 0 && (h = 0);
3434
+ let m = 48 - 46 * h / 100, u = [];
3435
+ u[0] = "M", u[1] = 0, u[2] = 25, u[3] = "Q", u[4] = 6.25, u[5] = 30, u[6] = ",", u[7] = 12.5, u[8] = 25, u[9] = "T", u[10] = 25, u[11] = 25, u[12] = "T", u[13] = 37.5, u[14] = 25, u[15] = "T", u[16] = 50, u[17] = 25, u[18] = "T", u[19] = 62.5, u[20] = 25, u[21] = "T", u[22] = 75, u[23] = 25, u[24] = "V", u[25] = 50, u[26] = "H", u[27] = 0, l += 1, l > 25 && (l = 0), u[1] = 0 - l, u[4] = 6.25 - l, u[7] = 12.5 - l, u[10] = 25 - l, u[13] = 37.5 - l, u[16] = 50 - l, u[19] = 62.5 - l, u[22] = 75 - l, u[2] = m, u[5] = m + o, u[8] = m, u[11] = m, u[14] = m, u[17] = m, u[20] = m, u[23] = m, d.value = u.join(" ");
3436
3436
  };
3437
3437
  Z(() => {
3438
- o && clearInterval(o);
3438
+ n && clearInterval(n);
3439
3439
  });
3440
3440
  const a = { props: r, propValue: e, pathData: d, get timer() {
3441
- return o;
3442
- }, set timer(g) {
3443
- o = g;
3441
+ return n;
3442
+ }, set timer(h) {
3443
+ n = h;
3444
3444
  }, get waveVal() {
3445
- return l;
3446
- }, set waveVal(g) {
3447
- l = g;
3445
+ return o;
3446
+ }, set waveVal(h) {
3447
+ o = h;
3448
3448
  }, get waveOffset() {
3449
- return n;
3450
- }, set waveOffset(g) {
3451
- n = g;
3452
- }, drawWave: i, computed: w, onBeforeUnmount: Z, onMounted: q, ref: b };
3449
+ return l;
3450
+ }, set waveOffset(h) {
3451
+ l = h;
3452
+ }, drawWave: i, computed: x, onBeforeUnmount: Z, onMounted: q, ref: b };
3453
3453
  return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
3454
3454
  }
3455
3455
  };
3456
- function Lo(t, s, r, e, d, o) {
3456
+ function Lo(t, s, r, e, d, n) {
3457
3457
  return P(), K("svg", {
3458
3458
  xmlns: "http://www.w3.org/2000/svg",
3459
3459
  viewBox: "0 0 50 50"
3460
3460
  }, [
3461
- re("defs", null, [
3462
- re("clipPath", { id: "clipWave-507210b2-7385-44df-9082-2785295e5ac9" }, [
3463
- re("circle", {
3461
+ ue("defs", null, [
3462
+ ue("clipPath", { id: "clipWave-507210b2-7385-44df-9082-2785295e5ac9" }, [
3463
+ ue("circle", {
3464
3464
  cx: "25",
3465
3465
  cy: "25",
3466
3466
  r: "23",
@@ -3469,7 +3469,7 @@ function Lo(t, s, r, e, d, o) {
3469
3469
  ])
3470
3470
  ]),
3471
3471
  ge(),
3472
- re("circle", {
3472
+ ue("circle", {
3473
3473
  cx: 25,
3474
3474
  cy: 25,
3475
3475
  r: 24,
@@ -3478,13 +3478,13 @@ function Lo(t, s, r, e, d, o) {
3478
3478
  "stroke-width": 1
3479
3479
  }, null, 8, ["stroke"]),
3480
3480
  ge(),
3481
- re("path", {
3481
+ ue("path", {
3482
3482
  d: e.pathData,
3483
3483
  fill: e.propValue.strokeColor2 ? e.propValue.strokeColor2 : "none",
3484
3484
  "clip-path": "url(#clipWave-507210b2-7385-44df-9082-2785295e5ac9)"
3485
3485
  }, null, 8, ["d", "fill"]),
3486
3486
  ge(),
3487
- re("text", {
3487
+ ue("text", {
3488
3488
  x: 25,
3489
3489
  y: 25,
3490
3490
  fill: e.propValue.fontColor ? e.propValue.fontColor : "none",
@@ -3496,7 +3496,7 @@ function Lo(t, s, r, e, d, o) {
3496
3496
  `, 9, ["fill", "font-size", "font-family"])
3497
3497
  ]);
3498
3498
  }
3499
- const Po = /* @__PURE__ */ he(Ro, [["render", Lo], ["__file", "index.vue"]]), jo = /* @__PURE__ */ Object.assign({
3499
+ const Po = /* @__PURE__ */ pe(Ro, [["render", Lo], ["__file", "index.vue"]]), jo = /* @__PURE__ */ Object.assign({
3500
3500
  name: "SVGLiquidFillBall"
3501
3501
  }, {
3502
3502
  __name: "Component",
@@ -3519,9 +3519,9 @@ const Po = /* @__PURE__ */ he(Ro, [["render", Lo], ["__file", "index.vue"]]), jo
3519
3519
  },
3520
3520
  setup(t, { expose: s }) {
3521
3521
  s();
3522
- const { isObject: r, isValid: e, isNumber: d } = Q, o = t, l = se(), n = ie(l), i = b(null), a = w(() => o.propValue || {}), g = w(() => o.element || {}), y = w(() => g.value.events || []), u = le(), _ = oe(), I = ee(a, g, u, _);
3522
+ const { isObject: r, isValid: e, isNumber: d } = Q, n = t, o = ne(), l = re(o), i = b(null), a = x(() => n.propValue || {}), h = x(() => n.element || {}), m = x(() => h.value.events || []), u = le(), S = oe(), W = ee(a, h, u, S);
3523
3523
  J(() => {
3524
- i.value = te(y.value, o.designStatus, I), i.value?.beforeMount();
3524
+ i.value = te(m.value, n.designStatus, W), i.value?.beforeMount();
3525
3525
  }), q(() => {
3526
3526
  i.value?.mounted();
3527
3527
  }), Z(() => {
@@ -3533,36 +3533,36 @@ const Po = /* @__PURE__ */ he(Ro, [["render", Lo], ["__file", "index.vue"]]), jo
3533
3533
  i.value?.handleClick(v);
3534
3534
  }, D = (v) => {
3535
3535
  i.value?.handleDblClick(v);
3536
- }, h = n[a.value.dataCK];
3537
- A(() => h.value, (v) => {
3538
- e(v) && H(v);
3536
+ }, p = l[a.value.dataCK];
3537
+ A(() => p.value, (v) => {
3538
+ e(v) && V(v);
3539
3539
  }, { immediate: !0 });
3540
- function H(v) {
3541
- R(v);
3540
+ function V(v) {
3541
+ H(v);
3542
3542
  }
3543
- function R(v) {
3543
+ function H(v) {
3544
3544
  let c = null;
3545
3545
  r(v) ? c = v[a.value.valueKey] || null : c = v, d(c) && (a.value.value = Number(c));
3546
3546
  }
3547
- const W = { isObject: r, isValid: e, isNumber: d, props: o, dataCache: l, smartData: n, eventHandler: i, propValue: a, element: g, events: y, router: u, route: _, compContext: I, handleClick: L, handleDblClick: D, bsData: h, dealBsData: H, parseBsData: R, get useEventHandler() {
3547
+ const I = { isObject: r, isValid: e, isNumber: d, props: n, dataCache: o, smartData: l, eventHandler: i, propValue: a, element: h, events: m, router: u, route: S, compContext: W, handleClick: L, handleDblClick: D, bsData: p, dealBsData: V, parseBsData: H, get useEventHandler() {
3548
3548
  return te;
3549
3549
  }, get useDataCacheStore() {
3550
- return se;
3550
+ return ne;
3551
3551
  }, get createSmartAccessor() {
3552
- return ie;
3552
+ return re;
3553
3553
  }, get CreateCompContext() {
3554
3554
  return ee;
3555
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3555
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useRoute() {
3556
3556
  return oe;
3557
3557
  }, get useRouter() {
3558
3558
  return le;
3559
3559
  }, get CommonUtils() {
3560
3560
  return Q;
3561
3561
  }, LiquidFillBall: Po };
3562
- return Object.defineProperty(W, "__isScriptSetup", { enumerable: !1, value: !0 }), W;
3562
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
3563
3563
  }
3564
3564
  });
3565
- function Bo(t, s, r, e, d, o) {
3565
+ function To(t, s, r, e, d, n) {
3566
3566
  return P(), K("div", {
3567
3567
  class: "svg-container",
3568
3568
  onClick: e.handleClick,
@@ -3571,7 +3571,7 @@ function Bo(t, s, r, e, d, o) {
3571
3571
  Ve(e.LiquidFillBall, { "prop-value": e.propValue }, null, 8, ["prop-value"])
3572
3572
  ], 32);
3573
3573
  }
3574
- const To = /* @__PURE__ */ he(jo, [["render", Bo], ["__scopeId", "data-v-82417625"], ["__file", "Component.vue"]]), Ao = /* @__PURE__ */ Object.assign({
3574
+ const Bo = /* @__PURE__ */ pe(jo, [["render", To], ["__scopeId", "data-v-82417625"], ["__file", "Component.vue"]]), Ao = /* @__PURE__ */ Object.assign({
3575
3575
  name: "SVGFile"
3576
3576
  }, {
3577
3577
  __name: "Component",
@@ -3594,9 +3594,9 @@ const To = /* @__PURE__ */ he(jo, [["render", Bo], ["__scopeId", "data-v-8241762
3594
3594
  },
3595
3595
  setup(t, { expose: s }) {
3596
3596
  s();
3597
- const { isNotEmpty: r } = Q, e = $e(), d = b(null), o = t, l = se(), n = ie(l), i = b(null), a = w(() => o.propValue || {}), g = w(() => o.element || {}), y = w(() => g.value.events || []), u = le(), _ = oe(), I = ee(a, g, u, _);
3597
+ const { isNotEmpty: r } = Q, e = $e(), d = b(null), n = t, o = ne(), l = re(o), i = b(null), a = x(() => n.propValue || {}), h = x(() => n.element || {}), m = x(() => h.value.events || []), u = le(), S = oe(), W = ee(a, h, u, S);
3598
3598
  J(() => {
3599
- i.value = te(y.value, o.designStatus, I), i.value?.beforeMount();
3599
+ i.value = te(m.value, n.designStatus, W), i.value?.beforeMount();
3600
3600
  }), q(() => {
3601
3601
  i.value?.mounted();
3602
3602
  }), Z(() => {
@@ -3608,75 +3608,75 @@ const To = /* @__PURE__ */ he(jo, [["render", Bo], ["__scopeId", "data-v-8241762
3608
3608
  i.value?.setParam(C);
3609
3609
  }, D = (C) => {
3610
3610
  i.value?.handleDblClick(C);
3611
- }, h = b("");
3612
- A(h, (C) => {
3611
+ }, p = b("");
3612
+ A(p, (C) => {
3613
3613
  Se(() => {
3614
3614
  d.value && C ? d.value.innerHTML = C : d.value && (d.value.innerHTML = "");
3615
3615
  });
3616
3616
  });
3617
- const H = w(() => {
3617
+ const V = x(() => {
3618
3618
  let C = {};
3619
3619
  return r(a.value.firstColor) && (C["--custom-first-color"] = a.value.firstColor), r(a.value.secondColor) && (C["--custom-second-color"] = a.value.secondColor), r(a.value.thirdColor) && (C["--custom-third-color"] = a.value.thirdColor), r(a.value.fourColor) && (C["--custom-four-color"] = a.value.fourColor), r(a.value.fiveColor) && (C["--custom-five-color"] = a.value.fiveColor), C;
3620
- }), R = (C) => {
3620
+ }), H = (C) => {
3621
3621
  e.getFile(C, function(Y) {
3622
3622
  if (Y && Y.status == 200) {
3623
- let B = Y.data || "";
3624
- h.value = W(B);
3623
+ let T = Y.data || "";
3624
+ p.value = I(T);
3625
3625
  } else
3626
- h.value = "";
3626
+ p.value = "";
3627
3627
  }, function(Y) {
3628
- h.value = "";
3628
+ p.value = "";
3629
3629
  });
3630
3630
  };
3631
3631
  A(() => a.value.svgFile, (C) => {
3632
- r(C) ? R(C) : h.value = "";
3632
+ r(C) ? H(C) : p.value = "";
3633
3633
  }, { immediate: !0 }), A(() => a.value.aspectRatio, (C) => {
3634
- r(a.value.svgFile) && R(a.value.svgFile);
3634
+ r(a.value.svgFile) && H(a.value.svgFile);
3635
3635
  }, { immediate: !0 });
3636
- const W = (C) => {
3636
+ const I = (C) => {
3637
3637
  const Y = a.value.aspectRatio || "xMidYMid meet";
3638
3638
  return C.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${Y}"`);
3639
- }, v = w(() => {
3639
+ }, v = x(() => {
3640
3640
  const C = a.value.svgFileCK;
3641
- return r(C) ? n[C] : {};
3642
- }), c = w(() => {
3641
+ return r(C) ? l[C] : {};
3642
+ }), c = x(() => {
3643
3643
  const C = a.value.firstColorCK;
3644
- return r(C) ? n[C] : {};
3645
- }), p = w(() => {
3644
+ return r(C) ? l[C] : {};
3645
+ }), g = x(() => {
3646
3646
  const C = a.value.secondColorCK;
3647
- return r(C) ? n[C] : {};
3648
- }), j = w(() => {
3647
+ return r(C) ? l[C] : {};
3648
+ }), j = x(() => {
3649
3649
  const C = a.value.thirdColorCK;
3650
- return r(C) ? n[C] : {};
3651
- }), S = w(() => {
3650
+ return r(C) ? l[C] : {};
3651
+ }), _ = x(() => {
3652
3652
  const C = a.value.fourColorCK;
3653
- return r(C) ? n[C] : {};
3654
- }), T = w(() => {
3653
+ return r(C) ? l[C] : {};
3654
+ }), B = x(() => {
3655
3655
  const C = a.value.fiveColorCK;
3656
- return r(C) ? n[C] : {};
3656
+ return r(C) ? l[C] : {};
3657
3657
  });
3658
3658
  A(() => v, (C) => {
3659
3659
  r(a.value.svgFileCK) && (a.value.svgFile = C);
3660
3660
  }), A(() => c, (C) => {
3661
3661
  r(a.value.firstColorCK) && (a.value.firstColor = C);
3662
- }), A(() => p, (C) => {
3662
+ }), A(() => g, (C) => {
3663
3663
  r(a.value.secondColorCK) && (a.value.secondColor = C);
3664
3664
  }), A(() => j, (C) => {
3665
3665
  r(a.value.thirdColorCK) && (a.value.thirdColor = C);
3666
- }), A(() => S, (C) => {
3666
+ }), A(() => _, (C) => {
3667
3667
  r(a.value.fourColorCK) && (a.value.fourColor = C);
3668
- }), A(() => T, (C) => {
3668
+ }), A(() => B, (C) => {
3669
3669
  r(a.value.fiveColorCK) && (a.value.fiveColor = C);
3670
3670
  });
3671
- const O = { isNotEmpty: r, api: e, svgContainerRef: d, props: o, dataCache: l, smartData: n, eventHandler: i, propValue: a, element: g, events: y, router: u, route: _, compContext: I, handleClick: L, handleDblClick: D, svgContent: h, customStyle: H, loadSvgFile: R, removeSvgDimensions: W, fileData: v, firstColorData: c, secondColorData: p, thirdColorData: j, fourColorData: S, fiveColorData: T, get useEventHandler() {
3671
+ const R = { isNotEmpty: r, api: e, svgContainerRef: d, props: n, dataCache: o, smartData: l, eventHandler: i, propValue: a, element: h, events: m, router: u, route: S, compContext: W, handleClick: L, handleDblClick: D, svgContent: p, customStyle: V, loadSvgFile: H, removeSvgDimensions: I, fileData: v, firstColorData: c, secondColorData: g, thirdColorData: j, fourColorData: _, fiveColorData: B, get useEventHandler() {
3672
3672
  return te;
3673
3673
  }, get useDataCacheStore() {
3674
- return se;
3674
+ return ne;
3675
3675
  }, get createSmartAccessor() {
3676
- return ie;
3676
+ return re;
3677
3677
  }, get CreateCompContext() {
3678
3678
  return ee;
3679
- }, ref: b, computed: w, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, nextTick: Se, get CommonUtils() {
3679
+ }, ref: b, computed: x, watch: A, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, nextTick: Se, get CommonUtils() {
3680
3680
  return Q;
3681
3681
  }, get useRoute() {
3682
3682
  return oe;
@@ -3685,19 +3685,19 @@ const To = /* @__PURE__ */ he(jo, [["render", Bo], ["__scopeId", "data-v-8241762
3685
3685
  }, get useApi() {
3686
3686
  return $e;
3687
3687
  } };
3688
- return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
3688
+ return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
3689
3689
  }
3690
3690
  });
3691
- function Fo(t, s, r, e, d, o) {
3691
+ function Fo(t, s, r, e, d, n) {
3692
3692
  return P(), K("div", {
3693
3693
  ref: "svgContainerRef",
3694
3694
  class: "svg-container",
3695
3695
  onClick: e.handleClick,
3696
3696
  onDblclick: e.handleDblClick,
3697
- style: Be(e.customStyle)
3697
+ style: Re(e.customStyle)
3698
3698
  }, null, 36);
3699
3699
  }
3700
- const Eo = /* @__PURE__ */ he(Ao, [["render", Fo], ["__scopeId", "data-v-56539202"], ["__file", "Component.vue"]]), zo = {
3700
+ const Eo = /* @__PURE__ */ pe(Ao, [["render", Fo], ["__scopeId", "data-v-56539202"], ["__file", "Component.vue"]]), zo = {
3701
3701
  __name: "BaseGridTable",
3702
3702
  props: {
3703
3703
  // 网格边框配置 默认样式配置
@@ -3764,136 +3764,136 @@ const Eo = /* @__PURE__ */ he(Ao, [["render", Fo], ["__scopeId", "data-v-5653920
3764
3764
  diagonalCells: { type: Array, default: () => [] }
3765
3765
  },
3766
3766
  setup(t, { expose: s }) {
3767
- const { consolePrint: r, isArray: e, isEven: d, isNotEmpty: o } = Q, l = t, n = b(), i = b();
3768
- let a = [], g = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
3769
- const _ = w(() => Array.from(
3770
- { length: l.rows },
3771
- (f, m) => Number(l.rowHeights[m] || l.cellHeight)
3772
- )), I = w(() => Array.from(
3773
- { length: l.cols },
3774
- (f, m) => Number(l.colWidths[m] || l.cellWidth)
3775
- )), L = w(
3776
- () => I.value.reduce((f, m) => f + m, 0)
3777
- ), D = w(
3778
- () => _.value.reduce((f, m) => f + m, 0)
3779
- ), h = () => {
3767
+ const { consolePrint: r, isArray: e, isEven: d, isNotEmpty: n } = Q, o = t, l = b(), i = b();
3768
+ let a = [], h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
3769
+ const S = x(() => Array.from(
3770
+ { length: o.rows },
3771
+ (f, y) => Number(o.rowHeights[y] || o.cellHeight)
3772
+ )), W = x(() => Array.from(
3773
+ { length: o.cols },
3774
+ (f, y) => Number(o.colWidths[y] || o.cellWidth)
3775
+ )), L = x(
3776
+ () => W.value.reduce((f, y) => f + y, 0)
3777
+ ), D = x(
3778
+ () => S.value.reduce((f, y) => f + y, 0)
3779
+ ), p = () => {
3780
3780
  if (!i.value) return;
3781
3781
  r("debug", "绘制网格开始");
3782
- const f = n.value;
3783
- i.value.clearRect(0, 0, f.width, f.height), W(), H(f.width, f.height), v(), r("debug", "绘制网格完成");
3784
- }, H = (f, m) => {
3785
- let x = [], z = O();
3786
- z.x1 = 0, z.y1 = 0, z.x2 = f, z.y2 = 0, R(z, 0), z.y1 += z.lineWidth / 2, z.y2 += z.lineWidth / 2, x.push(z);
3787
- let F = O();
3788
- F.x1 = f, F.y1 = 0, F.x2 = f, F.y2 = m, R(F, 3), F.x1 -= F.lineWidth / 2, F.x2 -= F.lineWidth / 2, x.push(F);
3789
- let X = O();
3790
- X.x1 = f, X.y1 = m, X.x2 = 0, X.y2 = m, R(X, 1), X.y1 -= X.lineWidth / 2, X.y2 -= X.lineWidth / 2, x.push(X);
3791
- let V = O();
3792
- V.x1 = 0, V.y1 = m, V.x2 = 0, V.y2 = 0, R(V, 2), V.x1 += V.lineWidth / 2, V.x2 += V.lineWidth / 2, x.push(V), C(i.value, x, !1);
3793
- }, R = (f, m) => {
3794
- f.strokeStyle = l.borderStyle.color, f.lineWidth = l.borderStyle.width, f.dash = l.borderStyle.dash, l.borders && e(l.borders) && l.borders.length > m && (f.strokeStyle = l.borders[m].color, f.lineWidth = l.borders[m].width, f.dash = l.borders[m].dash);
3795
- }, W = () => {
3782
+ const f = l.value;
3783
+ i.value.clearRect(0, 0, f.width, f.height), I(), V(f.width, f.height), v(), r("debug", "绘制网格完成");
3784
+ }, V = (f, y) => {
3785
+ let w = [], z = R();
3786
+ z.x1 = 0, z.y1 = 0, z.x2 = f, z.y2 = 0, H(z, 0), z.y1 += z.lineWidth / 2, z.y2 += z.lineWidth / 2, w.push(z);
3787
+ let F = R();
3788
+ F.x1 = f, F.y1 = 0, F.x2 = f, F.y2 = y, H(F, 3), F.x1 -= F.lineWidth / 2, F.x2 -= F.lineWidth / 2, w.push(F);
3789
+ let X = R();
3790
+ X.x1 = f, X.y1 = y, X.x2 = 0, X.y2 = y, H(X, 1), X.y1 -= X.lineWidth / 2, X.y2 -= X.lineWidth / 2, w.push(X);
3791
+ let M = R();
3792
+ M.x1 = 0, M.y1 = y, M.x2 = 0, M.y2 = 0, H(M, 2), M.x1 += M.lineWidth / 2, M.x2 += M.lineWidth / 2, w.push(M), C(i.value, w, !1);
3793
+ }, H = (f, y) => {
3794
+ f.strokeStyle = o.borderStyle.color, f.lineWidth = o.borderStyle.width, f.dash = o.borderStyle.dash, o.borders && e(o.borders) && o.borders.length > y && (f.strokeStyle = o.borders[y].color, f.lineWidth = o.borders[y].width, f.dash = o.borders[y].dash);
3795
+ }, I = () => {
3796
3796
  a = [], c();
3797
3797
  let f = [];
3798
- for (let m = 0; m < l.rows; m++)
3799
- for (let x = 0; x < l.cols; x++)
3800
- p(f, m, x);
3798
+ for (let y = 0; y < o.rows; y++)
3799
+ for (let w = 0; w < o.cols; w++)
3800
+ g(f, y, w);
3801
3801
  C(i.value, f, !1);
3802
3802
  }, v = () => {
3803
- if (e(l.diagonalCells) && l.diagonalCells.length > 0) {
3804
- let f, m = [], x, z, F;
3805
- for (let X = 0; X < l.diagonalCells.length; X++) {
3806
- if (f = l.diagonalCells[X], !S(f.row, f.col) || (x = f.row + "_" + f.col, g.has(x)))
3803
+ if (e(o.diagonalCells) && o.diagonalCells.length > 0) {
3804
+ let f, y = [], w, z, F;
3805
+ for (let X = 0; X < o.diagonalCells.length; X++) {
3806
+ if (f = o.diagonalCells[X], !_(f.row, f.col) || (w = f.row + "_" + f.col, h.has(w)))
3807
3807
  continue;
3808
- let V = O();
3808
+ let M = R();
3809
3809
  if (z = f.row, F = f.col, f.reverse) {
3810
- let ae = a[z][F][0], xe = a[z][F][1], N = ae + T(I.value[f.col]), k = a[z][F][1] + T(_.value[f.row]);
3811
- if (y.has(x)) {
3812
- let U = y.get(x), M = 0;
3810
+ let se = a[z][F][0], xe = a[z][F][1], N = se + B(W.value[f.col]), k = a[z][F][1] + B(S.value[f.row]);
3811
+ if (m.has(w)) {
3812
+ let U = m.get(w), O = 0;
3813
3813
  for (let ce = 0; ce < U.colSpan; ce++)
3814
- M += T(I.value[f.col + ce]);
3815
- N = ae + M, M = 0;
3814
+ O += B(W.value[f.col + ce]);
3815
+ N = se + O, O = 0;
3816
3816
  for (let ce = 0; ce < U.rowSpan; ce++)
3817
- M += T(_.value[f.row + ce]);
3818
- k = xe + M;
3817
+ O += B(S.value[f.row + ce]);
3818
+ k = xe + O;
3819
3819
  }
3820
- V.x1 = ae, V.y1 = k, V.x2 = N, V.y2 = xe, V.strokeStyle = f.color ?? l.diagonalStyle.color, V.lineWidth = f.width ?? l.diagonalStyle.width, V.dash = f.dash ?? l.diagonalStyle.dash, m.push(V);
3820
+ M.x1 = se, M.y1 = k, M.x2 = N, M.y2 = xe, M.strokeStyle = f.color ?? o.diagonalStyle.color, M.lineWidth = f.width ?? o.diagonalStyle.width, M.dash = f.dash ?? o.diagonalStyle.dash, y.push(M);
3821
3821
  } else {
3822
- let ae = a[z][F][0], xe = a[z][F][1], N = ae + T(I.value[f.col]), k = xe + T(_.value[f.row]);
3823
- if (y.has(x)) {
3824
- let U = y.get(x), M = 0;
3822
+ let se = a[z][F][0], xe = a[z][F][1], N = se + B(W.value[f.col]), k = xe + B(S.value[f.row]);
3823
+ if (m.has(w)) {
3824
+ let U = m.get(w), O = 0;
3825
3825
  for (let ce = 0; ce < U.colSpan; ce++)
3826
- M += T(I.value[f.col + ce]);
3827
- N = ae + M, M = 0;
3826
+ O += B(W.value[f.col + ce]);
3827
+ N = se + O, O = 0;
3828
3828
  for (let ce = 0; ce < U.rowSpan; ce++)
3829
- M += T(_.value[f.row + ce]);
3830
- k = xe + M;
3829
+ O += B(S.value[f.row + ce]);
3830
+ k = xe + O;
3831
3831
  }
3832
- V.x1 = ae, V.y1 = xe, V.x2 = N, V.y2 = k, V.strokeStyle = f.color ?? l.diagonalStyle.color, V.lineWidth = f.width ?? l.diagonalStyle.width, V.dash = f.dash ?? l.diagonalStyle.dash, m.push(V);
3832
+ M.x1 = se, M.y1 = xe, M.x2 = N, M.y2 = k, M.strokeStyle = f.color ?? o.diagonalStyle.color, M.lineWidth = f.width ?? o.diagonalStyle.width, M.dash = f.dash ?? o.diagonalStyle.dash, y.push(M);
3833
3833
  }
3834
3834
  }
3835
- C(i.value, m, !1);
3835
+ C(i.value, y, !1);
3836
3836
  }
3837
3837
  }, c = () => {
3838
- let f = 0, m = 0, x = 0, z = 0;
3839
- for (let F = 0; F < l.rows; F++) {
3840
- a[F] = [], F == 0 ? f = 0 : f = T(_.value[F - 1]), x += f, z = 0;
3841
- for (let X = 0; X < l.cols; X++)
3842
- X == 0 ? m = 0 : m = T(I.value[X - 1]), z += m, a[F][X] = [z, x];
3838
+ let f = 0, y = 0, w = 0, z = 0;
3839
+ for (let F = 0; F < o.rows; F++) {
3840
+ a[F] = [], F == 0 ? f = 0 : f = B(S.value[F - 1]), w += f, z = 0;
3841
+ for (let X = 0; X < o.cols; X++)
3842
+ X == 0 ? y = 0 : y = B(W.value[X - 1]), z += y, a[F][X] = [z, w];
3843
3843
  }
3844
- }, p = (f, m, x) => {
3845
- let z = a[m][x][0], F = a[m][x][1], X = m + "_" + x, V;
3846
- m > 0 && (V = O(), V.x1 = z, V.y1 = F, V.x2 = z + T(I.value[x]), V.y2 = F, V.r = m, V.c = x, g.has(X) ? g.get(X).sameRow && (j(V, m, x, 1), d(V.lineWidth) || (V.y1 += 0.5, V.y2 += 0.5), f.push(V)) : (j(V, m, x, 1), d(V.lineWidth) || (V.y1 += 0.5, V.y2 += 0.5), f.push(V))), x > 0 && (V = O(), V.x1 = z, V.y1 = F, V.x2 = z, V.y2 = F + T(_.value[m]), V.r = m, V.c = x, g.has(X) ? g.get(X).sameCol && (j(V, m, x, 2), d(V.lineWidth) || (V.x1 += 0.5, V.x2 += 0.5), f.push(V)) : (j(V, m, x, 2), d(V.lineWidth) || (V.x1 += 0.5, V.x2 += 0.5), f.push(V)));
3847
- }, j = (f, m, x, z) => {
3848
- let F = m + "_" + x, X = m, V = x;
3849
- if (g.has(F)) {
3850
- let ae = g.get(F);
3851
- X = ae.startRow, V = ae.startCol;
3844
+ }, g = (f, y, w) => {
3845
+ let z = a[y][w][0], F = a[y][w][1], X = y + "_" + w, M;
3846
+ y > 0 && (M = R(), M.x1 = z, M.y1 = F, M.x2 = z + B(W.value[w]), M.y2 = F, M.r = y, M.c = w, h.has(X) ? h.get(X).sameRow && (j(M, y, w, 1), d(M.lineWidth) || (M.y1 += 0.5, M.y2 += 0.5), f.push(M)) : (j(M, y, w, 1), d(M.lineWidth) || (M.y1 += 0.5, M.y2 += 0.5), f.push(M))), w > 0 && (M = R(), M.x1 = z, M.y1 = F, M.x2 = z, M.y2 = F + B(S.value[y]), M.r = y, M.c = w, h.has(X) ? h.get(X).sameCol && (j(M, y, w, 2), d(M.lineWidth) || (M.x1 += 0.5, M.x2 += 0.5), f.push(M)) : (j(M, y, w, 2), d(M.lineWidth) || (M.x1 += 0.5, M.x2 += 0.5), f.push(M)));
3847
+ }, j = (f, y, w, z) => {
3848
+ let F = y + "_" + w, X = y, M = w;
3849
+ if (h.has(F)) {
3850
+ let se = h.get(F);
3851
+ X = se.startRow, M = se.startCol;
3852
3852
  }
3853
- if (F = X + "_" + V, u.has(F)) {
3854
- let ae = u.get(F);
3855
- f.strokeStyle = ae.color, f.lineWidth = ae.width, f.dash = ae.dash;
3853
+ if (F = X + "_" + M, u.has(F)) {
3854
+ let se = u.get(F);
3855
+ f.strokeStyle = se.color, f.lineWidth = se.width, f.dash = se.dash;
3856
3856
  } else
3857
- z == 1 ? e(l.rowLine) && l.rowLine.length > m ? (f.strokeStyle = l.rowLine[m].color, f.lineWidth = l.rowLine[m].width, f.dash = l.rowLine[m].dash) : (f.strokeStyle = l.rowStyle.color, f.lineWidth = l.rowStyle.width, f.dash = l.rowStyle.dash) : e(l.colLine) && l.colLine.length > x ? (f.strokeStyle = l.colLine[x].color, f.lineWidth = l.colLine[x].width, f.dash = l.colLine[x].dash) : (f.strokeStyle = l.colStyle.color, f.lineWidth = l.colStyle.width, f.dash = l.colStyle.dash);
3857
+ z == 1 ? e(o.rowLine) && o.rowLine.length > y ? (f.strokeStyle = o.rowLine[y].color, f.lineWidth = o.rowLine[y].width, f.dash = o.rowLine[y].dash) : (f.strokeStyle = o.rowStyle.color, f.lineWidth = o.rowStyle.width, f.dash = o.rowStyle.dash) : e(o.colLine) && o.colLine.length > w ? (f.strokeStyle = o.colLine[w].color, f.lineWidth = o.colLine[w].width, f.dash = o.colLine[w].dash) : (f.strokeStyle = o.colStyle.color, f.lineWidth = o.colStyle.width, f.dash = o.colStyle.dash);
3858
3858
  };
3859
3859
  q(() => {
3860
- i.value = n.value.getContext("2d"), h();
3861
- }), A(() => l.mergedCells, (f) => {
3862
- if (f && (y.clear(), g.clear(), l.mergedCells.length > 0)) {
3863
- let m, x;
3864
- for (let z = 0; z < l.mergedCells.length; z++)
3865
- if (m = l.mergedCells[z], !(m.row < 0 || y.col < 0) && (m.rowSpan >= 2 || m.colSpan >= 2)) {
3866
- m.row + m.rowSpan > l.rows && (m.rowSpan = l.rows - m.row), m.col + m.colSpan > l.cols && (m.colSpan = l.cols - m.col);
3860
+ i.value = l.value.getContext("2d"), p();
3861
+ }), A(() => o.mergedCells, (f) => {
3862
+ if (f && (m.clear(), h.clear(), o.mergedCells.length > 0)) {
3863
+ let y, w;
3864
+ for (let z = 0; z < o.mergedCells.length; z++)
3865
+ if (y = o.mergedCells[z], !(y.row < 0 || m.col < 0) && (y.rowSpan >= 2 || y.colSpan >= 2)) {
3866
+ y.row + y.rowSpan > o.rows && (y.rowSpan = o.rows - y.row), y.col + y.colSpan > o.cols && (y.colSpan = o.cols - y.col);
3867
3867
  let F = 0, X = 0;
3868
- y.set(m.row + "_" + m.col, { ...m });
3869
- for (let V = 0; V < m.rowSpan; V++)
3870
- for (let ae = 0; ae < m.colSpan; ae++)
3871
- V == 0 && ae == 0 || (F = m.row + V, X = m.col + ae, x = F + "_" + X, F == m.row ? g.set(x, {
3868
+ m.set(y.row + "_" + y.col, { ...y });
3869
+ for (let M = 0; M < y.rowSpan; M++)
3870
+ for (let se = 0; se < y.colSpan; se++)
3871
+ M == 0 && se == 0 || (F = y.row + M, X = y.col + se, w = F + "_" + X, F == y.row ? h.set(w, {
3872
3872
  sameRow: !0,
3873
3873
  sameCol: !1,
3874
- startRow: m.row,
3875
- startCol: m.col
3876
- }) : X == m.col ? g.set(x, {
3874
+ startRow: y.row,
3875
+ startCol: y.col
3876
+ }) : X == y.col ? h.set(w, {
3877
3877
  sameRow: !1,
3878
3878
  sameCol: !0,
3879
- startRow: m.row,
3880
- startCol: m.col
3881
- }) : g.set(x, {
3879
+ startRow: y.row,
3880
+ startCol: y.col
3881
+ }) : h.set(w, {
3882
3882
  sameRow: !1,
3883
3883
  sameCol: !1,
3884
- startRow: m.row,
3885
- startCol: m.col
3884
+ startRow: y.row,
3885
+ startCol: y.col
3886
3886
  }));
3887
3887
  }
3888
3888
  }
3889
- }, { immediate: !0 }), A(() => l.cellStyle, (f) => {
3890
- if (f && (u.clear(), l.cellStyle.length > 0)) {
3891
- let m;
3892
- for (let x = 0; x < l.cellStyle.length; x++)
3893
- m = l.cellStyle[x], S(m.row, m.col) && u.set(m.row + "_" + m.col, { ...m });
3889
+ }, { immediate: !0 }), A(() => o.cellStyle, (f) => {
3890
+ if (f && (u.clear(), o.cellStyle.length > 0)) {
3891
+ let y;
3892
+ for (let w = 0; w < o.cellStyle.length; w++)
3893
+ y = o.cellStyle[w], _(y.row, y.col) && u.set(y.row + "_" + y.col, { ...y });
3894
3894
  }
3895
3895
  }, { immediate: !0 });
3896
- const S = (f, m) => !(f < 0 || m < 0 || f > l.rows || m > l.cols), T = (f) => parseFloat(f) ?? 0, O = () => ({
3896
+ const _ = (f, y) => !(f < 0 || y < 0 || f > o.rows || y > o.cols), B = (f) => parseFloat(f) ?? 0, R = () => ({
3897
3897
  x1: 0,
3898
3898
  y1: 0,
3899
3899
  x2: 0,
@@ -3901,17 +3901,17 @@ const Eo = /* @__PURE__ */ he(Ao, [["render", Fo], ["__scopeId", "data-v-5653920
3901
3901
  strokeStyle: "#F8F8FF",
3902
3902
  lineWidth: 1,
3903
3903
  dash: []
3904
- }), C = (f, m, x) => {
3905
- if (e(m) && m.length > 0) {
3906
- let z = !!x;
3907
- z && f.beginPath(), m.forEach((F, X) => {
3904
+ }), C = (f, y, w) => {
3905
+ if (e(y) && y.length > 0) {
3906
+ let z = !!w;
3907
+ z && f.beginPath(), y.forEach((F, X) => {
3908
3908
  if (Number(F.lineWidth) > 0) {
3909
- if (z || f.beginPath(), f.strokeStyle = F.strokeStyle, f.lineWidth = F.lineWidth, o(F.dash))
3909
+ if (z || f.beginPath(), f.strokeStyle = F.strokeStyle, f.lineWidth = F.lineWidth, n(F.dash))
3910
3910
  if (e(F.dash))
3911
3911
  f.setLineDash(F.dash);
3912
3912
  else {
3913
- let V = F.dash.split(",");
3914
- f.setLineDash(V);
3913
+ let M = F.dash.split(",");
3914
+ f.setLineDash(M);
3915
3915
  }
3916
3916
  else
3917
3917
  f.setLineDash([]);
@@ -3921,44 +3921,44 @@ const Eo = /* @__PURE__ */ he(Ao, [["render", Fo], ["__scopeId", "data-v-5653920
3921
3921
  }
3922
3922
  }, Y = () => {
3923
3923
  Se(() => {
3924
- h();
3924
+ p();
3925
3925
  });
3926
3926
  };
3927
3927
  s({
3928
3928
  redraw: Y
3929
3929
  });
3930
- const B = { consolePrint: r, isArray: e, isEven: d, isNotEmpty: o, props: l, canvasRef: n, ctx: i, get cellPosition() {
3930
+ const T = { consolePrint: r, isArray: e, isEven: d, isNotEmpty: n, props: o, canvasRef: l, ctx: i, get cellPosition() {
3931
3931
  return a;
3932
3932
  }, set cellPosition(f) {
3933
3933
  a = f;
3934
3934
  }, get mergedCellInfo() {
3935
- return g;
3935
+ return h;
3936
3936
  }, set mergedCellInfo(f) {
3937
- g = f;
3937
+ h = f;
3938
3938
  }, get mergeCellInfo() {
3939
- return y;
3939
+ return m;
3940
3940
  }, set mergeCellInfo(f) {
3941
- y = f;
3941
+ m = f;
3942
3942
  }, get cellStyleMap() {
3943
3943
  return u;
3944
3944
  }, set cellStyleMap(f) {
3945
3945
  u = f;
3946
- }, computedRowHeights: _, computedColWidths: I, canvasWidth: L, canvasHeight: D, drawGrid: h, _drawBorder: H, _setBorderStyle: R, _drawCellArea: W, _drawDiagonal: v, _calcCellPosition: c, drawCell: p, _setCellStyle: j, _checkValidCell: S, _getVal: T, _getDefaultLineObj: O, drawLine: C, redraw: Y, computed: w, onMounted: q, ref: b, watch: A, nextTick: Se, get CommonUtils() {
3946
+ }, computedRowHeights: S, computedColWidths: W, canvasWidth: L, canvasHeight: D, drawGrid: p, _drawBorder: V, _setBorderStyle: H, _drawCellArea: I, _drawDiagonal: v, _calcCellPosition: c, drawCell: g, _setCellStyle: j, _checkValidCell: _, _getVal: B, _getDefaultLineObj: R, drawLine: C, redraw: Y, computed: x, onMounted: q, ref: b, watch: A, nextTick: Se, get CommonUtils() {
3947
3947
  return Q;
3948
3948
  } };
3949
- return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
3949
+ return Object.defineProperty(T, "__isScriptSetup", { enumerable: !1, value: !0 }), T;
3950
3950
  }
3951
3951
  };
3952
- function No(t, s, r, e, d, o) {
3952
+ function No(t, s, r, e, d, n) {
3953
3953
  return P(), K("div", { class: "canvas-grid-container" }, [
3954
- re("canvas", {
3954
+ ue("canvas", {
3955
3955
  ref: "canvasRef",
3956
3956
  width: e.canvasWidth,
3957
3957
  height: e.canvasHeight
3958
3958
  }, null, 8, ["width", "height"])
3959
3959
  ]);
3960
3960
  }
3961
- const Ko = /* @__PURE__ */ he(zo, [["render", No], ["__scopeId", "data-v-6480756a"], ["__file", "BaseGridTable.vue"]]), Go = /* @__PURE__ */ Object.assign({
3961
+ const Ko = /* @__PURE__ */ pe(zo, [["render", No], ["__scopeId", "data-v-6480756a"], ["__file", "BaseGridTable.vue"]]), Go = /* @__PURE__ */ Object.assign({
3962
3962
  name: "GridTable"
3963
3963
  }, {
3964
3964
  __name: "Component",
@@ -3980,77 +3980,77 @@ const Ko = /* @__PURE__ */ he(zo, [["render", No], ["__scopeId", "data-v-6480756
3980
3980
  }
3981
3981
  },
3982
3982
  setup(t, { expose: s }) {
3983
- const r = t, e = se(), d = ie(e), o = b(null), l = w(() => r.propValue || {}), n = w(() => r.element || {}), i = w(() => n.value.events || []), a = le(), g = oe(), y = ee(l, n, a, g);
3983
+ const r = t, e = ne(), d = re(e), n = b(null), o = x(() => r.propValue || {}), l = x(() => r.element || {}), i = x(() => l.value.events || []), a = le(), h = oe(), m = ee(o, l, a, h);
3984
3984
  J(() => {
3985
- o.value = te(i.value, r.designStatus, y), o.value?.beforeMount();
3985
+ n.value = te(i.value, r.designStatus, m), n.value?.beforeMount();
3986
3986
  }), q(() => {
3987
- o.value?.mounted();
3987
+ n.value?.mounted();
3988
3988
  }), Z(() => {
3989
- o.value?.beforeUnmount();
3989
+ n.value?.beforeUnmount();
3990
3990
  }), $(() => {
3991
- o.value?.unmounted();
3991
+ n.value?.unmounted();
3992
3992
  });
3993
3993
  const u = b(null);
3994
- A([() => n.value.style.width, () => n.value.style.height], ([H, R]) => {
3995
- u.value && (l.value.autoResize ? D() : u.value.redraw());
3994
+ A([() => l.value.style.width, () => l.value.style.height], ([V, H]) => {
3995
+ u.value && (o.value.autoResize ? D() : u.value.redraw());
3996
3996
  });
3997
- const _ = b([]), I = b([]), L = () => {
3998
- if (!l.value.autoResize)
3997
+ const S = b([]), W = b([]), L = () => {
3998
+ if (!o.value.autoResize)
3999
3999
  return;
4000
- let H = Array.from(
4001
- { length: l.value.rows },
4002
- (W, v) => l.value?.rowHeights?.length > v ? Number(l.value?.rowHeights[v] || l.value.cellHeight) ?? 0 : Number(l.value.cellHeight) ?? 0
4000
+ let V = Array.from(
4001
+ { length: o.value.rows },
4002
+ (I, v) => o.value?.rowHeights?.length > v ? Number(o.value?.rowHeights[v] || o.value.cellHeight) ?? 0 : Number(o.value.cellHeight) ?? 0
4003
4003
  );
4004
- if (n.value.style.height > 0) {
4005
- let W = 0;
4006
- W = H.reduce((S, T) => S + T, 0);
4004
+ if (l.value.style.height > 0) {
4005
+ let I = 0;
4006
+ I = V.reduce((_, B) => _ + B, 0);
4007
4007
  let v = [], c = 0;
4008
- for (let S = 0; S < l.value.rows; S++)
4009
- v[S] = Math.floor(H[S] / W * n.value.style.height, 0), c += v[S];
4010
- let p = n.value.style.height - c, j = Math.min(p, l.value.rows);
4011
- for (let S = j - 1; S >= 0; S--)
4012
- v[S] += 1;
4013
- _.value = [...v];
4008
+ for (let _ = 0; _ < o.value.rows; _++)
4009
+ v[_] = Math.floor(V[_] / I * l.value.style.height, 0), c += v[_];
4010
+ let g = l.value.style.height - c, j = Math.min(g, o.value.rows);
4011
+ for (let _ = j - 1; _ >= 0; _--)
4012
+ v[_] += 1;
4013
+ S.value = [...v];
4014
4014
  }
4015
- let R = Array.from(
4016
- { length: l.value.cols },
4017
- (W, v) => l.value?.colWidths?.length > v ? Number(l.value?.colWidths[v] || l.value.cellWidth) ?? 0 : Number(l.value.cellWidth) ?? 0
4015
+ let H = Array.from(
4016
+ { length: o.value.cols },
4017
+ (I, v) => o.value?.colWidths?.length > v ? Number(o.value?.colWidths[v] || o.value.cellWidth) ?? 0 : Number(o.value.cellWidth) ?? 0
4018
4018
  );
4019
- if (n.value.style.width > 0) {
4020
- let W = 0;
4021
- W = R.reduce((S, T) => S + T, 0);
4019
+ if (l.value.style.width > 0) {
4020
+ let I = 0;
4021
+ I = H.reduce((_, B) => _ + B, 0);
4022
4022
  let v = [], c = 0;
4023
- for (let S = 0; S < l.value.cols; S++)
4024
- v[S] = Math.floor(R[S] / W * n.value.style.width, 0), c += v[S];
4025
- let p = n.value.style.width - c, j = Math.min(p, l.value.cols);
4026
- for (let S = j - 1; S >= 0; S--)
4027
- v[S] += 1;
4028
- I.value = [...v];
4023
+ for (let _ = 0; _ < o.value.cols; _++)
4024
+ v[_] = Math.floor(H[_] / I * l.value.style.width, 0), c += v[_];
4025
+ let g = l.value.style.width - c, j = Math.min(g, o.value.cols);
4026
+ for (let _ = j - 1; _ >= 0; _--)
4027
+ v[_] += 1;
4028
+ W.value = [...v];
4029
4029
  }
4030
4030
  u.value?.redraw();
4031
4031
  }, D = tt(L, 500);
4032
- A(() => l.value.autoResize, (H) => {
4033
- H && D();
4032
+ A(() => o.value.autoResize, (V) => {
4033
+ V && D();
4034
4034
  }, { immediate: !0 }), s({});
4035
- const h = { props: r, dataCache: e, smartData: d, eventHandler: o, propValue: l, element: n, events: i, router: a, route: g, compContext: y, baseGridTableRef: u, rowHeights: _, colWidths: I, _autoCalcWidthAndHeight: L, debouncedAutoCalcWidthAndHeight: D, get useEventHandler() {
4035
+ const p = { props: r, dataCache: e, smartData: d, eventHandler: n, propValue: o, element: l, events: i, router: a, route: h, compContext: m, baseGridTableRef: u, rowHeights: S, colWidths: W, _autoCalcWidthAndHeight: L, debouncedAutoCalcWidthAndHeight: D, get useEventHandler() {
4036
4036
  return te;
4037
4037
  }, get useDataCacheStore() {
4038
- return se;
4038
+ return ne;
4039
4039
  }, get createSmartAccessor() {
4040
- return ie;
4040
+ return re;
4041
4041
  }, get CreateCompContext() {
4042
4042
  return ee;
4043
- }, ref: b, computed: w, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, watch: A, reactive: Xe, get useRoute() {
4043
+ }, ref: b, computed: x, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, watch: A, reactive: Xe, get useRoute() {
4044
4044
  return oe;
4045
4045
  }, get useRouter() {
4046
4046
  return le;
4047
4047
  }, BaseGridTable: Ko, get debounce() {
4048
4048
  return tt;
4049
4049
  } };
4050
- return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
4050
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
4051
4051
  }
4052
4052
  });
4053
- function Uo(t, s, r, e, d, o) {
4053
+ function Uo(t, s, r, e, d, n) {
4054
4054
  return P(), K("div", { class: "grid-container" }, [
4055
4055
  Ve(e.BaseGridTable, {
4056
4056
  ref: "baseGridTableRef",
@@ -4073,34 +4073,107 @@ function Uo(t, s, r, e, d, o) {
4073
4073
  }, null, 8, ["rows", "cols", "cell-width", "cell-height", "row-heights", "col-widths", "merged-cells", "diagonal-cells", "row-style", "row-line", "col-style", "col-line", "cell-style", "diagonal-style", "borders", "border-style"])
4074
4074
  ]);
4075
4075
  }
4076
- const Xo = /* @__PURE__ */ he(Go, [["render", Uo], ["__scopeId", "data-v-dced3ee3"], ["__file", "Component.vue"]]), Yo = [
4076
+ const Xo = /* @__PURE__ */ pe(Go, [["render", Uo], ["__scopeId", "data-v-dced3ee3"], ["__file", "Component.vue"]]), Yo = /* @__PURE__ */ Object.assign({
4077
+ name: "Paragraph"
4078
+ }, {
4079
+ __name: "Component",
4080
+ props: {
4081
+ propValue: {
4082
+ type: Object,
4083
+ required: !0,
4084
+ default: () => {
4085
+ }
4086
+ },
4087
+ element: {
4088
+ type: Object,
4089
+ default: () => {
4090
+ }
4091
+ },
4092
+ designStatus: {
4093
+ type: Boolean,
4094
+ default: !1
4095
+ }
4096
+ },
4097
+ setup(t, { expose: s }) {
4098
+ const { isNotEmpty: r } = Q, e = t, d = ne(), n = re(d), o = b(null), l = x(() => e.propValue || {}), i = x(() => e.element || {}), a = x(() => i.value.events || []), h = le(), m = oe(), u = ee(l, i, h, m);
4099
+ J(() => {
4100
+ o.value = te(a.value, e.designStatus, u), o.value?.beforeMount();
4101
+ }), q(() => {
4102
+ o.value?.mounted();
4103
+ }), Z(() => {
4104
+ o.value?.beforeUnmount();
4105
+ }), $(() => {
4106
+ o.value?.unmounted();
4107
+ });
4108
+ const S = (V) => {
4109
+ o.value?.handleClick(V);
4110
+ }, W = (V) => {
4111
+ o.value?.handleDblClick(V);
4112
+ }, L = x(() => r(l.value.text) ? l.value.text.replace(/\n/g, "<br/>") : ""), D = x(() => {
4113
+ let V = {};
4114
+ if (l.value.fontColor && (V.color = l.value.fontColor), l.value.fontSize && (V["font-size"] = l.value.fontSize + "px"), l.value.fontFamily && (V["font-family"] = l.value.fontFamily), l.value.fontWeight && (V["font-weight"] = l.value.fontWeight), l.value.fontStyle && (V["font-style"] = l.value.fontStyle), l.value.textAlign && (V["text-align"] = l.value.textAlign), l.value.extraStyles) {
4115
+ let H = Object.keys(l.value.extraStyles);
4116
+ for (let I = 0; I < H.length; I++)
4117
+ V[H[I]] = l.value.extraStyles[H[I]];
4118
+ }
4119
+ return V;
4120
+ });
4121
+ s({});
4122
+ const p = { isNotEmpty: r, props: e, dataCache: d, smartData: n, eventHandler: o, propValue: l, element: i, events: a, router: h, route: m, compContext: u, handleClick: S, handleDblClick: W, formattedText: L, customStyle: D, get useDataCacheStore() {
4123
+ return ne;
4124
+ }, get createSmartAccessor() {
4125
+ return re;
4126
+ }, ref: b, computed: x, onMounted: q, onBeforeMount: J, onBeforeUnmount: Z, onUnmounted: $, get useEventHandler() {
4127
+ return te;
4128
+ }, get useRoute() {
4129
+ return oe;
4130
+ }, get useRouter() {
4131
+ return le;
4132
+ }, get CreateCompContext() {
4133
+ return ee;
4134
+ }, get CommonUtils() {
4135
+ return Q;
4136
+ } };
4137
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
4138
+ }
4139
+ });
4140
+ function qo(t, s, r, e, d, n) {
4141
+ return P(), K("p", {
4142
+ style: Re(e.customStyle),
4143
+ innerHTML: e.formattedText,
4144
+ onClick: e.handleClick,
4145
+ onDblclick: e.handleDblClick
4146
+ }, null, 44, ["innerHTML"]);
4147
+ }
4148
+ const Zo = /* @__PURE__ */ pe(Yo, [["render", qo], ["__file", "Component.vue"]]), Qo = [
4077
4149
  zt,
4078
4150
  Gt,
4079
4151
  to,
4080
4152
  no,
4081
4153
  uo,
4082
4154
  co,
4083
- ho,
4155
+ po,
4084
4156
  go,
4085
4157
  bo,
4086
4158
  So,
4087
4159
  Vo,
4088
4160
  Oo,
4089
4161
  Ho,
4090
- To,
4162
+ Bo,
4091
4163
  Eo,
4092
- Xo
4164
+ Xo,
4165
+ Zo
4093
4166
  ], it = (t) => {
4094
4167
  if (it.installed)
4095
4168
  return;
4096
4169
  it.installed = !0;
4097
4170
  const s = t._context.provides["hflvloader-api"];
4098
- s && t.provide("hflvcomp-api", s), Yo.forEach((r) => {
4171
+ s && t.provide("hflvcomp-api", s), Qo.forEach((r) => {
4099
4172
  t.component(r.name, r);
4100
4173
  });
4101
- }, Jo = {
4174
+ }, tn = {
4102
4175
  install: it
4103
4176
  };
4104
4177
  export {
4105
- Jo as default
4178
+ tn as default
4106
4179
  };