st-comp 0.0.143 → 0.0.144

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 (94) hide show
  1. package/es/ChartLayout.js +2 -2
  2. package/es/ConfigProvider.cjs +1 -1
  3. package/es/ConfigProvider.js +28 -11
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +22 -24
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +28 -27
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +14 -14
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +24 -25
  12. package/es/KlineNew.cjs +1 -1
  13. package/es/KlineNew.js +12 -12
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +16 -16
  16. package/es/Table.cjs +1 -1
  17. package/es/Table.js +16 -16
  18. package/es/User.cjs +1 -1
  19. package/es/User.js +510 -382
  20. package/es/VarietySearch.cjs +1 -1
  21. package/es/VarietySearch.js +37 -36
  22. package/es/VirtualTable.js +10 -10
  23. package/es/_initCloneObject-14b53c6f.js +81 -0
  24. package/es/_initCloneObject-441db749.cjs +1 -0
  25. package/es/{base-3ecbc734.js → base-437d17f3.js} +25 -25
  26. package/es/{castArray-7d3fc921.js → castArray-4251bbe4.js} +1 -1
  27. package/es/{config-provider-83904b4d.js → config-provider-55482a43.js} +3 -3
  28. package/es/{debounce-7344b088.js → debounce-ac30be50.js} +14 -14
  29. package/es/{dropdown-7da44c8f.js → dropdown-634b5e27.js} +4 -4
  30. package/es/{dropdown-9a974876.cjs → dropdown-d7c59a21.cjs} +1 -1
  31. package/es/{el-button-24f79286.js → el-button-e1665717.js} +3 -3
  32. package/es/el-checkbox-group-492b95cc.cjs +1 -0
  33. package/es/el-checkbox-group-e8fece80.js +67 -0
  34. package/es/{el-empty-79c5f7a8.js → el-empty-bacc6613.js} +1 -1
  35. package/es/el-form-item-5bdffd07.cjs +12 -0
  36. package/es/el-form-item-af1855f0.js +1262 -0
  37. package/es/{el-input-6c6f5bda.cjs → el-input-23e2bac3.cjs} +1 -1
  38. package/es/{el-input-ee7db655.js → el-input-4961b99f.js} +71 -71
  39. package/es/{el-input-number-0524d787.cjs → el-input-number-40a81eb5.cjs} +1 -1
  40. package/es/{el-input-number-63c21037.js → el-input-number-610fc8ba.js} +24 -24
  41. package/es/{el-menu-item-dc904a35.cjs → el-menu-item-78b858f2.cjs} +1 -1
  42. package/es/{el-menu-item-0d92e7dc.js → el-menu-item-7d04c11a.js} +7 -7
  43. package/es/{el-message-71aa42ca.js → el-message-c3b3ac96.js} +16 -16
  44. package/es/{el-message-562e923d.cjs → el-message-d4df8136.cjs} +1 -1
  45. package/es/{el-overlay-6056c89a.js → el-overlay-12dd9b35.js} +140 -137
  46. package/es/el-overlay-bc0790a2.cjs +1 -0
  47. package/es/{el-popover-c8b2456c.js → el-popover-0aa071f2.js} +4 -4
  48. package/es/{el-popover-8735b1fa.cjs → el-popover-8a77e015.cjs} +1 -1
  49. package/es/el-popper-50100766.js +2262 -0
  50. package/es/el-popper-746070ba.cjs +1 -0
  51. package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-562d0595.js} +11 -11
  52. package/es/{el-select-5fb7d469.js → el-select-9381b156.js} +55 -55
  53. package/es/el-select-b162dffc.cjs +1 -0
  54. package/es/{el-table-column-560db3aa.js → el-table-column-55bffba5.js} +1049 -1124
  55. package/es/el-table-column-6d761fce.cjs +14 -0
  56. package/es/el-tag-985d9aff.js +279 -0
  57. package/es/el-tag-c51a6490.cjs +1 -0
  58. package/es/{index-68ee64fa.js → index-09e01b1d.js} +7 -7
  59. package/es/{index-fa07a823.js → index-0cb48e01.js} +81 -78
  60. package/es/index-39ec9741.js +112 -0
  61. package/es/index-3bf8d597.cjs +1 -0
  62. package/es/index-a387515d.cjs +1 -0
  63. package/es/index-a902a0d9.js +59 -0
  64. package/es/index-deb8de52.cjs +1 -0
  65. package/es/{raf-377cf8f5.js → raf-b128c7b7.js} +1 -1
  66. package/es/{scroll-1efa8148.js → scroll-387fcfdb.js} +1 -1
  67. package/es/style.css +1 -1
  68. package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-f377e500.js} +30 -30
  69. package/es/{vnode-cfcdab70.js → vnode-7dfd4ed5.js} +1 -1
  70. package/es/{zh-cn-4a476dc8.js → zh-cn-eb9c2820.js} +2 -2
  71. package/lib/bundle.js +1 -1
  72. package/lib/bundle.umd.cjs +141 -141
  73. package/lib/{index-a992391a.js → index-e7a32fed.js} +12131 -11996
  74. package/lib/{python-58a62aaf.js → python-ae8d98bd.js} +1 -1
  75. package/lib/style.css +1 -1
  76. package/package.json +1 -1
  77. package/packages/ConfigProvider/index.vue +28 -0
  78. package/packages/User/index.vue +87 -1
  79. package/es/el-form-item-7d32befa.cjs +0 -12
  80. package/es/el-form-item-afc3dcf2.js +0 -1324
  81. package/es/el-overlay-891dcc40.cjs +0 -1
  82. package/es/el-popper-d3eef7ed.js +0 -2093
  83. package/es/el-popper-f62316cd.cjs +0 -1
  84. package/es/el-select-928f8c19.cjs +0 -1
  85. package/es/el-table-column-dd8b62aa.cjs +0 -14
  86. package/es/el-tag-3b03d13e.cjs +0 -1
  87. package/es/el-tag-6a31c968.js +0 -450
  88. package/es/event-09e37cc8.js +0 -6
  89. package/es/event-61f49698.cjs +0 -1
  90. package/es/index-80a2b137.cjs +0 -1
  91. package/es/index-a1ecf26c.js +0 -167
  92. package/es/index-e1e83173.cjs +0 -1
  93. package/es/refs-46cf8186.js +0 -9
  94. package/es/refs-d00b710b.cjs +0 -1
package/es/ChartLayout.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./base-3ecbc734.js";
2
- import { E as r } from "./el-empty-79c5f7a8.js";
1
+ import "./base-437d17f3.js";
2
+ import { E as r } from "./el-empty-bacc6613.js";
3
3
  import { openBlock as e, createElementBlock as a, normalizeStyle as n, Fragment as o, renderList as u, renderSlot as s, createBlock as y } from "vue";
4
4
  import { _ as m } from "./_plugin-vue_export-helper-dad06003.js";
5
5
  const f = {
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),c={__name:"index",props:{env:{type:Object,default:()=>({})}},setup(o){const s=o,e=t.reactive({env:s.env});return t.watch(()=>s,n=>{Object.assign(e,toRefs(n)),console.log("已更新神兔组件库配置: ",e)},{deep:!0}),console.log("%c√ 已成功注入神兔组件库配置: ","color: green",e),t.provide("stConfig",e),(n,i)=>t.renderSlot(n.$slots,"default")}},r={install(o){o.component("st-configProvider",c)}};module.exports=r;
1
+ "use strict";const n=require("vue"),o=require("./index-a96158ae.cjs"),u={__name:"index",props:{env:{type:Object,default:()=>({})}},setup(s){const l=e=>{const c=o.y(e,{handleReq:i=>{o.v()&&(i.headers.token=o.U())},handleRes:i=>{const{data:a}=i;if(a.code===401)return location.origin.includes("localhost")?location.href=`${location.origin}/#/404`:o.K(),!0}});return{get:c.get,post:c.post}},r=s,t=n.reactive({env:r.env,request:l(r.env)});return n.watch(()=>r,e=>{Object.assign(t,toRefs(e)),console.log("已更新神兔组件库配置: ",t)},{deep:!0}),console.log("%c√ 已成功注入神兔组件库配置: ","color: green",t),n.provide("stConfig",t),(e,c)=>n.renderSlot(e.$slots,"default")}},d={install(s){s.component("st-configProvider",u)}};module.exports=d;
@@ -1,5 +1,6 @@
1
- import { reactive as s, watch as r, provide as c, renderSlot as i } from "vue";
2
- const l = {
1
+ import { reactive as l, watch as a, provide as d, renderSlot as f } from "vue";
2
+ import { y as p, v as u, U as g, K as v } from "./index-8542fe24.js";
3
+ const h = {
3
4
  __name: "index",
4
5
  props: {
5
6
  // 全局环境配置
@@ -14,22 +15,38 @@ const l = {
14
15
  }
15
16
  },
16
17
  setup(o) {
17
- const n = o, e = s({
18
- env: n.env
18
+ const c = (e) => {
19
+ const s = p(e, {
20
+ handleReq: (r) => {
21
+ u() && (r.headers.token = g());
22
+ },
23
+ handleRes: (r) => {
24
+ const { data: i } = r;
25
+ if (i.code === 401)
26
+ return location.origin.includes("localhost") ? location.href = `${location.origin}/#/404` : v(), !0;
27
+ }
28
+ });
29
+ return {
30
+ get: s.get,
31
+ post: s.post
32
+ };
33
+ }, n = o, t = l({
34
+ env: n.env,
35
+ request: c(n.env)
19
36
  });
20
- return r(
37
+ return a(
21
38
  () => n,
22
- (t) => {
23
- Object.assign(e, toRefs(t)), console.log("已更新神兔组件库配置: ", e);
39
+ (e) => {
40
+ Object.assign(t, toRefs(e)), console.log("已更新神兔组件库配置: ", t);
24
41
  },
25
42
  { deep: !0 }
26
- ), console.log("%c√ 已成功注入神兔组件库配置: ", "color: green", e), c("stConfig", e), (t, a) => i(t.$slots, "default");
43
+ ), console.log("%c√ 已成功注入神兔组件库配置: ", "color: green", t), d("stConfig", t), (e, s) => f(e.$slots, "default");
27
44
  }
28
- }, d = {
45
+ }, q = {
29
46
  install(o) {
30
- o.component("st-configProvider", l);
47
+ o.component("st-configProvider", h);
31
48
  }
32
49
  };
33
50
  export {
34
- d as default
51
+ q as default
35
52
  };
package/es/Dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";require("./base-ec05f348.cjs");const a=require("./zh-cn-ab9a583d.cjs"),f=require("./el-overlay-891dcc40.cjs"),q=require("./el-button-196807af.cjs"),e=require("vue");require("./config-provider-7cdfca4d.cjs");require("./index-8a0b1c53.cjs");require("./use-form-common-props-1b84d8f4.cjs");require("./vnode-7fbc61e1.cjs");require("./index-e1e83173.cjs");require("./refs-d00b710b.cjs");require("./event-61f49698.cjs");require("./scroll-41224831.cjs");require("./index-eea0bcb3.cjs");const V=e.createElementVNode("span",null,"This is a message",-1),C={class:"dialog-footer"},_=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:()=>""},style:{type:String,default:()=>""}},emits:["update:modelValue"],setup(o,{emit:s}){const i=s,d=o,l=e.computed({get(){return d.modelValue},set(r){i("update:modelValue",r)}}),c=r=>{i("update:modelValue",!1)};return(r,t)=>{const u=q.ElButton,m=f.ElDialog,p=a.ElConfigProvider;return e.openBlock(),e.createBlock(p,{locale:e.unref(a.zhCn)},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=n=>l.value=n),title:o.title,width:"30%","before-close":c,style:e.normalizeStyle(o.style)},{footer:e.withCtx(()=>[e.createElementVNode("span",C,[e.createVNode(u,{onClick:t[0]||(t[0]=n=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("Cancel")]),_:1}),e.createVNode(u,{type:"primary",onClick:t[1]||(t[1]=n=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(" Confirm ")]),_:1})])]),default:e.withCtx(()=>[V]),_:1},8,["modelValue","title","style"])]),_:1},8,["locale"])}}}),v={install(o){o.component("st-dialog",_)}};module.exports=v;
1
+ "use strict";require("./base-ec05f348.cjs");const u=require("./zh-cn-ab9a583d.cjs"),f=require("./el-overlay-bc0790a2.cjs"),V=require("./el-button-196807af.cjs"),e=require("vue");require("./config-provider-7cdfca4d.cjs");require("./index-8a0b1c53.cjs");require("./use-form-common-props-1b84d8f4.cjs");require("./vnode-7fbc61e1.cjs");require("./index-3bf8d597.cjs");require("./scroll-41224831.cjs");require("./index-eea0bcb3.cjs");const C=e.createElementVNode("span",null,"This is a message",-1),_={class:"dialog-footer"},q=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:()=>""},style:{type:String,default:()=>""}},emits:["update:modelValue"],setup(o,{emit:s}){const i=s,d=o,l=e.computed({get(){return d.modelValue},set(n){i("update:modelValue",n)}}),c=n=>{i("update:modelValue",!1)};return(n,t)=>{const a=V.ElButton,m=f.ElDialog,p=u.ElConfigProvider;return e.openBlock(),e.createBlock(p,{locale:e.unref(u.zhCn)},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=r=>l.value=r),title:o.title,width:"30%","before-close":c,style:e.normalizeStyle(o.style)},{footer:e.withCtx(()=>[e.createElementVNode("span",_,[e.createVNode(a,{onClick:t[0]||(t[0]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("Cancel")]),_:1}),e.createVNode(a,{type:"primary",onClick:t[1]||(t[1]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(" Confirm ")]),_:1})])]),default:e.withCtx(()=>[C]),_:1},8,["modelValue","title","style"])]),_:1},8,["locale"])}}}),v={install(o){o.component("st-dialog",q)}};module.exports=v;
package/es/Dialog.js CHANGED
@@ -1,16 +1,14 @@
1
- import "./base-3ecbc734.js";
2
- import { z as V, E as g } from "./zh-cn-4a476dc8.js";
3
- import { E as y } from "./el-overlay-6056c89a.js";
4
- import { E as v } from "./el-button-24f79286.js";
5
- import { defineComponent as C, computed as E, openBlock as x, createBlock as k, unref as B, withCtx as o, createVNode as a, normalizeStyle as b, createElementVNode as d, createTextVNode as s } from "vue";
6
- import "./config-provider-83904b4d.js";
7
- import "./index-68ee64fa.js";
8
- import "./use-form-common-props-9c0363ac.js";
9
- import "./vnode-cfcdab70.js";
10
- import "./index-fa07a823.js";
11
- import "./refs-46cf8186.js";
12
- import "./event-09e37cc8.js";
13
- import "./scroll-1efa8148.js";
1
+ import "./base-437d17f3.js";
2
+ import { z as V, E as g } from "./zh-cn-eb9c2820.js";
3
+ import { E as y } from "./el-overlay-12dd9b35.js";
4
+ import { E as v } from "./el-button-e1665717.js";
5
+ import { defineComponent as C, computed as E, openBlock as x, createBlock as k, unref as B, withCtx as o, createVNode as i, normalizeStyle as b, createElementVNode as d, createTextVNode as m } from "vue";
6
+ import "./config-provider-55482a43.js";
7
+ import "./index-09e01b1d.js";
8
+ import "./use-form-common-props-f377e500.js";
9
+ import "./vnode-7dfd4ed5.js";
10
+ import "./index-0cb48e01.js";
11
+ import "./scroll-387fcfdb.js";
14
12
  import "./index-657047bb.js";
15
13
  const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class: "dialog-footer" }, S = /* @__PURE__ */ C({
16
14
  __name: "index",
@@ -41,12 +39,12 @@ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class:
41
39
  r("update:modelValue", !1);
42
40
  };
43
41
  return (n, e) => {
44
- const m = v, c = y, _ = g;
42
+ const s = v, c = y, _ = g;
45
43
  return x(), k(_, { locale: B(V) }, {
46
44
  default: o(() => [
47
- a(c, {
45
+ i(c, {
48
46
  modelValue: l.value,
49
- "onUpdate:modelValue": e[2] || (e[2] = (i) => l.value = i),
47
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => l.value = a),
50
48
  title: t.title,
51
49
  width: "30%",
52
50
  "before-close": f,
@@ -54,20 +52,20 @@ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class:
54
52
  }, {
55
53
  footer: o(() => [
56
54
  d("span", N, [
57
- a(m, {
58
- onClick: e[0] || (e[0] = (i) => l.value = !1)
55
+ i(s, {
56
+ onClick: e[0] || (e[0] = (a) => l.value = !1)
59
57
  }, {
60
58
  default: o(() => [
61
- s("Cancel")
59
+ m("Cancel")
62
60
  ]),
63
61
  _: 1
64
62
  }),
65
- a(m, {
63
+ i(s, {
66
64
  type: "primary",
67
- onClick: e[1] || (e[1] = (i) => l.value = !1)
65
+ onClick: e[1] || (e[1] = (a) => l.value = !1)
68
66
  }, {
69
67
  default: o(() => [
70
- s(" Confirm ")
68
+ m(" Confirm ")
71
69
  ]),
72
70
  _: 1
73
71
  })
@@ -83,11 +81,11 @@ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class:
83
81
  }, 8, ["locale"]);
84
82
  };
85
83
  }
86
- }), J = {
84
+ }), H = {
87
85
  install(t) {
88
86
  t.component("st-dialog", S);
89
87
  }
90
88
  };
91
89
  export {
92
- J as default
90
+ H as default
93
91
  };
@@ -1 +1 @@
1
- "use strict";const c=require("./base-ec05f348.cjs"),Q=require("./zh-cn-ab9a583d.cjs"),H=require("./el-overlay-891dcc40.cjs");require("./el-tag-3b03d13e.cjs");require("./el-tooltip-0ea8fbf8.cjs");const oe=require("./el-popper-f62316cd.cjs"),j=require("./el-table-column-dd8b62aa.cjs"),ee=require("./el-scrollbar-d1c3e7f7.cjs"),ce=require("./el-popover-8735b1fa.cjs"),le=require("./el-button-196807af.cjs"),J=require("./el-form-item-7d32befa.cjs"),ne=require("./el-input-6c6f5bda.cjs"),ue=require("./el-input-number-0524d787.cjs"),e=require("vue"),w=require("./use-form-common-props-1b84d8f4.cjs"),de=require("./index-a96158ae.cjs"),me=require("./_plugin-vue_export-helper-f246444f.cjs"),G=require("./index-e1e83173.cjs"),fe=require("./index-8a0b1c53.cjs"),X=require("./event-61f49698.cjs"),pe=require("./index-80a2b137.cjs");require("./config-provider-7cdfca4d.cjs");require("./vnode-7fbc61e1.cjs");require("./refs-d00b710b.cjs");require("./scroll-41224831.cjs");require("./debounce-b2ff12bd.cjs");require("./raf-8fc301fd.cjs");require("./index-eea0bcb3.cjs");require("./castArray-a45823fe.cjs");require("./typescript-b63f8e83.cjs");const ve=t=>["",...w.componentSizes].includes(t),ge=c.buildProps({direction:{type:c.definePropType(String),default:"horizontal"},options:{type:c.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:w.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...oe.useAriaProps(["ariaLabel"])}),he={[X.UPDATE_MODEL_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t),[X.CHANGE_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t)},Ce=e.defineComponent({name:"ElSegmented"}),ye=e.defineComponent({...Ce,props:ge,emits:he,setup(t,{emit:d}){const n=t,i=c.useNamespace("segmented"),p=c.useId(),m=w.useFormSize(),C=w.useFormDisabled(),{formItem:b}=w.useFormItem(),{inputId:s,isLabeledByFormItem:r}=w.useFormItemInputId(n,{formItemContext:b}),S=e.ref(null),f=ee.useActiveElement(),u=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),z=a=>{const V=M(a);d(X.UPDATE_MODEL_EVENT,V),d(X.CHANGE_EVENT,V)},M=a=>c.isObject(a)?a.value:a,_=a=>c.isObject(a)?a.label:a,x=a=>!!(C.value||c.isObject(a)&&a.disabled),I=a=>n.modelValue===M(a),F=a=>n.options.find(V=>M(V)===a),q=a=>[i.e("item"),i.is("selected",I(a)),i.is("disabled",x(a))],y=()=>{if(!S.value)return;const a=S.value.querySelector(".is-selected"),V=S.value.querySelector(".is-selected input");if(!a||!V){u.width=0,u.height=0,u.translateX=0,u.translateY=0,u.focusVisible=!1;return}const g=a.getBoundingClientRect();u.isInit=!0,n.direction==="vertical"?(u.height=g.height,u.translateY=a.offsetTop):(u.width=g.width,u.translateX=a.offsetLeft);try{u.focusVisible=V.matches(":focus-visible")}catch{}},l=e.computed(()=>[i.b(),i.m(m.value),i.is("block",n.block)]),N=e.computed(()=>({width:n.direction==="vertical"?"100%":`${u.width}px`,height:n.direction==="vertical"?`${u.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${u.translateY}px)`:`translateX(${u.translateX}px)`,display:u.isInit?"block":"none"})),v=e.computed(()=>[i.e("item-selected"),i.is("disabled",x(F(n.modelValue))),i.is("focus-visible",u.focusVisible)]),k=e.computed(()=>n.name||p.value);return ee.useResizeObserver(S,y),e.watch(f,y),e.watch(()=>n.modelValue,()=>{var a;y(),n.validateEvent&&((a=b==null?void 0:b.validate)==null||a.call(b,"change").catch(V=>c.debugWarn(V)))},{flush:"post"}),(a,V)=>a.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(s),ref_key:"segmentedRef",ref:S,class:e.normalizeClass(e.unref(l)),role:"radiogroup","aria-label":e.unref(r)?void 0:a.ariaLabel||"segmented","aria-labelledby":e.unref(r)?e.unref(b).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(i).e("group"),e.unref(i).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(N)),class:e.normalizeClass(e.unref(v))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,(g,O)=>(e.openBlock(),e.createElementBlock("label",{key:O,class:e.normalizeClass(q(g))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(i).e("item-input")),type:"radio",name:e.unref(k),disabled:x(g),checked:I(g),onChange:P=>z(g)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("item-label"))},[e.renderSlot(a.$slots,"default",{item:g},()=>[e.createTextVNode(e.toDisplayString(_(g)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var be=c._export_sfc(ye,[["__file","segmented.vue"]]);const ke=c.withInstall(be),Z="_trap-focus-children",$=[],te=t=>{var d;if($.length===0)return;const n=$[$.length-1][Z];if(n.length>0&&t.code===G.EVENT_CODE.tab){if(n.length===1){t.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=t.shiftKey,p=t.target===n[0],m=t.target===n[n.length-1];if(p&&i&&(t.preventDefault(),n[n.length-1].focus()),m&&!i&&(t.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const C=n.indexOf(t.target);C!==-1&&((d=n[i?C-1:C+1])==null||d.focus())}}},Ve={beforeMount(t){t[Z]=G.obtainAllFocusableElements(t),$.push(t),$.length<=1&&document.addEventListener("keydown",te)},updated(t){e.nextTick(()=>{t[Z]=G.obtainAllFocusableElements(t)})},unmounted(){$.shift(),$.length===0&&document.removeEventListener("keydown",te)}},we=e.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Ve},components:{ElButton:le.ElButton,ElFocusTrap:G.ElFocusTrap,ElInput:ne.ElInput,ElOverlay:H.ElOverlay,ElIcon:w.ElIcon,...w.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ve},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:d}){const{locale:n,zIndex:i,ns:p,size:m}=fe.useGlobalComponentSettings("message-box",e.computed(()=>t.buttonSize)),{t:C}=n,{nextZIndex:b}=i,s=e.ref(!1),r=e.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:e.markRaw(w.loading_default),cancelButtonLoadingIcon:e.markRaw(w.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:b()}),S=e.computed(()=>{const h=r.type;return{[p.bm("icon",h)]:h&&w.TypeComponentsMap[h]}}),f=c.useId(),u=c.useId(),z=e.computed(()=>{const h=r.type;return r.icon||h&&w.TypeComponentsMap[h]||""}),M=e.computed(()=>!!r.message),_=e.ref(),x=e.ref(),I=e.ref(),F=e.ref(),q=e.ref(),y=e.computed(()=>r.confirmButtonClass);e.watch(()=>r.inputValue,async h=>{await e.nextTick(),t.boxType==="prompt"&&h!==null&&O()},{immediate:!0}),e.watch(()=>s.value,h=>{var E,B;h&&(t.boxType!=="prompt"&&(r.autofocus?I.value=(B=(E=q.value)==null?void 0:E.$el)!=null?B:_.value:I.value=_.value),r.zIndex=b()),t.boxType==="prompt"&&(h?e.nextTick().then(()=>{var U;F.value&&F.value.$el&&(r.autofocus?I.value=(U=P())!=null?U:_.value:I.value=_.value)}):(r.editorErrorMessage="",r.validateError=!1))});const l=e.computed(()=>t.draggable),N=e.computed(()=>t.overflow);H.useDraggable(_,x,l,N),e.onMounted(async()=>{await e.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",v)}),e.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",v)});function v(){s.value&&(s.value=!1,e.nextTick(()=>{r.action&&d("action",r.action)}))}const k=()=>{t.closeOnClickModal&&g(r.distinguishCancelAndClose?"close":"cancel")},a=H.useSameTarget(k),V=h=>{if(r.inputType!=="textarea")return h.preventDefault(),g("confirm")},g=h=>{var E;t.boxType==="prompt"&&h==="confirm"&&!O()||(r.action=h,r.beforeClose?(E=r.beforeClose)==null||E.call(r,h,r,v):v())},O=()=>{if(t.boxType==="prompt"){const h=r.inputPattern;if(h&&!h.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;const E=r.inputValidator;if(c.isFunction(E)){const B=E(r.inputValue);if(B===!1)return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;if(c.isString(B))return r.editorErrorMessage=B,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},P=()=>{var h,E;const B=(h=F.value)==null?void 0:h.$refs;return(E=B==null?void 0:B.input)!=null?E:B==null?void 0:B.textarea},R=()=>{g("close")},L=()=>{t.closeOnPressEscape&&R()};return t.lockScroll&&H.useLockscreen(s),{...e.toRefs(r),ns:p,overlayEvent:a,visible:s,hasMessage:M,typeClass:S,contentId:f,inputId:u,btnSize:m,iconComponent:z,confirmButtonClasses:y,rootRef:_,focusStartRef:I,headerRef:x,inputRef:F,confirmRef:q,doClose:v,handleClose:R,onCloseRequested:L,handleWrapperClick:k,handleInputEnter:V,handleAction:g,t:C}}});function Ne(t,d,n,i,p,m){const C=e.resolveComponent("el-icon"),b=e.resolveComponent("close"),s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button"),S=e.resolveComponent("el-focus-trap"),f=e.resolveComponent("el-overlay");return e.openBlock(),e.createBlock(e.Transition,{name:"fade-in-linear",onAfterLeave:u=>t.$emit("vanish"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:e.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[e.createVNode(S,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:e.withCtx(()=>[e.createElementVNode("div",{ref:"rootRef",class:e.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:e.normalizeStyle(t.customStyle),tabindex:"-1",onClick:e.withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"headerRef",class:e.normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[e.createVNode(C,{class:e.normalizeClass(t.ns.e("close"))},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{id:t.contentId,class:e.normalizeClass(t.ns.e("content"))},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),t.hasMessage?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.ns.e("message"))},[e.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):e.createCommentVNode("v-if",!0)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("input"))},[e.createVNode(s,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":u=>t.inputValue=u,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:e.normalizeClass({invalid:t.validateError}),onKeydown:e.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("errormsg")),style:e.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},e.toDisplayString(t.editorErrorMessage),7)],2),[[e.vShow,t.showInput]])],10,["id"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(e.openBlock(),e.createBlock(r,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:e.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:u=>t.handleAction("cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(r,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:e.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:u=>t.handleAction("confirm"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[e.vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[e.vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var Be=c._export_sfc(we,[["render",Ne],["__file","index.vue"]]);const K=new Map,Ee=t=>{let d=document.body;return t.appendTo&&(c.isString(t.appendTo)&&(d=document.querySelector(t.appendTo)),c.isElement(t.appendTo)&&(d=t.appendTo),c.isElement(d)||(c.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),d=document.body)),d},Te=(t,d,n=null)=>{const i=e.createVNode(Be,t,c.isFunction(t.message)||e.isVNode(t.message)?{default:c.isFunction(t.message)?t.message:()=>t.message}:null);return i.appContext=n,e.render(i,d),Ee(t).appendChild(d.firstElementChild),i.component},Se=()=>document.createElement("div"),_e=(t,d)=>{const n=Se();t.onVanish=()=>{e.render(null,n),K.delete(p)},t.onAction=m=>{const C=K.get(p);let b;t.showInput?b={value:p.inputValue,action:m}:b=m,t.callback?t.callback(b,i.proxy):m==="cancel"||m==="close"?t.distinguishCancelAndClose&&m!=="cancel"?C.reject("close"):C.reject("cancel"):C.resolve(b)};const i=Te(t,n,d),p=i.proxy;for(const m in t)c.hasOwn(t,m)&&!c.hasOwn(p.$props,m)&&(p[m]=t[m]);return p.visible=!0,p};function A(t,d=null){if(!c.isClient)return Promise.reject();let n;return c.isString(t)||e.isVNode(t)?t={message:t}:n=t.callback,new Promise((i,p)=>{const m=_e(t,d??A._context);K.set(m,{options:t,callback:n,resolve:i,reject:p})})}const xe=["alert","confirm","prompt"],Ie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};xe.forEach(t=>{A[t]=Le(t)});function Le(t){return(d,n,i,p)=>{let m="";return c.isObject(n)?(i=n,m=""):c.isUndefined(n)?m="":m=n,A(Object.assign({title:m,message:d,type:"",...Ie[t]},i,{boxType:t}),p)}}A.close=()=>{K.forEach((t,d)=>{d.doClose()}),K.clear()};A._context=null;const D=A;D.install=t=>{D._context=t._context,t.config.globalProperties.$msgbox=D,t.config.globalProperties.$messageBox=D,t.config.globalProperties.$alert=D.alert,t.config.globalProperties.$confirm=D.confirm,t.config.globalProperties.$prompt=D.prompt};const ze=D;const Me={ruleFormPrice:!0,ruleFormMark:!0,tableStatus:!0,tableCreateTime:!0,tableMark:!0,tableEnable:!0};const W=t=>(e.pushScopeId("data-v-b57c57a6"),t=t(),e.popScopeId(),t),Fe={class:"st-factorWarning"},De={class:"custom-header"},Oe=W(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),$e={class:"factor-name"},qe=["onClick"],Ae={class:"factor-name"},Pe=["onClick"],Re={style:{display:"flex","align-items":"start"}},Ue={key:0,style:{flex:"1"}},He=W(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),Ke={key:0,style:{color:"#f56c6c"}},je={key:1,style:{color:"#67c23a"}},Ge={key:0},Xe={key:1},We={key:2},Ye={class:"shortcut-title"},Je=W(()=>e.createElementVNode("span",null,"我的配置",-1)),Ze={class:"shortcut-config"},Qe={key:1,class:"empty"},et={class:"shortcut-title"},tt=W(()=>e.createElementVNode("span",null,"新增配置",-1)),ot={class:"custom-footer"},lt={__name:"index",props:e.mergeModels({title:{type:[String,null],default:null},moreFactorOptions:{type:Array,default:()=>[]},emptyFactorOptions:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},shortcutData:{type:Array,default:()=>[]},showConfig:{type:Object,default:()=>({})},allowOperation:{type:Boolean,default:!0}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled","closed","shortcutAdd","shortcutDelete"],["update:visible"]),setup(t,{emit:d}){const n=e.ref("ruleForm"),i=e.useModel(t,"visible"),p=d,m=t,C=Object.assign(Me,m.showConfig),b=e.ref(null),s=e.ref({factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}),r=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}]}),S=e.ref(null),f=e.ref({shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}),u=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}],shortcutName:[{required:!0,message:"请填写配置名称",trigger:"blur"}]}),z=()=>{s.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null},f.value={shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}},M=async y=>{Object.assign(s.value,{factorSelectedList:[y],totalCount:3});const l={factorSelectedList:s.value.factorSelectedList.map(v=>({factorName:v,...s.value}))},N=()=>{const v=s.value.factorType;z(),s.value.factorType=v};x(b.value,l,N)},_=async y=>{const l=JSON.parse(y.data);Object.assign(s.value,{factorType:l.factorType,factorSelectedList:l.factorSelectedList,totalCount:l.totalCount});const N={factorSelectedList:s.value.factorSelectedList.map(k=>{let a=l.totalCount;const V=m.tableData.find(({factorExtendName:g})=>g===k);if(V){const g=V.totalCount-V.currentCount;g===0?a=l.totalCount:a=Math.min(l.totalCount,10-g>=0?10-g:0)}return{factorName:k,...s.value,totalCount:a}})},v=()=>z();x(b.value,N,v)},x=de.G(async(y,l,N)=>{y&&await y.validate(v=>{if(!v)return!1;const k=l??{factorSelectedList:s.value.factorSelectedList.map(a=>({factorName:a,...s.value}))};p("add",k),N?N():i.value=!1})},200),I=async y=>{y&&await y.validate(l=>{if(!l)return!1;const N={shortcutName:f.value.shortcutName,data:JSON.stringify(f.value)};p("shortcutAdd",N),z()})},F=y=>{f.value=JSON.parse(y.data)},q=y=>{ze.confirm(`是否确认删除配置: ${y.shortcutName} ?`,"删除提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>p("shortcutDelete",y))};return e.watch(()=>i.value,y=>{y&&(n.value=m.allowOperation?"ruleForm":"table",z())},{immediate:!0}),(y,l)=>{const N=ke,v=le.ElButton,k=J.ElFormItem,a=j.ElCheckbox,V=j.ElCheckboxGroup,g=ue.ElInputNumber,O=J.ElText,P=ne.ElInput,R=J.ElForm,L=j.ElTableColumn,h=ce.ElPopconfirm,E=j.ElTable,B=w.ElIcon,U=oe.ElTooltip,ae=pe.ElTag,re=H.ElDialog,se=Q.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(se,{locale:e.unref(Q.zhCn)},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:i.value,"onUpdate:modelValue":l[17]||(l[17]=o=>i.value=o),width:"1020","align-center":"","destroy-on-close":"",onClosed:l[18]||(l[18]=o=>p("closed"))},{header:e.withCtx(({close:o,titleId:T,titleClass:Y})=>[e.createElementVNode("div",De,[e.createElementVNode("div",{class:e.normalizeClass(Y)},[Oe,e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),e.createVNode(N,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=ie=>n.value=ie),size:"default",options:[{label:"添加",value:"ruleForm",disabled:!t.allowOperation},{label:"管理",value:"table",disabled:!1},{label:"快捷配置",value:"shortcut",disabled:!t.allowOperation}]},null,8,["modelValue","options"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(v,{size:"default",onClick:l[14]||(l[14]=o=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),n.value==="ruleForm"?(e.openBlock(),e.createBlock(v,{key:0,size:"default",type:"primary",onClick:l[15]||(l[15]=o=>e.unref(x)(b.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createBlock(v,{key:1,size:"default",type:"primary",onClick:l[16]||(l[16]=o=>I(S.value))},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[n.value==="ruleForm"?(e.openBlock(),e.createBlock(R,{key:0,ref_key:"ruleFormRef",ref:b,model:s.value,rules:r.value,size:"default","label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:s.value.factorType!==1,onClick:l[1]||(l[1]=()=>{s.value.factorType===-1&&(s.value.factorSelectedList=[]),s.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:s.value.factorType!==-1,onClick:l[2]||(l[2]=()=>{s.value.factorType===1&&(s.value.factorSelectedList=[]),s.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:s.value.factorSelectedList,"onUpdate:modelValue":l[3]||(l[3]=o=>s.value.factorSelectedList=o)},{default:e.withCtx(()=>[s.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,T)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:T},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",$e,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,qe)]))),128)):e.createCommentVNode("",!0),s.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,T)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:T},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Ae,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:Y=>M(o.factorTypeName)},"+3",8,Pe)]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createElementVNode("div",Re,[e.createVNode(g,{modelValue:s.value.totalCount,"onUpdate:modelValue":l[4]||(l[4]=o=>s.value.totalCount=o),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),t.shortcutData.length?(e.openBlock(),e.createElementBlock("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(v,{key:o.id,onClick:T=>_(o),style:{margin:"0 12px 4px 0"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick"]))),128))])):(e.openBlock(),e.createBlock(O,{key:1,type:"primary",style:{cursor:"pointer"},onClick:l[5]||(l[5]=()=>n.value="shortcut")},{default:e.withCtx(()=>[e.createTextVNode(" 暂无快捷配置, 是否点击前往自定义配置? ")]),_:1}))])]),_:1}),e.unref(C).ruleFormPrice?(e.openBlock(),e.createBlock(k,{key:0,label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:s.value.minPrice,"onUpdate:modelValue":l[6]||(l[6]=o=>s.value.minPrice=o),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),He,e.createVNode(g,{modelValue:s.value.maxPrice,"onUpdate:modelValue":l[7]||(l[7]=o=>s.value.maxPrice=o),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(C).ruleFormMark?(e.openBlock(),e.createBlock(k,{key:1,label:"备注:"},{default:e.withCtx(()=>[e.createVNode(P,{modelValue:s.value.mark,"onUpdate:modelValue":l[8]||(l[8]=o=>s.value.mark=o),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),n.value==="table"?(e.openBlock(),e.createBlock(E,{key:1,data:t.tableData,size:"small"},{default:e.withCtx(()=>[e.createVNode(L,{label:"预警周期",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.freqName||"-"),1)]),_:1}),e.createVNode(L,{label:"交易类型",width:"70"},{default:e.withCtx(o=>[o.row.factorExtendValue==1?(e.openBlock(),e.createElementBlock("span",Ke,"多")):(e.openBlock(),e.createElementBlock("span",je,"空"))]),_:1}),e.createVNode(L,{label:"预警因子"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(L,{label:"预警次数",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(`${o.row.currentCount} / ${o.row.totalCount}`),1)]),_:1}),e.unref(C).tableStatus?(e.openBlock(),e.createBlock(L,{key:0,label:"状态",width:"70"},{default:e.withCtx(o=>[e.createElementVNode("div",null,[o.row.enable===1?(e.openBlock(),e.createElementBlock("span",Ge,"未触发")):o.row.enable===2?(e.openBlock(),e.createElementBlock("span",Xe,"已触发")):(e.openBlock(),e.createElementBlock("span",We,"-"))])]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableCreateTime?(e.openBlock(),e.createBlock(L,{key:1,label:"设置时间",width:"136"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.createdTime||"-"),1)]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableMark?(e.openBlock(),e.createBlock(L,{key:2,label:"备注",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.mark||"-"),1)]),_:1})):e.createCommentVNode("",!0),t.allowOperation?(e.openBlock(),e.createBlock(L,{key:3,label:"操作",width:"140"},{default:e.withCtx(o=>[e.unref(C).tableEnable?(e.openBlock(),e.createBlock(v,{key:0,disabled:o.row.currentCount!==o.row.totalCount,size:"small",onClick:T=>p("enabled",o.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(h,{title:"确定删除?",onConfirm:T=>p("delete",o.row)},{reference:e.withCtx(()=>[e.createVNode(v,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Ye,[Je,e.createVNode(U,{effect:"dark",content:"如有配置数据, 可点击查看该配置的具体信息",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(e.unref(w.info_filled_default))]),_:1})]),_:1})]),e.createElementVNode("div",Ze,[t.shortcutData.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(ae,{key:o.id,type:"primary",size:"default",closable:"",onClick:T=>F(o),onClose:T=>q(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick","onClose"]))),128)):(e.openBlock(),e.createElementBlock("span",Qe,"暂无数据"))]),e.createElementVNode("div",et,[tt,e.createVNode(U,{effect:"dark",content:"同名配置将会进行覆盖",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(e.unref(w.info_filled_default))]),_:1})]),_:1})]),e.createVNode(R,{ref_key:"shortcut_ruleFormRef",ref:S,model:f.value,rules:u.value,"label-width":"90px",size:"default"},{default:e.withCtx(()=>[e.createVNode(k,{label:"配置名称:",prop:"shortcutName"},{default:e.withCtx(()=>[e.createVNode(P,{modelValue:f.value.shortcutName,"onUpdate:modelValue":l[9]||(l[9]=o=>f.value.shortcutName=o),maxlength:"6","show-word-limit":"",style:{width:"160px"}},null,8,["modelValue"])]),_:1}),e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:f.value.factorType!==1,onClick:l[10]||(l[10]=()=>{f.value.factorType===-1&&(f.value.factorSelectedList=[]),f.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:f.value.factorType!==-1,onClick:l[11]||(l[11]=()=>{f.value.factorType===1&&(f.value.factorSelectedList=[]),f.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:f.value.factorSelectedList,"onUpdate:modelValue":l[12]||(l[12]=o=>f.value.factorSelectedList=o)},{default:e.withCtx(()=>[f.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,T)=>(e.openBlock(),e.createBlock(a,{key:T,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0),f.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,T)=>(e.openBlock(),e.createBlock(a,{key:T,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:f.value.totalCount,"onUpdate:modelValue":l[13]||(l[13]=o=>f.value.totalCount=o),min:1,max:10,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])],64)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["locale"])])}}},nt=me._export_sfc(lt,[["__scopeId","data-v-b57c57a6"]]),at={install(t){t.component("st-factorWarning",nt)}};module.exports=at;
1
+ "use strict";const c=require("./base-ec05f348.cjs"),J=require("./zh-cn-ab9a583d.cjs"),K=require("./el-overlay-bc0790a2.cjs");require("./el-tag-c51a6490.cjs");require("./el-tooltip-0ea8fbf8.cjs");const te=require("./el-popper-746070ba.cjs"),G=require("./el-table-column-6d761fce.cjs"),Z=require("./el-scrollbar-d1c3e7f7.cjs"),ie=require("./el-popover-8a77e015.cjs"),oe=require("./el-button-196807af.cjs"),Q=require("./el-form-item-5bdffd07.cjs"),le=require("./el-input-23e2bac3.cjs"),ce=require("./el-checkbox-group-492b95cc.cjs"),ue=require("./el-input-number-40a81eb5.cjs"),e=require("vue"),w=require("./use-form-common-props-1b84d8f4.cjs"),de=require("./index-a96158ae.cjs"),me=require("./_plugin-vue_export-helper-f246444f.cjs"),O=require("./index-3bf8d597.cjs"),fe=require("./index-8a0b1c53.cjs"),pe=require("./index-a387515d.cjs");require("./config-provider-7cdfca4d.cjs");require("./vnode-7fbc61e1.cjs");require("./scroll-41224831.cjs");require("./_initCloneObject-441db749.cjs");require("./debounce-b2ff12bd.cjs");require("./raf-8fc301fd.cjs");require("./index-eea0bcb3.cjs");require("./castArray-a45823fe.cjs");require("./typescript-b63f8e83.cjs");require("./index-deb8de52.cjs");const ve=t=>["",...w.componentSizes].includes(t),ge=c.buildProps({direction:{type:c.definePropType(String),default:"horizontal"},options:{type:c.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:w.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...te.useAriaProps(["ariaLabel"])}),he={[O.UPDATE_MODEL_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t),[O.CHANGE_EVENT]:t=>c.isString(t)||c.isNumber(t)||c.isBoolean(t)},Ce=e.defineComponent({name:"ElSegmented"}),ye=e.defineComponent({...Ce,props:ge,emits:he,setup(t,{emit:d}){const n=t,i=c.useNamespace("segmented"),p=c.useId(),m=w.useFormSize(),C=w.useFormDisabled(),{formItem:b}=w.useFormItem(),{inputId:s,isLabeledByFormItem:r}=w.useFormItemInputId(n,{formItemContext:b}),S=e.ref(null),f=Z.useActiveElement(),u=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),z=a=>{const V=M(a);d(O.UPDATE_MODEL_EVENT,V),d(O.CHANGE_EVENT,V)},M=a=>c.isObject(a)?a.value:a,_=a=>c.isObject(a)?a.label:a,x=a=>!!(C.value||c.isObject(a)&&a.disabled),I=a=>n.modelValue===M(a),F=a=>n.options.find(V=>M(V)===a),A=a=>[i.e("item"),i.is("selected",I(a)),i.is("disabled",x(a))],y=()=>{if(!S.value)return;const a=S.value.querySelector(".is-selected"),V=S.value.querySelector(".is-selected input");if(!a||!V){u.width=0,u.height=0,u.translateX=0,u.translateY=0,u.focusVisible=!1;return}const g=a.getBoundingClientRect();u.isInit=!0,n.direction==="vertical"?(u.height=g.height,u.translateY=a.offsetTop):(u.width=g.width,u.translateX=a.offsetLeft);try{u.focusVisible=V.matches(":focus-visible")}catch{}},l=e.computed(()=>[i.b(),i.m(m.value),i.is("block",n.block)]),N=e.computed(()=>({width:n.direction==="vertical"?"100%":`${u.width}px`,height:n.direction==="vertical"?`${u.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${u.translateY}px)`:`translateX(${u.translateX}px)`,display:u.isInit?"block":"none"})),v=e.computed(()=>[i.e("item-selected"),i.is("disabled",x(F(n.modelValue))),i.is("focus-visible",u.focusVisible)]),k=e.computed(()=>n.name||p.value);return Z.useResizeObserver(S,y),e.watch(f,y),e.watch(()=>n.modelValue,()=>{var a;y(),n.validateEvent&&((a=b==null?void 0:b.validate)==null||a.call(b,"change").catch(V=>c.debugWarn(V)))},{flush:"post"}),(a,V)=>a.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(s),ref_key:"segmentedRef",ref:S,class:e.normalizeClass(e.unref(l)),role:"radiogroup","aria-label":e.unref(r)?void 0:a.ariaLabel||"segmented","aria-labelledby":e.unref(r)?e.unref(b).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(i).e("group"),e.unref(i).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(N)),class:e.normalizeClass(e.unref(v))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,(g,$)=>(e.openBlock(),e.createElementBlock("label",{key:$,class:e.normalizeClass(A(g))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(i).e("item-input")),type:"radio",name:e.unref(k),disabled:x(g),checked:I(g),onChange:R=>z(g)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("item-label"))},[e.renderSlot(a.$slots,"default",{item:g},()=>[e.createTextVNode(e.toDisplayString(_(g)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var be=c._export_sfc(ye,[["__file","segmented.vue"]]);const ke=c.withInstall(be),Y="_trap-focus-children",q=[],ee=t=>{var d;if(q.length===0)return;const n=q[q.length-1][Y];if(n.length>0&&t.code===O.EVENT_CODE.tab){if(n.length===1){t.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const i=t.shiftKey,p=t.target===n[0],m=t.target===n[n.length-1];if(p&&i&&(t.preventDefault(),n[n.length-1].focus()),m&&!i&&(t.preventDefault(),n[0].focus()),process.env.NODE_ENV==="test"){const C=n.indexOf(t.target);C!==-1&&((d=n[i?C-1:C+1])==null||d.focus())}}},Ve={beforeMount(t){t[Y]=O.obtainAllFocusableElements(t),q.push(t),q.length<=1&&document.addEventListener("keydown",ee)},updated(t){e.nextTick(()=>{t[Y]=O.obtainAllFocusableElements(t)})},unmounted(){q.shift(),q.length===0&&document.removeEventListener("keydown",ee)}},we=e.defineComponent({name:"ElMessageBox",directives:{TrapFocus:Ve},components:{ElButton:oe.ElButton,ElFocusTrap:O.ElFocusTrap,ElInput:le.ElInput,ElOverlay:K.ElOverlay,ElIcon:w.ElIcon,...w.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:ve},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:d}){const{locale:n,zIndex:i,ns:p,size:m}=fe.useGlobalComponentSettings("message-box",e.computed(()=>t.buttonSize)),{t:C}=n,{nextZIndex:b}=i,s=e.ref(!1),r=e.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:e.markRaw(w.loading_default),cancelButtonLoadingIcon:e.markRaw(w.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:b()}),S=e.computed(()=>{const h=r.type;return{[p.bm("icon",h)]:h&&w.TypeComponentsMap[h]}}),f=c.useId(),u=c.useId(),z=e.computed(()=>{const h=r.type;return r.icon||h&&w.TypeComponentsMap[h]||""}),M=e.computed(()=>!!r.message),_=e.ref(),x=e.ref(),I=e.ref(),F=e.ref(),A=e.ref(),y=e.computed(()=>r.confirmButtonClass);e.watch(()=>r.inputValue,async h=>{await e.nextTick(),t.boxType==="prompt"&&h!==null&&$()},{immediate:!0}),e.watch(()=>s.value,h=>{var E,B;h&&(t.boxType!=="prompt"&&(r.autofocus?I.value=(B=(E=A.value)==null?void 0:E.$el)!=null?B:_.value:I.value=_.value),r.zIndex=b()),t.boxType==="prompt"&&(h?e.nextTick().then(()=>{var H;F.value&&F.value.$el&&(r.autofocus?I.value=(H=R())!=null?H:_.value:I.value=_.value)}):(r.editorErrorMessage="",r.validateError=!1))});const l=e.computed(()=>t.draggable),N=e.computed(()=>t.overflow);K.useDraggable(_,x,l,N),e.onMounted(async()=>{await e.nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",v)}),e.onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",v)});function v(){s.value&&(s.value=!1,e.nextTick(()=>{r.action&&d("action",r.action)}))}const k=()=>{t.closeOnClickModal&&g(r.distinguishCancelAndClose?"close":"cancel")},a=K.useSameTarget(k),V=h=>{if(r.inputType!=="textarea")return h.preventDefault(),g("confirm")},g=h=>{var E;t.boxType==="prompt"&&h==="confirm"&&!$()||(r.action=h,r.beforeClose?(E=r.beforeClose)==null||E.call(r,h,r,v):v())},$=()=>{if(t.boxType==="prompt"){const h=r.inputPattern;if(h&&!h.test(r.inputValue||""))return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;const E=r.inputValidator;if(c.isFunction(E)){const B=E(r.inputValue);if(B===!1)return r.editorErrorMessage=r.inputErrorMessage||C("el.messagebox.error"),r.validateError=!0,!1;if(c.isString(B))return r.editorErrorMessage=B,r.validateError=!0,!1}}return r.editorErrorMessage="",r.validateError=!1,!0},R=()=>{var h,E;const B=(h=F.value)==null?void 0:h.$refs;return(E=B==null?void 0:B.input)!=null?E:B==null?void 0:B.textarea},U=()=>{g("close")},L=()=>{t.closeOnPressEscape&&U()};return t.lockScroll&&K.useLockscreen(s),{...e.toRefs(r),ns:p,overlayEvent:a,visible:s,hasMessage:M,typeClass:S,contentId:f,inputId:u,btnSize:m,iconComponent:z,confirmButtonClasses:y,rootRef:_,focusStartRef:I,headerRef:x,inputRef:F,confirmRef:A,doClose:v,handleClose:U,onCloseRequested:L,handleWrapperClick:k,handleInputEnter:V,handleAction:g,t:C}}});function Ne(t,d,n,i,p,m){const C=e.resolveComponent("el-icon"),b=e.resolveComponent("close"),s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button"),S=e.resolveComponent("el-focus-trap"),f=e.resolveComponent("el-overlay");return e.openBlock(),e.createBlock(e.Transition,{name:"fade-in-linear",onAfterLeave:u=>t.$emit("vanish"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:e.normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[e.createVNode(S,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:e.withCtx(()=>[e.createElementVNode("div",{ref:"rootRef",class:e.normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:e.normalizeStyle(t.customStyle),tabindex:"-1",onClick:e.withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"headerRef",class:e.normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[e.createVNode(C,{class:e.normalizeClass(t.ns.e("close"))},{default:e.withCtx(()=>[e.createVNode(b)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{id:t.contentId,class:e.normalizeClass(t.ns.e("content"))},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(e.openBlock(),e.createBlock(C,{key:0,class:e.normalizeClass([t.ns.e("status"),t.typeClass])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),t.hasMessage?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.ns.e("message"))},[e.renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):e.createCommentVNode("v-if",!0)],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("input"))},[e.createVNode(s,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":u=>t.inputValue=u,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:e.normalizeClass({invalid:t.validateError}),onKeydown:e.withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("errormsg")),style:e.normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},e.toDisplayString(t.editorErrorMessage),7)],2),[[e.vShow,t.showInput]])],10,["id"]),e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(e.openBlock(),e.createBlock(r,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:e.normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:u=>t.handleAction("cancel"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(r,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:e.normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:u=>t.handleAction("confirm"),onKeydown:e.withKeys(e.withModifiers(u=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[e.vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[e.vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var Be=c._export_sfc(we,[["render",Ne],["__file","index.vue"]]);const j=new Map,Ee=t=>{let d=document.body;return t.appendTo&&(c.isString(t.appendTo)&&(d=document.querySelector(t.appendTo)),c.isElement(t.appendTo)&&(d=t.appendTo),c.isElement(d)||(c.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),d=document.body)),d},Te=(t,d,n=null)=>{const i=e.createVNode(Be,t,c.isFunction(t.message)||e.isVNode(t.message)?{default:c.isFunction(t.message)?t.message:()=>t.message}:null);return i.appContext=n,e.render(i,d),Ee(t).appendChild(d.firstElementChild),i.component},Se=()=>document.createElement("div"),_e=(t,d)=>{const n=Se();t.onVanish=()=>{e.render(null,n),j.delete(p)},t.onAction=m=>{const C=j.get(p);let b;t.showInput?b={value:p.inputValue,action:m}:b=m,t.callback?t.callback(b,i.proxy):m==="cancel"||m==="close"?t.distinguishCancelAndClose&&m!=="cancel"?C.reject("close"):C.reject("cancel"):C.resolve(b)};const i=Te(t,n,d),p=i.proxy;for(const m in t)c.hasOwn(t,m)&&!c.hasOwn(p.$props,m)&&(p[m]=t[m]);return p.visible=!0,p};function P(t,d=null){if(!c.isClient)return Promise.reject();let n;return c.isString(t)||e.isVNode(t)?t={message:t}:n=t.callback,new Promise((i,p)=>{const m=_e(t,d??P._context);j.set(m,{options:t,callback:n,resolve:i,reject:p})})}const xe=["alert","confirm","prompt"],Ie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};xe.forEach(t=>{P[t]=Le(t)});function Le(t){return(d,n,i,p)=>{let m="";return c.isObject(n)?(i=n,m=""):c.isUndefined(n)?m="":m=n,P(Object.assign({title:m,message:d,type:"",...Ie[t]},i,{boxType:t}),p)}}P.close=()=>{j.forEach((t,d)=>{d.doClose()}),j.clear()};P._context=null;const D=P;D.install=t=>{D._context=t._context,t.config.globalProperties.$msgbox=D,t.config.globalProperties.$messageBox=D,t.config.globalProperties.$alert=D.alert,t.config.globalProperties.$confirm=D.confirm,t.config.globalProperties.$prompt=D.prompt};const ze=D;const Me={ruleFormPrice:!0,ruleFormMark:!0,tableStatus:!0,tableCreateTime:!0,tableMark:!0,tableEnable:!0};const X=t=>(e.pushScopeId("data-v-b57c57a6"),t=t(),e.popScopeId(),t),Fe={class:"st-factorWarning"},De={class:"custom-header"},Oe=X(()=>e.createElementVNode("span",{style:{"margin-right":"4px"}},"因子预警",-1)),$e={class:"factor-name"},qe=["onClick"],Ae={class:"factor-name"},Pe=["onClick"],Re={style:{display:"flex","align-items":"start"}},Ue={key:0,style:{flex:"1"}},He=X(()=>e.createElementVNode("span",{style:{margin:"0 5px"}},"~",-1)),Ke={key:0,style:{color:"#f56c6c"}},je={key:1,style:{color:"#67c23a"}},Ge={key:0},Xe={key:1},We={key:2},Ye={class:"shortcut-title"},Je=X(()=>e.createElementVNode("span",null,"我的配置",-1)),Ze={class:"shortcut-config"},Qe={key:1,class:"empty"},et={class:"shortcut-title"},tt=X(()=>e.createElementVNode("span",null,"新增配置",-1)),ot={class:"custom-footer"},lt={__name:"index",props:e.mergeModels({title:{type:[String,null],default:null},moreFactorOptions:{type:Array,default:()=>[]},emptyFactorOptions:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},shortcutData:{type:Array,default:()=>[]},showConfig:{type:Object,default:()=>({})},allowOperation:{type:Boolean,default:!0}},{visible:{default:!1},visibleModifiers:{}}),emits:e.mergeModels(["add","delete","enabled","closed","shortcutAdd","shortcutDelete"],["update:visible"]),setup(t,{emit:d}){const n=e.ref("ruleForm"),i=e.useModel(t,"visible"),p=d,m=t,C=Object.assign(Me,m.showConfig),b=e.ref(null),s=e.ref({factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null}),r=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}]}),S=e.ref(null),f=e.ref({shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}),u=e.ref({factorType:[{required:!0,message:"请选择交易类型",trigger:"blur"}],factorSelectedList:[{required:!0,message:"请选择预警因子",trigger:"blur"}],totalCount:[{required:!0,message:"请填写预警次数",trigger:"blur"}],shortcutName:[{required:!0,message:"请填写配置名称",trigger:"blur"}]}),z=()=>{s.value={factorType:1,factorSelectedList:[],totalCount:1,minPrice:null,maxPrice:null,mark:null},f.value={shortcutName:null,factorType:1,factorSelectedList:[],totalCount:1}},M=async y=>{Object.assign(s.value,{factorSelectedList:[y],totalCount:3});const l={factorSelectedList:s.value.factorSelectedList.map(v=>({factorName:v,...s.value}))},N=()=>{const v=s.value.factorType;z(),s.value.factorType=v};x(b.value,l,N)},_=async y=>{const l=JSON.parse(y.data);Object.assign(s.value,{factorType:l.factorType,factorSelectedList:l.factorSelectedList,totalCount:l.totalCount});const N={factorSelectedList:s.value.factorSelectedList.map(k=>{let a=l.totalCount;const V=m.tableData.find(({factorExtendName:g})=>g===k);if(V){const g=V.totalCount-V.currentCount;g===0?a=l.totalCount:a=Math.min(l.totalCount,10-g>=0?10-g:0)}return{factorName:k,...s.value,totalCount:a}})},v=()=>z();x(b.value,N,v)},x=de.G(async(y,l,N)=>{y&&await y.validate(v=>{if(!v)return!1;const k=l??{factorSelectedList:s.value.factorSelectedList.map(a=>({factorName:a,...s.value}))};p("add",k),N?N():i.value=!1})},200),I=async y=>{y&&await y.validate(l=>{if(!l)return!1;const N={shortcutName:f.value.shortcutName,data:JSON.stringify(f.value)};p("shortcutAdd",N),z()})},F=y=>{f.value=JSON.parse(y.data)},A=y=>{ze.confirm(`是否确认删除配置: ${y.shortcutName} ?`,"删除提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>p("shortcutDelete",y))};return e.watch(()=>i.value,y=>{y&&(n.value=m.allowOperation?"ruleForm":"table",z())},{immediate:!0}),(y,l)=>{const N=ke,v=oe.ElButton,k=Q.ElFormItem,a=G.ElCheckbox,V=G.ElCheckboxGroup,g=ue.ElInputNumber,$=ce.ElText,R=le.ElInput,U=Q.ElForm,L=G.ElTableColumn,h=ie.ElPopconfirm,E=G.ElTable,B=w.ElIcon,H=te.ElTooltip,ne=pe.ElTag,ae=K.ElDialog,re=J.ElConfigProvider;return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(re,{locale:e.unref(J.zhCn)},{default:e.withCtx(()=>[e.createVNode(ae,{modelValue:i.value,"onUpdate:modelValue":l[17]||(l[17]=o=>i.value=o),width:"1020","align-center":"","destroy-on-close":"",onClosed:l[18]||(l[18]=o=>p("closed"))},{header:e.withCtx(({close:o,titleId:T,titleClass:W})=>[e.createElementVNode("div",De,[e.createElementVNode("div",{class:e.normalizeClass(W)},[Oe,e.createElementVNode("span",null,e.toDisplayString(t.title),1)],2),e.createVNode(N,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=se=>n.value=se),size:"default",options:[{label:"添加",value:"ruleForm",disabled:!t.allowOperation},{label:"管理",value:"table",disabled:!1},{label:"快捷配置",value:"shortcut",disabled:!t.allowOperation}]},null,8,["modelValue","options"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(v,{size:"default",onClick:l[14]||(l[14]=o=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),n.value==="ruleForm"?(e.openBlock(),e.createBlock(v,{key:0,size:"default",type:"primary",onClick:l[15]||(l[15]=o=>e.unref(x)(b.value))},{default:e.withCtx(()=>[e.createTextVNode(" 确认 ")]),_:1})):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createBlock(v,{key:1,size:"default",type:"primary",onClick:l[16]||(l[16]=o=>I(S.value))},{default:e.withCtx(()=>[e.createTextVNode(" 保存配置 ")]),_:1})):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[n.value==="ruleForm"?(e.openBlock(),e.createBlock(U,{key:0,ref_key:"ruleFormRef",ref:b,model:s.value,rules:r.value,size:"default","label-width":"90px"},{default:e.withCtx(()=>[e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:s.value.factorType!==1,onClick:l[1]||(l[1]=()=>{s.value.factorType===-1&&(s.value.factorSelectedList=[]),s.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:s.value.factorType!==-1,onClick:l[2]||(l[2]=()=>{s.value.factorType===1&&(s.value.factorSelectedList=[]),s.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:s.value.factorSelectedList,"onUpdate:modelValue":l[3]||(l[3]=o=>s.value.factorSelectedList=o)},{default:e.withCtx(()=>[s.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,T)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:T},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",$e,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:W=>M(o.factorTypeName)},"+3",8,qe)]))),128)):e.createCommentVNode("",!0),s.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,T)=>(e.openBlock(),e.createElementBlock("div",{class:"factor-checkbox",key:T},[e.createVNode(a,{label:o.factorTypeName,value:o.factorTypeName},{default:e.withCtx(()=>[e.createElementVNode("span",Ae,e.toDisplayString(o.factorTypeName),1)]),_:2},1032,["label","value"]),e.createElementVNode("span",{class:"tag-button",onClick:W=>M(o.factorTypeName)},"+3",8,Pe)]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createElementVNode("div",Re,[e.createVNode(g,{modelValue:s.value.totalCount,"onUpdate:modelValue":l[4]||(l[4]=o=>s.value.totalCount=o),min:1,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"]),t.shortcutData.length?(e.openBlock(),e.createElementBlock("div",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(v,{key:o.id,onClick:T=>_(o),style:{margin:"0 12px 4px 0"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick"]))),128))])):(e.openBlock(),e.createBlock($,{key:1,type:"primary",style:{cursor:"pointer"},onClick:l[5]||(l[5]=()=>n.value="shortcut")},{default:e.withCtx(()=>[e.createTextVNode(" 暂无快捷配置, 是否点击前往自定义配置? ")]),_:1}))])]),_:1}),e.unref(C).ruleFormPrice?(e.openBlock(),e.createBlock(k,{key:0,label:"价格范围:"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:s.value.minPrice,"onUpdate:modelValue":l[6]||(l[6]=o=>s.value.minPrice=o),min:-999,placeholder:"请输入",max:999,"controls-position":"right"},null,8,["modelValue"]),He,e.createVNode(g,{modelValue:s.value.maxPrice,"onUpdate:modelValue":l[7]||(l[7]=o=>s.value.maxPrice=o),placeholder:"请输入",min:-999,max:999,"controls-position":"right"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(C).ruleFormMark?(e.openBlock(),e.createBlock(k,{key:1,label:"备注:"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:s.value.mark,"onUpdate:modelValue":l[8]||(l[8]=o=>s.value.mark=o),type:"textarea",placeholder:"请输入关键字",rows:2,style:{width:"380px"}},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])):e.createCommentVNode("",!0),n.value==="table"?(e.openBlock(),e.createBlock(E,{key:1,data:t.tableData,size:"small"},{default:e.withCtx(()=>[e.createVNode(L,{label:"预警周期",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.freqName||"-"),1)]),_:1}),e.createVNode(L,{label:"交易类型",width:"70"},{default:e.withCtx(o=>[o.row.factorExtendValue==1?(e.openBlock(),e.createElementBlock("span",Ke,"多")):(e.openBlock(),e.createElementBlock("span",je,"空"))]),_:1}),e.createVNode(L,{label:"预警因子"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.factorExtendName||"-"),1)]),_:1}),e.createVNode(L,{label:"预警次数",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(`${o.row.currentCount} / ${o.row.totalCount}`),1)]),_:1}),e.unref(C).tableStatus?(e.openBlock(),e.createBlock(L,{key:0,label:"状态",width:"70"},{default:e.withCtx(o=>[e.createElementVNode("div",null,[o.row.enable===1?(e.openBlock(),e.createElementBlock("span",Ge,"未触发")):o.row.enable===2?(e.openBlock(),e.createElementBlock("span",Xe,"已触发")):(e.openBlock(),e.createElementBlock("span",We,"-"))])]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableCreateTime?(e.openBlock(),e.createBlock(L,{key:1,label:"设置时间",width:"136"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.createdTime||"-"),1)]),_:1})):e.createCommentVNode("",!0),e.unref(C).tableMark?(e.openBlock(),e.createBlock(L,{key:2,label:"备注",width:"70"},{default:e.withCtx(o=>[e.createTextVNode(e.toDisplayString(o.row.mark||"-"),1)]),_:1})):e.createCommentVNode("",!0),t.allowOperation?(e.openBlock(),e.createBlock(L,{key:3,label:"操作",width:"140"},{default:e.withCtx(o=>[e.unref(C).tableEnable?(e.openBlock(),e.createBlock(v,{key:0,disabled:o.row.currentCount!==o.row.totalCount,size:"small",onClick:T=>p("enabled",o.row)},{default:e.withCtx(()=>[e.createTextVNode(" 启用 ")]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),e.createVNode(h,{title:"确定删除?",onConfirm:T=>p("delete",o.row)},{reference:e.withCtx(()=>[e.createVNode(v,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["data"])):e.createCommentVNode("",!0),n.value==="shortcut"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Ye,[Je,e.createVNode(H,{effect:"dark",content:"如有配置数据, 可点击查看该配置的具体信息",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(e.unref(w.info_filled_default))]),_:1})]),_:1})]),e.createElementVNode("div",Ze,[t.shortcutData.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.shortcutData,o=>(e.openBlock(),e.createBlock(ne,{key:o.id,type:"primary",size:"default",closable:"",onClick:T=>F(o),onClose:T=>A(o)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.shortcutName),1)]),_:2},1032,["onClick","onClose"]))),128)):(e.openBlock(),e.createElementBlock("span",Qe,"暂无数据"))]),e.createElementVNode("div",et,[tt,e.createVNode(H,{effect:"dark",content:"同名配置将会进行覆盖",placement:"right-start"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createVNode(e.unref(w.info_filled_default))]),_:1})]),_:1})]),e.createVNode(U,{ref_key:"shortcut_ruleFormRef",ref:S,model:f.value,rules:u.value,"label-width":"90px",size:"default"},{default:e.withCtx(()=>[e.createVNode(k,{label:"配置名称:",prop:"shortcutName"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:f.value.shortcutName,"onUpdate:modelValue":l[9]||(l[9]=o=>f.value.shortcutName=o),maxlength:"6","show-word-limit":"",style:{width:"160px"}},null,8,["modelValue"])]),_:1}),e.createVNode(k,{label:"交易类型:",prop:"factorType"},{default:e.withCtx(()=>[e.createVNode(v,{type:"danger",plain:f.value.factorType!==1,onClick:l[10]||(l[10]=()=>{f.value.factorType===-1&&(f.value.factorSelectedList=[]),f.value.factorType=1})},{default:e.withCtx(()=>[e.createTextVNode(" 多 ")]),_:1},8,["plain"]),e.createVNode(v,{type:"success",plain:f.value.factorType!==-1,onClick:l[11]||(l[11]=()=>{f.value.factorType===1&&(f.value.factorSelectedList=[]),f.value.factorType=-1})},{default:e.withCtx(()=>[e.createTextVNode(" 空 ")]),_:1},8,["plain"])]),_:1}),e.createVNode(k,{label:"预警因子:",prop:"factorSelectedList"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:f.value.factorSelectedList,"onUpdate:modelValue":l[12]||(l[12]=o=>f.value.factorSelectedList=o)},{default:e.withCtx(()=>[f.value.factorType===1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.moreFactorOptions,(o,T)=>(e.openBlock(),e.createBlock(a,{key:T,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0),f.value.factorType===-1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.emptyFactorOptions,(o,T)=>(e.openBlock(),e.createBlock(a,{key:T,label:o.factorTypeName,value:o.factorTypeName,style:{width:"200px"}},null,8,["label","value"]))),128)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"预警次数:",prop:"totalCount"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:f.value.totalCount,"onUpdate:modelValue":l[13]||(l[13]=o=>f.value.totalCount=o),min:1,max:10,"controls-position":"right",style:{"margin-right":"20px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])],64)):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["locale"])])}}},nt=me._export_sfc(lt,[["__scopeId","data-v-b57c57a6"]]),at={install(t){t.component("st-factorWarning",nt)}};module.exports=at;
@@ -1,33 +1,34 @@
1
- import { b as Ge, d as Ce, i as ae, a as ke, c as Ee, u as We, e as ve, f as $e, _ as Ne, g as ce, w as Ye, h as ge, j as Je, k as we, l as Ze, m as Te } from "./base-3ecbc734.js";
2
- import { z as Qe, E as xe } from "./zh-cn-4a476dc8.js";
3
- import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-6056c89a.js";
4
- import "./el-tag-6a31c968.js";
1
+ import { b as Ge, d as Ce, i as ae, a as ke, c as Ee, u as We, e as ve, f as $e, _ as Ne, g as ce, w as Ye, h as ge, j as Je, k as we, l as Ze, m as Te } from "./base-437d17f3.js";
2
+ import { z as Qe, E as xe } from "./zh-cn-eb9c2820.js";
3
+ import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-12dd9b35.js";
4
+ import "./el-tag-985d9aff.js";
5
5
  import "./el-tooltip-4ed993c7.js";
6
- import { u as nt, E as st } from "./el-popper-d3eef7ed.js";
7
- import { E as rt, a as it, b as ut, c as ct } from "./el-table-column-560db3aa.js";
8
- import { u as dt, a as ft } from "./el-scrollbar-66f3bb72.js";
9
- import { E as mt } from "./el-popover-c8b2456c.js";
10
- import { E as Oe } from "./el-button-24f79286.js";
11
- import { E as pt, a as vt, b as gt } from "./el-form-item-afc3dcf2.js";
12
- import { E as Fe } from "./el-input-ee7db655.js";
13
- import { E as yt } from "./el-input-number-63c21037.js";
6
+ import { u as nt, E as st } from "./el-popper-50100766.js";
7
+ import { E as rt, a as it, b as ut, c as ct } from "./el-table-column-55bffba5.js";
8
+ import { u as dt, a as ft } from "./el-scrollbar-562d0595.js";
9
+ import { E as mt } from "./el-popover-0aa071f2.js";
10
+ import { E as Oe } from "./el-button-e1665717.js";
11
+ import { E as pt, a as vt } from "./el-form-item-af1855f0.js";
12
+ import { E as Fe } from "./el-input-4961b99f.js";
13
+ import { E as gt } from "./el-checkbox-group-e8fece80.js";
14
+ import { E as yt } from "./el-input-number-610fc8ba.js";
14
15
  import { defineComponent as he, ref as O, reactive as ze, computed as P, watch as ne, openBlock as n, createElementBlock as T, unref as _, normalizeClass as k, createElementVNode as f, normalizeStyle as ye, Fragment as X, renderList as Y, renderSlot as Ae, createTextVNode as B, toDisplayString as M, createCommentVNode as S, nextTick as oe, markRaw as Se, onMounted as bt, onBeforeUnmount as ht, toRefs as Ct, resolveComponent as Q, createBlock as E, Transition as kt, withCtx as o, withDirectives as me, createVNode as r, withModifiers as re, resolveDynamicComponent as ie, withKeys as ue, vShow as pe, isVNode as Pe, render as Re, mergeModels as _e, useModel as Et, pushScopeId as wt, popScopeId as Tt } from "vue";
15
- import { c as St, u as _t, a as Bt, b as Vt, d as It, e as Lt, E as De, T as Mt, l as Be, f as Ve, i as Ie } from "./use-form-common-props-9c0363ac.js";
16
+ import { c as St, u as _t, a as Bt, b as Vt, d as It, e as Lt, E as De, T as Mt, l as Be, f as Ve, i as Ie } from "./use-form-common-props-f377e500.js";
16
17
  import { G as $t } from "./index-8542fe24.js";
17
18
  import { _ as Nt } from "./_plugin-vue_export-helper-dad06003.js";
18
- import { o as Le, E as Ot, a as Ft } from "./index-fa07a823.js";
19
- import { u as zt } from "./index-68ee64fa.js";
20
- import { U as Ue, C as qe } from "./event-09e37cc8.js";
21
- import { E as At } from "./index-a1ecf26c.js";
22
- import "./config-provider-83904b4d.js";
23
- import "./vnode-cfcdab70.js";
24
- import "./refs-46cf8186.js";
25
- import "./scroll-1efa8148.js";
26
- import "./debounce-7344b088.js";
27
- import "./raf-377cf8f5.js";
19
+ import { U as Ue, C as qe, o as Le, E as Ot, a as Ft } from "./index-0cb48e01.js";
20
+ import { u as zt } from "./index-09e01b1d.js";
21
+ import { E as At } from "./index-39ec9741.js";
22
+ import "./config-provider-55482a43.js";
23
+ import "./vnode-7dfd4ed5.js";
24
+ import "./scroll-387fcfdb.js";
25
+ import "./_initCloneObject-14b53c6f.js";
26
+ import "./debounce-ac30be50.js";
27
+ import "./raf-b128c7b7.js";
28
28
  import "./index-657047bb.js";
29
- import "./castArray-7d3fc921.js";
29
+ import "./castArray-4251bbe4.js";
30
30
  import "./typescript-7ae59c4c.js";
31
+ import "./index-a902a0d9.js";
31
32
  const Pt = (e) => ["", ...St].includes(e), Rt = Ge({
32
33
  direction: {
33
34
  type: Ce(String),
@@ -798,7 +799,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
798
799
  immediate: !0
799
800
  }
800
801
  ), (w, l) => {
801
- const $ = Kt, y = Oe, I = pt, s = rt, L = it, b = yt, W = vt, ee = Fe, te = gt, q = ut, h = mt, F = ct, N = De, le = st, He = At, Ke = at, je = xe;
802
+ const $ = Kt, y = Oe, I = pt, s = rt, L = it, b = yt, W = gt, ee = Fe, te = vt, q = ut, h = mt, F = ct, N = De, le = st, He = At, Ke = at, je = xe;
802
803
  return n(), T("div", al, [
803
804
  r(je, { locale: _(Qe) }, {
804
805
  default: o(() => [
@@ -1316,11 +1317,11 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1316
1317
  ]);
1317
1318
  };
1318
1319
  }
1319
- }, Bl = /* @__PURE__ */ Nt(_l, [["__scopeId", "data-v-b57c57a6"]]), ao = {
1320
+ }, Bl = /* @__PURE__ */ Nt(_l, [["__scopeId", "data-v-b57c57a6"]]), no = {
1320
1321
  install(e) {
1321
1322
  e.component("st-factorWarning", Bl);
1322
1323
  }
1323
1324
  };
1324
1325
  export {
1325
- ao as default
1326
+ no as default
1326
1327
  };