st-comp 0.0.280 → 0.0.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/es/CustomFunction.cjs +2 -2
  2. package/es/CustomFunction.js +512 -306
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +25 -25
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +10 -10
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +418 -416
  9. package/es/KlineConfig.cjs +1 -1
  10. package/es/KlineConfig.js +16 -16
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +9 -9
  13. package/es/KlinePlus.cjs +1 -1
  14. package/es/KlinePlus.js +11 -11
  15. package/es/MonacoEditor.cjs +1 -1
  16. package/es/MonacoEditor.js +17 -17
  17. package/es/Pagination.cjs +1 -1
  18. package/es/Pagination.js +13 -13
  19. package/es/PasswordPrompt.cjs +1 -1
  20. package/es/PasswordPrompt.js +2 -2
  21. package/es/Table.cjs +1 -1
  22. package/es/Table.js +22 -22
  23. package/es/User.cjs +1 -1
  24. package/es/User.js +18 -18
  25. package/es/VarSelectDialog.cjs +1 -1
  26. package/es/VarSelectDialog.js +19 -19
  27. package/es/VarietyAiHelper.cjs +7 -7
  28. package/es/VarietyAiHelper.js +426 -437
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +7 -7
  31. package/es/VarietySearch.cjs +8 -8
  32. package/es/VarietySearch.js +385 -372
  33. package/es/{VarietySelect-c402bade.js → VarietySelect-3fc0f0ce.js} +3 -3
  34. package/es/{VarietySelect-aa082a9c.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  35. package/es/VarietyTextCopy.cjs +1 -1
  36. package/es/VarietyTextCopy.js +9 -9
  37. package/es/VirtualTable.cjs +1 -1
  38. package/es/VirtualTable.js +94 -94
  39. package/es/{_baseClone-10bdb989.cjs → _baseClone-f8e5d3ba.cjs} +1 -1
  40. package/es/{_baseClone-98af8b33.js → _baseClone-fb6a3947.js} +2 -2
  41. package/es/{config-provider-563023c9.js → config-provider-06d8207f.js} +3 -3
  42. package/es/{config-provider-33a127c4.cjs → config-provider-bb61bd3e.cjs} +1 -1
  43. package/es/{dropdown-ce7496c7.cjs → dropdown-8fa21bfd.cjs} +1 -1
  44. package/es/{dropdown-feea8702.js → dropdown-bcf8d198.js} +2 -2
  45. package/es/{el-autocomplete-d9253bba.cjs → el-autocomplete-13b9e372.cjs} +1 -1
  46. package/es/{el-autocomplete-eac54f9f.js → el-autocomplete-419bfbcf.js} +5 -5
  47. package/es/{el-button-8a9721f8.js → el-button-ee9fe159.js} +3 -3
  48. package/es/{el-button-8259594b.cjs → el-button-fac5e058.cjs} +1 -1
  49. package/es/{el-checkbox-6303fc92.cjs → el-checkbox-6cf1a71c.cjs} +1 -1
  50. package/es/{el-checkbox-c328b097.js → el-checkbox-b5ac7f04.js} +4 -4
  51. package/es/{el-dialog-67536fac.js → el-dialog-060b3735.js} +4 -4
  52. package/es/{el-dialog-8788bcc1.cjs → el-dialog-54aebacd.cjs} +1 -1
  53. package/es/{el-form-item-8efcf2c3.js → el-form-item-2be6b683.js} +3 -3
  54. package/es/{el-form-item-95e68669.cjs → el-form-item-758dfefa.cjs} +1 -1
  55. package/es/{el-input-c8a9bb71.cjs → el-input-7fe53030.cjs} +1 -1
  56. package/es/{el-input-e66500b7.js → el-input-d23f5442.js} +60 -60
  57. package/es/{el-input-number-68ee0d65.js → el-input-number-484fb184.js} +15 -15
  58. package/es/{el-input-number-d7a81922.cjs → el-input-number-f0f4eedb.cjs} +1 -1
  59. package/es/{el-loading-db4c6d13.js → el-loading-9d3e405c.js} +1 -1
  60. package/es/{el-loading-62132db2.cjs → el-loading-fafaaa7b.cjs} +1 -1
  61. package/es/{el-menu-item-c2523d82.js → el-menu-item-0ac22681.js} +4 -4
  62. package/es/{el-menu-item-4b8e7794.cjs → el-menu-item-c91ae430.cjs} +1 -1
  63. package/es/{el-message-box-7c13546c.js → el-message-box-568a0aa6.js} +9 -9
  64. package/es/{el-message-box-fed174f0.cjs → el-message-box-ceacb54e.cjs} +1 -1
  65. package/es/{el-overlay-17299785.cjs → el-overlay-9f36e73c.cjs} +1 -1
  66. package/es/{el-overlay-36f223e9.js → el-overlay-cb5c85aa.js} +3 -3
  67. package/es/{el-popconfirm-520b2928.cjs → el-popconfirm-4a8cd35c.cjs} +1 -1
  68. package/es/{el-popconfirm-a857c54a.js → el-popconfirm-6f8e65c8.js} +4 -4
  69. package/es/{el-popper-852446fd.js → el-popper-0454c8e8.js} +1 -1
  70. package/es/{el-popper-f824c63b.cjs → el-popper-acd0ff35.cjs} +1 -1
  71. package/es/{el-segmented-bf08279f.js → el-segmented-64dc7258.js} +2 -2
  72. package/es/{el-segmented-45dcc036.cjs → el-segmented-eb3c8e65.cjs} +1 -1
  73. package/es/{el-select-a34348e1.js → el-select-a573c78b.js} +8 -8
  74. package/es/{el-select-d2958ae8.cjs → el-select-c317294a.cjs} +1 -1
  75. package/es/{el-table-column-e2be313e.js → el-table-column-1c443963.js} +9 -9
  76. package/es/{el-table-column-ad70ee0e.cjs → el-table-column-f555115d.cjs} +1 -1
  77. package/es/{el-tag-9bcfae32.js → el-tag-2d8a3fe7.js} +2 -2
  78. package/es/{el-tag-527f06f0.cjs → el-tag-dca1292c.cjs} +1 -1
  79. package/es/{el-text-fc345ffd.cjs → el-text-649c986a.cjs} +1 -1
  80. package/es/{el-text-f9379288.js → el-text-761e6717.js} +1 -1
  81. package/es/{index-7711aa69.cjs → index-11181b5f.cjs} +1 -1
  82. package/es/{index-5e76a22d.cjs → index-21a3dc89.cjs} +1 -1
  83. package/es/{index-99bb359f.cjs → index-33e039e3.cjs} +1 -1
  84. package/es/{index-bb0bc131.cjs → index-4614e8e9.cjs} +2 -2
  85. package/es/{index-dfb34e00.js → index-53beef02.js} +1 -1
  86. package/es/index-5cada1ed.cjs +1 -0
  87. package/es/{index-3ed0c678.cjs → index-6a36e1fc.cjs} +1 -1
  88. package/es/{index-60900c6c.js → index-6a52dc7c.js} +112 -82
  89. package/es/{index-b9a26e7f.js → index-78dab605.js} +3 -3
  90. package/es/{index-99d4335d.cjs → index-798fec2d.cjs} +1 -1
  91. package/es/{index-47d30a52.js → index-9573f74b.js} +1 -1
  92. package/es/{index-69d2353a.js → index-ab0ad219.js} +9 -9
  93. package/es/{index-3a0a7c36.cjs → index-beb5cb7d.cjs} +1 -1
  94. package/es/{index-86678b72.js → index-c09fc6f5.js} +2 -2
  95. package/es/{index-5dec535a.cjs → index-ceae4c47.cjs} +1 -1
  96. package/es/{index-a0522466.js → index-d9379af4.js} +2 -2
  97. package/es/{index-7c4d8f5d.js → index-dddacf80.js} +1 -1
  98. package/es/{index-2419d69a.js → index-e2e58ea9.js} +5 -5
  99. package/es/{python-922eca89.cjs → python-60e79979.cjs} +1 -1
  100. package/es/{python-6eafa04b.js → python-673bf8b8.js} +17 -17
  101. package/es/style.css +1 -1
  102. package/es/{use-form-item-0a831287.cjs → use-form-item-76516e50.cjs} +1 -1
  103. package/es/{use-form-item-187cd7db.js → use-form-item-784142b4.js} +16 -16
  104. package/es/{use-global-config-c90c91f7.cjs → use-global-config-7ff9a1c2.cjs} +1 -1
  105. package/es/{use-global-config-17dafd40.js → use-global-config-9a4ccf33.js} +2 -2
  106. package/es/{validator-ee5bc3eb.cjs → validator-1926345b.cjs} +1 -1
  107. package/es/{validator-800ed2ba.js → validator-a66ec4f8.js} +1 -1
  108. package/es/{zh-cn-26cc7233.js → zh-cn-51c2e528.js} +1 -1
  109. package/es/{zh-cn-a22a6792.cjs → zh-cn-ad12d9f5.cjs} +1 -1
  110. package/lib/bundle.js +1 -1
  111. package/lib/bundle.umd.cjs +207 -207
  112. package/lib/{index-74ed48c6.js → index-2b2824f6.js} +23900 -23662
  113. package/lib/{python-7aaa84e4.js → python-b8d31c7a.js} +1 -1
  114. package/lib/style.css +1 -1
  115. package/package.json +1 -1
  116. package/es/index-3e7d5ffb.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const F=require("./index-3a0a7c36.cjs"),M=require("./el-button-8259594b.cjs"),O=require("./el-select-d2958ae8.cjs"),K=require("./el-checkbox-6303fc92.cjs"),H=require("./el-divider-3f0320be.cjs"),s=require("./base-d987e5c9.cjs"),j=require("./index-f5474dcc.cjs"),W=require("./index-d372e68f.cjs"),z=require("./index-3e7d5ffb.cjs"),w=require("./el-popper-f824c63b.cjs"),A=require("./el-overlay-17299785.cjs"),N=require("./use-form-item-0a831287.cjs"),e=require("vue"),G=require("./validator-ee5bc3eb.cjs"),J=require("./el-segmented-45dcc036.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-tag-527f06f0.cjs");const X=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-global-config-c90c91f7.cjs");require("./index-3ed0c678.cjs");require("./index-71ba4c28.cjs");require("./castArray-d9ffe84a.cjs");require("./vnode-6f7b84f0.cjs");require("./index-5e76a22d.cjs");require("./scroll-07bade1e.cjs");require("./index-7711aa69.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./_baseClone-10bdb989.cjs");const Y=s.buildProps({...A.dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),_={...A.dialogEmits,"resize-start":(t,f)=>t instanceof MouseEvent&&typeof f=="number",resize:(t,f)=>t instanceof MouseEvent&&typeof f=="number","resize-end":(t,f)=>t instanceof MouseEvent&&typeof f=="number"};function Q(t,f,y){const{width:i,height:k}=N.useWindowSize(),d=e.computed(()=>["ltr","rtl"].includes(t.direction)),g=e.computed(()=>["ltr","ttb"].includes(t.direction)?1:-1),n=e.computed(()=>d.value?i.value:k.value),b=e.computed(()=>s.clamp(r.value+g.value*B.value,4,n.value)),r=e.ref(0),B=e.ref(0),V=e.ref(!1),h=e.ref(!1);let S=[],u=[];const l=()=>{var a;const m=(a=f.value)==null?void 0:a.closest('[aria-modal="true"]');return m?d.value?m.offsetWidth:m.offsetHeight:100};e.watch(()=>[t.size,t.resizable],()=>{h.value=!1,r.value=0,B.value=0,p()});const C=m=>{t.resizable&&(h.value||(r.value=l(),h.value=!0),S=[m.pageX,m.pageY],V.value=!0,y("resize-start",m,r.value),u.push(N.useEventListener(window,"mouseup",p),N.useEventListener(window,"mousemove",c)))},c=m=>{const{pageX:a,pageY:v}=m,x=a-S[0],T=v-S[1];B.value=d.value?x:T,y("resize",m,b.value)},p=m=>{V.value&&(S=[],r.value=b.value,B.value=0,V.value=!1,u.forEach(a=>a==null?void 0:a()),u=[],m&&y("resize-end",m,r.value))},I=N.useEventListener(f,"mousedown",C);return e.onBeforeUnmount(()=>{I(),p()}),{size:e.computed(()=>h.value?`${b.value}px`:s.addUnit(t.size)),isResizing:V,isHorizontal:d}}const Z=["aria-label","aria-labelledby","aria-describedby"],ee=["id","aria-level"],te=["aria-label"],le=["id"];var ne=e.defineComponent({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Y,emits:_,setup(t,{expose:f,emit:y}){const i=t,k=y,d=e.useSlots();j.useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},e.computed(()=>!!d.title));const g=e.ref(),n=e.ref(),b=e.ref(),r=s.useNamespace("drawer"),{t:B}=W.useLocale(),{afterEnter:V,afterLeave:h,beforeLeave:S,visible:u,rendered:l,titleId:C,bodyId:c,zIndex:p,onModalClick:I,onOpenAutoFocus:m,onCloseAutoFocus:a,onFocusoutPrevented:v,onCloseRequested:x,handleClose:T}=A.useDialog(i,g),{isHorizontal:o,size:E,isResizing:q}=Q(i,b,k),U=e.computed(()=>i.modalPenetrable&&!i.modal);return f({handleClose:T}),(P,L)=>(e.openBlock(),e.createBlock(e.Teleport,{to:t.appendTo,disabled:t.appendTo!=="body"?!1:!t.appendToBody},[e.createVNode(e.Transition,{name:e.unref(r).b("fade"),onAfterEnter:e.unref(V),onAfterLeave:e.unref(h),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:t.modal,"overlay-class":[e.unref(r).is("drawer"),t.modalClass??"",`${e.unref(r).namespace.value}-modal-drawer`,e.unref(r).is("penetrable",U.value)],"z-index":e.unref(p),onClick:e.unref(I)},{default:e.withCtx(()=>[e.createVNode(e.unref(w.focus_trap_default$1),{loop:"",trapped:e.unref(u),"focus-trap-el":g.value,"focus-start-el":n.value,onFocusAfterTrapped:e.unref(m),onFocusAfterReleased:e.unref(a),onFocusoutPrevented:e.unref(v),onReleaseRequested:e.unref(x)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:g,"aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:e.unref(C),"aria-describedby":e.unref(c)},P.$attrs,{class:[e.unref(r).b(),t.direction,e.unref(u)&&"open",e.unref(r).is("dragging",e.unref(q))],style:{[e.unref(o)?"width":"height"]:e.unref(E)},role:"dialog",onClick:L[1]||(L[1]=e.withModifiers(()=>{},["stop"]))}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:n,class:e.normalizeClass(e.unref(r).e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(r).e("header"),t.headerClass])},[P.$slots.title?e.renderSlot(P.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(P.$slots,"header",{key:0,close:e.unref(T),titleId:e.unref(C),titleClass:e.unref(r).e("title")},()=>[e.createElementVNode("span",{id:e.unref(C),role:"heading","aria-level":t.headerAriaLevel,class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(t.title),11,ee)]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(B)("el.drawer.close"),class:e.normalizeClass(e.unref(r).e("close-btn")),type:"button",onClick:L[0]||(L[0]=(...R)=>e.unref(T)&&e.unref(T)(...R))},[e.createVNode(e.unref(z.ElIcon),{class:e.normalizeClass(e.unref(r).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.close_default))]),_:1},8,["class"])],10,te)):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(c),class:e.normalizeClass([e.unref(r).e("body"),t.bodyClass])},[e.renderSlot(P.$slots,"default")],10,le)):e.createCommentVNode("v-if",!0),P.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(r).e("footer"),t.footerClass])},[e.renderSlot(P.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),t.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:b,style:e.normalizeStyle({zIndex:e.unref(p)}),class:e.normalizeClass(e.unref(r).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,Z)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[e.vShow,e.unref(u)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}}),ae=ne;const oe=s.withInstall(ae),re=s.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:G.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:N.iconPropType},activeActionIcon:{type:N.iconPropType},activeIcon:{type:N.iconPropType},inactiveIcon:{type:N.iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:s.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...w.useAriaProps(["ariaLabel"])}),ie={[w.UPDATE_MODEL_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t),[w.CHANGE_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t),[w.INPUT_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t)},se=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],ce=["aria-hidden"],ue={key:1},de={key:1},me=["aria-hidden"],D="ElSwitch";var ve=e.defineComponent({name:D,__name:"switch",props:re,emits:ie,setup(t,{expose:f,emit:y}){const i=t,k=y,{formItem:d}=N.useFormItem(),g=N.useFormSize(),n=s.useNamespace("switch"),{inputId:b}=N.useFormItemInputId(i,{formItemContext:d}),r=N.useFormDisabled(e.computed(()=>{if(i.loading)return!0})),B=e.ref(i.modelValue!==!1),V=e.shallowRef(),h=e.computed(()=>[n.b(),n.m(g.value),n.is("disabled",r.value),n.is("checked",c.value)]),S=e.computed(()=>[n.e("label"),n.em("label","left"),n.is("active",!c.value)]),u=e.computed(()=>[n.e("label"),n.em("label","right"),n.is("active",c.value)]),l=e.computed(()=>({width:s.addUnit(i.width)}));e.watch(()=>i.modelValue,()=>{B.value=!0});const C=e.computed(()=>B.value?i.modelValue:!1),c=e.computed(()=>C.value===i.activeValue);[i.activeValue,i.inactiveValue].includes(C.value)||(s.debugWarn(D,"model-value must be active-value or inactive-value"),k(w.UPDATE_MODEL_EVENT,i.inactiveValue),k(w.CHANGE_EVENT,i.inactiveValue),k(w.INPUT_EVENT,i.inactiveValue)),e.watch(c,a=>{var v;V.value.checked=a,i.validateEvent&&((v=d==null?void 0:d.validate)==null||v.call(d,"change").catch(s.NOOP))});const p=()=>{const a=c.value?i.inactiveValue:i.activeValue;k(w.UPDATE_MODEL_EVENT,a),k(w.CHANGE_EVENT,a),k(w.INPUT_EVENT,a),e.nextTick(()=>{V.value.checked=c.value})},I=()=>{if(r.value)return;const{beforeChange:a}=i;if(!a){p();return}const v=a();[s.isPromise(v),s.isBoolean(v)].includes(!0)||s.throwError(D,"beforeChange must return type `Promise<boolean>` or `boolean`"),s.isPromise(v)?v.then(x=>{x&&p()}).catch(x=>{s.debugWarn(D,`some error occurred: ${x}`)}):v&&p()},m=()=>{var a,v;(v=(a=V.value)==null?void 0:a.focus)==null||v.call(a)};return e.onMounted(()=>{V.value.checked=c.value}),f({focus:m,checked:c}),(a,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(h.value),onClick:e.withModifiers(I,["prevent"])},[e.createElementVNode("input",{id:e.unref(b),ref_key:"input",ref:V,class:e.normalizeClass(e.unref(n).e("input")),type:"checkbox",role:"switch","aria-checked":c.value,"aria-disabled":e.unref(r),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(r),tabindex:t.tabindex,onChange:p,onKeydown:e.withKeys(I,["enter"])},null,42,se),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText||a.$slots.inactive)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(S.value)},[e.renderSlot(a.$slots,"inactive",{},()=>[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":c.value},e.toDisplayString(t.inactiveText),9,ce)):e.createCommentVNode("v-if",!0)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("core")),style:e.normalizeStyle(l.value)},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).e("inner"))},[c.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n).e("inner-wrapper"))},[e.renderSlot(a.$slots,"active",{},()=>[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(t.activeText),1)):e.createCommentVNode("v-if",!0)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).e("inner-wrapper"))},[e.renderSlot(a.$slots,"inactive",{},()=>[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",ue,e.toDisplayString(t.inactiveText),1)):e.createCommentVNode("v-if",!0)])],2))],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.loading_default))]),_:1},8,["class"])):c.value?e.renderSlot(a.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):c.value?e.createCommentVNode("v-if",!0):e.renderSlot(a.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)])],2)],6),!t.inlinePrompt&&(t.activeIcon||t.activeText||a.$slots.active)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(u.value)},[e.renderSlot(a.$slots,"active",{},()=>[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!c.value},e.toDisplayString(t.activeText),9,me)):e.createCommentVNode("v-if",!0)])],2)):e.createCommentVNode("v-if",!0)],2))}}),fe=ve;const pe=s.withInstall(fe);const be=[{label:"买卖",value:0},{label:"开平",value:1}],$=()=>({mainIndicator:"MA",sellBuy:1,sellBuyByPrice:1,singelCycle:"6",multiCycleNum:6,multiCycleList:["1","2","3","4","5","6"],pageType:1,enable_tradeLogBrush:!0,enable_showScreenTimeRange:!0,enable_showScreenMaxPrice:!0,enable_dbClickOpenSingel:!0,enable_subChart:!0,enable_sliderChart:!0}),Ve=(t,f)=>{var y;return((y=f.find(i=>i.value===t))==null?void 0:y.label)??"-"};const ye={class:"kline-config element-dark"},ke={class:"setting-item"},ge={class:"setting-item"},Ce={class:"setting-item"},Ee={class:"setting-item"},Ne={class:"setting-item"},Be={class:"mode"},we={class:"cycleName"},he={class:"content"},Se={class:"setting-item"},xe={class:"setting-item"},ze={class:"setting-item"},Ie={class:"setting-item"},Te={class:"setting-item"},Pe={class:"setting-item"},qe={class:"setting-item"},Le={class:"setting-footer"},De={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(t,{expose:f,emit:y}){const{request:i}=e.inject("stConfig"),k=y,d=t,g=e.ref(!1),n=e.reactive({}),b=e.ref([]),r=e.ref([]),B=()=>{Object.assign(n,$())},V=async()=>{const u=JSON.stringify(n);d.origin==="server"?await i.post("/common/qt/updateUserConfig",{appId:1,json:u}):localStorage.setItem("userKlineConfig",u),k("callBack",u),g.value=!1},h=async()=>{if(d.origin==="server"){const{body:u}=await i.post("/common/qt/getUserConfig",{appId:1});Object.assign(n,$(),u?JSON.parse(u):{})}else{const u=localStorage.getItem("userKlineConfig");Object.assign(n,$(),u?JSON.parse(u):{})}},S=async()=>{if(d.origin==="server"){const{body:u}=await i.post("/common/qt/getDict",{dictIds:[1002]});b.value=u[1002].map(l=>({label:l.dictName,value:l.dictCode}))}else b.value=d.cycleOptions};return e.onMounted(()=>{S(),r.value=d.indicatorStore.mainIndicatorList??[]}),e.watch(()=>d.indicatorStore.mainIndicatorList,()=>{r.value=d.indicatorStore.mainIndicatorList??[]}),f({open:async()=>{await h(),g.value=!0},getDefaultUserKlineConfig:$}),(u,l)=>{const C=H.ElDivider,c=O.ElOption,p=O.ElSelect,I=K.ElCheckbox,m=J.ElSegmented,a=pe,v=F.ElScrollbar,x=M.ElButton,T=oe;return e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(T,{modelValue:g.value,"onUpdate:modelValue":l[12]||(l[12]=o=>g.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(v,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(C,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("偏好设置",-1)])]),_:1}),e.createElementVNode("div",ke,[l[14]||(l[14]=e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),e.createVNode(p,{modelValue:n.mainIndicator,"onUpdate:modelValue":l[0]||(l[0]=o=>n.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ge,[l[15]||(l[15]=e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),e.createVNode(p,{modelValue:n.sellBuy,"onUpdate:modelValue":l[1]||(l[1]=o=>n.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(be),(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ce,[l[16]||(l[16]=e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),e.createVNode(I,{modelValue:n.sellBuyByPrice,"onUpdate:modelValue":l[2]||(l[2]=o=>n.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ee,[l[17]||(l[17]=e.createElementVNode("span",{class:"label"},"单周期: ",-1)),e.createVNode(p,{modelValue:n.singelCycle,"onUpdate:modelValue":l[3]||(l[3]=o=>n.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ne,[l[18]||(l[18]=e.createElementVNode("span",{class:"label"},"多周期: ",-1)),e.createVNode(m,{size:"small",modelValue:n.multiCycleNum,"onUpdate:modelValue":l[4]||(l[4]=o=>n.multiCycleNum=o),options:[{label:"二图",value:2},{label:"四图",value:4},{label:"六图",value:6}],style:{height:"26px"}},null,8,["modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(`setting-multi-box grid-${n.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.multiCycleList.slice(0,n.multiCycleNum),(o,E)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(e.unref(Ve)(n.multiCycleList[E],b.value)),1),e.createVNode(p,{modelValue:n.multiCycleList[E],"onUpdate:modelValue":q=>n.multiCycleList[E]=q,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(q,U)=>(e.openBlock(),e.createBlock(c,{key:U,label:q.label,value:q.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",he,e.toDisplayString(E+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Se,[l[19]||(l[19]=e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),e.createVNode(m,{size:"small",modelValue:n.pageType,"onUpdate:modelValue":l[5]||(l[5]=o=>n.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(C,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[...l[20]||(l[20]=[e.createTextVNode("功能配置",-1)])]),_:1}),e.createElementVNode("div",xe,[l[21]||(l[21]=e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),e.createVNode(a,{modelValue:n.enable_tradeLogBrush,"onUpdate:modelValue":l[6]||(l[6]=o=>n.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[l[22]||(l[22]=e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),e.createVNode(a,{modelValue:n.enable_showScreenTimeRange,"onUpdate:modelValue":l[7]||(l[7]=o=>n.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[l[23]||(l[23]=e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),e.createVNode(a,{modelValue:n.enable_showScreenMaxPrice,"onUpdate:modelValue":l[8]||(l[8]=o=>n.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",Te,[l[24]||(l[24]=e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),e.createVNode(a,{modelValue:n.enable_dbClickOpenSingel,"onUpdate:modelValue":l[9]||(l[9]=o=>n.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(C,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[...l[25]||(l[25]=[e.createTextVNode("组件开关",-1)])]),_:1}),e.createElementVNode("div",Pe,[l[26]||(l[26]=e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),e.createVNode(a,{modelValue:n.enable_subChart,"onUpdate:modelValue":l[10]||(l[10]=o=>n.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",qe,[l[27]||(l[27]=e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),e.createVNode(a,{modelValue:n.enable_sliderChart,"onUpdate:modelValue":l[11]||(l[11]=o=>n.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Le,[e.createVNode(x,{onClick:B},{default:e.withCtx(()=>[...l[28]||(l[28]=[e.createTextVNode(" 恢复默认 ",-1)])]),_:1}),e.createVNode(x,{type:"primary",onClick:V},{default:e.withCtx(()=>[...l[29]||(l[29]=[e.createTextVNode(" 保存配置 ",-1)])]),_:1})])]),_:1},8,["modelValue"])])}}},$e=X._export_sfc(De,[["__scopeId","data-v-cbe82a27"]]),Ae={install(t){t.component("st-klineConfig",$e)}};module.exports=Ae;
1
+ "use strict";const F=require("./index-beb5cb7d.cjs"),M=require("./el-button-fac5e058.cjs"),O=require("./el-select-c317294a.cjs"),K=require("./el-checkbox-6cf1a71c.cjs"),H=require("./el-divider-3f0320be.cjs"),s=require("./base-d987e5c9.cjs"),j=require("./index-f5474dcc.cjs"),W=require("./index-d372e68f.cjs"),z=require("./index-5cada1ed.cjs"),w=require("./el-popper-acd0ff35.cjs"),A=require("./el-overlay-9f36e73c.cjs"),N=require("./use-form-item-76516e50.cjs"),e=require("vue"),G=require("./validator-1926345b.cjs"),J=require("./el-segmented-eb3c8e65.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-tag-dca1292c.cjs");const X=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-global-config-7ff9a1c2.cjs");require("./index-6a36e1fc.cjs");require("./index-71ba4c28.cjs");require("./castArray-d9ffe84a.cjs");require("./vnode-6f7b84f0.cjs");require("./index-21a3dc89.cjs");require("./scroll-07bade1e.cjs");require("./index-11181b5f.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./_baseClone-f8e5d3ba.cjs");const Y=s.buildProps({...A.dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),_={...A.dialogEmits,"resize-start":(t,f)=>t instanceof MouseEvent&&typeof f=="number",resize:(t,f)=>t instanceof MouseEvent&&typeof f=="number","resize-end":(t,f)=>t instanceof MouseEvent&&typeof f=="number"};function Q(t,f,y){const{width:i,height:k}=N.useWindowSize(),d=e.computed(()=>["ltr","rtl"].includes(t.direction)),g=e.computed(()=>["ltr","ttb"].includes(t.direction)?1:-1),n=e.computed(()=>d.value?i.value:k.value),b=e.computed(()=>s.clamp(r.value+g.value*B.value,4,n.value)),r=e.ref(0),B=e.ref(0),V=e.ref(!1),h=e.ref(!1);let S=[],u=[];const l=()=>{var a;const m=(a=f.value)==null?void 0:a.closest('[aria-modal="true"]');return m?d.value?m.offsetWidth:m.offsetHeight:100};e.watch(()=>[t.size,t.resizable],()=>{h.value=!1,r.value=0,B.value=0,p()});const C=m=>{t.resizable&&(h.value||(r.value=l(),h.value=!0),S=[m.pageX,m.pageY],V.value=!0,y("resize-start",m,r.value),u.push(N.useEventListener(window,"mouseup",p),N.useEventListener(window,"mousemove",c)))},c=m=>{const{pageX:a,pageY:v}=m,x=a-S[0],T=v-S[1];B.value=d.value?x:T,y("resize",m,b.value)},p=m=>{V.value&&(S=[],r.value=b.value,B.value=0,V.value=!1,u.forEach(a=>a==null?void 0:a()),u=[],m&&y("resize-end",m,r.value))},I=N.useEventListener(f,"mousedown",C);return e.onBeforeUnmount(()=>{I(),p()}),{size:e.computed(()=>h.value?`${b.value}px`:s.addUnit(t.size)),isResizing:V,isHorizontal:d}}const Z=["aria-label","aria-labelledby","aria-describedby"],ee=["id","aria-level"],te=["aria-label"],le=["id"];var ne=e.defineComponent({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:Y,emits:_,setup(t,{expose:f,emit:y}){const i=t,k=y,d=e.useSlots();j.useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},e.computed(()=>!!d.title));const g=e.ref(),n=e.ref(),b=e.ref(),r=s.useNamespace("drawer"),{t:B}=W.useLocale(),{afterEnter:V,afterLeave:h,beforeLeave:S,visible:u,rendered:l,titleId:C,bodyId:c,zIndex:p,onModalClick:I,onOpenAutoFocus:m,onCloseAutoFocus:a,onFocusoutPrevented:v,onCloseRequested:x,handleClose:T}=A.useDialog(i,g),{isHorizontal:o,size:E,isResizing:q}=Q(i,b,k),U=e.computed(()=>i.modalPenetrable&&!i.modal);return f({handleClose:T}),(P,L)=>(e.openBlock(),e.createBlock(e.Teleport,{to:t.appendTo,disabled:t.appendTo!=="body"?!1:!t.appendToBody},[e.createVNode(e.Transition,{name:e.unref(r).b("fade"),onAfterEnter:e.unref(V),onAfterLeave:e.unref(h),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:t.modal,"overlay-class":[e.unref(r).is("drawer"),t.modalClass??"",`${e.unref(r).namespace.value}-modal-drawer`,e.unref(r).is("penetrable",U.value)],"z-index":e.unref(p),onClick:e.unref(I)},{default:e.withCtx(()=>[e.createVNode(e.unref(w.focus_trap_default$1),{loop:"",trapped:e.unref(u),"focus-trap-el":g.value,"focus-start-el":n.value,onFocusAfterTrapped:e.unref(m),onFocusAfterReleased:e.unref(a),onFocusoutPrevented:e.unref(v),onReleaseRequested:e.unref(x)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:g,"aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:e.unref(C),"aria-describedby":e.unref(c)},P.$attrs,{class:[e.unref(r).b(),t.direction,e.unref(u)&&"open",e.unref(r).is("dragging",e.unref(q))],style:{[e.unref(o)?"width":"height"]:e.unref(E)},role:"dialog",onClick:L[1]||(L[1]=e.withModifiers(()=>{},["stop"]))}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:n,class:e.normalizeClass(e.unref(r).e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(r).e("header"),t.headerClass])},[P.$slots.title?e.renderSlot(P.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(P.$slots,"header",{key:0,close:e.unref(T),titleId:e.unref(C),titleClass:e.unref(r).e("title")},()=>[e.createElementVNode("span",{id:e.unref(C),role:"heading","aria-level":t.headerAriaLevel,class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(t.title),11,ee)]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(B)("el.drawer.close"),class:e.normalizeClass(e.unref(r).e("close-btn")),type:"button",onClick:L[0]||(L[0]=(...R)=>e.unref(T)&&e.unref(T)(...R))},[e.createVNode(e.unref(z.ElIcon),{class:e.normalizeClass(e.unref(r).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.close_default))]),_:1},8,["class"])],10,te)):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(c),class:e.normalizeClass([e.unref(r).e("body"),t.bodyClass])},[e.renderSlot(P.$slots,"default")],10,le)):e.createCommentVNode("v-if",!0),P.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(r).e("footer"),t.footerClass])},[e.renderSlot(P.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),t.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:b,style:e.normalizeStyle({zIndex:e.unref(p)}),class:e.normalizeClass(e.unref(r).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,Z)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[e.vShow,e.unref(u)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}}),ae=ne;const oe=s.withInstall(ae),re=s.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:G.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:N.iconPropType},activeActionIcon:{type:N.iconPropType},activeIcon:{type:N.iconPropType},inactiveIcon:{type:N.iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:s.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...w.useAriaProps(["ariaLabel"])}),ie={[w.UPDATE_MODEL_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t),[w.CHANGE_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t),[w.INPUT_EVENT]:t=>s.isBoolean(t)||s.isString(t)||s.isNumber(t)},se=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],ce=["aria-hidden"],ue={key:1},de={key:1},me=["aria-hidden"],D="ElSwitch";var ve=e.defineComponent({name:D,__name:"switch",props:re,emits:ie,setup(t,{expose:f,emit:y}){const i=t,k=y,{formItem:d}=N.useFormItem(),g=N.useFormSize(),n=s.useNamespace("switch"),{inputId:b}=N.useFormItemInputId(i,{formItemContext:d}),r=N.useFormDisabled(e.computed(()=>{if(i.loading)return!0})),B=e.ref(i.modelValue!==!1),V=e.shallowRef(),h=e.computed(()=>[n.b(),n.m(g.value),n.is("disabled",r.value),n.is("checked",c.value)]),S=e.computed(()=>[n.e("label"),n.em("label","left"),n.is("active",!c.value)]),u=e.computed(()=>[n.e("label"),n.em("label","right"),n.is("active",c.value)]),l=e.computed(()=>({width:s.addUnit(i.width)}));e.watch(()=>i.modelValue,()=>{B.value=!0});const C=e.computed(()=>B.value?i.modelValue:!1),c=e.computed(()=>C.value===i.activeValue);[i.activeValue,i.inactiveValue].includes(C.value)||(s.debugWarn(D,"model-value must be active-value or inactive-value"),k(w.UPDATE_MODEL_EVENT,i.inactiveValue),k(w.CHANGE_EVENT,i.inactiveValue),k(w.INPUT_EVENT,i.inactiveValue)),e.watch(c,a=>{var v;V.value.checked=a,i.validateEvent&&((v=d==null?void 0:d.validate)==null||v.call(d,"change").catch(s.NOOP))});const p=()=>{const a=c.value?i.inactiveValue:i.activeValue;k(w.UPDATE_MODEL_EVENT,a),k(w.CHANGE_EVENT,a),k(w.INPUT_EVENT,a),e.nextTick(()=>{V.value.checked=c.value})},I=()=>{if(r.value)return;const{beforeChange:a}=i;if(!a){p();return}const v=a();[s.isPromise(v),s.isBoolean(v)].includes(!0)||s.throwError(D,"beforeChange must return type `Promise<boolean>` or `boolean`"),s.isPromise(v)?v.then(x=>{x&&p()}).catch(x=>{s.debugWarn(D,`some error occurred: ${x}`)}):v&&p()},m=()=>{var a,v;(v=(a=V.value)==null?void 0:a.focus)==null||v.call(a)};return e.onMounted(()=>{V.value.checked=c.value}),f({focus:m,checked:c}),(a,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(h.value),onClick:e.withModifiers(I,["prevent"])},[e.createElementVNode("input",{id:e.unref(b),ref_key:"input",ref:V,class:e.normalizeClass(e.unref(n).e("input")),type:"checkbox",role:"switch","aria-checked":c.value,"aria-disabled":e.unref(r),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(r),tabindex:t.tabindex,onChange:p,onKeydown:e.withKeys(I,["enter"])},null,42,se),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText||a.$slots.inactive)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(S.value)},[e.renderSlot(a.$slots,"inactive",{},()=>[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":c.value},e.toDisplayString(t.inactiveText),9,ce)):e.createCommentVNode("v-if",!0)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("core")),style:e.normalizeStyle(l.value)},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).e("inner"))},[c.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n).e("inner-wrapper"))},[e.renderSlot(a.$slots,"active",{},()=>[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(t.activeText),1)):e.createCommentVNode("v-if",!0)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).e("inner-wrapper"))},[e.renderSlot(a.$slots,"inactive",{},()=>[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.inactiveIcon&&t.inactiveText?(e.openBlock(),e.createElementBlock("span",ue,e.toDisplayString(t.inactiveText),1)):e.createCommentVNode("v-if",!0)])],2))],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.loading_default))]),_:1},8,["class"])):c.value?e.renderSlot(a.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):c.value?e.createCommentVNode("v-if",!0):e.renderSlot(a.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.inactiveActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)])],2)],6),!t.inlinePrompt&&(t.activeIcon||t.activeText||a.$slots.active)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(u.value)},[e.renderSlot(a.$slots,"active",{},()=>[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(z.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeIcon)))]),_:1})):e.createCommentVNode("v-if",!0),!t.activeIcon&&t.activeText?(e.openBlock(),e.createElementBlock("span",{key:1,"aria-hidden":!c.value},e.toDisplayString(t.activeText),9,me)):e.createCommentVNode("v-if",!0)])],2)):e.createCommentVNode("v-if",!0)],2))}}),fe=ve;const pe=s.withInstall(fe);const be=[{label:"买卖",value:0},{label:"开平",value:1}],$=()=>({mainIndicator:"MA",sellBuy:1,sellBuyByPrice:1,singelCycle:"6",multiCycleNum:6,multiCycleList:["1","2","3","4","5","6"],pageType:1,enable_tradeLogBrush:!0,enable_showScreenTimeRange:!0,enable_showScreenMaxPrice:!0,enable_dbClickOpenSingel:!0,enable_subChart:!0,enable_sliderChart:!0}),Ve=(t,f)=>{var y;return((y=f.find(i=>i.value===t))==null?void 0:y.label)??"-"};const ye={class:"kline-config element-dark"},ke={class:"setting-item"},ge={class:"setting-item"},Ce={class:"setting-item"},Ee={class:"setting-item"},Ne={class:"setting-item"},Be={class:"mode"},we={class:"cycleName"},he={class:"content"},Se={class:"setting-item"},xe={class:"setting-item"},ze={class:"setting-item"},Ie={class:"setting-item"},Te={class:"setting-item"},Pe={class:"setting-item"},qe={class:"setting-item"},Le={class:"setting-footer"},De={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(t,{expose:f,emit:y}){const{request:i}=e.inject("stConfig"),k=y,d=t,g=e.ref(!1),n=e.reactive({}),b=e.ref([]),r=e.ref([]),B=()=>{Object.assign(n,$())},V=async()=>{const u=JSON.stringify(n);d.origin==="server"?await i.post("/common/qt/updateUserConfig",{appId:1,json:u}):localStorage.setItem("userKlineConfig",u),k("callBack",u),g.value=!1},h=async()=>{if(d.origin==="server"){const{body:u}=await i.post("/common/qt/getUserConfig",{appId:1});Object.assign(n,$(),u?JSON.parse(u):{})}else{const u=localStorage.getItem("userKlineConfig");Object.assign(n,$(),u?JSON.parse(u):{})}},S=async()=>{if(d.origin==="server"){const{body:u}=await i.post("/common/qt/getDict",{dictIds:[1002]});b.value=u[1002].map(l=>({label:l.dictName,value:l.dictCode}))}else b.value=d.cycleOptions};return e.onMounted(()=>{S(),r.value=d.indicatorStore.mainIndicatorList??[]}),e.watch(()=>d.indicatorStore.mainIndicatorList,()=>{r.value=d.indicatorStore.mainIndicatorList??[]}),f({open:async()=>{await h(),g.value=!0},getDefaultUserKlineConfig:$}),(u,l)=>{const C=H.ElDivider,c=O.ElOption,p=O.ElSelect,I=K.ElCheckbox,m=J.ElSegmented,a=pe,v=F.ElScrollbar,x=M.ElButton,T=oe;return e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(T,{modelValue:g.value,"onUpdate:modelValue":l[12]||(l[12]=o=>g.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(v,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(C,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("偏好设置",-1)])]),_:1}),e.createElementVNode("div",ke,[l[14]||(l[14]=e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),e.createVNode(p,{modelValue:n.mainIndicator,"onUpdate:modelValue":l[0]||(l[0]=o=>n.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ge,[l[15]||(l[15]=e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),e.createVNode(p,{modelValue:n.sellBuy,"onUpdate:modelValue":l[1]||(l[1]=o=>n.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(be),(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ce,[l[16]||(l[16]=e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),e.createVNode(I,{modelValue:n.sellBuyByPrice,"onUpdate:modelValue":l[2]||(l[2]=o=>n.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ee,[l[17]||(l[17]=e.createElementVNode("span",{class:"label"},"单周期: ",-1)),e.createVNode(p,{modelValue:n.singelCycle,"onUpdate:modelValue":l[3]||(l[3]=o=>n.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ne,[l[18]||(l[18]=e.createElementVNode("span",{class:"label"},"多周期: ",-1)),e.createVNode(m,{size:"small",modelValue:n.multiCycleNum,"onUpdate:modelValue":l[4]||(l[4]=o=>n.multiCycleNum=o),options:[{label:"二图",value:2},{label:"四图",value:4},{label:"六图",value:6}],style:{height:"26px"}},null,8,["modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(`setting-multi-box grid-${n.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.multiCycleList.slice(0,n.multiCycleNum),(o,E)=>(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(e.unref(Ve)(n.multiCycleList[E],b.value)),1),e.createVNode(p,{modelValue:n.multiCycleList[E],"onUpdate:modelValue":q=>n.multiCycleList[E]=q,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(q,U)=>(e.openBlock(),e.createBlock(c,{key:U,label:q.label,value:q.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",he,e.toDisplayString(E+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Se,[l[19]||(l[19]=e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),e.createVNode(m,{size:"small",modelValue:n.pageType,"onUpdate:modelValue":l[5]||(l[5]=o=>n.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(C,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[...l[20]||(l[20]=[e.createTextVNode("功能配置",-1)])]),_:1}),e.createElementVNode("div",xe,[l[21]||(l[21]=e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),e.createVNode(a,{modelValue:n.enable_tradeLogBrush,"onUpdate:modelValue":l[6]||(l[6]=o=>n.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[l[22]||(l[22]=e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),e.createVNode(a,{modelValue:n.enable_showScreenTimeRange,"onUpdate:modelValue":l[7]||(l[7]=o=>n.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[l[23]||(l[23]=e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),e.createVNode(a,{modelValue:n.enable_showScreenMaxPrice,"onUpdate:modelValue":l[8]||(l[8]=o=>n.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",Te,[l[24]||(l[24]=e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),e.createVNode(a,{modelValue:n.enable_dbClickOpenSingel,"onUpdate:modelValue":l[9]||(l[9]=o=>n.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(C,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[...l[25]||(l[25]=[e.createTextVNode("组件开关",-1)])]),_:1}),e.createElementVNode("div",Pe,[l[26]||(l[26]=e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),e.createVNode(a,{modelValue:n.enable_subChart,"onUpdate:modelValue":l[10]||(l[10]=o=>n.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",qe,[l[27]||(l[27]=e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),e.createVNode(a,{modelValue:n.enable_sliderChart,"onUpdate:modelValue":l[11]||(l[11]=o=>n.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Le,[e.createVNode(x,{onClick:B},{default:e.withCtx(()=>[...l[28]||(l[28]=[e.createTextVNode(" 恢复默认 ",-1)])]),_:1}),e.createVNode(x,{type:"primary",onClick:V},{default:e.withCtx(()=>[...l[29]||(l[29]=[e.createTextVNode(" 保存配置 ",-1)])]),_:1})])]),_:1},8,["modelValue"])])}}},$e=X._export_sfc(De,[["__scopeId","data-v-cbe82a27"]]),Ae={install(t){t.component("st-klineConfig",$e)}};module.exports=Ae;
package/es/KlineConfig.js CHANGED
@@ -1,32 +1,32 @@
1
- import { E as ye } from "./index-a0522466.js";
2
- import { E as ge } from "./el-button-8a9721f8.js";
3
- import { E as we, a as he } from "./el-select-a34348e1.js";
4
- import { E as ke } from "./el-checkbox-c328b097.js";
1
+ import { E as ye } from "./index-d9379af4.js";
2
+ import { E as ge } from "./el-button-ee9fe159.js";
3
+ import { E as we, a as he } from "./el-select-a573c78b.js";
4
+ import { E as ke } from "./el-checkbox-b5ac7f04.js";
5
5
  import { E as Ce } from "./el-divider-c5d72961.js";
6
6
  import { b as re, o as Ve, p as ue, u as de, w as ce, c as Se, q as Q, a as ee, s as te, v as ie, N as Ee, x as oe, t as Ie } from "./base-dd156b8e.js";
7
7
  import { u as ze } from "./index-de9ad85c.js";
8
8
  import { u as Te } from "./index-a181f161.js";
9
- import { E as D, c as Be, l as xe } from "./index-60900c6c.js";
10
- import { f as Ne, u as Pe, U as ae, C as se, I as ne } from "./el-popper-852446fd.js";
11
- import { d as $e, a as Le, u as Ae, E as Oe } from "./el-overlay-36f223e9.js";
12
- import { b as le, c as Ue, i as X, d as Re, e as De, f as Me, g as Fe } from "./use-form-item-187cd7db.js";
9
+ import { E as D, c as Be, l as xe } from "./index-6a52dc7c.js";
10
+ import { f as Ne, u as Pe, U as ae, C as se, I as ne } from "./el-popper-0454c8e8.js";
11
+ import { d as $e, a as Le, u as Ae, E as Oe } from "./el-overlay-cb5c85aa.js";
12
+ import { b as le, c as Ue, i as X, d as Re, e as De, f as Me, g as Fe } from "./use-form-item-784142b4.js";
13
13
  import { computed as E, ref as P, watch as Z, onBeforeUnmount as Ke, defineComponent as ve, useSlots as qe, openBlock as n, createBlock as h, Teleport as je, createVNode as d, Transition as He, unref as l, withCtx as m, withDirectives as Je, createElementVNode as o, mergeProps as We, withModifiers as me, normalizeClass as g, createElementBlock as f, renderSlot as O, toDisplayString as F, createCommentVNode as y, normalizeStyle as fe, vShow as Xe, shallowRef as Ye, onMounted as be, withKeys as Ge, resolveDynamicComponent as q, nextTick as Qe, inject as Ze, reactive as _e, createTextVNode as j, Fragment as H, renderList as J } from "vue";
14
- import { i as et } from "./validator-800ed2ba.js";
15
- import { E as tt } from "./el-segmented-bf08279f.js";
14
+ import { i as et } from "./validator-a66ec4f8.js";
15
+ import { E as tt } from "./el-segmented-64dc7258.js";
16
16
  import "./el-scrollbar-0a42c1d0.js";
17
- import "./el-tag-9bcfae32.js";
17
+ import "./el-tag-2d8a3fe7.js";
18
18
  import { _ as lt } from "./_plugin-vue_export-helper-dad06003.js";
19
- import "./use-global-config-17dafd40.js";
20
- import "./index-47d30a52.js";
19
+ import "./use-global-config-9a4ccf33.js";
20
+ import "./index-9573f74b.js";
21
21
  import "./index-3806160e.js";
22
22
  import "./castArray-18eb6a41.js";
23
23
  import "./vnode-8ee9bf4e.js";
24
- import "./index-86678b72.js";
24
+ import "./index-c09fc6f5.js";
25
25
  import "./scroll-70271cb1.js";
26
- import "./index-7c4d8f5d.js";
26
+ import "./index-dddacf80.js";
27
27
  import "./toNumber-f077c66a.js";
28
28
  import "./clamp-c7512966.js";
29
- import "./_baseClone-98af8b33.js";
29
+ import "./_baseClone-fb6a3947.js";
30
30
  const at = re({
31
31
  ...$e,
32
32
  direction: {
package/es/KlineNew.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),C=require("./index.esm-94a95a2a.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),z=require("./index-94131fd7.cjs"),R=require("./el-select-d2958ae8.cjs");require("./base-d987e5c9.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-popper-f824c63b.cjs");require("./el-tag-527f06f0.cjs");const $=require("echarts");require("./index-d372e68f.cjs");require("./castArray-d9ffe84a.cjs");require("./index-3ed0c678.cjs");require("./use-form-item-0a831287.cjs");require("./index-3e7d5ffb.cjs");require("./vnode-6f7b84f0.cjs");require("./index-3a0a7c36.cjs");require("./index-5e76a22d.cjs");require("./scroll-07bade1e.cjs");require("./index-7711aa69.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");function N(m){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const S in m)if(S!=="default"){const g=Object.getOwnPropertyDescriptor(m,S);Object.defineProperty(A,S,g.get?g:{enumerable:!0,get:()=>m[S]})}}return A.default=m,Object.freeze(A)}const E=N($),M=t.defineComponent({__name:"index",setup(m,{expose:A}){let S=!1,g=!0,v=[];const I=(h,u)=>h.length>u?h.slice(h.length-u):h;return A({initTalib:async()=>{if(!S)S=!0,await C.init("./talib.wasm"),g=!1,v.forEach(h=>{h()});else if(g)return new Promise(h=>{v.push(h)})},handleKeyDown:(h,u)=>{let{startValue:o,endValue:d,maxIndex:f}=u;if(h.code==="ArrowLeft"){if(o===0)return;o=o-1,d=d-1}else if(h.code==="ArrowRight"){if(d===f)return;o=o+1,d=d+1}else if(h.code==="ArrowUp"){if(d-o<5)return;const p=Math.floor((d-o)/2)+1;o=o+p,d-o<5&&(o=d-4)}else if(h.code==="ArrowDown"){const p=Math.min(500,d-o);o=o-p-1}return{startValue:o,endValue:d}},getDataZoomInfoByTime:h=>{const{showStartTime:u,showEndTime:o,xAxisData:d,maxShowDays:f}=h;let p=-1,e=-1,i={};return d.forEach((a,n)=>{const l=a.split(" ")[0];i[l]=i[l]||0,i[l]+=1,new Date(a)>=new Date(u)&&p===-1&&(p=n),new Date(a)<=new Date(o)&&(e=n)}),{startValue:p,endValue:e,maxValueSpan:Math.max(...Object.values(i))*f}},formatDataBySlide:h=>{const{originDrawData:u,addData:o,startTime:d,endTime:f}=h,{mainIndicator:p,mainIndicatorList:e,subIndicator:i,subIndicatorList:a,config:n,timeRange:l}=h,{loadAddCount:D,preLoadCount:q}=n;let _=[],b=[],F=[],w=[];d&&f?(_=o.filter(s=>new Date(s[0])>=new Date(d)&&new Date(s[0])<=new Date(f)),w=[...o]):f?(_=[...o.filter((s,r)=>r>=o.length-D&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1])),...u.originData],w=[...o,...u.originData]):d&&(_=[...u.originData,...o.filter((s,r)=>r>=q&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1]))],w=_),_.forEach((s,r)=>{b.push([s[1],s[4],s[3],s[2],r===0?0:_[r-1][4],s[6]]),F.push(s[0])});let c=[],x=[];const y={time:[],open:[],close:[],high:[],low:[],originData:w};let B=null,T=null;return w.forEach((s,r)=>{y.time.push(s[0]),y.open.push(s[1]),y.close.push(s[4]),y.high.push(s[2]),y.low.push(s[3]),s[0]===_[0][0]&&(B=r),s[0]===_[_.length-1][0]&&(T=r+1)}),c=e.find(({value:s})=>s===p).config.map(s=>{const{calculationFn:r}=s,k={time:[],open:[],close:[],high:[],low:[],originData:[]};return{...s,data:r?r(C.talib,y,k).slice(B,T):[]}}),x=a.find(({value:s})=>s===i).config.reduce((s,r)=>{const{source:k,calculationFn:V}=r;return k==="calculation"?[...s,{...r,data:V?V(C.talib,y).slice(B,T):[]}]:s},[]),{originData:_,candlestickData:b,mainIndicatorData:c,subIndicatorData:x,xAxisData:F,startTime:_[0][0],endTime:_[_.length-1][0],length:_.length}},formatDataByCount:h=>{const{originDrawData:u,addData:o,mainIndicator:d,mainIndicatorList:f,subIndicator:p,subIndicatorList:e,config:i}=h;let a={};const{addCount:n,preLoadCount:l}=i,D=[],q=[],_=[],b=[],F=[];let w=[],c=[];const x=o.filter((r,k)=>(D.push(r[0]),q.push(r[1]),_.push(r[4]),b.push(r[2]),F.push(r[3]),w.push(r[0]),c.push([r[1],r[4],r[3],r[2],k===0?0:o[k-1][4],r[6]]),o.length>=n+l-1?k>=l:!0));w=I(w,x.length),c=I(c,x.length);const y={time:D,open:q,close:_,high:b,low:F,originData:o},T=f.find(r=>r.value===d).config.map(r=>({...r,data:I(r.calculationFn?r.calculationFn(C.talib,y,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],w.length)}));let s=[];return p&&e&&(s=e.find(k=>k.value===p).config.reduce((k,V)=>V.source==="calculation"?[...k,{...V,data:I(V.calculationFn?V.calculationFn(C.talib,y):[],w.length)}]:k,[])),u.length?a={originData:[...x,...u.originData],xAxisData:[...w,...u.xAxisData],candlestickData:[...c,...u.candlestickData],mainIndicatorData:u.mainIndicatorData.map((r,k)=>({...r,data:[...T[k].data,...r.data]})),subIndicatorData:u.subIndicatorData.map((r,k)=>({...r,data:[...s[k].data,...r.data]}))}:a={originData:x,xAxisData:w,candlestickData:c,mainIndicatorData:T,subIndicatorData:s},a.length=a.xAxisData.length,a.startTime=a.xAxisData[0],a.endTime=a.xAxisData[a.length-1],a},fn:()=>{}}),(h,u)=>null}}),j={class:"kline-tips"},P=t.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(m){return(A,S)=>(t.openBlock(),t.createElementBlock("div",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.data,(g,v)=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"kline-tips-item",style:t.normalizeStyle({color:g.color})},t.toDisplayString(g.label)+" "+t.toDisplayString(g.value),5))),128))]))}});const O=L._export_sfc(P,[["__scopeId","data-v-3856aa74"]]),K={class:"kline-tips"},U=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},candlestickData:{type:Array,default:()=>null},mainIndicatorData:{type:Array,default:()=>null},activeIndex:{type:Number,require:!0}},setup(m){const{round:A,multiply:S,divide:g,subtract:v,formatValue:I}=z.x,h=m,u=t.computed(()=>{const{drawData:d,activeIndex:f,candlestickData:p}=h;if(p!=null&&p.length&&p[f]){let e;return p[f][6]>0?e="red":p[f][6]<0&&(e="green"),[{label:"开",value:p[f][0]},{label:"高",value:p[f][3]},{label:"低",value:p[f][2]},{label:"收",value:p[f][1]},{label:"额",value:I(p[f][4])},{label:"涨跌",value:`${A(p[f][6])}%`,color:e}]}else if(d.candlestickData&&d.candlestickData[f]){const e=d.candlestickData[f],i=[{label:"开",value:e[0]},{label:"高",value:e[3]},{label:"低",value:e[2]},{label:"收",value:e[1]}];e[5]!==void 0&&i.push({label:"额",value:I(e[5])});const a=A(S(g(v(e[1],e[4]),Math.abs(e[4])),100));let n;return a>0?n="red":a<0&&(n="green"),i.push({label:"涨跌",value:`${a}%`,color:n}),i}return[]}),o=t.computed(()=>{var p;const{drawData:d,activeIndex:f}=h;return((p=d==null?void 0:d.mainIndicatorData)==null?void 0:p.map(e=>({label:e.key,value:A(e.data[f]),color:e.color})))||[]});return(d,f)=>(t.openBlock(),t.createElementBlock("div",K,[t.createVNode(O,{data:u.value},null,8,["data"]),t.createVNode(O,{data:o.value},null,8,["data"])]))}});const Z=L._export_sfc(U,[["__scopeId","data-v-c87d5c87"]]),Y={class:"klineSub"},H={class:"klineSub-tips"},G={key:0,class:"klineSub-tips-select"},J=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(m,{expose:A,emit:S}){const{round:g}=z.x;let v,I;const h=S,u=m,o=t.ref(),d=t.computed({get(){return u.modelValue},set(e){h("update:modelValue",e)}}),f=t.computed(()=>{const{drawData:e,activeIndex:i}=u,a=u.subIndicatorList.find(n=>n.value===d.value);return e.originData&&e.originData[i]?a.config.map(n=>{var D,q;let l="-";return n.source==="origin"?l=e.originData[i][n.dataIndex]||"-":n.source==="calculation"&&(l=(((q=(D=e.subIndicatorData)==null?void 0:D.find(b=>b.key===n.key))==null?void 0:q.data)||[])[i]),{label:n.key,color:n.color,value:l==="-"?l:g(l)}}):[]});t.onMounted(()=>{v=E.init(o.value);let e=!0;I=new ResizeObserver(()=>{if(e){e=null;return}v.resize()}),I.observe(o.value)}),t.onUnmounted(()=>{v.dispose(),I.disconnect(),I=null});const p=(e,i)=>{const a=e[i],n=i===0?e[i]:e[i-1];return a[0]===a[1]?a[0]>=n[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:a[1]>a[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return A({connect:e=>{E.connect([e,v])},draw:e=>{t.nextTick(()=>{var w;const{startValue:i,endValue:a,maxValueSpan:n}=e,{xAxisData:l,subIndicatorData:D,candlestickData:q,originData:_}=u.drawData,b=u.subIndicatorList.find(c=>c.value===d.value),F=[];if(b.series==="bar"){let c=[];b.source==="origin"?c=_.map(x=>x[b.dataIndex]):c=((w=D==null?void 0:D.find(x=>x.key===b.dataIndex))==null?void 0:w.data)||[],F.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:c.map((x,y)=>b.color==="kline"?{value:x,itemStyle:p(q,y)}:b.color==="value"?{value:x,itemStyle:{color:x>=0?"#FF0000":"#00FFFF"}}:{value:x,itemStyle:{color:b.color}})})}D.forEach(c=>{if(c.series==="line"){let x=[];c.source==="origin"?x=_.map(y=>y[c.dataIndex]):c.source==="calculation"&&(x=c.data),F.push({xAxisIndex:0,yAxisIndex:c.yAxis==="right"?2:1,name:c.key,type:"line",silent:!0,symbol:"none",data:x,lineStyle:{width:1},itemStyle:{color:c.color}})}}),v.setOption({animation:!1,grid:{left:`${u.config.gridLeft}px`,top:"10px",right:`${u.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:i,endValue:a,maxValueSpan:n}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:c=>{const{axisDimension:x,value:y}=c;if(x==="x")return y;if(c.axisIndex===1)return String(g(y))}}},formatter:()=>""},xAxis:{type:"category",data:l,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:c=>c}},yAxis:[{position:"right"},{position:"left",min:b.leftYAxisRange==="cover"?c=>c.min:null,max:b.leftYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:b.rightYAxisRange==="cover"?c=>c.min:null,max:b.rightYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:F},!0)})}}),(e,i)=>{const a=R.ElOption,n=R.ElSelect;return t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",H,[f.value.length?(t.openBlock(),t.createElementBlock("div",G,[t.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=l=>d.value=l),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subIndicatorList,l=>(t.openBlock(),t.createBlock(a,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(O,{data:f.value},null,8,["data"])]),t.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:o},null,512)])}}});const Q=L._export_sfc(J,[["__scopeId","data-v-03eea29e"]]),W=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(m,{expose:A,emit:S}){let g,v,I=null;const h=S,u=m,o=t.ref();t.watch(()=>u.data,()=>{p()},{deep:!0}),t.onMounted(()=>{g=E.init(o.value),d(),p();let e=!0;v=new ResizeObserver(()=>{if(e){e=null;return}g.resize()}),v.observe(o.value)}),t.onUnmounted(()=>{g.off("datazoom"),g.dispose(),v.disconnect(),v=null});const d=()=>{g.on("datazoom",e=>{e.dataZoomId&&(clearTimeout(I),I=setTimeout(()=>{const{data:i}=u,{start:a,end:n}=e,l=Math.floor(a*i.length/100),D=n===100?i.length-1:Math.floor(n*i.length/100);f(l,D),clearTimeout(I)},100))})},f=(e,i)=>{const a=u.data;if(a.length===0)return;const n=a[e][0].split(" ")[0],l=a[i][0].split(" ")[0];h("change",{startTime:`${n} 00:00:00`,endTime:`${l} 24:00:00`})},p=()=>{const{data:e}=u;if(e.length===0)return;const i=e.map(n=>n[0].split(" ")[0]),a=e.map(n=>n[1]);g.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:i,show:!1},yAxis:{type:"value"},series:[{data:a,type:"line"}]},!0)};return A({resetSlide:(e,i,a)=>{let n=-1,l=-1;u.data.forEach((D,q)=>{n===-1&&D[0]===e?n=q:n===-1&&new Date(D[0])>new Date(e)&&(n=q-1),(l===-1&&D[0]===i||l===-1&&new Date(D[0])>new Date(i))&&(l=q)}),l=l===-1?u.data.length-1:l,g.setOption({dataZoom:[{show:!0,startValue:n,endValue:l,maxValueSpan:a,textStyle:{color:"#ccc"}},{type:"inside",startValue:n,endValue:l,maxValueSpan:a}]})},resize:()=>{g==null||g.resize()}}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:o},null,512))}});const X=L._export_sfc(W,[["__scopeId","data-v-0d08cda9"]]),ee={install(m){m.component("st-klineUtils",M),m.component("st-klineSub",Q),m.component("st-klineTips",Z),m.component("st-klineSlide",X)}};module.exports=ee;
1
+ "use strict";const t=require("vue"),C=require("./index.esm-94a95a2a.cjs"),L=require("./_plugin-vue_export-helper-f246444f.cjs"),z=require("./index-94131fd7.cjs"),R=require("./el-select-c317294a.cjs");require("./base-d987e5c9.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-popper-acd0ff35.cjs");require("./el-tag-dca1292c.cjs");const $=require("echarts");require("./index-d372e68f.cjs");require("./castArray-d9ffe84a.cjs");require("./index-6a36e1fc.cjs");require("./use-form-item-76516e50.cjs");require("./index-5cada1ed.cjs");require("./vnode-6f7b84f0.cjs");require("./index-beb5cb7d.cjs");require("./index-21a3dc89.cjs");require("./scroll-07bade1e.cjs");require("./index-11181b5f.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");function N(m){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const S in m)if(S!=="default"){const g=Object.getOwnPropertyDescriptor(m,S);Object.defineProperty(A,S,g.get?g:{enumerable:!0,get:()=>m[S]})}}return A.default=m,Object.freeze(A)}const E=N($),M=t.defineComponent({__name:"index",setup(m,{expose:A}){let S=!1,g=!0,v=[];const I=(h,u)=>h.length>u?h.slice(h.length-u):h;return A({initTalib:async()=>{if(!S)S=!0,await C.init("./talib.wasm"),g=!1,v.forEach(h=>{h()});else if(g)return new Promise(h=>{v.push(h)})},handleKeyDown:(h,u)=>{let{startValue:o,endValue:d,maxIndex:f}=u;if(h.code==="ArrowLeft"){if(o===0)return;o=o-1,d=d-1}else if(h.code==="ArrowRight"){if(d===f)return;o=o+1,d=d+1}else if(h.code==="ArrowUp"){if(d-o<5)return;const p=Math.floor((d-o)/2)+1;o=o+p,d-o<5&&(o=d-4)}else if(h.code==="ArrowDown"){const p=Math.min(500,d-o);o=o-p-1}return{startValue:o,endValue:d}},getDataZoomInfoByTime:h=>{const{showStartTime:u,showEndTime:o,xAxisData:d,maxShowDays:f}=h;let p=-1,e=-1,i={};return d.forEach((a,n)=>{const l=a.split(" ")[0];i[l]=i[l]||0,i[l]+=1,new Date(a)>=new Date(u)&&p===-1&&(p=n),new Date(a)<=new Date(o)&&(e=n)}),{startValue:p,endValue:e,maxValueSpan:Math.max(...Object.values(i))*f}},formatDataBySlide:h=>{const{originDrawData:u,addData:o,startTime:d,endTime:f}=h,{mainIndicator:p,mainIndicatorList:e,subIndicator:i,subIndicatorList:a,config:n,timeRange:l}=h,{loadAddCount:D,preLoadCount:q}=n;let _=[],b=[],F=[],w=[];d&&f?(_=o.filter(s=>new Date(s[0])>=new Date(d)&&new Date(s[0])<=new Date(f)),w=[...o]):f?(_=[...o.filter((s,r)=>r>=o.length-D&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1])),...u.originData],w=[...o,...u.originData]):d&&(_=[...u.originData,...o.filter((s,r)=>r>=q&&new Date(l[0])<=new Date(s[0])&&new Date(s[0])<=new Date(l[1]))],w=_),_.forEach((s,r)=>{b.push([s[1],s[4],s[3],s[2],r===0?0:_[r-1][4],s[6]]),F.push(s[0])});let c=[],x=[];const y={time:[],open:[],close:[],high:[],low:[],originData:w};let B=null,T=null;return w.forEach((s,r)=>{y.time.push(s[0]),y.open.push(s[1]),y.close.push(s[4]),y.high.push(s[2]),y.low.push(s[3]),s[0]===_[0][0]&&(B=r),s[0]===_[_.length-1][0]&&(T=r+1)}),c=e.find(({value:s})=>s===p).config.map(s=>{const{calculationFn:r}=s,k={time:[],open:[],close:[],high:[],low:[],originData:[]};return{...s,data:r?r(C.talib,y,k).slice(B,T):[]}}),x=a.find(({value:s})=>s===i).config.reduce((s,r)=>{const{source:k,calculationFn:V}=r;return k==="calculation"?[...s,{...r,data:V?V(C.talib,y).slice(B,T):[]}]:s},[]),{originData:_,candlestickData:b,mainIndicatorData:c,subIndicatorData:x,xAxisData:F,startTime:_[0][0],endTime:_[_.length-1][0],length:_.length}},formatDataByCount:h=>{const{originDrawData:u,addData:o,mainIndicator:d,mainIndicatorList:f,subIndicator:p,subIndicatorList:e,config:i}=h;let a={};const{addCount:n,preLoadCount:l}=i,D=[],q=[],_=[],b=[],F=[];let w=[],c=[];const x=o.filter((r,k)=>(D.push(r[0]),q.push(r[1]),_.push(r[4]),b.push(r[2]),F.push(r[3]),w.push(r[0]),c.push([r[1],r[4],r[3],r[2],k===0?0:o[k-1][4],r[6]]),o.length>=n+l-1?k>=l:!0));w=I(w,x.length),c=I(c,x.length);const y={time:D,open:q,close:_,high:b,low:F,originData:o},T=f.find(r=>r.value===d).config.map(r=>({...r,data:I(r.calculationFn?r.calculationFn(C.talib,y,{time:[],open:[],close:[],high:[],low:[],originData:[]}):[],w.length)}));let s=[];return p&&e&&(s=e.find(k=>k.value===p).config.reduce((k,V)=>V.source==="calculation"?[...k,{...V,data:I(V.calculationFn?V.calculationFn(C.talib,y):[],w.length)}]:k,[])),u.length?a={originData:[...x,...u.originData],xAxisData:[...w,...u.xAxisData],candlestickData:[...c,...u.candlestickData],mainIndicatorData:u.mainIndicatorData.map((r,k)=>({...r,data:[...T[k].data,...r.data]})),subIndicatorData:u.subIndicatorData.map((r,k)=>({...r,data:[...s[k].data,...r.data]}))}:a={originData:x,xAxisData:w,candlestickData:c,mainIndicatorData:T,subIndicatorData:s},a.length=a.xAxisData.length,a.startTime=a.xAxisData[0],a.endTime=a.xAxisData[a.length-1],a},fn:()=>{}}),(h,u)=>null}}),j={class:"kline-tips"},P=t.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(m){return(A,S)=>(t.openBlock(),t.createElementBlock("div",j,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.data,(g,v)=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"kline-tips-item",style:t.normalizeStyle({color:g.color})},t.toDisplayString(g.label)+" "+t.toDisplayString(g.value),5))),128))]))}});const O=L._export_sfc(P,[["__scopeId","data-v-3856aa74"]]),K={class:"kline-tips"},U=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},candlestickData:{type:Array,default:()=>null},mainIndicatorData:{type:Array,default:()=>null},activeIndex:{type:Number,require:!0}},setup(m){const{round:A,multiply:S,divide:g,subtract:v,formatValue:I}=z.x,h=m,u=t.computed(()=>{const{drawData:d,activeIndex:f,candlestickData:p}=h;if(p!=null&&p.length&&p[f]){let e;return p[f][6]>0?e="red":p[f][6]<0&&(e="green"),[{label:"开",value:p[f][0]},{label:"高",value:p[f][3]},{label:"低",value:p[f][2]},{label:"收",value:p[f][1]},{label:"额",value:I(p[f][4])},{label:"涨跌",value:`${A(p[f][6])}%`,color:e}]}else if(d.candlestickData&&d.candlestickData[f]){const e=d.candlestickData[f],i=[{label:"开",value:e[0]},{label:"高",value:e[3]},{label:"低",value:e[2]},{label:"收",value:e[1]}];e[5]!==void 0&&i.push({label:"额",value:I(e[5])});const a=A(S(g(v(e[1],e[4]),Math.abs(e[4])),100));let n;return a>0?n="red":a<0&&(n="green"),i.push({label:"涨跌",value:`${a}%`,color:n}),i}return[]}),o=t.computed(()=>{var p;const{drawData:d,activeIndex:f}=h;return((p=d==null?void 0:d.mainIndicatorData)==null?void 0:p.map(e=>({label:e.key,value:A(e.data[f]),color:e.color})))||[]});return(d,f)=>(t.openBlock(),t.createElementBlock("div",K,[t.createVNode(O,{data:u.value},null,8,["data"]),t.createVNode(O,{data:o.value},null,8,["data"])]))}});const Z=L._export_sfc(U,[["__scopeId","data-v-c87d5c87"]]),Y={class:"klineSub"},H={class:"klineSub-tips"},G={key:0,class:"klineSub-tips-select"},J=t.defineComponent({__name:"index",props:{drawData:{type:Object,require:!0},activeIndex:{type:Number,require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0},config:{type:Object,require:!0}},emits:["update:modelValue"],setup(m,{expose:A,emit:S}){const{round:g}=z.x;let v,I;const h=S,u=m,o=t.ref(),d=t.computed({get(){return u.modelValue},set(e){h("update:modelValue",e)}}),f=t.computed(()=>{const{drawData:e,activeIndex:i}=u,a=u.subIndicatorList.find(n=>n.value===d.value);return e.originData&&e.originData[i]?a.config.map(n=>{var D,q;let l="-";return n.source==="origin"?l=e.originData[i][n.dataIndex]||"-":n.source==="calculation"&&(l=(((q=(D=e.subIndicatorData)==null?void 0:D.find(b=>b.key===n.key))==null?void 0:q.data)||[])[i]),{label:n.key,color:n.color,value:l==="-"?l:g(l)}}):[]});t.onMounted(()=>{v=E.init(o.value);let e=!0;I=new ResizeObserver(()=>{if(e){e=null;return}v.resize()}),I.observe(o.value)}),t.onUnmounted(()=>{v.dispose(),I.disconnect(),I=null});const p=(e,i)=>{const a=e[i],n=i===0?e[i]:e[i-1];return a[0]===a[1]?a[0]>=n[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:a[1]>a[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return A({connect:e=>{E.connect([e,v])},draw:e=>{t.nextTick(()=>{var w;const{startValue:i,endValue:a,maxValueSpan:n}=e,{xAxisData:l,subIndicatorData:D,candlestickData:q,originData:_}=u.drawData,b=u.subIndicatorList.find(c=>c.value===d.value),F=[];if(b.series==="bar"){let c=[];b.source==="origin"?c=_.map(x=>x[b.dataIndex]):c=((w=D==null?void 0:D.find(x=>x.key===b.dataIndex))==null?void 0:w.data)||[],F.push({name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:c.map((x,y)=>b.color==="kline"?{value:x,itemStyle:p(q,y)}:b.color==="value"?{value:x,itemStyle:{color:x>=0?"#FF0000":"#00FFFF"}}:{value:x,itemStyle:{color:b.color}})})}D.forEach(c=>{if(c.series==="line"){let x=[];c.source==="origin"?x=_.map(y=>y[c.dataIndex]):c.source==="calculation"&&(x=c.data),F.push({xAxisIndex:0,yAxisIndex:c.yAxis==="right"?2:1,name:c.key,type:"line",silent:!0,symbol:"none",data:x,lineStyle:{width:1},itemStyle:{color:c.color}})}}),v.setOption({animation:!1,grid:{left:`${u.config.gridLeft}px`,top:"10px",right:`${u.config.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:i,endValue:a,maxValueSpan:n}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:c=>{const{axisDimension:x,value:y}=c;if(x==="x")return y;if(c.axisIndex===1)return String(g(y))}}},formatter:()=>""},xAxis:{type:"category",data:l,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!0,formatter:c=>c}},yAxis:[{position:"right"},{position:"left",min:b.leftYAxisRange==="cover"?c=>c.min:null,max:b.leftYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:b.rightYAxisRange==="cover"?c=>c.min:null,max:b.rightYAxisRange==="cover"?c=>c.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:F},!0)})}}),(e,i)=>{const a=R.ElOption,n=R.ElSelect;return t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",H,[f.value.length?(t.openBlock(),t.createElementBlock("div",G,[t.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=l=>d.value=l),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.subIndicatorList,l=>(t.openBlock(),t.createBlock(a,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.createVNode(O,{data:f.value},null,8,["data"])]),t.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:o},null,512)])}}});const Q=L._export_sfc(J,[["__scopeId","data-v-03eea29e"]]),W=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]}},emits:["change"],setup(m,{expose:A,emit:S}){let g,v,I=null;const h=S,u=m,o=t.ref();t.watch(()=>u.data,()=>{p()},{deep:!0}),t.onMounted(()=>{g=E.init(o.value),d(),p();let e=!0;v=new ResizeObserver(()=>{if(e){e=null;return}g.resize()}),v.observe(o.value)}),t.onUnmounted(()=>{g.off("datazoom"),g.dispose(),v.disconnect(),v=null});const d=()=>{g.on("datazoom",e=>{e.dataZoomId&&(clearTimeout(I),I=setTimeout(()=>{const{data:i}=u,{start:a,end:n}=e,l=Math.floor(a*i.length/100),D=n===100?i.length-1:Math.floor(n*i.length/100);f(l,D),clearTimeout(I)},100))})},f=(e,i)=>{const a=u.data;if(a.length===0)return;const n=a[e][0].split(" ")[0],l=a[i][0].split(" ")[0];h("change",{startTime:`${n} 00:00:00`,endTime:`${l} 24:00:00`})},p=()=>{const{data:e}=u;if(e.length===0)return;const i=e.map(n=>n[0].split(" ")[0]),a=e.map(n=>n[1]);g.setOption({grid:{height:0,left:"80px",right:"80px"},xAxis:{type:"category",data:i,show:!1},yAxis:{type:"value"},series:[{data:a,type:"line"}]},!0)};return A({resetSlide:(e,i,a)=>{let n=-1,l=-1;u.data.forEach((D,q)=>{n===-1&&D[0]===e?n=q:n===-1&&new Date(D[0])>new Date(e)&&(n=q-1),(l===-1&&D[0]===i||l===-1&&new Date(D[0])>new Date(i))&&(l=q)}),l=l===-1?u.data.length-1:l,g.setOption({dataZoom:[{show:!0,startValue:n,endValue:l,maxValueSpan:a,textStyle:{color:"#ccc"}},{type:"inside",startValue:n,endValue:l,maxValueSpan:a}]})},resize:()=>{g==null||g.resize()}}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"klineSlide",ref_key:"slideChartRef",ref:o},null,512))}});const X=L._export_sfc(W,[["__scopeId","data-v-0d08cda9"]]),ee={install(m){m.component("st-klineUtils",M),m.component("st-klineSub",Q),m.component("st-klineTips",Z),m.component("st-klineSlide",X)}};module.exports=ee;
package/es/KlineNew.js CHANGED
@@ -2,22 +2,22 @@ import { defineComponent as R, openBlock as T, createElementBlock as L, Fragment
2
2
  import { i as te, t as z } from "./index.esm-8d9a2abe.js";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-dad06003.js";
4
4
  import { x as G } from "./index-53cc4e43.js";
5
- import { E as ae, a as ne } from "./el-select-a34348e1.js";
5
+ import { E as ae, a as ne } from "./el-select-a573c78b.js";
6
6
  import "./base-dd156b8e.js";
7
7
  import "./el-scrollbar-0a42c1d0.js";
8
- import "./el-popper-852446fd.js";
9
- import "./el-tag-9bcfae32.js";
8
+ import "./el-popper-0454c8e8.js";
9
+ import "./el-tag-2d8a3fe7.js";
10
10
  import * as B from "echarts";
11
11
  import "./index-a181f161.js";
12
12
  import "./castArray-18eb6a41.js";
13
- import "./index-47d30a52.js";
14
- import "./use-form-item-187cd7db.js";
15
- import "./index-60900c6c.js";
13
+ import "./index-9573f74b.js";
14
+ import "./use-form-item-784142b4.js";
15
+ import "./index-6a52dc7c.js";
16
16
  import "./vnode-8ee9bf4e.js";
17
- import "./index-a0522466.js";
18
- import "./index-86678b72.js";
17
+ import "./index-d9379af4.js";
18
+ import "./index-c09fc6f5.js";
19
19
  import "./scroll-70271cb1.js";
20
- import "./index-7c4d8f5d.js";
20
+ import "./index-dddacf80.js";
21
21
  import "./toNumber-f077c66a.js";
22
22
  import "./clamp-c7512966.js";
23
23
  const oe = /* @__PURE__ */ R({
package/es/KlinePlus.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";const De=require("./el-select-d2958ae8.cjs"),xe=require("./el-empty-58bc2a10.cjs"),Oe=require("./el-loading-62132db2.cjs"),p=require("./base-d987e5c9.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-popper-f824c63b.cjs");require("./el-tag-527f06f0.cjs");const r=require("vue"),he=require("echarts"),W=require("./index-94131fd7.cjs"),Ne=require("./_plugin-vue_export-helper-f246444f.cjs");require("./index-d372e68f.cjs");require("./castArray-d9ffe84a.cjs");require("./index-3ed0c678.cjs");require("./use-form-item-0a831287.cjs");require("./index-3e7d5ffb.cjs");require("./vnode-6f7b84f0.cjs");require("./index-3a0a7c36.cjs");require("./index-5e76a22d.cjs");require("./scroll-07bade1e.cjs");require("./index-7711aa69.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./use-global-config-c90c91f7.cjs");function be(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,c.get?c:{enumerable:!0,get:()=>t[i]})}}return n.default=t,Object.freeze(n)}const ie=be(he),Ce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4w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NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",{round:Se}=W.x,U={minValueSpan:5,maxValueSpan:2e3,loadCheckCount:500,loadAddCount:2e3},pe={1:240,2:48,3:16,4:8,5:4,6:1,7:.2,8:.033},ve=(t,n=0)=>{const i=pe[t];if(!i)throw new Error(`[K线] 不支持的周期:${String(t)}`);if(!Number.isInteger(n)||n<0||n>U.maxValueSpan)throw new RangeError(`[K线] initialVisibleBars 必须是 0-${U.maxValueSpan} 的整数`);if(t==="8"){const y=n?Math.ceil(n/i/30):0;return{amount:Math.max(10,y),unit:"month"}}const c=["6","7"].includes(t)?50:1,M=n?Math.ceil(n/i):0;return{amount:Math.max(c,M),unit:"day"}},Ie=(t,n)=>{let i=0,c=t.length;for(;i<c;){const M=Math.floor((i+c)/2);t[M]<n?i=M+1:c=M}return i},Qe=(t,n)=>{let i=0,c=t.length;for(;i<c;){const M=Math.floor((i+c)/2);t[M]<=n?i=M+1:c=M}return i},Pe=({time:t,startTime:n,endTime:i,initialVisibleBars:c=0})=>{if(!Array.isArray(t)||t.length===0)throw new TypeError("[K线] 无法定位首屏:行情时间序列为空");if(!Number.isInteger(c)||c<0||c>U.maxValueSpan)throw new RangeError(`[K线] initialVisibleBars 必须是 0-${U.maxValueSpan} 的整数`);const M=p.dayjs(n).valueOf(),y=p.dayjs(i).valueOf();if(!Number.isFinite(M)||!Number.isFinite(y)||y<M)throw new RangeError("[K线] 无法定位首屏:开始或结束时间无效");const N=t.map((D,L)=>{const d=p.dayjs(D).valueOf();if(!Number.isFinite(d))throw new RangeError(`[K线] 行情时间[${L}]无效`);if(L>0&&d<p.dayjs(t[L-1]).valueOf())throw new Error(`[K线] 行情时间序列未按升序排列,位置 ${L}`);return d});let e=Math.min(Ie(N,M),N.length-1),u=Math.max(Qe(N,y)-1,0);if(e>u){const D=Math.min(Ie(N,M),N.length-1);e=D,u=D}let O=Math.min(c||u-e+1,N.length,U.maxValueSpan)-(u-e+1);if(O>0){const D=Math.min(e,Math.ceil(O/2));e-=D,O-=D;const L=Math.min(N.length-1-u,O);u+=L,O-=L,O>0&&(e-=Math.min(e,O))}return{startValue:e,endValue:u}},Ye=({startTime:t,endTime:n,cycle:i,type:c="end"})=>{const{maxValueSpan:M}=U,y=Math.ceil((M+1e3)/pe[i]),N=p.dayjs(t);if(p.dayjs(n).diff(N,"day")<=y)return[t,n];if(c==="end")return[p.dayjs(n).subtract(y,"day").format("YYYY-MM-DD HH:mm:ss"),n];if(c==="middle"){const f=p.dayjs((p.dayjs(t).valueOf()+p.dayjs(n).valueOf())/2).format("YYYY-MM-DD HH:mm:ss");return console.log("超过一屏数量上限, 进行中间时间计算",f,y/2),[p.dayjs(f).subtract(y/2,"day").format("YYYY-MM-DD HH:mm:ss"),p.dayjs(f).add(y/2,"day").format("YYYY-MM-DD HH:mm:ss")]}},Re=(t,n)=>{const i=t[n],c=n===0?t[n]:t[n-1];return i[0]===i[1]?i[0]>=c[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:i[1]>i[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}},Fe=(t,n,i)=>{var M,y,N,e;const c=t.subIndicator.map(u=>{if(u.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:u.data.map((f,O)=>u.seriesColor==="kline"?{value:f,itemStyle:Re(t.data,O)}:u.seriesColor==="value"?{value:f,itemStyle:{color:f>=0?"#FF0000":"#00FFFF"}}:{value:f,itemStyle:{color:u.seriesColor}})};if(u.series==="line")return{xAxisIndex:0,yAxisIndex:u.yAxis==="right"?2:1,name:u.key,type:"line",silent:!0,symbol:"none",data:u.data,lineStyle:{width:1},itemStyle:{color:u.color}}});return{animation:!1,grid:{top:"10px",left:"60px",right:"20px",bottom:"10px"},dataZoom:[{type:"inside",startValue:n,endValue:i,maxValueSpan:U.maxValueSpan}],tooltip:{show:!1},axisPointer:{show:!0,triggerTooltip:!1,label:{rich:{},formatter:u=>{const{axisDimension:f,value:O}=u;if(f==="x")return null;if(u.axisIndex===1)return String(Se(O))}}},xAxis:{type:"category",data:t.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{position:"right"},{position:"left",min:((M=t.subIndicator[0])==null?void 0:M.leftYAxisRange)==="cover"?u=>u.min:null,max:((y=t.subIndicator[0])==null?void 0:y.leftYAxisRange)==="cover"?u=>u.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:((N=t.subIndicator[0])==null?void 0:N.rightYAxisRange)==="cover"?u=>u.min:null,max:((e=t.subIndicator[0])==null?void 0:e.rightYAxisRange)==="cover"?u=>u.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:c}},ce=(t,n,i="strict")=>{let c=0,M=t.length-1,y=-1;for(;c<=M;){let N=Math.floor((c+M)/2);if(i==="strict"){if(t[N]===n)return N;t[N]<n?c=N+1:M=N-1}else i==="gte"&&(t[N]>=n?(y=N,M=N-1):c=N+1)}return i==="strict"?-1:y},Ve=t=>{const n=[];return t.reduce((i,c)=>{const M=`${c.coord[0]}+${c.label.position}`,y=c.label.position==="top"?-16:16,N=i.get(M);return N?(i.set(M,N+1),c.symbolOffset[1]=y*(N+1)):(i.set(M,1),c.symbolOffset[1]=c.label.position==="top"?-7:7),n.push(c),i},new Map),n},Le=(t,n)=>({data:[...t.data,...n.data.slice(1)],mainIndicator:t.mainIndicator.map((i,c)=>({...i,data:[...i.data,...n.mainIndicator[c].data.slice(1)]})),subIndicator:t.subIndicator.map((i,c)=>({...i,data:[...i.data,...n.subIndicator[c].data.slice(1)]})),time:[...t.time,...n.time.slice(1)]}),le=(t,n,i)=>{switch(i){case"5":{let D=[...new Set(t.slice(-20).map(x=>{const a=new Date(x),j=String(a.getHours()).padStart(2,"0"),l=String(a.getMinutes()).padStart(2,"0"),m=String(a.getSeconds()).padStart(2,"0");return`${j}:${l}:${m}`}))];D.includes("00:00:00")&&(D.splice(D.indexOf("00:00:00"),1),D.push("24:00:00")),D=D.sort((x,a)=>new Date(`2000-01-30 ${x}`).getTime()-new Date(`2000-01-30 ${a}`).getTime());const L=new Date(n),d=L.getFullYear(),o=String(L.getMonth()+1).padStart(2,"0"),T=String(L.getDate()).padStart(2,"0"),I=String(L.getHours()).padStart(2,"0"),Y=String(L.getMinutes()).padStart(2,"0"),A=String(L.getSeconds()).padStart(2,"0");if(`${I}:${Y}:${A}`=="00:00:00")return`${d}-${o}-${T} 01:00:00`;{let x=null;for(let a=0;a<D.length;a++){const j=D[a].split(":");if(+`${j[0]}${j[1]}${j[2]}`>=+`${I}${Y}${A}`){x=D[a];break}}if(x==="24:00:00"){const a=new Date(n);a.setDate(a.getDate()+1);const j=a.getFullYear(),l=String(a.getMonth()+1).padStart(2,"0"),m=String(a.getDate()).padStart(2,"0");return`${j}-${l}-${m} 00:00:00`}return`${d}-${o}-${T} ${x}`}}case"6":{const D=new Date(n),L=D.getHours();if(L>=4&&L<21){const d=D.getFullYear(),o=String(D.getMonth()+1).padStart(2,"0"),T=String(D.getDate()).padStart(2,"0");return`${d}-${o}-${T} 09:00:00`}else{const d=new Date(n);d.getHours()>=21&&d.setDate(d.getDate()+1);const o=d.getFullYear(),T=String(d.getMonth()+1).padStart(2,"0"),I=String(d.getDate()).padStart(2,"0"),Y=`${o}-${T}-${I} 09:00:00`,A=ce(t,Y,"gte");return A===-1?Y:t[A]}}case"7":{const D=new Date(n),L=new Date(D);L.setDate(D.getDate()-D.getDay()),L.setHours(0,0,0,0);const d=new Date(L);d.setDate(L.getDate()+5),d.setHours(23,59,59,0);const o=new Date(L);o.setDate(L.getDate()+12),o.setHours(9,0,0,0);const T=D<=d?d:o,I=T.getFullYear(),Y=String(T.getMonth()+1).padStart(2,"0"),A=String(T.getDate()).padStart(2,"0");return`${I}-${Y}-${A} 09:00:00`}case"8":{const D=new Date(n),L=new Date(D.getFullYear(),D.getMonth()+1,1),d=new Date(L);d.setDate(L.getDate()-1),d.setHours(9,0,0,0);const o=d.getFullYear(),T=String(d.getMonth()+1).padStart(2,"0"),I=String(d.getDate()).padStart(2,"0");return`${o}-${T}-${I} 09:00:00`}}const c=new Date(n),M=c.getFullYear(),y=c.getMonth(),N=c.getDate(),e=c.getHours(),u=c.getMinutes(),f=c.getSeconds(),O=D=>{let L=null;const d=Math.floor(u/D);u%D===0&&f===0?L=u:L=(d+1)*D;const o=Math.floor(L/60),T=e+o,I=L%60,Y=new Date(M,y,N,T,I,0),A=k=>String(k).padStart(2,"0"),x=Y.getFullYear(),a=A(Y.getMonth()+1),j=A(Y.getDate()),l=A(Y.getHours()),m=A(Y.getMinutes());return`${x}-${a}-${j} ${l}:${m}:00`};switch(i){case"1":return O(1);case"2":return O(5);case"3":return O(15);case"4":return O(30);default:throw new Error(`Unsupported cycle: ${n} ${i}`)}},re=(t,n,i)=>{let c=null,M=null;const[y,N]=n;switch(i){case"6":{c=t.find(e=>new Date(p.dayjs(e).format("YYYY-MM-DD 23:59:59")).getTime()>=new Date(y).getTime()),M=t.findLast(e=>new Date(p.dayjs(e).format("YYYY-MM-DD 00:00:00")).getTime()<=new Date(N).getTime());break}case"7":{const e=p.dayjs(N).endOf("week").add(1,"day").format("YYYY-MM-DD 23:59:59");c=t.find(u=>p.dayjs(u).endOf("week").add(1,"day").format("YYYY-MM-DD")===p.dayjs(y).endOf("week").add(1,"day").format("YYYY-MM-DD")),M=t.findLast(u=>new Date(u).getTime()<=new Date(e).getTime());break}case"8":{c=t.find(e=>p.dayjs(e).format("YYYY-MM")===p.dayjs(y).format("YYYY-MM")),M=t.findLast(e=>p.dayjs(e).format("YYYY-MM")===p.dayjs(N).format("YYYY-MM"));break}default:c=t.find(e=>new Date(e).getTime()>=new Date(y).getTime()),M=t.findLast(e=>new Date(e).getTime()<=new Date(N).getTime())}return[c,M]},Ue=(t,n,i,c,M,y)=>{const N=(d,o)=>{const{direction:T="",tradeAction:I="",tradeType:Y=""}=d,A=Y??T+I;switch(o){case 0:return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(A);case 1:return Y??T+I}},e=(d,o,T,I)=>d.reduce((Y,A)=>{var P;const x=N(A,0),a=d.filter(_=>_.klineTime===A.klineTime),j=[...new Set(a.map(_=>N(_,0)))];let l=null;j.length>1?l="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjI4MjAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMwNzgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE5OC4wMTYgMTA5LjczODY2N0E3Ny44NjY2NjcgNzcuODY2NjY3IDAgMCAwIDE3MC42NjY2NjcgMTY3LjY4bDAuNTEyIDQxOC45NDRjMCAyMi44NjkzMzMgNi40IDQ4IDE5LjAyOTMzMyA3NS4zMDY2NjcgMTIuNjcyIDI3LjIyMTMzMyAyNy45ODkzMzMgNDguOTM4Nj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ggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",self.location).href:l="image://"+new URL(Object.assign({"./images/buy.svg":Ce,"./images/sell.svg":ke,"./images/t.svg":Ee})[`./images/${x==="买"?"buy":"sell"}.svg`],self.location).href;const m=ce(T,A.klineTime),k=(P=I[m])==null?void 0:P[3];return o.forEach(_=>{var X;const B=x==="买"?0:1;_.range[B]===A.klineTime&&(_.rangeValue[B]=(X=I[m])==null?void 0:X[x==="买"?2:3])}),Y.push({symbol:l,symbolSize:25,symbolRotate:0,symbolOffset:[0,0],label:{show:!1,position:"top"},coord:[A.klineTime,k],silent:!0,animation:!1,customData:{tradeType:x,amount:A.amount,part:A.part,profitAndLoss:A.profitAndLoss,openPriceAll:A.openPriceAll,closePriceAll:A.closePriceAll}}),Y},[]),u=(d,o,T,I)=>{const{sellBuyByPrice:Y}=y,A=d.reduce((x,a,j)=>{var P,_;const l=N(a,1),m=["开多","开空"].includes(l)?"top":"bottom";let k=null;if(Y)k=m==="top"?(a.openPriceAll/a.amount).toFixed(2):(a.closePriceAll/a.amount).toFixed(2);else{const B=ce(T,a.klineTime);k=m==="top"?(P=I[B])==null?void 0:P[3]:(_=I[B])==null?void 0:_[2]}return o.forEach(B=>{(m==="top"?B.range[0]:B.range[1])===a.klineTime&&(B.rangeValue[m==="top"?0:1]=k)}),x.push({symbol:"triangle",symbolSize:[10,12],symbolRotate:m==="top"?180:0,symbolOffset:[0,0],label:{show:!0,position:m,color:"#fff",formatter:`${l} ${m==="top"?"+":"-"} ${a.amount}手 ${a.part?`(${a.part}份)`:""}`},itemStyle:{color:m==="top"?"#FF0000":"#389e0d"},coord:[a.klineTime,k],silent:!0,animation:!1,customData:{tradeType:l,amount:a.amount,part:a.part,profitAndLoss:a.profitAndLoss,openPriceAll:a.openPriceAll,closePriceAll:a.closePriceAll}}),x},[]);return Y?A:Ve(A)},f=(d,o,T)=>{const{basePointData:I,baseLineData:Y}=d.reduce((j,l)=>{const m={pointTime:l.openTime,tradeAction:"开",tradeDirection:l.tradeDirection?"空":"多",tradeType:`开${l.tradeDirection?"空":"多"}`,part:null,amount:l.tradeVolume,profitAndLoss:l.profitAndLoss,openPriceAll:l.openPrice*l.tradeVolume,closePriceAll:l.closePrice*l.tradeVolume,klineTime:le(T,l.openTime,o)},k={pointTime:l.closeTime,tradeAction:"平",tradeDirection:l.tradeDirection?"空":"多",tradeType:`平${l.tradeDirection?"空":"多"}`,part:null,amount:l.tradeVolume,profitAndLoss:l.profitAndLoss,openPriceAll:l.openPrice*l.tradeVolume,closePriceAll:l.closePrice*l.tradeVolume,klineTime:le(T,l.closeTime,o)},P={range:[m.klineTime,k.klineTime],rangeValue:[null,null],color:k.profitAndLoss>0?"#FF0000":"#389e0d"};return j.basePointData.push(m,k),j.baseLineData.push(P),j},{basePointData:[],baseLineData:[]}),x=[...I.reduce((j,l)=>{const m=JSON.parse(JSON.stringify(l)),k=m.klineTime+m.tradeType;if(j.has(k)){const P=j.get(k);m.amount+=P.amount,m.part+=P.part,m.profitAndLoss+=P.profitAndLoss,m.openPriceAll+=P.openPriceAll,m.closePriceAll+=P.closePriceAll}return j.set(k,m),j},new Map([])).values()].sort((j,l)=>new Date(j.klineTime)-new Date(l.klineTime)),a=Y.filter(({range:j})=>j[0]!==j[1]);return{pointData:x,lineData:a}},{pointData:O,lineData:D}=f(t,n,c);return{tradePointData:(i===0?e:u)(O,D,c,M),tradeLineData:D.map(({range:d,rangeValue:o,color:T})=>[{symbol:"none",coord:[d[0],o[0]],lineStyle:{color:T,width:2,type:"solid"},silent:!0,animation:!1},{symbol:"none",coord:[d[1],o[1]],silent:!0,animation:!1}])}},_e=(t,n)=>{let i=[];if(Number(n)<=5)i=t.map(({tradeDate:c,netPositionValue:M})=>[p.dayjs(c).format("YYYY-MM-DD HH:mm:ss"),M]);else if(Number(n)===6){const c=t.reduce((M,y)=>{const{tradeDate:N,netPositionValue:e}=y;return M.set(p.dayjs(N).format("YYYY-MM-DD 09:00:00"),e),M},new Map);i=Array.from(c,([M,y])=>[M,y])}else i=[];return{netPositionLineData:i}},Be=(t,n,i,c)=>{let M=[];if(["6","7","8"].includes(n)){const y=t.reduce((N,e)=>{const u=le(c,e.date,n),f=e[i===0?"simple":"compound"];return N.set(u,f),N},new Map);M=Array.from(y,([N,e])=>[N,e])}else M=[];return{tradeIncomeRateLineData:M}},me="/middleLayer/kline/getKline",$e=15e3,He=64,Ae=new WeakMap,Ze=new Map,Ge=t=>typeof t=="object"&&t!==null||typeof t=="function",ue=t=>t instanceof Date?t.toISOString():Array.isArray(t)?t.map(ue):t&&typeof t=="object"?Object.keys(t).sort().reduce((n,i)=>(t[i]!==void 0&&(n[i]=ue(t[i])),n),{}):t,We=t=>{if(Ge(t)){let n=Ae.get(t);return n||(n=new Map,Ae.set(t,n)),n}return Ze},fe=t=>{for(;t.size>He;){const n=t.keys().next().value;if(n===void 0)break;t.delete(n)}},oe=(t,n,i={})=>{if(!t||typeof t.post!="function")throw new TypeError("[K线] request.post 未配置,无法获取行情数据");const c=Number.isFinite(i.ttlMs)?Math.max(0,i.ttlMs):$e,M=We(t),y=`${me}:${JSON.stringify(ue(n))}`,N=Date.now(),e=M.get(y);if(e&&(e.pending||e.expiresAt>N))return e.promise;e&&M.delete(y);const u={pending:!0,expiresAt:0,promise:null};return u.promise=Promise.resolve().then(()=>t.post(me,n)).then(f=>(M.get(y)===u&&(u.pending=!1,u.expiresAt=Date.now()+c,fe(M)),f),f=>{throw M.get(y)===u&&M.delete(y),f}),M.set(y,u),fe(M),u.promise};const qe={class:"tips"},Ke={__name:"Tips",props:{data:{type:Array,default:()=>[]}},setup(t){return(n,i)=>(r.openBlock(),r.createElementBlock("div",qe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.data,(c,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:"item",style:r.normalizeStyle({color:c.color})},r.toDisplayString(c.label)+" "+r.toDisplayString(c.value),5))),128))]))}},se=Ne._export_sfc(Ke,[["__scopeId","data-v-ab0b040e"]]);const Je={__name:"SliderChart",props:{screenTimeRange:{type:Array,required:!0},varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},emits:["change"],setup(t,{expose:n,emit:i}){const{request:c}=r.inject("stConfig");let M=null,y=!1,N=0;const e=r.ref(null),u=i,f=t,O=r.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),D=async()=>{const T=++N,I={varietyCode:f.varietyCode,cycle:"6",right:f.varietyStock===1?f.rightType:0,contractType:f.varietyStock?null:f.klineType,startTime:"1999-01-01 00:00:00",endTime:p.dayjs().format("YYYY-MM-DD 23:59:59"),deleteFirstNumber:f.deleteFirstNumber,withoutPermission:f.withoutPermission};if(y)return;const{body:Y}=await oe(c,I);y||T!==N||(Y?O.value=Y:O.value={data:[],mainIndicator:[],subIndicator:[],time:[]},o("init"))},L=W.j(T=>{if(!(T!=null&&T.dataZoomId)||y||!M)return;const I=M.getOption();if(I!=null&&I.dataZoom[0]){const{startValue:Y,endValue:A}=M.getOption().dataZoom[0],{time:x}=O.value,a=`${x[Y].split(" ")[0]} 00:00:00`,j=`${x[A].split(" ")[0]} 23:59:59`;console.log(`检测到拖拽轴被拖动, 时间区间: ${a} - ${j}`),u("change",{startTime:a,endTime:j})}},200),d=W.j(({startTime:T,endTime:I})=>{o("reset",{startTime:T,endTime:I})},100),o=(T,I)=>{if(!(y||!M))switch(T){case"init":{const{data:Y,time:A}=O.value,{xAxisData:x,lineData:a}=Y.reduce((l,m,k)=>(l.xAxisData.push(A[k].split(" ")[0]),l.lineData.push(m[1]),l),{xAxisData:[],lineData:[]}),j={grid:{height:0,left:"100px",right:"80px"},xAxis:{type:"category",data:x,show:!1},yAxis:{type:"value"},dataZoom:[{show:!0,startValue:0,endValue:0,textStyle:{color:"#ccc"}},{type:"inside",startValue:0,endValue:0}],series:[{data:a,type:"line"}]};if(M.setOption(j,!0),f.screenTimeRange.length){const[l,m]=f.screenTimeRange;d({startTime:l,endTime:m})}break}case"reset":{const{time:Y}=O.value,A=p.dayjs(I.startTime).format("YYYY-MM-DD"),x=p.dayjs(I.endTime).format("YYYY-MM-DD");let a=-1,j=-1;for(let l=0;l<Y.length;l++){const m=p.dayjs(Y[l]).format("YYYY-MM-DD");if(a!==-1&&j!==-1)break;a===-1&&(new Date(m)===new Date(A)?a=l:new Date(m)>new Date(A)&&(a=l-1)),j===-1&&(new Date(m)===new Date(x)?j=l:new Date(m)>new Date(x)&&(j=l-1))}j===-1&&(j=Y.length-1),M.dispatchAction({type:"dataZoom",startValue:a,endValue:j});break}}};return r.onMounted(()=>{r.nextTick(()=>{y||(M=ie.init(e.value),M.on("datazoom",L),D())})}),r.watch(()=>f.screenTimeRange,T=>{if(y||!M||T.length<2)return;const[I,Y]=T;d({startTime:I,endTime:Y})},{deep:!0}),r.onUnmounted(()=>{y=!0,N+=1,M==null||M.off("datazoom"),M==null||M.dispose(),M=null}),n({resize:W.j(()=>M==null?void 0:M.resize(),100)}),(T,I)=>(r.openBlock(),r.createElementBlock("div",{class:"chart",ref_key:"sliderChartRef",ref:e},null,512))}},Xe=Ne._export_sfc(Je,[["__scopeId","data-v-4a4659da"]]);const et={class:"main-chart"},tt={class:"indicator"},Mt={key:0,class:"screen-time-range"},at={key:0,class:"sub-chart"},nt={class:"indicator"},it={class:"title"},ot={key:1,class:"slider-chart"},rt={__name:"index",props:{varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},indicatorStore:{type:Object,required:!0},userKlineConfig:{type:Object,required:!0},cycle:{type:String,required:!0},sellBuy:{type:Number,default:1},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},incomeType:{type:Number,default:0},initTimeRange:{type:Array,required:!0},initialVisibleBars:{type:Number,default:0,validator:t=>Number.isInteger(t)&&t>=0&&t<=U.maxValueSpan},mainIndicator:{type:String,required:!0},tradeLog:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},tradeIncomeRateData:{type:Array,default:()=>[]},positionTime:{type:[String,null],default:null},syncBrushRange:{type:Object,default:()=>({cycleList:[],startTime:null,endTime:null})},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},setup(t,{expose:n}){const{round:i,formatValue:c}=W.x,{request:M}=r.inject("stConfig"),y=r.ref(!1),N=r.ref(!1),e=t;let u=!1,f=!1,O=!1,D=!1,L=null,d=null,o=null,T=!1,I=0;const Y=r.ref(null),A=r.ref(null),x=r.ref(null),a=r.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),j=r.ref(0),l=r.ref([]),m=r.ref(null),k=r.ref("VOL"),P=r.computed(()=>{const s=a.value.data[j.value];if(!s)return[{label:"开",value:"-"},{label:"高",value:"-"},{label:"低",value:"-"},{label:"收",value:"-"},{label:"额",value:"-"},{label:"涨跌",value:"-"}];const z=[{label:"开",value:s[0]},{label:"高",value:s[3]},{label:"低",value:s[2]},{label:"收",value:s[1]}];s[4]!==null&&z.push({label:"额",value:c(s[4])});let g;return s[6]>0?g="red":s[6]<0&&(g="green"),z.push({label:"涨跌",value:`${i(s[6])}%`,color:g}),z}),_=r.computed(()=>{var s,z;return((z=(s=a.value)==null?void 0:s.mainIndicator)==null?void 0:z.map(g=>({label:g.key,value:i(g.data[j.value]),color:g.color})))||[]}),B=r.computed(()=>{var s,z;return((z=(s=a.value)==null?void 0:s.subIndicator)==null?void 0:z.map(g=>({label:g.key,color:g.color,value:g.data[j.value]||"-"})))||[]}),X=()=>{if(!Y.value)return console.warn("[K线] 主图DOM元素不存在,取消初始化"),!1;if(o)return!0;try{return o=ie.init(Y.value),o.on("highlight",W.j(s=>{var z;s.dataIndex?j.value=s.dataIndex:j.value=((z=s.batch)==null?void 0:z[0].dataIndex)??-1},10)),o.on("datazoom",W.j(async()=>{var h;const{loadCheckCount:s}=U,{startValue:z,endValue:g}=((h=o.getOption())==null?void 0:h.dataZoom[0])??{};O===!1&&D===!1&&z<s&&await je("history"),u===!1&&f===!1&&g>a.value.time.length-s&&await je("new"),ze(),ye()})),o.on("globalout",()=>{if(o){const s=o.getOption();j.value=s.dataZoom[0].endValue}}),o.getZr().on("contextmenu",()=>{var s;m.value=(s=a.value)==null?void 0:s.time[j.value]}),window.addEventListener("keydown",de),e.userKlineConfig.enable_subChart&&A.value&&(d=ie.init(A.value),ie.connect([o,d])),Y.value&&(L=W.D(Y.value),L.listen(()=>{requestAnimationFrame(()=>{var s;o==null||o.resize(),d==null||d.resize(),(s=x.value)==null||s.resize()})})),!0}catch(s){return console.error("[st-klinePlus]: 初始化异常:",s),!1}},ee=async({startTime:s,endTime:z})=>{const g=++I;O=!1,D=!1,u=!1,f=!1;try{if(T)return;y.value=!0;const h={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},w=ve(e.cycle,e.initialVisibleBars);Object.assign(h,{startTime:p.dayjs(s).subtract(w.amount,w.unit).format("YYYY-MM-DD HH:mm:ss"),endTime:p.dayjs(z).add(w.amount,w.unit).format("YYYY-MM-DD HH:mm:ss")});const{body:b}=await oe(M,h);if(T||g!==I)return;if(a.value=b??{data:[],mainIndicator:[],subIndicator:[],time:[]},!a.value.time.length){te({startValue:0,endValue:0});return}te(Pe({time:a.value.time,startTime:s,endTime:z,initialVisibleBars:e.initialVisibleBars}))}finally{g===I&&(y.value=!1)}},je=async s=>{var K,Z;const z=I,{loadAddCount:g}=U;switch(s){case"history":{O=!0;const V={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,endTime:a.value.time[0],limit:g,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:R}=await oe(M,V);if(T||z!==I){O=!1;return}a.value=Le(R,a.value),R.data.length<g&&(console.log("[K线] 获取更多数据: 左侧已全部获取完毕, 关闭"),D=!0),O=!1;break}case"new":{u=!0;const V={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:a.value.time[a.value.time.length-1],limit:g,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:R}=await oe(M,V);if(T||z!==I){u=!1;return}a.value=Le(a.value,R),R.data.length<g&&(console.log("[K线] 获取更多数据: 右侧已全部获取完毕, 关闭"),f=!0),u=!1;break}}const{startValue:h,endValue:w}=((K=o.getOption())==null?void 0:K.dataZoom[0])??{},b=(Z=o.getOption())==null?void 0:Z.xAxis[0].data,E=a.value.time.findIndex(V=>new Date(V)>=new Date(b[h])),F=a.value.time.findIndex(V=>new Date(V)>=new Date(b[w]));te({startValue:E===-1?0:E,endValue:F===-1?a.value.time.length-1:F})},ze=()=>{var b;if(!a.value.time.length)return l.value=[];const{time:s}=a.value,{startValue:z,endValue:g}=((b=o.getOption())==null?void 0:b.dataZoom[0])??{},h=s[z],w=s[g];["6","7","8"].includes(e.cycle)?l.value=[p.dayjs(h).format("YYYY-MM-DD"),p.dayjs(w).format("YYYY-MM-DD")]:l.value=[h,w]},te=(s={startValue:0,endValue:0})=>{if(!X()||!o)return console.warn("[st-klinePlus]: 图表未准备就绪, 跳过绘制");if(!a.value.time.length)return console.warn("[st-klinePlus]: 图表无数据, 跳过绘制");const{maxValueSpan:g}=U,{time:h,data:w,mainIndicator:b}=a.value,E=s.endValue-s.startValue>g?s.endValue-g:s.startValue,F=s.endValue,K=b.map(C=>({name:C.key,type:"line",silent:!0,symbol:"none",data:C.data,lineStyle:{width:C.width||1},itemStyle:{color:C.color}})),{netPositionLineData:Z}=_e(e.netPositionData,e.cycle),{tradeIncomeRateLineData:V}=Be(e.tradeIncomeRateData,e.cycle,e.incomeType,h),{tradePointData:R,tradeLineData:$}=Ue(e.tradeLog,e.cycle,e.sellBuy,h,w,e.userKlineConfig);o.setOption({animation:!1,grid:{top:"40px",left:"60px",right:"20px",bottom:"20px"},dataZoom:[{type:"inside",startValue:E,endValue:F,minValueSpan:U.minValueSpan,maxValueSpan:U.maxValueSpan}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:C=>{const{axisDimension:S,value:v}=C;return S==="x"?["6","7","8"].includes(e.cycle)?p.dayjs(v).format("YYYY-MM-DD"):v:String(i(v))}}},formatter:C=>{if(!(C!=null&&C.length))return null;let S="";if(C.forEach(Q=>{if(Q.seriesName==="netPosition"&&Q.data!==null&&(S+=`<div>资产持仓净值: ${Q.data[1]}</div>`),Q.componentSubType==="candlestick")if(e.sellBuy===0){const J=R.filter(H=>(H==null?void 0:H.coord[0])===Q.axisValue);let q=0,G=0;J.forEach(H=>{const{tradeType:Me,amount:ne}=H.customData;Me==="买"&&(q+=ne),Me==="卖"&&(G+=ne)}),q&&(S+=`<div>买: ${q}</div>`),G&&(S+=`<div>卖: ${G}</div>`)}else R.forEach(J=>{if((J==null?void 0:J.coord[0])===Q.axisValue){const{tradeType:q,amount:G,profitAndLoss:H,openPriceAll:Me,closePriceAll:ne}=J.customData;let ae=`<div>${q}: ${G}手</div>`;if(q.includes("开")&&(ae+=`<div>开仓价: ${(Me/G).toFixed(2)}</div>`),q.includes("平")){const ge=(Me/G).toFixed(2),Te=(ne/G).toFixed(2);ae+=`<div>平仓价: ${Te}</div>`,ae+=`<div>盈亏: ${H==null?void 0:H.toFixed(2)}</div>`,ae+=`<div>盈亏比率: ${((Te-ge)/ge*100).toFixed(2)} %</div>`}S+=ae}})}),!S)return null;let v=C[0].axisValue;return["6","7","8"].includes(e.cycle)&&(v=p.dayjs(v).format("YYYY-MM-DD")),`
1
+ "use strict";const De=require("./el-select-c317294a.cjs"),xe=require("./el-empty-58bc2a10.cjs"),Oe=require("./el-loading-fafaaa7b.cjs"),p=require("./base-d987e5c9.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./el-popper-acd0ff35.cjs");require("./el-tag-dca1292c.cjs");const r=require("vue"),he=require("echarts"),W=require("./index-94131fd7.cjs"),Ne=require("./_plugin-vue_export-helper-f246444f.cjs");require("./index-d372e68f.cjs");require("./castArray-d9ffe84a.cjs");require("./index-6a36e1fc.cjs");require("./use-form-item-76516e50.cjs");require("./index-5cada1ed.cjs");require("./vnode-6f7b84f0.cjs");require("./index-beb5cb7d.cjs");require("./index-21a3dc89.cjs");require("./scroll-07bade1e.cjs");require("./index-11181b5f.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./use-global-config-7ff9a1c2.cjs");function be(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,c.get?c:{enumerable:!0,get:()=>t[i]})}}return n.default=t,Object.freeze(n)}const ie=be(he),Ce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6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A2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",{round:Se}=W.x,U={minValueSpan:5,maxValueSpan:2e3,loadCheckCount:500,loadAddCount:2e3},pe={1:240,2:48,3:16,4:8,5:4,6:1,7:.2,8:.033},ve=(t,n=0)=>{const i=pe[t];if(!i)throw new Error(`[K线] 不支持的周期:${String(t)}`);if(!Number.isInteger(n)||n<0||n>U.maxValueSpan)throw new RangeError(`[K线] initialVisibleBars 必须是 0-${U.maxValueSpan} 的整数`);if(t==="8"){const y=n?Math.ceil(n/i/30):0;return{amount:Math.max(10,y),unit:"month"}}const c=["6","7"].includes(t)?50:1,M=n?Math.ceil(n/i):0;return{amount:Math.max(c,M),unit:"day"}},Ie=(t,n)=>{let i=0,c=t.length;for(;i<c;){const M=Math.floor((i+c)/2);t[M]<n?i=M+1:c=M}return i},Qe=(t,n)=>{let i=0,c=t.length;for(;i<c;){const M=Math.floor((i+c)/2);t[M]<=n?i=M+1:c=M}return i},Pe=({time:t,startTime:n,endTime:i,initialVisibleBars:c=0})=>{if(!Array.isArray(t)||t.length===0)throw new TypeError("[K线] 无法定位首屏:行情时间序列为空");if(!Number.isInteger(c)||c<0||c>U.maxValueSpan)throw new RangeError(`[K线] initialVisibleBars 必须是 0-${U.maxValueSpan} 的整数`);const M=p.dayjs(n).valueOf(),y=p.dayjs(i).valueOf();if(!Number.isFinite(M)||!Number.isFinite(y)||y<M)throw new RangeError("[K线] 无法定位首屏:开始或结束时间无效");const N=t.map((D,L)=>{const d=p.dayjs(D).valueOf();if(!Number.isFinite(d))throw new RangeError(`[K线] 行情时间[${L}]无效`);if(L>0&&d<p.dayjs(t[L-1]).valueOf())throw new Error(`[K线] 行情时间序列未按升序排列,位置 ${L}`);return d});let e=Math.min(Ie(N,M),N.length-1),u=Math.max(Qe(N,y)-1,0);if(e>u){const D=Math.min(Ie(N,M),N.length-1);e=D,u=D}let O=Math.min(c||u-e+1,N.length,U.maxValueSpan)-(u-e+1);if(O>0){const D=Math.min(e,Math.ceil(O/2));e-=D,O-=D;const L=Math.min(N.length-1-u,O);u+=L,O-=L,O>0&&(e-=Math.min(e,O))}return{startValue:e,endValue:u}},Ye=({startTime:t,endTime:n,cycle:i,type:c="end"})=>{const{maxValueSpan:M}=U,y=Math.ceil((M+1e3)/pe[i]),N=p.dayjs(t);if(p.dayjs(n).diff(N,"day")<=y)return[t,n];if(c==="end")return[p.dayjs(n).subtract(y,"day").format("YYYY-MM-DD HH:mm:ss"),n];if(c==="middle"){const f=p.dayjs((p.dayjs(t).valueOf()+p.dayjs(n).valueOf())/2).format("YYYY-MM-DD HH:mm:ss");return console.log("超过一屏数量上限, 进行中间时间计算",f,y/2),[p.dayjs(f).subtract(y/2,"day").format("YYYY-MM-DD HH:mm:ss"),p.dayjs(f).add(y/2,"day").format("YYYY-MM-DD HH:mm:ss")]}},Re=(t,n)=>{const i=t[n],c=n===0?t[n]:t[n-1];return i[0]===i[1]?i[0]>=c[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:i[1]>i[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}},Fe=(t,n,i)=>{var M,y,N,e;const c=t.subIndicator.map(u=>{if(u.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:u.data.map((f,O)=>u.seriesColor==="kline"?{value:f,itemStyle:Re(t.data,O)}:u.seriesColor==="value"?{value:f,itemStyle:{color:f>=0?"#FF0000":"#00FFFF"}}:{value:f,itemStyle:{color:u.seriesColor}})};if(u.series==="line")return{xAxisIndex:0,yAxisIndex:u.yAxis==="right"?2:1,name:u.key,type:"line",silent:!0,symbol:"none",data:u.data,lineStyle:{width:1},itemStyle:{color:u.color}}});return{animation:!1,grid:{top:"10px",left:"60px",right:"20px",bottom:"10px"},dataZoom:[{type:"inside",startValue:n,endValue:i,maxValueSpan:U.maxValueSpan}],tooltip:{show:!1},axisPointer:{show:!0,triggerTooltip:!1,label:{rich:{},formatter:u=>{const{axisDimension:f,value:O}=u;if(f==="x")return null;if(u.axisIndex===1)return String(Se(O))}}},xAxis:{type:"category",data:t.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{position:"right"},{position:"left",min:((M=t.subIndicator[0])==null?void 0:M.leftYAxisRange)==="cover"?u=>u.min:null,max:((y=t.subIndicator[0])==null?void 0:y.leftYAxisRange)==="cover"?u=>u.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:((N=t.subIndicator[0])==null?void 0:N.rightYAxisRange)==="cover"?u=>u.min:null,max:((e=t.subIndicator[0])==null?void 0:e.rightYAxisRange)==="cover"?u=>u.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:c}},ce=(t,n,i="strict")=>{let c=0,M=t.length-1,y=-1;for(;c<=M;){let N=Math.floor((c+M)/2);if(i==="strict"){if(t[N]===n)return N;t[N]<n?c=N+1:M=N-1}else i==="gte"&&(t[N]>=n?(y=N,M=N-1):c=N+1)}return i==="strict"?-1:y},Ve=t=>{const n=[];return t.reduce((i,c)=>{const M=`${c.coord[0]}+${c.label.position}`,y=c.label.position==="top"?-16:16,N=i.get(M);return N?(i.set(M,N+1),c.symbolOffset[1]=y*(N+1)):(i.set(M,1),c.symbolOffset[1]=c.label.position==="top"?-7:7),n.push(c),i},new Map),n},Le=(t,n)=>({data:[...t.data,...n.data.slice(1)],mainIndicator:t.mainIndicator.map((i,c)=>({...i,data:[...i.data,...n.mainIndicator[c].data.slice(1)]})),subIndicator:t.subIndicator.map((i,c)=>({...i,data:[...i.data,...n.subIndicator[c].data.slice(1)]})),time:[...t.time,...n.time.slice(1)]}),le=(t,n,i)=>{switch(i){case"5":{let D=[...new Set(t.slice(-20).map(x=>{const a=new Date(x),j=String(a.getHours()).padStart(2,"0"),l=String(a.getMinutes()).padStart(2,"0"),m=String(a.getSeconds()).padStart(2,"0");return`${j}:${l}:${m}`}))];D.includes("00:00:00")&&(D.splice(D.indexOf("00:00:00"),1),D.push("24:00:00")),D=D.sort((x,a)=>new Date(`2000-01-30 ${x}`).getTime()-new Date(`2000-01-30 ${a}`).getTime());const L=new Date(n),d=L.getFullYear(),o=String(L.getMonth()+1).padStart(2,"0"),T=String(L.getDate()).padStart(2,"0"),I=String(L.getHours()).padStart(2,"0"),Y=String(L.getMinutes()).padStart(2,"0"),A=String(L.getSeconds()).padStart(2,"0");if(`${I}:${Y}:${A}`=="00:00:00")return`${d}-${o}-${T} 01:00:00`;{let x=null;for(let a=0;a<D.length;a++){const j=D[a].split(":");if(+`${j[0]}${j[1]}${j[2]}`>=+`${I}${Y}${A}`){x=D[a];break}}if(x==="24:00:00"){const a=new Date(n);a.setDate(a.getDate()+1);const j=a.getFullYear(),l=String(a.getMonth()+1).padStart(2,"0"),m=String(a.getDate()).padStart(2,"0");return`${j}-${l}-${m} 00:00:00`}return`${d}-${o}-${T} ${x}`}}case"6":{const D=new Date(n),L=D.getHours();if(L>=4&&L<21){const d=D.getFullYear(),o=String(D.getMonth()+1).padStart(2,"0"),T=String(D.getDate()).padStart(2,"0");return`${d}-${o}-${T} 09:00:00`}else{const d=new Date(n);d.getHours()>=21&&d.setDate(d.getDate()+1);const o=d.getFullYear(),T=String(d.getMonth()+1).padStart(2,"0"),I=String(d.getDate()).padStart(2,"0"),Y=`${o}-${T}-${I} 09:00:00`,A=ce(t,Y,"gte");return A===-1?Y:t[A]}}case"7":{const D=new Date(n),L=new Date(D);L.setDate(D.getDate()-D.getDay()),L.setHours(0,0,0,0);const d=new Date(L);d.setDate(L.getDate()+5),d.setHours(23,59,59,0);const o=new Date(L);o.setDate(L.getDate()+12),o.setHours(9,0,0,0);const T=D<=d?d:o,I=T.getFullYear(),Y=String(T.getMonth()+1).padStart(2,"0"),A=String(T.getDate()).padStart(2,"0");return`${I}-${Y}-${A} 09:00:00`}case"8":{const D=new Date(n),L=new Date(D.getFullYear(),D.getMonth()+1,1),d=new Date(L);d.setDate(L.getDate()-1),d.setHours(9,0,0,0);const o=d.getFullYear(),T=String(d.getMonth()+1).padStart(2,"0"),I=String(d.getDate()).padStart(2,"0");return`${o}-${T}-${I} 09:00:00`}}const c=new Date(n),M=c.getFullYear(),y=c.getMonth(),N=c.getDate(),e=c.getHours(),u=c.getMinutes(),f=c.getSeconds(),O=D=>{let L=null;const d=Math.floor(u/D);u%D===0&&f===0?L=u:L=(d+1)*D;const o=Math.floor(L/60),T=e+o,I=L%60,Y=new Date(M,y,N,T,I,0),A=k=>String(k).padStart(2,"0"),x=Y.getFullYear(),a=A(Y.getMonth()+1),j=A(Y.getDate()),l=A(Y.getHours()),m=A(Y.getMinutes());return`${x}-${a}-${j} ${l}:${m}:00`};switch(i){case"1":return O(1);case"2":return O(5);case"3":return O(15);case"4":return O(30);default:throw new Error(`Unsupported cycle: ${n} ${i}`)}},re=(t,n,i)=>{let c=null,M=null;const[y,N]=n;switch(i){case"6":{c=t.find(e=>new Date(p.dayjs(e).format("YYYY-MM-DD 23:59:59")).getTime()>=new Date(y).getTime()),M=t.findLast(e=>new Date(p.dayjs(e).format("YYYY-MM-DD 00:00:00")).getTime()<=new Date(N).getTime());break}case"7":{const e=p.dayjs(N).endOf("week").add(1,"day").format("YYYY-MM-DD 23:59:59");c=t.find(u=>p.dayjs(u).endOf("week").add(1,"day").format("YYYY-MM-DD")===p.dayjs(y).endOf("week").add(1,"day").format("YYYY-MM-DD")),M=t.findLast(u=>new Date(u).getTime()<=new Date(e).getTime());break}case"8":{c=t.find(e=>p.dayjs(e).format("YYYY-MM")===p.dayjs(y).format("YYYY-MM")),M=t.findLast(e=>p.dayjs(e).format("YYYY-MM")===p.dayjs(N).format("YYYY-MM"));break}default:c=t.find(e=>new Date(e).getTime()>=new Date(y).getTime()),M=t.findLast(e=>new Date(e).getTime()<=new Date(N).getTime())}return[c,M]},Ue=(t,n,i,c,M,y)=>{const N=(d,o)=>{const{direction:T="",tradeAction:I="",tradeType:Y=""}=d,A=Y??T+I;switch(o){case 0:return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(A);case 1:return Y??T+I}},e=(d,o,T,I)=>d.reduce((Y,A)=>{var P;const x=N(A,0),a=d.filter(_=>_.klineTime===A.klineTime),j=[...new Set(a.map(_=>N(_,0)))];let l=null;j.length>1?l="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjI4MjAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMwNzgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE5OC4wMTYgMTA5LjczODY2N0E3Ny44NjY2NjcgNzcuODY2NjY3IDAgMCAwIDE3MC42NjY2NjcgMTY3LjY4bDAuNTEyIDQxOC45NDRjMCAyMi44NjkzMzMgNi40IDQ4IDE5LjAyOTMzMyA3NS4zMDY2NjcgMTIuNjcyIDI3LjIyMTMzMyAyNy45ODkzMzMgNDguOTM4NjY3IDQ1Ljk1MiA2NC45Mzg2NjZsMjExLjE1NzMzMyAxODguMjAyNjY3YzE3LjA2NjY2NyAxNS40ODggNDAuNTc2IDIzLjk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zQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",self.location).href:l="image://"+new URL(Object.assign({"./images/buy.svg":Ce,"./images/sell.svg":ke,"./images/t.svg":Ee})[`./images/${x==="买"?"buy":"sell"}.svg`],self.location).href;const m=ce(T,A.klineTime),k=(P=I[m])==null?void 0:P[3];return o.forEach(_=>{var X;const B=x==="买"?0:1;_.range[B]===A.klineTime&&(_.rangeValue[B]=(X=I[m])==null?void 0:X[x==="买"?2:3])}),Y.push({symbol:l,symbolSize:25,symbolRotate:0,symbolOffset:[0,0],label:{show:!1,position:"top"},coord:[A.klineTime,k],silent:!0,animation:!1,customData:{tradeType:x,amount:A.amount,part:A.part,profitAndLoss:A.profitAndLoss,openPriceAll:A.openPriceAll,closePriceAll:A.closePriceAll}}),Y},[]),u=(d,o,T,I)=>{const{sellBuyByPrice:Y}=y,A=d.reduce((x,a,j)=>{var P,_;const l=N(a,1),m=["开多","开空"].includes(l)?"top":"bottom";let k=null;if(Y)k=m==="top"?(a.openPriceAll/a.amount).toFixed(2):(a.closePriceAll/a.amount).toFixed(2);else{const B=ce(T,a.klineTime);k=m==="top"?(P=I[B])==null?void 0:P[3]:(_=I[B])==null?void 0:_[2]}return o.forEach(B=>{(m==="top"?B.range[0]:B.range[1])===a.klineTime&&(B.rangeValue[m==="top"?0:1]=k)}),x.push({symbol:"triangle",symbolSize:[10,12],symbolRotate:m==="top"?180:0,symbolOffset:[0,0],label:{show:!0,position:m,color:"#fff",formatter:`${l} ${m==="top"?"+":"-"} ${a.amount}手 ${a.part?`(${a.part}份)`:""}`},itemStyle:{color:m==="top"?"#FF0000":"#389e0d"},coord:[a.klineTime,k],silent:!0,animation:!1,customData:{tradeType:l,amount:a.amount,part:a.part,profitAndLoss:a.profitAndLoss,openPriceAll:a.openPriceAll,closePriceAll:a.closePriceAll}}),x},[]);return Y?A:Ve(A)},f=(d,o,T)=>{const{basePointData:I,baseLineData:Y}=d.reduce((j,l)=>{const m={pointTime:l.openTime,tradeAction:"开",tradeDirection:l.tradeDirection?"空":"多",tradeType:`开${l.tradeDirection?"空":"多"}`,part:null,amount:l.tradeVolume,profitAndLoss:l.profitAndLoss,openPriceAll:l.openPrice*l.tradeVolume,closePriceAll:l.closePrice*l.tradeVolume,klineTime:le(T,l.openTime,o)},k={pointTime:l.closeTime,tradeAction:"平",tradeDirection:l.tradeDirection?"空":"多",tradeType:`平${l.tradeDirection?"空":"多"}`,part:null,amount:l.tradeVolume,profitAndLoss:l.profitAndLoss,openPriceAll:l.openPrice*l.tradeVolume,closePriceAll:l.closePrice*l.tradeVolume,klineTime:le(T,l.closeTime,o)},P={range:[m.klineTime,k.klineTime],rangeValue:[null,null],color:k.profitAndLoss>0?"#FF0000":"#389e0d"};return j.basePointData.push(m,k),j.baseLineData.push(P),j},{basePointData:[],baseLineData:[]}),x=[...I.reduce((j,l)=>{const m=JSON.parse(JSON.stringify(l)),k=m.klineTime+m.tradeType;if(j.has(k)){const P=j.get(k);m.amount+=P.amount,m.part+=P.part,m.profitAndLoss+=P.profitAndLoss,m.openPriceAll+=P.openPriceAll,m.closePriceAll+=P.closePriceAll}return j.set(k,m),j},new Map([])).values()].sort((j,l)=>new Date(j.klineTime)-new Date(l.klineTime)),a=Y.filter(({range:j})=>j[0]!==j[1]);return{pointData:x,lineData:a}},{pointData:O,lineData:D}=f(t,n,c);return{tradePointData:(i===0?e:u)(O,D,c,M),tradeLineData:D.map(({range:d,rangeValue:o,color:T})=>[{symbol:"none",coord:[d[0],o[0]],lineStyle:{color:T,width:2,type:"solid"},silent:!0,animation:!1},{symbol:"none",coord:[d[1],o[1]],silent:!0,animation:!1}])}},_e=(t,n)=>{let i=[];if(Number(n)<=5)i=t.map(({tradeDate:c,netPositionValue:M})=>[p.dayjs(c).format("YYYY-MM-DD HH:mm:ss"),M]);else if(Number(n)===6){const c=t.reduce((M,y)=>{const{tradeDate:N,netPositionValue:e}=y;return M.set(p.dayjs(N).format("YYYY-MM-DD 09:00:00"),e),M},new Map);i=Array.from(c,([M,y])=>[M,y])}else i=[];return{netPositionLineData:i}},Be=(t,n,i,c)=>{let M=[];if(["6","7","8"].includes(n)){const y=t.reduce((N,e)=>{const u=le(c,e.date,n),f=e[i===0?"simple":"compound"];return N.set(u,f),N},new Map);M=Array.from(y,([N,e])=>[N,e])}else M=[];return{tradeIncomeRateLineData:M}},me="/middleLayer/kline/getKline",$e=15e3,He=64,Ae=new WeakMap,Ze=new Map,Ge=t=>typeof t=="object"&&t!==null||typeof t=="function",ue=t=>t instanceof Date?t.toISOString():Array.isArray(t)?t.map(ue):t&&typeof t=="object"?Object.keys(t).sort().reduce((n,i)=>(t[i]!==void 0&&(n[i]=ue(t[i])),n),{}):t,We=t=>{if(Ge(t)){let n=Ae.get(t);return n||(n=new Map,Ae.set(t,n)),n}return Ze},fe=t=>{for(;t.size>He;){const n=t.keys().next().value;if(n===void 0)break;t.delete(n)}},oe=(t,n,i={})=>{if(!t||typeof t.post!="function")throw new TypeError("[K线] request.post 未配置,无法获取行情数据");const c=Number.isFinite(i.ttlMs)?Math.max(0,i.ttlMs):$e,M=We(t),y=`${me}:${JSON.stringify(ue(n))}`,N=Date.now(),e=M.get(y);if(e&&(e.pending||e.expiresAt>N))return e.promise;e&&M.delete(y);const u={pending:!0,expiresAt:0,promise:null};return u.promise=Promise.resolve().then(()=>t.post(me,n)).then(f=>(M.get(y)===u&&(u.pending=!1,u.expiresAt=Date.now()+c,fe(M)),f),f=>{throw M.get(y)===u&&M.delete(y),f}),M.set(y,u),fe(M),u.promise};const qe={class:"tips"},Ke={__name:"Tips",props:{data:{type:Array,default:()=>[]}},setup(t){return(n,i)=>(r.openBlock(),r.createElementBlock("div",qe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.data,(c,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:"item",style:r.normalizeStyle({color:c.color})},r.toDisplayString(c.label)+" "+r.toDisplayString(c.value),5))),128))]))}},se=Ne._export_sfc(Ke,[["__scopeId","data-v-ab0b040e"]]);const Je={__name:"SliderChart",props:{screenTimeRange:{type:Array,required:!0},varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},emits:["change"],setup(t,{expose:n,emit:i}){const{request:c}=r.inject("stConfig");let M=null,y=!1,N=0;const e=r.ref(null),u=i,f=t,O=r.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),D=async()=>{const T=++N,I={varietyCode:f.varietyCode,cycle:"6",right:f.varietyStock===1?f.rightType:0,contractType:f.varietyStock?null:f.klineType,startTime:"1999-01-01 00:00:00",endTime:p.dayjs().format("YYYY-MM-DD 23:59:59"),deleteFirstNumber:f.deleteFirstNumber,withoutPermission:f.withoutPermission};if(y)return;const{body:Y}=await oe(c,I);y||T!==N||(Y?O.value=Y:O.value={data:[],mainIndicator:[],subIndicator:[],time:[]},o("init"))},L=W.j(T=>{if(!(T!=null&&T.dataZoomId)||y||!M)return;const I=M.getOption();if(I!=null&&I.dataZoom[0]){const{startValue:Y,endValue:A}=M.getOption().dataZoom[0],{time:x}=O.value,a=`${x[Y].split(" ")[0]} 00:00:00`,j=`${x[A].split(" ")[0]} 23:59:59`;console.log(`检测到拖拽轴被拖动, 时间区间: ${a} - ${j}`),u("change",{startTime:a,endTime:j})}},200),d=W.j(({startTime:T,endTime:I})=>{o("reset",{startTime:T,endTime:I})},100),o=(T,I)=>{if(!(y||!M))switch(T){case"init":{const{data:Y,time:A}=O.value,{xAxisData:x,lineData:a}=Y.reduce((l,m,k)=>(l.xAxisData.push(A[k].split(" ")[0]),l.lineData.push(m[1]),l),{xAxisData:[],lineData:[]}),j={grid:{height:0,left:"100px",right:"80px"},xAxis:{type:"category",data:x,show:!1},yAxis:{type:"value"},dataZoom:[{show:!0,startValue:0,endValue:0,textStyle:{color:"#ccc"}},{type:"inside",startValue:0,endValue:0}],series:[{data:a,type:"line"}]};if(M.setOption(j,!0),f.screenTimeRange.length){const[l,m]=f.screenTimeRange;d({startTime:l,endTime:m})}break}case"reset":{const{time:Y}=O.value,A=p.dayjs(I.startTime).format("YYYY-MM-DD"),x=p.dayjs(I.endTime).format("YYYY-MM-DD");let a=-1,j=-1;for(let l=0;l<Y.length;l++){const m=p.dayjs(Y[l]).format("YYYY-MM-DD");if(a!==-1&&j!==-1)break;a===-1&&(new Date(m)===new Date(A)?a=l:new Date(m)>new Date(A)&&(a=l-1)),j===-1&&(new Date(m)===new Date(x)?j=l:new Date(m)>new Date(x)&&(j=l-1))}j===-1&&(j=Y.length-1),M.dispatchAction({type:"dataZoom",startValue:a,endValue:j});break}}};return r.onMounted(()=>{r.nextTick(()=>{y||(M=ie.init(e.value),M.on("datazoom",L),D())})}),r.watch(()=>f.screenTimeRange,T=>{if(y||!M||T.length<2)return;const[I,Y]=T;d({startTime:I,endTime:Y})},{deep:!0}),r.onUnmounted(()=>{y=!0,N+=1,M==null||M.off("datazoom"),M==null||M.dispose(),M=null}),n({resize:W.j(()=>M==null?void 0:M.resize(),100)}),(T,I)=>(r.openBlock(),r.createElementBlock("div",{class:"chart",ref_key:"sliderChartRef",ref:e},null,512))}},Xe=Ne._export_sfc(Je,[["__scopeId","data-v-4a4659da"]]);const et={class:"main-chart"},tt={class:"indicator"},Mt={key:0,class:"screen-time-range"},at={key:0,class:"sub-chart"},nt={class:"indicator"},it={class:"title"},ot={key:1,class:"slider-chart"},rt={__name:"index",props:{varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},indicatorStore:{type:Object,required:!0},userKlineConfig:{type:Object,required:!0},cycle:{type:String,required:!0},sellBuy:{type:Number,default:1},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},incomeType:{type:Number,default:0},initTimeRange:{type:Array,required:!0},initialVisibleBars:{type:Number,default:0,validator:t=>Number.isInteger(t)&&t>=0&&t<=U.maxValueSpan},mainIndicator:{type:String,required:!0},tradeLog:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},tradeIncomeRateData:{type:Array,default:()=>[]},positionTime:{type:[String,null],default:null},syncBrushRange:{type:Object,default:()=>({cycleList:[],startTime:null,endTime:null})},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},setup(t,{expose:n}){const{round:i,formatValue:c}=W.x,{request:M}=r.inject("stConfig"),y=r.ref(!1),N=r.ref(!1),e=t;let u=!1,f=!1,O=!1,D=!1,L=null,d=null,o=null,T=!1,I=0;const Y=r.ref(null),A=r.ref(null),x=r.ref(null),a=r.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),j=r.ref(0),l=r.ref([]),m=r.ref(null),k=r.ref("VOL"),P=r.computed(()=>{const s=a.value.data[j.value];if(!s)return[{label:"开",value:"-"},{label:"高",value:"-"},{label:"低",value:"-"},{label:"收",value:"-"},{label:"额",value:"-"},{label:"涨跌",value:"-"}];const z=[{label:"开",value:s[0]},{label:"高",value:s[3]},{label:"低",value:s[2]},{label:"收",value:s[1]}];s[4]!==null&&z.push({label:"额",value:c(s[4])});let g;return s[6]>0?g="red":s[6]<0&&(g="green"),z.push({label:"涨跌",value:`${i(s[6])}%`,color:g}),z}),_=r.computed(()=>{var s,z;return((z=(s=a.value)==null?void 0:s.mainIndicator)==null?void 0:z.map(g=>({label:g.key,value:i(g.data[j.value]),color:g.color})))||[]}),B=r.computed(()=>{var s,z;return((z=(s=a.value)==null?void 0:s.subIndicator)==null?void 0:z.map(g=>({label:g.key,color:g.color,value:g.data[j.value]||"-"})))||[]}),X=()=>{if(!Y.value)return console.warn("[K线] 主图DOM元素不存在,取消初始化"),!1;if(o)return!0;try{return o=ie.init(Y.value),o.on("highlight",W.j(s=>{var z;s.dataIndex?j.value=s.dataIndex:j.value=((z=s.batch)==null?void 0:z[0].dataIndex)??-1},10)),o.on("datazoom",W.j(async()=>{var h;const{loadCheckCount:s}=U,{startValue:z,endValue:g}=((h=o.getOption())==null?void 0:h.dataZoom[0])??{};O===!1&&D===!1&&z<s&&await je("history"),u===!1&&f===!1&&g>a.value.time.length-s&&await je("new"),ze(),ye()})),o.on("globalout",()=>{if(o){const s=o.getOption();j.value=s.dataZoom[0].endValue}}),o.getZr().on("contextmenu",()=>{var s;m.value=(s=a.value)==null?void 0:s.time[j.value]}),window.addEventListener("keydown",de),e.userKlineConfig.enable_subChart&&A.value&&(d=ie.init(A.value),ie.connect([o,d])),Y.value&&(L=W.D(Y.value),L.listen(()=>{requestAnimationFrame(()=>{var s;o==null||o.resize(),d==null||d.resize(),(s=x.value)==null||s.resize()})})),!0}catch(s){return console.error("[st-klinePlus]: 初始化异常:",s),!1}},ee=async({startTime:s,endTime:z})=>{const g=++I;O=!1,D=!1,u=!1,f=!1;try{if(T)return;y.value=!0;const h={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},w=ve(e.cycle,e.initialVisibleBars);Object.assign(h,{startTime:p.dayjs(s).subtract(w.amount,w.unit).format("YYYY-MM-DD HH:mm:ss"),endTime:p.dayjs(z).add(w.amount,w.unit).format("YYYY-MM-DD HH:mm:ss")});const{body:b}=await oe(M,h);if(T||g!==I)return;if(a.value=b??{data:[],mainIndicator:[],subIndicator:[],time:[]},!a.value.time.length){te({startValue:0,endValue:0});return}te(Pe({time:a.value.time,startTime:s,endTime:z,initialVisibleBars:e.initialVisibleBars}))}finally{g===I&&(y.value=!1)}},je=async s=>{var K,Z;const z=I,{loadAddCount:g}=U;switch(s){case"history":{O=!0;const V={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,endTime:a.value.time[0],limit:g,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:R}=await oe(M,V);if(T||z!==I){O=!1;return}a.value=Le(R,a.value),R.data.length<g&&(console.log("[K线] 获取更多数据: 左侧已全部获取完毕, 关闭"),D=!0),O=!1;break}case"new":{u=!0;const V={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:a.value.time[a.value.time.length-1],limit:g,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:k.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:R}=await oe(M,V);if(T||z!==I){u=!1;return}a.value=Le(a.value,R),R.data.length<g&&(console.log("[K线] 获取更多数据: 右侧已全部获取完毕, 关闭"),f=!0),u=!1;break}}const{startValue:h,endValue:w}=((K=o.getOption())==null?void 0:K.dataZoom[0])??{},b=(Z=o.getOption())==null?void 0:Z.xAxis[0].data,E=a.value.time.findIndex(V=>new Date(V)>=new Date(b[h])),F=a.value.time.findIndex(V=>new Date(V)>=new Date(b[w]));te({startValue:E===-1?0:E,endValue:F===-1?a.value.time.length-1:F})},ze=()=>{var b;if(!a.value.time.length)return l.value=[];const{time:s}=a.value,{startValue:z,endValue:g}=((b=o.getOption())==null?void 0:b.dataZoom[0])??{},h=s[z],w=s[g];["6","7","8"].includes(e.cycle)?l.value=[p.dayjs(h).format("YYYY-MM-DD"),p.dayjs(w).format("YYYY-MM-DD")]:l.value=[h,w]},te=(s={startValue:0,endValue:0})=>{if(!X()||!o)return console.warn("[st-klinePlus]: 图表未准备就绪, 跳过绘制");if(!a.value.time.length)return console.warn("[st-klinePlus]: 图表无数据, 跳过绘制");const{maxValueSpan:g}=U,{time:h,data:w,mainIndicator:b}=a.value,E=s.endValue-s.startValue>g?s.endValue-g:s.startValue,F=s.endValue,K=b.map(C=>({name:C.key,type:"line",silent:!0,symbol:"none",data:C.data,lineStyle:{width:C.width||1},itemStyle:{color:C.color}})),{netPositionLineData:Z}=_e(e.netPositionData,e.cycle),{tradeIncomeRateLineData:V}=Be(e.tradeIncomeRateData,e.cycle,e.incomeType,h),{tradePointData:R,tradeLineData:$}=Ue(e.tradeLog,e.cycle,e.sellBuy,h,w,e.userKlineConfig);o.setOption({animation:!1,grid:{top:"40px",left:"60px",right:"20px",bottom:"20px"},dataZoom:[{type:"inside",startValue:E,endValue:F,minValueSpan:U.minValueSpan,maxValueSpan:U.maxValueSpan}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:C=>{const{axisDimension:S,value:v}=C;return S==="x"?["6","7","8"].includes(e.cycle)?p.dayjs(v).format("YYYY-MM-DD"):v:String(i(v))}}},formatter:C=>{if(!(C!=null&&C.length))return null;let S="";if(C.forEach(Q=>{if(Q.seriesName==="netPosition"&&Q.data!==null&&(S+=`<div>资产持仓净值: ${Q.data[1]}</div>`),Q.componentSubType==="candlestick")if(e.sellBuy===0){const J=R.filter(H=>(H==null?void 0:H.coord[0])===Q.axisValue);let q=0,G=0;J.forEach(H=>{const{tradeType:Me,amount:ne}=H.customData;Me==="买"&&(q+=ne),Me==="卖"&&(G+=ne)}),q&&(S+=`<div>买: ${q}</div>`),G&&(S+=`<div>卖: ${G}</div>`)}else R.forEach(J=>{if((J==null?void 0:J.coord[0])===Q.axisValue){const{tradeType:q,amount:G,profitAndLoss:H,openPriceAll:Me,closePriceAll:ne}=J.customData;let ae=`<div>${q}: ${G}手</div>`;if(q.includes("开")&&(ae+=`<div>开仓价: ${(Me/G).toFixed(2)}</div>`),q.includes("平")){const ge=(Me/G).toFixed(2),Te=(ne/G).toFixed(2);ae+=`<div>平仓价: ${Te}</div>`,ae+=`<div>盈亏: ${H==null?void 0:H.toFixed(2)}</div>`,ae+=`<div>盈亏比率: ${((Te-ge)/ge*100).toFixed(2)} %</div>`}S+=ae}})}),!S)return null;let v=C[0].axisValue;return["6","7","8"].includes(e.cycle)&&(v=p.dayjs(v).format("YYYY-MM-DD")),`
2
2
  <div>
3
3
  <span style="font-weight: bold;">${v}</span>
4
4
  ${S}
package/es/KlinePlus.js CHANGED
@@ -1,27 +1,27 @@
1
- import { E as Ve, a as _e } from "./el-select-a34348e1.js";
1
+ import { E as Ve, a as _e } from "./el-select-a573c78b.js";
2
2
  import { E as $e } from "./el-empty-552baf04.js";
3
- import { v as He } from "./el-loading-db4c6d13.js";
3
+ import { v as He } from "./el-loading-9d3e405c.js";
4
4
  import { d as f } from "./base-dd156b8e.js";
5
5
  import "./el-scrollbar-0a42c1d0.js";
6
- import "./el-popper-852446fd.js";
7
- import "./el-tag-9bcfae32.js";
6
+ import "./el-popper-0454c8e8.js";
7
+ import "./el-tag-2d8a3fe7.js";
8
8
  import { openBlock as H, createElementBlock as G, Fragment as Ee, renderList as ve, normalizeStyle as Ze, toDisplayString as se, inject as Se, ref as V, onMounted as Qe, nextTick as Be, watch as re, onUnmounted as Pe, computed as ze, withDirectives as Ge, createElementVNode as q, createVNode as oe, createCommentVNode as Ne, withCtx as We, createBlock as we } from "vue";
9
9
  import * as ue from "echarts";
10
10
  import { x as Re, j as ce, D as Ke } from "./index-53cc4e43.js";
11
11
  import { _ as Ie } from "./_plugin-vue_export-helper-dad06003.js";
12
12
  import "./index-a181f161.js";
13
13
  import "./castArray-18eb6a41.js";
14
- import "./index-47d30a52.js";
15
- import "./use-form-item-187cd7db.js";
16
- import "./index-60900c6c.js";
14
+ import "./index-9573f74b.js";
15
+ import "./use-form-item-784142b4.js";
16
+ import "./index-6a52dc7c.js";
17
17
  import "./vnode-8ee9bf4e.js";
18
- import "./index-a0522466.js";
19
- import "./index-86678b72.js";
18
+ import "./index-d9379af4.js";
19
+ import "./index-c09fc6f5.js";
20
20
  import "./scroll-70271cb1.js";
21
- import "./index-7c4d8f5d.js";
21
+ import "./index-dddacf80.js";
22
22
  import "./toNumber-f077c66a.js";
23
23
  import "./clamp-c7512966.js";
24
- import "./use-global-config-17dafd40.js";
24
+ import "./use-global-config-9a4ccf33.js";
25
25
  const Je = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjM4NzI1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI2MjUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE5OC4wMTYgMTA5LjczODY2N0E3Ny44NjY2NjcgNzcuODY2NjY3IDAgMCAwIDE3MC42NjY2NjcgMTY3LjY4bDAuNTEyIDQxOC45NDRjMCAyMi44NjkzMzMgNi40IDQ4IDE5LjAyOTMzMyA3NS4zMDY2NjcgMTIuNjcyIDI3LjIyMTMzMyAyNy45ODkzMzMgNDguOTM4NjY3IDQ1Ljk1MiA2NC45Mzg2NjZsMjExLjE1NzMzMyAxODguMjAyNjY3YzE3LjA2NjY2NyAxNS40ODggNDAuNTc2IDIzLjk3ODY2NyA2NC45Mzg2NjcgMjMuNTk0NjY3IDI1LjY4NTMzMy0wLjA4NTMzMyA0Ny4zNi03LjkzNiA2NC45ODEz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Y2N2MwLTkuODk4NjY3LTMuNTg0LTE3LjYyMTMzMy0xMi41MDEzMzQtMjUuNkE1NC42OTg2NjcgNTQuNjk4NjY3IDAgMCAwIDc2MS42IDEyOGwtNDk5LjYyNjY2NyAwLjQ2OTMzM2E1MS4zMjggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==", { round: et } = Re, U = {
26
26
  // 单屏展示条目上限
27
27
  minValueSpan: 5,
@@ -1 +1 @@
1
- "use strict";const r=require("./index-bb0bc131.cjs");require("./index-3e7d5ffb.cjs");require("vue");require("./base-d987e5c9.cjs");require("./el-popper-f824c63b.cjs");require("./index-d372e68f.cjs");require("./use-form-item-0a831287.cjs");require("./el-input-c8a9bb71.cjs");require("./raf-735cc598.cjs");require("./index-7711aa69.cjs");require("./typescript-b63f8e83.cjs");require("./el-button-8259594b.cjs");require("./index-f5474dcc.cjs");require("./use-global-config-c90c91f7.cjs");require("./index-3ed0c678.cjs");require("./index-71ba4c28.cjs");require("./el-select-d2958ae8.cjs");require("./castArray-d9ffe84a.cjs");require("./vnode-6f7b84f0.cjs");require("./index-3a0a7c36.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./index-5e76a22d.cjs");require("./scroll-07bade1e.cjs");require("./el-tag-527f06f0.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./index-5dec535a.cjs");require("./config-provider-33a127c4.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./index-94131fd7.cjs");require("./VarietySelect-aa082a9c.cjs");require("./el-autocomplete-d9253bba.cjs");require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-message-0ea8fbf8.cjs");const i={install(e){e.component("st-monacoEditor",r.MonacoEditor)}};module.exports=i;
1
+ "use strict";const r=require("./index-4614e8e9.cjs");require("./index-5cada1ed.cjs");require("vue");require("./base-d987e5c9.cjs");require("./el-popper-acd0ff35.cjs");require("./index-d372e68f.cjs");require("./use-form-item-76516e50.cjs");require("./el-input-7fe53030.cjs");require("./raf-735cc598.cjs");require("./index-11181b5f.cjs");require("./typescript-b63f8e83.cjs");require("./el-button-fac5e058.cjs");require("./index-f5474dcc.cjs");require("./use-global-config-7ff9a1c2.cjs");require("./index-6a36e1fc.cjs");require("./index-71ba4c28.cjs");require("./el-select-c317294a.cjs");require("./castArray-d9ffe84a.cjs");require("./vnode-6f7b84f0.cjs");require("./index-beb5cb7d.cjs");require("./el-scrollbar-225c6c9e.cjs");require("./index-21a3dc89.cjs");require("./scroll-07bade1e.cjs");require("./el-tag-dca1292c.cjs");require("./toNumber-b47ceb68.cjs");require("./clamp-17c4d8aa.cjs");require("./index-ceae4c47.cjs");require("./config-provider-bb61bd3e.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./index-94131fd7.cjs");require("./VarietySelect-d2d25a3d.cjs");require("./el-autocomplete-13b9e372.cjs");require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-message-0ea8fbf8.cjs");const i={install(e){e.component("st-monacoEditor",r.MonacoEditor)}};module.exports=i;