st-comp 0.0.211 → 0.0.213
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.
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +143 -138
- package/es/VarietySearch.cjs +5 -5
- package/es/VarietySearch.js +477 -463
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +87 -87
- package/lib/{index-3eaf4b5a.js → index-ead7586a.js} +3271 -3252
- package/lib/{python-a46505d9.js → python-2a542cf4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/index.vue +6 -0
- package/packages/VarietySearch/components/CompositeOrder/index.vue +31 -12
package/es/KlineConfig.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./base-ef747d02.cjs"),A=require("./el-overlay-9e34965f.cjs"),F=require("./el-button-eec58cff.cjs");require("./el-scrollbar-bc3f790d.cjs");const R=require("./el-segmented-f8fce9ac.cjs"),x=require("./el-checkbox-c25236a6.cjs");require("./el-tag-a33c4b22.cjs");const U=require("./el-select-d8d91db1.cjs"),y=require("./el-popper-b6c99b28.cjs"),M=require("./el-divider-4713d74c.cjs"),e=require("vue"),$=require("./_plugin-vue_export-helper-f246444f.cjs"),T=require("./index-098c2447.cjs"),K=require("./validator-1b8a6128.cjs"),E=require("./use-form-common-props-fd9b61a0.cjs"),H=require("./index-298075cf.cjs"),j=require("./index-f1c702f6.cjs"),G=require("./index-bb833443.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./index-9780a537.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-c108567d.cjs");require("./index-eea0bcb3.cjs");require("./index-f3562b52.cjs");require("./castArray-35947698.cjs");require("./index-11547a0c.cjs");require("./debounce-62f5b6e8.cjs");const J=u.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"}}),W=A.dialogEmits;function X(r,w){const{width:v,height:c}=E.useWindowSize(),V=e.computed(()=>["ltr","rtl"].includes(r.direction)),k=e.computed(()=>["ltr","ttb"].includes(r.direction)?1:-1),s=e.computed(()=>V.value?v.value:c.value),l=e.computed(()=>u.clamp(p.value+k.value*g.value,4,s.value)),p=e.ref(0),g=e.ref(0),b=e.ref(!1),S=e.ref(!1);let C=[],I=[];const d=()=>{var f;const N=(f=w.value)==null?void 0:f.closest('[aria-modal="true"]');return N?V.value?N.offsetWidth:N.offsetHeight:100};e.watch(()=>[r.size,r.resizable],()=>{S.value=!1,p.value=0,g.value=0,i()});const n=f=>{r.resizable&&(S.value||(p.value=d(),S.value=!0),C=[f.pageX,f.pageY],b.value=!0,I.push(E.useEventListener(window,"mouseup",i),E.useEventListener(window,"mousemove",B)))},B=f=>{const{pageX:N,pageY:t}=f,m=N-C[0],z=t-C[1];g.value=V.value?m:z},i=()=>{C=[],p.value=l.value,g.value=0,b.value=!1,I.forEach(f=>f==null?void 0:f()),I=[]},h=E.useEventListener(w,"mousedown",n);return e.onBeforeUnmount(()=>{h(),i()}),{size:e.computed(()=>S.value?`${l.value}px`:u.addUnit(r.size)),isResizing:b,isHorizontal:V}}const Y=e.defineComponent({name:"ElDrawer",inheritAttrs:!1}),Q=e.defineComponent({...Y,props:J,emits:W,setup(r,{expose:w}){const v=r,c=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(()=>!!c.title));const V=e.ref(),k=e.ref(),s=e.ref(),l=u.useNamespace("drawer"),{t:p}=G.useLocale(),{afterEnter:g,afterLeave:b,beforeLeave:S,visible:C,rendered:I,titleId:d,bodyId:n,zIndex:B,onModalClick:i,onOpenAutoFocus:h,onCloseAutoFocus:f,onFocusoutPrevented:N,onCloseRequested:t,handleClose:m}=A.useDialog(v,V),{isHorizontal:z,size:P,isResizing:o}=X(v,s);return w({handleClose:m,afterEnter:g,afterLeave:b}),(a,q)=>(e.openBlock(),e.createBlock(e.unref(y.ElTeleport),{to:a.appendTo,disabled:a.appendTo!=="body"?!1:!a.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(l).b("fade"),onAfterEnter:e.unref(g),onAfterLeave:e.unref(b),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>{var L;return[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:a.modal,"overlay-class":[e.unref(l).is("drawer"),(L=a.modalClass)!=null?L:""],"z-index":e.unref(B),onClick:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(e.unref(y.ElFocusTrap),{loop:"",trapped:e.unref(C),"focus-trap-el":V.value,"focus-start-el":k.value,onFocusAfterTrapped:e.unref(h),onFocusAfterReleased:e.unref(f),onFocusoutPrevented:e.unref(N),onReleaseRequested:e.unref(t)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":a.title||void 0,"aria-labelledby":a.title?void 0:e.unref(d),"aria-describedby":e.unref(n)},a.$attrs,{class:[e.unref(l).b(),a.direction,e.unref(C)&&"open",e.unref(l).is("dragging",e.unref(o))],style:{[e.unref(z)?"width":"height"]:e.unref(P)},role:"dialog",onClick:e.withModifiers(()=>{},["stop"])}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:k,class:e.normalizeClass(e.unref(l).e("sr-focus")),tabindex:"-1"},null,2),a.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(l).e("header"),a.headerClass])},[a.$slots.title?e.renderSlot(a.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(a.$slots,"header",{key:0,close:e.unref(m),titleId:e.unref(d),titleClass:e.unref(l).e("title")},()=>[e.createElementVNode("span",{id:e.unref(d),role:"heading","aria-level":a.headerAriaLevel,class:e.normalizeClass(e.unref(l).e("title"))},e.toDisplayString(a.title),11,["id","aria-level"])]),a.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(p)("el.drawer.close"),class:e.normalizeClass(e.unref(l).e("close-btn")),type:"button",onClick:e.unref(m)},[e.createVNode(e.unref(T.ElIcon),{class:e.normalizeClass(e.unref(l).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.close_default))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(I)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(n),class:e.normalizeClass([e.unref(l).e("body"),a.bodyClass])},[e.renderSlot(a.$slots,"default")],10,["id"])):e.createCommentVNode("v-if",!0),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(l).e("footer"),a.footerClass])},[e.renderSlot(a.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),a.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:s,style:e.normalizeStyle({zIndex:e.unref(B)}),class:e.normalizeClass(e.unref(l).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_: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(C)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Z=u._export_sfc(Q,[["__file","drawer.vue"]]);const ee=u.withInstall(Z),te=u.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:K.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:E.iconPropType},activeActionIcon:{type:E.iconPropType},activeIcon:{type:E.iconPropType},inactiveIcon:{type:E.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:u.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...y.useAriaProps(["ariaLabel"])}),le={[y.UPDATE_MODEL_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[y.CHANGE_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[y.INPUT_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r)},O="ElSwitch",oe=e.defineComponent({name:O}),ne=e.defineComponent({...oe,props:te,emits:le,setup(r,{expose:w,emit:v}){const c=r,{formItem:V}=E.useFormItem(),k=E.useFormSize(),s=u.useNamespace("switch"),{inputId:l}=E.useFormItemInputId(c,{formItemContext:V}),p=E.useFormDisabled(e.computed(()=>c.loading)),g=e.ref(c.modelValue!==!1),b=e.ref(),S=e.ref(),C=e.computed(()=>[s.b(),s.m(k.value),s.is("disabled",p.value),s.is("checked",i.value)]),I=e.computed(()=>[s.e("label"),s.em("label","left"),s.is("active",!i.value)]),d=e.computed(()=>[s.e("label"),s.em("label","right"),s.is("active",i.value)]),n=e.computed(()=>({width:u.addUnit(c.width)}));e.watch(()=>c.modelValue,()=>{g.value=!0});const B=e.computed(()=>g.value?c.modelValue:!1),i=e.computed(()=>B.value===c.activeValue);[c.activeValue,c.inactiveValue].includes(B.value)||(v(y.UPDATE_MODEL_EVENT,c.inactiveValue),v(y.CHANGE_EVENT,c.inactiveValue),v(y.INPUT_EVENT,c.inactiveValue)),e.watch(i,t=>{var m;b.value.checked=t,c.validateEvent&&((m=V==null?void 0:V.validate)==null||m.call(V,"change").catch(z=>y.debugWarn()))});const h=()=>{const t=i.value?c.inactiveValue:c.activeValue;v(y.UPDATE_MODEL_EVENT,t),v(y.CHANGE_EVENT,t),v(y.INPUT_EVENT,t),e.nextTick(()=>{b.value.checked=i.value})},f=()=>{if(p.value)return;const{beforeChange:t}=c;if(!t){h();return}const m=t();[u.isPromise(m),u.isBoolean(m)].includes(!0)||y.throwError(O,"beforeChange must return type `Promise<boolean>` or `boolean`"),u.isPromise(m)?m.then(P=>{P&&h()}).catch(P=>{}):m&&h()},N=()=>{var t,m;(m=(t=b.value)==null?void 0:t.focus)==null||m.call(t)};return e.onMounted(()=>{b.value.checked=i.value}),w({focus:N,checked:i}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)),onClick:e.withModifiers(f,["prevent"])},[e.createElementVNode("input",{id:e.unref(l),ref_key:"input",ref:b,class:e.normalizeClass(e.unref(s).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(i),"aria-disabled":e.unref(p),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(p),tabindex:t.tabindex,onChange:h,onKeydown:e.withKeys(f,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(I))},[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.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":e.unref(i)},e.toDisplayString(t.inactiveText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{ref_key:"core",ref:S,class:e.normalizeClass(e.unref(s).e("core")),style:e.normalizeStyle(e.unref(n))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s).e("inner"))},[t.activeIcon||t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?t.activeIcon:t.inactiveIcon)))]),_:1},8,["class"])):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s).is("text")),"aria-hidden":!e.unref(i)},e.toDisplayString(e.unref(i)?t.activeText:t.inactiveText),11,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.loading_default))]),_:1},8,["class"])):e.unref(i)?e.renderSlot(t.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):e.unref(i)?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(T.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)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(d))},[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(T.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":!e.unref(i)},e.toDisplayString(t.activeText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0)],10,["onClick"]))}});var ae=u._export_sfc(ne,[["__file","switch.vue"]]);const re=u.withInstall(ae);const se=[{label:"买卖",value:0},{label:"开平",value:1}],D=()=>({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}),ie=(r,w)=>{var v;return((v=w.find(c=>c.value===r))==null?void 0:v.label)??"-"};const _=r=>(e.pushScopeId("data-v-009e01e7"),r=r(),e.popScopeId(),r),ce={class:"kline-config element-dark"},ue={class:"setting-item"},de=_(()=>e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),me={class:"setting-item"},pe=_(()=>e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),fe={class:"setting-item"},ve=_(()=>e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),Ve={class:"setting-item"},be=_(()=>e.createElementVNode("span",{class:"label"},"单周期: ",-1)),ye={class:"setting-item"},ge=_(()=>e.createElementVNode("span",{class:"label"},"多周期: ",-1)),he={class:"mode"},ke={class:"cycleName"},Ce={class:"content"},Ne={class:"setting-item"},Ee=_(()=>e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),_e={class:"setting-item"},Be=_(()=>e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),we={class:"setting-item"},Se=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),Ie={class:"setting-item"},Te=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),ze={class:"setting-item"},Pe=_(()=>e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),qe={class:"setting-item"},Le=_(()=>e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),De={class:"setting-item"},Ae=_(()=>e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),Ue={class:"setting-footer"},Oe={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(r,{expose:w,emit:v}){const{request:c}=e.inject("stConfig"),V=v,k=r,s=e.ref(!1),l=e.reactive({}),p=e.ref([]),g=e.ref([]),b=()=>{Object.assign(l,D())},S=async()=>{const d=JSON.stringify(l);k.origin==="server"?await c.post("/common/qt/updateUserConfig",{appId:1,json:d}):localStorage.setItem("userKlineConfig",d),V("callBack",d),s.value=!1},C=async()=>{if(k.origin==="server"){const{body:d}=await c.post("/common/qt/getUserConfig",{appId:1});Object.assign(l,D(),d?JSON.parse(d):{})}else{const d=localStorage.getItem("userKlineConfig");Object.assign(l,D(),d?JSON.parse(d):{})}},I=async()=>{if(k.origin==="server"){const{body:d}=await c.post("/common/qt/getDict",{dictIds:[1002]});p.value=d[1002].map(n=>({label:n.dictName,value:n.dictCode}))}else p.value=k.cycleOptions};return e.onMounted(()=>{I(),g.value=k.indicatorStore.mainIndicatorList??[]}),w({open:async()=>{await C(),s.value=!0},getDefaultUserKlineConfig:D}),(d,n)=>{const B=M.ElDivider,i=U.ElOption,h=U.ElSelect,f=x.ElCheckbox,N=R.ElSegmented,t=re,m=H.ElScrollbar,z=F.ElButton,P=ee;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(P,{modelValue:s.value,"onUpdate:modelValue":n[12]||(n[12]=o=>s.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(m,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(B,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[e.createTextVNode("偏好设置")]),_:1}),e.createElementVNode("div",ue,[de,e.createVNode(h,{modelValue:l.mainIndicator,"onUpdate:modelValue":n[0]||(n[0]=o=>l.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[pe,e.createVNode(h,{modelValue:l.sellBuy,"onUpdate:modelValue":n[1]||(n[1]=o=>l.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(se),(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[ve,e.createVNode(f,{modelValue:l.sellBuyByPrice,"onUpdate:modelValue":n[2]||(n[2]=o=>l.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ve,[be,e.createVNode(h,{modelValue:l.singelCycle,"onUpdate:modelValue":n[3]||(n[3]=o=>l.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ye,[ge,e.createVNode(N,{size:"small",modelValue:l.multiCycleNum,"onUpdate:modelValue":n[4]||(n[4]=o=>l.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-${l.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.multiCycleList.slice(0,l.multiCycleNum),(o,a)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ie)(l.multiCycleList[a],p.value)),1),e.createVNode(h,{modelValue:l.multiCycleList[a],"onUpdate:modelValue":q=>l.multiCycleList[a]=q,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(q,L)=>(e.openBlock(),e.createBlock(i,{key:L,label:q.label,value:q.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",Ce,e.toDisplayString(a+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Ne,[Ee,e.createVNode(N,{size:"small",modelValue:l.pageType,"onUpdate:modelValue":n[5]||(n[5]=o=>l.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("功能配置")]),_:1}),e.createElementVNode("div",_e,[Be,e.createVNode(t,{modelValue:l.enable_tradeLogBrush,"onUpdate:modelValue":n[6]||(n[6]=o=>l.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",we,[Se,e.createVNode(t,{modelValue:l.enable_showScreenTimeRange,"onUpdate:modelValue":n[7]||(n[7]=o=>l.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[Te,e.createVNode(t,{modelValue:l.enable_showScreenMaxPrice,"onUpdate:modelValue":n[8]||(n[8]=o=>l.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[Pe,e.createVNode(t,{modelValue:l.enable_dbClickOpenSingel,"onUpdate:modelValue":n[9]||(n[9]=o=>l.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("组件开关")]),_:1}),e.createElementVNode("div",qe,[Le,e.createVNode(t,{modelValue:l.enable_subChart,"onUpdate:modelValue":n[10]||(n[10]=o=>l.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",De,[Ae,e.createVNode(t,{modelValue:l.enable_sliderChart,"onUpdate:modelValue":n[11]||(n[11]=o=>l.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Ue,[e.createVNode(z,{onClick:b},{default:e.withCtx(()=>[e.createTextVNode(" 恢复默认 ")]),_:1}),e.createVNode(z,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})])]),_:1},8,["modelValue"])])}}},Fe=$._export_sfc(Oe,[["__scopeId","data-v-009e01e7"]]),Re={install(r){r.component("st-klineConfig",Fe)}};module.exports=Re;
|
|
1
|
+
"use strict";const u=require("./base-ef747d02.cjs"),A=require("./el-overlay-9e34965f.cjs"),F=require("./el-button-eec58cff.cjs");require("./el-scrollbar-bc3f790d.cjs");const R=require("./el-segmented-f8fce9ac.cjs"),x=require("./el-checkbox-c25236a6.cjs");require("./el-tag-a33c4b22.cjs");const U=require("./el-select-d8d91db1.cjs"),h=require("./el-popper-b6c99b28.cjs"),M=require("./el-divider-4713d74c.cjs"),e=require("vue"),$=require("./_plugin-vue_export-helper-f246444f.cjs"),T=require("./index-098c2447.cjs"),K=require("./validator-1b8a6128.cjs"),E=require("./use-form-common-props-fd9b61a0.cjs"),H=require("./index-298075cf.cjs"),j=require("./index-f1c702f6.cjs"),G=require("./index-bb833443.cjs");require("./vnode-b906ae6d.cjs");require("./scroll-b108dabd.cjs");require("./index-9780a537.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-c108567d.cjs");require("./index-eea0bcb3.cjs");require("./index-f3562b52.cjs");require("./castArray-35947698.cjs");require("./index-11547a0c.cjs");require("./debounce-62f5b6e8.cjs");const J=u.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"}}),W=A.dialogEmits;function X(r,w){const{width:v,height:c}=E.useWindowSize(),V=e.computed(()=>["ltr","rtl"].includes(r.direction)),b=e.computed(()=>["ltr","ttb"].includes(r.direction)?1:-1),s=e.computed(()=>V.value?v.value:c.value),l=e.computed(()=>u.clamp(p.value+b.value*y.value,4,s.value)),p=e.ref(0),y=e.ref(0),g=e.ref(!1),S=e.ref(!1);let C=[],I=[];const d=()=>{var f;const N=(f=w.value)==null?void 0:f.closest('[aria-modal="true"]');return N?V.value?N.offsetWidth:N.offsetHeight:100};e.watch(()=>[r.size,r.resizable],()=>{S.value=!1,p.value=0,y.value=0,i()});const n=f=>{r.resizable&&(S.value||(p.value=d(),S.value=!0),C=[f.pageX,f.pageY],g.value=!0,I.push(E.useEventListener(window,"mouseup",i),E.useEventListener(window,"mousemove",B)))},B=f=>{const{pageX:N,pageY:t}=f,m=N-C[0],z=t-C[1];y.value=V.value?m:z},i=()=>{C=[],p.value=l.value,y.value=0,g.value=!1,I.forEach(f=>f==null?void 0:f()),I=[]},k=E.useEventListener(w,"mousedown",n);return e.onBeforeUnmount(()=>{k(),i()}),{size:e.computed(()=>S.value?`${l.value}px`:u.addUnit(r.size)),isResizing:g,isHorizontal:V}}const Y=e.defineComponent({name:"ElDrawer",inheritAttrs:!1}),Q=e.defineComponent({...Y,props:J,emits:W,setup(r,{expose:w}){const v=r,c=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(()=>!!c.title));const V=e.ref(),b=e.ref(),s=e.ref(),l=u.useNamespace("drawer"),{t:p}=G.useLocale(),{afterEnter:y,afterLeave:g,beforeLeave:S,visible:C,rendered:I,titleId:d,bodyId:n,zIndex:B,onModalClick:i,onOpenAutoFocus:k,onCloseAutoFocus:f,onFocusoutPrevented:N,onCloseRequested:t,handleClose:m}=A.useDialog(v,V),{isHorizontal:z,size:P,isResizing:o}=X(v,s);return w({handleClose:m,afterEnter:y,afterLeave:g}),(a,L)=>(e.openBlock(),e.createBlock(e.unref(h.ElTeleport),{to:a.appendTo,disabled:a.appendTo!=="body"?!1:!a.appendToBody},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(l).b("fade"),onAfterEnter:e.unref(y),onAfterLeave:e.unref(g),onBeforeLeave:e.unref(S),persisted:""},{default:e.withCtx(()=>{var q;return[e.withDirectives(e.createVNode(e.unref(A.ElOverlay),{mask:a.modal,"overlay-class":[e.unref(l).is("drawer"),(q=a.modalClass)!=null?q:""],"z-index":e.unref(B),onClick:e.unref(i)},{default:e.withCtx(()=>[e.createVNode(e.unref(h.ElFocusTrap),{loop:"",trapped:e.unref(C),"focus-trap-el":V.value,"focus-start-el":b.value,onFocusAfterTrapped:e.unref(k),onFocusAfterReleased:e.unref(f),onFocusoutPrevented:e.unref(N),onReleaseRequested:e.unref(t)},{default:e.withCtx(()=>[e.createElementVNode("div",e.mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":a.title||void 0,"aria-labelledby":a.title?void 0:e.unref(d),"aria-describedby":e.unref(n)},a.$attrs,{class:[e.unref(l).b(),a.direction,e.unref(C)&&"open",e.unref(l).is("dragging",e.unref(o))],style:{[e.unref(z)?"width":"height"]:e.unref(P)},role:"dialog",onClick:e.withModifiers(()=>{},["stop"])}),[e.createElementVNode("span",{ref_key:"focusStartRef",ref:b,class:e.normalizeClass(e.unref(l).e("sr-focus")),tabindex:"-1"},null,2),a.withHeader?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass([e.unref(l).e("header"),a.headerClass])},[a.$slots.title?e.renderSlot(a.$slots,"title",{key:1},()=>[e.createCommentVNode(" DEPRECATED SLOT ")]):e.renderSlot(a.$slots,"header",{key:0,close:e.unref(m),titleId:e.unref(d),titleClass:e.unref(l).e("title")},()=>[e.createElementVNode("span",{id:e.unref(d),role:"heading","aria-level":a.headerAriaLevel,class:e.normalizeClass(e.unref(l).e("title"))},e.toDisplayString(a.title),11,["id","aria-level"])]),a.showClose?(e.openBlock(),e.createElementBlock("button",{key:2,"aria-label":e.unref(p)("el.drawer.close"),class:e.normalizeClass(e.unref(l).e("close-btn")),type:"button",onClick:e.unref(m)},[e.createVNode(e.unref(T.ElIcon),{class:e.normalizeClass(e.unref(l).e("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.close_default))]),_:1},8,["class"])],10,["aria-label","onClick"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.unref(I)?(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(n),class:e.normalizeClass([e.unref(l).e("body"),a.bodyClass])},[e.renderSlot(a.$slots,"default")],10,["id"])):e.createCommentVNode("v-if",!0),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(l).e("footer"),a.footerClass])},[e.renderSlot(a.$slots,"footer")],2)):e.createCommentVNode("v-if",!0),a.resizable?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"draggerRef",ref:s,style:e.normalizeStyle({zIndex:e.unref(B)}),class:e.normalizeClass(e.unref(l).e("dragger"))},null,6)):e.createCommentVNode("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_: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(C)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Z=u._export_sfc(Q,[["__file","drawer.vue"]]);const ee=u.withInstall(Z),te=u.buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:K.isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:E.iconPropType},activeActionIcon:{type:E.iconPropType},activeIcon:{type:E.iconPropType},inactiveIcon:{type:E.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:u.definePropType(Function)},id:String,tabindex:{type:[String,Number]},...h.useAriaProps(["ariaLabel"])}),le={[h.UPDATE_MODEL_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.CHANGE_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r),[h.INPUT_EVENT]:r=>u.isBoolean(r)||u.isString(r)||u.isNumber(r)},O="ElSwitch",oe=e.defineComponent({name:O}),ne=e.defineComponent({...oe,props:te,emits:le,setup(r,{expose:w,emit:v}){const c=r,{formItem:V}=E.useFormItem(),b=E.useFormSize(),s=u.useNamespace("switch"),{inputId:l}=E.useFormItemInputId(c,{formItemContext:V}),p=E.useFormDisabled(e.computed(()=>c.loading)),y=e.ref(c.modelValue!==!1),g=e.ref(),S=e.ref(),C=e.computed(()=>[s.b(),s.m(b.value),s.is("disabled",p.value),s.is("checked",i.value)]),I=e.computed(()=>[s.e("label"),s.em("label","left"),s.is("active",!i.value)]),d=e.computed(()=>[s.e("label"),s.em("label","right"),s.is("active",i.value)]),n=e.computed(()=>({width:u.addUnit(c.width)}));e.watch(()=>c.modelValue,()=>{y.value=!0});const B=e.computed(()=>y.value?c.modelValue:!1),i=e.computed(()=>B.value===c.activeValue);[c.activeValue,c.inactiveValue].includes(B.value)||(v(h.UPDATE_MODEL_EVENT,c.inactiveValue),v(h.CHANGE_EVENT,c.inactiveValue),v(h.INPUT_EVENT,c.inactiveValue)),e.watch(i,t=>{var m;g.value.checked=t,c.validateEvent&&((m=V==null?void 0:V.validate)==null||m.call(V,"change").catch(z=>h.debugWarn()))});const k=()=>{const t=i.value?c.inactiveValue:c.activeValue;v(h.UPDATE_MODEL_EVENT,t),v(h.CHANGE_EVENT,t),v(h.INPUT_EVENT,t),e.nextTick(()=>{g.value.checked=i.value})},f=()=>{if(p.value)return;const{beforeChange:t}=c;if(!t){k();return}const m=t();[u.isPromise(m),u.isBoolean(m)].includes(!0)||h.throwError(O,"beforeChange must return type `Promise<boolean>` or `boolean`"),u.isPromise(m)?m.then(P=>{P&&k()}).catch(P=>{}):m&&k()},N=()=>{var t,m;(m=(t=g.value)==null?void 0:t.focus)==null||m.call(t)};return e.onMounted(()=>{g.value.checked=i.value}),w({focus:N,checked:i}),(t,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)),onClick:e.withModifiers(f,["prevent"])},[e.createElementVNode("input",{id:e.unref(l),ref_key:"input",ref:g,class:e.normalizeClass(e.unref(s).e("input")),type:"checkbox",role:"switch","aria-checked":e.unref(i),"aria-disabled":e.unref(p),"aria-label":t.ariaLabel,name:t.name,"true-value":t.activeValue,"false-value":t.inactiveValue,disabled:e.unref(p),tabindex:t.tabindex,onChange:k,onKeydown:e.withKeys(f,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!t.inlinePrompt&&(t.inactiveIcon||t.inactiveText)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(I))},[t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.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":e.unref(i)},e.toDisplayString(t.inactiveText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",{ref_key:"core",ref:S,class:e.normalizeClass(e.unref(s).e("core")),style:e.normalizeStyle(e.unref(n))},[t.inlinePrompt?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(s).e("inner"))},[t.activeIcon||t.inactiveIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?t.activeIcon:t.inactiveIcon)))]),_:1},8,["class"])):t.activeText||t.inactiveText?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(s).is("text")),"aria-hidden":!e.unref(i)},e.toDisplayString(e.unref(i)?t.activeText:t.inactiveText),11,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("action"))},[t.loading?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0,class:e.normalizeClass(e.unref(s).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(T.loading_default))]),_:1},8,["class"])):e.unref(i)?e.renderSlot(t.$slots,"active-action",{key:1},()=>[t.activeActionIcon?(e.openBlock(),e.createBlock(e.unref(T.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.activeActionIcon)))]),_:1})):e.createCommentVNode("v-if",!0)]):e.unref(i)?e.createCommentVNode("v-if",!0):e.renderSlot(t.$slots,"inactive-action",{key:2},()=>[t.inactiveActionIcon?(e.openBlock(),e.createBlock(e.unref(T.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)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(d))},[t.activeIcon?(e.openBlock(),e.createBlock(e.unref(T.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":!e.unref(i)},e.toDisplayString(t.activeText),9,["aria-hidden"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0)],10,["onClick"]))}});var ae=u._export_sfc(ne,[["__file","switch.vue"]]);const re=u.withInstall(ae);const se=[{label:"买卖",value:0},{label:"开平",value:1}],D=()=>({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}),ie=(r,w)=>{var v;return((v=w.find(c=>c.value===r))==null?void 0:v.label)??"-"};const _=r=>(e.pushScopeId("data-v-f364d4b3"),r=r(),e.popScopeId(),r),ce={class:"kline-config element-dark"},ue={class:"setting-item"},de=_(()=>e.createElementVNode("span",{class:"label"},"主图指标: ",-1)),me={class:"setting-item"},pe=_(()=>e.createElementVNode("span",{class:"label"},"交易点位: ",-1)),fe={class:"setting-item"},ve=_(()=>e.createElementVNode("span",{class:"label"},"开平点按价格标: ",-1)),Ve={class:"setting-item"},be=_(()=>e.createElementVNode("span",{class:"label"},"单周期: ",-1)),ye={class:"setting-item"},ge=_(()=>e.createElementVNode("span",{class:"label"},"多周期: ",-1)),he={class:"mode"},ke={class:"cycleName"},Ce={class:"content"},Ne={class:"setting-item"},Ee=_(()=>e.createElementVNode("span",{class:"label"},"默认展示: ",-1)),_e={class:"setting-item"},Be=_(()=>e.createElementVNode("span",{class:"label"},"高亮交易范围: ",-1)),we={class:"setting-item"},Se=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏时间: ",-1)),Ie={class:"setting-item"},Te=_(()=>e.createElementVNode("span",{class:"label"},"展示当屏最高价: ",-1)),ze={class:"setting-item"},Pe=_(()=>e.createElementVNode("span",{class:"label"},"多周期双击图表切换至单周期: ",-1)),Le={class:"setting-item"},qe=_(()=>e.createElementVNode("span",{class:"label"},"开启副图: ",-1)),De={class:"setting-item"},Ae=_(()=>e.createElementVNode("span",{class:"label"},"开启拖拽轴: ",-1)),Ue={class:"setting-footer"},Oe={__name:"index",props:{indicatorStore:{type:Object,default:()=>({})},origin:{type:String,default:"server"},cycleOptions:{type:Array,default:()=>[]}},emits:"callBack",setup(r,{expose:w,emit:v}){const{request:c}=e.inject("stConfig"),V=v,b=r,s=e.ref(!1),l=e.reactive({}),p=e.ref([]),y=e.ref([]),g=()=>{Object.assign(l,D())},S=async()=>{const d=JSON.stringify(l);b.origin==="server"?await c.post("/common/qt/updateUserConfig",{appId:1,json:d}):localStorage.setItem("userKlineConfig",d),V("callBack",d),s.value=!1},C=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getUserConfig",{appId:1});Object.assign(l,D(),d?JSON.parse(d):{})}else{const d=localStorage.getItem("userKlineConfig");Object.assign(l,D(),d?JSON.parse(d):{})}},I=async()=>{if(b.origin==="server"){const{body:d}=await c.post("/common/qt/getDict",{dictIds:[1002]});p.value=d[1002].map(n=>({label:n.dictName,value:n.dictCode}))}else p.value=b.cycleOptions};return e.onMounted(()=>{I(),y.value=b.indicatorStore.mainIndicatorList??[]}),watch(()=>b.indicatorStore.mainIndicatorList,()=>{y.value=b.indicatorStore.mainIndicatorList??[]}),w({open:async()=>{await C(),s.value=!0},getDefaultUserKlineConfig:D}),(d,n)=>{const B=M.ElDivider,i=U.ElOption,k=U.ElSelect,f=x.ElCheckbox,N=R.ElSegmented,t=re,m=H.ElScrollbar,z=F.ElButton,P=ee;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(P,{modelValue:s.value,"onUpdate:modelValue":n[12]||(n[12]=o=>s.value=o),title:"K线自定义配置",size:320},{default:e.withCtx(()=>[e.createVNode(m,{class:"setting-main"},{default:e.withCtx(()=>[e.createVNode(B,{style:{"margin-top":"8px"}},{default:e.withCtx(()=>[e.createTextVNode("偏好设置")]),_:1}),e.createElementVNode("div",ue,[de,e.createVNode(k,{modelValue:l.mainIndicator,"onUpdate:modelValue":n[0]||(n[0]=o=>l.mainIndicator=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",me,[pe,e.createVNode(k,{modelValue:l.sellBuy,"onUpdate:modelValue":n[1]||(n[1]=o=>l.sellBuy=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(se),(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",fe,[ve,e.createVNode(f,{modelValue:l.sellBuyByPrice,"onUpdate:modelValue":n[2]||(n[2]=o=>l.sellBuyByPrice=o),"true-value":1,"false-value":0},null,8,["modelValue"])]),e.createElementVNode("div",Ve,[be,e.createVNode(k,{modelValue:l.singelCycle,"onUpdate:modelValue":n[3]||(n[3]=o=>l.singelCycle=o),"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(o,a)=>(e.openBlock(),e.createBlock(i,{key:a,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",ye,[ge,e.createVNode(N,{size:"small",modelValue:l.multiCycleNum,"onUpdate:modelValue":n[4]||(n[4]=o=>l.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-${l.multiCycleNum}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.multiCycleList.slice(0,l.multiCycleNum),(o,a)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",ke,[e.createElementVNode("span",null,e.toDisplayString(e.unref(ie)(l.multiCycleList[a],p.value)),1),e.createVNode(k,{modelValue:l.multiCycleList[a],"onUpdate:modelValue":L=>l.multiCycleList[a]=L,"popper-class":"element-dark"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(L,q)=>(e.openBlock(),e.createBlock(i,{key:q,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("span",Ce,e.toDisplayString(a+1)+"号位K线",1)]))),256))],2),e.createElementVNode("div",Ne,[Ee,e.createVNode(N,{size:"small",modelValue:l.pageType,"onUpdate:modelValue":n[5]||(n[5]=o=>l.pageType=o),options:[{label:"单周期",value:1},{label:"多周期",value:2}],style:{height:"26px"}},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("功能配置")]),_:1}),e.createElementVNode("div",_e,[Be,e.createVNode(t,{modelValue:l.enable_tradeLogBrush,"onUpdate:modelValue":n[6]||(n[6]=o=>l.enable_tradeLogBrush=o)},null,8,["modelValue"])]),e.createElementVNode("div",we,[Se,e.createVNode(t,{modelValue:l.enable_showScreenTimeRange,"onUpdate:modelValue":n[7]||(n[7]=o=>l.enable_showScreenTimeRange=o)},null,8,["modelValue"])]),e.createElementVNode("div",Ie,[Te,e.createVNode(t,{modelValue:l.enable_showScreenMaxPrice,"onUpdate:modelValue":n[8]||(n[8]=o=>l.enable_showScreenMaxPrice=o)},null,8,["modelValue"])]),e.createElementVNode("div",ze,[Pe,e.createVNode(t,{modelValue:l.enable_dbClickOpenSingel,"onUpdate:modelValue":n[9]||(n[9]=o=>l.enable_dbClickOpenSingel=o)},null,8,["modelValue"])]),e.createVNode(B,{style:{"margin-top":"44px"}},{default:e.withCtx(()=>[e.createTextVNode("组件开关")]),_:1}),e.createElementVNode("div",Le,[qe,e.createVNode(t,{modelValue:l.enable_subChart,"onUpdate:modelValue":n[10]||(n[10]=o=>l.enable_subChart=o)},null,8,["modelValue"])]),e.createElementVNode("div",De,[Ae,e.createVNode(t,{modelValue:l.enable_sliderChart,"onUpdate:modelValue":n[11]||(n[11]=o=>l.enable_sliderChart=o)},null,8,["modelValue"])])]),_:1}),e.createElementVNode("div",Ue,[e.createVNode(z,{onClick:g},{default:e.withCtx(()=>[e.createTextVNode(" 恢复默认 ")]),_:1}),e.createVNode(z,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})])]),_:1},8,["modelValue"])])}}},Fe=$._export_sfc(Oe,[["__scopeId","data-v-f364d4b3"]]),Re={install(r){r.component("st-klineConfig",Fe)}};module.exports=Re;
|