st-comp 0.0.164 → 0.0.166

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 (145) hide show
  1. package/components.d.ts +3 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +3 -3
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +16 -14
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +492 -614
  8. package/es/Kline.cjs +1 -1
  9. package/es/Kline.js +16 -16
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +477 -766
  12. package/es/KlineConfig.cjs +1 -0
  13. package/es/KlineConfig.js +703 -0
  14. package/es/KlineNew.cjs +1 -1
  15. package/es/KlineNew.js +14 -14
  16. package/es/KlinePlus.cjs +6 -0
  17. package/es/KlinePlus.js +1212 -0
  18. package/es/Pagination.cjs +1 -1
  19. package/es/Pagination.js +21 -20
  20. package/es/PasswordPrompt.cjs +1 -1
  21. package/es/PasswordPrompt.js +3 -3
  22. package/es/Table.cjs +1 -1
  23. package/es/Table.js +100 -279
  24. package/es/User.cjs +1 -1
  25. package/es/User.js +41 -39
  26. package/es/VarSelectDialog.cjs +1 -1
  27. package/es/VarSelectDialog.js +23 -22
  28. package/es/VarietySearch.cjs +1 -1
  29. package/es/VarietySearch.js +34 -32
  30. package/es/VirtualTable.cjs +5 -5
  31. package/es/VirtualTable.js +1018 -1056
  32. package/es/{_initCloneObject-47814efa.cjs → _initCloneObject-9ccbb113.cjs} +1 -1
  33. package/es/{_initCloneObject-c939f3af.js → _initCloneObject-a9305c1e.js} +3 -3
  34. package/es/base-4bcd2756.js +304 -0
  35. package/es/base-bdc10baa.cjs +5 -0
  36. package/es/{castArray-a78ae889.cjs → castArray-37eb9980.cjs} +1 -1
  37. package/es/{castArray-2440268f.js → castArray-681d750b.js} +1 -1
  38. package/es/{config-provider-722dca36.js → config-provider-93846ae3.js} +9 -9
  39. package/es/config-provider-ec6b09df.cjs +1 -0
  40. package/es/dayjs.min-19fb125f.cjs +1 -0
  41. package/es/dayjs.min-54a4e095.js +296 -0
  42. package/es/{debounce-82e23c4b.js → debounce-51046b06.js} +1 -1
  43. package/es/{debounce-cf26af24.cjs → debounce-9e323221.cjs} +1 -1
  44. package/es/{dropdown-6f8379f0.js → dropdown-65e74de8.js} +6 -6
  45. package/es/{dropdown-790d31ea.cjs → dropdown-b2dab5bb.cjs} +1 -1
  46. package/es/{el-autocomplete-75762ef9.js → el-autocomplete-5064d466.js} +9 -9
  47. package/es/{el-autocomplete-84de99ba.cjs → el-autocomplete-814993af.cjs} +1 -1
  48. package/es/el-button-960edd49.cjs +1 -0
  49. package/es/{el-button-2e878325.js → el-button-d39472d3.js} +37 -36
  50. package/es/{el-checkbox-group-45247bbf.cjs → el-checkbox-group-020b49f5.cjs} +1 -1
  51. package/es/{el-checkbox-group-5e4f32f0.js → el-checkbox-group-779f353a.js} +2 -2
  52. package/es/el-dialog-cd484c1f.cjs +1 -0
  53. package/es/el-dialog-f45ec2a1.js +267 -0
  54. package/es/el-divider-40c50ce7.cjs +1 -0
  55. package/es/el-divider-7cf13678.js +45 -0
  56. package/es/{el-empty-2ece1134.cjs → el-empty-627ec09e.cjs} +1 -1
  57. package/es/{el-empty-7f8acbdc.js → el-empty-64b2ea8a.js} +2 -2
  58. package/es/{el-form-item-45ba08ff.js → el-form-item-b31e7a98.js} +8 -8
  59. package/es/{el-form-item-47e255d4.cjs → el-form-item-e1c3104b.cjs} +2 -2
  60. package/es/{el-input-1323afd2.js → el-input-42315ac4.js} +48 -48
  61. package/es/{el-input-cb340042.cjs → el-input-5163bda3.cjs} +1 -1
  62. package/es/{el-input-number-0f194f3f.cjs → el-input-number-eb54cde4.cjs} +1 -1
  63. package/es/{el-input-number-991f8bfc.js → el-input-number-ebd64e22.js} +19 -19
  64. package/es/el-loading-15a5501c.cjs +1 -0
  65. package/es/el-loading-5d29f26d.js +187 -0
  66. package/es/{el-menu-item-4c9eb7ad.cjs → el-menu-item-ac89e804.cjs} +1 -1
  67. package/es/{el-menu-item-dbbcd01a.js → el-menu-item-d62e0a3f.js} +32 -32
  68. package/es/el-message-ad87b9dd.cjs +1 -0
  69. package/es/{el-message-03e6f342.js → el-message-bd1d2c82.js} +17 -17
  70. package/es/el-overlay-690b50aa.js +269 -0
  71. package/es/el-overlay-e5d318c3.cjs +1 -0
  72. package/es/{el-popconfirm-8372cd13.js → el-popconfirm-88bbd066.js} +13 -13
  73. package/es/{el-popconfirm-86503f8a.cjs → el-popconfirm-a497b279.cjs} +1 -1
  74. package/es/{el-popper-7adbf1c6.cjs → el-popper-14a9d493.cjs} +1 -1
  75. package/es/{el-popper-b5315f5b.js → el-popper-85365d5b.js} +63 -63
  76. package/es/{el-scrollbar-ac525239.cjs → el-scrollbar-8bf765f2.cjs} +1 -1
  77. package/es/{el-scrollbar-4dc1493a.js → el-scrollbar-bcf29780.js} +21 -21
  78. package/es/el-segmented-84707138.js +136 -0
  79. package/es/el-segmented-bccd9f2a.cjs +1 -0
  80. package/es/{el-select-31f8ac8a.cjs → el-select-1d2309a1.cjs} +1 -1
  81. package/es/{el-select-a4ad7c8b.js → el-select-d3bce4d1.js} +13 -13
  82. package/es/{el-table-column-2e7132b3.js → el-table-column-9691b26d.js} +19 -18
  83. package/es/el-table-column-be9a76bb.cjs +14 -0
  84. package/es/{el-tag-a79385c6.js → el-tag-6036f51c.js} +39 -39
  85. package/es/{el-tag-9732314f.cjs → el-tag-8d49d4d2.cjs} +1 -1
  86. package/es/{index-375e8de4.cjs → index-02ca0096.cjs} +1 -1
  87. package/es/{index-afc88a4b.cjs → index-19fa1fcf.cjs} +1 -1
  88. package/es/{index-733cd68a.js → index-21fb27eb.js} +17 -17
  89. package/es/{index-e5fe37a4.js → index-3425f2f0.js} +10 -10
  90. package/es/{index-1d85ba4b.cjs → index-5b81f4da.cjs} +1 -1
  91. package/es/index-8d3c5e96.cjs +3 -0
  92. package/es/{index-97d24ab7.js → index-8ee89b40.js} +16 -16
  93. package/es/{index-9e6e8d03.cjs → index-a99a5307.cjs} +1 -1
  94. package/es/{index-58521b9e.cjs → index-b90c746b.cjs} +1 -1
  95. package/es/index-c45ac024.js +14 -0
  96. package/es/{index-f5b9b211.js → index-cb8157f2.js} +2 -2
  97. package/es/{index-e6a36e09.js → index-d3c37134.js} +7 -7
  98. package/es/{index-65b4113e.cjs → index-d94bae37.cjs} +1 -1
  99. package/es/{index-2d9c78d4.cjs → index-e348d5e8.cjs} +1 -1
  100. package/es/{index-57a7323a.js → index-ef7c4392.js} +11 -11
  101. package/es/{index-e3353eeb.js → index-fbe85773.js} +13 -13
  102. package/es/{raf-f46caea0.cjs → raf-07cb6953.cjs} +1 -1
  103. package/es/{raf-c817c3f7.js → raf-36faa519.js} +1 -1
  104. package/es/{scroll-4fe7a76f.js → scroll-0277d145.js} +1 -1
  105. package/es/{scroll-339681d4.cjs → scroll-4769a65d.cjs} +1 -1
  106. package/es/style.css +1 -1
  107. package/es/{use-form-common-props-04fb0752.js → use-form-common-props-54c31983.js} +40 -40
  108. package/es/{use-form-common-props-74a96df2.cjs → use-form-common-props-592797e2.cjs} +1 -1
  109. package/es/use-global-config-584b62f1.cjs +1 -0
  110. package/es/use-global-config-946f61a4.js +73 -0
  111. package/es/{vnode-b15eb11b.cjs → vnode-1b827c99.cjs} +1 -1
  112. package/es/{vnode-0fd3003d.js → vnode-dfc92f20.js} +1 -1
  113. package/es/{zh-cn-cac8283b.js → zh-cn-5066f5e9.js} +2 -2
  114. package/es/{zh-cn-36f34912.cjs → zh-cn-b24a7dc9.cjs} +1 -1
  115. package/lib/bundle.js +1 -1
  116. package/lib/bundle.umd.cjs +217 -212
  117. package/lib/{index-5f63dc2e.js → index-80531492.js} +39042 -37182
  118. package/lib/{python-5918f7d5.js → python-20a1a5fc.js} +1 -1
  119. package/lib/style.css +1 -1
  120. package/package.json +1 -1
  121. package/packages/KlineConfig/config.js +39 -0
  122. package/packages/KlineConfig/index.ts +8 -0
  123. package/packages/KlineConfig/index.vue +315 -0
  124. package/packages/KlinePlus/components/SliderChart.vue +218 -0
  125. package/packages/KlinePlus/components/Tips.vue +36 -0
  126. package/packages/KlinePlus/images/buy.svg +1 -0
  127. package/packages/KlinePlus/images/sell.svg +1 -0
  128. package/packages/KlinePlus/images/t.svg +1 -0
  129. package/packages/KlinePlus/index.ts +8 -0
  130. package/packages/KlinePlus/index.vue +880 -0
  131. package/packages/KlinePlus/utils.js +705 -0
  132. package/packages/index.ts +4 -0
  133. package/src/pages/KlineConfig/index.vue +20 -0
  134. package/src/pages/KlinePlus/index.vue +180 -0
  135. package/src/router/routes.ts +10 -0
  136. package/es/base-0ca7c43a.cjs +0 -5
  137. package/es/base-b56cf478.js +0 -303
  138. package/es/config-provider-cfbb9cd8.cjs +0 -1
  139. package/es/el-button-62966947.cjs +0 -1
  140. package/es/el-message-d5ed7a4f.cjs +0 -1
  141. package/es/el-overlay-41994f67.cjs +0 -1
  142. package/es/el-overlay-47b665a0.js +0 -521
  143. package/es/el-table-column-bdc46568.cjs +0 -14
  144. package/es/index-0baeaec7.js +0 -82
  145. package/es/index-2f958e56.cjs +0 -3
@@ -1,206 +1,85 @@
1
- import { b as Ge, d as Ce, i as ae, a as ke, c as Ee, u as We, e as $e, _ as Ne, f as ce, w as Ye, g as ve, h as Je, j as we, k as Ze, l as Te } from "./base-b56cf478.js";
2
- import { z as Qe, E as xe } from "./zh-cn-cac8283b.js";
3
- import { a as et, u as tt, b as lt, c as ot, E as at } from "./el-overlay-47b665a0.js";
4
- import "./el-tag-a79385c6.js";
1
+ import { i as fe, a as ve, _ as Ae, b as ze, h as ye, c as Pe, d as Re, e as ge, f as De } from "./base-4bcd2756.js";
2
+ import { z as Ue, E as qe } from "./zh-cn-5066f5e9.js";
3
+ import { u as He, E as Ke } from "./el-dialog-f45ec2a1.js";
4
+ import { E as je, u as Ge, a as We } from "./el-overlay-690b50aa.js";
5
+ import "./el-tag-6036f51c.js";
5
6
  import "./el-tooltip-4ed993c7.js";
6
- import { u as nt, E as st } from "./el-popper-b5315f5b.js";
7
- import { E as rt, a as it, b as ut, c as ct } from "./el-table-column-2e7132b3.js";
8
- import { u as dt, a as ft } from "./el-scrollbar-4dc1493a.js";
9
- import { E as mt } from "./el-popconfirm-8372cd13.js";
10
- import { E as Oe } from "./el-button-2e878325.js";
11
- import { E as pt, a as vt } from "./el-form-item-45ba08ff.js";
12
- import { E as Fe } from "./el-input-1323afd2.js";
13
- import { E as gt } from "./el-checkbox-group-5e4f32f0.js";
14
- import { E as yt } from "./el-input-number-991f8bfc.js";
15
- import { defineComponent as he, ref as O, reactive as ze, computed as P, watch as ne, openBlock as n, createElementBlock as T, unref as _, normalizeClass as k, createElementVNode as f, normalizeStyle as ge, Fragment as X, renderList as Y, renderSlot as Ae, createTextVNode as B, toDisplayString as M, createCommentVNode as S, nextTick as oe, markRaw as Se, onMounted as bt, onBeforeUnmount as ht, toRefs as Ct, resolveComponent as Q, createBlock as E, Transition as kt, withCtx as o, withDirectives as me, createVNode as r, withModifiers as re, resolveDynamicComponent as ie, withKeys as ue, vShow as pe, isVNode as Pe, render as Re, mergeModels as _e, useModel as Et, pushScopeId as wt, popScopeId as Tt } from "vue";
16
- import { E as De, l as Be, i as Ve } from "./index-e5fe37a4.js";
17
- import { G as St } from "./index-7ed0999e.js";
18
- import { _ as _t } from "./_plugin-vue_export-helper-dad06003.js";
19
- import { U as Ue, C as qe, o as Ie, E as Bt, a as Vt } from "./index-733cd68a.js";
20
- import { c as It, u as Lt, a as Mt, b as $t, d as Nt, e as Ot, T as Ft, f as Le } from "./use-form-common-props-04fb0752.js";
21
- import { u as zt } from "./index-0baeaec7.js";
22
- import { u as ye } from "./index-57a7323a.js";
23
- import { E as At } from "./index-e6a36e09.js";
24
- import "./config-provider-722dca36.js";
25
- import "./vnode-0fd3003d.js";
26
- import "./scroll-4fe7a76f.js";
27
- import "./_initCloneObject-c939f3af.js";
28
- import "./debounce-82e23c4b.js";
29
- import "./raf-c817c3f7.js";
7
+ import { E as Je } from "./el-popper-85365d5b.js";
8
+ import { E as Xe, a as Ze, b as Qe, c as Ye } from "./el-table-column-9691b26d.js";
9
+ import "./el-scrollbar-bcf29780.js";
10
+ import { E as xe } from "./el-popconfirm-88bbd066.js";
11
+ import { E as Be } from "./el-button-d39472d3.js";
12
+ import { E as et, a as tt } from "./el-form-item-b31e7a98.js";
13
+ import { E as Ve } from "./el-input-42315ac4.js";
14
+ import { E as ot } from "./el-checkbox-group-779f353a.js";
15
+ import { E as lt } from "./el-input-number-ebd64e22.js";
16
+ import { i as at, E as nt } from "./el-segmented-84707138.js";
17
+ import { nextTick as x, defineComponent as st, computed as U, ref as I, reactive as rt, markRaw as be, watch as me, onMounted as it, onBeforeUnmount as ut, toRefs as ct, resolveComponent as J, openBlock as n, createBlock as g, Transition as dt, withCtx as o, withDirectives as ce, createVNode as a, createElementVNode as c, normalizeClass as w, normalizeStyle as he, withModifiers as ne, createElementBlock as C, resolveDynamicComponent as se, createCommentVNode as h, toDisplayString as _, withKeys as re, renderSlot as ft, createTextVNode as k, vShow as de, isVNode as Me, render as Le, mergeModels as Ce, useModel as mt, unref as A, Fragment as q, renderList as X, pushScopeId as pt, popScopeId as vt } from "vue";
18
+ import { E as Ie, l as ke, i as Ee } from "./index-3425f2f0.js";
19
+ import { G as yt } from "./index-7ed0999e.js";
20
+ import { _ as gt } from "./_plugin-vue_export-helper-dad06003.js";
21
+ import { o as we, E as bt, a as ht } from "./index-21fb27eb.js";
22
+ import { T as Ct, a as Te } from "./use-form-common-props-54c31983.js";
23
+ import { u as kt } from "./use-global-config-946f61a4.js";
24
+ import { u as Se } from "./index-ef7c4392.js";
25
+ import { E as Et } from "./index-d3c37134.js";
26
+ import "./config-provider-93846ae3.js";
27
+ import "./index-c45ac024.js";
28
+ import "./vnode-dfc92f20.js";
29
+ import "./scroll-0277d145.js";
30
+ import "./_initCloneObject-a9305c1e.js";
31
+ import "./debounce-51046b06.js";
32
+ import "./raf-36faa519.js";
30
33
  import "./index-657047bb.js";
31
- import "./castArray-2440268f.js";
34
+ import "./castArray-681d750b.js";
32
35
  import "./typescript-7ae59c4c.js";
33
- import "./index-e3353eeb.js";
34
- const Pt = (e) => ["", ...It].includes(e), Rt = Ge({
35
- direction: {
36
- type: Ce(String),
37
- default: "horizontal"
38
- },
39
- options: {
40
- type: Ce(Array),
41
- default: () => []
42
- },
43
- modelValue: {
44
- type: [String, Number, Boolean],
45
- default: void 0
46
- },
47
- block: Boolean,
48
- size: Lt,
49
- disabled: Boolean,
50
- validateEvent: {
51
- type: Boolean,
52
- default: !0
53
- },
54
- id: String,
55
- name: String,
56
- ...nt(["ariaLabel"])
57
- }), Dt = {
58
- [Ue]: (e) => ae(e) || ke(e) || Ee(e),
59
- [qe]: (e) => ae(e) || ke(e) || Ee(e)
60
- }, Ut = he({
61
- name: "ElSegmented"
62
- }), qt = /* @__PURE__ */ he({
63
- ...Ut,
64
- props: Rt,
65
- emits: Dt,
66
- setup(e, { emit: m }) {
67
- const a = e, c = We("segmented"), g = ye(), p = Mt(), C = $t(), { formItem: V } = Nt(), { inputId: u, isLabeledByFormItem: i } = Ot(a, {
68
- formItemContext: V
69
- }), A = O(null), v = dt(), d = ze({
70
- isInit: !1,
71
- width: 0,
72
- height: 0,
73
- translateX: 0,
74
- translateY: 0,
75
- focusVisible: !1
76
- }), H = (s) => {
77
- const L = K(s);
78
- m(Ue, L), m(qe, L);
79
- }, K = (s) => ce(s) ? s.value : s, R = (s) => ce(s) ? s.label : s, D = (s) => !!(C.value || ce(s) && s.disabled), U = (s) => a.modelValue === K(s), j = (s) => a.options.find((L) => K(L) === s), Z = (s) => [
80
- c.e("item"),
81
- c.is("selected", U(s)),
82
- c.is("disabled", D(s))
83
- ], w = () => {
84
- if (!A.value)
85
- return;
86
- const s = A.value.querySelector(".is-selected"), L = A.value.querySelector(".is-selected input");
87
- if (!s || !L) {
88
- d.width = 0, d.height = 0, d.translateX = 0, d.translateY = 0, d.focusVisible = !1;
89
- return;
90
- }
91
- const b = s.getBoundingClientRect();
92
- d.isInit = !0, a.direction === "vertical" ? (d.height = b.height, d.translateY = s.offsetTop) : (d.width = b.width, d.translateX = s.offsetLeft);
93
- try {
94
- d.focusVisible = L.matches(":focus-visible");
95
- } catch {
96
- }
97
- }, l = P(() => [
98
- c.b(),
99
- c.m(p.value),
100
- c.is("block", a.block)
101
- ]), $ = P(() => ({
102
- width: a.direction === "vertical" ? "100%" : `${d.width}px`,
103
- height: a.direction === "vertical" ? `${d.height}px` : "100%",
104
- transform: a.direction === "vertical" ? `translateY(${d.translateY}px)` : `translateX(${d.translateX}px)`,
105
- display: d.isInit ? "block" : "none"
106
- })), y = P(() => [
107
- c.e("item-selected"),
108
- c.is("disabled", D(j(a.modelValue))),
109
- c.is("focus-visible", d.focusVisible)
110
- ]), I = P(() => a.name || g.value);
111
- return ft(A, w), ne(v, w), ne(() => a.modelValue, () => {
112
- var s;
113
- w(), a.validateEvent && ((s = V == null ? void 0 : V.validate) == null || s.call(V, "change").catch((L) => $e(L)));
114
- }, {
115
- flush: "post"
116
- }), (s, L) => s.options.length ? (n(), T("div", {
117
- key: 0,
118
- id: _(u),
119
- ref_key: "segmentedRef",
120
- ref: A,
121
- class: k(_(l)),
122
- role: "radiogroup",
123
- "aria-label": _(i) ? void 0 : s.ariaLabel || "segmented",
124
- "aria-labelledby": _(i) ? _(V).labelId : void 0
125
- }, [
126
- f("div", {
127
- class: k([_(c).e("group"), _(c).m(a.direction)])
128
- }, [
129
- f("div", {
130
- style: ge(_($)),
131
- class: k(_(y))
132
- }, null, 6),
133
- (n(!0), T(X, null, Y(s.options, (b, W) => (n(), T("label", {
134
- key: W,
135
- class: k(Z(b))
136
- }, [
137
- f("input", {
138
- class: k(_(c).e("item-input")),
139
- type: "radio",
140
- name: _(I),
141
- disabled: D(b),
142
- checked: U(b),
143
- onChange: (ee) => H(b)
144
- }, null, 42, ["name", "disabled", "checked", "onChange"]),
145
- f("div", {
146
- class: k(_(c).e("item-label"))
147
- }, [
148
- Ae(s.$slots, "default", { item: b }, () => [
149
- B(M(R(b)), 1)
150
- ])
151
- ], 2)
152
- ], 2))), 128))
153
- ], 2)
154
- ], 10, ["id", "aria-label", "aria-labelledby"])) : S("v-if", !0);
155
- }
156
- });
157
- var Ht = /* @__PURE__ */ Ne(qt, [["__file", "segmented.vue"]]);
158
- const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
159
- var m;
160
- if (J.length === 0)
36
+ import "./index-fbe85773.js";
37
+ const pe = "_trap-focus-children", H = [], _e = (e) => {
38
+ var d;
39
+ if (H.length === 0)
161
40
  return;
162
- const a = J[J.length - 1][be];
163
- if (a.length > 0 && e.code === Bt.tab) {
164
- if (a.length === 1) {
165
- e.preventDefault(), document.activeElement !== a[0] && a[0].focus();
41
+ const i = H[H.length - 1][pe];
42
+ if (i.length > 0 && e.code === bt.tab) {
43
+ if (i.length === 1) {
44
+ e.preventDefault(), document.activeElement !== i[0] && i[0].focus();
166
45
  return;
167
46
  }
168
- const c = e.shiftKey, g = e.target === a[0], p = e.target === a[a.length - 1];
169
- if (g && c && (e.preventDefault(), a[a.length - 1].focus()), p && !c && (e.preventDefault(), a[0].focus()), process.env.NODE_ENV === "test") {
170
- const C = a.indexOf(e.target);
171
- C !== -1 && ((m = a[c ? C - 1 : C + 1]) == null || m.focus());
47
+ const p = e.shiftKey, v = e.target === i[0], u = e.target === i[i.length - 1];
48
+ if (v && p && (e.preventDefault(), i[i.length - 1].focus()), u && !p && (e.preventDefault(), i[0].focus()), process.env.NODE_ENV === "test") {
49
+ const b = i.indexOf(e.target);
50
+ b !== -1 && ((d = i[p ? b - 1 : b + 1]) == null || d.focus());
172
51
  }
173
52
  }
174
- }, jt = {
53
+ }, wt = {
175
54
  beforeMount(e) {
176
- e[be] = Ie(e), J.push(e), J.length <= 1 && document.addEventListener("keydown", Me);
55
+ e[pe] = we(e), H.push(e), H.length <= 1 && document.addEventListener("keydown", _e);
177
56
  },
178
57
  updated(e) {
179
- oe(() => {
180
- e[be] = Ie(e);
58
+ x(() => {
59
+ e[pe] = we(e);
181
60
  });
182
61
  },
183
62
  unmounted() {
184
- J.shift(), J.length === 0 && document.removeEventListener("keydown", Me);
63
+ H.shift(), H.length === 0 && document.removeEventListener("keydown", _e);
185
64
  }
186
- }, Xt = he({
65
+ }, Tt = st({
187
66
  name: "ElMessageBox",
188
67
  directives: {
189
- TrapFocus: jt
68
+ TrapFocus: wt
190
69
  },
191
70
  components: {
192
- ElButton: Oe,
193
- ElFocusTrap: Vt,
194
- ElInput: Fe,
195
- ElOverlay: et,
196
- ElIcon: De,
197
- ...Ft
71
+ ElButton: Be,
72
+ ElFocusTrap: ht,
73
+ ElInput: Ve,
74
+ ElOverlay: je,
75
+ ElIcon: Ie,
76
+ ...Ct
198
77
  },
199
78
  inheritAttrs: !1,
200
79
  props: {
201
80
  buttonSize: {
202
81
  type: String,
203
- validator: Pt
82
+ validator: at
204
83
  },
205
84
  modal: {
206
85
  type: Boolean,
@@ -243,13 +122,13 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
243
122
  }
244
123
  },
245
124
  emits: ["vanish", "action"],
246
- setup(e, { emit: m }) {
125
+ setup(e, { emit: d }) {
247
126
  const {
248
- locale: a,
249
- zIndex: c,
250
- ns: g,
251
- size: p
252
- } = zt("message-box", P(() => e.buttonSize)), { t: C } = a, { nextZIndex: V } = c, u = O(!1), i = ze({
127
+ locale: i,
128
+ zIndex: p,
129
+ ns: v,
130
+ size: u
131
+ } = kt("message-box", U(() => e.buttonSize)), { t: b } = i, { nextZIndex: B } = p, s = I(!1), r = rt({
253
132
  autofocus: !0,
254
133
  beforeClose: null,
255
134
  callback: null,
@@ -279,123 +158,123 @@ const Kt = Ye(Ht), be = "_trap-focus-children", J = [], Me = (e) => {
279
158
  action: "",
280
159
  confirmButtonLoading: !1,
281
160
  cancelButtonLoading: !1,
282
- confirmButtonLoadingIcon: Se(Be),
283
- cancelButtonLoadingIcon: Se(Be),
161
+ confirmButtonLoadingIcon: be(ke),
162
+ cancelButtonLoadingIcon: be(ke),
284
163
  confirmButtonDisabled: !1,
285
164
  editorErrorMessage: "",
286
165
  validateError: !1,
287
- zIndex: V()
288
- }), A = P(() => {
289
- const h = i.type;
290
- return { [g.bm("icon", h)]: h && Le[h] };
291
- }), v = ye(), d = ye(), H = P(() => {
292
- const h = i.type;
293
- return i.icon || h && Le[h] || "";
294
- }), K = P(() => !!i.message), R = O(), D = O(), U = O(), j = O(), Z = O(), w = P(() => i.confirmButtonClass);
295
- ne(() => i.inputValue, async (h) => {
296
- await oe(), e.boxType === "prompt" && h !== null && W();
297
- }, { immediate: !0 }), ne(() => u.value, (h) => {
298
- var F, N;
299
- h && (e.boxType !== "prompt" && (i.autofocus ? U.value = (N = (F = Z.value) == null ? void 0 : F.$el) != null ? N : R.value : U.value = R.value), i.zIndex = V()), e.boxType === "prompt" && (h ? oe().then(() => {
300
- var le;
301
- j.value && j.value.$el && (i.autofocus ? U.value = (le = ee()) != null ? le : R.value : U.value = R.value);
302
- }) : (i.editorErrorMessage = "", i.validateError = !1));
166
+ zIndex: B()
167
+ }), K = U(() => {
168
+ const m = r.type;
169
+ return { [v.bm("icon", m)]: m && Te[m] };
170
+ }), f = Se(), O = Se(), j = U(() => {
171
+ const m = r.type;
172
+ return r.icon || m && Te[m] || "";
173
+ }), te = U(() => !!r.message), z = I(), G = I(), D = I(), W = I(), oe = I(), E = U(() => r.confirmButtonClass);
174
+ me(() => r.inputValue, async (m) => {
175
+ await x(), e.boxType === "prompt" && m !== null && le();
176
+ }, { immediate: !0 }), me(() => s.value, (m) => {
177
+ var M, V;
178
+ m && (e.boxType !== "prompt" && (r.autofocus ? D.value = (V = (M = oe.value) == null ? void 0 : M.$el) != null ? V : z.value : D.value = z.value), r.zIndex = B()), e.boxType === "prompt" && (m ? x().then(() => {
179
+ var Y;
180
+ W.value && W.value.$el && (r.autofocus ? D.value = (Y = ae()) != null ? Y : z.value : D.value = z.value);
181
+ }) : (r.editorErrorMessage = "", r.validateError = !1));
303
182
  });
304
- const l = P(() => e.draggable), $ = P(() => e.overflow);
305
- tt(R, D, l, $), bt(async () => {
306
- await oe(), e.closeOnHashChange && window.addEventListener("hashchange", y);
307
- }), ht(() => {
183
+ const l = U(() => e.draggable), F = U(() => e.overflow);
184
+ He(z, G, l, F), it(async () => {
185
+ await x(), e.closeOnHashChange && window.addEventListener("hashchange", y);
186
+ }), ut(() => {
308
187
  e.closeOnHashChange && window.removeEventListener("hashchange", y);
309
188
  });
310
189
  function y() {
311
- u.value && (u.value = !1, oe(() => {
312
- i.action && m("action", i.action);
190
+ s.value && (s.value = !1, x(() => {
191
+ r.action && d("action", r.action);
313
192
  }));
314
193
  }
315
- const I = () => {
316
- e.closeOnClickModal && b(i.distinguishCancelAndClose ? "close" : "cancel");
317
- }, s = ot(I), L = (h) => {
318
- if (i.inputType !== "textarea")
319
- return h.preventDefault(), b("confirm");
320
- }, b = (h) => {
321
- var F;
322
- e.boxType === "prompt" && h === "confirm" && !W() || (i.action = h, i.beforeClose ? (F = i.beforeClose) == null || F.call(i, h, i, y) : y());
323
- }, W = () => {
194
+ const T = () => {
195
+ e.closeOnClickModal && S(r.distinguishCancelAndClose ? "close" : "cancel");
196
+ }, N = We(T), P = (m) => {
197
+ if (r.inputType !== "textarea")
198
+ return m.preventDefault(), S("confirm");
199
+ }, S = (m) => {
200
+ var M;
201
+ e.boxType === "prompt" && m === "confirm" && !le() || (r.action = m, r.beforeClose ? (M = r.beforeClose) == null || M.call(r, m, r, y) : y());
202
+ }, le = () => {
324
203
  if (e.boxType === "prompt") {
325
- const h = i.inputPattern;
326
- if (h && !h.test(i.inputValue || ""))
327
- return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
328
- const F = i.inputValidator;
329
- if (ve(F)) {
330
- const N = F(i.inputValue);
331
- if (N === !1)
332
- return i.editorErrorMessage = i.inputErrorMessage || C("el.messagebox.error"), i.validateError = !0, !1;
333
- if (ae(N))
334
- return i.editorErrorMessage = N, i.validateError = !0, !1;
204
+ const m = r.inputPattern;
205
+ if (m && !m.test(r.inputValue || ""))
206
+ return r.editorErrorMessage = r.inputErrorMessage || b("el.messagebox.error"), r.validateError = !0, !1;
207
+ const M = r.inputValidator;
208
+ if (fe(M)) {
209
+ const V = M(r.inputValue);
210
+ if (V === !1)
211
+ return r.editorErrorMessage = r.inputErrorMessage || b("el.messagebox.error"), r.validateError = !0, !1;
212
+ if (ve(V))
213
+ return r.editorErrorMessage = V, r.validateError = !0, !1;
335
214
  }
336
215
  }
337
- return i.editorErrorMessage = "", i.validateError = !1, !0;
338
- }, ee = () => {
339
- var h, F;
340
- const N = (h = j.value) == null ? void 0 : h.$refs;
341
- return (F = N == null ? void 0 : N.input) != null ? F : N == null ? void 0 : N.textarea;
342
- }, te = () => {
343
- b("close");
344
- }, q = () => {
345
- e.closeOnPressEscape && te();
216
+ return r.editorErrorMessage = "", r.validateError = !1, !0;
217
+ }, ae = () => {
218
+ var m, M;
219
+ const V = (m = W.value) == null ? void 0 : m.$refs;
220
+ return (M = V == null ? void 0 : V.input) != null ? M : V == null ? void 0 : V.textarea;
221
+ }, Q = () => {
222
+ S("close");
223
+ }, $ = () => {
224
+ e.closeOnPressEscape && Q();
346
225
  };
347
- return e.lockScroll && lt(u), {
348
- ...Ct(i),
349
- ns: g,
350
- overlayEvent: s,
351
- visible: u,
352
- hasMessage: K,
353
- typeClass: A,
354
- contentId: v,
355
- inputId: d,
356
- btnSize: p,
357
- iconComponent: H,
358
- confirmButtonClasses: w,
359
- rootRef: R,
360
- focusStartRef: U,
361
- headerRef: D,
362
- inputRef: j,
363
- confirmRef: Z,
226
+ return e.lockScroll && Ge(s), {
227
+ ...ct(r),
228
+ ns: v,
229
+ overlayEvent: N,
230
+ visible: s,
231
+ hasMessage: te,
232
+ typeClass: K,
233
+ contentId: f,
234
+ inputId: O,
235
+ btnSize: u,
236
+ iconComponent: j,
237
+ confirmButtonClasses: E,
238
+ rootRef: z,
239
+ focusStartRef: D,
240
+ headerRef: G,
241
+ inputRef: W,
242
+ confirmRef: oe,
364
243
  doClose: y,
365
- handleClose: te,
366
- onCloseRequested: q,
367
- handleWrapperClick: I,
368
- handleInputEnter: L,
369
- handleAction: b,
370
- t: C
244
+ handleClose: Q,
245
+ onCloseRequested: $,
246
+ handleWrapperClick: T,
247
+ handleInputEnter: P,
248
+ handleAction: S,
249
+ t: b
371
250
  };
372
251
  }
373
252
  });
374
- function Gt(e, m, a, c, g, p) {
375
- const C = Q("el-icon"), V = Q("close"), u = Q("el-input"), i = Q("el-button"), A = Q("el-focus-trap"), v = Q("el-overlay");
376
- return n(), E(kt, {
253
+ function St(e, d, i, p, v, u) {
254
+ const b = J("el-icon"), B = J("close"), s = J("el-input"), r = J("el-button"), K = J("el-focus-trap"), f = J("el-overlay");
255
+ return n(), g(dt, {
377
256
  name: "fade-in-linear",
378
- onAfterLeave: (d) => e.$emit("vanish"),
257
+ onAfterLeave: (O) => e.$emit("vanish"),
379
258
  persisted: ""
380
259
  }, {
381
260
  default: o(() => [
382
- me(r(v, {
261
+ ce(a(f, {
383
262
  "z-index": e.zIndex,
384
263
  "overlay-class": [e.ns.is("message-box"), e.modalClass],
385
264
  mask: e.modal
386
265
  }, {
387
266
  default: o(() => [
388
- f("div", {
267
+ c("div", {
389
268
  role: "dialog",
390
269
  "aria-label": e.title,
391
270
  "aria-modal": "true",
392
271
  "aria-describedby": e.showInput ? void 0 : e.contentId,
393
- class: k(`${e.ns.namespace.value}-overlay-message-box`),
272
+ class: w(`${e.ns.namespace.value}-overlay-message-box`),
394
273
  onClick: e.overlayEvent.onClick,
395
274
  onMousedown: e.overlayEvent.onMousedown,
396
275
  onMouseup: e.overlayEvent.onMouseup
397
276
  }, [
398
- r(A, {
277
+ a(K, {
399
278
  loop: "",
400
279
  trapped: e.visible,
401
280
  "focus-trap-el": e.rootRef,
@@ -403,153 +282,153 @@ function Gt(e, m, a, c, g, p) {
403
282
  onReleaseRequested: e.onCloseRequested
404
283
  }, {
405
284
  default: o(() => [
406
- f("div", {
285
+ c("div", {
407
286
  ref: "rootRef",
408
- class: k([
287
+ class: w([
409
288
  e.ns.b(),
410
289
  e.customClass,
411
290
  e.ns.is("draggable", e.draggable),
412
291
  { [e.ns.m("center")]: e.center }
413
292
  ]),
414
- style: ge(e.customStyle),
293
+ style: he(e.customStyle),
415
294
  tabindex: "-1",
416
- onClick: re(() => {
295
+ onClick: ne(() => {
417
296
  }, ["stop"])
418
297
  }, [
419
- e.title !== null && e.title !== void 0 ? (n(), T("div", {
298
+ e.title !== null && e.title !== void 0 ? (n(), C("div", {
420
299
  key: 0,
421
300
  ref: "headerRef",
422
- class: k([e.ns.e("header"), { "show-close": e.showClose }])
301
+ class: w([e.ns.e("header"), { "show-close": e.showClose }])
423
302
  }, [
424
- f("div", {
425
- class: k(e.ns.e("title"))
303
+ c("div", {
304
+ class: w(e.ns.e("title"))
426
305
  }, [
427
- e.iconComponent && e.center ? (n(), E(C, {
306
+ e.iconComponent && e.center ? (n(), g(b, {
428
307
  key: 0,
429
- class: k([e.ns.e("status"), e.typeClass])
308
+ class: w([e.ns.e("status"), e.typeClass])
430
309
  }, {
431
310
  default: o(() => [
432
- (n(), E(ie(e.iconComponent)))
311
+ (n(), g(se(e.iconComponent)))
433
312
  ]),
434
313
  _: 1
435
- }, 8, ["class"])) : S("v-if", !0),
436
- f("span", null, M(e.title), 1)
314
+ }, 8, ["class"])) : h("v-if", !0),
315
+ c("span", null, _(e.title), 1)
437
316
  ], 2),
438
- e.showClose ? (n(), T("button", {
317
+ e.showClose ? (n(), C("button", {
439
318
  key: 0,
440
319
  type: "button",
441
- class: k(e.ns.e("headerbtn")),
320
+ class: w(e.ns.e("headerbtn")),
442
321
  "aria-label": e.t("el.messagebox.close"),
443
- onClick: (d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
444
- onKeydown: ue(re((d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
322
+ onClick: (O) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
323
+ onKeydown: re(ne((O) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
445
324
  }, [
446
- r(C, {
447
- class: k(e.ns.e("close"))
325
+ a(b, {
326
+ class: w(e.ns.e("close"))
448
327
  }, {
449
328
  default: o(() => [
450
- r(V)
329
+ a(B)
451
330
  ]),
452
331
  _: 1
453
332
  }, 8, ["class"])
454
- ], 42, ["aria-label", "onClick", "onKeydown"])) : S("v-if", !0)
455
- ], 2)) : S("v-if", !0),
456
- f("div", {
333
+ ], 42, ["aria-label", "onClick", "onKeydown"])) : h("v-if", !0)
334
+ ], 2)) : h("v-if", !0),
335
+ c("div", {
457
336
  id: e.contentId,
458
- class: k(e.ns.e("content"))
337
+ class: w(e.ns.e("content"))
459
338
  }, [
460
- f("div", {
461
- class: k(e.ns.e("container"))
339
+ c("div", {
340
+ class: w(e.ns.e("container"))
462
341
  }, [
463
- e.iconComponent && !e.center && e.hasMessage ? (n(), E(C, {
342
+ e.iconComponent && !e.center && e.hasMessage ? (n(), g(b, {
464
343
  key: 0,
465
- class: k([e.ns.e("status"), e.typeClass])
344
+ class: w([e.ns.e("status"), e.typeClass])
466
345
  }, {
467
346
  default: o(() => [
468
- (n(), E(ie(e.iconComponent)))
347
+ (n(), g(se(e.iconComponent)))
469
348
  ]),
470
349
  _: 1
471
- }, 8, ["class"])) : S("v-if", !0),
472
- e.hasMessage ? (n(), T("div", {
350
+ }, 8, ["class"])) : h("v-if", !0),
351
+ e.hasMessage ? (n(), C("div", {
473
352
  key: 1,
474
- class: k(e.ns.e("message"))
353
+ class: w(e.ns.e("message"))
475
354
  }, [
476
- Ae(e.$slots, "default", {}, () => [
477
- e.dangerouslyUseHTMLString ? (n(), E(ie(e.showInput ? "label" : "p"), {
355
+ ft(e.$slots, "default", {}, () => [
356
+ e.dangerouslyUseHTMLString ? (n(), g(se(e.showInput ? "label" : "p"), {
478
357
  key: 1,
479
358
  for: e.showInput ? e.inputId : void 0,
480
359
  innerHTML: e.message
481
- }, null, 8, ["for", "innerHTML"])) : (n(), E(ie(e.showInput ? "label" : "p"), {
360
+ }, null, 8, ["for", "innerHTML"])) : (n(), g(se(e.showInput ? "label" : "p"), {
482
361
  key: 0,
483
362
  for: e.showInput ? e.inputId : void 0
484
363
  }, {
485
364
  default: o(() => [
486
- B(M(e.dangerouslyUseHTMLString ? "" : e.message), 1)
365
+ k(_(e.dangerouslyUseHTMLString ? "" : e.message), 1)
487
366
  ]),
488
367
  _: 1
489
368
  }, 8, ["for"]))
490
369
  ])
491
- ], 2)) : S("v-if", !0)
370
+ ], 2)) : h("v-if", !0)
492
371
  ], 2),
493
- me(f("div", {
494
- class: k(e.ns.e("input"))
372
+ ce(c("div", {
373
+ class: w(e.ns.e("input"))
495
374
  }, [
496
- r(u, {
375
+ a(s, {
497
376
  id: e.inputId,
498
377
  ref: "inputRef",
499
378
  modelValue: e.inputValue,
500
- "onUpdate:modelValue": (d) => e.inputValue = d,
379
+ "onUpdate:modelValue": (O) => e.inputValue = O,
501
380
  type: e.inputType,
502
381
  placeholder: e.inputPlaceholder,
503
382
  "aria-invalid": e.validateError,
504
- class: k({ invalid: e.validateError }),
505
- onKeydown: ue(e.handleInputEnter, ["enter"])
383
+ class: w({ invalid: e.validateError }),
384
+ onKeydown: re(e.handleInputEnter, ["enter"])
506
385
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
507
- f("div", {
508
- class: k(e.ns.e("errormsg")),
509
- style: ge({
386
+ c("div", {
387
+ class: w(e.ns.e("errormsg")),
388
+ style: he({
510
389
  visibility: e.editorErrorMessage ? "visible" : "hidden"
511
390
  })
512
- }, M(e.editorErrorMessage), 7)
391
+ }, _(e.editorErrorMessage), 7)
513
392
  ], 2), [
514
- [pe, e.showInput]
393
+ [de, e.showInput]
515
394
  ])
516
395
  ], 10, ["id"]),
517
- f("div", {
518
- class: k(e.ns.e("btns"))
396
+ c("div", {
397
+ class: w(e.ns.e("btns"))
519
398
  }, [
520
- e.showCancelButton ? (n(), E(i, {
399
+ e.showCancelButton ? (n(), g(r, {
521
400
  key: 0,
522
401
  loading: e.cancelButtonLoading,
523
402
  "loading-icon": e.cancelButtonLoadingIcon,
524
- class: k([e.cancelButtonClass]),
403
+ class: w([e.cancelButtonClass]),
525
404
  round: e.roundButton,
526
405
  size: e.btnSize,
527
- onClick: (d) => e.handleAction("cancel"),
528
- onKeydown: ue(re((d) => e.handleAction("cancel"), ["prevent"]), ["enter"])
406
+ onClick: (O) => e.handleAction("cancel"),
407
+ onKeydown: re(ne((O) => e.handleAction("cancel"), ["prevent"]), ["enter"])
529
408
  }, {
530
409
  default: o(() => [
531
- B(M(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
410
+ k(_(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
532
411
  ]),
533
412
  _: 1
534
- }, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : S("v-if", !0),
535
- me(r(i, {
413
+ }, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : h("v-if", !0),
414
+ ce(a(r, {
536
415
  ref: "confirmRef",
537
416
  type: "primary",
538
417
  loading: e.confirmButtonLoading,
539
418
  "loading-icon": e.confirmButtonLoadingIcon,
540
- class: k([e.confirmButtonClasses]),
419
+ class: w([e.confirmButtonClasses]),
541
420
  round: e.roundButton,
542
421
  disabled: e.confirmButtonDisabled,
543
422
  size: e.btnSize,
544
- onClick: (d) => e.handleAction("confirm"),
545
- onKeydown: ue(re((d) => e.handleAction("confirm"), ["prevent"]), ["enter"])
423
+ onClick: (O) => e.handleAction("confirm"),
424
+ onKeydown: re(ne((O) => e.handleAction("confirm"), ["prevent"]), ["enter"])
546
425
  }, {
547
426
  default: o(() => [
548
- B(M(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
427
+ k(_(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
549
428
  ]),
550
429
  _: 1
551
430
  }, 8, ["loading", "loading-icon", "class", "round", "disabled", "size", "onClick", "onKeydown"]), [
552
- [pe, e.showConfirmButton]
431
+ [de, e.showConfirmButton]
553
432
  ])
554
433
  ], 2)
555
434
  ], 14, ["onClick"])
@@ -560,84 +439,83 @@ function Gt(e, m, a, c, g, p) {
560
439
  ]),
561
440
  _: 3
562
441
  }, 8, ["z-index", "overlay-class", "mask"]), [
563
- [pe, e.visible]
442
+ [de, e.visible]
564
443
  ])
565
444
  ]),
566
445
  _: 3
567
446
  }, 8, ["onAfterLeave"]);
568
447
  }
569
- var Wt = /* @__PURE__ */ Ne(Xt, [["render", Gt], ["__file", "index.vue"]]);
570
- const se = /* @__PURE__ */ new Map(), Yt = (e) => {
571
- let m = document.body;
572
- return e.appendTo && (ae(e.appendTo) && (m = document.querySelector(e.appendTo)), Te(e.appendTo) && (m = e.appendTo), Te(m) || ($e("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), m = document.body)), m;
573
- }, Jt = (e, m, a = null) => {
574
- const c = r(Wt, e, ve(e.message) || Pe(e.message) ? {
575
- default: ve(e.message) ? e.message : () => e.message
448
+ var _t = /* @__PURE__ */ Ae(Tt, [["render", St], ["__file", "index.vue"]]);
449
+ const ee = /* @__PURE__ */ new Map(), Bt = (e) => {
450
+ let d = document.body;
451
+ return e.appendTo && (ve(e.appendTo) && (d = document.querySelector(e.appendTo)), ge(e.appendTo) && (d = e.appendTo), ge(d) || (De("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), d = document.body)), d;
452
+ }, Vt = (e, d, i = null) => {
453
+ const p = a(_t, e, fe(e.message) || Me(e.message) ? {
454
+ default: fe(e.message) ? e.message : () => e.message
576
455
  } : null);
577
- return c.appContext = a, Re(c, m), Yt(e).appendChild(m.firstElementChild), c.component;
578
- }, Zt = () => document.createElement("div"), Qt = (e, m) => {
579
- const a = Zt();
456
+ return p.appContext = i, Le(p, d), Bt(e).appendChild(d.firstElementChild), p.component;
457
+ }, Mt = () => document.createElement("div"), Lt = (e, d) => {
458
+ const i = Mt();
580
459
  e.onVanish = () => {
581
- Re(null, a), se.delete(g);
582
- }, e.onAction = (p) => {
583
- const C = se.get(g);
584
- let V;
585
- e.showInput ? V = { value: g.inputValue, action: p } : V = p, e.callback ? e.callback(V, c.proxy) : p === "cancel" || p === "close" ? e.distinguishCancelAndClose && p !== "cancel" ? C.reject("close") : C.reject("cancel") : C.resolve(V);
460
+ Le(null, i), ee.delete(v);
461
+ }, e.onAction = (u) => {
462
+ const b = ee.get(v);
463
+ let B;
464
+ e.showInput ? B = { value: v.inputValue, action: u } : B = u, e.callback ? e.callback(B, p.proxy) : u === "cancel" || u === "close" ? e.distinguishCancelAndClose && u !== "cancel" ? b.reject("close") : b.reject("cancel") : b.resolve(B);
586
465
  };
587
- const c = Jt(e, a, m), g = c.proxy;
588
- for (const p in e)
589
- we(e, p) && !we(g.$props, p) && (g[p] = e[p]);
590
- return g.visible = !0, g;
466
+ const p = Vt(e, i, d), v = p.proxy;
467
+ for (const u in e)
468
+ ye(e, u) && !ye(v.$props, u) && (v[u] = e[u]);
469
+ return v.visible = !0, v;
591
470
  };
592
- function x(e, m = null) {
593
- if (!Je)
471
+ function Z(e, d = null) {
472
+ if (!ze)
594
473
  return Promise.reject();
595
- let a;
596
- return ae(e) || Pe(e) ? e = {
474
+ let i;
475
+ return ve(e) || Me(e) ? e = {
597
476
  message: e
598
- } : a = e.callback, new Promise((c, g) => {
599
- const p = Qt(e, m ?? x._context);
600
- se.set(p, {
477
+ } : i = e.callback, new Promise((p, v) => {
478
+ const u = Lt(e, d ?? Z._context);
479
+ ee.set(u, {
601
480
  options: e,
602
- callback: a,
603
- resolve: c,
604
- reject: g
481
+ callback: i,
482
+ resolve: p,
483
+ reject: v
605
484
  });
606
485
  });
607
486
  }
608
- const xt = ["alert", "confirm", "prompt"], el = {
487
+ const It = ["alert", "confirm", "prompt"], Ot = {
609
488
  alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
610
489
  confirm: { showCancelButton: !0 },
611
490
  prompt: { showCancelButton: !0, showInput: !0 }
612
491
  };
613
- xt.forEach((e) => {
614
- x[e] = tl(e);
492
+ It.forEach((e) => {
493
+ Z[e] = Ft(e);
615
494
  });
616
- function tl(e) {
617
- return (m, a, c, g) => {
618
- let p = "";
619
- return ce(a) ? (c = a, p = "") : Ze(a) ? p = "" : p = a, x(Object.assign({
620
- title: p,
621
- message: m,
495
+ function Ft(e) {
496
+ return (d, i, p, v) => {
497
+ let u = "";
498
+ return Pe(i) ? (p = i, u = "") : Re(i) ? u = "" : u = i, Z(Object.assign({
499
+ title: u,
500
+ message: d,
622
501
  type: "",
623
- ...el[e]
624
- }, c, {
502
+ ...Ot[e]
503
+ }, p, {
625
504
  boxType: e
626
- }), g);
505
+ }), v);
627
506
  };
628
507
  }
629
- x.close = () => {
630
- se.forEach((e, m) => {
631
- m.doClose();
632
- }), se.clear();
508
+ Z.close = () => {
509
+ ee.forEach((e, d) => {
510
+ d.doClose();
511
+ }), ee.clear();
633
512
  };
634
- x._context = null;
635
- const G = x;
636
- G.install = (e) => {
637
- G._context = e._context, e.config.globalProperties.$msgbox = G, e.config.globalProperties.$messageBox = G, e.config.globalProperties.$alert = G.alert, e.config.globalProperties.$confirm = G.confirm, e.config.globalProperties.$prompt = G.prompt;
513
+ Z._context = null;
514
+ const R = Z;
515
+ R.install = (e) => {
516
+ R._context = e._context, e.config.globalProperties.$msgbox = R, e.config.globalProperties.$messageBox = R, e.config.globalProperties.$alert = R.alert, e.config.globalProperties.$confirm = R.confirm, e.config.globalProperties.$prompt = R.prompt;
638
517
  };
639
- const ll = G;
640
- const ol = {
518
+ const Nt = R, $t = {
641
519
  // 表单字段
642
520
  ruleFormPrice: !0,
643
521
  // 价格范围
@@ -653,21 +531,21 @@ const ol = {
653
531
  tableEnable: !0
654
532
  // 启用按钮
655
533
  };
656
- const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-factorWarning" }, nl = { class: "custom-header" }, sl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), rl = { class: "factor-name" }, il = ["onClick"], ul = { class: "factor-name" }, cl = ["onClick"], dl = { style: { display: "flex", "align-items": "start" } }, fl = {
534
+ const ie = (e) => (pt("data-v-b57c57a6"), e = e(), vt(), e), At = { class: "st-factorWarning" }, zt = { class: "custom-header" }, Pt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", { style: { "margin-right": "4px" } }, "因子预警", -1)), Rt = { class: "factor-name" }, Dt = ["onClick"], Ut = { class: "factor-name" }, qt = ["onClick"], Ht = { style: { display: "flex", "align-items": "start" } }, Kt = {
657
535
  key: 0,
658
536
  style: { flex: "1" }
659
- }, ml = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", { style: { margin: "0 5px" } }, "~", -1)), pl = {
537
+ }, jt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", { style: { margin: "0 5px" } }, "~", -1)), Gt = {
660
538
  key: 0,
661
539
  style: { color: "#f56c6c" }
662
- }, vl = {
540
+ }, Wt = {
663
541
  key: 1,
664
542
  style: { color: "#67c23a" }
665
- }, gl = { key: 0 }, yl = { key: 1 }, bl = { key: 2 }, hl = { class: "shortcut-title" }, Cl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", null, "我的配置", -1)), kl = { class: "shortcut-config" }, El = {
543
+ }, Jt = { key: 0 }, Xt = { key: 1 }, Zt = { key: 2 }, Qt = { class: "shortcut-title" }, Yt = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", null, "我的配置", -1)), xt = { class: "shortcut-config" }, eo = {
666
544
  key: 1,
667
545
  class: "empty"
668
- }, wl = { class: "shortcut-title" }, Tl = /* @__PURE__ */ de(() => /* @__PURE__ */ f("span", null, "新增配置", -1)), Sl = { class: "custom-footer" }, _l = {
546
+ }, to = { class: "shortcut-title" }, oo = /* @__PURE__ */ ie(() => /* @__PURE__ */ c("span", null, "新增配置", -1)), lo = { class: "custom-footer" }, ao = {
669
547
  __name: "index",
670
- props: /* @__PURE__ */ _e({
548
+ props: /* @__PURE__ */ Ce({
671
549
  // 弹窗名称
672
550
  title: { type: [String, null], default: null },
673
551
  // 因子数据
@@ -685,145 +563,145 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
685
563
  visible: { default: !1 },
686
564
  visibleModifiers: {}
687
565
  }),
688
- emits: /* @__PURE__ */ _e(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
689
- setup(e, { emit: m }) {
690
- const a = O("ruleForm"), c = Et(e, "visible"), g = m, p = e, C = Object.assign(ol, p.showConfig), V = O(null), u = O({
566
+ emits: /* @__PURE__ */ Ce(["add", "delete", "enabled", "closed", "shortcutAdd", "shortcutDelete"], ["update:visible"]),
567
+ setup(e, { emit: d }) {
568
+ const i = I("ruleForm"), p = mt(e, "visible"), v = d, u = e, b = Object.assign($t, u.showConfig), B = I(null), s = I({
691
569
  factorType: 1,
692
570
  factorSelectedList: [],
693
571
  totalCount: 1,
694
572
  minPrice: null,
695
573
  maxPrice: null,
696
574
  mark: null
697
- }), i = O({
575
+ }), r = I({
698
576
  factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
699
577
  factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
700
578
  totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }]
701
- }), A = O(null), v = O({
579
+ }), K = I(null), f = I({
702
580
  shortcutName: null,
703
581
  factorType: 1,
704
582
  factorSelectedList: [],
705
583
  totalCount: 1
706
- }), d = O({
584
+ }), O = I({
707
585
  factorType: [{ required: !0, message: "请选择交易类型", trigger: "blur" }],
708
586
  factorSelectedList: [{ required: !0, message: "请选择预警因子", trigger: "blur" }],
709
587
  totalCount: [{ required: !0, message: "请填写预警次数", trigger: "blur" }],
710
588
  shortcutName: [{ required: !0, message: "请填写配置名称", trigger: "blur" }]
711
- }), H = () => {
712
- u.value = {
589
+ }), j = () => {
590
+ s.value = {
713
591
  factorType: 1,
714
592
  factorSelectedList: [],
715
593
  totalCount: 1,
716
594
  minPrice: null,
717
595
  maxPrice: null,
718
596
  mark: null
719
- }, v.value = {
597
+ }, f.value = {
720
598
  shortcutName: null,
721
599
  factorType: 1,
722
600
  factorSelectedList: [],
723
601
  totalCount: 1
724
602
  };
725
- }, K = async (w) => {
726
- Object.assign(u.value, {
727
- factorSelectedList: [w],
603
+ }, te = async (E) => {
604
+ Object.assign(s.value, {
605
+ factorSelectedList: [E],
728
606
  totalCount: 3
729
607
  });
730
608
  const l = {
731
- factorSelectedList: u.value.factorSelectedList.map((y) => ({
609
+ factorSelectedList: s.value.factorSelectedList.map((y) => ({
732
610
  factorName: y,
733
- ...u.value
611
+ ...s.value
734
612
  }))
735
- }, $ = () => {
736
- const y = u.value.factorType;
737
- H(), u.value.factorType = y;
613
+ }, F = () => {
614
+ const y = s.value.factorType;
615
+ j(), s.value.factorType = y;
738
616
  };
739
- D(V.value, l, $);
740
- }, R = async (w) => {
741
- const l = JSON.parse(w.data);
742
- Object.assign(u.value, {
617
+ G(B.value, l, F);
618
+ }, z = async (E) => {
619
+ const l = JSON.parse(E.data);
620
+ Object.assign(s.value, {
743
621
  factorType: l.factorType,
744
622
  factorSelectedList: l.factorSelectedList,
745
623
  totalCount: l.totalCount
746
624
  });
747
- const $ = {
625
+ const F = {
748
626
  // 通过快捷进行添加的因子, 具备有效次数上限10的校验
749
- factorSelectedList: u.value.factorSelectedList.map((I) => {
750
- let s = l.totalCount;
751
- const L = p.tableData.find(({ factorExtendName: b }) => b === I);
752
- if (L) {
753
- const b = L.totalCount - L.currentCount;
754
- b === 0 ? s = l.totalCount : s = Math.min(l.totalCount, 10 - b >= 0 ? 10 - b : 0);
627
+ factorSelectedList: s.value.factorSelectedList.map((T) => {
628
+ let N = l.totalCount;
629
+ const P = u.tableData.find(({ factorExtendName: S }) => S === T);
630
+ if (P) {
631
+ const S = P.totalCount - P.currentCount;
632
+ S === 0 ? N = l.totalCount : N = Math.min(l.totalCount, 10 - S >= 0 ? 10 - S : 0);
755
633
  }
756
634
  return {
757
- factorName: I,
758
- ...u.value,
759
- totalCount: s
635
+ factorName: T,
636
+ ...s.value,
637
+ totalCount: N
760
638
  };
761
639
  })
762
- }, y = () => H();
763
- D(V.value, $, y);
764
- }, D = St(async (w, l, $) => {
765
- w && await w.validate((y) => {
640
+ }, y = () => j();
641
+ G(B.value, F, y);
642
+ }, G = yt(async (E, l, F) => {
643
+ E && await E.validate((y) => {
766
644
  if (!y)
767
645
  return !1;
768
- const I = l ?? {
769
- factorSelectedList: u.value.factorSelectedList.map((s) => ({
770
- factorName: s,
771
- ...u.value
646
+ const T = l ?? {
647
+ factorSelectedList: s.value.factorSelectedList.map((N) => ({
648
+ factorName: N,
649
+ ...s.value
772
650
  }))
773
651
  };
774
- g("add", I), $ ? $() : c.value = !1;
652
+ v("add", T), F ? F() : p.value = !1;
775
653
  });
776
- }, 200), U = async (w) => {
777
- w && await w.validate((l) => {
654
+ }, 200), D = async (E) => {
655
+ E && await E.validate((l) => {
778
656
  if (!l)
779
657
  return !1;
780
- const $ = {
781
- shortcutName: v.value.shortcutName,
782
- data: JSON.stringify(v.value)
658
+ const F = {
659
+ shortcutName: f.value.shortcutName,
660
+ data: JSON.stringify(f.value)
783
661
  };
784
- g("shortcutAdd", $), H();
662
+ v("shortcutAdd", F), j();
785
663
  });
786
- }, j = (w) => {
787
- v.value = JSON.parse(w.data);
788
- }, Z = (w) => {
789
- ll.confirm(`是否确认删除配置: ${w.shortcutName} ?`, "删除提示", {
664
+ }, W = (E) => {
665
+ f.value = JSON.parse(E.data);
666
+ }, oe = (E) => {
667
+ Nt.confirm(`是否确认删除配置: ${E.shortcutName} ?`, "删除提示", {
790
668
  confirmButtonText: "确认",
791
669
  cancelButtonText: "取消",
792
670
  type: "warning"
793
- }).then(() => g("shortcutDelete", w));
671
+ }).then(() => v("shortcutDelete", E));
794
672
  };
795
- return ne(
796
- () => c.value,
797
- (w) => {
798
- w && (a.value = p.allowOperation ? "ruleForm" : "table", H());
673
+ return me(
674
+ () => p.value,
675
+ (E) => {
676
+ E && (i.value = u.allowOperation ? "ruleForm" : "table", j());
799
677
  },
800
678
  {
801
679
  immediate: !0
802
680
  }
803
- ), (w, l) => {
804
- 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;
805
- return n(), T("div", al, [
806
- r(je, { locale: _(Qe) }, {
681
+ ), (E, l) => {
682
+ const F = nt, y = Be, T = et, N = Xe, P = Ze, S = lt, le = ot, ae = Ve, Q = tt, $ = Qe, m = xe, M = Ye, V = Ie, Y = Je, Oe = Et, Fe = Ke, Ne = qe;
683
+ return n(), C("div", At, [
684
+ a(Ne, { locale: A(Ue) }, {
807
685
  default: o(() => [
808
- r(Ke, {
809
- modelValue: c.value,
810
- "onUpdate:modelValue": l[17] || (l[17] = (t) => c.value = t),
686
+ a(Fe, {
687
+ modelValue: p.value,
688
+ "onUpdate:modelValue": l[17] || (l[17] = (t) => p.value = t),
811
689
  width: "1020",
812
690
  "align-center": "",
813
691
  "destroy-on-close": "",
814
- onClosed: l[18] || (l[18] = (t) => g("closed"))
692
+ onClosed: l[18] || (l[18] = (t) => v("closed"))
815
693
  }, {
816
- header: o(({ close: t, titleId: z, titleClass: fe }) => [
817
- f("div", nl, [
818
- f("div", {
819
- class: k(fe)
694
+ header: o(({ close: t, titleId: L, titleClass: ue }) => [
695
+ c("div", zt, [
696
+ c("div", {
697
+ class: w(ue)
820
698
  }, [
821
- sl,
822
- f("span", null, M(e.title), 1)
699
+ Pt,
700
+ c("span", null, _(e.title), 1)
823
701
  ], 2),
824
- r($, {
825
- modelValue: a.value,
826
- "onUpdate:modelValue": l[0] || (l[0] = (Xe) => a.value = Xe),
702
+ a(F, {
703
+ modelValue: i.value,
704
+ "onUpdate:modelValue": l[0] || (l[0] = ($e) => i.value = $e),
827
705
  size: "default",
828
706
  options: [
829
707
  { label: "添加", value: "ruleForm", disabled: !e.allowOperation },
@@ -834,167 +712,167 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
834
712
  ])
835
713
  ]),
836
714
  footer: o(() => [
837
- f("div", Sl, [
838
- r(y, {
715
+ c("div", lo, [
716
+ a(y, {
839
717
  size: "default",
840
- onClick: l[14] || (l[14] = (t) => c.value = !1)
718
+ onClick: l[14] || (l[14] = (t) => p.value = !1)
841
719
  }, {
842
720
  default: o(() => [
843
- B("关闭")
721
+ k("关闭")
844
722
  ]),
845
723
  _: 1
846
724
  }),
847
- a.value === "ruleForm" ? (n(), E(y, {
725
+ i.value === "ruleForm" ? (n(), g(y, {
848
726
  key: 0,
849
727
  size: "default",
850
728
  type: "primary",
851
- onClick: l[15] || (l[15] = (t) => _(D)(V.value))
729
+ onClick: l[15] || (l[15] = (t) => A(G)(B.value))
852
730
  }, {
853
731
  default: o(() => [
854
- B(" 确认 ")
732
+ k(" 确认 ")
855
733
  ]),
856
734
  _: 1
857
- })) : S("", !0),
858
- a.value === "shortcut" ? (n(), E(y, {
735
+ })) : h("", !0),
736
+ i.value === "shortcut" ? (n(), g(y, {
859
737
  key: 1,
860
738
  size: "default",
861
739
  type: "primary",
862
- onClick: l[16] || (l[16] = (t) => U(A.value))
740
+ onClick: l[16] || (l[16] = (t) => D(K.value))
863
741
  }, {
864
742
  default: o(() => [
865
- B(" 保存配置 ")
743
+ k(" 保存配置 ")
866
744
  ]),
867
745
  _: 1
868
- })) : S("", !0)
746
+ })) : h("", !0)
869
747
  ])
870
748
  ]),
871
749
  default: o(() => [
872
- a.value === "ruleForm" ? (n(), E(te, {
750
+ i.value === "ruleForm" ? (n(), g(Q, {
873
751
  key: 0,
874
752
  ref_key: "ruleFormRef",
875
- ref: V,
876
- model: u.value,
877
- rules: i.value,
753
+ ref: B,
754
+ model: s.value,
755
+ rules: r.value,
878
756
  size: "default",
879
757
  "label-width": "90px"
880
758
  }, {
881
759
  default: o(() => [
882
- r(I, {
760
+ a(T, {
883
761
  label: "交易类型:",
884
762
  prop: "factorType"
885
763
  }, {
886
764
  default: o(() => [
887
- r(y, {
765
+ a(y, {
888
766
  type: "danger",
889
- plain: u.value.factorType !== 1,
767
+ plain: s.value.factorType !== 1,
890
768
  onClick: l[1] || (l[1] = () => {
891
- u.value.factorType === -1 && (u.value.factorSelectedList = []), u.value.factorType = 1;
769
+ s.value.factorType === -1 && (s.value.factorSelectedList = []), s.value.factorType = 1;
892
770
  })
893
771
  }, {
894
772
  default: o(() => [
895
- B(" 多 ")
773
+ k(" 多 ")
896
774
  ]),
897
775
  _: 1
898
776
  }, 8, ["plain"]),
899
- r(y, {
777
+ a(y, {
900
778
  type: "success",
901
- plain: u.value.factorType !== -1,
779
+ plain: s.value.factorType !== -1,
902
780
  onClick: l[2] || (l[2] = () => {
903
- u.value.factorType === 1 && (u.value.factorSelectedList = []), u.value.factorType = -1;
781
+ s.value.factorType === 1 && (s.value.factorSelectedList = []), s.value.factorType = -1;
904
782
  })
905
783
  }, {
906
784
  default: o(() => [
907
- B(" 空 ")
785
+ k(" 空 ")
908
786
  ]),
909
787
  _: 1
910
788
  }, 8, ["plain"])
911
789
  ]),
912
790
  _: 1
913
791
  }),
914
- r(I, {
792
+ a(T, {
915
793
  label: "预警因子:",
916
794
  prop: "factorSelectedList"
917
795
  }, {
918
796
  default: o(() => [
919
- r(L, {
920
- modelValue: u.value.factorSelectedList,
921
- "onUpdate:modelValue": l[3] || (l[3] = (t) => u.value.factorSelectedList = t)
797
+ a(P, {
798
+ modelValue: s.value.factorSelectedList,
799
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => s.value.factorSelectedList = t)
922
800
  }, {
923
801
  default: o(() => [
924
- u.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), T("div", {
802
+ s.value.factorType === 1 ? (n(!0), C(q, { key: 0 }, X(e.moreFactorOptions, (t, L) => (n(), C("div", {
925
803
  class: "factor-checkbox",
926
- key: z
804
+ key: L
927
805
  }, [
928
- r(s, {
806
+ a(N, {
929
807
  label: t.factorTypeName,
930
808
  value: t.factorTypeName
931
809
  }, {
932
810
  default: o(() => [
933
- f("span", rl, M(t.factorTypeName), 1)
811
+ c("span", Rt, _(t.factorTypeName), 1)
934
812
  ]),
935
813
  _: 2
936
814
  }, 1032, ["label", "value"]),
937
- f("span", {
815
+ c("span", {
938
816
  class: "tag-button",
939
- onClick: (fe) => K(t.factorTypeName)
940
- }, "+3", 8, il)
941
- ]))), 128)) : S("", !0),
942
- u.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), T("div", {
817
+ onClick: (ue) => te(t.factorTypeName)
818
+ }, "+3", 8, Dt)
819
+ ]))), 128)) : h("", !0),
820
+ s.value.factorType === -1 ? (n(!0), C(q, { key: 1 }, X(e.emptyFactorOptions, (t, L) => (n(), C("div", {
943
821
  class: "factor-checkbox",
944
- key: z
822
+ key: L
945
823
  }, [
946
- r(s, {
824
+ a(N, {
947
825
  label: t.factorTypeName,
948
826
  value: t.factorTypeName
949
827
  }, {
950
828
  default: o(() => [
951
- f("span", ul, M(t.factorTypeName), 1)
829
+ c("span", Ut, _(t.factorTypeName), 1)
952
830
  ]),
953
831
  _: 2
954
832
  }, 1032, ["label", "value"]),
955
- f("span", {
833
+ c("span", {
956
834
  class: "tag-button",
957
- onClick: (fe) => K(t.factorTypeName)
958
- }, "+3", 8, cl)
959
- ]))), 128)) : S("", !0)
835
+ onClick: (ue) => te(t.factorTypeName)
836
+ }, "+3", 8, qt)
837
+ ]))), 128)) : h("", !0)
960
838
  ]),
961
839
  _: 1
962
840
  }, 8, ["modelValue"])
963
841
  ]),
964
842
  _: 1
965
843
  }),
966
- r(I, {
844
+ a(T, {
967
845
  label: "预警次数:",
968
846
  prop: "totalCount"
969
847
  }, {
970
848
  default: o(() => [
971
- f("div", dl, [
972
- r(b, {
973
- modelValue: u.value.totalCount,
974
- "onUpdate:modelValue": l[4] || (l[4] = (t) => u.value.totalCount = t),
849
+ c("div", Ht, [
850
+ a(S, {
851
+ modelValue: s.value.totalCount,
852
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => s.value.totalCount = t),
975
853
  min: 1,
976
854
  "controls-position": "right",
977
855
  style: { "margin-right": "20px" }
978
856
  }, null, 8, ["modelValue"]),
979
- e.shortcutData.length ? (n(), T("div", fl, [
980
- (n(!0), T(X, null, Y(e.shortcutData, (t) => (n(), E(y, {
857
+ e.shortcutData.length ? (n(), C("div", Kt, [
858
+ (n(!0), C(q, null, X(e.shortcutData, (t) => (n(), g(y, {
981
859
  key: t.id,
982
- onClick: (z) => R(t),
860
+ onClick: (L) => z(t),
983
861
  style: { margin: "0 12px 4px 0" }
984
862
  }, {
985
863
  default: o(() => [
986
- B(M(t.shortcutName), 1)
864
+ k(_(t.shortcutName), 1)
987
865
  ]),
988
866
  _: 2
989
867
  }, 1032, ["onClick"]))), 128))
990
- ])) : (n(), E(W, {
868
+ ])) : (n(), g(le, {
991
869
  key: 1,
992
870
  type: "primary",
993
871
  style: { cursor: "pointer" },
994
- onClick: l[5] || (l[5] = () => a.value = "shortcut")
872
+ onClick: l[5] || (l[5] = () => i.value = "shortcut")
995
873
  }, {
996
874
  default: o(() => [
997
- B(" 暂无快捷配置, 是否点击前往自定义配置? ")
875
+ k(" 暂无快捷配置, 是否点击前往自定义配置? ")
998
876
  ]),
999
877
  _: 1
1000
878
  }))
@@ -1002,23 +880,23 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1002
880
  ]),
1003
881
  _: 1
1004
882
  }),
1005
- _(C).ruleFormPrice ? (n(), E(I, {
883
+ A(b).ruleFormPrice ? (n(), g(T, {
1006
884
  key: 0,
1007
885
  label: "价格范围:"
1008
886
  }, {
1009
887
  default: o(() => [
1010
- r(b, {
1011
- modelValue: u.value.minPrice,
1012
- "onUpdate:modelValue": l[6] || (l[6] = (t) => u.value.minPrice = t),
888
+ a(S, {
889
+ modelValue: s.value.minPrice,
890
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => s.value.minPrice = t),
1013
891
  min: -999,
1014
892
  placeholder: "请输入",
1015
893
  max: 999,
1016
894
  "controls-position": "right"
1017
895
  }, null, 8, ["modelValue"]),
1018
- ml,
1019
- r(b, {
1020
- modelValue: u.value.maxPrice,
1021
- "onUpdate:modelValue": l[7] || (l[7] = (t) => u.value.maxPrice = t),
896
+ jt,
897
+ a(S, {
898
+ modelValue: s.value.maxPrice,
899
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => s.value.maxPrice = t),
1022
900
  placeholder: "请输入",
1023
901
  min: -999,
1024
902
  max: 999,
@@ -1026,15 +904,15 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1026
904
  }, null, 8, ["modelValue"])
1027
905
  ]),
1028
906
  _: 1
1029
- })) : S("", !0),
1030
- _(C).ruleFormMark ? (n(), E(I, {
907
+ })) : h("", !0),
908
+ A(b).ruleFormMark ? (n(), g(T, {
1031
909
  key: 1,
1032
910
  label: "备注:"
1033
911
  }, {
1034
912
  default: o(() => [
1035
- r(ee, {
1036
- modelValue: u.value.mark,
1037
- "onUpdate:modelValue": l[8] || (l[8] = (t) => u.value.mark = t),
913
+ a(ae, {
914
+ modelValue: s.value.mark,
915
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => s.value.mark = t),
1038
916
  type: "textarea",
1039
917
  placeholder: "请输入关键字",
1040
918
  rows: 2,
@@ -1042,106 +920,106 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1042
920
  }, null, 8, ["modelValue"])
1043
921
  ]),
1044
922
  _: 1
1045
- })) : S("", !0)
923
+ })) : h("", !0)
1046
924
  ]),
1047
925
  _: 1
1048
- }, 8, ["model", "rules"])) : S("", !0),
1049
- a.value === "table" ? (n(), E(F, {
926
+ }, 8, ["model", "rules"])) : h("", !0),
927
+ i.value === "table" ? (n(), g(M, {
1050
928
  key: 1,
1051
929
  data: e.tableData,
1052
930
  size: "small"
1053
931
  }, {
1054
932
  default: o(() => [
1055
- r(q, {
933
+ a($, {
1056
934
  label: "预警周期",
1057
935
  width: "70"
1058
936
  }, {
1059
937
  default: o((t) => [
1060
- B(M(t.row.freqName || "-"), 1)
938
+ k(_(t.row.freqName || "-"), 1)
1061
939
  ]),
1062
940
  _: 1
1063
941
  }),
1064
- r(q, {
942
+ a($, {
1065
943
  label: "交易类型",
1066
944
  width: "70"
1067
945
  }, {
1068
946
  default: o((t) => [
1069
- t.row.factorExtendValue == 1 ? (n(), T("span", pl, "多")) : (n(), T("span", vl, "空"))
947
+ t.row.factorExtendValue == 1 ? (n(), C("span", Gt, "多")) : (n(), C("span", Wt, "空"))
1070
948
  ]),
1071
949
  _: 1
1072
950
  }),
1073
- r(q, { label: "预警因子" }, {
951
+ a($, { label: "预警因子" }, {
1074
952
  default: o((t) => [
1075
- B(M(t.row.factorExtendName || "-"), 1)
953
+ k(_(t.row.factorExtendName || "-"), 1)
1076
954
  ]),
1077
955
  _: 1
1078
956
  }),
1079
- r(q, {
957
+ a($, {
1080
958
  label: "预警次数",
1081
959
  width: "70"
1082
960
  }, {
1083
961
  default: o((t) => [
1084
- B(M(`${t.row.currentCount} / ${t.row.totalCount}`), 1)
962
+ k(_(`${t.row.currentCount} / ${t.row.totalCount}`), 1)
1085
963
  ]),
1086
964
  _: 1
1087
965
  }),
1088
- _(C).tableStatus ? (n(), E(q, {
966
+ A(b).tableStatus ? (n(), g($, {
1089
967
  key: 0,
1090
968
  label: "状态",
1091
969
  width: "70"
1092
970
  }, {
1093
971
  default: o((t) => [
1094
- f("div", null, [
1095
- t.row.enable === 1 ? (n(), T("span", gl, "未触发")) : t.row.enable === 2 ? (n(), T("span", yl, "已触发")) : (n(), T("span", bl, "-"))
972
+ c("div", null, [
973
+ t.row.enable === 1 ? (n(), C("span", Jt, "未触发")) : t.row.enable === 2 ? (n(), C("span", Xt, "已触发")) : (n(), C("span", Zt, "-"))
1096
974
  ])
1097
975
  ]),
1098
976
  _: 1
1099
- })) : S("", !0),
1100
- _(C).tableCreateTime ? (n(), E(q, {
977
+ })) : h("", !0),
978
+ A(b).tableCreateTime ? (n(), g($, {
1101
979
  key: 1,
1102
980
  label: "设置时间",
1103
981
  width: "136"
1104
982
  }, {
1105
983
  default: o((t) => [
1106
- B(M(t.row.createdTime || "-"), 1)
984
+ k(_(t.row.createdTime || "-"), 1)
1107
985
  ]),
1108
986
  _: 1
1109
- })) : S("", !0),
1110
- _(C).tableMark ? (n(), E(q, {
987
+ })) : h("", !0),
988
+ A(b).tableMark ? (n(), g($, {
1111
989
  key: 2,
1112
990
  label: "备注",
1113
991
  width: "70"
1114
992
  }, {
1115
993
  default: o((t) => [
1116
- B(M(t.row.mark || "-"), 1)
994
+ k(_(t.row.mark || "-"), 1)
1117
995
  ]),
1118
996
  _: 1
1119
- })) : S("", !0),
1120
- e.allowOperation ? (n(), E(q, {
997
+ })) : h("", !0),
998
+ e.allowOperation ? (n(), g($, {
1121
999
  key: 3,
1122
1000
  label: "操作",
1123
1001
  width: "140"
1124
1002
  }, {
1125
1003
  default: o((t) => [
1126
- _(C).tableEnable ? (n(), E(y, {
1004
+ A(b).tableEnable ? (n(), g(y, {
1127
1005
  key: 0,
1128
1006
  disabled: t.row.currentCount !== t.row.totalCount,
1129
1007
  size: "small",
1130
- onClick: (z) => g("enabled", t.row)
1008
+ onClick: (L) => v("enabled", t.row)
1131
1009
  }, {
1132
1010
  default: o(() => [
1133
- B(" 启用 ")
1011
+ k(" 启用 ")
1134
1012
  ]),
1135
1013
  _: 2
1136
- }, 1032, ["disabled", "onClick"])) : S("", !0),
1137
- r(h, {
1014
+ }, 1032, ["disabled", "onClick"])) : h("", !0),
1015
+ a(m, {
1138
1016
  title: "确定删除?",
1139
- onConfirm: (z) => g("delete", t.row)
1017
+ onConfirm: (L) => v("delete", t.row)
1140
1018
  }, {
1141
1019
  reference: o(() => [
1142
- r(y, { size: "small" }, {
1020
+ a(y, { size: "small" }, {
1143
1021
  default: o(() => [
1144
- B("删除")
1022
+ k("删除")
1145
1023
  ]),
1146
1024
  _: 1
1147
1025
  })
@@ -1150,22 +1028,22 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1150
1028
  }, 1032, ["onConfirm"])
1151
1029
  ]),
1152
1030
  _: 1
1153
- })) : S("", !0)
1031
+ })) : h("", !0)
1154
1032
  ]),
1155
1033
  _: 1
1156
- }, 8, ["data"])) : S("", !0),
1157
- a.value === "shortcut" ? (n(), T(X, { key: 2 }, [
1158
- f("div", hl, [
1159
- Cl,
1160
- r(le, {
1034
+ }, 8, ["data"])) : h("", !0),
1035
+ i.value === "shortcut" ? (n(), C(q, { key: 2 }, [
1036
+ c("div", Qt, [
1037
+ Yt,
1038
+ a(Y, {
1161
1039
  effect: "dark",
1162
1040
  content: "如有配置数据, 可点击查看该配置的具体信息",
1163
1041
  placement: "right-start"
1164
1042
  }, {
1165
1043
  default: o(() => [
1166
- r(N, null, {
1044
+ a(V, null, {
1167
1045
  default: o(() => [
1168
- r(_(Ve))
1046
+ a(A(Ee))
1169
1047
  ]),
1170
1048
  _: 1
1171
1049
  })
@@ -1173,32 +1051,32 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1173
1051
  _: 1
1174
1052
  })
1175
1053
  ]),
1176
- f("div", kl, [
1177
- e.shortcutData.length ? (n(!0), T(X, { key: 0 }, Y(e.shortcutData, (t) => (n(), E(He, {
1054
+ c("div", xt, [
1055
+ e.shortcutData.length ? (n(!0), C(q, { key: 0 }, X(e.shortcutData, (t) => (n(), g(Oe, {
1178
1056
  key: t.id,
1179
1057
  type: "primary",
1180
1058
  size: "default",
1181
1059
  closable: "",
1182
- onClick: (z) => j(t),
1183
- onClose: (z) => Z(t)
1060
+ onClick: (L) => W(t),
1061
+ onClose: (L) => oe(t)
1184
1062
  }, {
1185
1063
  default: o(() => [
1186
- B(M(t.shortcutName), 1)
1064
+ k(_(t.shortcutName), 1)
1187
1065
  ]),
1188
1066
  _: 2
1189
- }, 1032, ["onClick", "onClose"]))), 128)) : (n(), T("span", El, "暂无数据"))
1067
+ }, 1032, ["onClick", "onClose"]))), 128)) : (n(), C("span", eo, "暂无数据"))
1190
1068
  ]),
1191
- f("div", wl, [
1192
- Tl,
1193
- r(le, {
1069
+ c("div", to, [
1070
+ oo,
1071
+ a(Y, {
1194
1072
  effect: "dark",
1195
1073
  content: "同名配置将会进行覆盖",
1196
1074
  placement: "right-start"
1197
1075
  }, {
1198
1076
  default: o(() => [
1199
- r(N, null, {
1077
+ a(V, null, {
1200
1078
  default: o(() => [
1201
- r(_(Ve))
1079
+ a(A(Ee))
1202
1080
  ]),
1203
1081
  _: 1
1204
1082
  })
@@ -1206,23 +1084,23 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1206
1084
  _: 1
1207
1085
  })
1208
1086
  ]),
1209
- r(te, {
1087
+ a(Q, {
1210
1088
  ref_key: "shortcut_ruleFormRef",
1211
- ref: A,
1212
- model: v.value,
1213
- rules: d.value,
1089
+ ref: K,
1090
+ model: f.value,
1091
+ rules: O.value,
1214
1092
  "label-width": "90px",
1215
1093
  size: "default"
1216
1094
  }, {
1217
1095
  default: o(() => [
1218
- r(I, {
1096
+ a(T, {
1219
1097
  label: "配置名称:",
1220
1098
  prop: "shortcutName"
1221
1099
  }, {
1222
1100
  default: o(() => [
1223
- r(ee, {
1224
- modelValue: v.value.shortcutName,
1225
- "onUpdate:modelValue": l[9] || (l[9] = (t) => v.value.shortcutName = t),
1101
+ a(ae, {
1102
+ modelValue: f.value.shortcutName,
1103
+ "onUpdate:modelValue": l[9] || (l[9] = (t) => f.value.shortcutName = t),
1226
1104
  maxlength: "6",
1227
1105
  "show-word-limit": "",
1228
1106
  style: { width: "160px" }
@@ -1230,74 +1108,74 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1230
1108
  ]),
1231
1109
  _: 1
1232
1110
  }),
1233
- r(I, {
1111
+ a(T, {
1234
1112
  label: "交易类型:",
1235
1113
  prop: "factorType"
1236
1114
  }, {
1237
1115
  default: o(() => [
1238
- r(y, {
1116
+ a(y, {
1239
1117
  type: "danger",
1240
- plain: v.value.factorType !== 1,
1118
+ plain: f.value.factorType !== 1,
1241
1119
  onClick: l[10] || (l[10] = () => {
1242
- v.value.factorType === -1 && (v.value.factorSelectedList = []), v.value.factorType = 1;
1120
+ f.value.factorType === -1 && (f.value.factorSelectedList = []), f.value.factorType = 1;
1243
1121
  })
1244
1122
  }, {
1245
1123
  default: o(() => [
1246
- B(" 多 ")
1124
+ k(" 多 ")
1247
1125
  ]),
1248
1126
  _: 1
1249
1127
  }, 8, ["plain"]),
1250
- r(y, {
1128
+ a(y, {
1251
1129
  type: "success",
1252
- plain: v.value.factorType !== -1,
1130
+ plain: f.value.factorType !== -1,
1253
1131
  onClick: l[11] || (l[11] = () => {
1254
- v.value.factorType === 1 && (v.value.factorSelectedList = []), v.value.factorType = -1;
1132
+ f.value.factorType === 1 && (f.value.factorSelectedList = []), f.value.factorType = -1;
1255
1133
  })
1256
1134
  }, {
1257
1135
  default: o(() => [
1258
- B(" 空 ")
1136
+ k(" 空 ")
1259
1137
  ]),
1260
1138
  _: 1
1261
1139
  }, 8, ["plain"])
1262
1140
  ]),
1263
1141
  _: 1
1264
1142
  }),
1265
- r(I, {
1143
+ a(T, {
1266
1144
  label: "预警因子:",
1267
1145
  prop: "factorSelectedList"
1268
1146
  }, {
1269
1147
  default: o(() => [
1270
- r(L, {
1271
- modelValue: v.value.factorSelectedList,
1272
- "onUpdate:modelValue": l[12] || (l[12] = (t) => v.value.factorSelectedList = t)
1148
+ a(P, {
1149
+ modelValue: f.value.factorSelectedList,
1150
+ "onUpdate:modelValue": l[12] || (l[12] = (t) => f.value.factorSelectedList = t)
1273
1151
  }, {
1274
1152
  default: o(() => [
1275
- v.value.factorType === 1 ? (n(!0), T(X, { key: 0 }, Y(e.moreFactorOptions, (t, z) => (n(), E(s, {
1276
- key: z,
1153
+ f.value.factorType === 1 ? (n(!0), C(q, { key: 0 }, X(e.moreFactorOptions, (t, L) => (n(), g(N, {
1154
+ key: L,
1277
1155
  label: t.factorTypeName,
1278
1156
  value: t.factorTypeName,
1279
1157
  style: { width: "200px" }
1280
- }, null, 8, ["label", "value"]))), 128)) : S("", !0),
1281
- v.value.factorType === -1 ? (n(!0), T(X, { key: 1 }, Y(e.emptyFactorOptions, (t, z) => (n(), E(s, {
1282
- key: z,
1158
+ }, null, 8, ["label", "value"]))), 128)) : h("", !0),
1159
+ f.value.factorType === -1 ? (n(!0), C(q, { key: 1 }, X(e.emptyFactorOptions, (t, L) => (n(), g(N, {
1160
+ key: L,
1283
1161
  label: t.factorTypeName,
1284
1162
  value: t.factorTypeName,
1285
1163
  style: { width: "200px" }
1286
- }, null, 8, ["label", "value"]))), 128)) : S("", !0)
1164
+ }, null, 8, ["label", "value"]))), 128)) : h("", !0)
1287
1165
  ]),
1288
1166
  _: 1
1289
1167
  }, 8, ["modelValue"])
1290
1168
  ]),
1291
1169
  _: 1
1292
1170
  }),
1293
- r(I, {
1171
+ a(T, {
1294
1172
  label: "预警次数:",
1295
1173
  prop: "totalCount"
1296
1174
  }, {
1297
1175
  default: o(() => [
1298
- r(b, {
1299
- modelValue: v.value.totalCount,
1300
- "onUpdate:modelValue": l[13] || (l[13] = (t) => v.value.totalCount = t),
1176
+ a(S, {
1177
+ modelValue: f.value.totalCount,
1178
+ "onUpdate:modelValue": l[13] || (l[13] = (t) => f.value.totalCount = t),
1301
1179
  min: 1,
1302
1180
  max: 10,
1303
1181
  "controls-position": "right",
@@ -1309,7 +1187,7 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1309
1187
  ]),
1310
1188
  _: 1
1311
1189
  }, 8, ["model", "rules"])
1312
- ], 64)) : S("", !0)
1190
+ ], 64)) : h("", !0)
1313
1191
  ]),
1314
1192
  _: 1
1315
1193
  }, 8, ["modelValue"])
@@ -1319,11 +1197,11 @@ const de = (e) => (wt("data-v-b57c57a6"), e = e(), Tt(), e), al = { class: "st-f
1319
1197
  ]);
1320
1198
  };
1321
1199
  }
1322
- }, Bl = /* @__PURE__ */ _t(_l, [["__scopeId", "data-v-b57c57a6"]]), ro = {
1200
+ }, no = /* @__PURE__ */ gt(ao, [["__scopeId", "data-v-b57c57a6"]]), Ho = {
1323
1201
  install(e) {
1324
- e.component("st-factorWarning", Bl);
1202
+ e.component("st-factorWarning", no);
1325
1203
  }
1326
1204
  };
1327
1205
  export {
1328
- ro as default
1206
+ Ho as default
1329
1207
  };