159 lines
358 KiB
JavaScript
Raw Normal View History

2025-06-30 09:38:03 +08:00
import{M as MonacoEditor}from"./monaco-editor-f9caa2e2.js";import{a0 as getAugmentedNamespace,a1 as require$$0,a2 as commonjsGlobal,a3 as getDefaultExportFromCjs,_ as _export_sfc$1,a4 as common$1,r as resolveComponent,j as resolveDirective,o as openBlock,d as createBlock,w as withCtx,k as withDirectives,c as createElementBlock,a5 as withModifiers,n as normalizeClass,f as createBaseVNode,C as withKeys,a6 as vModelText,t as toDisplayString,b as createVNode,a7 as vShow,a8 as website,Q as uuid,F as Fragment,a as renderList,l as createTextVNode,u as createCommentVNode,a9 as renderSlot,S as funEval,E as pushScopeId,G as popScopeId,m as mergeProps,i as getObj,aa as config,A as updateObj,ab as dataURLtoFile,ac as uploadImg,ad as updateComponent,v as url,ae as normalizeStyle,R as dicOption,af as createFile,ag as colorOption,ah as tableOption,ai as __vite_glob_1_0,aj as __vite_glob_1_1,ak as __vite_glob_1_2,al as __vite_glob_1_3,am as __vite_glob_1_4,an as defineComponent,ao as ref,ap as computed,aq as watch,ar as onMounted,as as reactive,at as init,H as crypto,M as getList,$ as getList$1,e as resolveDynamicComponent}from"./index-f87df9cc.js";import{d as db}from"./db-e07de7fa.js";import glob$2 from"./glob-edbaac1a.js";import file from"./file-c434bf67.js";import{c as codeEdit,a as componentList,g as getObj$1}from"./components-a72f2dc5.js";import maps from"./map-51b4089a.js";var vuedraggable_umd={exports:{}};/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function ownKeys(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);e&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,s)}return r}function _objectSpread2(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(s){_defineProperty(o,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(r,s))})}return o}function _typeof(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(e){return typeof e}:_typeof=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(o)}function _defineProperty(o,e,r){return e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function _extends(){return _extends=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[s]=r[s])}return o},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(o,e){if(o==null)return{};var r={},s=Object.keys(o),a,t;for(t=0;t<s.length;t++)a=s[t],!(e.indexOf(a)>=0)&&(r[a]=o[a]);return r}function _objectWithoutProperties(o,e){if(o==null)return{};var r=_objectWithoutPropertiesLoose(o,e),s,a;if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);for(a=0;a<t.length;a++)s=t[a],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(r[s]=o[s])}return r}function _toConsumableArray(o){return _arrayWithoutHoles(o)||_iterableToArray(o)||_unsupportedIterableToArray(o)||_nonIterableSpread()}function _arrayWithoutHoles(o){if(Array.isArray(o))return _arrayLikeToArray(o)}function _iterableToArray(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function _unsupportedIterableToArray(o,e){if(o){if(typeof o=="string")return _arrayLikeToArray(o,e);var r=Object.prototype.toString.call(o).slice(8,-1);if(r==="Object"&&o.constructor&&(r=o.constructor.name),r==="Map"||r==="Set")return Array.from(o);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(o,e)}}function _arrayLikeToArray(o,e){(e==null||e>o.length)&&(e=o.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=o[r];return s}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var version="1.14.0";function userAgent(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(o,e,r){o.addEventListener(e,r,!IE11OrLess&&captureMode)}function off(o,e,r){o.removeEventListener(e,r,!IE11OrLess&&captureMode)}function matches(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function getParentOrHost(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function closest(o,e,r,s){if(o){r=r||document;do{if(e!=null&&(e[0]===">"?o.parentNode===r&&matches(o,e):matches(o,e))||s&&o===r)return o;if(o===r)break}while(o=getParentOrHost(o))}return null}var R_SPACE=/\s+/g;function toggleClass(o,e,r){if(o&&e)if(o.classList)o.classList[r?"add":"remove"](e);else{var s=(" "+o.className+" ").replace(R_SPACE," ").replace(" "+e+" "," ");o.className=(s+(r?" "+e:"")).replace(R_SPACE," ")}}function css(o,e,r){var s=o&&o.style;if(s){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(r=o.currentStyle),e===void 0?r:r[e];!(e in s)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),s[e]=r+(typeof r=="string"?"":"px")}}function matrix(o,e){var r="";if(typeof o=="string")r=o;else do{var s=css(o,"transform");s&&s!=="none"&&(r=s+" "+r)}while(!e&&(o=o.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function find(o,e,r){if(o){var s=o.getElementsByTagName(e),a=0,t=s.length;if(r)for(;a<t;a++)r(s[a],a);return s}return[]}function getWindowScrollingElement(){var o=document.scrollingElement;return o||document.documentElement}function getRect(o,e,r,s,a){if(!(!o.getBoundingClientRect&&o!==window)){var t,n,l,i,d,u,c;if(o!==window&&o.parentNode&&o!==getWindowScrollingElement()?(t=o.getBoundingClientRect(),n=t.top,l=t.left,i=t.bottom,d=t.right,u=t.height,c=t.width):(n=0,l=0,i=window.innerHeight,d=window.innerWidth,u=window.innerHeight,c=window.innerWidth),(e||r)&&o!==window&&(a=a||o.parentNode,!IE11OrLess))do if(a&&a.getBoundingClientRect&&(css(a,"transform")!=="none"||r&&css(a,"position")!=="static")){var p=a.getBoundingClientRect();n-=p.top+parseInt(css(a,"border-top-width")),l-=p.left+parseInt(css(a,"border-left-width")),i=n+t.height,d=l+t.width;break}while(a=a.parentNode);if(s&&o!==window){var f=matrix(a||o),v=f&&f.a,m=f&&f.d;f&&(n/=m,l/=v,c/=v,u/=m,i=n+u,d=l+c)}return{top:n,left:l,bottom:i,right:d,width:c,height:u}}}function isScrolledPast(o,e,r){for(var s=getParentAutoScrollElement(o,!0),a=getRect(o)[e];s;){var t=getRect(s)[r],n=void 0;if(r==="top"||r==="left"?n=a>=t:n=a<=t,!n)return s;if(s===getWindowScrollingElement())break;s=getParentAutoScrollElement(s,!1)}return!1}function getChild(o,e,r,s){for(var a=0,t=0,n=o.children;t<n.length;){if(n[t].style.display!=="none"&&n[t]!==Sortable.ghost&&(s||n[t]!==Sortable.dragged)&&closest(n[t],r.draggable,o,!1)){if(a===e)return n[t];a++}t++}return null}function lastChild(o,e){for(var r=o.lastElementChild;r&&(r===Sortable.ghost||css(r,"display")==="none"||e&&!matches(r,e));)r=r.previousElementSibling;return r||null}function index(o,e){var r=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==Sortable.clone&&(!e||matches(o,e))&&r++;return r}function getRelativeScrollOffset(o){var e=0,r=0,s=getWindowScrollingElement();if(o)do{var a=matrix(o),t=a.a,n=a.d;e+=o.scrollLeft*t,r+=o.scrollTop*n}while(o!==s&&(o=o.parentNode));return[e,r]}function indexOfObject(o,e){for(var
`)&&(E="(?: "+E+")",k=" "+k,D++),V=new RegExp("^(?:"+E+")",A)),v&&(V=new RegExp("^"+E+"$(?!\\s)",A)),p&&(C=_.lastIndex),S=d.call(j?V:_,k),j?S?(S.input=S.input.slice(D),S[0]=S[0].slice(D),S.index=_.lastIndex,_.lastIndex+=S[0].length):_.lastIndex=0:p&&S&&(_.lastIndex=_.global?S.index+S[0].length:C),v&&S&&S.length>1&&u.call(S[0],V,function(){for(b=1;b<arguments.length-2;b++)arguments[b]===void 0&&(S[b]=void 0)}),S}),a.exports=c},"94ca":function(a,t,n){var l=n("d039"),i=/#|\.prototype\./,d=function(v,m){var h=c[u(v)];return h==f?!0:h==p?!1:typeof m=="function"?l(m):!!m},u=d.normalize=function(v){return String(v).replace(i,".").toLowerCase()},c=d.data={},p=d.NATIVE="N",f=d.POLYFILL="P";a.exports=d},"99af":function(a,t,n){var l=n("23e7"),i=n("d039"),d=n("e8b5"),u=n("861d"),c=n("7b0b"),p=n("50c4"),f=n("8418"),v=n("65f0"),m=n("1dde"),h=n("b622"),g=n("2d00"),_=h("isConcatSpreadable"),C=9007199254740991,V="Maximum allowed index exceeded",S=g>=51||!i(function(){var E=[];return E[_]=!1,E.concat()[0]!==E}),b=m("concat"),j=function(E){if(!u(E))return!1;var D=E[_];return D!==void 0?!!D:d(E)},A=!S||!b;l({target:"Array",proto:!0,forced:A},{concat:function(D){var k=c(this),B=v(k,0),w=0,I,F,U,L,H;for(I=-1,U=arguments.length;I<U;I++)if(H=I===-1?k:arguments[I],j(H)){if(L=p(H.length),w+L>C)throw TypeError(V);for(F=0;F<L;F++,w++)F in H&&f(B,w,H[F])}else{if(w>=C)throw TypeError(V);f(B,w++,H)}return B.length=w,B}})},"9bdd":function(a,t,n){var l=n("825a");a.exports=function(i,d,u,c){try{return c?d(l(u)[0],u[1]):d(u)}catch(f){var p=i.return;throw p!==void 0&&l(p.call(i)),f}}},"9bf2":function(a,t,n){var l=n("83ab"),i=n("0cfb"),d=n("825a"),u=n("c04e"),c=Object.defineProperty;t.f=l?c:function(f,v,m){if(d(f),v=u(v,!0),d(m),i)try{return c(f,v,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(f[v]=m.value),f}},"9ed3":function(a,t,n){var l=n("ae93").IteratorPrototype,i=n("7c73"),d=n("5c6c"),u=n("d44e"),c=n("3f8c"),p=function(){return this};a.exports=function(f,v,m){var h=v+" Iterator";return f.prototype=i(l,{next:d(1,m)}),u(f,h,!1,!0),c[h]=p,f}},"9f7f":function(a,t,n){var l=n("d039");function i(d,u){return RegExp(d,u)}t.UNSUPPORTED_Y=l(function(){var d=i("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),t.BROKEN_CARET=l(function(){var d=i("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(a,t,n){var l=n("e8b5"),i=n("50c4"),d=n("0366"),u=function(c,p,f,v,m,h,g,_){for(var C=m,V=0,S=g?d(g,_,3):!1,b;V<v;){if(V in f){if(b=S?S(f[V],V,p):f[V],h>0&&l(b))C=u(c,p,b,i(b.length),C,h-1)-1;else{if(C>=9007199254740991)throw TypeError("Exceed the acceptable array length");c[C]=b}C++}V++}return C};a.exports=u},a352:function(a,t){a.exports=s},a434:function(a,t,n){var l=n("23e7"),i=n("23cb"),d=n("a691"),u=n("50c4"),c=n("7b0b"),p=n("65f0"),f=n("8418"),v=n("1dde"),m=n("ae40"),h=v("splice"),g=m("splice",{ACCESSORS:!0,0:0,1:2}),_=Math.max,C=Math.min,V=9007199254740991,S="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!h||!g},{splice:function(j,A){var E=c(this),D=u(E.length),k=i(j,D),B=arguments.length,w,I,F,U,L,H;if(B===0?w=I=0:B===1?(w=0,I=D-k):(w=B-2,I=C(_(d(A),0),D-k)),D+w-I>V)throw TypeError(S);for(F=p(E,I),U=0;U<I;U++)L=k+U,L in E&&f(F,U,E[L]);if(F.length=I,w<I){for(U=k;U<D-I;U++)L=U+I,H=U+w,L in E?E[H]=E[L]:delete E[H];for(U=D;U>D-I+w;U--)delete E[U-1]}else if(w>I)for(U=D-I;U>k;U--)L=U+I-1,H=U+w-1,L in E?E[H]=E[L]:delete E[H];for(U=0;U<w;U++)E[U+k]=arguments[U+2];return E.length=D-I+w,F}})},a4d3:function(a,t,n){var l=n("23e7"),i=n("da84"),d=n("d066"),u=n("c430"),c=n("83ab"),p=n("4930"),f=n("fdbf"),v=n("d039"),m=n("5135"),h=n("e8b5"),g=n("861d"),_=n("825a"),C=n("7b0b"),V=n("fc6a"),S=n("c04e"),b=n("5c6c"),j=n("7c73"),A=n("df75"),E=n("241c"),D=n("057f"),k=n("7418"),B=n("06cf"),w=n("9bf2"),I=n("d1e7"),F=n("9112"),U=n("6eeb"),L=n("5692"),H=n("f772"),Q=n("d012"),ae=n("90e3"),J=n("b622"),ee=n("e538"),$=n("746f"),oe=n("d44e"),te=n("69f3"),Z=n("b727").forEach,q=H("hidden"),de="Symbol",ie="prototype",ce=J("toPrimitive"),ue=te.set,ve=te.getterFor(de),le=Object[ie],re=i.Symbol,ge=d("JSON","strin
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(y,x){return f(y)||v(y,x)||h(y,x)||g()}function C(y){if(Array.isArray(y))return m(y)}function V(y){if(typeof Symbol<"u"&&Symbol.iterator in Object(y))return Array.from(y)}function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(y){return C(y)||V(y)||h(y)||S()}var j=n("a352"),A=n.n(j);function E(y){y.parentElement!==null&&y.parentElement.removeChild(y)}function D(y,x,O){var T=O===0?y.children[0]:y.children[O-1].nextSibling;y.insertBefore(x,T)}var k=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");function B(y){var x=Object.create(null);return function(T){var P=x[T];return P||(x[T]=y(T))}}var w=/-(\w)/g,I=B(function(y){return y.replace(w,function(x,O){return O.toUpperCase()})});n("5db7"),n("73d9");var F=["Start","Add","Remove","Update","End"],U=["Choose","Unchoose","Sort","Filter","Clone"],L=["Move"],H=[L,F,U].flatMap(function(y){return y}).map(function(y){return"on".concat(y)}),Q={manage:L,manageAndEmit:F,emit:U};function ae(y){return H.indexOf(y)!==-1}n("caad"),n("2ca0");var J=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ee(y){return J.includes(y)}function $(y){return["transition-group","TransitionGroup"].includes(y)}function oe(y){return["id","class","role","style"].includes(y)||y.startsWith("data-")||y.startsWith("aria-")||y.startsWith("on")}function te(y){return y.reduce(function(x,O){var T=_(O,2),P=T[0],z=T[1];return x[P]=z,x},{})}function Z(y){var x=y.$attrs,O=y.componentData,T=O===void 0?{}:O,P=te(Object.entries(x).filter(function(z){var K=_(z,2),Y=K[0];return K[1],oe(Y)}));return p(p({},P),T)}function q(y){var x=y.$attrs,O=y.callBackBuilder,T=te(de(x));Object.entries(O).forEach(function(z){var K=_(z,2),Y=K[0],ne=K[1];Q[Y].forEach(function(G){T["on".concat(G)]=ne(G)})});var P="[data-draggable]".concat(T.draggable||"");return p(p({},T),{},{draggable:P})}function de(y){return Object.entries(y).filter(function(x){var O=_(x,2),T=O[0];return O[1],!oe(T)}).map(function(x){var O=_(x,2),T=O[0],P=O[1];return[I(T),P]}).filter(function(x){var O=_(x,2),T=O[0];return O[1],!ae(T)})}n("c740");function ie(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function ce(y,x){for(var O=0;O<x.length;O++){var T=x[O];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}function ue(y,x,O){return x&&ce(y.prototype,x),O&&ce(y,O),y}var ve=function(x){var O=x.el;return O},le=function(x,O){return x.__draggable_context=O},re=function(x){return x.__draggable_context},ge=function(){function y(x){var O=x.nodes,T=O.header,P=O.default,z=O.footer,K=x.root,Y=x.realList;ie(this,y),this.defaultNodes=P,this.children=[].concat(b(T),b(P),b(z)),this.externalComponent=K.externalComponent,this.rootTransition=K.transition,this.tag=K.tag,this.realList=Y}return ue(y,[{key:"render",value:function(O,T){var P=this.tag,z=this.children,K=this._isRootComponent,Y=K?{default:function(){return z}}:z;return O(P,T,Y)}},{key:"updated",value:function(){var O=this.defaultNodes,T=this.realList;O.forEach(function(P,z){le(ve(P),{element:T[z],index:z})})}},{key:"getUnderlyingVm",value:function(O){return re(O)}},{key:"getVmIndexFromDomIndex",value:function(O,T){var P=this.defaultNodes,z=P.length,K=T.children,Y=K.item(O);if(Y===null)return z;var ne=re(Y);if(ne)return ne.index;if(z===0)return 0;var G=ve(P[0]),R=b(K).findIndex(function(M){return M===G});return O<R?0:z}},{key:"_isRootComponent",get:function(){return th
window.$glob.params //接受url中的参数
window.$glob.query //发送全局的url参数
window.$glob.header //发送全局的header参数
window.$glob.group //当前显示屏幕显示那个屏就把对应id复制给它
window.$glob['xxx'] //全局变量
`),createTextVNode(`
`)],-1),_hoisted_6$9=[_hoisted_5$a],_hoisted_7$7={class:"item"},_hoisted_8$6=createBaseVNode("div",{class:"header"}," 解析数据说明 ",-1),_hoisted_9$6={class:"content"},_hoisted_10$3=createBaseVNode("pre",null,[createBaseVNode("code",null,`
解析数据用了jquery库,把返回数据放入$(data)中赋值给变量 后续使用jquery用法去操作即可
var $html=$(data)
$html.find('ul').text()
`),createTextVNode(`
`)],-1),_hoisted_11$3=[_hoisted_10$3],_hoisted_12$2={class:"item"},_hoisted_13$1=createBaseVNode("div",{class:"header"}," 文件夹内置事件说明 ",-1),_hoisted_14$1={class:"content"},_hoisted_15$1=createBaseVNode("pre",null,[createBaseVNode("code",null,`
setDisplay() //隐藏文件夹全部内容false-显示 true-隐藏
refs['文件夹Id'].setDisplay(false)
`),createTextVNode(`
`)],-1),_hoisted_16$1=[_hoisted_15$1],_hoisted_17$1={key:0,class:"item"},_hoisted_18$1=createBaseVNode("div",{class:"header"}," Vue自定义组件说明 ",-1),_hoisted_19$1={class:"content"},_hoisted_20$1=createBaseVNode("pre",null,[createBaseVNode("code",null,`
//window.$loadScript远程加载三方包
@param {*} type 资源类型js/css
@param {*} url 三方包的地址
window.$loadScript(type,url).then(res=>{
console.log('加载完成')
})
created(){
//触发点击事件和其他组件交互,需要回调click事件
this.$emit('click',xxx)
//this.dataChart-数据交互返回的数据值
console.log(this.dataChart)
//this.refList-大屏对象的ref集合
console.log(this.refList)
//原生组件ref
console.log(this.refList[id])
//自定义Vue组件ref
console.log(this.refList[id].$refs.main)
}
`),createTextVNode()],-1),_hoisted_21$1=[_hoisted_20$1],_hoisted_22$1={key:1,class:"item"},_hoisted_23$1=createBaseVNode("div",{class:"header"}," Echart自定义组件说明 ",-1),_hoisted_24={class:"content"},_hoisted_25=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} data 数据交互返回的数据值
@param {*} params 其他组件交互传递的参数
function (data,params){
//this.myChart-为Echart实例对象
console.log(this.myChart)
//this.refList-大屏对象的ref集合
console.log(this.refList)
//原生组件ref
console.log(this.refList[id])
//自定义Vue组件ref
console.log(this.refList[id].$refs.main)
//如果是异步调用用setOption方法
this.myChart.setOption(option,true)
//option为echart的配置直接return返回即可
return option
}
`),createTextVNode(`
`)],-1),_hoisted_26=[_hoisted_25],_hoisted_27={key:2,class:"item"},_hoisted_28=createBaseVNode("div",{class:"header"}," Time定时器组件说明 ",-1),_hoisted_29={class:"content"},_hoisted_30=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} refs 大屏对象的ref集合
function (data){
//原生组件ref
console.log(refs[id])
//自定义Vue组件ref
console.log(refs[id].$refs.main)
//修改组件样式
refs[id].styles.xxxx=xxx;
//组件赋值
refs[id].dataChart=xxxx
}
`),createTextVNode(`
`)],-1),_hoisted_31=[_hoisted_30],_hoisted_32={key:3,class:"item"},_hoisted_33=createBaseVNode("div",{class:"header"}," 过滤器说明 ",-1),_hoisted_34={class:"content"},_hoisted_35=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} data 数据交互返回的数据值
@param {*} params 其他组件交互传递的参数
@param {*} refs 大屏对象的ref集合
//原始数据用JS函数处理成组件需要的数据格式
function (data,params,refs){
//原生组件ref
console.log(refs[id])
//自定义Vue组件ref
console.log(refs[id].$refs.main)
//例如修改组件样式和赋值
refs[id].styles.xxxx=xxx;
refs[id].dataChart=xxxx
}
`),createTextVNode(`
`)],-1),_hoisted_36=[_hoisted_35],_hoisted_37={key:4,class:"item"},_hoisted_38=createBaseVNode("div",{class:"header"}," 事件说明 ",-1),_hoisted_39={class:"content"},_hoisted_40=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} params 其他组件交互传递的参数
@param {*} refs 大屏对象的ref集合
function (params,refs){
//原生组件ref
console.log(refs[id])
//自定义Vue组件ref
console.log(refs[id].$refs.main)
//例如修改组件样式和赋值
refs[id].styles.xxxx=xxx;
refs[id].dataChart=xxxx
}
`),createTextVNode(`
`)],-1),_hoisted_41=[_hoisted_40],_hoisted_42={key:5,class:"item"},_hoisted_43=createBaseVNode("div",{class:"header"}," 样式说明 ",-1),_hoisted_44={class:"content"},_hoisted_45=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} data 数据交互返回的数据值
@param {*} params 其他组件交互传递的参数
@param {*} refs 大屏对象的ref集合
function (data,params,refs){
//原生组件ref
console.log(refs[id])
//自定义Vue组件ref
console.log(refs[id].$refs.main)
//例如修改组件样式和赋值
refs[id].styles.xxxx=xxx;
return 返回最终的style样式对象
}
`),createTextVNode(`
`)],-1),_hoisted_46=[_hoisted_45],_hoisted_47={key:6,class:"item"},_hoisted_48=createBaseVNode("div",{class:"header"}," 参数说明 ",-1),_hoisted_49={class:"content"},_hoisted_50=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} data 数据交互返回的数据值
function (data){
//全局函数,可以获取url里面传递参数
console.log(window.$glob)
}
`),createTextVNode(`
`)],-1),_hoisted_51=[_hoisted_50],_hoisted_52={key:7,class:"item"},_hoisted_53=createBaseVNode("div",{class:"header"}," 参数说明 ",-1),_hoisted_54={class:"content"},_hoisted_55=createBaseVNode("pre",null,[createBaseVNode("code",null,`
@param {*} name 当前选中组件的子对象
@param {*} data 数据交互返回的数据值
function (name,data){
}
`),createTextVNode(`
`)],-1),_hoisted_56=[_hoisted_55];function _sfc_render$W(o,e,r,s,a,t){const n=resolveComponent("el-dialog"),l=resolveDirective("highlight");return openBlock(),createBlock(n,{modelValue:a.box,"onUpdate:modelValue":e[0]||(e[0]=i=>a.box=i),"close-on-click-modal":!1,"append-to-body":"","modal-append-to-body":"",class:"avue-dialog",title:"说明",width:"70%"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$t,[createBaseVNode("div",_hoisted_2$l,[_hoisted_3$j,withDirectives((openBlock(),createElementBlock("div",_hoisted_4$d,_hoisted_6$9)),[[l]])]),createBaseVNode("div",_hoisted_7$7,[_hoisted_8$6,withDirectives((openBlock(),createElementBlock("div",_hoisted_9$6,_hoisted_11$3)),[[l]])]),createBaseVNode("div",_hoisted_12$2,[_hoisted_13$1,withDirectives((openBlock(),createElementBlock("div",_hoisted_14$1,_hoisted_16$1)),[[l]])]),r.type=="content"?(openBlock(),createElementBlock("div",_hoisted_17$1,[_hoisted_18$1,withDirectives((openBlock(),createElementBlock("div",_hoisted_19$1,_hoisted_21$1)),[[l]])])):createCommentVNode("",!0),r.type=="echart"?(openBlock(),createElementBlock("div",_hoisted_22$1,[_hoisted_23$1,withDirectives((openBlock(),createElementBlock("div",_hoisted_24,_hoisted_26)),[[l]])])):createCommentVNode("",!0),r.type=="echart"?(openBlock(),createElementBlock("div",_hoisted_27,[_hoisted_28,withDirectives((openBlock(),createElementBlock("div",_hoisted_29,_hoisted_31)),[[l]])])):createCommentVNode("",!0),r.type=="dataFormatter"?(openBlock(),createElementBlock("div",_hoisted_32,[_hoisted_33,withDirectives((openBlock(),createElementBlock("div",_hoisted_34,_hoisted_36)),[[l]])])):createCommentVNode("",!0),["clickFormatter","dblClickFormatter","mouseEnterFormatter","mouseLeaveFormatter"].includes(r.type)?(openBlock(),createElementBlock("div",_hoisted_37,[_hoisted_38,withDirectives((openBlock(),createElementBlock("div",_hoisted_39,_hoisted_41)),[[l]])])):createCommentVNode("",!0),r.type=="stylesFormatter"?(openBlock(),createElementBlock("div",_hoisted_42,[_hoisted_43,withDirectives((openBlock(),createElementBlock("div",_hoisted_44,_hoisted_46)),[[l]])])):createCommentVNode("",!0),["query","header","dataQuery","dataHeader"].includes(r.type)?(openBlock(),createElementBlock("div",_hoisted_47,[_hoisted_48,withDirectives((openBlock(),createElementBlock("div",_hoisted_49,_hoisted_51)),[[l]])])):createCommentVNode("",!0),["labelFormatter","formatter"].includes(r.type)?(openBlock(),createElementBlock("div",_hoisted_52,[_hoisted_53,withDirectives((openBlock(),createElementBlock("div",_hoisted_54,_hoisted_56)),[[l]])])):createCommentVNode("",!0)])]),_:1},8,["modelValue"])}const codeTip=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$W]]),event_vue_vue_type_style_index_0_scoped_7c5dec96_lang="",_sfc_main$V={inject:["contain"],components:{MonacoEditor,codeTip,otherList},provide(){return{contain:this.contain}},data(){return{text:{},list:[{label:"点击事件",value:"clickFormatter",temp:"temp"},{label:"双击事件",value:"dblClickFormatter",temp:"temp"},{label:"移出事件",value:"mouseEnterFormatter",temp:"temp"},{label:"移入事件",value:"mouseLeaveFormatter",temp:"temp"},{label:"数据渲染前事件",value:"dataBeforeFormatter",temp:"temp"},{label:"数据渲染后事件",value:"dataAfterFormatter",temp:"temp"},{label:"提示事件",value:"formatter",prop:"labelFormatterList",temp:"temp1"},{label:"标题事件",value:"labelFormatter",prop:"labelFormatterList",temp:"temp1"}],temp:`(params,refs)=>{
console.log(params,refs)
}`,temp1:`(name,data)=>{
console.log(name,data)
return ''
}`,box:!1,type:"",tabs:""}},methods:{submit(){let o,e;try{this.list.forEach(r=>{e=r.value,o=r.label;let s=this.text[e];if(s)try{funEval(s),this.contain.activeObj[e]=s}catch(a){throw Error(a)}}),this.close()}catch(r){console.log(r),this.$message.error(`${o}${e}-格式校验有误`)}},handleTabClick(o){let e=o.index,r=this.list[e];this.type=r.value;let s=this.contain.activeObj[r.value]||this[r.temp];this.text[r.value]=s},open(){this.type=this.list[0].value;let o=this.list.findIndex(s=>s.value==this.type);this.tabs=o;let e=this.list.find(s=>s.value==this.type),r=this.contain.activeObj[e.value]||this[e.temp];this.text[e.value]=r,this.box=!0},close(){this.text=[],this.box=!1}}},_withScopeId$1=o=>(pushScopeId("data-v-7c5dec96"),o=o(),popScopeId(),o),_hoisted_1$s={class:"event__content"},_hoisted_2$k={class:"item"},_hoisted_3$i=_withScopeId$1(()=>createBaseVNode("br",null,null,-1)),_hoisted_4$c={class:"avue-dialog__footer avue-dialog__footer--right"};function _sfc_render$V(o,e,r,s,a,t){const n=resolveComponent("el-button"),l=resolveComponent("el-form-item"),i=resolveComponent("avue-highlight"),d=resolveComponent("other-list"),u=resolveComponent("el-tab-pane"),c=resolveComponent("el-tabs"),p=resolveComponent("monaco-editor"),f=resolveComponent("code-tip"),v=resolveComponent("el-dialog"),m=resolveComponent("el-form");return openBlock(),createBlock(m,{"label-width":"120px",class:"event","label-position":"left"},{default:withCtx(()=>[createVNode(l,{"label-width":"0px"},{default:withCtx(()=>[createVNode(n,{type:"primary",icon:"el-icon-edit",onClick:e[0]||(e[0]=h=>t.open())},{default:withCtx(()=>[createTextVNode("编辑组件基础事件")]),_:1})]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(a.list,(h,g)=>(openBlock(),createElementBlock(Fragment,null,[!h.prop||t.contain.validProp("labelFormatterList")?(openBlock(),createElementBlock("div",{key:g},[createBaseVNode("div",_hoisted_1$s,[createVNode(i,{height:"300","model-value":"//"+h.label+`
`+(t.contain.activeObj[h.value]||"")},null,8,["model-value"])])])):createCommentVNode("",!0)],64))),256)),createVNode(v,{modelValue:a.box,"onUpdate:modelValue":e[5]||(e[5]=h=>a.box=h),"close-on-click-modal":!1,class:"avue-dialog",title:"事件编辑器",width:"80%"},{default:withCtx(()=>[createVNode(d,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$k,[createVNode(n,{type:"primary",size:"small",onClick:e[1]||(e[1]=h=>o.$refs.codeTip.open()),icon:"el-icon-notebook"},{default:withCtx(()=>[createTextVNode("说明")]),_:1})])]),_:1}),a.box?(openBlock(),createBlock(c,{key:0,class:"menu__tabs",onTabClick:t.handleTabClick,stretch:"",modelValue:a.tabs,"onUpdate:modelValue":e[2]||(e[2]=h=>a.tabs=h)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.list,(h,g)=>(openBlock(),createElementBlock(Fragment,null,[!h.prop||t.contain.validProp("labelFormatterList")?(openBlock(),createBlock(u,{name:g,key:g},{label:withCtx(()=>[createBaseVNode("span",null,toDisplayString(h.label),1)]),_:2},1032,["name"])):createCommentVNode("",!0)],64))),256))]),_:1},8,["onTabClick","modelValue"])):createCommentVNode("",!0),_hoisted_3$i,createVNode(p,{modelValue:a.text[a.type],"onUpdate:modelValue":e[3]||(e[3]=h=>a.text[a.type]=h),height:"200",language:"javascript"},null,8,["modelValue"]),createBaseVNode("span",_hoisted_4$c,[createVNode(n,{onClick:e[4]||(e[4]=h=>t.close())},{default:withCtx(()=>[createTextVNode("取 消")]),_:1}),createVNode(n,{type:"primary",onClick:t.submit},{default:withCtx(()=>[createTextVNode("确 定")]),_:1},8,["onClick"])]),createVNode(f,{ref:"codeTip",type:a.type},null,8,["type"])]),_:1},8,["modelValue"])]),_:1})}const event=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$V],["__scopeId","data-v-7c5dec96"]]),transfer_vue_vue_type_style_index_0_scoped_aa3bd9a7_lang="",_sfc_main$U={inject:["contain"],data(){return{tabs:0,box:!1,dic:{displayType:[{label:"隐藏",value:"none"},{label:"请求数据",value:"data"},{label:"显示",value:"block"},{label:"显示/隐藏",value:""}],type:[{label:"传参",value:"params"},{label:"跳转链接",value:"href"},{label:"跳转大屏",value:"group"},{label:"显隐",value:"display"}]}}},methods:{open(o=0){this.tabs=o+"",this.box=!0},close(){this.box=!1},getTypeLabel(o){return(this.dic.type.find(e=>e.value==o)||{}).label},handleTabsAdd(){this.addParamsList(),this.tabs=this.contain.activeObj.child.paramList.length-1+""},handleTabsEdit(o,e){if(e==="add")this.addParamsList(),this.tabs=this.contain.activeObj.child.paramList.length-1+"";else if(e==="remove"){this.delParamsList(o);let r=o-1+"";this.tabs=r<0?"0":r}},delParamsList(o){this.contain.activeObj.child.paramList.splice(o,1)},addParamsList(){this.contain.activeObj.child.paramList||(this.contain.activeObj.child.paramList=[]),this.contain.activeObj.child.paramList.push({index:[],type:"",child:[]})}}},_withScopeId=o=>(pushScopeId("data-v-aa3bd9a7"),o=o(),popScopeId(),o),_hoisted_1$r={class:"transfer__menu menu_ul"},_hoisted_2$j=["onClick"],_hoisted_3$h={class:"menu__label"},_hoisted_4$b=["onClick"],_hoisted_5$9=_withScopeId(()=>createBaseVNode("br",null,null,-1)),_hoisted_6$8=_withScopeId(()=>createBaseVNode("br",null,null,-1)),_hoisted_7$6={key:0,class:"transfer__list avue-flex"},_hoisted_8$5={class:"transfer__menu menu_ul"},_hoisted_9$5=["onClick"],_hoisted_10$2={class:"menu__label"},_hoisted_11$2={style:{flex:"1"}},_hoisted_12$1=_withScopeId(()=>createBaseVNode("br",null,null,-1));function _sfc_render$U(o,e,r,s,a,t){const n=resolveComponent("avue-input-tree"),l=resolveComponent("el-form-item"),i=resolveComponent("avue-input"),d=resolveComponent("el-button"),u=resolveComponent("el-icon-close"),c=resolveComponent("el-icon"),p=resolveComponent("el-icon-plus"),f=resolveComponent("el-tab-pane"),v=resolveComponent("el-tabs"),m=resolveComponent("el-input"),h=resolveComponent("avue-select"),g=resolveComponent("avue-switch"),_=resolveComponent("el-dialog"),C=resolveComponent("el-form");return openBlock(),createBlock(C,{"label-width":"120px","label-position":"left"},{default:withCtx(()=>[createVNode(l,{label:"传递
return {}
}`:["query","header","dataQuery","dataHeader"].includes(this.type)&&this.validatenull(o)?this.code=`(data)=>{
return {}
}`:["echartFormatter"].includes(this.type)&&this.validatenull(o)?this.code=`(data)=>{
const myChart = this.myChart;
const option={}
return option
}`:["clickFormatter","dblClickFormatter","mouseEnterFormatter","mouseLeaveFormatter","dataBeforeFormatter","dataAfterFormatter"].includes(this.type)&&this.validatenull(o)?this.code=`(params,refs)=>{
console.log(params,refs)
}`:["labelFormatter","formatter"].includes(this.type)&&this.validatenull(o)?this.code=`(name,data)=>{
console.log(name,data)
return ''
}`:["before"].includes(this.type)&&this.validatenull(o)?this.code=`(data)=>{
return new Promise(resolve=>{
resolve()
})
}`:this.code=o:this.code=o},immediate:!0,deep:!0},visible:{handler(o){this.innerVisible=o},immediate:!0}},methods:{handleClose(){this.setVisible(!1)},submit(){let o=this.code;if(!this.rules)this.$emit("submit",o),this.setVisible(!1);else if(typeof o=="object"||this.type=="style")this.$emit("submit",o),this.setVisible(!1);else try{funEval(o),["data","column"].includes(this.type)&&(o=funEval(o)),this.$emit("submit",o),this.setVisible(!1)}catch(e){console.log(e),this.$message.error("数据格式有误")}},setVisible(o){this.$emit("update:visible",o)}}},_hoisted_1$h={class:"item"},_hoisted_2$c={class:"item"},_hoisted_3$b={class:"avue-dialog__footer avue-dialog__footer--right"};function _sfc_render$J(o,e,r,s,a,t){const n=resolveComponent("el-button"),l=resolveComponent("other-list"),i=resolveComponent("monaco-editor"),d=resolveComponent("code-tip"),u=resolveComponent("code-edit"),c=resolveComponent("el-dialog");return openBlock(),createBlock(c,{modelValue:a.innerVisible,"onUpdate:modelValue":e[5]||(e[5]=p=>a.innerVisible=p),"close-on-click-modal":!1,"before-close":t.handleClose,class:"avue-dialog",title:r.title||"数据处理",width:"80%"},{default:withCtx(()=>[createVNode(l,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$h,[createVNode(n,{type:"primary",onClick:e[0]||(e[0]=p=>o.$refs.codeTip.open()),icon:"el-icon-notebook"},{default:withCtx(()=>[createTextVNode("说明")]),_:1})]),createTextVNode("    "),createBaseVNode("div",_hoisted_2$c,[t.isCodeEdit?(openBlock(),createBlock(n,{key:0,icon:"el-icon-edit",type:"primary",onClick:e[1]||(e[1]=p=>o.$refs.code.handleOpen())},{default:withCtx(()=>[createTextVNode("放大编辑器")]),_:1})):createCommentVNode("",!0)])]),_:1}),createVNode(i,{modelValue:a.code,"onUpdate:modelValue":e[2]||(e[2]=p=>a.code=p),language:r.language},null,8,["modelValue","language"]),createBaseVNode("span",_hoisted_3$b,[createVNode(n,{onClick:e[3]||(e[3]=p=>t.setVisible(!1))},{default:withCtx(()=>[createTextVNode("取 消")]),_:1}),createVNode(n,{type:"primary",onClick:t.submit},{default:withCtx(()=>[createTextVNode("确 定")]),_:1},8,["onClick"])]),createVNode(d,{ref:"codeTip",type:r.type},null,8,["type"]),createVNode(u,{ref:"code",modelValue:a.form,"onUpdate:modelValue":e[4]||(e[4]=p=>a.form=p)},null,8,["modelValue"])]),_:1},8,["modelValue","before-close","title"])}const codeedit=_export_sfc$1(_sfc_main$J,[["render",_sfc_render$J]]),_sfc_main$I={inject:["contain"],components:{codeedit},data(){return{code:{type:"dataFormatter",box:!1,obj:{}},item:{},form:{},index:null,obj:{},menuId:"avue-filter-menu"}},computed:{list(){let o=this.contain.config.filters;return Object.keys(o).map(e=>o[e])}},methods:{handleContextMenu(o={},e){this.item=o,e()},handleChangeName(o){o.isname=!o.isname},handleAddGroup(){this.contain.config.filters||(this.contain.config.filters={});let o=uuid();this.contain.config.filters[o]={id:o,name:"新增过滤器",isname:!0,dataFormatter:""}},handleEditGroup(o){this.form=o,this.openCode()},codeClose(o){this.contain.config.filters[this.form.id][this.code.type]=o},openCode(){this.code.obj=this.form[this.code.type],this.code.box=!0},handleDelGroup(o){this.$confirm(`是否删除${o.name}过滤器?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{delete this.contain.config.filters[o.id]})}}},_hoisted_1$g={style:{padding:"0 5px"}},_hoisted_2$b={key:0,class:"menu_ul"},_hoisted_3$a=["onDblclick"],_hoisted_4$6={class:"menu__icon"},_hoisted_5$5={class:"menu__label"},_hoisted_6$4=["onKeyup","onUpdate:modelValue"],_hoisted_7$2={key:1,class:"menu__name"},_hoisted_8$1={class:"menu__menu"},_hoisted_9$1=["id"];function _sfc_render$I(o,e,r,s,a,t){const n=resolveComponent("el-button"),l=resolveComponent("svg-icon"),i=resolveComponent("el-icon-edit"),d=resolveComponent("el-icon"),u=resolveComponent("el-icon-delete"),c=resolveComponent("el-empty"),p=resolveComponent("codeedit"),f=resolveDirective("contextmenu");return openBlock(),createElementBlock("div",_hoisted_1$g,[createVNode(n,{type:"primary",style:{margin:"10px 0 10px 0"},onClick:e[0]||(e[0]=
"Helvetica Neue", ".SFNSText-Regular",
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,u.lineWidth=1,u.textBaseline="middle")}},l=d=>{const u={scale:o.scale,width:o.width,height:o.height,palette:o.palette,ratio:d};r.canvasContext&&drawCavaseRuler(r.canvasContext,o.start,o.selectStart,o.selectLength,u,!o.vertical)};return watch(()=>o.start,()=>l(s)),watch([()=>o.width,()=>o.height],()=>{n(s),l(s)}),{handle:(d,u)=>{const c=(v,m,h)=>Math.round(m+v/h),p=o.vertical?d.offsetY:d.offsetX,f=c(p,o.start,o.scale);switch(u){case"click":e("onAddLine",f);break;case"enter":e("update:valueNum",f),e("update:showIndicator",!0);break;default:e("update:valueNum",f);break}},canvas:a}}});function _sfc_render$2(o,e,r,s,a,t){return openBlock(),createElementBlock("canvas",{ref:"canvas",class:"ruler",onClick:e[0]||(e[0]=n=>o.handle(n,"click")),onMouseenter:e[1]||(e[1]=n=>o.handle(n,"enter")),onMousemove:e[2]||(e[2]=n=>o.handle(n,"move")),onMouseleave:e[3]||(e[3]=n=>o.$emit("update:showIndicator",!1))},null,544)}var CanvasRuler=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]);const wrapperProps={scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},_sfc_main$1=defineComponent({name:"RulerWrapper",components:{CanvasRuler,RulerLine},props:wrapperProps,setup(o){const e=ref(!1),r=ref(0),s=computed(()=>o.vertical?"v-container":"h-container"),a=computed(()=>{const d={width:`calc(100% - ${o.thick}px)`,height:`${o.thick+1}px`,left:`${o.thick}px`},u={width:`${o.thick&&o.thick+1}px`,height:`calc(100% - ${o.thick}px)`,top:`${o.thick}px`};return o.vertical?u:d}),t=computed(()=>{var d;const u=(r.value-o.start)*o.scale;let c="top",p="borderLeft";return c=o.vertical?"top":"left",p=o.vertical?"borderBottom":"borderLeft",{[c]:u+"px",[p]:`1px solid ${(d=o.palette)==null?void 0:d.lineColor}`}}),n=d=>{o.lines.push(d)},l=(d,u)=>{const c=d-o.start,p=(o.vertical?o.height:o.width)/o.scale;c<0||c>p?i(u):o.lines[u]=d},i=d=>{o.lines.splice(d,1)};return{showIndicator:e,valueNum:r,rwClassName:s,rwStyle:a,indicatorStyle:t,handleNewLine:n,handleLineRelease:l,handleLineRemove:i}}}),_hoisted_1$1={class:"lines"},_hoisted_2$1={class:"value"};function _sfc_render$1(o,e,r,s,a,t){const n=resolveComponent("CanvasRuler"),l=resolveComponent("RulerLine");return openBlock(),createElementBlock("div",{class:normalizeClass(o.rwClassName),style:normalizeStyle(o.rwStyle)},[createVNode(n,{vertical:o.vertical,scale:o.scale,width:o.width,height:o.height,start:o.start,ratio:o.ratio,"select-start":o.selectStart,"select-length":o.selectLength,palette:o.palette,valueNum:o.valueNum,"onUpdate:valueNum":e[0]||(e[0]=i=>o.valueNum=i),showIndicator:o.showIndicator,"onUpdate:showIndicator":e[1]||(e[1]=i=>o.showIndicator=i),onOnAddLine:o.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),withDirectives(createBaseVNode("div",_hoisted_1$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.lines,(i,d)=>(openBlock(),createBlock(l,{key:i+d,index:d,value:i>>0,scale:o.scale,start:o.start,thick:o.thick,palette:o.palette,vertical:o.vertical,"is-show-refer-line":o.isShowReferLine,onOnRemove:o.handleLineRemove,onOnRelease:o.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[vShow,o.isShowReferLine]]),withDirectives(createBaseVNode("div",{class:"indicator",style:normalizeStyle(o.indicatorStyle)},[createBaseVNode("div",_hoisted_2$1,toDisplayString(o.valueNum),1)],4),[[vShow,o.showIndicator]])],6)}var RulerWrapper=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-b6c23352"]]);const eye64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hB