st-comp 0.0.207 → 0.0.208

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 (160) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +1 -74
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +53 -56
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +45 -48
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +1 -118
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +16 -19
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +81 -84
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +161 -164
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +15 -18
  17. package/es/KlinePlus.cjs +1 -1
  18. package/es/KlinePlus.js +18 -21
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +140 -143
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +2 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +55 -58
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +85 -88
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +53 -56
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +15 -17
  31. package/es/VarietySearch.cjs +10 -10
  32. package/es/VarietySearch.js +53 -56
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +33 -36
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +103 -106
  37. package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
  38. package/es/_initCloneObject-e660897e.cjs +1 -0
  39. package/es/base-7ba08794.cjs +5 -0
  40. package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
  41. package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
  42. package/es/castArray-efa457a5.cjs +1 -0
  43. package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
  44. package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
  45. package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
  46. package/es/debounce-4aa22feb.cjs +1 -0
  47. package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
  48. package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
  49. package/es/el-autocomplete-609ac86d.cjs +1 -0
  50. package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
  51. package/es/el-button-08310c06.cjs +1 -0
  52. package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
  53. package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
  54. package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
  55. package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
  56. package/es/el-dialog-ea480083.cjs +1 -0
  57. package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
  58. package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
  59. package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
  60. package/es/el-empty-b40fa7ea.cjs +1 -0
  61. package/es/el-form-item-338ea2f7.cjs +12 -0
  62. package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
  63. package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
  64. package/es/el-input-b04b5bfc.cjs +1 -0
  65. package/es/el-input-number-7242c8b5.cjs +1 -0
  66. package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
  67. package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
  68. package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
  69. package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
  70. package/es/el-menu-item-7aca344e.cjs +1 -0
  71. package/es/el-message-05cd85bf.cjs +1 -0
  72. package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
  73. package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
  74. package/es/el-message-box-b7e9917e.cjs +1 -0
  75. package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
  76. package/es/el-overlay-60bc5a02.cjs +1 -0
  77. package/es/el-popconfirm-24b622c5.cjs +1 -0
  78. package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
  79. package/es/el-popper-1dd8f5b4.cjs +1 -0
  80. package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
  81. package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
  82. package/es/el-segmented-a928d89b.cjs +1 -0
  83. package/es/el-select-5fd77a96.cjs +1 -0
  84. package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
  85. package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
  86. package/es/el-table-column-bf3ab2a6.cjs +14 -0
  87. package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
  88. package/es/el-tag-d59f3463.cjs +1 -0
  89. package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
  90. package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
  91. package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
  92. package/es/{index-88546436.js → index-29418a8d.js} +18 -18
  93. package/es/index-3d0bc5da.js +566 -0
  94. package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
  95. package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
  96. package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
  97. package/es/index-a206f6eb.cjs +1 -0
  98. package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
  99. package/es/index-b4700d83.cjs +1 -0
  100. package/es/index-c30cf7f9.cjs +1 -0
  101. package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
  102. package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
  103. package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
  104. package/es/raf-d8c44079.js +6 -0
  105. package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
  106. package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
  107. package/es/style.css +1 -1
  108. package/es/use-form-common-props-41182853.cjs +1 -0
  109. package/es/use-form-common-props-4cdda474.js +671 -0
  110. package/es/use-global-config-7bfbe48c.js +71 -0
  111. package/es/use-global-config-dc5527e8.cjs +1 -0
  112. package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
  113. package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
  114. package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
  115. package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
  116. package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
  117. package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
  118. package/lib/bundle.js +1 -1
  119. package/lib/bundle.umd.cjs +1 -1
  120. package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
  121. package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
  122. package/lib/style.css +1 -1
  123. package/package.json +1 -1
  124. package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
  125. package/es/_initCloneObject-52b6a510.cjs +0 -1
  126. package/es/base-a5af3db3.js +0 -288
  127. package/es/base-ef747d02.cjs +0 -5
  128. package/es/castArray-35947698.cjs +0 -1
  129. package/es/debounce-62f5b6e8.cjs +0 -1
  130. package/es/el-autocomplete-a07e9439.cjs +0 -1
  131. package/es/el-button-eec58cff.cjs +0 -1
  132. package/es/el-dialog-ae86edb8.cjs +0 -1
  133. package/es/el-empty-1697ded8.cjs +0 -1
  134. package/es/el-form-item-c3fe189b.cjs +0 -12
  135. package/es/el-input-7fd293af.cjs +0 -1
  136. package/es/el-input-number-22e21d16.cjs +0 -1
  137. package/es/el-menu-item-17dc717e.cjs +0 -1
  138. package/es/el-message-5e6a6be9.cjs +0 -1
  139. package/es/el-message-box-c10adb52.cjs +0 -1
  140. package/es/el-overlay-9e34965f.cjs +0 -1
  141. package/es/el-popconfirm-70a976bf.cjs +0 -1
  142. package/es/el-popper-b6c99b28.cjs +0 -1
  143. package/es/el-segmented-f8fce9ac.cjs +0 -1
  144. package/es/el-select-d8d91db1.cjs +0 -1
  145. package/es/el-table-column-c974cb96.cjs +0 -14
  146. package/es/el-tag-a33c4b22.cjs +0 -1
  147. package/es/index-098c2447.cjs +0 -1
  148. package/es/index-960806da.js +0 -314
  149. package/es/index-9780a537.cjs +0 -1
  150. package/es/index-9b9ef5dd.cjs +0 -1
  151. package/es/index-bb833443.cjs +0 -1
  152. package/es/index-c108567d.cjs +0 -1
  153. package/es/index-d77a7336.js +0 -204
  154. package/es/index-e5566b94.js +0 -368
  155. package/es/index-f3562b52.cjs +0 -1
  156. package/es/raf-80ef0c0a.js +0 -6
  157. package/es/use-form-common-props-815d48a6.js +0 -364
  158. package/es/use-form-common-props-fd9b61a0.cjs +0 -1
  159. package/es/use-global-config-30d7d8ce.cjs +0 -1
  160. package/es/use-global-config-b5e9d3d5.js +0 -72
package/es/KlineBasic.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";require("./base-ef747d02.cjs");const ve=require("./el-dialog-ae86edb8.cjs");require("./el-overlay-9e34965f.cjs");require("./el-input-7fd293af.cjs");const xe=require("./el-input-number-22e21d16.cjs"),be=require("./el-button-eec58cff.cjs"),he=require("./el-empty-1697ded8.cjs"),ie=require("./el-menu-item-17dc717e.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-popper-b6c99b28.cjs");const e=require("vue"),_e=require("echarts"),c=require("./dayjs.min-2c20abe6.cjs"),j=require("./index-8901a38c.cjs"),J=require("./el-message-5e6a6be9.cjs"),U=require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-tag-a33c4b22.cjs");const se=require("./el-select-d8d91db1.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./index-098c2447.cjs");require("./use-form-common-props-fd9b61a0.cjs");require("./index-9780a537.cjs");require("./index-bb833443.cjs");require("./index-f1c702f6.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-c108567d.cjs");require("./typescript-b63f8e83.cjs");require("./index-11547a0c.cjs");require("./index-eea0bcb3.cjs");require("./config-provider-a584d81e.cjs");require("./index-298075cf.cjs");require("./index-f3562b52.cjs");require("./castArray-35947698.cjs");require("./debounce-62f5b6e8.cjs");function Ye(o){const V=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const M in o)if(M!=="default"){const b=Object.getOwnPropertyDescriptor(o,M);Object.defineProperty(V,M,b.get?b:{enumerable:!0,get:()=>o[M]})}}return V.default=o,Object.freeze(V)}const ne=Ye(_e);let z=null;const ke=o=>{const V=j.y(o,{handleReq:M=>{j.v()&&(M.headers.token=j.U())},handleRes:M=>{const{data:b}=M;if(b.code===401)return location.origin.includes("localhost")?location.href=`${location.origin}/#/404`:j.K(),!0}});V.get,z=V.post},we=o=>z("/middleLayer/kline/getKlineBasic",{...o,userId:j.V("id")}),De=o=>z("/middleLayer/kline/getKline",o),Me=async o=>z("/alarm/deliversign/addAlarmPrice",{...o,userId:j.V("id")}),Se=async o=>z("/alarm/deliversign/findAlarmPriceByUserId",{...o,userId:j.V("id")}),ue=async o=>z("/alarm/deliversign/updateAlarmPrice",{...o,userId:j.V("id")}),Ve=async o=>z("/alarm/deliversign/deleteAlarmPrice",{...o,userId:j.V("id")}),{round:K}=j.x,Le=(o,V,M,b,v)=>{const{data:t,time:k}=o,{gridTop:h,gridRight:u,gridLeft:_,maxShowCounts:Y,showSubChart:l}=V;return{animation:!1,grid:{top:`${h}px`,right:`${u}px`,bottom:l?"6px":"24px",left:`${_}px`},dataZoom:[{type:"inside",startValue:M,endValue:b,maxValueSpan:Y}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:r=>{const{axisDimension:w,value:y}=r;return w==="x"?l?"":["6","7","8"].includes(v)?c.dayjs(y).format("YYYY-MM-DD"):y:String(K(y))}}},formatter:()=>""},xAxis:{show:!l,type:"category",data:k,splitLine:{show:!1},axisLabel:{formatter:r=>["6","7","8"].includes(v)?c.dayjs(r).format("YYYY-MM-DD"):r}},yAxis:{type:"value",axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},min:r=>K(r.min),max:r=>K(r.max)},series:[{type:"candlestick",data:t,itemStyle:{color:"transparent",color0:"#00FFFF",borderColor:"#FF0000",borderColor0:"#00FFFF",borderWidth:1}},...o.mainIndicator.map(r=>({name:r.key,type:"line",silent:!0,symbol:"none",data:r.data,lineStyle:{width:r.width||1},itemStyle:{color:r.color}}))],toolbox:{show:!1},brush:{xAxisIndex:"all",brushLink:"all",transformable:!1,outOfBrush:{colorAlpha:2},brushStyle:{color:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.4)"}}}},Te=(o,V,M,b,v)=>{const{variety:t,featureId:k,featureType:h}=M,{gridTop:u,gridLeft:_,gridRight:Y}=b;return V.reduce((l,r)=>{const{warnPrice:w}=r,y=o==null?void 0:o.convertToPixel({yAxisIndex:0},w);if(y<=u||y>=(o==null?void 0:o.getHeight()))return l;let E=0;return[...l,{type:"group",name:"warningLine",info:r,draggable:"vertical",children:[{type:"line",info:r,shape:{x1:_,y1:y,x2:(o==null?void 0:o.getWidth())-Y,y2:y},style:{stroke:"#FFF",lineWidth:1,lineDash:[8,4]},z:10},{type:"text",info:r,x:(o==null?void 0:o.getWidth())-Y,y:y-5,style:{fill:"#FFF",text:w,stroke:"#000",lineWidth:1,opacity:1},z:10}],ondragstart:S=>{E=S.offsetY},ondrag:S=>{var R;if(S.target&&S.target.childAt(1)){const L=o.convertFromPixel({yAxisIndex:0},y+(S.offsetY-E));(R=S.target.childAt(1))==null||R.animate("style",!1).when(1,{text:K(L,3)}).start()}},ondragend:async S=>{const L=S.offsetY-E;if(L!==0){const N=o==null?void 0:o.convertFromPixel({yAxisIndex:0},L+y),d={id:r.id,warnPrice:K(N,3),featureId:k,featureCode:t,featureType:h};await ue(d),J.ElMessage.success("画线预警修改成功"),v&&v()}}}]},[])},Be={class:"kline-tips"},Ee=e.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(o){return(V,M)=>(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(b,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"kline-tips-item",style:e.normalizeStyle({color:b.color})},e.toDisplayString(b.label)+" "+e.toDisplayString(b.value),5))),128))]))}});const oe=U._export_sfc(Ee,[["__scopeId","data-v-f83b6b36"]]);const Ne={class:"kline-tips"},Fe={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0}},setup(o){const{round:V,formatValue:M}=j.x,b=o,v=e.computed(()=>{const{data:k,activeIndex:h}=b;if(k.data&&k.data[h]){const u=k.data[h],_=[{label:"开",value:u[0]},{label:"高",value:u[3]},{label:"低",value:u[2]},{label:"收",value:u[1]}];u[4]!==null&&_.push({label:"额",value:M(u[4])});let Y;return u[6]>0?Y="red":u[6]<0&&(Y="green"),_.push({label:"涨跌",value:`${u[6]}%`,color:Y}),_}return[]}),t=e.computed(()=>{var u;const{data:k,activeIndex:h}=b;return((u=k==null?void 0:k.mainIndicator)==null?void 0:u.map(_=>({label:_.key,value:V(_.data[h]),color:_.color})))||[]});return(k,h)=>(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(oe,{data:v.value},null,8,["data"]),e.createVNode(oe,{data:t.value},null,8,["data"])]))}},qe=U._export_sfc(Fe,[["__scopeId","data-v-b1a144a9"]]);const je={class:"klineSub"},Re={class:"klineSub-tips"},Ae={key:0,class:"klineSub-tips-select"},Oe={__name:"index",props:{cycle:{type:[String,Number],default:()=>null},data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0}},emits:["update:modelValue"],setup(o,{expose:V,emit:M}){const{round:b}=j.x;let v,t;const k=M,h=o,u=e.ref(),_=e.computed({get(){return h.modelValue},set(r){k("update:modelValue",r)}}),Y=e.computed(()=>{var y;const{data:r,activeIndex:w}=h;return((y=r==null?void 0:r.subIndicator)==null?void 0:y.map(E=>({label:E.key,color:E.color,value:E.data[w]||"-"})))||[]});e.onMounted(()=>{v=ne.init(u.value);let r=!0;t=new ResizeObserver(()=>{if(r){r=null;return}v.resize()}),t.observe(u.value)}),e.onUnmounted(()=>{v.dispose(),t.disconnect(),t=null});const l=(r,w)=>{const y=r[w],E=w===0?r[w]:r[w-1];return y[0]===y[1]?y[0]>=E[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:y[1]>y[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return V({connect:r=>{ne.connect([r,v])},draw:(r,w)=>{e.nextTick(()=>{const{startValue:y,endValue:E,maxValueSpan:S}=r,{leftYAxisRange:R,rightYAxisRange:L}=h.data.subIndicator[0],N=h.data.subIndicator.map(d=>{if(d.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:d.data.map((O,P)=>d.seriesColor==="kline"?{value:O,itemStyle:l(h.data.data,P)}:d.seriesColor==="value"?{value:O,itemStyle:{color:O>=0?"#FF0000":"#00FFFF"}}:{value:O,itemStyle:{color:d.seriesColor}})};if(d.series==="line")return{xAxisIndex:0,yAxisIndex:d.yAxis==="right"?2:1,name:d.key,type:"line",silent:!0,symbol:"none",data:d.data,lineStyle:{width:1},itemStyle:{color:d.color}}});v.setOption({animation:!1,grid:{left:`${w.gridLeft}px`,top:"10px",right:`${w.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:y,endValue:E,maxValueSpan:S}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:d=>{const{axisDimension:O,value:P}=d;if(O==="x")return["6","7","8"].includes(h.cycle)?c.dayjs(P).format("YYYY-MM-DD"):P;if(d.axisIndex===1)return String(b(P))}}},formatter:()=>""},xAxis:{type:"category",data:h.data.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{formatter:d=>["6","7","8"].includes(h.cycle)?c.dayjs(d).format("YYYY-MM-DD"):d}},yAxis:[{position:"right"},{position:"left",min:R==="cover"?d=>d.min:null,max:R==="cover"?d=>d.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:L==="cover"?d=>d.min:null,max:L==="cover"?d=>d.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:N},!0)})}}),(r,w)=>{const y=se.ElOption,E=se.ElSelect;return e.openBlock(),e.createElementBlock("div",je,[e.createElementVNode("div",Re,[Y.value.length?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(E,{modelValue:_.value,"onUpdate:modelValue":w[0]||(w[0]=S=>_.value=S),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.subIndicatorList,S=>(e.openBlock(),e.createBlock(y,{key:S.value,label:S.label,value:S.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.createVNode(oe,{data:Y.value},null,8,["data"])]),e.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:u},null,512)])}}},Ie=U._export_sfc(Oe,[["__scopeId","data-v-ab519de5"]]),Pe=e.defineComponent({__name:"index",emits:["closeContextMenuCallBack"],setup(o,{emit:V}){const M=V,b=e.ref(),v=e.ref(),t=e.ref({display:"none",top:"0px",left:"0px"}),k=()=>{t.value.display="none",M("closeContextMenuCallBack"),document.removeEventListener("click",k)},h=u=>{if(u.preventDefault(),t.value.display==="block"){const{offsetX:_,offsetY:Y}=u,{offsetWidth:l,offsetHeight:r}=v.value;if(_<=l&&Y<=r)return}b.value.click(),t.value={display:"block",top:`${u.offsetY}px`,left:`${u.offsetX}px`},e.nextTick(()=>{const _=b.value.getBoundingClientRect(),Y=v.value.getBoundingClientRect();Y.left+Y.width>=_.right&&(t.value.left=`${u.offsetX-Y.width}px`),Y.top+Y.height>=_.bottom&&(console.log("高度超出"),t.value.top=`${u.offsetY-Y.height}px`)}),document.addEventListener("click",k)};return(u,_)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contextmenuRef",ref:b,class:"contextmenu",onContextmenu:h,onMouseleave:k},[e.renderSlot(u.$slots,"default",{},void 0,!0),t.value.display!=="none"?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"contextmenuContentRef",ref:v,class:"contextmenu-popover",style:e.normalizeStyle(t.value)},[e.renderSlot(u.$slots,"popover",{},void 0,!0)],4)):e.createCommentVNode("",!0)],544))}});const $e=U._export_sfc(Pe,[["__scopeId","data-v-811db6b4"]]);const ce=o=>(e.pushScopeId("data-v-9e6456be"),o=o(),e.popScopeId(),o),Ce={class:"klineBasic-tips"},We={key:0,class:"klineBasic-sub"},ze={key:1,class:"klineBasic-empty"},Ke={key:2,class:"klineBasic-error"},Ue=ce(()=>e.createElementVNode("div",{class:"klineBasic-error-content"},"加载失败,请刷新重试",-1)),He={style:{"text-align":"center"}},Ze=ce(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},"预警价格:",-1)),Xe={class:"dialog-footer"},Ge={__name:"index",props:{variety:{type:[String,Number],default:()=>null},varietyName:{type:[String,Number],default:()=>null},featureId:{type:[String,Number],default:()=>null},featureType:{type:[String,Number],default:()=>null},cycle:{type:[String,Number],default:()=>null},mainIndicator:{type:String,default:()=>""},indicatorStore:{type:Object,default:()=>null},startTime:{type:String,default:()=>null},endTime:{type:String,default:()=>null},right:{type:[String,Number],default:1},config:{type:Object,default:()=>({})},env:{type:Object,default:()=>({})},brushRange:{type:[Array,null],default:()=>null}},emits:["change","getFactorData"],setup(o,{expose:V,emit:M}){const b=[{label:"画线预警",key:"drawWarningLine"}];let v=null,t=null,k,h,u=!1,_=!1;const Y=M,l=o,r=e.ref(!1),w=e.ref(!1),y=e.ref(!1),E=e.ref(null),S=e.ref(null),R=e.ref("VOL"),L=e.ref(0),N=e.ref({}),d=e.ref([]),O=e.ref({}),P=e.ref(!1),H=e.ref(""),Q=e.ref([...b]),C=e.computed(()=>({defaultShowCounts:500,addCounts:2e3,maxShowCounts:5e3,loadCheckCounts:500,showSubChart:!0,gridTop:48,gridLeft:80,gridRight:50,showWarningLine:!0,getFactorData:!0,...l.config}));e.watch(()=>{var i,n;return[l.variety,l.cycle,l.mainIndicator,R.value,(i=l.indicatorStore)==null?void 0:i.filterIndicator,(n=l.indicatorStore)==null?void 0:n.customIndicator]},()=>{ee()},{deep:!0}),e.onMounted(()=>{ke(l.env),ee(),window.addEventListener("keydown",ae)}),e.onUnmounted(()=>{t==null||t.off("datazoom"),t==null||t.off("highlight"),t==null||t.off("globalout"),t==null||t.dispose(),v==null||v.dispose(),window.removeEventListener("keydown",ae)});const de=()=>{t||(t=ne.init(E.value),fe(),C.value.showSubChart&&S.value.connect(t),v=j.D(E.value),v.listen(()=>{requestAnimationFrame(()=>{t.resize()})}))},ae=({code:i,ctrlKey:n})=>{if(!(n||r.value))return;const{xAxis:m,dataZoom:f}=t.getOption(),{data:p}=(m==null?void 0:m[0])??{data:[]};let{startValue:a,endValue:s}=(f==null?void 0:f[0])??{};if(p!=null&&p.length){switch(i){case"ArrowUp":{if(s-a<5)return;const D=Math.floor((s-a)/2)+1;a=a+D,s-a<5&&(a=s-4);break}case"ArrowDown":{const D=Math.min(500,s-a);a=a-D-1;break}case"ArrowLeft":{a>0&&(a-=1,s-=1),L.value>0&&(L.value-=1);break}case"ArrowRight":{s<p.length-1&&(a+=1,s+=1),r.value&&L.value<p.length-1&&(L.value+=1);break}}t.dispatchAction({type:"dataZoom",startValue:a,endValue:s}),t.dispatchAction({type:"updateAxisPointer",seriesIndex:0,dataIndex:r.value?L.value:null}),t.dispatchAction({type:"highlight",dataIndex:r.value?L.value:s})}},fe=()=>{t==null||t.on("datazoom",n=>{clearTimeout(h),h=setTimeout(()=>{var f,p,a,s;const{loadCheckCounts:m}=C.value;if((p=(f=t==null?void 0:t.getOption())==null?void 0:f.dataZoom)!=null&&p[0]){const{startValue:D}=(s=(a=t==null?void 0:t.getOption())==null?void 0:a.dataZoom)==null?void 0:s[0];D<m&&u===!1&&_===!1&&(u=!0,pe("history")),Z()}clearTimeout(h)},100)}),t==null||t.on("highlight",n=>{var f,p;let m=n.dataIndex||-1;n.batch&&(m=typeof((f=n==null?void 0:n.batch[0])==null?void 0:f.dataIndex)=="number"?(p=n==null?void 0:n.batch[0])==null?void 0:p.dataIndex:-1),clearTimeout(k),k=setTimeout(()=>{L.value=m,clearTimeout(k)},20)}),t==null||t.on("globalout",()=>{var m,f,p;const n=(p=(f=(m=t==null?void 0:t.getOption())==null?void 0:m.dataZoom)==null?void 0:f[0])==null?void 0:p.endValue;L.value=n});let i=null;t==null||t.on("contextmenu",n=>{i=setTimeout(()=>{n.componentType==="graphic"&&(O.value=n.info,Q.value=[{label:"删除画线",key:"deleteWarningLine"},{label:"修改画线",key:"changeWarningLine"}]),clearTimeout(i),i=null})})},ee=async()=>{var i,n,m,f,p,a;try{if(!l.variety||!l.cycle)return;const{variety:s,featureId:D,cycle:T,indicatorStore:x,mainIndicator:I,right:$,startTime:W,endTime:B}=l,{defaultShowCounts:F,addCounts:g,showWarningLine:te,getFactorData:G}=C.value,q={variety:s,featureId:D,cycle:T,mainIndicatorList:x.getIndicatorParams(I),subIndicator:R.value,right:$,showWarningLine:te,getFactorData:G};W&&B?(q.startTime=W,q.endTime=B):W?(q.startTime=W,q.limit=F+g):B?(q.endTime=B,q.limit=F+g):(q.endTime=c.dayjs().add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),q.limit=F+g);const A=await we(q);if((m=(n=(i=A==null?void 0:A.body)==null?void 0:i.kline)==null?void 0:n.time)!=null&&m.length)w.value=!1,y.value=!1;else{w.value=!0,y.value=!1;return}N.value=(f=A==null?void 0:A.body)==null?void 0:f.kline,d.value=((p=A==null?void 0:A.body)==null?void 0:p.warningLine)||[],re(),Z(),G&&Y("getFactorData",(a=A==null?void 0:A.body)==null?void 0:a.factor)}catch(s){throw y.value=!0,w.value=!1,new Error(s)}},pe=async i=>{const{variety:n,cycle:m,indicatorStore:f,mainIndicator:p,right:a}=l,{addCounts:s}=C.value,{time:D}=N.value;if(i==="history"){const T=await De({variety:n,cycle:m,endTime:D[0],limit:s,mainIndicatorList:f.getIndicatorParams(p),subIndicator:R.value,right:a});N.value={time:[...T.body.time,...N.value.time.slice(1)],data:[...T.body.data,...N.value.data.slice(1)],mainIndicator:N.value.mainIndicator.map((x,I)=>{var $;return{...x,data:[...(($=T.body.mainIndicator[I])==null?void 0:$.data)??[],...x.data.slice(1)]}}),subIndicator:N.value.subIndicator.map((x,I)=>{var $;return{...x,data:[...(($=T.body.subIndicator[I])==null?void 0:$.data)??[],...x.data.slice(1)]}})},re(!0),T.body.data.length<s&&(_=!0),u=!1}},re=(i=!1)=>{var I,$,W;de();const{time:n}=N.value,{gridRight:m,gridLeft:f,defaultShowCounts:p,maxShowCounts:a,showSubChart:s}=C.value;let D=n.length-1-p,T=n.length-1;if(i){const B=t.getOption(),F=($=(I=B==null?void 0:B.xAxis)==null?void 0:I[0])==null?void 0:$.data,g=(W=B==null?void 0:B.dataZoom)==null?void 0:W[0],te=F[g==null?void 0:g.startValue],G=F[g==null?void 0:g.endValue];D=n.findIndex(q=>q===te),T=n.findIndex(q=>q===G)}const x=Le(N.value,C.value,D,T,l.cycle);if(t.setOption(x,!0),L.value=T,l.brushRange){let B=null,F=null;switch(l.cycle){case"6":{B=n.find(g=>new Date(g).getTime()>=new Date(l.brushRange[0]).getTime()||c.dayjs(g).format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).format("YYYY-MM-DD")),F=n.findLast(g=>new Date(g).getTime()<=new Date(l.brushRange[1]).getTime()||c.dayjs(g).format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).format("YYYY-MM-DD"));break}case"7":{B=n.find(g=>c.dayjs(g).day(5).format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).day(5).format("YYYY-MM-DD")),F=n.findLast(g=>c.dayjs(g).day(5).format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).day(5).format("YYYY-MM-DD"));break}case"8":{B=n.find(g=>c.dayjs(g).endOf("month").format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).endOf("month").format("YYYY-MM-DD")),F=n.findLast(g=>c.dayjs(g).endOf("month").format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).endOf("month").format("YYYY-MM-DD"));break}default:B=n.find(g=>new Date(g).getTime()>=new Date(l.brushRange[0]).getTime()),F=n.findLast(g=>new Date(g).getTime()<=new Date(l.brushRange[1]).getTime())}console.log(B,F),t.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[B,F],xAxisIndex:0}]})}s&&S.value.draw({startValue:D,endValue:T,maxValueSpan:a},{gridLeft:f,gridRight:m}),le()},Z=()=>{if(!t)return;const i=t==null?void 0:t.getOption();i&&(t==null||t.setOption({...i,graphic:[...Te(t,d.value,l,C.value,()=>{X()})]},!0),le())},le=()=>{const{time:i}=N.value;if(l.brushRange&&(i!=null&&i.length)){let n=c.dayjs(l.brushRange[0]).format("YYYY-MM-DD 00:00:00"),m=c.dayjs(l.brushRange[1]).format("YYYY-MM-DD 23:59:59"),f=null,p=null;switch(l.cycle){case"6":{f=i.find(a=>c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(n).format("YYYY-MM-DD")),p=f;break}case"7":{f=i.find(a=>c.dayjs(a).day(5).format("YYYY-MM-DD")===c.dayjs(n).day(5).format("YYYY-MM-DD")),p=i.findLast(a=>c.dayjs(a).day(5).format("YYYY-MM-DD")===c.dayjs(m).day(5).format("YYYY-MM-DD"));break}case"8":{f=i.find(a=>c.dayjs(a).endOf("month").format("YYYY-MM-DD")===c.dayjs(n).endOf("month").format("YYYY-MM-DD")),p=i.findLast(a=>c.dayjs(a).endOf("month").format("YYYY-MM-DD")===c.dayjs(m).endOf("month").format("YYYY-MM-DD"));break}default:f=i.find(a=>{const s=c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(n).format("YYYY-MM-DD"),D=new Date(a).getTime()>=new Date(n).getTime();return s&&D}),p=i.findLast(a=>{const s=c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(m).format("YYYY-MM-DD"),D=new Date(a).getTime()<=new Date(m).getTime();return s&&D})}t.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[f,p],xAxisIndex:0}]})}},X=async()=>{const i=await Se({featureId:l.featureId});d.value=(i==null?void 0:i.body)||[],Z(),Y("change","warningLine",d.value)},ye=async i=>{const{variety:n,varietyName:m,featureId:f,featureType:p}=l;if(i.key==="drawWarningLine"){const a=t==null?void 0:t.getOption(),s=a.tooltip[0];t==null||t.setOption({...a,tooltip:{...s,axisPointer:{...s.axisPointer,lineStyle:{width:0},crossStyle:{width:2},label:{...s.axisPointer.label,backgroundColor:"transparent",formatter:T=>""}}}});const D=async T=>{t==null||t.getZr().off("mousedown",D);const x=t==null?void 0:t.convertFromPixel({yAxisIndex:0},T.offsetY),I=Math.round(x*1e3)/1e3;t==null||t.setOption({...a,tooltip:{...s,axisPointer:{...s.axisPointer,lineStyle:{width:1},crossStyle:{width:1},label:{...s.axisPointer.label,backgroundColor:null}}}}),await Me({featureCode:n,featureName:m,featureId:f,featureType:p,warnPrice:I}),J.ElMessage.success("画线预警成功!"),X()};t==null||t.getZr().on("mousedown",D)}else i.key==="deleteWarningLine"?(await Ve({id:O.value.id}),J.ElMessage.success("画线预警删除成功"),X()):i.key==="changeWarningLine"&&(P.value=!0,H.value=O.value.warnPrice)},me=async()=>{const{variety:i,varietyName:n,featureId:m,featureType:f}=l;await ue({id:O.value.id,featureCode:i,featureName:n,featureId:m,featureType:f,warnPrice:H.value}),J.ElMessage.success("画线预警修改成功"),X()},ge=()=>{Q.value=[...b]};return V({draw:(i,n)=>{i==="warningLine"&&(d.value=n,Z())}}),(i,n)=>{var T;const m=ie.ElMenuItem,f=ie.ElMenu,p=he.ElEmpty,a=be.ElButton,s=xe.ElInputNumber,D=ve.ElDialog;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"klineBasic",onMousemove:n[1]||(n[1]=x=>r.value=!0),onMouseout:n[2]||(n[2]=x=>r.value=!1)},[e.createElementVNode("div",Ce,[e.createVNode(qe,{data:N.value,activeIndex:L.value},null,8,["data","activeIndex"])]),e.createElementVNode("div",{class:"klineBasic-main",style:e.normalizeStyle({height:C.value.showSubChart?"70%":"100%"})},[e.createVNode($e,{onCloseContextMenuCallBack:ge},{popover:e.withCtx(()=>[e.createVNode(f,{style:{borderRadius:"4px",overflow:"hidden",background:"#fff",borderRight:0}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,x=>(e.openBlock(),e.createBlock(m,{style:{height:"36px"},key:x.key,index:x.key,onClick:I=>ye(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["index","onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"klineBasicMainRef",ref:E,style:{height:"100%"}},null,512)]),_:1})],4),C.value.showSubChart?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(Ie,{ref_key:"klineSubRef",ref:S,modelValue:R.value,"onUpdate:modelValue":n[0]||(n[0]=x=>R.value=x),data:N.value,cycle:o.cycle,activeIndex:L.value,subIndicatorList:(T=o.indicatorStore)==null?void 0:T.subIndicatorList},null,8,["modelValue","data","cycle","activeIndex","subIndicatorList"])])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(p,{class:"klineBasic-empty-content",description:"暂无数据"})])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("div",Ke,[Ue,e.createElementVNode("div",He,[e.createVNode(a,{onClick:ee},{default:e.withCtx(()=>[e.createTextVNode("刷新")]),_:1})])])):e.createCommentVNode("",!0)],32),e.createVNode(D,{modelValue:P.value,"onUpdate:modelValue":n[5]||(n[5]=x=>P.value=x),title:"画线预警-修改价格",width:"30%","align-center":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Xe,[e.createVNode(a,{onClick:n[4]||(n[4]=x=>P.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(a,{type:"primary",onClick:me},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[Ze,e.createVNode(s,{modelValue:H.value,"onUpdate:modelValue":n[3]||(n[3]=x=>H.value=x),placeholder:"输入预警价格"},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},Je=U._export_sfc(Ge,[["__scopeId","data-v-9e6456be"]]),Qe={install(o){o.component("st-klineBasic",Je)}};module.exports=Qe;
1
+ "use strict";require("./base-7ba08794.cjs");const ve=require("./el-dialog-ea480083.cjs");require("./el-overlay-60bc5a02.cjs");require("./el-input-b04b5bfc.cjs");const xe=require("./el-input-number-7242c8b5.cjs"),be=require("./el-button-08310c06.cjs"),he=require("./el-empty-b40fa7ea.cjs"),ie=require("./el-menu-item-7aca344e.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./el-popper-1dd8f5b4.cjs");const e=require("vue"),_e=require("echarts"),c=require("./dayjs.min-2c20abe6.cjs"),j=require("./index-8901a38c.cjs"),J=require("./el-message-05cd85bf.cjs"),U=require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-tag-d59f3463.cjs");const se=require("./el-select-5fd77a96.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./use-form-common-props-41182853.cjs");require("./index-c30cf7f9.cjs");require("./index-f1c702f6.cjs");require("./vnode-8cb31692.cjs");require("./scroll-19533c53.cjs");require("./use-global-config-dc5527e8.cjs");require("./typescript-b63f8e83.cjs");require("./index-d8294b1a.cjs");require("./index-eea0bcb3.cjs");require("./config-provider-18c0a68a.cjs");require("./index-ae6c9d97.cjs");require("./index-a206f6eb.cjs");require("./castArray-efa457a5.cjs");require("./debounce-4aa22feb.cjs");function Ye(o){const S=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const M in o)if(M!=="default"){const b=Object.getOwnPropertyDescriptor(o,M);Object.defineProperty(S,M,b.get?b:{enumerable:!0,get:()=>o[M]})}}return S.default=o,Object.freeze(S)}const ne=Ye(_e);let z=null;const ke=o=>{const S=j.y(o,{handleReq:M=>{j.v()&&(M.headers.token=j.U())},handleRes:M=>{const{data:b}=M;if(b.code===401)return location.origin.includes("localhost")?location.href=`${location.origin}/#/404`:j.K(),!0}});S.get,z=S.post},we=o=>z("/middleLayer/kline/getKlineBasic",{...o,userId:j.V("id")}),De=o=>z("/middleLayer/kline/getKline",o),Me=async o=>z("/alarm/deliversign/addAlarmPrice",{...o,userId:j.V("id")}),Se=async o=>z("/alarm/deliversign/findAlarmPriceByUserId",{...o,userId:j.V("id")}),ue=async o=>z("/alarm/deliversign/updateAlarmPrice",{...o,userId:j.V("id")}),Ve=async o=>z("/alarm/deliversign/deleteAlarmPrice",{...o,userId:j.V("id")}),{round:K}=j.x,Le=(o,S,M,b,v)=>{const{data:t,time:k}=o,{gridTop:h,gridRight:u,gridLeft:_,maxShowCounts:Y,showSubChart:l}=S;return{animation:!1,grid:{top:`${h}px`,right:`${u}px`,bottom:l?"6px":"24px",left:`${_}px`},dataZoom:[{type:"inside",startValue:M,endValue:b,maxValueSpan:Y}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:r=>{const{axisDimension:w,value:y}=r;return w==="x"?l?"":["6","7","8"].includes(v)?c.dayjs(y).format("YYYY-MM-DD"):y:String(K(y))}}},formatter:()=>""},xAxis:{show:!l,type:"category",data:k,splitLine:{show:!1},axisLabel:{formatter:r=>["6","7","8"].includes(v)?c.dayjs(r).format("YYYY-MM-DD"):r}},yAxis:{type:"value",axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}},min:r=>K(r.min),max:r=>K(r.max)},series:[{type:"candlestick",data:t,itemStyle:{color:"transparent",color0:"#00FFFF",borderColor:"#FF0000",borderColor0:"#00FFFF",borderWidth:1}},...o.mainIndicator.map(r=>({name:r.key,type:"line",silent:!0,symbol:"none",data:r.data,lineStyle:{width:r.width||1},itemStyle:{color:r.color}}))],toolbox:{show:!1},brush:{xAxisIndex:"all",brushLink:"all",transformable:!1,outOfBrush:{colorAlpha:2},brushStyle:{color:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.4)"}}}},Te=(o,S,M,b,v)=>{const{variety:t,featureId:k,featureType:h}=M,{gridTop:u,gridLeft:_,gridRight:Y}=b;return S.reduce((l,r)=>{const{warnPrice:w}=r,y=o==null?void 0:o.convertToPixel({yAxisIndex:0},w);if(y<=u||y>=(o==null?void 0:o.getHeight()))return l;let E=0;return[...l,{type:"group",name:"warningLine",info:r,draggable:"vertical",children:[{type:"line",info:r,shape:{x1:_,y1:y,x2:(o==null?void 0:o.getWidth())-Y,y2:y},style:{stroke:"#FFF",lineWidth:1,lineDash:[8,4]},z:10},{type:"text",info:r,x:(o==null?void 0:o.getWidth())-Y,y:y-5,style:{fill:"#FFF",text:w,stroke:"#000",lineWidth:1,opacity:1},z:10}],ondragstart:V=>{E=V.offsetY},ondrag:V=>{var R;if(V.target&&V.target.childAt(1)){const L=o.convertFromPixel({yAxisIndex:0},y+(V.offsetY-E));(R=V.target.childAt(1))==null||R.animate("style",!1).when(1,{text:K(L,3)}).start()}},ondragend:async V=>{const L=V.offsetY-E;if(L!==0){const N=o==null?void 0:o.convertFromPixel({yAxisIndex:0},L+y),d={id:r.id,warnPrice:K(N,3),featureId:k,featureCode:t,featureType:h};await ue(d),J.ElMessage.success("画线预警修改成功"),v&&v()}}}]},[])},Be={class:"kline-tips"},Ee=e.defineComponent({__name:"index",props:{data:{type:Array,require:!0}},setup(o){return(S,M)=>(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(b,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"kline-tips-item",style:e.normalizeStyle({color:b.color})},e.toDisplayString(b.label)+" "+e.toDisplayString(b.value),5))),128))]))}});const oe=U._export_sfc(Ee,[["__scopeId","data-v-f83b6b36"]]);const Ne={class:"kline-tips"},Fe={__name:"index",props:{data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0}},setup(o){const{round:S,formatValue:M}=j.x,b=o,v=e.computed(()=>{const{data:k,activeIndex:h}=b;if(k.data&&k.data[h]){const u=k.data[h],_=[{label:"开",value:u[0]},{label:"高",value:u[3]},{label:"低",value:u[2]},{label:"收",value:u[1]}];u[4]!==null&&_.push({label:"额",value:M(u[4])});let Y;return u[6]>0?Y="red":u[6]<0&&(Y="green"),_.push({label:"涨跌",value:`${S(u[6])}%`,color:Y}),_}return[]}),t=e.computed(()=>{var u;const{data:k,activeIndex:h}=b;return((u=k==null?void 0:k.mainIndicator)==null?void 0:u.map(_=>({label:_.key,value:S(_.data[h]),color:_.color})))||[]});return(k,h)=>(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(oe,{data:v.value},null,8,["data"]),e.createVNode(oe,{data:t.value},null,8,["data"])]))}},qe=U._export_sfc(Fe,[["__scopeId","data-v-ffa125ec"]]);const je={class:"klineSub"},Re={class:"klineSub-tips"},Ae={key:0,class:"klineSub-tips-select"},Oe={__name:"index",props:{cycle:{type:[String,Number],default:()=>null},data:{type:Object,require:!0},activeIndex:{type:[Number,String],require:!0},modelValue:{type:String,required:!0},subIndicatorList:{type:Array,required:!0}},emits:["update:modelValue"],setup(o,{expose:S,emit:M}){const{round:b}=j.x;let v,t;const k=M,h=o,u=e.ref(),_=e.computed({get(){return h.modelValue},set(r){k("update:modelValue",r)}}),Y=e.computed(()=>{var y;const{data:r,activeIndex:w}=h;return((y=r==null?void 0:r.subIndicator)==null?void 0:y.map(E=>({label:E.key,color:E.color,value:E.data[w]||"-"})))||[]});e.onMounted(()=>{v=ne.init(u.value);let r=!0;t=new ResizeObserver(()=>{if(r){r=null;return}v.resize()}),t.observe(u.value)}),e.onUnmounted(()=>{v.dispose(),t.disconnect(),t=null});const l=(r,w)=>{const y=r[w],E=w===0?r[w]:r[w-1];return y[0]===y[1]?y[0]>=E[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:y[1]>y[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}};return S({connect:r=>{ne.connect([r,v])},draw:(r,w)=>{e.nextTick(()=>{const{startValue:y,endValue:E,maxValueSpan:V}=r,{leftYAxisRange:R,rightYAxisRange:L}=h.data.subIndicator[0],N=h.data.subIndicator.map(d=>{if(d.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:d.data.map((O,P)=>d.seriesColor==="kline"?{value:O,itemStyle:l(h.data.data,P)}:d.seriesColor==="value"?{value:O,itemStyle:{color:O>=0?"#FF0000":"#00FFFF"}}:{value:O,itemStyle:{color:d.seriesColor}})};if(d.series==="line")return{xAxisIndex:0,yAxisIndex:d.yAxis==="right"?2:1,name:d.key,type:"line",silent:!0,symbol:"none",data:d.data,lineStyle:{width:1},itemStyle:{color:d.color}}});v.setOption({animation:!1,grid:{left:`${w.gridLeft}px`,top:"10px",right:`${w.gridRight}px`,bottom:"20px"},dataZoom:[{type:"inside",startValue:y,endValue:E,maxValueSpan:V}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:d=>{const{axisDimension:O,value:P}=d;if(O==="x")return["6","7","8"].includes(h.cycle)?c.dayjs(P).format("YYYY-MM-DD"):P;if(d.axisIndex===1)return String(b(P))}}},formatter:()=>""},xAxis:{type:"category",data:h.data.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{formatter:d=>["6","7","8"].includes(h.cycle)?c.dayjs(d).format("YYYY-MM-DD"):d}},yAxis:[{position:"right"},{position:"left",min:R==="cover"?d=>d.min:null,max:R==="cover"?d=>d.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:L==="cover"?d=>d.min:null,max:L==="cover"?d=>d.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:N},!0)})}}),(r,w)=>{const y=se.ElOption,E=se.ElSelect;return e.openBlock(),e.createElementBlock("div",je,[e.createElementVNode("div",Re,[Y.value.length?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(E,{modelValue:_.value,"onUpdate:modelValue":w[0]||(w[0]=V=>_.value=V),size:"small","popper-class":"element-dark",class:"element-dark subIndicator"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.subIndicatorList,V=>(e.openBlock(),e.createBlock(y,{key:V.value,label:V.label,value:V.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.createVNode(oe,{data:Y.value},null,8,["data"])]),e.createElementVNode("div",{class:"klineSub-chart",ref_key:"subChartRef",ref:u},null,512)])}}},Ie=U._export_sfc(Oe,[["__scopeId","data-v-ab519de5"]]),Pe=e.defineComponent({__name:"index",emits:["closeContextMenuCallBack"],setup(o,{emit:S}){const M=S,b=e.ref(),v=e.ref(),t=e.ref({display:"none",top:"0px",left:"0px"}),k=()=>{t.value.display="none",M("closeContextMenuCallBack"),document.removeEventListener("click",k)},h=u=>{if(u.preventDefault(),t.value.display==="block"){const{offsetX:_,offsetY:Y}=u,{offsetWidth:l,offsetHeight:r}=v.value;if(_<=l&&Y<=r)return}b.value.click(),t.value={display:"block",top:`${u.offsetY}px`,left:`${u.offsetX}px`},e.nextTick(()=>{const _=b.value.getBoundingClientRect(),Y=v.value.getBoundingClientRect();Y.left+Y.width>=_.right&&(t.value.left=`${u.offsetX-Y.width}px`),Y.top+Y.height>=_.bottom&&(console.log("高度超出"),t.value.top=`${u.offsetY-Y.height}px`)}),document.addEventListener("click",k)};return(u,_)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contextmenuRef",ref:b,class:"contextmenu",onContextmenu:h,onMouseleave:k},[e.renderSlot(u.$slots,"default",{},void 0,!0),t.value.display!=="none"?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"contextmenuContentRef",ref:v,class:"contextmenu-popover",style:e.normalizeStyle(t.value)},[e.renderSlot(u.$slots,"popover",{},void 0,!0)],4)):e.createCommentVNode("",!0)],544))}});const $e=U._export_sfc(Pe,[["__scopeId","data-v-811db6b4"]]);const ce=o=>(e.pushScopeId("data-v-9e6456be"),o=o(),e.popScopeId(),o),Ce={class:"klineBasic-tips"},We={key:0,class:"klineBasic-sub"},ze={key:1,class:"klineBasic-empty"},Ke={key:2,class:"klineBasic-error"},Ue=ce(()=>e.createElementVNode("div",{class:"klineBasic-error-content"},"加载失败,请刷新重试",-1)),He={style:{"text-align":"center"}},Ze=ce(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},"预警价格:",-1)),Xe={class:"dialog-footer"},Ge={__name:"index",props:{variety:{type:[String,Number],default:()=>null},varietyName:{type:[String,Number],default:()=>null},featureId:{type:[String,Number],default:()=>null},featureType:{type:[String,Number],default:()=>null},cycle:{type:[String,Number],default:()=>null},mainIndicator:{type:String,default:()=>""},indicatorStore:{type:Object,default:()=>null},startTime:{type:String,default:()=>null},endTime:{type:String,default:()=>null},right:{type:[String,Number],default:1},config:{type:Object,default:()=>({})},env:{type:Object,default:()=>({})},brushRange:{type:[Array,null],default:()=>null}},emits:["change","getFactorData"],setup(o,{expose:S,emit:M}){const b=[{label:"画线预警",key:"drawWarningLine"}];let v=null,t=null,k,h,u=!1,_=!1;const Y=M,l=o,r=e.ref(!1),w=e.ref(!1),y=e.ref(!1),E=e.ref(null),V=e.ref(null),R=e.ref("VOL"),L=e.ref(0),N=e.ref({}),d=e.ref([]),O=e.ref({}),P=e.ref(!1),H=e.ref(""),Q=e.ref([...b]),C=e.computed(()=>({defaultShowCounts:500,addCounts:2e3,maxShowCounts:5e3,loadCheckCounts:500,showSubChart:!0,gridTop:48,gridLeft:80,gridRight:50,showWarningLine:!0,getFactorData:!0,...l.config}));e.watch(()=>{var i,n;return[l.variety,l.cycle,l.mainIndicator,R.value,(i=l.indicatorStore)==null?void 0:i.filterIndicator,(n=l.indicatorStore)==null?void 0:n.customIndicator]},()=>{ee()},{deep:!0}),e.onMounted(()=>{ke(l.env),ee(),window.addEventListener("keydown",ae)}),e.onUnmounted(()=>{t==null||t.off("datazoom"),t==null||t.off("highlight"),t==null||t.off("globalout"),t==null||t.dispose(),v==null||v.dispose(),window.removeEventListener("keydown",ae)});const de=()=>{t||(t=ne.init(E.value),fe(),C.value.showSubChart&&V.value.connect(t),v=j.D(E.value),v.listen(()=>{requestAnimationFrame(()=>{t.resize()})}))},ae=({code:i,ctrlKey:n})=>{if(!(n||r.value))return;const{xAxis:m,dataZoom:f}=t.getOption(),{data:p}=(m==null?void 0:m[0])??{data:[]};let{startValue:a,endValue:s}=(f==null?void 0:f[0])??{};if(p!=null&&p.length){switch(i){case"ArrowUp":{if(s-a<5)return;const D=Math.floor((s-a)/2)+1;a=a+D,s-a<5&&(a=s-4);break}case"ArrowDown":{const D=Math.min(500,s-a);a=a-D-1;break}case"ArrowLeft":{a>0&&(a-=1,s-=1),L.value>0&&(L.value-=1);break}case"ArrowRight":{s<p.length-1&&(a+=1,s+=1),r.value&&L.value<p.length-1&&(L.value+=1);break}}t.dispatchAction({type:"dataZoom",startValue:a,endValue:s}),t.dispatchAction({type:"updateAxisPointer",seriesIndex:0,dataIndex:r.value?L.value:null}),t.dispatchAction({type:"highlight",dataIndex:r.value?L.value:s})}},fe=()=>{t==null||t.on("datazoom",n=>{clearTimeout(h),h=setTimeout(()=>{var f,p,a,s;const{loadCheckCounts:m}=C.value;if((p=(f=t==null?void 0:t.getOption())==null?void 0:f.dataZoom)!=null&&p[0]){const{startValue:D}=(s=(a=t==null?void 0:t.getOption())==null?void 0:a.dataZoom)==null?void 0:s[0];D<m&&u===!1&&_===!1&&(u=!0,pe("history")),Z()}clearTimeout(h)},100)}),t==null||t.on("highlight",n=>{var f,p;let m=n.dataIndex||-1;n.batch&&(m=typeof((f=n==null?void 0:n.batch[0])==null?void 0:f.dataIndex)=="number"?(p=n==null?void 0:n.batch[0])==null?void 0:p.dataIndex:-1),clearTimeout(k),k=setTimeout(()=>{L.value=m,clearTimeout(k)},20)}),t==null||t.on("globalout",()=>{var m,f,p;const n=(p=(f=(m=t==null?void 0:t.getOption())==null?void 0:m.dataZoom)==null?void 0:f[0])==null?void 0:p.endValue;L.value=n});let i=null;t==null||t.on("contextmenu",n=>{i=setTimeout(()=>{n.componentType==="graphic"&&(O.value=n.info,Q.value=[{label:"删除画线",key:"deleteWarningLine"},{label:"修改画线",key:"changeWarningLine"}]),clearTimeout(i),i=null})})},ee=async()=>{var i,n,m,f,p,a;try{if(!l.variety||!l.cycle)return;const{variety:s,featureId:D,cycle:T,indicatorStore:x,mainIndicator:I,right:$,startTime:W,endTime:B}=l,{defaultShowCounts:F,addCounts:g,showWarningLine:te,getFactorData:G}=C.value,q={variety:s,featureId:D,cycle:T,mainIndicatorList:x.getIndicatorParams(I),subIndicator:R.value,right:$,showWarningLine:te,getFactorData:G};W&&B?(q.startTime=W,q.endTime=B):W?(q.startTime=W,q.limit=F+g):B?(q.endTime=B,q.limit=F+g):(q.endTime=c.dayjs().add(1,"hour").format("YYYY-MM-DD HH:mm:ss"),q.limit=F+g);const A=await we(q);if((m=(n=(i=A==null?void 0:A.body)==null?void 0:i.kline)==null?void 0:n.time)!=null&&m.length)w.value=!1,y.value=!1;else{w.value=!0,y.value=!1;return}N.value=(f=A==null?void 0:A.body)==null?void 0:f.kline,d.value=((p=A==null?void 0:A.body)==null?void 0:p.warningLine)||[],re(),Z(),G&&Y("getFactorData",(a=A==null?void 0:A.body)==null?void 0:a.factor)}catch(s){throw y.value=!0,w.value=!1,new Error(s)}},pe=async i=>{const{variety:n,cycle:m,indicatorStore:f,mainIndicator:p,right:a}=l,{addCounts:s}=C.value,{time:D}=N.value;if(i==="history"){const T=await De({variety:n,cycle:m,endTime:D[0],limit:s,mainIndicatorList:f.getIndicatorParams(p),subIndicator:R.value,right:a});N.value={time:[...T.body.time,...N.value.time.slice(1)],data:[...T.body.data,...N.value.data.slice(1)],mainIndicator:N.value.mainIndicator.map((x,I)=>{var $;return{...x,data:[...(($=T.body.mainIndicator[I])==null?void 0:$.data)??[],...x.data.slice(1)]}}),subIndicator:N.value.subIndicator.map((x,I)=>{var $;return{...x,data:[...(($=T.body.subIndicator[I])==null?void 0:$.data)??[],...x.data.slice(1)]}})},re(!0),T.body.data.length<s&&(_=!0),u=!1}},re=(i=!1)=>{var I,$,W;de();const{time:n}=N.value,{gridRight:m,gridLeft:f,defaultShowCounts:p,maxShowCounts:a,showSubChart:s}=C.value;let D=n.length-1-p,T=n.length-1;if(i){const B=t.getOption(),F=($=(I=B==null?void 0:B.xAxis)==null?void 0:I[0])==null?void 0:$.data,g=(W=B==null?void 0:B.dataZoom)==null?void 0:W[0],te=F[g==null?void 0:g.startValue],G=F[g==null?void 0:g.endValue];D=n.findIndex(q=>q===te),T=n.findIndex(q=>q===G)}const x=Le(N.value,C.value,D,T,l.cycle);if(t.setOption(x,!0),L.value=T,l.brushRange){let B=null,F=null;switch(l.cycle){case"6":{B=n.find(g=>new Date(g).getTime()>=new Date(l.brushRange[0]).getTime()||c.dayjs(g).format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).format("YYYY-MM-DD")),F=n.findLast(g=>new Date(g).getTime()<=new Date(l.brushRange[1]).getTime()||c.dayjs(g).format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).format("YYYY-MM-DD"));break}case"7":{B=n.find(g=>c.dayjs(g).day(5).format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).day(5).format("YYYY-MM-DD")),F=n.findLast(g=>c.dayjs(g).day(5).format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).day(5).format("YYYY-MM-DD"));break}case"8":{B=n.find(g=>c.dayjs(g).endOf("month").format("YYYY-MM-DD")===c.dayjs(l.brushRange[0]).endOf("month").format("YYYY-MM-DD")),F=n.findLast(g=>c.dayjs(g).endOf("month").format("YYYY-MM-DD")===c.dayjs(l.brushRange[1]).endOf("month").format("YYYY-MM-DD"));break}default:B=n.find(g=>new Date(g).getTime()>=new Date(l.brushRange[0]).getTime()),F=n.findLast(g=>new Date(g).getTime()<=new Date(l.brushRange[1]).getTime())}console.log(B,F),t.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[B,F],xAxisIndex:0}]})}s&&V.value.draw({startValue:D,endValue:T,maxValueSpan:a},{gridLeft:f,gridRight:m}),le()},Z=()=>{if(!t)return;const i=t==null?void 0:t.getOption();i&&(t==null||t.setOption({...i,graphic:[...Te(t,d.value,l,C.value,()=>{X()})]},!0),le())},le=()=>{const{time:i}=N.value;if(l.brushRange&&(i!=null&&i.length)){let n=c.dayjs(l.brushRange[0]).format("YYYY-MM-DD 00:00:00"),m=c.dayjs(l.brushRange[1]).format("YYYY-MM-DD 23:59:59"),f=null,p=null;switch(l.cycle){case"6":{f=i.find(a=>c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(n).format("YYYY-MM-DD")),p=f;break}case"7":{f=i.find(a=>c.dayjs(a).day(5).format("YYYY-MM-DD")===c.dayjs(n).day(5).format("YYYY-MM-DD")),p=i.findLast(a=>c.dayjs(a).day(5).format("YYYY-MM-DD")===c.dayjs(m).day(5).format("YYYY-MM-DD"));break}case"8":{f=i.find(a=>c.dayjs(a).endOf("month").format("YYYY-MM-DD")===c.dayjs(n).endOf("month").format("YYYY-MM-DD")),p=i.findLast(a=>c.dayjs(a).endOf("month").format("YYYY-MM-DD")===c.dayjs(m).endOf("month").format("YYYY-MM-DD"));break}default:f=i.find(a=>{const s=c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(n).format("YYYY-MM-DD"),D=new Date(a).getTime()>=new Date(n).getTime();return s&&D}),p=i.findLast(a=>{const s=c.dayjs(a).format("YYYY-MM-DD")===c.dayjs(m).format("YYYY-MM-DD"),D=new Date(a).getTime()<=new Date(m).getTime();return s&&D})}t.dispatchAction({type:"brush",areas:[{brushType:"lineX",coordRange:[f,p],xAxisIndex:0}]})}},X=async()=>{const i=await Se({featureId:l.featureId});d.value=(i==null?void 0:i.body)||[],Z(),Y("change","warningLine",d.value)},ye=async i=>{const{variety:n,varietyName:m,featureId:f,featureType:p}=l;if(i.key==="drawWarningLine"){const a=t==null?void 0:t.getOption(),s=a.tooltip[0];t==null||t.setOption({...a,tooltip:{...s,axisPointer:{...s.axisPointer,lineStyle:{width:0},crossStyle:{width:2},label:{...s.axisPointer.label,backgroundColor:"transparent",formatter:T=>""}}}});const D=async T=>{t==null||t.getZr().off("mousedown",D);const x=t==null?void 0:t.convertFromPixel({yAxisIndex:0},T.offsetY),I=Math.round(x*1e3)/1e3;t==null||t.setOption({...a,tooltip:{...s,axisPointer:{...s.axisPointer,lineStyle:{width:1},crossStyle:{width:1},label:{...s.axisPointer.label,backgroundColor:null}}}}),await Me({featureCode:n,featureName:m,featureId:f,featureType:p,warnPrice:I}),J.ElMessage.success("画线预警成功!"),X()};t==null||t.getZr().on("mousedown",D)}else i.key==="deleteWarningLine"?(await Ve({id:O.value.id}),J.ElMessage.success("画线预警删除成功"),X()):i.key==="changeWarningLine"&&(P.value=!0,H.value=O.value.warnPrice)},me=async()=>{const{variety:i,varietyName:n,featureId:m,featureType:f}=l;await ue({id:O.value.id,featureCode:i,featureName:n,featureId:m,featureType:f,warnPrice:H.value}),J.ElMessage.success("画线预警修改成功"),X()},ge=()=>{Q.value=[...b]};return S({draw:(i,n)=>{i==="warningLine"&&(d.value=n,Z())}}),(i,n)=>{var T;const m=ie.ElMenuItem,f=ie.ElMenu,p=he.ElEmpty,a=be.ElButton,s=xe.ElInputNumber,D=ve.ElDialog;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"klineBasic",onMousemove:n[1]||(n[1]=x=>r.value=!0),onMouseout:n[2]||(n[2]=x=>r.value=!1)},[e.createElementVNode("div",Ce,[e.createVNode(qe,{data:N.value,activeIndex:L.value},null,8,["data","activeIndex"])]),e.createElementVNode("div",{class:"klineBasic-main",style:e.normalizeStyle({height:C.value.showSubChart?"70%":"100%"})},[e.createVNode($e,{onCloseContextMenuCallBack:ge},{popover:e.withCtx(()=>[e.createVNode(f,{style:{borderRadius:"4px",overflow:"hidden",background:"#fff",borderRight:0}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,x=>(e.openBlock(),e.createBlock(m,{style:{height:"36px"},key:x.key,index:x.key,onClick:I=>ye(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["index","onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"klineBasicMainRef",ref:E,style:{height:"100%"}},null,512)]),_:1})],4),C.value.showSubChart?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(Ie,{ref_key:"klineSubRef",ref:V,modelValue:R.value,"onUpdate:modelValue":n[0]||(n[0]=x=>R.value=x),data:N.value,cycle:o.cycle,activeIndex:L.value,subIndicatorList:(T=o.indicatorStore)==null?void 0:T.subIndicatorList},null,8,["modelValue","data","cycle","activeIndex","subIndicatorList"])])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(p,{class:"klineBasic-empty-content",description:"暂无数据"})])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("div",Ke,[Ue,e.createElementVNode("div",He,[e.createVNode(a,{onClick:ee},{default:e.withCtx(()=>[e.createTextVNode("刷新")]),_:1})])])):e.createCommentVNode("",!0)],32),e.createVNode(D,{modelValue:P.value,"onUpdate:modelValue":n[5]||(n[5]=x=>P.value=x),title:"画线预警-修改价格",width:"30%","align-center":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Xe,[e.createVNode(a,{onClick:n[4]||(n[4]=x=>P.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(a,{type:"primary",onClick:me},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[Ze,e.createVNode(s,{modelValue:H.value,"onUpdate:modelValue":n[3]||(n[3]=x=>H.value=x),placeholder:"输入预警价格"},null,8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},Je=U._export_sfc(Ge,[["__scopeId","data-v-9e6456be"]]),Qe={install(o){o.component("st-klineBasic",Je)}};module.exports=Qe;
package/es/KlineBasic.js CHANGED
@@ -1,54 +1,51 @@
1
- import "./base-a5af3db3.js";
2
- import { E as Ee } from "./el-dialog-41ab8417.js";
3
- import "./el-overlay-09ad71cd.js";
4
- import "./el-input-2f75c4ba.js";
5
- import { E as Be } from "./el-input-number-5193fe6d.js";
6
- import { E as Oe } from "./el-button-c95adb85.js";
7
- import { E as Ie } from "./el-empty-33cb66f1.js";
8
- import { E as $e, a as Pe } from "./el-menu-item-7e881203.js";
1
+ import "./base-aa512893.js";
2
+ import { E as Ee } from "./el-dialog-1d5f5877.js";
3
+ import "./el-overlay-04426e36.js";
4
+ import "./el-input-262851e8.js";
5
+ import { E as Be } from "./el-input-number-fdac2b86.js";
6
+ import { E as Oe } from "./el-button-56624e61.js";
7
+ import { E as Ie } from "./el-empty-04682b5d.js";
8
+ import { E as $e, a as Pe } from "./el-menu-item-36c3004c.js";
9
9
  import "./el-tooltip-4ed993c7.js";
10
- import "./el-popper-b4f97157.js";
11
- import { defineComponent as he, openBlock as V, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as J, createVNode as B, ref as F, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as U, withCtx as K, createBlock as ke, createCommentVNode as X, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
10
+ import "./el-popper-49152708.js";
11
+ import { defineComponent as he, openBlock as E, createElementBlock as O, Fragment as le, renderList as me, normalizeStyle as ye, toDisplayString as ce, computed as J, createVNode as B, ref as F, onMounted as _e, onUnmounted as we, nextTick as De, createElementVNode as U, withCtx as K, createBlock as ke, createCommentVNode as X, renderSlot as Ye, watch as We, createTextVNode as re, pushScopeId as Ne, popScopeId as qe } from "vue";
12
12
  import * as fe from "echarts";
13
13
  import { d as u } from "./dayjs.min-8313b006.js";
14
14
  import { y as Ce, v as ze, U as Ke, K as Ue, V as Q, x as ge, D as He } from "./index-7ed0999e.js";
15
- import { E as ie } from "./el-message-e544a8f5.js";
15
+ import { E as ie } from "./el-message-416bd265.js";
16
16
  import { _ as ee } from "./_plugin-vue_export-helper-dad06003.js";
17
- import "./el-tag-66cab138.js";
18
- import { E as je, a as Ze } from "./el-select-95627997.js";
17
+ import "./el-tag-55a172c9.js";
18
+ import { E as je, a as Ze } from "./el-select-700f3686.js";
19
19
  import "./el-scrollbar-323542e7.js";
20
- import "./index-a871c3eb.js";
21
- import "./use-form-common-props-815d48a6.js";
22
- import "./index-960806da.js";
23
- import "./index-d77a7336.js";
20
+ import "./use-form-common-props-4cdda474.js";
21
+ import "./index-3d0bc5da.js";
24
22
  import "./index-2e331d74.js";
25
- import "./vnode-5ddb7ed1.js";
26
- import "./scroll-679bd6bf.js";
27
- import "./use-global-config-b5e9d3d5.js";
28
- import "./index-e5566b94.js";
23
+ import "./vnode-b62d0045.js";
24
+ import "./scroll-0a48995c.js";
25
+ import "./use-global-config-7bfbe48c.js";
29
26
  import "./typescript-7ae59c4c.js";
30
- import "./index-d91dc23f.js";
27
+ import "./index-cbbd78b4.js";
31
28
  import "./index-657047bb.js";
32
- import "./config-provider-b16efd62.js";
33
- import "./index-844bdd85.js";
34
- import "./index-57672682.js";
35
- import "./castArray-7741a212.js";
36
- import "./debounce-8d53f4dd.js";
29
+ import "./config-provider-49c17381.js";
30
+ import "./index-66ad0d6a.js";
31
+ import "./index-4e46f96c.js";
32
+ import "./castArray-1eb17278.js";
33
+ import "./debounce-33406a0d.js";
37
34
  let Z = null;
38
35
  const Xe = (n) => {
39
- const E = Ce(n, {
40
- handleReq: (R) => {
41
- ze() && (R.headers.token = Ke());
36
+ const R = Ce(n, {
37
+ handleReq: (A) => {
38
+ ze() && (A.headers.token = Ke());
42
39
  },
43
- handleRes: (R) => {
44
- const { data: D } = R;
40
+ handleRes: (A) => {
41
+ const { data: D } = A;
45
42
  if (D.code === 401)
46
43
  return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : Ue(), !0;
47
44
  }
48
45
  });
49
- E.get, Z = E.post;
50
- }, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId: Q("id") }), Je = (n) => Z("/middleLayer/kline/getKline", n), Qe = async (n) => Z("/alarm/deliversign/addAlarmPrice", { ...n, userId: Q("id") }), et = async (n) => Z("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: Q("id") }), Me = async (n) => Z("/alarm/deliversign/updateAlarmPrice", { ...n, userId: Q("id") }), tt = async (n) => Z("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: Q("id") }), { round: G } = ge, nt = (n, E, R, D, g) => {
51
- const { data: e, time: h } = n, { gridTop: b, gridRight: s, gridLeft: x, maxShowCounts: Y, showSubChart: r } = E;
46
+ R.get, Z = R.post;
47
+ }, Ge = (n) => Z("/middleLayer/kline/getKlineBasic", { ...n, userId: Q("id") }), Je = (n) => Z("/middleLayer/kline/getKline", n), Qe = async (n) => Z("/alarm/deliversign/addAlarmPrice", { ...n, userId: Q("id") }), et = async (n) => Z("/alarm/deliversign/findAlarmPriceByUserId", { ...n, userId: Q("id") }), Me = async (n) => Z("/alarm/deliversign/updateAlarmPrice", { ...n, userId: Q("id") }), tt = async (n) => Z("/alarm/deliversign/deleteAlarmPrice", { ...n, userId: Q("id") }), { round: G } = ge, nt = (n, R, A, D, g) => {
48
+ const { data: e, time: h } = n, { gridTop: b, gridRight: s, gridLeft: x, maxShowCounts: Y, showSubChart: r } = R;
52
49
  return {
53
50
  animation: !1,
54
51
  grid: {
@@ -60,7 +57,7 @@ const Xe = (n) => {
60
57
  dataZoom: [
61
58
  {
62
59
  type: "inside",
63
- startValue: R,
60
+ startValue: A,
64
61
  endValue: D,
65
62
  maxValueSpan: Y
66
63
  }
@@ -149,9 +146,9 @@ const Xe = (n) => {
149
146
  }
150
147
  }
151
148
  };
152
- }, ot = (n, E, R, D, g) => {
153
- const { variety: e, featureId: h, featureType: b } = R, { gridTop: s, gridLeft: x, gridRight: Y } = D;
154
- return E.reduce((r, a) => {
149
+ }, ot = (n, R, A, D, g) => {
150
+ const { variety: e, featureId: h, featureType: b } = A, { gridTop: s, gridLeft: x, gridRight: Y } = D;
151
+ return R.reduce((r, a) => {
155
152
  const { warnPrice: _ } = a, p = n == null ? void 0 : n.convertToPixel({ yAxisIndex: 0 }, _);
156
153
  if (p <= s || p >= (n == null ? void 0 : n.getHeight()))
157
154
  return r;
@@ -214,9 +211,9 @@ const Xe = (n) => {
214
211
  ondragend: async (k) => {
215
212
  const M = k.offsetY - T;
216
213
  if (M !== 0) {
217
- const A = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, M + p), d = {
214
+ const V = n == null ? void 0 : n.convertFromPixel({ yAxisIndex: 0 }, M + p), d = {
218
215
  id: a.id,
219
- warnPrice: G(A, 3),
216
+ warnPrice: G(V, 3),
220
217
  featureId: h,
221
218
  //品种id
222
219
  featureCode: e,
@@ -240,8 +237,8 @@ const Xe = (n) => {
240
237
  }
241
238
  },
242
239
  setup(n) {
243
- return (E, R) => (V(), O("div", at, [
244
- (V(!0), O(le, null, me(n.data, (D, g) => (V(), O("div", {
240
+ return (R, A) => (E(), O("div", at, [
241
+ (E(!0), O(le, null, me(n.data, (D, g) => (E(), O("div", {
245
242
  key: g,
246
243
  class: "kline-tips-item",
247
244
  style: ye({ color: D.color })
@@ -264,7 +261,7 @@ const it = { class: "kline-tips" }, lt = {
264
261
  }
265
262
  },
266
263
  setup(n) {
267
- const { round: E, formatValue: R } = ge, D = n, g = J(() => {
264
+ const { round: R, formatValue: A } = ge, D = n, g = J(() => {
268
265
  const { data: h, activeIndex: b } = D;
269
266
  if (h.data && h.data[b]) {
270
267
  const s = h.data[b], x = [
@@ -273,22 +270,22 @@ const it = { class: "kline-tips" }, lt = {
273
270
  { label: "低", value: s[2] },
274
271
  { label: "收", value: s[1] }
275
272
  ];
276
- s[4] !== null && x.push({ label: "额", value: R(s[4]) });
273
+ s[4] !== null && x.push({ label: "额", value: A(s[4]) });
277
274
  let Y;
278
- return s[6] > 0 ? Y = "red" : s[6] < 0 && (Y = "green"), x.push({ label: "涨跌", value: `${s[6]}%`, color: Y }), x;
275
+ return s[6] > 0 ? Y = "red" : s[6] < 0 && (Y = "green"), x.push({ label: "涨跌", value: `${R(s[6])}%`, color: Y }), x;
279
276
  }
280
277
  return [];
281
278
  }), e = J(() => {
282
279
  var s;
283
280
  const { data: h, activeIndex: b } = D;
284
- return ((s = h == null ? void 0 : h.mainIndicator) == null ? void 0 : s.map((x) => ({ label: x.key, value: E(x.data[b]), color: x.color }))) || [];
281
+ return ((s = h == null ? void 0 : h.mainIndicator) == null ? void 0 : s.map((x) => ({ label: x.key, value: R(x.data[b]), color: x.color }))) || [];
285
282
  });
286
- return (h, b) => (V(), O("div", it, [
283
+ return (h, b) => (E(), O("div", it, [
287
284
  B(pe, { data: g.value }, null, 8, ["data"]),
288
285
  B(pe, { data: e.value }, null, 8, ["data"])
289
286
  ]));
290
287
  }
291
- }, st = /* @__PURE__ */ ee(lt, [["__scopeId", "data-v-b1a144a9"]]);
288
+ }, st = /* @__PURE__ */ ee(lt, [["__scopeId", "data-v-ffa125ec"]]);
292
289
  const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
293
290
  key: 0,
294
291
  class: "klineSub-tips-select"
@@ -308,10 +305,10 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
308
305
  // 副图指标列表
309
306
  },
310
307
  emits: ["update:modelValue"],
311
- setup(n, { expose: E, emit: R }) {
308
+ setup(n, { expose: R, emit: A }) {
312
309
  const { round: D } = ge;
313
310
  let g, e;
314
- const h = R, b = n, s = F(), x = J({
311
+ const h = A, b = n, s = F(), x = J({
315
312
  get() {
316
313
  return b.modelValue;
317
314
  },
@@ -350,14 +347,14 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
350
347
  color: "#00FFFF"
351
348
  };
352
349
  };
353
- return E({
350
+ return R({
354
351
  connect: (a) => {
355
352
  fe.connect([a, g]);
356
353
  },
357
354
  // 联动
358
355
  draw: (a, _) => {
359
356
  De(() => {
360
- const { startValue: p, endValue: T, maxValueSpan: k } = a, { leftYAxisRange: P, rightYAxisRange: M } = b.data.subIndicator[0], A = b.data.subIndicator.map((d) => {
357
+ const { startValue: p, endValue: T, maxValueSpan: k } = a, { leftYAxisRange: P, rightYAxisRange: M } = b.data.subIndicator[0], V = b.data.subIndicator.map((d) => {
361
358
  if (d.series === "bar")
362
359
  return {
363
360
  name: "subMain",
@@ -483,7 +480,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
483
480
  }
484
481
  }
485
482
  ],
486
- series: A
483
+ series: V
487
484
  },
488
485
  !0
489
486
  );
@@ -492,9 +489,9 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
492
489
  // 重置
493
490
  }), (a, _) => {
494
491
  const p = je, T = Ze;
495
- return V(), O("div", ut, [
492
+ return E(), O("div", ut, [
496
493
  U("div", dt, [
497
- Y.value.length ? (V(), O("div", ct, [
494
+ Y.value.length ? (E(), O("div", ct, [
498
495
  B(T, {
499
496
  modelValue: x.value,
500
497
  "onUpdate:modelValue": _[0] || (_[0] = (k) => x.value = k),
@@ -503,7 +500,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
503
500
  class: "element-dark subIndicator"
504
501
  }, {
505
502
  default: K(() => [
506
- (V(!0), O(le, null, me(n.subIndicatorList, (k) => (V(), ke(p, {
503
+ (E(!0), O(le, null, me(n.subIndicatorList, (k) => (E(), ke(p, {
507
504
  key: k.value,
508
505
  label: k.label,
509
506
  value: k.value
@@ -525,13 +522,13 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
525
522
  }, pt = /* @__PURE__ */ ee(ft, [["__scopeId", "data-v-ab519de5"]]), mt = /* @__PURE__ */ he({
526
523
  __name: "index",
527
524
  emits: ["closeContextMenuCallBack"],
528
- setup(n, { emit: E }) {
529
- const R = E, D = F(), g = F(), e = F({
525
+ setup(n, { emit: R }) {
526
+ const A = R, D = F(), g = F(), e = F({
530
527
  display: "none",
531
528
  top: "0px",
532
529
  left: "0px"
533
530
  }), h = () => {
534
- e.value.display = "none", R("closeContextMenuCallBack"), document.removeEventListener("click", h);
531
+ e.value.display = "none", A("closeContextMenuCallBack"), document.removeEventListener("click", h);
535
532
  }, b = (s) => {
536
533
  if (s.preventDefault(), e.value.display === "block") {
537
534
  const { offsetX: x, offsetY: Y } = s, { offsetWidth: r, offsetHeight: a } = g.value;
@@ -547,7 +544,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
547
544
  Y.left + Y.width >= x.right && (e.value.left = `${s.offsetX - Y.width}px`), Y.top + Y.height >= x.bottom && (console.log("高度超出"), e.value.top = `${s.offsetY - Y.height}px`);
548
545
  }), document.addEventListener("click", h);
549
546
  };
550
- return (s, x) => (V(), O("div", {
547
+ return (s, x) => (E(), O("div", {
551
548
  ref_key: "contextmenuRef",
552
549
  ref: D,
553
550
  class: "contextmenu",
@@ -555,7 +552,7 @@ const ut = { class: "klineSub" }, dt = { class: "klineSub-tips" }, ct = {
555
552
  onMouseleave: h
556
553
  }, [
557
554
  Ye(s.$slots, "default", {}, void 0, !0),
558
- e.value.display !== "none" ? (V(), O("div", {
555
+ e.value.display !== "none" ? (E(), O("div", {
559
556
  key: 0,
560
557
  ref_key: "contextmenuContentRef",
561
558
  ref: g,
@@ -645,10 +642,10 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
645
642
  // 时段框选
646
643
  },
647
644
  emits: ["change", "getFactorData"],
648
- setup(n, { expose: E, emit: R }) {
645
+ setup(n, { expose: R, emit: A }) {
649
646
  const D = [{ label: "画线预警", key: "drawWarningLine" }];
650
647
  let g = null, e = null, h, b, s = !1, x = !1;
651
- const Y = R, r = n, a = F(!1), _ = F(!1), p = F(!1), T = F(null), k = F(null), P = F("VOL"), M = F(0), A = F({}), d = F([]), N = F({}), C = F(!1), te = F(""), se = F([...D]), H = J(() => ({
648
+ const Y = A, r = n, a = F(!1), _ = F(!1), p = F(!1), T = F(null), k = F(null), P = F("VOL"), M = F(0), V = F({}), d = F([]), N = F({}), C = F(!1), te = F(""), se = F([...D]), H = J(() => ({
652
649
  defaultShowCounts: 500,
653
650
  // 默认展示条数
654
651
  addCounts: 2e3,
@@ -786,12 +783,12 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
786
783
  _.value = !0, p.value = !1;
787
784
  return;
788
785
  }
789
- A.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), ne(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
786
+ V.value = (c = W == null ? void 0 : W.body) == null ? void 0 : c.kline, d.value = ((f = W == null ? void 0 : W.body) == null ? void 0 : f.warningLine) || [], be(), ne(), ae && Y("getFactorData", (o = W == null ? void 0 : W.body) == null ? void 0 : o.factor);
790
787
  } catch (l) {
791
788
  throw p.value = !0, _.value = !1, new Error(l);
792
789
  }
793
790
  }, Fe = async (i) => {
794
- const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = H.value, { time: w } = A.value;
791
+ const { variety: t, cycle: m, indicatorStore: c, mainIndicator: f, right: o } = r, { addCounts: l } = H.value, { time: w } = V.value;
795
792
  if (i === "history") {
796
793
  const S = await Je({
797
794
  variety: t,
@@ -802,17 +799,17 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
802
799
  subIndicator: P.value,
803
800
  right: o
804
801
  });
805
- A.value = {
806
- time: [...S.body.time, ...A.value.time.slice(1)],
807
- data: [...S.body.data, ...A.value.data.slice(1)],
808
- mainIndicator: A.value.mainIndicator.map((v, q) => {
802
+ V.value = {
803
+ time: [...S.body.time, ...V.value.time.slice(1)],
804
+ data: [...S.body.data, ...V.value.data.slice(1)],
805
+ mainIndicator: V.value.mainIndicator.map((v, q) => {
809
806
  var z;
810
807
  return {
811
808
  ...v,
812
809
  data: [...((z = S.body.mainIndicator[q]) == null ? void 0 : z.data) ?? [], ...v.data.slice(1)]
813
810
  };
814
811
  }),
815
- subIndicator: A.value.subIndicator.map((v, q) => {
812
+ subIndicator: V.value.subIndicator.map((v, q) => {
816
813
  var z;
817
814
  return {
818
815
  ...v,
@@ -824,13 +821,13 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
824
821
  }, be = (i = !1) => {
825
822
  var q, z, j;
826
823
  Le();
827
- const { time: t } = A.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = H.value;
824
+ const { time: t } = V.value, { gridRight: m, gridLeft: c, defaultShowCounts: f, maxShowCounts: o, showSubChart: l } = H.value;
828
825
  let w = t.length - 1 - f, S = t.length - 1;
829
826
  if (i) {
830
827
  const L = e.getOption(), I = (z = (q = L == null ? void 0 : L.xAxis) == null ? void 0 : q[0]) == null ? void 0 : z.data, y = (j = L == null ? void 0 : L.dataZoom) == null ? void 0 : j[0], de = I[y == null ? void 0 : y.startValue], ae = I[y == null ? void 0 : y.endValue];
831
828
  w = t.findIndex(($) => $ === de), S = t.findIndex(($) => $ === ae);
832
829
  }
833
- const v = nt(A.value, H.value, w, S, r.cycle);
830
+ const v = nt(V.value, H.value, w, S, r.cycle);
834
831
  if (e.setOption(v, !0), M.value = S, r.brushRange) {
835
832
  let L = null, I = null;
836
833
  switch (r.cycle) {
@@ -877,7 +874,7 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
877
874
  !0
878
875
  ), xe());
879
876
  }, xe = () => {
880
- const { time: i } = A.value;
877
+ const { time: i } = V.value;
881
878
  if (r.brushRange && (i != null && i.length)) {
882
879
  let t = u(r.brushRange[0]).format("YYYY-MM-DD 00:00:00"), m = u(r.brushRange[1]).format("YYYY-MM-DD 23:59:59"), c = null, f = null;
883
880
  switch (r.cycle) {
@@ -1003,14 +1000,14 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
1003
1000
  }, Ve = () => {
1004
1001
  se.value = [...D];
1005
1002
  };
1006
- return E({
1003
+ return R({
1007
1004
  draw: (i, t) => {
1008
1005
  i === "warningLine" && (d.value = t, ne());
1009
1006
  }
1010
1007
  }), (i, t) => {
1011
1008
  var S;
1012
1009
  const m = $e, c = Pe, f = Ie, o = Oe, l = Be, w = Ee;
1013
- return V(), O(le, null, [
1010
+ return E(), O(le, null, [
1014
1011
  U("div", {
1015
1012
  class: "klineBasic",
1016
1013
  onMousemove: t[1] || (t[1] = (v) => a.value = !0),
@@ -1018,7 +1015,7 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
1018
1015
  }, [
1019
1016
  U("div", gt, [
1020
1017
  B(st, {
1021
- data: A.value,
1018
+ data: V.value,
1022
1019
  activeIndex: M.value
1023
1020
  }, null, 8, ["data", "activeIndex"])
1024
1021
  ]),
@@ -1035,7 +1032,7 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
1035
1032
  borderRight: 0
1036
1033
  } }, {
1037
1034
  default: K(() => [
1038
- (V(!0), O(le, null, me(se.value, (v) => (V(), ke(m, {
1035
+ (E(!0), O(le, null, me(se.value, (v) => (E(), ke(m, {
1039
1036
  style: { height: "36px" },
1040
1037
  key: v.key,
1041
1038
  index: v.key,
@@ -1060,25 +1057,25 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
1060
1057
  _: 1
1061
1058
  })
1062
1059
  ], 4),
1063
- H.value.showSubChart ? (V(), O("div", vt, [
1060
+ H.value.showSubChart ? (E(), O("div", vt, [
1064
1061
  B(pt, {
1065
1062
  ref_key: "klineSubRef",
1066
1063
  ref: k,
1067
1064
  modelValue: P.value,
1068
1065
  "onUpdate:modelValue": t[0] || (t[0] = (v) => P.value = v),
1069
- data: A.value,
1066
+ data: V.value,
1070
1067
  cycle: n.cycle,
1071
1068
  activeIndex: M.value,
1072
1069
  subIndicatorList: (S = n.indicatorStore) == null ? void 0 : S.subIndicatorList
1073
1070
  }, null, 8, ["modelValue", "data", "cycle", "activeIndex", "subIndicatorList"])
1074
1071
  ])) : X("", !0),
1075
- _.value ? (V(), O("div", bt, [
1072
+ _.value ? (E(), O("div", bt, [
1076
1073
  B(f, {
1077
1074
  class: "klineBasic-empty-content",
1078
1075
  description: "暂无数据"
1079
1076
  })
1080
1077
  ])) : X("", !0),
1081
- p.value ? (V(), O("div", xt, [
1078
+ p.value ? (E(), O("div", xt, [
1082
1079
  Yt,
1083
1080
  U("div", ht, [
1084
1081
  B(o, { onClick: ue }, {
@@ -1131,11 +1128,11 @@ const Se = (n) => (Ne("data-v-9e6456be"), n = n(), qe(), n), gt = { class: "klin
1131
1128
  ], 64);
1132
1129
  };
1133
1130
  }
1134
- }, kt = /* @__PURE__ */ ee(Dt, [["__scopeId", "data-v-9e6456be"]]), sn = {
1131
+ }, kt = /* @__PURE__ */ ee(Dt, [["__scopeId", "data-v-9e6456be"]]), an = {
1135
1132
  install(n) {
1136
1133
  n.component("st-klineBasic", kt);
1137
1134
  }
1138
1135
  };
1139
1136
  export {
1140
- sn as default
1137
+ an as default
1141
1138
  };