st-comp 0.0.158 → 0.0.159

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.
@@ -1 +1 @@
1
- "use strict";const n=require("vue"),o=require("./index-a96158ae.cjs"),u={__name:"index",props:{env:{type:Object,default:()=>({})}},setup(s){const l=e=>{const c=o.y(e,{handleReq:i=>{o.v()&&(i.headers.token=o.U())},handleRes:i=>{const{data:a}=i;if(a.code===401)return location.origin.includes("localhost")?location.href=`${location.origin}/#/404`:o.K(),!0}});return{get:c.get,post:c.post}},r=s,t=n.reactive({env:r.env,request:l(r.env)});return n.watch(()=>r,e=>{Object.assign(t,toRefs(e)),console.log("已更新神兔组件库配置: ",t)},{deep:!0}),console.log("%c√ 已成功注入神兔组件库配置: ","color: green",t),n.provide("stConfig",t),(e,c)=>n.renderSlot(e.$slots,"default")}},d={install(s){s.component("st-configProvider",u)}};module.exports=d;
1
+ "use strict";const n=require("vue"),o=require("./index-8901a38c.cjs"),u={__name:"index",props:{env:{type:Object,default:()=>({})}},setup(s){const l=e=>{const c=o.y(e,{handleReq:i=>{o.v()&&(i.headers.token=o.U())},handleRes:i=>{const{data:a}=i;if(a.code===401)return location.origin.includes("localhost")?location.href=`${location.origin}/#/404`:o.K(),!0}});return{get:c.get,post:c.post}},r=s,t=n.reactive({env:r.env,request:l(r.env)});return n.watch(()=>r,e=>{Object.assign(t,toRefs(e)),console.log("已更新神兔组件库配置: ",t)},{deep:!0}),console.log("%c√ 已成功注入神兔组件库配置: ","color: green",t),n.provide("stConfig",t),(e,c)=>n.renderSlot(e.$slots,"default")}},d={install(s){s.component("st-configProvider",u)}};module.exports=d;
@@ -1,5 +1,5 @@
1
1
  import { reactive as l, watch as a, provide as d, renderSlot as f } from "vue";
2
- import { y as p, v as u, U as g, K as v } from "./index-8542fe24.js";
2
+ import { y as p, v as u, U as g, K as v } from "./index-7ed0999e.js";
3
3
  const h = {
4
4
  __name: "index",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";const c=require("./base-0ca7c43a.cjs"),Q=require("./zh-cn-36f34912.cjs"),j=require("./el-overlay-41994f67.cjs");require("./el-tag-9732314f.cjs");require("./el-tooltip-0ea8fbf8.cjs");const le=require("./el-popper-7adbf1c6.cjs"),X=require("./el-table-column-bdc46568.cjs"),ee=require("./el-scrollbar-ac525239.cjs"),ue=require("./el-popover-7bd8a7c3.cjs"),ne=require("./el-button-62966947.cjs"),te=require("./el-form-item-47e255d4.cjs"),ae=require("./el-input-6a3805c5.cjs"),de=require("./el-checkbox-group-45247bbf.cjs"),me=require("./el-input-number-96ff2e47.cjs"),e=require("vue"),P=require("./index-afc88a4b.cjs"),fe=require("./index-a96158ae.cjs"),pe=require("./_plugin-vue_export-helper-f246444f.cjs"),O=require("./index-65b4113e.cjs"),L=require("./use-form-common-props-74a96df2.cjs"),ve=require("./index-2f958e56.cjs"),J=require("./index-375e8de4.cjs"),ge=require("./index-9e6e8d03.cjs");require("./config-provider-cfbb9cd8.cjs");require("./vnode-b15eb11b.cjs");require("./scroll-339681d4.cjs");require("./_initCloneObject-47814efa.cjs");require("./debounce-cf26af24.cjs");require("./raf-f46caea0.cjs");require("./index-eea0bcb3.cjs");require("./castArray-a78ae889.cjs");require("./typescript-b63f8e83.cjs");require("./index-1d85ba4b.cjs");const he=t=>["",...L.componentSizes].includes(t),Ce=c.buildProps({direction:{type:c.definePropType(String),default:"horizontal"},options:{type:c.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:L.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...le.useAriaProps(["ariaLabel"])}),ye={[O.UPDATE_MODEL_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t),[O.CHANGE_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t)},be=e.defineComponent({name:"ElSegmented"}),ke=e.defineComponent({...be,props:Ce,emits:ye,setup(t,{emit:d}){const n=t,i=c.useNamespace("segmented"),p=J.useId(),m=L.useFormSize(),C=L.useFormDisabled(),{formItem:b}=L.useFormItem(),{inputId:s,isLabeledByFormItem:r}=L.useFormItemInputId(n,{formItemContext:b}),T=e.ref(null),f=ee.useActiveElement(),u=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),z=a=>{const V=M(a);d(O.UPDATE_MODEL_EVENT,V),d(O.CHANGE_EVENT,V)},M=a=>c.isObject(a)?a.value:a,S=a=>c.isObject(a)?a.label:a,_=a=>!!(C.value||c.isObject(a)&&a.disabled),x=a=>n.modelValue===M(a),F=a=>n.options.find(V=>M(V)===a),A=a=>[i.e("item"),i.is("selected",x(a)),i.is("disabled",_(a))],y=()=>{if(!T.value)return;const a=T.value.querySelector(".is-selected"),V=T.value.querySelector(".is-selected input");if(!a||!V){u.width=0,u.height=0,u.translateX=0,u.translateY=0,u.focusVisible=!1;return}const g=a.getBoundingClientRect();u.isInit=!0,n.direction==="vertical"?(u.height=g.height,u.translateY=a.offsetTop):(u.width=g.width,u.translateX=a.offsetLeft);try{u.focusVisible=V.matches(":focus-visible")}catch{}},l=e.computed(()=>[i.b(),i.m(m.value),i.is("block",n.block)]),w=e.computed(()=>({width:n.direction==="vertical"?"100%":`${u.width}px`,height:n.direction==="vertical"?`${u.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${u.translateY}px)`:`translateX(${u.translateX}px)`,display:u.isInit?"block":"none"})),v=e.computed(()=>[i.e("item-selected"),i.is("disabled",_(F(n.modelValue))),i.is("focus-visible",u.focusVisible)]),k=e.computed(()=>n.name||p.value);return ee.useResizeObserver(T,y),e.watch(f,y),e.watch(()=>n.modelValue,()=>{var a;y(),n.validateEvent&&((a=b==null?void 0:b.validate)==null||a.call(b,"change").catch(V=>c.debugWarn(V)))},{flush:"post"}),(a,V)=>a.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(s),ref_key:"segmentedRef",ref:T,class:e.normalizeClass(e.unref(l)),role:"radiogroup","aria-label":e.unref(r)?void 0:a.ariaLabel||"segmented","aria-labelledby":e.unref(r)?e.unref(b).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(i).e("group"),e.unref(i).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(w)),class:e.normalizeClass(e.unref(v))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,(g,$)=>(e.openBlock(),e.createElementBlock("label",{key:$,class:e.normalizeClass(A(g))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(i).e("item-input")),type:"radio",name:e.unref(k),disabled:_(g),checked:x(g),onChange:U=>z(g)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("item-label"))},[e.renderSlot(a.$slots,"default",{item:g},()=>[e.createTextVNode(e.toDisplayString(S(g)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var Ve=c._export_sfc(ke,[["__file","segmented.vue"]]);const we=c.withInstall(Ve),Z="_trap-focus-children",q=[],oe=t=>{var d;if(q.length===0)return;const n=q[q.length-1][Z];if(n.length>0&&t.code===O.EVENT_CODE.tab){if(n.length===1){t.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=t.shiftKey,p=t.target===n[0],m=t.target===n[n.length-1];if(p&&i&&(t.preventDefault(),n[n.length-1].focus()),m&&!i&&(t.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const C=n.indexOf(t.target);C!==-1&&((d=n[i?C-1:C+1])==null||d.focus())}}},Ne={beforeMount(t){t[Z]=O.obtainAllFocusableElements(t),q.push(t),q.length<=1&&document.addEventListener("keydown",oe)},updated(t){e.nextTick(()=>{t[Z]=O.obtainAllFocusableElements(t)})},unmounted(){q.shift(),q.length===0&&document.removeEventListener("keydown",oe)}},Be=e.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Ne},components:{ElButton:ne.ElButton,ElFocusTrap:O.ElFocusTrap,ElInput:ae.ElInput,ElOverlay:j.ElOverlay,ElIcon:P.ElIcon,...L.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:he},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:d}){const{locale:n,zIndex:i,ns:p,size:m}=ve.useGlobalComponentSettings("message-box",e.computed(()=>t.buttonSize)),{t:C}=n,{nextZIndex:b}=i,s=e.ref(!1),r=e.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:e.markRaw(P.loading_default),cancelButtonLoadingIcon:e.markRaw(P.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:b()}),T=e.computed(()=>{const h=r.type;return{[p.bm("icon",h)]:h&&L.TypeComponentsMap[h]}}),f=J.useId(),u=J.useId(),z=e.computed(()=>{const h=r.type;return r.icon||h&&L.TypeComponentsMap[h]||""}),M=e.computed(()=>!!r.message),S=e.ref(),_=e.ref(),x=e.ref(),F=e.ref(),A=e.ref(),y=e.computed(()=>r.confirmButtonClass);e.watch(()=>r.inputValue,async h=>{await e.nextTick(),t.boxType==="prompt"&&h!==null&&$()},{immediate:!0}),e.watch(()=>s.value,h=>{var B,N;h&&(t.boxType!=="prompt"&&(r.autofocus?x.value=(N=(B=A.value)==null?void 0:B.$el)!=null?N:S.value:x.value=S.value),r.zIndex=b()),t.boxType==="prompt"&&(h?e.nextTick().then(()=>{var K;F.value&&F.value.$el&&(r.autofocus?x.value=(K=U())!=null?K:S.value:x.value=S.value)}):(r.editorErrorMessage="",r.validateError=!1))});const l=e.computed(()=>t.draggable),w=e.computed(()=>t.overflow);j.useDraggable(S,_,l,w),e.onMounted(async()=>{await e.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",v)}),e.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",v)});function v(){s.value&&(s.value=!1,e.nextTick(()=>{r.action&&d("action",r.action)}))}const k=()=>{t.closeOnClickModal&&g(r.distinguishCancelAndClose?"close":"cancel")},a=j.useSameTarget(k),V=h=>{if(r.inputType!=="textarea")return h.preventDefault(),g("confirm")},g=h=>{var B;t.boxType==="prompt"&&h==="confirm"&&!$()||(r.action=h,r.beforeClose?(B=r.beforeClose)==null||B.call(r,h,r,v):v())},$=()=>{if(t.boxType==="prompt"){const h=r.inputPattern;if(h&&!h.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;const B=r.inputValidator;if(c.isFunction(B)){const N=B(r.inputValue);if(N===!1)return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;if(c.isString(N))return r.editorErrorMessage=N,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},U=()=>{var h,B;const N=(h=F.value)==null?void 0:h.$refs;return(B=N==null?void 0:N.input)!=null?B:N==null?void 0:N.textarea},H=()=>{g("close")},I=()=>{t.closeOnPressEscape&&H()};return t.lockScroll&&j.useLockscreen(s),{...e.toRefs(r),ns:p,overlayEvent:a,visible:s,hasMessage:M,typeClass:T,contentId:f,inputId:u,btnSize:m,iconComponent:z,confirmButtonClasses:y,rootRef:S,focusStartRef:x,headerRef:_,inputRef:F,confirmRef:A,doClose:v,handleClose:H,onCloseRequested:I,handleWrapperClick:k,handleInputEnter:V,handleAction:g,t:C}}});function Ee(t,d,n,i,p,m){const C=e.resolveComponent("el-icon"),b=e.resolveComponent("close"),s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button"),T=e.resolveComponent("el-focus-trap"),f=e.resolveComponent("el-overlay");return e.openBlock(),e.createBlock(e.Transition,{name:"fade-in-linear",onAfterLeave:u=>t.$emit("vanish"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:e.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[e.createVNode(T,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:e.withCtx(()=>[e.createElementVNode("div",{ref:"rootRef",class:e.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:e.normalizeStyle(t.customStyle),tabindex:"-1",onClick:e.withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"headerRef",class:e.normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[e.createVNode(C,{class:e.normalizeClass(t.ns.e("close"))},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{id:t.contentId,class:e.normalizeClass(t.ns.e("content"))},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),t.hasMessage?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.ns.e("message"))},[e.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):e.createCommentVNode("v-if",!0)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("input"))},[e.createVNode(s,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":u=>t.inputValue=u,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:e.normalizeClass({invalid:t.validateError}),onKeydown:e.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("errormsg")),style:e.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},e.toDisplayString(t.editorErrorMessage),7)],2),[[e.vShow,t.showInput]])],10,["id"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(e.openBlock(),e.createBlock(r,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:e.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:u=>t.handleAction("cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(r,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:e.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:u=>t.handleAction("confirm"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[e.vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[e.vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var Te=c._export_sfc(Be,[["render",Ee],["__file","index.vue"]]);const G=new Map,Se=t=>{let d=document.body;return t.appendTo&&(c.isString(t.appendTo)&&(d=document.querySelector(t.appendTo)),c.isElement(t.appendTo)&&(d=t.appendTo),c.isElement(d)||(c.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),d=document.body)),d},_e=(t,d,n=null)=>{const i=e.createVNode(Te,t,c.isFunction(t.message)||e.isVNode(t.message)?{default:c.isFunction(t.message)?t.message:()=>t.message}:null);return i.appContext=n,e.render(i,d),Se(t).appendChild(d.firstElementChild),i.component},xe=()=>document.createElement("div"),Ie=(t,d)=>{const n=xe();t.onVanish=()=>{e.render(null,n),G.delete(p)},t.onAction=m=>{const C=G.get(p);let b;t.showInput?b={value:p.inputValue,action:m}:b=m,t.callback?t.callback(b,i.proxy):m==="cancel"||m==="close"?t.distinguishCancelAndClose&&m!=="cancel"?C.reject("close"):C.reject("cancel"):C.resolve(b)};const i=_e(t,n,d),p=i.proxy;for(const m in t)c.hasOwn(t,m)&&!c.hasOwn(p.$props,m)&&(p[m]=t[m]);return p.visible=!0,p};function R(t,d=null){if(!c.isClient)return Promise.reject();let n;return c.isString(t)||e.isVNode(t)?t={message:t}:n=t.callback,new Promise((i,p)=>{const m=Ie(t,d??R._context);G.set(m,{options:t,callback:n,resolve:i,reject:p})})}const Le=["alert","confirm","prompt"],ze={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Le.forEach(t=>{R[t]=Me(t)});function Me(t){return(d,n,i,p)=>{let m="";return c.isObject(n)?(i=n,m=""):c.isUndefined(n)?m="":m=n,R(Object.assign({title:m,message:d,type:"",...ze[t]},i,{boxType:t}),p)}}R.close=()=>{G.forEach((t,d)=>{d.doClose()}),G.clear()};R._context=null;const D=R;D.install=t=>{D._context=t._context,t.config.globalProperties.$msgbox=D,t.config.globalProperties.$messageBox=D,t.config.globalProperties.$alert=D.alert,t.config.globalProperties.$confirm=D.confirm,t.config.globalProperties.$prompt=D.prompt};const Fe=D;const De={ruleFormPrice:!0,ruleFormMark:!0,tableStatus:!0,tableCreateTime:!0,tableMark:!0,tableEnable:!0};const W=t=>(e.pushScopeId("data-v-b57c57a6"),t=t(),e.popScopeId(),t),Oe={class:"st-factorWarning"},$e={class:"custom-header"},qe=W(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),Ae={class:"factor-name"},Pe=["onClick"],Re={class:"factor-name"},Ue=["onClick"],He={style:{display:"flex","align-items":"start"}},Ke={key:0,style:{flex:"1"}},je=W(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),Ge={key:0,style:{color:"#f56c6c"}},Xe={key:1,style:{color:"#67c23a"}},We={key:0},Ye={key:1},Je={key:2},Ze={class:"shortcut-title"},Qe=W(()=>e.createElementVNode("span",null,"我的配置",-1)),et={class:"shortcut-config"},tt={key:1,class:"empty"},ot={class:"shortcut-title"},lt=W(()=>e.createElementVNode("span",null,"新增配置",-1)),nt={class:"custom-footer"},at={__name:"index",props:e.mergeModels({title:{type:[String,null],default:null},moreFactorOptions:{type:Array,default:()=>[]},emptyFactorOptions:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},shortcutData:{type:Array,default:()=>[]},showConfig:{type:Object,default:()=>({})},allowOperation:{type:Boolean,default:!0}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled","closed","shortcutAdd","shortcutDelete"],["update:visible"]),setup(t,{emit:d}){const n=e.ref("ruleForm"),i=e.useModel(t,"visible"),p=d,m=t,C=Object.assign(De,m.showConfig),b=e.ref(null),s=e.ref({factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}),r=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}]}),T=e.ref(null),f=e.ref({shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}),u=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}],shortcutName:[{required:!0,message:"请填写配置名称",trigger:"blur"}]}),z=()=>{s.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null},f.value={shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}},M=async y=>{Object.assign(s.value,{factorSelectedList:[y],totalCount:3});const l={factorSelectedList:s.value.factorSelectedList.map(v=>({factorName:v,...s.value}))},w=()=>{const v=s.value.factorType;z(),s.value.factorType=v};_(b.value,l,w)},S=async y=>{const l=JSON.parse(y.data);Object.assign(s.value,{factorType:l.factorType,factorSelectedList:l.factorSelectedList,totalCount:l.totalCount});const w={factorSelectedList:s.value.factorSelectedList.map(k=>{let a=l.totalCount;const V=m.tableData.find(({factorExtendName:g})=>g===k);if(V){const g=V.totalCount-V.currentCount;g===0?a=l.totalCount:a=Math.min(l.totalCount,10-g>=0?10-g:0)}return{factorName:k,...s.value,totalCount:a}})},v=()=>z();_(b.value,w,v)},_=fe.G(async(y,l,w)=>{y&&await y.validate(v=>{if(!v)return!1;const k=l??{factorSelectedList:s.value.factorSelectedList.map(a=>({factorName:a,...s.value}))};p("add",k),w?w():i.value=!1})},200),x=async y=>{y&&await y.validate(l=>{if(!l)return!1;const w={shortcutName:f.value.shortcutName,data:JSON.stringify(f.value)};p("shortcutAdd",w),z()})},F=y=>{f.value=JSON.parse(y.data)},A=y=>{Fe.confirm(`是否确认删除配置: ${y.shortcutName} ?`,"删除提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>p("shortcutDelete",y))};return e.watch(()=>i.value,y=>{y&&(n.value=m.allowOperation?"ruleForm":"table",z())},{immediate:!0}),(y,l)=>{const w=we,v=ne.ElButton,k=te.ElFormItem,a=X.ElCheckbox,V=X.ElCheckboxGroup,g=me.ElInputNumber,$=de.ElText,U=ae.ElInput,H=te.ElForm,I=X.ElTableColumn,h=ue.ElPopconfirm,B=X.ElTable,N=P.ElIcon,K=le.ElTooltip,re=ge.ElTag,se=j.ElDialog,ie=Q.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(ie,{locale:e.unref(Q.zhCn)},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:i.value,"onUpdate:modelValue":l[17]||(l[17]=o=>i.value=o),width:"1020","align-center":"","destroy-on-close":"",onClosed:l[18]||(l[18]=o=>p("closed"))},{header:e.withCtx(({close:o,titleId:E,titleClass:Y})=>[e.createElementVNode("div",$e,[e.createElementVNode("div",{class:e.normalizeClass(Y)},[qe,e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),e.createVNode(w,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=ce=>n.value=ce),size:"default",options:[{label:"添加",value:"ruleForm",disabled:!t.allowOperation},{label:"管理",value:"table",disabled:!1},{label:"快捷配置",value:"shortcut",disabled:!t.allowOperation}]},null,8,["modelValue","options"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(v,{size:"default",onClick:l[14]||(l[14]=o=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),n.value==="ruleForm"?(e.openBlock(),e.createBlock(v,{key:0,size:"default",type:"primary",onClick:l[15]||(l[15]=o=>e.unref(_)(b.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createBlock(v,{key:1,size:"default",type:"primary",onClick:l[16]||(l[16]=o=>x(T.value))},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[n.value==="ruleForm"?(e.openBlock(),e.createBlock(H,{key:0,ref_key:"ruleFormRef",ref:b,model:s.value,rules:r.value,size:"default","label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:s.value.factorType!==1,onClick:l[1]||(l[1]=()=>{s.value.factorType===-1&&(s.value.factorSelectedList=[]),s.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:s.value.factorType!==-1,onClick:l[2]||(l[2]=()=>{s.value.factorType===1&&(s.value.factorSelectedList=[]),s.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:s.value.factorSelectedList,"onUpdate:modelValue":l[3]||(l[3]=o=>s.value.factorSelectedList=o)},{default:e.withCtx(()=>[s.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,E)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:E},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Ae,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,Pe)]))),128)):e.createCommentVNode("",!0),s.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,E)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:E},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Re,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,Ue)]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createElementVNode("div",He,[e.createVNode(g,{modelValue:s.value.totalCount,"onUpdate:modelValue":l[4]||(l[4]=o=>s.value.totalCount=o),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),t.shortcutData.length?(e.openBlock(),e.createElementBlock("div",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(v,{key:o.id,onClick:E=>S(o),style:{margin:"0 12px 4px 0"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick"]))),128))])):(e.openBlock(),e.createBlock($,{key:1,type:"primary",style:{cursor:"pointer"},onClick:l[5]||(l[5]=()=>n.value="shortcut")},{default:e.withCtx(()=>[e.createTextVNode(" 暂无快捷配置, 是否点击前往自定义配置? ")]),_:1}))])]),_:1}),e.unref(C).ruleFormPrice?(e.openBlock(),e.createBlock(k,{key:0,label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:s.value.minPrice,"onUpdate:modelValue":l[6]||(l[6]=o=>s.value.minPrice=o),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),je,e.createVNode(g,{modelValue:s.value.maxPrice,"onUpdate:modelValue":l[7]||(l[7]=o=>s.value.maxPrice=o),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(C).ruleFormMark?(e.openBlock(),e.createBlock(k,{key:1,label:"备注:"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:s.value.mark,"onUpdate:modelValue":l[8]||(l[8]=o=>s.value.mark=o),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),n.value==="table"?(e.openBlock(),e.createBlock(B,{key:1,data:t.tableData,size:"small"},{default:e.withCtx(()=>[e.createVNode(I,{label:"预警周期",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.freqName||"-"),1)]),_:1}),e.createVNode(I,{label:"交易类型",width:"70"},{default:e.withCtx(o=>[o.row.factorExtendValue==1?(e.openBlock(),e.createElementBlock("span",Ge,"多")):(e.openBlock(),e.createElementBlock("span",Xe,"空"))]),_:1}),e.createVNode(I,{label:"预警因子"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(I,{label:"预警次数",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(`${o.row.currentCount} / ${o.row.totalCount}`),1)]),_:1}),e.unref(C).tableStatus?(e.openBlock(),e.createBlock(I,{key:0,label:"状态",width:"70"},{default:e.withCtx(o=>[e.createElementVNode("div",null,[o.row.enable===1?(e.openBlock(),e.createElementBlock("span",We,"未触发")):o.row.enable===2?(e.openBlock(),e.createElementBlock("span",Ye,"已触发")):(e.openBlock(),e.createElementBlock("span",Je,"-"))])]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableCreateTime?(e.openBlock(),e.createBlock(I,{key:1,label:"设置时间",width:"136"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.createdTime||"-"),1)]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableMark?(e.openBlock(),e.createBlock(I,{key:2,label:"备注",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.mark||"-"),1)]),_:1})):e.createCommentVNode("",!0),t.allowOperation?(e.openBlock(),e.createBlock(I,{key:3,label:"操作",width:"140"},{default:e.withCtx(o=>[e.unref(C).tableEnable?(e.openBlock(),e.createBlock(v,{key:0,disabled:o.row.currentCount!==o.row.totalCount,size:"small",onClick:E=>p("enabled",o.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(h,{title:"确定删除?",onConfirm:E=>p("delete",o.row)},{reference:e.withCtx(()=>[e.createVNode(v,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Ze,[Qe,e.createVNode(K,{effect:"dark",content:"如有配置数据, 可点击查看该配置的具体信息",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(e.unref(P.info_filled_default))]),_:1})]),_:1})]),e.createElementVNode("div",et,[t.shortcutData.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(re,{key:o.id,type:"primary",size:"default",closable:"",onClick:E=>F(o),onClose:E=>A(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick","onClose"]))),128)):(e.openBlock(),e.createElementBlock("span",tt,"暂无数据"))]),e.createElementVNode("div",ot,[lt,e.createVNode(K,{effect:"dark",content:"同名配置将会进行覆盖",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(e.unref(P.info_filled_default))]),_:1})]),_:1})]),e.createVNode(H,{ref_key:"shortcut_ruleFormRef",ref:T,model:f.value,rules:u.value,"label-width":"90px",size:"default"},{default:e.withCtx(()=>[e.createVNode(k,{label:"配置名称:",prop:"shortcutName"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:f.value.shortcutName,"onUpdate:modelValue":l[9]||(l[9]=o=>f.value.shortcutName=o),maxlength:"6","show-word-limit":"",style:{width:"160px"}},null,8,["modelValue"])]),_:1}),e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:f.value.factorType!==1,onClick:l[10]||(l[10]=()=>{f.value.factorType===-1&&(f.value.factorSelectedList=[]),f.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:f.value.factorType!==-1,onClick:l[11]||(l[11]=()=>{f.value.factorType===1&&(f.value.factorSelectedList=[]),f.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:f.value.factorSelectedList,"onUpdate:modelValue":l[12]||(l[12]=o=>f.value.factorSelectedList=o)},{default:e.withCtx(()=>[f.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,E)=>(e.openBlock(),e.createBlock(a,{key:E,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0),f.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,E)=>(e.openBlock(),e.createBlock(a,{key:E,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:f.value.totalCount,"onUpdate:modelValue":l[13]||(l[13]=o=>f.value.totalCount=o),min:1,max:10,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])],64)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["locale"])])}}},rt=pe._export_sfc(at,[["__scopeId","data-v-b57c57a6"]]),st={install(t){t.component("st-factorWarning",rt)}};module.exports=st;
1
+ "use strict";const c=require("./base-0ca7c43a.cjs"),Q=require("./zh-cn-36f34912.cjs"),j=require("./el-overlay-41994f67.cjs");require("./el-tag-9732314f.cjs");require("./el-tooltip-0ea8fbf8.cjs");const le=require("./el-popper-7adbf1c6.cjs"),X=require("./el-table-column-bdc46568.cjs"),ee=require("./el-scrollbar-ac525239.cjs"),ue=require("./el-popover-7bd8a7c3.cjs"),ne=require("./el-button-62966947.cjs"),te=require("./el-form-item-47e255d4.cjs"),ae=require("./el-input-6a3805c5.cjs"),de=require("./el-checkbox-group-45247bbf.cjs"),me=require("./el-input-number-96ff2e47.cjs"),e=require("vue"),P=require("./index-afc88a4b.cjs"),fe=require("./index-8901a38c.cjs"),pe=require("./_plugin-vue_export-helper-f246444f.cjs"),O=require("./index-65b4113e.cjs"),L=require("./use-form-common-props-74a96df2.cjs"),ve=require("./index-2f958e56.cjs"),J=require("./index-375e8de4.cjs"),ge=require("./index-9e6e8d03.cjs");require("./config-provider-cfbb9cd8.cjs");require("./vnode-b15eb11b.cjs");require("./scroll-339681d4.cjs");require("./_initCloneObject-47814efa.cjs");require("./debounce-cf26af24.cjs");require("./raf-f46caea0.cjs");require("./index-eea0bcb3.cjs");require("./castArray-a78ae889.cjs");require("./typescript-b63f8e83.cjs");require("./index-1d85ba4b.cjs");const he=t=>["",...L.componentSizes].includes(t),Ce=c.buildProps({direction:{type:c.definePropType(String),default:"horizontal"},options:{type:c.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:L.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...le.useAriaProps(["ariaLabel"])}),ye={[O.UPDATE_MODEL_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t),[O.CHANGE_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t)},be=e.defineComponent({name:"ElSegmented"}),ke=e.defineComponent({...be,props:Ce,emits:ye,setup(t,{emit:d}){const n=t,i=c.useNamespace("segmented"),p=J.useId(),m=L.useFormSize(),C=L.useFormDisabled(),{formItem:b}=L.useFormItem(),{inputId:s,isLabeledByFormItem:r}=L.useFormItemInputId(n,{formItemContext:b}),T=e.ref(null),f=ee.useActiveElement(),u=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),z=a=>{const V=M(a);d(O.UPDATE_MODEL_EVENT,V),d(O.CHANGE_EVENT,V)},M=a=>c.isObject(a)?a.value:a,S=a=>c.isObject(a)?a.label:a,_=a=>!!(C.value||c.isObject(a)&&a.disabled),x=a=>n.modelValue===M(a),F=a=>n.options.find(V=>M(V)===a),A=a=>[i.e("item"),i.is("selected",x(a)),i.is("disabled",_(a))],y=()=>{if(!T.value)return;const a=T.value.querySelector(".is-selected"),V=T.value.querySelector(".is-selected input");if(!a||!V){u.width=0,u.height=0,u.translateX=0,u.translateY=0,u.focusVisible=!1;return}const g=a.getBoundingClientRect();u.isInit=!0,n.direction==="vertical"?(u.height=g.height,u.translateY=a.offsetTop):(u.width=g.width,u.translateX=a.offsetLeft);try{u.focusVisible=V.matches(":focus-visible")}catch{}},l=e.computed(()=>[i.b(),i.m(m.value),i.is("block",n.block)]),w=e.computed(()=>({width:n.direction==="vertical"?"100%":`${u.width}px`,height:n.direction==="vertical"?`${u.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${u.translateY}px)`:`translateX(${u.translateX}px)`,display:u.isInit?"block":"none"})),v=e.computed(()=>[i.e("item-selected"),i.is("disabled",_(F(n.modelValue))),i.is("focus-visible",u.focusVisible)]),k=e.computed(()=>n.name||p.value);return ee.useResizeObserver(T,y),e.watch(f,y),e.watch(()=>n.modelValue,()=>{var a;y(),n.validateEvent&&((a=b==null?void 0:b.validate)==null||a.call(b,"change").catch(V=>c.debugWarn(V)))},{flush:"post"}),(a,V)=>a.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(s),ref_key:"segmentedRef",ref:T,class:e.normalizeClass(e.unref(l)),role:"radiogroup","aria-label":e.unref(r)?void 0:a.ariaLabel||"segmented","aria-labelledby":e.unref(r)?e.unref(b).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(i).e("group"),e.unref(i).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(w)),class:e.normalizeClass(e.unref(v))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,(g,$)=>(e.openBlock(),e.createElementBlock("label",{key:$,class:e.normalizeClass(A(g))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(i).e("item-input")),type:"radio",name:e.unref(k),disabled:_(g),checked:x(g),onChange:U=>z(g)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("item-label"))},[e.renderSlot(a.$slots,"default",{item:g},()=>[e.createTextVNode(e.toDisplayString(S(g)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var Ve=c._export_sfc(ke,[["__file","segmented.vue"]]);const we=c.withInstall(Ve),Z="_trap-focus-children",q=[],oe=t=>{var d;if(q.length===0)return;const n=q[q.length-1][Z];if(n.length>0&&t.code===O.EVENT_CODE.tab){if(n.length===1){t.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=t.shiftKey,p=t.target===n[0],m=t.target===n[n.length-1];if(p&&i&&(t.preventDefault(),n[n.length-1].focus()),m&&!i&&(t.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const C=n.indexOf(t.target);C!==-1&&((d=n[i?C-1:C+1])==null||d.focus())}}},Ne={beforeMount(t){t[Z]=O.obtainAllFocusableElements(t),q.push(t),q.length<=1&&document.addEventListener("keydown",oe)},updated(t){e.nextTick(()=>{t[Z]=O.obtainAllFocusableElements(t)})},unmounted(){q.shift(),q.length===0&&document.removeEventListener("keydown",oe)}},Be=e.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Ne},components:{ElButton:ne.ElButton,ElFocusTrap:O.ElFocusTrap,ElInput:ae.ElInput,ElOverlay:j.ElOverlay,ElIcon:P.ElIcon,...L.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:he},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:d}){const{locale:n,zIndex:i,ns:p,size:m}=ve.useGlobalComponentSettings("message-box",e.computed(()=>t.buttonSize)),{t:C}=n,{nextZIndex:b}=i,s=e.ref(!1),r=e.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:e.markRaw(P.loading_default),cancelButtonLoadingIcon:e.markRaw(P.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:b()}),T=e.computed(()=>{const h=r.type;return{[p.bm("icon",h)]:h&&L.TypeComponentsMap[h]}}),f=J.useId(),u=J.useId(),z=e.computed(()=>{const h=r.type;return r.icon||h&&L.TypeComponentsMap[h]||""}),M=e.computed(()=>!!r.message),S=e.ref(),_=e.ref(),x=e.ref(),F=e.ref(),A=e.ref(),y=e.computed(()=>r.confirmButtonClass);e.watch(()=>r.inputValue,async h=>{await e.nextTick(),t.boxType==="prompt"&&h!==null&&$()},{immediate:!0}),e.watch(()=>s.value,h=>{var B,N;h&&(t.boxType!=="prompt"&&(r.autofocus?x.value=(N=(B=A.value)==null?void 0:B.$el)!=null?N:S.value:x.value=S.value),r.zIndex=b()),t.boxType==="prompt"&&(h?e.nextTick().then(()=>{var K;F.value&&F.value.$el&&(r.autofocus?x.value=(K=U())!=null?K:S.value:x.value=S.value)}):(r.editorErrorMessage="",r.validateError=!1))});const l=e.computed(()=>t.draggable),w=e.computed(()=>t.overflow);j.useDraggable(S,_,l,w),e.onMounted(async()=>{await e.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",v)}),e.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",v)});function v(){s.value&&(s.value=!1,e.nextTick(()=>{r.action&&d("action",r.action)}))}const k=()=>{t.closeOnClickModal&&g(r.distinguishCancelAndClose?"close":"cancel")},a=j.useSameTarget(k),V=h=>{if(r.inputType!=="textarea")return h.preventDefault(),g("confirm")},g=h=>{var B;t.boxType==="prompt"&&h==="confirm"&&!$()||(r.action=h,r.beforeClose?(B=r.beforeClose)==null||B.call(r,h,r,v):v())},$=()=>{if(t.boxType==="prompt"){const h=r.inputPattern;if(h&&!h.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;const B=r.inputValidator;if(c.isFunction(B)){const N=B(r.inputValue);if(N===!1)return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;if(c.isString(N))return r.editorErrorMessage=N,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},U=()=>{var h,B;const N=(h=F.value)==null?void 0:h.$refs;return(B=N==null?void 0:N.input)!=null?B:N==null?void 0:N.textarea},H=()=>{g("close")},I=()=>{t.closeOnPressEscape&&H()};return t.lockScroll&&j.useLockscreen(s),{...e.toRefs(r),ns:p,overlayEvent:a,visible:s,hasMessage:M,typeClass:T,contentId:f,inputId:u,btnSize:m,iconComponent:z,confirmButtonClasses:y,rootRef:S,focusStartRef:x,headerRef:_,inputRef:F,confirmRef:A,doClose:v,handleClose:H,onCloseRequested:I,handleWrapperClick:k,handleInputEnter:V,handleAction:g,t:C}}});function Ee(t,d,n,i,p,m){const C=e.resolveComponent("el-icon"),b=e.resolveComponent("close"),s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button"),T=e.resolveComponent("el-focus-trap"),f=e.resolveComponent("el-overlay");return e.openBlock(),e.createBlock(e.Transition,{name:"fade-in-linear",onAfterLeave:u=>t.$emit("vanish"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:e.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[e.createVNode(T,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:e.withCtx(()=>[e.createElementVNode("div",{ref:"rootRef",class:e.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:e.normalizeStyle(t.customStyle),tabindex:"-1",onClick:e.withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"headerRef",class:e.normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[e.createVNode(C,{class:e.normalizeClass(t.ns.e("close"))},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{id:t.contentId,class:e.normalizeClass(t.ns.e("content"))},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),t.hasMessage?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.ns.e("message"))},[e.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):e.createCommentVNode("v-if",!0)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("input"))},[e.createVNode(s,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":u=>t.inputValue=u,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:e.normalizeClass({invalid:t.validateError}),onKeydown:e.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("errormsg")),style:e.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},e.toDisplayString(t.editorErrorMessage),7)],2),[[e.vShow,t.showInput]])],10,["id"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(e.openBlock(),e.createBlock(r,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:e.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:u=>t.handleAction("cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(r,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:e.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:u=>t.handleAction("confirm"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[e.vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[e.vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var Te=c._export_sfc(Be,[["render",Ee],["__file","index.vue"]]);const G=new Map,Se=t=>{let d=document.body;return t.appendTo&&(c.isString(t.appendTo)&&(d=document.querySelector(t.appendTo)),c.isElement(t.appendTo)&&(d=t.appendTo),c.isElement(d)||(c.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),d=document.body)),d},_e=(t,d,n=null)=>{const i=e.createVNode(Te,t,c.isFunction(t.message)||e.isVNode(t.message)?{default:c.isFunction(t.message)?t.message:()=>t.message}:null);return i.appContext=n,e.render(i,d),Se(t).appendChild(d.firstElementChild),i.component},xe=()=>document.createElement("div"),Ie=(t,d)=>{const n=xe();t.onVanish=()=>{e.render(null,n),G.delete(p)},t.onAction=m=>{const C=G.get(p);let b;t.showInput?b={value:p.inputValue,action:m}:b=m,t.callback?t.callback(b,i.proxy):m==="cancel"||m==="close"?t.distinguishCancelAndClose&&m!=="cancel"?C.reject("close"):C.reject("cancel"):C.resolve(b)};const i=_e(t,n,d),p=i.proxy;for(const m in t)c.hasOwn(t,m)&&!c.hasOwn(p.$props,m)&&(p[m]=t[m]);return p.visible=!0,p};function R(t,d=null){if(!c.isClient)return Promise.reject();let n;return c.isString(t)||e.isVNode(t)?t={message:t}:n=t.callback,new Promise((i,p)=>{const m=Ie(t,d??R._context);G.set(m,{options:t,callback:n,resolve:i,reject:p})})}const Le=["alert","confirm","prompt"],ze={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Le.forEach(t=>{R[t]=Me(t)});function Me(t){return(d,n,i,p)=>{let m="";return c.isObject(n)?(i=n,m=""):c.isUndefined(n)?m="":m=n,R(Object.assign({title:m,message:d,type:"",...ze[t]},i,{boxType:t}),p)}}R.close=()=>{G.forEach((t,d)=>{d.doClose()}),G.clear()};R._context=null;const D=R;D.install=t=>{D._context=t._context,t.config.globalProperties.$msgbox=D,t.config.globalProperties.$messageBox=D,t.config.globalProperties.$alert=D.alert,t.config.globalProperties.$confirm=D.confirm,t.config.globalProperties.$prompt=D.prompt};const Fe=D;const De={ruleFormPrice:!0,ruleFormMark:!0,tableStatus:!0,tableCreateTime:!0,tableMark:!0,tableEnable:!0};const W=t=>(e.pushScopeId("data-v-b57c57a6"),t=t(),e.popScopeId(),t),Oe={class:"st-factorWarning"},$e={class:"custom-header"},qe=W(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),Ae={class:"factor-name"},Pe=["onClick"],Re={class:"factor-name"},Ue=["onClick"],He={style:{display:"flex","align-items":"start"}},Ke={key:0,style:{flex:"1"}},je=W(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),Ge={key:0,style:{color:"#f56c6c"}},Xe={key:1,style:{color:"#67c23a"}},We={key:0},Ye={key:1},Je={key:2},Ze={class:"shortcut-title"},Qe=W(()=>e.createElementVNode("span",null,"我的配置",-1)),et={class:"shortcut-config"},tt={key:1,class:"empty"},ot={class:"shortcut-title"},lt=W(()=>e.createElementVNode("span",null,"新增配置",-1)),nt={class:"custom-footer"},at={__name:"index",props:e.mergeModels({title:{type:[String,null],default:null},moreFactorOptions:{type:Array,default:()=>[]},emptyFactorOptions:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},shortcutData:{type:Array,default:()=>[]},showConfig:{type:Object,default:()=>({})},allowOperation:{type:Boolean,default:!0}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled","closed","shortcutAdd","shortcutDelete"],["update:visible"]),setup(t,{emit:d}){const n=e.ref("ruleForm"),i=e.useModel(t,"visible"),p=d,m=t,C=Object.assign(De,m.showConfig),b=e.ref(null),s=e.ref({factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}),r=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}]}),T=e.ref(null),f=e.ref({shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}),u=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}],shortcutName:[{required:!0,message:"请填写配置名称",trigger:"blur"}]}),z=()=>{s.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null},f.value={shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}},M=async y=>{Object.assign(s.value,{factorSelectedList:[y],totalCount:3});const l={factorSelectedList:s.value.factorSelectedList.map(v=>({factorName:v,...s.value}))},w=()=>{const v=s.value.factorType;z(),s.value.factorType=v};_(b.value,l,w)},S=async y=>{const l=JSON.parse(y.data);Object.assign(s.value,{factorType:l.factorType,factorSelectedList:l.factorSelectedList,totalCount:l.totalCount});const w={factorSelectedList:s.value.factorSelectedList.map(k=>{let a=l.totalCount;const V=m.tableData.find(({factorExtendName:g})=>g===k);if(V){const g=V.totalCount-V.currentCount;g===0?a=l.totalCount:a=Math.min(l.totalCount,10-g>=0?10-g:0)}return{factorName:k,...s.value,totalCount:a}})},v=()=>z();_(b.value,w,v)},_=fe.G(async(y,l,w)=>{y&&await y.validate(v=>{if(!v)return!1;const k=l??{factorSelectedList:s.value.factorSelectedList.map(a=>({factorName:a,...s.value}))};p("add",k),w?w():i.value=!1})},200),x=async y=>{y&&await y.validate(l=>{if(!l)return!1;const w={shortcutName:f.value.shortcutName,data:JSON.stringify(f.value)};p("shortcutAdd",w),z()})},F=y=>{f.value=JSON.parse(y.data)},A=y=>{Fe.confirm(`是否确认删除配置: ${y.shortcutName} ?`,"删除提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>p("shortcutDelete",y))};return e.watch(()=>i.value,y=>{y&&(n.value=m.allowOperation?"ruleForm":"table",z())},{immediate:!0}),(y,l)=>{const w=we,v=ne.ElButton,k=te.ElFormItem,a=X.ElCheckbox,V=X.ElCheckboxGroup,g=me.ElInputNumber,$=de.ElText,U=ae.ElInput,H=te.ElForm,I=X.ElTableColumn,h=ue.ElPopconfirm,B=X.ElTable,N=P.ElIcon,K=le.ElTooltip,re=ge.ElTag,se=j.ElDialog,ie=Q.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(ie,{locale:e.unref(Q.zhCn)},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:i.value,"onUpdate:modelValue":l[17]||(l[17]=o=>i.value=o),width:"1020","align-center":"","destroy-on-close":"",onClosed:l[18]||(l[18]=o=>p("closed"))},{header:e.withCtx(({close:o,titleId:E,titleClass:Y})=>[e.createElementVNode("div",$e,[e.createElementVNode("div",{class:e.normalizeClass(Y)},[qe,e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),e.createVNode(w,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=ce=>n.value=ce),size:"default",options:[{label:"添加",value:"ruleForm",disabled:!t.allowOperation},{label:"管理",value:"table",disabled:!1},{label:"快捷配置",value:"shortcut",disabled:!t.allowOperation}]},null,8,["modelValue","options"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",nt,[e.createVNode(v,{size:"default",onClick:l[14]||(l[14]=o=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),n.value==="ruleForm"?(e.openBlock(),e.createBlock(v,{key:0,size:"default",type:"primary",onClick:l[15]||(l[15]=o=>e.unref(_)(b.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createBlock(v,{key:1,size:"default",type:"primary",onClick:l[16]||(l[16]=o=>x(T.value))},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[n.value==="ruleForm"?(e.openBlock(),e.createBlock(H,{key:0,ref_key:"ruleFormRef",ref:b,model:s.value,rules:r.value,size:"default","label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:s.value.factorType!==1,onClick:l[1]||(l[1]=()=>{s.value.factorType===-1&&(s.value.factorSelectedList=[]),s.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:s.value.factorType!==-1,onClick:l[2]||(l[2]=()=>{s.value.factorType===1&&(s.value.factorSelectedList=[]),s.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:s.value.factorSelectedList,"onUpdate:modelValue":l[3]||(l[3]=o=>s.value.factorSelectedList=o)},{default:e.withCtx(()=>[s.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,E)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:E},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Ae,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,Pe)]))),128)):e.createCommentVNode("",!0),s.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,E)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:E},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Re,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,Ue)]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createElementVNode("div",He,[e.createVNode(g,{modelValue:s.value.totalCount,"onUpdate:modelValue":l[4]||(l[4]=o=>s.value.totalCount=o),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),t.shortcutData.length?(e.openBlock(),e.createElementBlock("div",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(v,{key:o.id,onClick:E=>S(o),style:{margin:"0 12px 4px 0"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick"]))),128))])):(e.openBlock(),e.createBlock($,{key:1,type:"primary",style:{cursor:"pointer"},onClick:l[5]||(l[5]=()=>n.value="shortcut")},{default:e.withCtx(()=>[e.createTextVNode(" 暂无快捷配置, 是否点击前往自定义配置? ")]),_:1}))])]),_:1}),e.unref(C).ruleFormPrice?(e.openBlock(),e.createBlock(k,{key:0,label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:s.value.minPrice,"onUpdate:modelValue":l[6]||(l[6]=o=>s.value.minPrice=o),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),je,e.createVNode(g,{modelValue:s.value.maxPrice,"onUpdate:modelValue":l[7]||(l[7]=o=>s.value.maxPrice=o),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(C).ruleFormMark?(e.openBlock(),e.createBlock(k,{key:1,label:"备注:"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:s.value.mark,"onUpdate:modelValue":l[8]||(l[8]=o=>s.value.mark=o),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),n.value==="table"?(e.openBlock(),e.createBlock(B,{key:1,data:t.tableData,size:"small"},{default:e.withCtx(()=>[e.createVNode(I,{label:"预警周期",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.freqName||"-"),1)]),_:1}),e.createVNode(I,{label:"交易类型",width:"70"},{default:e.withCtx(o=>[o.row.factorExtendValue==1?(e.openBlock(),e.createElementBlock("span",Ge,"多")):(e.openBlock(),e.createElementBlock("span",Xe,"空"))]),_:1}),e.createVNode(I,{label:"预警因子"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(I,{label:"预警次数",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(`${o.row.currentCount} / ${o.row.totalCount}`),1)]),_:1}),e.unref(C).tableStatus?(e.openBlock(),e.createBlock(I,{key:0,label:"状态",width:"70"},{default:e.withCtx(o=>[e.createElementVNode("div",null,[o.row.enable===1?(e.openBlock(),e.createElementBlock("span",We,"未触发")):o.row.enable===2?(e.openBlock(),e.createElementBlock("span",Ye,"已触发")):(e.openBlock(),e.createElementBlock("span",Je,"-"))])]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableCreateTime?(e.openBlock(),e.createBlock(I,{key:1,label:"设置时间",width:"136"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.createdTime||"-"),1)]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableMark?(e.openBlock(),e.createBlock(I,{key:2,label:"备注",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.mark||"-"),1)]),_:1})):e.createCommentVNode("",!0),t.allowOperation?(e.openBlock(),e.createBlock(I,{key:3,label:"操作",width:"140"},{default:e.withCtx(o=>[e.unref(C).tableEnable?(e.openBlock(),e.createBlock(v,{key:0,disabled:o.row.currentCount!==o.row.totalCount,size:"small",onClick:E=>p("enabled",o.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(h,{title:"确定删除?",onConfirm:E=>p("delete",o.row)},{reference:e.withCtx(()=>[e.createVNode(v,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Ze,[Qe,e.createVNode(K,{effect:"dark",content:"如有配置数据, 可点击查看该配置的具体信息",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(e.unref(P.info_filled_default))]),_:1})]),_:1})]),e.createElementVNode("div",et,[t.shortcutData.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(re,{key:o.id,type:"primary",size:"default",closable:"",onClick:E=>F(o),onClose:E=>A(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick","onClose"]))),128)):(e.openBlock(),e.createElementBlock("span",tt,"暂无数据"))]),e.createElementVNode("div",ot,[lt,e.createVNode(K,{effect:"dark",content:"同名配置将会进行覆盖",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(e.unref(P.info_filled_default))]),_:1})]),_:1})]),e.createVNode(H,{ref_key:"shortcut_ruleFormRef",ref:T,model:f.value,rules:u.value,"label-width":"90px",size:"default"},{default:e.withCtx(()=>[e.createVNode(k,{label:"配置名称:",prop:"shortcutName"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:f.value.shortcutName,"onUpdate:modelValue":l[9]||(l[9]=o=>f.value.shortcutName=o),maxlength:"6","show-word-limit":"",style:{width:"160px"}},null,8,["modelValue"])]),_:1}),e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:f.value.factorType!==1,onClick:l[10]||(l[10]=()=>{f.value.factorType===-1&&(f.value.factorSelectedList=[]),f.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:f.value.factorType!==-1,onClick:l[11]||(l[11]=()=>{f.value.factorType===1&&(f.value.factorSelectedList=[]),f.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:f.value.factorSelectedList,"onUpdate:modelValue":l[12]||(l[12]=o=>f.value.factorSelectedList=o)},{default:e.withCtx(()=>[f.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,E)=>(e.openBlock(),e.createBlock(a,{key:E,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0),f.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,E)=>(e.openBlock(),e.createBlock(a,{key:E,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:f.value.totalCount,"onUpdate:modelValue":l[13]||(l[13]=o=>f.value.totalCount=o),min:1,max:10,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])],64)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["locale"])])}}},rt=pe._export_sfc(at,[["__scopeId","data-v-b57c57a6"]]),st={install(t){t.component("st-factorWarning",rt)}};module.exports=st;
@@ -14,7 +14,7 @@ import { E as gt } from "./el-checkbox-group-d53bc316.js";
14
14
  import { E as yt } from "./el-input-number-60ebc58f.js";
15
15
  import { defineComponent as he, ref as O, reactive as ze, computed as P, watch as ne, openBlock as n, createElementBlock as T, unref as _, normalizeClass as k, createElementVNode as f, normalizeStyle as ge, Fragment as X, renderList as Y, renderSlot as Ae, createTextVNode as B, toDisplayString as M, createCommentVNode as S, nextTick as oe, markRaw as Se, onMounted as bt, onBeforeUnmount as ht, toRefs as Ct, resolveComponent as Q, createBlock as E, Transition as kt, withCtx as o, withDirectives as me, createVNode as r, withModifiers as re, resolveDynamicComponent as ie, withKeys as ue, vShow as pe, isVNode as Pe, render as Re, mergeModels as _e, useModel as Et, pushScopeId as wt, popScopeId as Tt } from "vue";
16
16
  import { E as De, l as Be, i as Ve } from "./index-72151b24.js";
17
- import { G as St } from "./index-8542fe24.js";
17
+ import { G as St } from "./index-7ed0999e.js";
18
18
  import { _ as _t } from "./_plugin-vue_export-helper-dad06003.js";
19
19
  import { U as Ue, C as qe, o as Ie, E as Bt, a as Vt } from "./index-621b092b.js";
20
20
  import { c as It, u as Lt, a as Mt, b as $t, d as Nt, e as Ot, T as Ft, f as Le } from "./use-form-common-props-5ff2f51b.js";
package/es/Kline.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";require("./base-0ca7c43a.cjs");const ae=require("./el-menu-item-4c9eb7ad.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-popper-7adbf1c6.cjs");const n=require("vue"),je=require("echarts"),P=require("./_plugin-vue_export-helper-f246444f.cjs"),J=require("./index-a96158ae.cjs"),ue=require("./index.esm-94a95a2a.cjs");require("./el-tag-9732314f.cjs");const Me=require("./el-select-31f8ac8a.cjs");require("./el-scrollbar-ac525239.cjs");require("./index-afc88a4b.cjs");require("./index-65b4113e.cjs");require("./index-eea0bcb3.cjs");require("./use-form-common-props-74a96df2.cjs");require("./index-375e8de4.cjs");require("./typescript-b63f8e83.cjs");require("./vnode-b15eb11b.cjs");require("./index-9e6e8d03.cjs");require("./castArray-a78ae889.cjs");require("./index-1d85ba4b.cjs");require("./scroll-339681d4.cjs");require("./debounce-cf26af24.cjs");function de(M){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(M){for(const i in M)if(i!=="default"){const e=Object.getOwnPropertyDescriptor(M,i);Object.defineProperty(t,i,e.get?e:{enumerable:!0,get:()=>M[i]})}}return t.default=M,Object.freeze(t)}const H=de(je),ye={class:"st-kline-tips"},ge={class:"st-kline-tips-row"},Te=n.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},setup(M){return(t,i)=>(n.openBlock(),n.createElementBlock("div",ye,[n.createElementVNode("div",ge,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.data,e=>(n.openBlock(),n.createElementBlock("div",{class:"st-kline-tips-row-item",style:n.normalizeStyle({color:e.color})},n.toDisplayString(e.label)+" "+n.toDisplayString(e.value),5))),256))])]))}});const X=P._export_sfc(Te,[["__scopeId","data-v-78aed210"]]),De=n.defineComponent({__name:"index",emits:["closeContextMenuCallBack"],setup(M,{emit:t}){const i=t,e=n.ref(),o=n.ref(),a=n.ref({display:"none",top:"0px",left:"0px"}),j=()=>{a.value.display="none",i("closeContextMenuCallBack"),document.removeEventListener("click",j)},s=r=>{if(r.preventDefault(),r.stopPropagation(),a.value.display==="block"){const{offsetX:c,offsetY:d}=r,{offsetWidth:I,offsetHeight:u}=o.value;if(c<=I&&d<=u)return}e.value.click(),a.value={display:"block",top:`${r.offsetY}px`,left:`${r.offsetX}px`},n.nextTick(()=>{const{bottom:c,height:d,right:I,width:u}=o.value.getBoundingClientRect();c>window.innerHeight?a.value={display:"block",top:`${r.offsetY-d}px`,left:`${r.offsetX}px`}:I>window.innerWidth&&(a.value={display:"block",top:`${r.offsetY}px`,left:`${r.offsetX-u}px`})}),document.addEventListener("click",j)};return(r,c)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"contextmenuRef",ref:e,class:"contextmenu",onContextmenu:s,onMouseleave:j},[n.renderSlot(r.$slots,"default",{},void 0,!0),a.value.display!=="none"?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"contextmenuContentRef",ref:o,class:"contextmenu-popover",style:n.normalizeStyle(a.value)},[n.renderSlot(r.$slots,"popover",{},void 0,!0)],4)):n.createCommentVNode("",!0)],544))}});const Ie=P._export_sfc(De,[["__scopeId","data-v-249fd104"]]);let le=!1,re=!0,ce=[];const se=M=>{const t=[],i=[],e=[],o=[],a=[],j=[];return M.forEach((s,r)=>{t.push(s[0]),i.push(s[1]),e.push(s[4]),o.push(s[2]),a.push(s[3]),j.push([s[1],s[4],s[3],s[2],Number(s[6]),r===0?s[4]:M[r-1][4]])}),{time:t,open:i,close:e,high:o,low:a,kLineData:j}},Le=async()=>{if(!le)le=!0,await ue.init("./talib.wasm"),re=!1,ce.forEach(M=>{M()});else if(re)return new Promise(M=>{ce.push(M)})},$=(M,t)=>M.length>t?M.slice(M.length-t):M,pe=(M,t,i)=>M.calculationFn?M.calculationFn(ue.talib,t,i):new Array(t.time.length).fill(null),fe=async(M,t,i)=>{const e=se(M);let o=[];return o=se(o),await Le(),{originData:$(M,i),kLine:$(e.kLineData,i),time:$(e.time,i),indicator:t.config.reduce((a,j)=>(a.push({key:j.key,color:j.color,data:$(pe(j,e,o),i)}),a),[])}},K="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjM4NzI1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI2MjUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD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AzNS42MjY2NjYgNTEuMDI5MzMzbDIxMS40MTMzMzQgMTg4LjQxNmM4Ljk2IDguMTA2NjY3IDIxLjg4OCAxMi44IDM2LjIyNCAxMi41ODY2NjcgMTUuNTMwNjY3LTAuMDQyNjY3IDI3LjA5MzMzMy00LjI2NjY2NyAzNi42OTMzMzMtMTIuOGwyMTEuMTE0NjY3LTE4OC4xNmMxMy4zNTQ2NjctMTEuOTQ2NjY3IDI1LjMwMTMzMy0yOC44NDI2NjcgMzUuNjI2NjY2LTUxLjA3MiAxMC4xMTItMjEuNzYgMTQuNzYyNjY3LTQwLjUzMzMzMyAxNC41MDY2NjctNTcuMDAyNjY3TDgxMC42NjY2NjcgMTY3LjIxMDY2N2MwLTkuODk4NjY3LTMuNTg0LTE3LjYyMTMzMy0xMi41MDEzMzQtMjUuNkE1NC42OTg2NjcgNTQuNjk4NjY3IDAgMCAwIDc2MS42IDEyOGwtNDk5LjYyNjY2NyAwLjQ2OTMzM2E1MS4zMjggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",W=(M,t)=>{const{type:i="log",color:e="black"}=t??{};localStorage.getItem("st-kline-console-show")==="true"&&console[i](`%c${M}`,`color:${e}`)},C=M=>M||M===0?Math.round(M*1e3)/1e3:null,xe=M=>M>=1e12?`${(M/1e12).toFixed(2)}万亿`:M>=1e8?`${(M/1e8).toFixed(2)}亿`:M>=1e4?`${(M/1e4).toFixed(2)}万`:M.toFixed(2),Ye=M=>{const{y:t,text:i,info:e,gridLeft:o,gridRight:a,echartsWidth:j,echartsInstance:s}=M,{config:r,event:c}=e;let d=0;return{type:"group",draggable:r.draggable?"vertical":!1,children:[{type:"line",info:e,shape:{x1:o,y1:t,x2:j-a,y2:t},style:{stroke:r.lineColor,lineWidth:1,lineDash:[8,4]},z:10},{type:"group",x:j,y:t-5,children:[{type:"text",left:-1*a,info:e,style:{fill:r.textColor,text:i,stroke:"#000",lineWidth:1,opacity:1},z:10}]}],onmouseover:I=>{c.onmouseover instanceof Function&&c.onmouseover(I,e)},onmouseout:I=>{c.onmouseout instanceof Function&&c.onmouseout(I,e)},ondragstart:I=>{c.ondragstart instanceof Function&&r.draggable&&(d=I.offsetY,c.ondragstart(I,e))},ondragend:I=>{if(c.ondragend instanceof Function&&r.draggable){const N=I.offsetY-d;if(N===0)return;const L=s.convertFromPixel({yAxisIndex:0},t+N);c.ondragend(I,e,L)}}}},Ae=M=>{const{y:t,text:i,info:e,gridLeft:o,gridRight:a,echartsWidth:j,echartsInstance:s}=M,{config:r,event:c}=e;let d=0;const I=N=>{let L=null;N.target.type==="line"?L=N.target.parent:N.target.type==="tspan"&&(L=N.target.parent.parent.parent),L.children()[1].children()[0].animate("style",!1).when(200,{opacity:1}).start()},u=N=>{let L=null;N.target.type==="line"?L=N.target.parent:N.target.type==="tspan"&&(L=N.target.parent.parent.parent),L.children()[1].children()[0].animate("style",!1).when(200,{opacity:0}).start()};return{type:"group",draggable:r.draggable?"vertical":!1,children:[{type:"line",info:e,shape:{x1:o,y1:t,x2:j-a,y2:t},style:{stroke:r.lineColor,lineWidth:1},z:10},{type:"group",x:j/2,y:t-5,children:[{type:"text",left:"center",info:e,style:{fill:r.textColor,text:i,stroke:"#000",lineWidth:1,opacity:0},z:10}]}],onmouseover:N=>{c.onmouseover instanceof Function?c.onmouseover(N,e):I(N)},onmouseout:N=>{c.onmouseout instanceof Function?c.onmouseout(N,e):u(N)},ondragstart:N=>{c.ondragstart instanceof Function&&r.draggable&&(d=N.offsetY,c.ondragstart(N,e))},ondragend:N=>{if(c.ondragend instanceof Function&&r.draggable){const l=N.offsetY-d;if(l===0)return;const f=s.convertFromPixel({yAxisIndex:0},t+l);c.ondragend(N,e,f)}}}},me=M=>{const{y:t,text:i,profitY:e,profitText:o,lossY:a,lossText:j,info:s,gridLeft:r,gridRight:c,echartsWidth:d,echartsInstance:I}=M,{config:u,event:N}=s;let L=0,l=null,f=null;const w=(z,g)=>{var D,Y,m,k;(D=z.children()[2])==null||D.animate("style",!1).when(200,{opacity:~~g}).start(),(Y=z.children()[3].children()[0])==null||Y.animate("style",!1).when(200,{opacity:~~g}).start(),(m=z.children()[4])==null||m.animate("style",!1).when(200,{opacity:~~g}).start(),(k=z.children()[5].children()[0])==null||k.animate("style",!1).when(200,{opacity:~~g}).start()},h=z=>{let g=null;z.target.type==="line"?g=z.target.parent:z.target.type==="tspan"&&(g=z.target.parent.parent.parent),l=D=>{D.preventDefault(),(D.code==="AltLeft"||D.code==="AltRight")&&w(g,!0)},f=D=>{(D.code==="AltLeft"||D.code==="AltRight")&&w(g,!1)},window.addEventListener("keydown",l),window.addEventListener("keyup",f)},v=z=>{let g=null;z.target.type==="line"?g=z.target.parent:z.target.type==="tspan"&&(g=z.target.parent.parent.parent),w(g,!1),window.removeEventListener("keydown",l),window.removeEventListener("keyup",f)};return{type:"group",draggable:u.draggable?"vertical":!1,children:[{type:"line",info:s,shape:{x1:r,y1:t,x2:d-c,y2:t},style:{stroke:u.lineColor,lineWidth:1},z:10},{type:"group",x:d/2,y:t-5,children:[{type:"text",left:"center",info:s,style:{fill:u.textColor,text:i,stroke:"#000",lineWidth:1,opacity:1},z:10}]},{type:"line",info:s,shape:{x1:r,y1:e,x2:d-c,y2:e},style:{stroke:u.profitLineColor,lineWidth:1,lineDash:[8,4],opacity:0},z:10},{type:"group",x:d/2,y:e-5,children:[{type:"text",left:"center",info:s,style:{fill:u.profitTextColor,text:o,stroke:"#000",lineWidth:1,opacity:0},z:10}]},{type:"line",info:s,shape:{x1:r,y1:a,x2:d-c,y2:a},style:{stroke:u.lossLineColor,lineWidth:1,lineDash:[8,4],opacity:0},z:10},{type:"group",x:d/2,y:a-5,children:[{type:"text",left:"center",info:s,style:{fill:u.lossTextColor,text:j,stroke:"#000",lineWidth:1,opacity:0},z:10}]}],onmouseover:z=>{N.onmouseover instanceof Function?N.onmouseover(z,s):h(z)},onmouseout:z=>{N.onmouseout instanceof Function?N.onmouseout(z,s):v(z)},ondragstart:z=>{N.ondragstart instanceof Function&&u.draggable&&(L=z.offsetY,N.ondragstart(z,s))},ondragend:z=>{if(N.ondragend instanceof Function&&u.draggable){const D=z.offsetY-L;if(D===0)return;const Y=I.convertFromPixel({yAxisIndex:0},t+D);N.ondragend(z,s,Y)}}}},q=(M,t)=>{const{direction:i="",tradeAction:e="",tradeType:o=""}=M;if(t==="sellBuy"){const a=o??i+e;return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(a)}else if(t==="openClose")return o??i+e},we=(M,t)=>M.reduce((i,e)=>{var d;const o=q(e,"sellBuy"),a=M.filter(I=>I.time===e.time);let j="image://"+new URL(Object.assign({"./images/buy.svg":K,"./images/sell.svg":ee,"./images/t.svg":te})[`./images/${o==="买"?"buy":"sell"}.svg`],self.location).href;a.length>1?[...new Set(a.map(u=>q(u,"sellBuy")))].length>1?j="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjI4MjAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgd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A5MzMzMy00LjI2NjY2NyAzNi42OTMzMzMtMTIuOGwyMTEuMTE0NjY3LTE4OC4xNmMxMy4zNTQ2NjctMTEuOTQ2NjY3IDI1LjMwMTMzMy0yOC44NDI2NjcgMzUuNjI2NjY2LTUxLjA3MiAxMC4xMTItMjEuNzYgMTQuNzYyNjY3LTQwLjUzMzMzMyAxNC41MDY2NjctNTcuMDAyNjY3TDgxMC42NjY2NjcgMTY3LjIxMDY2N2MwLTkuODk4NjY3LTMuNTg0LTE3LjYyMTMzMy0xMi41MDEzMzQtMjUuNkE1NC42OTg2NjcgNTQuNjk4NjY3IDAgMCAwIDc2MS42IDEyOGwtNDk5LjYyNjY2NyAwLjQ2OTMzM2E1MS4zMjggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",self.location).href:j="image://"+new URL(Object.assign({"./images/buy.svg":K,"./images/sell.svg":ee,"./images/t.svg":te})[`./images/${o==="买"?"buy":"sell"}.svg`],self.location).href:j="image://"+new URL(Object.assign({"./images/buy.svg":K,"./images/sell.svg":ee,"./images/t.svg":te})[`./images/${o==="买"?"buy":"sell"}.svg`],self.location).href;const r=(t.find(I=>I[0]===e.time)??[])[2],c=((d=e==null?void 0:e.markLineTarget)==null?void 0:d.map(I=>{const u=e.time,N=r+"",L=I.time,l=t.find(w=>w[0]===I.time),f=l?l[3]:null;return[{coord:[u,N],lineStyle:I.lineStyle},{coord:[L,f]}]}))??null;return i.push({symbol:j,symbolSize:25,animation:!1,coord:[e.time+"",r],symbolRotate:0,symbolOffset:[0,"-7"],markLineTarget:c}),i},[]),he=(M,t)=>M.reduce((i,e,o)=>{var I;const a=q(e,"openClose"),j=a==="开多"||a==="开空"?"top":"bottom",s=t.find(u=>u[0]===e.time)??[],r=j==="top"?s[2]:s[3];let c=7;c+=M.slice(0,o).filter(u=>{const N=q(u,"openClose");return(N==="开多"||N==="开空"?"top":"bottom")===j&&u.time===e.time}).length*7;const d=((I=e==null?void 0:e.markLineTarget)==null?void 0:I.map(u=>{const N=e.time,L=r+"",l=u.time,f=t.find(w=>w[0]===u.time)[3];return[{coord:[N,L],lineStyle:u.lineStyle},{coord:[l,f]}]}))??null;return i.push({symbol:"triangle",symbolSize:[10,12],animation:!1,coord:[e.time+"",r],symbolRotate:j==="top"?180:0,symbolOffset:[0,`${j==="top"?c*-1:c}`],itemStyle:{color:j==="top"?"#FF0000":"#389e0d"},label:{show:!0,position:j,color:"#fff",formatter:`${a} ${j==="top"?"+":"-"} ${e.amount}手 ${e.part?`(${e.part}份)`:""}`},markLineTarget:d}),i},[]),Ce=(M,t)=>M.reduce((i,e)=>{const{key:o,data:a}=e;if(a===null||a.length===0)return i;const s=new Map([["sellBuy",()=>we(a,t)],["openClose",()=>he(a,t)],["signal",()=>{}]]).get(o);return s instanceof Function&&i.push(...s()),i},[]),ne=async(M,t,i,e,o,a)=>{const{totalBarCount:j,defaultShowBarCount:s,maxValueSpan:r,gridLeft:c,gridTop:d,gridRight:I,gridBottom:u,zoomLock:N}=e,{time:L,kLine:l,originData:f,indicator:w}=await fe(M,i,j),h=w.map(g=>{const{key:D,data:Y,color:m}=g;return{name:D,type:"line",silent:!0,symbol:"none",data:Y,lineStyle:{width:1},itemStyle:{color:m}}}),v=Ce(t,f);let z=[];return v.forEach(g=>{g.markLineTarget&&(z=[...z,...g.markLineTarget])}),{animation:!1,dataset:{id:"data",source:{klineData:l,indicatorData:w}},grid:{left:`${c}px`,top:`${d}px`,right:`${I}px`,bottom:`${u}px`},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{formatter:g=>{const{axisDimension:D,value:Y}=g;return D==="x"?Y:String(C(Y))}}},formatter:g=>{let D=null,Y="";return g.forEach(m=>{m.seriesName==="资产持仓净值"&&m.data!==null&&(Y+=`<div>资产持仓净值: ${m.data}</div>`),m.componentSubType==="candlestick"&&t.forEach(k=>{const{key:E,data:F}=k;if(E==="sellBuy"){const b=F.filter(x=>x.time===m.axisValue);let B=0,T=0;b.forEach(x=>{x.tradeType==="开多"||x.tradeType==="平空"?B+=x.amount:T+=x.amount}),B&&(Y+=`<div>买: ${B}</div>`),T&&(Y+=`<div>卖: ${T}</div>`)}E==="openClose"&&F.forEach(b=>{b.time===m.axisValue&&(Y+=b.tooltip)})}),Y&&(D=`<div><span style="font-weight: bold;">${m.axisValue}</span>${Y}</div>`)}),D}},xAxis:{type:"category",data:L,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},axisLabel:{show:!0,formatter:g=>g}},yAxis:[{index:0,splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},min:g=>{const{min:D,max:Y}=g,m=Math.abs((Y-D)/10);return D-m},max:g=>{const{min:D,max:Y}=g,m=Math.abs((Y-D)/10);return Y+m},axisLine:{show:!0},axisLabel:{formatter:g=>C(g),showMaxLabel:!1}},{show:!1,min:"dataMin"}],dataZoom:[{type:"inside",xAxisIndex:[0,0],zoomLock:N,maxValueSpan:r,start:l.length>=s?(l.length-s)/l.length*100:0,end:99.99}],series:[{name:"k线",type:"candlestick",data:l,markPoint:{data:v},markLine:{position:"middle",textStyle:{color:"blue",fontSize:15},animation:!1,data:z,lineStyle:{width:3,type:"solid"},symbol:["none","none"]},itemStyle:{color:"transparent",color0:"#00FFFF",borderColor:"#FF0000",borderColor0:"#00FFFF",borderWidth:1},z:1},...h,{name:"资产持仓净值",type:"line",data:o??[],symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:"#666"}},{name:"二腿相关度",type:"line",data:a??[],symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:"#FFF"},lineStyle:{width:2},label:{show:!0,position:"top",formatter:g=>`相关度: ${g.data[1]}`,textStyle:{color:"#FFF",fontSize:14}}}],toolbox:{show:!1},brush:{xAxisIndex:"all",brushLink:"all",transformable:!1,outOfBrush:{colorAlpha:1},brushStyle:{color:"rgba(120,140,180,0)",borderColor:"rgba(255,255,255,0.4)"}}}},Oe=(M,t,i)=>{var I;const{gridLeft:e,gridRight:o,gridBottom:a,warningConfig:j,positionConfig:s,conditionConfig:r,isOpenDS:c}=t;let d=[];if((I=i==null?void 0:i.getModel())!=null&&I.getComponent){const[u,N]=i.getModel().getComponent("yAxis").axis.scale._extent;let L=[],l={},f=[],w={},h=[],v={};if(M.forEach(({key:z,data:g,...D})=>{z==="warning"?(L=g,l=D):z==="position"?(f=g,w=D):z==="condition"&&(h=g,v=D)}),L.length>0&&(d=L.reduce((z,g)=>{const{value:D,text:Y,info:m,config:k}=g;if(D>N||D<u)return z;const E={y:i.convertToPixel({yAxisIndex:0},D),text:Y,info:{info:m,config:{...j,...k},event:{...l}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,Ye(E)]},d)),f.length>0&&(d=f.reduce((z,g)=>{const{value:D,text:Y,info:m,config:k}=g;if(D>N||D<u)return z;const E={y:i.convertToPixel({yAxisIndex:0},D),text:Y,info:{info:m,config:{...s,...k},event:{...w}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,Ae(E)]},d)),h.length>0&&(d=h.reduce((z,g)=>{const{value:D,text:Y,profitValue:m,profitText:k,lossValue:E,lossText:F,info:b,config:B}=g;if(D>N||D<u)return z;const T={y:i.convertToPixel({yAxisIndex:0},D),text:Y,profitY:i.convertToPixel({yAxisIndex:0},m),profitText:k,lossY:i.convertToPixel({yAxisIndex:0},E),lossText:F,info:{info:b,config:{...r,...B},event:{...v}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,me(T)]},d)),c){const z=i.getOption(),g=z.dataset[0].source.klineData.slice(z.dataZoom[0].startValue,z.dataZoom[0].endValue+1),D={};g.forEach(T=>{D[T[1]]?D[T[1]]+=1:D[T[1]]=1});const Y=g[g.length-1][1],m=g.reduce((T,x)=>T+x[1],0)/g.length,k=Y-m,E=ve(g,1,50),F=Ee(g),b=F?k/F:0,B=ke(g,1,Y);d=[...d,{type:"group",draggable:!1,children:Object.keys(D).map(T=>({type:"line",shape:{x1:i.getWidth()-o-100*D[T],y1:i.convertToPixel({yAxisIndex:0},T),x2:i.getWidth()-o,y2:i.convertToPixel({yAxisIndex:0},T)},style:{stroke:"rgb(124,124,124)",lineWidth:1},z:10}))},{type:"text",x:e+6,y:i.getHeight()-a-20,style:{fill:"#FFF",text:`均值: ${C(m)}    距均值: ${C(k)}    中值: ${C(E)}    标准差: ${C(F)}    距均值/标准差: ${C(b)}    百分位: ${C(B)}%`,lineWidth:1,opacity:1},z:10}]}}return{elements:d}},ke=(M,t,i)=>{const{round:e,add:o,subtract:a,multiply:j,divide:s}=J.x,r=M.map(d=>d[t]).sort((d,I)=>d-I);let c=0;for(let d=0;d<r.length;d++)if(r[d]===i){c=d;break}else if(r[d]>=i){c=o(d,s(a(r[d+1],r[d]),r[d]));break}return e(s(j(c,100),M.length+1))},ve=(M,t,i)=>{const{round:e,add:o,subtract:a,multiply:j,divide:s}=J.x,r=M.map(u=>u[t]).sort((u,N)=>u-N),c=j(M.length+1,s(i,100)),d=Math.floor(c),I=a(c,d);return e(I===0?r[c]:o(r[d],j(a(r[d>=M.length-1?d:d+1],r[d]),I)))};function Ee(M){const t=M.map(j=>j[1]),i=t.length;let e=0,o=0;for(const j of t)e+=j;const a=e/i;for(const j of t)o+=Math.pow(j-a,2);return Math.sqrt(o/i)}const be={class:"st-kline"},Se={class:"st-kline-header"},_e=300,Fe=n.defineComponent({__name:"index",props:{indicator:{type:Object,default:()=>({})},klineData:{type:Array,default:()=>[]},markData:{type:Array,default:()=>[]},lineData:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},relevanceData:{type:Array,default:()=>[]},priceTrendData:{type:Array,default:()=>[]},priceTrendPercentData:{type:Array,default:()=>[]},brushRange:{type:Array,default:()=>[]},defaultMenuData:{type:Array,default:()=>[]},isSelect:{type:Boolean,default:()=>!1},config:{type:Object,default:()=>({})}},setup(M){const t=M,i={totalBarCount:2e3,defaultShowBarCount:200,preBarCount:800,maxValueSpan:1e4,gridLeft:60,gridTop:0,gridRight:60,gridBottom:30,warningConfig:{draggable:!1,lineColor:"#fff",textColor:"#fff"},positionConfig:{draggable:!1,lineColor:"#e45d07",textColor:"#fff"},conditionConfig:{draggable:!1,lineColor:"#fff",textColor:"#fff",profitLineColor:"#b71e44",profitTextColor:"#fff",lossLineColor:"#749b66",lossTextColor:"#fff"},tipsConfig:{open:!0,heigh:!0,low:!0,close:!0,business:!0,riseAndFall:!0},dynamicLoadConfig:{historyVisible:!1,historyLoadCallBack:()=>{},futureVisible:!1,futureLoadCallBack:()=>{}},zoomLock:!1,isOpenDS:!1},e=n.computed(()=>({...i,...t.config})),o=n.ref(null),a=n.ref(-1),j=n.computed(()=>{var T,x;if(o.value&&((x=(T=o.value.dataset[0])==null?void 0:T.source)!=null&&x.klineData[a.value])){const p=o.value.dataset[0].source.klineData[a.value],y=[],{open:A,heigh:O,low:S,close:Q,business:V,riseAndFall:R}=e.value.tipsConfig;if(A&&y.push({label:"开",value:C(p[0]),color:"rgb(153, 153, 153)"}),O&&y.push({label:"高",value:C(p[3]),color:"rgb(153, 153, 153)"}),S&&y.push({label:"低",value:C(p[2]),color:"rgb(153, 153, 153)"}),Q&&y.push({label:"收",value:C(p[1]),color:"rgb(153, 153, 153)"}),V&&y.push({label:"额",value:xe(p[4]),color:"rgb(153, 153, 153)"}),R){let U=((p[1]-p[5])/p[1]*100).toFixed(2),_=+U==0?"white":+U>0?"red":"#00ff00";y.push({label:"涨跌",value:`${U}%`,color:_})}return y}return[]}),s=n.computed(()=>{var T,x;return o.value&&((x=(T=o.value.dataset[0])==null?void 0:T.source)!=null&&x.indicatorData)?o.value.dataset[0].source.indicatorData.reduce((p,y)=>(y.data[a.value]&&p.push({label:y.key,value:C(y.data[a.value]),color:y.color}),p),[]):[]}),r=n.computed(()=>{const T=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"];if(t.priceTrendData.length>0){const x=[];return t.priceTrendData.forEach((p,y)=>{var O;(p.data[a.value]?C(p.data[a.value][1]):null)!==null&&x.push({label:p.name,value:C((O=p.data[a.value])==null?void 0:O[1]),color:T[y]})}),x}if(t.priceTrendPercentData.length>0){const x=[];return l.getOption().series.filter(y=>y.name.includes("二腿价格走势百分比图")).forEach((y,A)=>{var S;(y.data[a.value]?C(y.data[a.value][1]):null)!==null&&x.push({label:y.name.split("-")[1],value:`${C((S=y.data[a.value])==null?void 0:S[1])}%`,color:T[A]})}),x}return[]});n.watch(()=>[t.klineData,t.indicator,t.markData,t.netPositionData,t.relevanceData],()=>{c()},{deep:!0}),n.watch(()=>t.lineData,async()=>{W("st-kline组件消息:props.lineData监控,额外画线数据发生改变,重绘->line",{color:"red"}),c("line")},{deep:!0}),n.watch(()=>t.brushRange,async()=>{W("st-kline组件消息:props.brushRange监控,区域刷选数据发生改变,重绘->brush",{color:"red"}),c("brush")},{deep:!0}),n.watch(()=>t.priceTrendData,async()=>{c("priceTrend")},{deep:!0}),n.watch(()=>t.priceTrendPercentData,async()=>{c("priceTrendPercent")},{deep:!0});const c=async T=>{const p=new Map([["kline",async()=>{const y=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData),{graphic:A}=l.getOption()??{graphic:[]};o.value={...y,graphic:A},l.setOption(o.value,!0),W("st-kline组件消息:K线绘制完毕-draw",{color:"green"})}],["line",()=>{const y=l.getOption(),A=Oe(t.lineData,e.value,l);o.value={...y,graphic:A},l.setOption(o.value,{replaceMerge:["graphic"]}),W("st-kline组件消息:额外画线绘制完毕-draw",{color:"green"})}],["brush",()=>{const{brushRange:y}=t;y instanceof Array&&y.length>0&&(l.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[y[0]+"",y[1]+""],xAxisIndex:0}]}),W("st-kline组件消息:区域刷选绘制完毕-draw",{color:"green"}))}],[void 0,async()=>{await c("kline"),await c("line"),await c("priceTrend"),await c("priceTrendPercent"),await c("brush")}],["history",async()=>{const y=l.getOption(),A=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData),O=A.dataset.source.klineData.length-y.dataset[0].source.klineData.length;l.setOption({...A,dataZoom:[{type:"inside",xAxisIndex:[0,0],zoomLock:e.value.zoomLock,maxValueSpan:e.value.maxValueSpan,startValue:y.dataZoom[0].startValue+O,endValue:y.dataZoom[0].endValue+O}]},!0),await c("priceTrend")}],["future",async()=>{const y=l.getOption(),A=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData);A.dataZoom[0].start=(t.klineData.length-y.dataZoom[0].endValue+y.dataZoom[0].startValue)/t.klineData.length*100,l.setOption(A,!0),await c("priceTrend")}],["priceTrend",()=>{if(t.priceTrendData.length===0)return;const y=l.getOption(),A=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"],O=t.priceTrendData.reduce((S,Q,V)=>{const{name:R,data:U}=Q,_={name:`二腿价格走势图-${R}`,type:"line",data:U,symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:A[V]},lineStyle:{type:"dashed",width:1}};return S.push(_),S},[]);o.value={...y,series:[...y.series,...O]},l.setOption(o.value,{replaceMerge:["series"]})}],["priceTrendPercent",async()=>{if(t.priceTrendPercentData.length===0)return;const y=l.getOption(),A=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"],O=y.dataZoom[0].startValue,S=t.priceTrendPercentData.reduce((Q,V,R)=>{const{name:U,data:_}=V,Z=_.length>e.value.totalBarCount?_.slice(_.length-e.value.totalBarCount):_,G=Z[O][1],Ne=Z.map(ie=>[ie[0],(ie[1]-G)/G*100]),ze={name:`二腿价格走势百分比图-${U}`,type:"line",data:Ne,symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:A[R]},lineStyle:{type:"dashed",width:1}};return Q.push(ze),Q},[]);y.series=[...y.series.filter(Q=>!Q.name.includes("二腿价格走势百分比图")),...S],l.setOption(y,!0)}]]).get(T);p instanceof Function&&await p()},d=n.ref(!1),I=n.ref([]),u=T=>{const{callBack:x}=T;x instanceof Function&&x(l,d)},N=()=>{I.value=t.defaultMenuData},L=n.ref();let l,f;const w=(T,x)=>{var p,y;if(T)a.value=typeof((p=T==null?void 0:T.batch[0])==null?void 0:p.dataIndex)=="number"?(y=T==null?void 0:T.batch[0])==null?void 0:y.dataIndex:-1;else{const A=x.getOption();A.dataZoom instanceof Array&&(a.value=A.dataZoom[0].endValue)}};let h=null,v=!1,z=n.ref(!1),g=!1,D=n.ref(!1);const Y=async T=>{const x=T.batch?T.batch[0].start*e.value.totalBarCount:T.startValue;e.value.dynamicLoadConfig.historyVisible&&x<=100&&!v&&!z.value&&(v=!0,await e.value.dynamicLoadConfig.historyLoadCallBack(z),await c("history"),v=!1);const p=T.batch?T.batch[0].end===100:T.endValue>=t.klineData.length-e.value.preBarCount-1,y=T.actionIsWheel;e.value.dynamicLoadConfig.futureVisible&&p&&!g&&!D.value&&!y&&(g=!0,await e.value.dynamicLoadConfig.futureLoadCallBack(D),await c("future"),g=!1),clearTimeout(h),h=setTimeout(()=>{c("line"),c("priceTrendPercent"),clearTimeout(h),h=null},_e)};let m=null;const k=T=>{m=setTimeout(()=>{var x;if(T.componentType==="graphic"){const{oncontextmenu:p}=((x=T.info)==null?void 0:x.event)??{};p instanceof Function&&p(T,T.info,I)}clearTimeout(m),m=null})},E=()=>{l.on("highlight",T=>{w(T,l)}),l.on("globalout",()=>{w(null,l)}),l.on("contextmenu",T=>{k(T)}),l.on("datazoom",T=>{Y(T)})},F=()=>{l.off("highlight"),l.off("globalout"),l.off("contextmenu"),l.off("datazoom")},b=T=>{if(!l||!(T.ctrlKey||t.isSelect))return;const x=l.getOption();let{startValue:p,endValue:y,start:A,end:O}=x.dataZoom[0];const S=()=>{p!==0&&(p=p-1,y=y-1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan}))},Q=()=>{if(e.value.dynamicLoadConfig.futureVisible&&!g&&!D.value)p=p+1,y=y+1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan});else{if(y===x.xAxis[0].data.length-1)return;p=p+1,y=y+1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan})}},V=()=>{if(y-p<5)return;const Z=Math.floor((a.value-p)/2)+1,G=Math.floor((y-a.value)/2)+1;p=p+Z,y=y-G,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,actionIsWheel:!0,maxValueSpan:e.value.maxValueSpan})},R=()=>{A=A-(O-A)/4,l.dispatchAction({type:"dataZoom",start:A,end:O,actionIsWheel:!0,maxValueSpan:e.value.maxValueSpan})},_=new Map([["ArrowLeft",S],["ArrowRight",Q],["ArrowUp",V],["ArrowDown",R]]).get(T.code);_ instanceof Function&&_()},B=async()=>{let T=!0;l=H.init(L.value),await c(),I.value=t.defaultMenuData,a.value=l.getOption().dataZoom[0].endValue??-1,E(),f=new ResizeObserver(()=>{if(T){T=null;return}l.resize(),c("line")}),f.observe(L.value),window.addEventListener("keydown",b)};return n.onMounted(()=>{B()}),n.onUnmounted(()=>{F(),window.removeEventListener("keydown",b),l.dispose(),f.disconnect(),f=null}),(T,x)=>{const p=ae.ElMenuItem,y=ae.ElMenu;return n.openBlock(),n.createElementBlock("div",be,[n.createElementVNode("div",Se,[n.createVNode(X,{data:j.value},null,8,["data"]),n.createVNode(X,{data:s.value},null,8,["data"]),n.createVNode(X,{data:r.value},null,8,["data"])]),n.createVNode(Ie,{class:"st-kline-body",onCloseContextMenuCallBack:N},{popover:n.withCtx(()=>[n.createVNode(y,{class:"menu"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(I.value,A=>(n.openBlock(),n.createBlock(p,{key:A.label,index:A.label,class:"menuItem",onClick:O=>u(A)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.label),1)]),_:2},1032,["index","onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("div",{ref_key:"echartsRef",ref:L,class:n.normalizeClass(d.value?"st-kline-chart cursorPen":"st-kline-chart")},null,2)]),_:1})])}}});const Qe=P._export_sfc(Fe,[["__scopeId","data-v-7f014d0e"]]),Be={class:"kline-tips"},Ue=n.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(M){return(t,i)=>(n.openBlock(),n.createElementBlock("div",Be,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.data,(e,o)=>(n.openBlock(),n.createElementBlock("div",{key:o,class:"kline-tips-item",style:n.normalizeStyle({color:e.color})},n.toDisplayString(e.label)+" "+n.toDisplayString(e.value),5))),128))]))}});const oe=P._export_sfc(Ue,[["__scopeId","data-v-dc7d381b"]]);const Ve={class:"klineSub"},Re={class:"klineSub-tips"},Pe={key:0,class:"klineSub-tips-select"},We={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0}},emits:["update:modelValue"],setup(M,{expose:t,emit:i}){const{round:e}=J.x;let o,a;const j=i,s=M,r=n.ref(),c=n.computed({get(){return s.modelValue},set(u){j("update:modelValue",u)}}),d=n.computed(()=>{var L;const{data:u,activeIndex:N}=s;return((L=u==null?void 0:u.subIndicator)==null?void 0:L.map(l=>({label:l.key,color:l.color,value:l.data[N]||"-"})))||[]});n.onMounted(()=>{o=H.init(r.value);let u=!0;a=new ResizeObserver(()=>{if(u){u=null;return}o.resize()}),a.observe(r.value)}),n.onUnmounted(()=>{o.dispose(),a.disconnect(),a=null});const I=(u,N)=>{const L=u[N],l=N===0?u[N]:u[N-1];return L[0]===L[1]?L[0]>=l[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:L[1]>L[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return t({connect:u=>{H.connect([u,o])},draw:(u,N)=>{n.nextTick(()=>{const{startValue:L,endValue:l,maxValueSpan:f}=u,{leftYAxisRange:w,rightYAxisRange:h}=s.data.subIndicator[0],v=s.data.subIndicator.map(z=>{if(z.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:z.data.map((g,D)=>z.seriesColor==="kline"?{value:g,itemStyle:I(s.data.data,D)}:z.seriesColor==="value"?{value:g,itemStyle:{color:g>=0?"#FF0000":"#00FFFF"}}:{value:g,itemStyle:{color:z.seriesColor}})};if(z.series==="line")return{xAxisIndex:0,yAxisIndex:z.yAxis==="right"?2:1,name:z.key,type:"line",silent:!0,symbol:"none",data:z.data,lineStyle:{width:1},itemStyle:{color:z.color}}});o.setOption({animation:!1,grid:{left:`${N.gridLeft}px`,top:"10px",right:`${N.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:L,endValue:l,maxValueSpan:f}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:z=>{const{axisDimension:g,value:D}=z;if(g==="x")return D;if(z.axisIndex===1)return String(e(D))}}},formatter:()=>""},xAxis:{type:"category",data:s.data.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:z=>z}},yAxis:[{position:"right"},{position:"left",min:w==="cover"?z=>z.min:null,max:w==="cover"?z=>z.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:h==="cover"?z=>z.min:null,max:h==="cover"?z=>z.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:v},!0)})}}),(u,N)=>{const L=Me.ElOption,l=Me.ElSelect;return n.openBlock(),n.createElementBlock("div",Ve,[n.createElementVNode("div",Re,[d.value.length?(n.openBlock(),n.createElementBlock("div",Pe,[n.createVNode(l,{modelValue:c.value,"onUpdate:modelValue":N[0]||(N[0]=f=>c.value=f),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.subIndicatorList,f=>(n.openBlock(),n.createBlock(L,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):n.createCommentVNode("",!0),n.createVNode(oe,{data:d.value},null,8,["data"])]),n.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:r},null,512)])}}},Ze=P._export_sfc(We,[["__scopeId","data-v-aba58678"]]);const Ge={class:"kline-tips"},$e={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0}},setup(M){const{round:t,formatValue:i}=J.x,e=M,o=n.computed(()=>{const{data:j,activeIndex:s}=e;if(j.data&&j.data[s]){const r=j.data[s],c=[{label:"开",value:t(r[0])},{label:"高",value:t(r[3])},{label:"低",value:t(r[2])},{label:"收",value:t(r[1])}];r[4]!==null&&c.push({label:"额",value:i(r[4])});let d;return r[6]>0?d="red":r[6]<0&&(d="green"),c.push({label:"涨跌",value:`${t(r[6])}%`,color:d}),c}return[]}),a=n.computed(()=>{var r;const{data:j,activeIndex:s}=e;return((r=j==null?void 0:j.mainIndicator)==null?void 0:r.map(c=>({label:c.key,value:t(c.data[s]),color:c.color})))||[]});return(j,s)=>(n.openBlock(),n.createElementBlock("div",Ge,[n.createVNode(oe,{data:o.value},null,8,["data"]),n.createVNode(oe,{data:a.value},null,8,["data"])]))}},He=P._export_sfc($e,[["__scopeId","data-v-a12855fe"]]),qe={__name:"index",setup(M,{expose:t}){return t({handleKeyDown:(i,e)=>{let{startValue:o,endValue:a,maxIndex:j}=e;if(i.code==="ArrowLeft"){if(o===0)return;o=o-1,a=a-1}else if(i.code==="ArrowRight"){if(a===j)return;o=o+1,a=a+1}else if(i.code==="ArrowUp"){if(a-o<5)return;const s=Math.floor((a-o)/2)+1;o=o+s,a-o<5&&(o=a-4)}else if(i.code==="ArrowDown"){const s=Math.min(500,a-o);o=o-s-1}return{startValue:o,endValue:a}},mergeData:(i,e)=>({time:[...i.time,...e.time.slice(1)],data:[...i.data,...e.data.slice(1)],mainIndicator:i.mainIndicator.map((o,a)=>({...o,data:[...o.data,...e.mainIndicator[a].data.slice(1)]})),subIndicator:i.subIndicator.map((o,a)=>({...o,data:[...o.data,...e.subIndicator[a].data.slice(1)]}))}),getDataZoomInfoByTime:i=>{const{showStartTime:e,showEndTime:o,maxShowDays:a}=i;let j=-1,s=-1,r={};return i.time.forEach((c,d)=>{const I=c.split(" ")[0];r[I]=r[I]||0,r[I]+=1,j===-1&&new Date(c)>=new Date(e)&&(j=d),s===-1&&new Date(c)>=new Date(o)&&(s=d)}),s=s===-1?i.time.length-1:s,{startValue:j,endValue:s,maxValueSpan:Math.max(...Object.values(r))*a}}}),(i,e)=>null}};const Je={__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(M,{expose:t,emit:i}){let e,o,a=null;const j=i,s=M,r=n.ref();n.watch(()=>s.data,()=>{I()},{deep:!0}),n.onMounted(()=>{e=H.init(r.value),c(),I();let u=!0;o=new ResizeObserver(()=>{if(u){u=null;return}e.resize()}),o.observe(r.value)}),n.onUnmounted(()=>{e.off("datazoom"),e.dispose(),o.disconnect(),o=null});const c=()=>{e.on("datazoom",u=>{u.dataZoomId&&(clearTimeout(a),a=setTimeout(()=>{const{data:N}=s,{start:L,end:l}=u,f=Math.floor(L*N.length/100),w=l===100?N.length-1:Math.floor(l*N.length/100);d(f,w),clearTimeout(a)},100))})},d=(u,N)=>{const L=s.data;if(L.length===0)return;const l=L[u][0].split(" ")[0],f=L[N][0].split(" ")[0];j("change",{startTime:`${l} 00:00:00`,endTime:`${f} 24:00:00`})},I=()=>{const{data:u}=s;if(u.length===0)return;const N=u.map(l=>l[0].split(" ")[0]),L=u.map(l=>l[1]);e.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:N,show:!1},yAxis:{type:"value"},series:[{data:L,type:"line"}]},!0)};return t({resetSlide:(u,N,L)=>{let l=-1,f=-1;s.data.forEach((w,h)=>{l===-1&&w[0]===u?l=h:l===-1&&new Date(w[0])>new Date(u)&&(l=h-1),(f===-1&&w[0]===N||f===-1&&new Date(w[0])>new Date(N))&&(f=h)}),f=f===-1?s.data.length-1:f,e.setOption({dataZoom:[{show:!0,startValue:l,endValue:f,maxValueSpan:L,textStyle:{color:"#ccc"}},{type:"inside",startValue:l,endValue:f,maxValueSpan:L}]})},resize:()=>{e==null||e.resize()}}),(u,N)=>(n.openBlock(),n.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:r},null,512))}},Xe=P._export_sfc(Je,[["__scopeId","data-v-7a2f3dd0"]]),Ke={install(M){M.component("st-kline",Qe),M.component("st-kline-sub-new",Ze),M.component("st-kline-tips-new",He),M.component("st-kline-slide-new",Xe),M.component("st-kline-utils-new",qe)}};module.exports=Ke;
1
+ "use strict";require("./base-0ca7c43a.cjs");const ae=require("./el-menu-item-4c9eb7ad.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-popper-7adbf1c6.cjs");const n=require("vue"),je=require("echarts"),P=require("./_plugin-vue_export-helper-f246444f.cjs"),J=require("./index-8901a38c.cjs"),ue=require("./index.esm-94a95a2a.cjs");require("./el-tag-9732314f.cjs");const Me=require("./el-select-31f8ac8a.cjs");require("./el-scrollbar-ac525239.cjs");require("./index-afc88a4b.cjs");require("./index-65b4113e.cjs");require("./index-eea0bcb3.cjs");require("./use-form-common-props-74a96df2.cjs");require("./index-375e8de4.cjs");require("./typescript-b63f8e83.cjs");require("./vnode-b15eb11b.cjs");require("./index-9e6e8d03.cjs");require("./castArray-a78ae889.cjs");require("./index-1d85ba4b.cjs");require("./scroll-339681d4.cjs");require("./debounce-cf26af24.cjs");function de(M){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(M){for(const i in M)if(i!=="default"){const e=Object.getOwnPropertyDescriptor(M,i);Object.defineProperty(t,i,e.get?e:{enumerable:!0,get:()=>M[i]})}}return t.default=M,Object.freeze(t)}const H=de(je),ye={class:"st-kline-tips"},ge={class:"st-kline-tips-row"},Te=n.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},setup(M){return(t,i)=>(n.openBlock(),n.createElementBlock("div",ye,[n.createElementVNode("div",ge,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.data,e=>(n.openBlock(),n.createElementBlock("div",{class:"st-kline-tips-row-item",style:n.normalizeStyle({color:e.color})},n.toDisplayString(e.label)+" "+n.toDisplayString(e.value),5))),256))])]))}});const X=P._export_sfc(Te,[["__scopeId","data-v-78aed210"]]),De=n.defineComponent({__name:"index",emits:["closeContextMenuCallBack"],setup(M,{emit:t}){const i=t,e=n.ref(),o=n.ref(),a=n.ref({display:"none",top:"0px",left:"0px"}),j=()=>{a.value.display="none",i("closeContextMenuCallBack"),document.removeEventListener("click",j)},s=r=>{if(r.preventDefault(),r.stopPropagation(),a.value.display==="block"){const{offsetX:c,offsetY:d}=r,{offsetWidth:I,offsetHeight:u}=o.value;if(c<=I&&d<=u)return}e.value.click(),a.value={display:"block",top:`${r.offsetY}px`,left:`${r.offsetX}px`},n.nextTick(()=>{const{bottom:c,height:d,right:I,width:u}=o.value.getBoundingClientRect();c>window.innerHeight?a.value={display:"block",top:`${r.offsetY-d}px`,left:`${r.offsetX}px`}:I>window.innerWidth&&(a.value={display:"block",top:`${r.offsetY}px`,left:`${r.offsetX-u}px`})}),document.addEventListener("click",j)};return(r,c)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"contextmenuRef",ref:e,class:"contextmenu",onContextmenu:s,onMouseleave:j},[n.renderSlot(r.$slots,"default",{},void 0,!0),a.value.display!=="none"?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"contextmenuContentRef",ref:o,class:"contextmenu-popover",style:n.normalizeStyle(a.value)},[n.renderSlot(r.$slots,"popover",{},void 0,!0)],4)):n.createCommentVNode("",!0)],544))}});const Ie=P._export_sfc(De,[["__scopeId","data-v-249fd104"]]);let le=!1,re=!0,ce=[];const se=M=>{const t=[],i=[],e=[],o=[],a=[],j=[];return M.forEach((s,r)=>{t.push(s[0]),i.push(s[1]),e.push(s[4]),o.push(s[2]),a.push(s[3]),j.push([s[1],s[4],s[3],s[2],Number(s[6]),r===0?s[4]:M[r-1][4]])}),{time:t,open:i,close:e,high:o,low:a,kLineData:j}},Le=async()=>{if(!le)le=!0,await ue.init("./talib.wasm"),re=!1,ce.forEach(M=>{M()});else if(re)return new Promise(M=>{ce.push(M)})},$=(M,t)=>M.length>t?M.slice(M.length-t):M,pe=(M,t,i)=>M.calculationFn?M.calculationFn(ue.talib,t,i):new Array(t.time.length).fill(null),fe=async(M,t,i)=>{const e=se(M);let o=[];return o=se(o),await Le(),{originData:$(M,i),kLine:$(e.kLineData,i),time:$(e.time,i),indicator:t.config.reduce((a,j)=>(a.push({key:j.key,color:j.color,data:$(pe(j,e,o),i)}),a),[])}},K="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjM4NzI1IiBjbGFzcz0iaWNvbiIgd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0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",W=(M,t)=>{const{type:i="log",color:e="black"}=t??{};localStorage.getItem("st-kline-console-show")==="true"&&console[i](`%c${M}`,`color:${e}`)},C=M=>M||M===0?Math.round(M*1e3)/1e3:null,xe=M=>M>=1e12?`${(M/1e12).toFixed(2)}万亿`:M>=1e8?`${(M/1e8).toFixed(2)}亿`:M>=1e4?`${(M/1e4).toFixed(2)}万`:M.toFixed(2),Ye=M=>{const{y:t,text:i,info:e,gridLeft:o,gridRight:a,echartsWidth:j,echartsInstance:s}=M,{config:r,event:c}=e;let d=0;return{type:"group",draggable:r.draggable?"vertical":!1,children:[{type:"line",info:e,shape:{x1:o,y1:t,x2:j-a,y2:t},style:{stroke:r.lineColor,lineWidth:1,lineDash:[8,4]},z:10},{type:"group",x:j,y:t-5,children:[{type:"text",left:-1*a,info:e,style:{fill:r.textColor,text:i,stroke:"#000",lineWidth:1,opacity:1},z:10}]}],onmouseover:I=>{c.onmouseover instanceof Function&&c.onmouseover(I,e)},onmouseout:I=>{c.onmouseout instanceof Function&&c.onmouseout(I,e)},ondragstart:I=>{c.ondragstart instanceof Function&&r.draggable&&(d=I.offsetY,c.ondragstart(I,e))},ondragend:I=>{if(c.ondragend instanceof Function&&r.draggable){const N=I.offsetY-d;if(N===0)return;const L=s.convertFromPixel({yAxisIndex:0},t+N);c.ondragend(I,e,L)}}}},Ae=M=>{const{y:t,text:i,info:e,gridLeft:o,gridRight:a,echartsWidth:j,echartsInstance:s}=M,{config:r,event:c}=e;let d=0;const I=N=>{let L=null;N.target.type==="line"?L=N.target.parent:N.target.type==="tspan"&&(L=N.target.parent.parent.parent),L.children()[1].children()[0].animate("style",!1).when(200,{opacity:1}).start()},u=N=>{let L=null;N.target.type==="line"?L=N.target.parent:N.target.type==="tspan"&&(L=N.target.parent.parent.parent),L.children()[1].children()[0].animate("style",!1).when(200,{opacity:0}).start()};return{type:"group",draggable:r.draggable?"vertical":!1,children:[{type:"line",info:e,shape:{x1:o,y1:t,x2:j-a,y2:t},style:{stroke:r.lineColor,lineWidth:1},z:10},{type:"group",x:j/2,y:t-5,children:[{type:"text",left:"center",info:e,style:{fill:r.textColor,text:i,stroke:"#000",lineWidth:1,opacity:0},z:10}]}],onmouseover:N=>{c.onmouseover instanceof Function?c.onmouseover(N,e):I(N)},onmouseout:N=>{c.onmouseout instanceof Function?c.onmouseout(N,e):u(N)},ondragstart:N=>{c.ondragstart instanceof Function&&r.draggable&&(d=N.offsetY,c.ondragstart(N,e))},ondragend:N=>{if(c.ondragend instanceof Function&&r.draggable){const l=N.offsetY-d;if(l===0)return;const f=s.convertFromPixel({yAxisIndex:0},t+l);c.ondragend(N,e,f)}}}},me=M=>{const{y:t,text:i,profitY:e,profitText:o,lossY:a,lossText:j,info:s,gridLeft:r,gridRight:c,echartsWidth:d,echartsInstance:I}=M,{config:u,event:N}=s;let L=0,l=null,f=null;const w=(z,g)=>{var D,Y,m,k;(D=z.children()[2])==null||D.animate("style",!1).when(200,{opacity:~~g}).start(),(Y=z.children()[3].children()[0])==null||Y.animate("style",!1).when(200,{opacity:~~g}).start(),(m=z.children()[4])==null||m.animate("style",!1).when(200,{opacity:~~g}).start(),(k=z.children()[5].children()[0])==null||k.animate("style",!1).when(200,{opacity:~~g}).start()},h=z=>{let g=null;z.target.type==="line"?g=z.target.parent:z.target.type==="tspan"&&(g=z.target.parent.parent.parent),l=D=>{D.preventDefault(),(D.code==="AltLeft"||D.code==="AltRight")&&w(g,!0)},f=D=>{(D.code==="AltLeft"||D.code==="AltRight")&&w(g,!1)},window.addEventListener("keydown",l),window.addEventListener("keyup",f)},v=z=>{let g=null;z.target.type==="line"?g=z.target.parent:z.target.type==="tspan"&&(g=z.target.parent.parent.parent),w(g,!1),window.removeEventListener("keydown",l),window.removeEventListener("keyup",f)};return{type:"group",draggable:u.draggable?"vertical":!1,children:[{type:"line",info:s,shape:{x1:r,y1:t,x2:d-c,y2:t},style:{stroke:u.lineColor,lineWidth:1},z:10},{type:"group",x:d/2,y:t-5,children:[{type:"text",left:"center",info:s,style:{fill:u.textColor,text:i,stroke:"#000",lineWidth:1,opacity:1},z:10}]},{type:"line",info:s,shape:{x1:r,y1:e,x2:d-c,y2:e},style:{stroke:u.profitLineColor,lineWidth:1,lineDash:[8,4],opacity:0},z:10},{type:"group",x:d/2,y:e-5,children:[{type:"text",left:"center",info:s,style:{fill:u.profitTextColor,text:o,stroke:"#000",lineWidth:1,opacity:0},z:10}]},{type:"line",info:s,shape:{x1:r,y1:a,x2:d-c,y2:a},style:{stroke:u.lossLineColor,lineWidth:1,lineDash:[8,4],opacity:0},z:10},{type:"group",x:d/2,y:a-5,children:[{type:"text",left:"center",info:s,style:{fill:u.lossTextColor,text:j,stroke:"#000",lineWidth:1,opacity:0},z:10}]}],onmouseover:z=>{N.onmouseover instanceof Function?N.onmouseover(z,s):h(z)},onmouseout:z=>{N.onmouseout instanceof Function?N.onmouseout(z,s):v(z)},ondragstart:z=>{N.ondragstart instanceof Function&&u.draggable&&(L=z.offsetY,N.ondragstart(z,s))},ondragend:z=>{if(N.ondragend instanceof Function&&u.draggable){const D=z.offsetY-L;if(D===0)return;const Y=I.convertFromPixel({yAxisIndex:0},t+D);N.ondragend(z,s,Y)}}}},q=(M,t)=>{const{direction:i="",tradeAction:e="",tradeType:o=""}=M;if(t==="sellBuy"){const a=o??i+e;return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(a)}else if(t==="openClose")return o??i+e},we=(M,t)=>M.reduce((i,e)=>{var d;const o=q(e,"sellBuy"),a=M.filter(I=>I.time===e.time);let j="image://"+new URL(Object.assign({"./images/buy.svg":K,"./images/sell.svg":ee,"./images/t.svg":te})[`./images/${o==="买"?"buy":"sell"}.svg`],self.location).href;a.length>1?[...new Set(a.map(u=>q(u,"sellBuy")))].length>1?j="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/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self.location).href:j="image://"+new URL(Object.assign({"./images/buy.svg":K,"./images/sell.svg":ee,"./images/t.svg":te})[`./images/${o==="买"?"buy":"sell"}.svg`],self.location).href;const r=(t.find(I=>I[0]===e.time)??[])[2],c=((d=e==null?void 0:e.markLineTarget)==null?void 0:d.map(I=>{const u=e.time,N=r+"",L=I.time,l=t.find(w=>w[0]===I.time),f=l?l[3]:null;return[{coord:[u,N],lineStyle:I.lineStyle},{coord:[L,f]}]}))??null;return i.push({symbol:j,symbolSize:25,animation:!1,coord:[e.time+"",r],symbolRotate:0,symbolOffset:[0,"-7"],markLineTarget:c}),i},[]),he=(M,t)=>M.reduce((i,e,o)=>{var I;const a=q(e,"openClose"),j=a==="开多"||a==="开空"?"top":"bottom",s=t.find(u=>u[0]===e.time)??[],r=j==="top"?s[2]:s[3];let c=7;c+=M.slice(0,o).filter(u=>{const N=q(u,"openClose");return(N==="开多"||N==="开空"?"top":"bottom")===j&&u.time===e.time}).length*7;const d=((I=e==null?void 0:e.markLineTarget)==null?void 0:I.map(u=>{const N=e.time,L=r+"",l=u.time,f=t.find(w=>w[0]===u.time)[3];return[{coord:[N,L],lineStyle:u.lineStyle},{coord:[l,f]}]}))??null;return i.push({symbol:"triangle",symbolSize:[10,12],animation:!1,coord:[e.time+"",r],symbolRotate:j==="top"?180:0,symbolOffset:[0,`${j==="top"?c*-1:c}`],itemStyle:{color:j==="top"?"#FF0000":"#389e0d"},label:{show:!0,position:j,color:"#fff",formatter:`${a} ${j==="top"?"+":"-"} ${e.amount}手 ${e.part?`(${e.part}份)`:""}`},markLineTarget:d}),i},[]),Ce=(M,t)=>M.reduce((i,e)=>{const{key:o,data:a}=e;if(a===null||a.length===0)return i;const s=new Map([["sellBuy",()=>we(a,t)],["openClose",()=>he(a,t)],["signal",()=>{}]]).get(o);return s instanceof Function&&i.push(...s()),i},[]),ne=async(M,t,i,e,o,a)=>{const{totalBarCount:j,defaultShowBarCount:s,maxValueSpan:r,gridLeft:c,gridTop:d,gridRight:I,gridBottom:u,zoomLock:N}=e,{time:L,kLine:l,originData:f,indicator:w}=await fe(M,i,j),h=w.map(g=>{const{key:D,data:Y,color:m}=g;return{name:D,type:"line",silent:!0,symbol:"none",data:Y,lineStyle:{width:1},itemStyle:{color:m}}}),v=Ce(t,f);let z=[];return v.forEach(g=>{g.markLineTarget&&(z=[...z,...g.markLineTarget])}),{animation:!1,dataset:{id:"data",source:{klineData:l,indicatorData:w}},grid:{left:`${c}px`,top:`${d}px`,right:`${I}px`,bottom:`${u}px`},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{formatter:g=>{const{axisDimension:D,value:Y}=g;return D==="x"?Y:String(C(Y))}}},formatter:g=>{let D=null,Y="";return g.forEach(m=>{m.seriesName==="资产持仓净值"&&m.data!==null&&(Y+=`<div>资产持仓净值: ${m.data}</div>`),m.componentSubType==="candlestick"&&t.forEach(k=>{const{key:E,data:F}=k;if(E==="sellBuy"){const b=F.filter(x=>x.time===m.axisValue);let B=0,T=0;b.forEach(x=>{x.tradeType==="开多"||x.tradeType==="平空"?B+=x.amount:T+=x.amount}),B&&(Y+=`<div>买: ${B}</div>`),T&&(Y+=`<div>卖: ${T}</div>`)}E==="openClose"&&F.forEach(b=>{b.time===m.axisValue&&(Y+=b.tooltip)})}),Y&&(D=`<div><span style="font-weight: bold;">${m.axisValue}</span>${Y}</div>`)}),D}},xAxis:{type:"category",data:L,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},axisLabel:{show:!0,formatter:g=>g}},yAxis:[{index:0,splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},min:g=>{const{min:D,max:Y}=g,m=Math.abs((Y-D)/10);return D-m},max:g=>{const{min:D,max:Y}=g,m=Math.abs((Y-D)/10);return Y+m},axisLine:{show:!0},axisLabel:{formatter:g=>C(g),showMaxLabel:!1}},{show:!1,min:"dataMin"}],dataZoom:[{type:"inside",xAxisIndex:[0,0],zoomLock:N,maxValueSpan:r,start:l.length>=s?(l.length-s)/l.length*100:0,end:99.99}],series:[{name:"k线",type:"candlestick",data:l,markPoint:{data:v},markLine:{position:"middle",textStyle:{color:"blue",fontSize:15},animation:!1,data:z,lineStyle:{width:3,type:"solid"},symbol:["none","none"]},itemStyle:{color:"transparent",color0:"#00FFFF",borderColor:"#FF0000",borderColor0:"#00FFFF",borderWidth:1},z:1},...h,{name:"资产持仓净值",type:"line",data:o??[],symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:"#666"}},{name:"二腿相关度",type:"line",data:a??[],symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:"#FFF"},lineStyle:{width:2},label:{show:!0,position:"top",formatter:g=>`相关度: ${g.data[1]}`,textStyle:{color:"#FFF",fontSize:14}}}],toolbox:{show:!1},brush:{xAxisIndex:"all",brushLink:"all",transformable:!1,outOfBrush:{colorAlpha:1},brushStyle:{color:"rgba(120,140,180,0)",borderColor:"rgba(255,255,255,0.4)"}}}},Oe=(M,t,i)=>{var I;const{gridLeft:e,gridRight:o,gridBottom:a,warningConfig:j,positionConfig:s,conditionConfig:r,isOpenDS:c}=t;let d=[];if((I=i==null?void 0:i.getModel())!=null&&I.getComponent){const[u,N]=i.getModel().getComponent("yAxis").axis.scale._extent;let L=[],l={},f=[],w={},h=[],v={};if(M.forEach(({key:z,data:g,...D})=>{z==="warning"?(L=g,l=D):z==="position"?(f=g,w=D):z==="condition"&&(h=g,v=D)}),L.length>0&&(d=L.reduce((z,g)=>{const{value:D,text:Y,info:m,config:k}=g;if(D>N||D<u)return z;const E={y:i.convertToPixel({yAxisIndex:0},D),text:Y,info:{info:m,config:{...j,...k},event:{...l}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,Ye(E)]},d)),f.length>0&&(d=f.reduce((z,g)=>{const{value:D,text:Y,info:m,config:k}=g;if(D>N||D<u)return z;const E={y:i.convertToPixel({yAxisIndex:0},D),text:Y,info:{info:m,config:{...s,...k},event:{...w}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,Ae(E)]},d)),h.length>0&&(d=h.reduce((z,g)=>{const{value:D,text:Y,profitValue:m,profitText:k,lossValue:E,lossText:F,info:b,config:B}=g;if(D>N||D<u)return z;const T={y:i.convertToPixel({yAxisIndex:0},D),text:Y,profitY:i.convertToPixel({yAxisIndex:0},m),profitText:k,lossY:i.convertToPixel({yAxisIndex:0},E),lossText:F,info:{info:b,config:{...r,...B},event:{...v}},gridLeft:e,gridRight:o,echartsWidth:i.getWidth(),echartsInstance:i};return[...z,me(T)]},d)),c){const z=i.getOption(),g=z.dataset[0].source.klineData.slice(z.dataZoom[0].startValue,z.dataZoom[0].endValue+1),D={};g.forEach(T=>{D[T[1]]?D[T[1]]+=1:D[T[1]]=1});const Y=g[g.length-1][1],m=g.reduce((T,x)=>T+x[1],0)/g.length,k=Y-m,E=ve(g,1,50),F=Ee(g),b=F?k/F:0,B=ke(g,1,Y);d=[...d,{type:"group",draggable:!1,children:Object.keys(D).map(T=>({type:"line",shape:{x1:i.getWidth()-o-100*D[T],y1:i.convertToPixel({yAxisIndex:0},T),x2:i.getWidth()-o,y2:i.convertToPixel({yAxisIndex:0},T)},style:{stroke:"rgb(124,124,124)",lineWidth:1},z:10}))},{type:"text",x:e+6,y:i.getHeight()-a-20,style:{fill:"#FFF",text:`均值: ${C(m)}    距均值: ${C(k)}    中值: ${C(E)}    标准差: ${C(F)}    距均值/标准差: ${C(b)}    百分位: ${C(B)}%`,lineWidth:1,opacity:1},z:10}]}}return{elements:d}},ke=(M,t,i)=>{const{round:e,add:o,subtract:a,multiply:j,divide:s}=J.x,r=M.map(d=>d[t]).sort((d,I)=>d-I);let c=0;for(let d=0;d<r.length;d++)if(r[d]===i){c=d;break}else if(r[d]>=i){c=o(d,s(a(r[d+1],r[d]),r[d]));break}return e(s(j(c,100),M.length+1))},ve=(M,t,i)=>{const{round:e,add:o,subtract:a,multiply:j,divide:s}=J.x,r=M.map(u=>u[t]).sort((u,N)=>u-N),c=j(M.length+1,s(i,100)),d=Math.floor(c),I=a(c,d);return e(I===0?r[c]:o(r[d],j(a(r[d>=M.length-1?d:d+1],r[d]),I)))};function Ee(M){const t=M.map(j=>j[1]),i=t.length;let e=0,o=0;for(const j of t)e+=j;const a=e/i;for(const j of t)o+=Math.pow(j-a,2);return Math.sqrt(o/i)}const be={class:"st-kline"},Se={class:"st-kline-header"},_e=300,Fe=n.defineComponent({__name:"index",props:{indicator:{type:Object,default:()=>({})},klineData:{type:Array,default:()=>[]},markData:{type:Array,default:()=>[]},lineData:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},relevanceData:{type:Array,default:()=>[]},priceTrendData:{type:Array,default:()=>[]},priceTrendPercentData:{type:Array,default:()=>[]},brushRange:{type:Array,default:()=>[]},defaultMenuData:{type:Array,default:()=>[]},isSelect:{type:Boolean,default:()=>!1},config:{type:Object,default:()=>({})}},setup(M){const t=M,i={totalBarCount:2e3,defaultShowBarCount:200,preBarCount:800,maxValueSpan:1e4,gridLeft:60,gridTop:0,gridRight:60,gridBottom:30,warningConfig:{draggable:!1,lineColor:"#fff",textColor:"#fff"},positionConfig:{draggable:!1,lineColor:"#e45d07",textColor:"#fff"},conditionConfig:{draggable:!1,lineColor:"#fff",textColor:"#fff",profitLineColor:"#b71e44",profitTextColor:"#fff",lossLineColor:"#749b66",lossTextColor:"#fff"},tipsConfig:{open:!0,heigh:!0,low:!0,close:!0,business:!0,riseAndFall:!0},dynamicLoadConfig:{historyVisible:!1,historyLoadCallBack:()=>{},futureVisible:!1,futureLoadCallBack:()=>{}},zoomLock:!1,isOpenDS:!1},e=n.computed(()=>({...i,...t.config})),o=n.ref(null),a=n.ref(-1),j=n.computed(()=>{var T,x;if(o.value&&((x=(T=o.value.dataset[0])==null?void 0:T.source)!=null&&x.klineData[a.value])){const p=o.value.dataset[0].source.klineData[a.value],y=[],{open:A,heigh:O,low:S,close:Q,business:V,riseAndFall:R}=e.value.tipsConfig;if(A&&y.push({label:"开",value:C(p[0]),color:"rgb(153, 153, 153)"}),O&&y.push({label:"高",value:C(p[3]),color:"rgb(153, 153, 153)"}),S&&y.push({label:"低",value:C(p[2]),color:"rgb(153, 153, 153)"}),Q&&y.push({label:"收",value:C(p[1]),color:"rgb(153, 153, 153)"}),V&&y.push({label:"额",value:xe(p[4]),color:"rgb(153, 153, 153)"}),R){let U=((p[1]-p[5])/p[1]*100).toFixed(2),_=+U==0?"white":+U>0?"red":"#00ff00";y.push({label:"涨跌",value:`${U}%`,color:_})}return y}return[]}),s=n.computed(()=>{var T,x;return o.value&&((x=(T=o.value.dataset[0])==null?void 0:T.source)!=null&&x.indicatorData)?o.value.dataset[0].source.indicatorData.reduce((p,y)=>(y.data[a.value]&&p.push({label:y.key,value:C(y.data[a.value]),color:y.color}),p),[]):[]}),r=n.computed(()=>{const T=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"];if(t.priceTrendData.length>0){const x=[];return t.priceTrendData.forEach((p,y)=>{var O;(p.data[a.value]?C(p.data[a.value][1]):null)!==null&&x.push({label:p.name,value:C((O=p.data[a.value])==null?void 0:O[1]),color:T[y]})}),x}if(t.priceTrendPercentData.length>0){const x=[];return l.getOption().series.filter(y=>y.name.includes("二腿价格走势百分比图")).forEach((y,A)=>{var S;(y.data[a.value]?C(y.data[a.value][1]):null)!==null&&x.push({label:y.name.split("-")[1],value:`${C((S=y.data[a.value])==null?void 0:S[1])}%`,color:T[A]})}),x}return[]});n.watch(()=>[t.klineData,t.indicator,t.markData,t.netPositionData,t.relevanceData],()=>{c()},{deep:!0}),n.watch(()=>t.lineData,async()=>{W("st-kline组件消息:props.lineData监控,额外画线数据发生改变,重绘->line",{color:"red"}),c("line")},{deep:!0}),n.watch(()=>t.brushRange,async()=>{W("st-kline组件消息:props.brushRange监控,区域刷选数据发生改变,重绘->brush",{color:"red"}),c("brush")},{deep:!0}),n.watch(()=>t.priceTrendData,async()=>{c("priceTrend")},{deep:!0}),n.watch(()=>t.priceTrendPercentData,async()=>{c("priceTrendPercent")},{deep:!0});const c=async T=>{const p=new Map([["kline",async()=>{const y=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData),{graphic:A}=l.getOption()??{graphic:[]};o.value={...y,graphic:A},l.setOption(o.value,!0),W("st-kline组件消息:K线绘制完毕-draw",{color:"green"})}],["line",()=>{const y=l.getOption(),A=Oe(t.lineData,e.value,l);o.value={...y,graphic:A},l.setOption(o.value,{replaceMerge:["graphic"]}),W("st-kline组件消息:额外画线绘制完毕-draw",{color:"green"})}],["brush",()=>{const{brushRange:y}=t;y instanceof Array&&y.length>0&&(l.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[y[0]+"",y[1]+""],xAxisIndex:0}]}),W("st-kline组件消息:区域刷选绘制完毕-draw",{color:"green"}))}],[void 0,async()=>{await c("kline"),await c("line"),await c("priceTrend"),await c("priceTrendPercent"),await c("brush")}],["history",async()=>{const y=l.getOption(),A=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData),O=A.dataset.source.klineData.length-y.dataset[0].source.klineData.length;l.setOption({...A,dataZoom:[{type:"inside",xAxisIndex:[0,0],zoomLock:e.value.zoomLock,maxValueSpan:e.value.maxValueSpan,startValue:y.dataZoom[0].startValue+O,endValue:y.dataZoom[0].endValue+O}]},!0),await c("priceTrend")}],["future",async()=>{const y=l.getOption(),A=await ne(t.klineData,t.markData,t.indicator,e.value,t.netPositionData,t.relevanceData);A.dataZoom[0].start=(t.klineData.length-y.dataZoom[0].endValue+y.dataZoom[0].startValue)/t.klineData.length*100,l.setOption(A,!0),await c("priceTrend")}],["priceTrend",()=>{if(t.priceTrendData.length===0)return;const y=l.getOption(),A=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"],O=t.priceTrendData.reduce((S,Q,V)=>{const{name:R,data:U}=Q,_={name:`二腿价格走势图-${R}`,type:"line",data:U,symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:A[V]},lineStyle:{type:"dashed",width:1}};return S.push(_),S},[]);o.value={...y,series:[...y.series,...O]},l.setOption(o.value,{replaceMerge:["series"]})}],["priceTrendPercent",async()=>{if(t.priceTrendPercentData.length===0)return;const y=l.getOption(),A=["#FFFFFF","#FFDD00","#FF00FF","#00FF00","#FF6000","#1677FF","#7C3CC9","#FF0000","#FB9A0E","#00B7FF"],O=y.dataZoom[0].startValue,S=t.priceTrendPercentData.reduce((Q,V,R)=>{const{name:U,data:_}=V,Z=_.length>e.value.totalBarCount?_.slice(_.length-e.value.totalBarCount):_,G=Z[O][1],Ne=Z.map(ie=>[ie[0],(ie[1]-G)/G*100]),ze={name:`二腿价格走势百分比图-${U}`,type:"line",data:Ne,symbol:"none",yAxisIndex:1,connectNulls:!0,itemStyle:{color:A[R]},lineStyle:{type:"dashed",width:1}};return Q.push(ze),Q},[]);y.series=[...y.series.filter(Q=>!Q.name.includes("二腿价格走势百分比图")),...S],l.setOption(y,!0)}]]).get(T);p instanceof Function&&await p()},d=n.ref(!1),I=n.ref([]),u=T=>{const{callBack:x}=T;x instanceof Function&&x(l,d)},N=()=>{I.value=t.defaultMenuData},L=n.ref();let l,f;const w=(T,x)=>{var p,y;if(T)a.value=typeof((p=T==null?void 0:T.batch[0])==null?void 0:p.dataIndex)=="number"?(y=T==null?void 0:T.batch[0])==null?void 0:y.dataIndex:-1;else{const A=x.getOption();A.dataZoom instanceof Array&&(a.value=A.dataZoom[0].endValue)}};let h=null,v=!1,z=n.ref(!1),g=!1,D=n.ref(!1);const Y=async T=>{const x=T.batch?T.batch[0].start*e.value.totalBarCount:T.startValue;e.value.dynamicLoadConfig.historyVisible&&x<=100&&!v&&!z.value&&(v=!0,await e.value.dynamicLoadConfig.historyLoadCallBack(z),await c("history"),v=!1);const p=T.batch?T.batch[0].end===100:T.endValue>=t.klineData.length-e.value.preBarCount-1,y=T.actionIsWheel;e.value.dynamicLoadConfig.futureVisible&&p&&!g&&!D.value&&!y&&(g=!0,await e.value.dynamicLoadConfig.futureLoadCallBack(D),await c("future"),g=!1),clearTimeout(h),h=setTimeout(()=>{c("line"),c("priceTrendPercent"),clearTimeout(h),h=null},_e)};let m=null;const k=T=>{m=setTimeout(()=>{var x;if(T.componentType==="graphic"){const{oncontextmenu:p}=((x=T.info)==null?void 0:x.event)??{};p instanceof Function&&p(T,T.info,I)}clearTimeout(m),m=null})},E=()=>{l.on("highlight",T=>{w(T,l)}),l.on("globalout",()=>{w(null,l)}),l.on("contextmenu",T=>{k(T)}),l.on("datazoom",T=>{Y(T)})},F=()=>{l.off("highlight"),l.off("globalout"),l.off("contextmenu"),l.off("datazoom")},b=T=>{if(!l||!(T.ctrlKey||t.isSelect))return;const x=l.getOption();let{startValue:p,endValue:y,start:A,end:O}=x.dataZoom[0];const S=()=>{p!==0&&(p=p-1,y=y-1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan}))},Q=()=>{if(e.value.dynamicLoadConfig.futureVisible&&!g&&!D.value)p=p+1,y=y+1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan});else{if(y===x.xAxis[0].data.length-1)return;p=p+1,y=y+1,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,maxValueSpan:e.value.maxValueSpan})}},V=()=>{if(y-p<5)return;const Z=Math.floor((a.value-p)/2)+1,G=Math.floor((y-a.value)/2)+1;p=p+Z,y=y-G,l.dispatchAction({type:"dataZoom",startValue:p,endValue:y,actionIsWheel:!0,maxValueSpan:e.value.maxValueSpan})},R=()=>{A=A-(O-A)/4,l.dispatchAction({type:"dataZoom",start:A,end:O,actionIsWheel:!0,maxValueSpan:e.value.maxValueSpan})},_=new Map([["ArrowLeft",S],["ArrowRight",Q],["ArrowUp",V],["ArrowDown",R]]).get(T.code);_ instanceof Function&&_()},B=async()=>{let T=!0;l=H.init(L.value),await c(),I.value=t.defaultMenuData,a.value=l.getOption().dataZoom[0].endValue??-1,E(),f=new ResizeObserver(()=>{if(T){T=null;return}l.resize(),c("line")}),f.observe(L.value),window.addEventListener("keydown",b)};return n.onMounted(()=>{B()}),n.onUnmounted(()=>{F(),window.removeEventListener("keydown",b),l.dispose(),f.disconnect(),f=null}),(T,x)=>{const p=ae.ElMenuItem,y=ae.ElMenu;return n.openBlock(),n.createElementBlock("div",be,[n.createElementVNode("div",Se,[n.createVNode(X,{data:j.value},null,8,["data"]),n.createVNode(X,{data:s.value},null,8,["data"]),n.createVNode(X,{data:r.value},null,8,["data"])]),n.createVNode(Ie,{class:"st-kline-body",onCloseContextMenuCallBack:N},{popover:n.withCtx(()=>[n.createVNode(y,{class:"menu"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(I.value,A=>(n.openBlock(),n.createBlock(p,{key:A.label,index:A.label,class:"menuItem",onClick:O=>u(A)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(A.label),1)]),_:2},1032,["index","onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createElementVNode("div",{ref_key:"echartsRef",ref:L,class:n.normalizeClass(d.value?"st-kline-chart cursorPen":"st-kline-chart")},null,2)]),_:1})])}}});const Qe=P._export_sfc(Fe,[["__scopeId","data-v-7f014d0e"]]),Be={class:"kline-tips"},Ue=n.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(M){return(t,i)=>(n.openBlock(),n.createElementBlock("div",Be,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.data,(e,o)=>(n.openBlock(),n.createElementBlock("div",{key:o,class:"kline-tips-item",style:n.normalizeStyle({color:e.color})},n.toDisplayString(e.label)+" "+n.toDisplayString(e.value),5))),128))]))}});const oe=P._export_sfc(Ue,[["__scopeId","data-v-dc7d381b"]]);const Ve={class:"klineSub"},Re={class:"klineSub-tips"},Pe={key:0,class:"klineSub-tips-select"},We={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0}},emits:["update:modelValue"],setup(M,{expose:t,emit:i}){const{round:e}=J.x;let o,a;const j=i,s=M,r=n.ref(),c=n.computed({get(){return s.modelValue},set(u){j("update:modelValue",u)}}),d=n.computed(()=>{var L;const{data:u,activeIndex:N}=s;return((L=u==null?void 0:u.subIndicator)==null?void 0:L.map(l=>({label:l.key,color:l.color,value:l.data[N]||"-"})))||[]});n.onMounted(()=>{o=H.init(r.value);let u=!0;a=new ResizeObserver(()=>{if(u){u=null;return}o.resize()}),a.observe(r.value)}),n.onUnmounted(()=>{o.dispose(),a.disconnect(),a=null});const I=(u,N)=>{const L=u[N],l=N===0?u[N]:u[N-1];return L[0]===L[1]?L[0]>=l[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:L[1]>L[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return t({connect:u=>{H.connect([u,o])},draw:(u,N)=>{n.nextTick(()=>{const{startValue:L,endValue:l,maxValueSpan:f}=u,{leftYAxisRange:w,rightYAxisRange:h}=s.data.subIndicator[0],v=s.data.subIndicator.map(z=>{if(z.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:z.data.map((g,D)=>z.seriesColor==="kline"?{value:g,itemStyle:I(s.data.data,D)}:z.seriesColor==="value"?{value:g,itemStyle:{color:g>=0?"#FF0000":"#00FFFF"}}:{value:g,itemStyle:{color:z.seriesColor}})};if(z.series==="line")return{xAxisIndex:0,yAxisIndex:z.yAxis==="right"?2:1,name:z.key,type:"line",silent:!0,symbol:"none",data:z.data,lineStyle:{width:1},itemStyle:{color:z.color}}});o.setOption({animation:!1,grid:{left:`${N.gridLeft}px`,top:"10px",right:`${N.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:L,endValue:l,maxValueSpan:f}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:z=>{const{axisDimension:g,value:D}=z;if(g==="x")return D;if(z.axisIndex===1)return String(e(D))}}},formatter:()=>""},xAxis:{type:"category",data:s.data.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:z=>z}},yAxis:[{position:"right"},{position:"left",min:w==="cover"?z=>z.min:null,max:w==="cover"?z=>z.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:h==="cover"?z=>z.min:null,max:h==="cover"?z=>z.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:v},!0)})}}),(u,N)=>{const L=Me.ElOption,l=Me.ElSelect;return n.openBlock(),n.createElementBlock("div",Ve,[n.createElementVNode("div",Re,[d.value.length?(n.openBlock(),n.createElementBlock("div",Pe,[n.createVNode(l,{modelValue:c.value,"onUpdate:modelValue":N[0]||(N[0]=f=>c.value=f),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(M.subIndicatorList,f=>(n.openBlock(),n.createBlock(L,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):n.createCommentVNode("",!0),n.createVNode(oe,{data:d.value},null,8,["data"])]),n.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:r},null,512)])}}},Ze=P._export_sfc(We,[["__scopeId","data-v-aba58678"]]);const Ge={class:"kline-tips"},$e={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0}},setup(M){const{round:t,formatValue:i}=J.x,e=M,o=n.computed(()=>{const{data:j,activeIndex:s}=e;if(j.data&&j.data[s]){const r=j.data[s],c=[{label:"开",value:t(r[0])},{label:"高",value:t(r[3])},{label:"低",value:t(r[2])},{label:"收",value:t(r[1])}];r[4]!==null&&c.push({label:"额",value:i(r[4])});let d;return r[6]>0?d="red":r[6]<0&&(d="green"),c.push({label:"涨跌",value:`${t(r[6])}%`,color:d}),c}return[]}),a=n.computed(()=>{var r;const{data:j,activeIndex:s}=e;return((r=j==null?void 0:j.mainIndicator)==null?void 0:r.map(c=>({label:c.key,value:t(c.data[s]),color:c.color})))||[]});return(j,s)=>(n.openBlock(),n.createElementBlock("div",Ge,[n.createVNode(oe,{data:o.value},null,8,["data"]),n.createVNode(oe,{data:a.value},null,8,["data"])]))}},He=P._export_sfc($e,[["__scopeId","data-v-a12855fe"]]),qe={__name:"index",setup(M,{expose:t}){return t({handleKeyDown:(i,e)=>{let{startValue:o,endValue:a,maxIndex:j}=e;if(i.code==="ArrowLeft"){if(o===0)return;o=o-1,a=a-1}else if(i.code==="ArrowRight"){if(a===j)return;o=o+1,a=a+1}else if(i.code==="ArrowUp"){if(a-o<5)return;const s=Math.floor((a-o)/2)+1;o=o+s,a-o<5&&(o=a-4)}else if(i.code==="ArrowDown"){const s=Math.min(500,a-o);o=o-s-1}return{startValue:o,endValue:a}},mergeData:(i,e)=>({time:[...i.time,...e.time.slice(1)],data:[...i.data,...e.data.slice(1)],mainIndicator:i.mainIndicator.map((o,a)=>({...o,data:[...o.data,...e.mainIndicator[a].data.slice(1)]})),subIndicator:i.subIndicator.map((o,a)=>({...o,data:[...o.data,...e.subIndicator[a].data.slice(1)]}))}),getDataZoomInfoByTime:i=>{const{showStartTime:e,showEndTime:o,maxShowDays:a}=i;let j=-1,s=-1,r={};return i.time.forEach((c,d)=>{const I=c.split(" ")[0];r[I]=r[I]||0,r[I]+=1,j===-1&&new Date(c)>=new Date(e)&&(j=d),s===-1&&new Date(c)>=new Date(o)&&(s=d)}),s=s===-1?i.time.length-1:s,{startValue:j,endValue:s,maxValueSpan:Math.max(...Object.values(r))*a}}}),(i,e)=>null}};const Je={__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(M,{expose:t,emit:i}){let e,o,a=null;const j=i,s=M,r=n.ref();n.watch(()=>s.data,()=>{I()},{deep:!0}),n.onMounted(()=>{e=H.init(r.value),c(),I();let u=!0;o=new ResizeObserver(()=>{if(u){u=null;return}e.resize()}),o.observe(r.value)}),n.onUnmounted(()=>{e.off("datazoom"),e.dispose(),o.disconnect(),o=null});const c=()=>{e.on("datazoom",u=>{u.dataZoomId&&(clearTimeout(a),a=setTimeout(()=>{const{data:N}=s,{start:L,end:l}=u,f=Math.floor(L*N.length/100),w=l===100?N.length-1:Math.floor(l*N.length/100);d(f,w),clearTimeout(a)},100))})},d=(u,N)=>{const L=s.data;if(L.length===0)return;const l=L[u][0].split(" ")[0],f=L[N][0].split(" ")[0];j("change",{startTime:`${l} 00:00:00`,endTime:`${f} 24:00:00`})},I=()=>{const{data:u}=s;if(u.length===0)return;const N=u.map(l=>l[0].split(" ")[0]),L=u.map(l=>l[1]);e.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:N,show:!1},yAxis:{type:"value"},series:[{data:L,type:"line"}]},!0)};return t({resetSlide:(u,N,L)=>{let l=-1,f=-1;s.data.forEach((w,h)=>{l===-1&&w[0]===u?l=h:l===-1&&new Date(w[0])>new Date(u)&&(l=h-1),(f===-1&&w[0]===N||f===-1&&new Date(w[0])>new Date(N))&&(f=h)}),f=f===-1?s.data.length-1:f,e.setOption({dataZoom:[{show:!0,startValue:l,endValue:f,maxValueSpan:L,textStyle:{color:"#ccc"}},{type:"inside",startValue:l,endValue:f,maxValueSpan:L}]})},resize:()=>{e==null||e.resize()}}),(u,N)=>(n.openBlock(),n.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:r},null,512))}},Xe=P._export_sfc(Je,[["__scopeId","data-v-7a2f3dd0"]]),Ke={install(M){M.component("st-kline",Qe),M.component("st-kline-sub-new",Ze),M.component("st-kline-tips-new",He),M.component("st-kline-slide-new",Xe),M.component("st-kline-utils-new",qe)}};module.exports=Ke;
package/es/Kline.js CHANGED
@@ -5,7 +5,7 @@ import "./el-popper-b6527ae2.js";
5
5
  import { defineComponent as Me, openBlock as C, createElementBlock as v, createElementVNode as K, Fragment as ae, renderList as le, normalizeStyle as ye, toDisplayString as q, ref as S, renderSlot as De, createCommentVNode as xe, nextTick as Ye, computed as W, watch as H, onMounted as de, onUnmounted as ge, createVNode as V, withCtx as X, createBlock as Ae, createTextVNode as Oe, normalizeClass as ke } from "vue";
6
6
  import * as oe from "echarts";
7
7
  import { _ as $ } from "./_plugin-vue_export-helper-dad06003.js";
8
- import { x as re } from "./index-8542fe24.js";
8
+ import { x as re } from "./index-7ed0999e.js";
9
9
  import { i as ve, t as be } from "./index.esm-8d9a2abe.js";
10
10
  import "./el-tag-7414e0c7.js";
11
11
  import { E as Ee, a as Se } from "./el-select-7395562b.js";