st-comp 0.0.237 → 0.0.238

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 (120) hide show
  1. package/components.d.ts +0 -1
  2. package/es/CustomFunction.cjs +1 -1
  3. package/es/CustomFunction.js +21 -21
  4. package/es/FactorWarning.cjs +1 -1
  5. package/es/FactorWarning.js +25 -25
  6. package/es/Kline.cjs +1 -1
  7. package/es/Kline.js +10 -10
  8. package/es/KlineBasic.cjs +1 -1
  9. package/es/KlineBasic.js +18 -18
  10. package/es/KlineConfig.cjs +1 -1
  11. package/es/KlineConfig.js +15 -15
  12. package/es/KlineNew.cjs +1 -1
  13. package/es/KlineNew.js +9 -9
  14. package/es/KlinePlus.cjs +1 -1
  15. package/es/KlinePlus.js +11 -11
  16. package/es/MonacoEditor.cjs +1 -1
  17. package/es/MonacoEditor.js +3 -31
  18. package/es/Pagination.cjs +1 -1
  19. package/es/Pagination.js +13 -13
  20. package/es/PasswordPrompt.cjs +1 -1
  21. package/es/PasswordPrompt.js +2 -2
  22. package/es/Table.cjs +1 -1
  23. package/es/Table.js +17 -17
  24. package/es/User.cjs +1 -1
  25. package/es/User.js +18 -18
  26. package/es/VarSelectDialog.cjs +3 -3
  27. package/es/VarSelectDialog.js +178 -122
  28. package/es/VarietyAutoComplete.cjs +1 -1
  29. package/es/VarietyAutoComplete.js +7 -7
  30. package/es/VarietySearch.cjs +17 -18
  31. package/es/VarietySearch.js +2592 -2705
  32. package/es/VarietyTextCopy.cjs +1 -1
  33. package/es/VarietyTextCopy.js +9 -9
  34. package/es/VirtualTable.cjs +1 -1
  35. package/es/VirtualTable.js +61 -61
  36. package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-52b6a510.cjs} +1 -1
  37. package/es/{_initCloneObject-c34c65bc.js → _initCloneObject-eaef9418.js} +2 -2
  38. package/es/{config-provider-2182708a.cjs → config-provider-a584d81e.cjs} +1 -1
  39. package/es/{config-provider-06a63185.js → config-provider-b16efd62.js} +3 -3
  40. package/es/{dropdown-89b74bc9.cjs → dropdown-071c5d7e.cjs} +1 -1
  41. package/es/{dropdown-302f71e7.js → dropdown-a59bba73.js} +2 -2
  42. package/es/{el-autocomplete-b9a3054a.cjs → el-autocomplete-a07e9439.cjs} +1 -1
  43. package/es/{el-autocomplete-ed75a659.js → el-autocomplete-ba808eb6.js} +5 -5
  44. package/es/{el-button-d09ff85f.js → el-button-c95adb85.js} +3 -3
  45. package/es/{el-button-68baab7b.cjs → el-button-eec58cff.cjs} +1 -1
  46. package/es/{el-checkbox-64648e02.js → el-checkbox-7421ccd3.js} +3 -3
  47. package/es/{el-checkbox-b982e2ef.cjs → el-checkbox-c25236a6.cjs} +1 -1
  48. package/es/{el-dialog-6a80e3d8.js → el-dialog-41ab8417.js} +4 -4
  49. package/es/{el-dialog-ad7309e9.cjs → el-dialog-ae86edb8.cjs} +1 -1
  50. package/es/{el-form-item-4076e55f.cjs → el-form-item-c3fe189b.cjs} +1 -1
  51. package/es/{el-form-item-4eca95be.js → el-form-item-c53c374d.js} +5 -5
  52. package/es/{el-input-cae60510.js → el-input-2f75c4ba.js} +49 -49
  53. package/es/{el-input-172c49f8.cjs → el-input-7fd293af.cjs} +1 -1
  54. package/es/{el-input-number-c2e71528.cjs → el-input-number-22e21d16.cjs} +1 -1
  55. package/es/{el-input-number-c2499410.js → el-input-number-5193fe6d.js} +4 -4
  56. package/es/{el-loading-05826e64.cjs → el-loading-cfd86c15.cjs} +1 -1
  57. package/es/{el-loading-c738468d.js → el-loading-f6022062.js} +1 -1
  58. package/es/{el-menu-item-7f986598.cjs → el-menu-item-17dc717e.cjs} +1 -1
  59. package/es/{el-menu-item-f904f685.js → el-menu-item-7e881203.js} +4 -4
  60. package/es/{el-message-a86c0efa.cjs → el-message-5e6a6be9.cjs} +1 -1
  61. package/es/{el-message-box-05d8cf39.js → el-message-box-a93d2f6a.js} +9 -9
  62. package/es/{el-message-box-40ff2af5.cjs → el-message-box-c10adb52.cjs} +1 -1
  63. package/es/{el-message-0df23ae7.js → el-message-e544a8f5.js} +5 -5
  64. package/es/{el-overlay-cc9bc792.js → el-overlay-09ad71cd.js} +18 -18
  65. package/es/{el-overlay-d7a6e4a9.cjs → el-overlay-9e34965f.cjs} +1 -1
  66. package/es/{el-popconfirm-737a015b.cjs → el-popconfirm-70a976bf.cjs} +1 -1
  67. package/es/{el-popconfirm-a6f66a0e.js → el-popconfirm-81dcd202.js} +4 -4
  68. package/es/{el-popper-a38874f4.js → el-popper-b4f97157.js} +1 -1
  69. package/es/{el-popper-7ba87e05.cjs → el-popper-b6c99b28.cjs} +1 -1
  70. package/es/{el-segmented-51b1c797.js → el-segmented-b868d074.js} +2 -2
  71. package/es/{el-segmented-3fd66a0e.cjs → el-segmented-f8fce9ac.cjs} +1 -1
  72. package/es/{el-select-1b149fab.js → el-select-95627997.js} +8 -8
  73. package/es/{el-select-12f6deb7.cjs → el-select-d8d91db1.cjs} +1 -1
  74. package/es/{el-table-column-3e30ebae.js → el-table-column-376cd907.js} +9 -9
  75. package/es/{el-table-column-516a0ed9.cjs → el-table-column-c974cb96.cjs} +1 -1
  76. package/es/{el-tag-0a25efdf.js → el-tag-66cab138.js} +2 -2
  77. package/es/{el-tag-789f05d3.cjs → el-tag-a33c4b22.cjs} +1 -1
  78. package/es/{el-text-73d899ff.js → el-text-ac60d0f2.js} +1 -1
  79. package/es/{el-text-1470de46.cjs → el-text-c20a9f48.cjs} +1 -1
  80. package/es/{index-cebc7160.cjs → index-098c2447.cjs} +1 -1
  81. package/es/{index-c04f444f.cjs → index-11547a0c.cjs} +1 -1
  82. package/es/{index-4194c942.js → index-1f7d4f70.js} +1 -1
  83. package/es/{index-8de94a49.cjs → index-298075cf.cjs} +1 -1
  84. package/es/{index-94e43e0d.js → index-57672682.js} +2 -2
  85. package/es/{index-6806997d.js → index-844bdd85.js} +2 -2
  86. package/es/{index-6e967429.js → index-88546436.js} +2 -2
  87. package/es/{index-ee977f79.cjs → index-9b9ef5dd.cjs} +1 -1
  88. package/es/{index-87b4bf61.js → index-a871c3eb.js} +60 -75
  89. package/es/{index-ac98a4d8.js → index-bc8e277e.js} +12573 -12827
  90. package/es/{index-4f48940d.cjs → index-c108567d.cjs} +1 -1
  91. package/es/{index-2375023e.cjs → index-d725fef6.cjs} +137 -138
  92. package/es/{index-54d289d1.js → index-d91dc23f.js} +2 -2
  93. package/es/{index-42e59bf5.js → index-e5566b94.js} +1 -1
  94. package/es/{index-696b6a94.cjs → index-f3562b52.cjs} +1 -1
  95. package/es/{index-269b22da.cjs → index-f967d6c1.cjs} +1 -1
  96. package/es/{python-c67c8901.cjs → python-c27ba105.cjs} +2 -2
  97. package/es/{python-a914569a.js → python-ecde9ff2.js} +11 -39
  98. package/es/style.css +1 -1
  99. package/es/{use-form-common-props-47e50c10.js → use-form-common-props-815d48a6.js} +28 -28
  100. package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
  101. package/es/{use-global-config-cf78ebac.cjs → use-global-config-30d7d8ce.cjs} +1 -1
  102. package/es/{use-global-config-f52caea0.js → use-global-config-b5e9d3d5.js} +4 -4
  103. package/es/{validator-3cad04b2.cjs → validator-1b8a6128.cjs} +1 -1
  104. package/es/{validator-94c04152.js → validator-764a9db0.js} +1 -1
  105. package/es/{zh-cn-aabfaa94.cjs → zh-cn-90317f62.cjs} +1 -1
  106. package/es/{zh-cn-4921961d.js → zh-cn-e963c628.js} +1 -1
  107. package/lib/bundle.js +1 -1
  108. package/lib/bundle.umd.cjs +225 -227
  109. package/lib/{index-c6d17ca2.js → index-f416420b.js} +31754 -32122
  110. package/lib/{python-09a6fcf8.js → python-766b93ca.js} +1 -1
  111. package/lib/style.css +1 -1
  112. package/package.json +1 -2
  113. package/packages/MonacoEditor/index.vue +70 -741
  114. package/packages/VarietySearch/components/AddTag/index.vue +86 -20
  115. package/packages/VarietySearch/components/FactorScreen/index.vue +12 -80
  116. package/packages/VarietySearch/components/FactorScreen/tools.js +0 -41
  117. package/src/main.ts +11 -16
  118. package/src/pages/MonacoEditor/index.vue +0 -1
  119. package/es/VarietySelect-2fd501da.cjs +0 -1
  120. package/es/VarietySelect-5a9dd50b.js +0 -68
@@ -1,37 +1,93 @@
1
1
  import "./base-a5af3db3.js";
2
- import { E as M } from "./el-dialog-6a80e3d8.js";
3
- import "./el-overlay-cc9bc792.js";
2
+ import { E as M } from "./el-dialog-41ab8417.js";
3
+ import "./el-overlay-09ad71cd.js";
4
4
  import "./el-tooltip-4ed993c7.js";
5
- import { E as O } from "./el-popper-a38874f4.js";
6
- import { E as P } from "./el-button-d09ff85f.js";
7
- import { E as F } from "./el-input-cae60510.js";
8
- import "./el-tag-0a25efdf.js";
9
- import { E as R, a as G } from "./el-select-1b149fab.js";
5
+ import { E as O } from "./el-popper-b4f97157.js";
6
+ import { E as R } from "./el-button-c95adb85.js";
7
+ import { E as W } from "./el-input-2f75c4ba.js";
8
+ import "./el-tag-66cab138.js";
9
+ import { E as G, a as H } from "./el-select-95627997.js";
10
10
  import "./el-scrollbar-323542e7.js";
11
- import { inject as H, ref as S, computed as J, onMounted as K, openBlock as o, createBlock as g, withCtx as p, createElementVNode as u, createVNode as f, createElementBlock as r, Fragment as y, renderList as w, unref as U, toDisplayString as E, createCommentVNode as h, createTextVNode as Q, pushScopeId as W, popScopeId as X } from "vue";
12
- import { c as Y, i as Z, E as ee } from "./index-87b4bf61.js";
13
- import { V as te } from "./VarietySelect-5a9dd50b.js";
14
- import { E as B } from "./el-message-0df23ae7.js";
15
- import { _ as le } from "./_plugin-vue_export-helper-dad06003.js";
16
- import "./use-form-common-props-47e50c10.js";
11
+ import { inject as A, ref as $, openBlock as a, createElementBlock as n, createCommentVNode as h, createVNode as y, withCtx as m, createElementVNode as c, toDisplayString as C, computed as J, onMounted as K, createBlock as N, Fragment as E, renderList as L, unref as T, createTextVNode as Q, pushScopeId as X, popScopeId as Y } from "vue";
12
+ import { c as Z, i as ee, E as te } from "./index-a871c3eb.js";
13
+ import { E as le } from "./el-autocomplete-ba808eb6.js";
14
+ import { V as oe } from "./index-7ed0999e.js";
15
+ import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
16
+ import { E as j } from "./el-message-e544a8f5.js";
17
+ import "./use-form-common-props-815d48a6.js";
17
18
  import "./index-960806da.js";
18
19
  import "./index-d77a7336.js";
19
20
  import "./index-2e331d74.js";
20
21
  import "./vnode-5ddb7ed1.js";
21
22
  import "./scroll-679bd6bf.js";
22
- import "./use-global-config-f52caea0.js";
23
- import "./index-42e59bf5.js";
23
+ import "./use-global-config-b5e9d3d5.js";
24
+ import "./index-e5566b94.js";
24
25
  import "./index-657047bb.js";
25
26
  import "./typescript-7ae59c4c.js";
26
- import "./index-54d289d1.js";
27
- import "./index-6806997d.js";
28
- import "./index-94e43e0d.js";
27
+ import "./index-d91dc23f.js";
28
+ import "./index-844bdd85.js";
29
+ import "./index-57672682.js";
29
30
  import "./castArray-7741a212.js";
30
31
  import "./debounce-8d53f4dd.js";
31
- import "./el-autocomplete-ed75a659.js";
32
- import "./index-7ed0999e.js";
33
- import "./config-provider-06a63185.js";
34
- const oe = (V) => (W("data-v-e4f6c06a"), V = V(), X(), V), ae = { class: "custom-header" }, ne = { class: "left" }, se = /* @__PURE__ */ oe(() => /* @__PURE__ */ u("span", null, " 选择变量 ", -1)), re = { class: "right" }, ie = { class: "custom-body" }, ue = { class: "config-list" }, pe = { class: "config-item" }, ce = { key: 0 }, me = { key: 0 }, de = { key: 1 }, _e = { key: 0 }, ve = { style: { "max-width": "820px" } }, fe = { style: { "white-space": "pre-line" } }, he = {
32
+ import "./config-provider-b16efd62.js";
33
+ const ae = { class: "variety-auto-complete" }, se = { key: 0 }, ne = { class: "label" }, re = {
34
+ __name: "VarietySelect",
35
+ props: {
36
+ size: { type: String, default: "default" },
37
+ placeholder: { type: String, default: "请输入品种名称或代码" },
38
+ labelShowEnable: { type: Boolean, default: !0 },
39
+ // 是否开启展示label
40
+ selectClearEnable: { type: Boolean, default: !0 }
41
+ // 是否开启选择回调后清除输入框值
42
+ },
43
+ emits: ["select", "change"],
44
+ setup(p, { emit: U }) {
45
+ const q = A("stConfig"), I = U, _ = p, f = $(""), k = async (d, v) => {
46
+ if (d === "" || d === "null")
47
+ v([]);
48
+ else {
49
+ const o = {
50
+ keyWord: d,
51
+ pageNum: 1,
52
+ pageSize: 999,
53
+ userId: oe("id"),
54
+ hotSearchFlag: 1
55
+ }, { body: l } = await q.request.post("/common/qt/getFeatureInfosByPage", o), S = l.list.map(({ code: u, featureName: r }) => ({
56
+ label: `${u}   ${r}`,
57
+ value: u
58
+ }));
59
+ v(S);
60
+ }
61
+ }, w = ({ label: d, value: v }) => {
62
+ const o = d.split(" ").at(-1);
63
+ I("select", { name: o, code: v }), _.selectClearEnable && (f.value = "");
64
+ }, z = (d) => {
65
+ I("change", d);
66
+ };
67
+ return (d, v) => {
68
+ const o = le;
69
+ return a(), n("div", ae, [
70
+ p.labelShowEnable ? (a(), n("span", se, "品种搜索:")) : h("", !0),
71
+ y(o, {
72
+ modelValue: f.value,
73
+ "onUpdate:modelValue": v[0] || (v[0] = (l) => f.value = l),
74
+ clearable: "",
75
+ size: _.size,
76
+ placeholder: _.placeholder,
77
+ "fetch-suggestions": k,
78
+ onSelect: w,
79
+ onChange: z
80
+ }, {
81
+ default: m(({ item: l }) => [
82
+ c("div", ne, C(l.label), 1)
83
+ ]),
84
+ _: 1
85
+ }, 8, ["modelValue", "size", "placeholder"])
86
+ ]);
87
+ };
88
+ }
89
+ }, ie = /* @__PURE__ */ F(re, [["__scopeId", "data-v-d433c4b8"]]);
90
+ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom-header" }, pe = { class: "left" }, de = /* @__PURE__ */ ue(() => /* @__PURE__ */ c("span", null, " 选择变量 ", -1)), me = { class: "right" }, _e = { class: "custom-body" }, fe = { class: "config-list" }, ve = { class: "config-item" }, he = { key: 0 }, ye = { key: 0 }, Ve = { key: 1 }, be = { key: 0 }, ge = { style: { "max-width": "820px" } }, xe = { style: { "white-space": "pre-line" } }, Se = {
35
91
  __name: "index",
36
92
  props: {
37
93
  useCase: {
@@ -40,75 +96,75 @@ const oe = (V) => (W("data-v-e4f6c06a"), V = V(), X(), V), ae = { class: "custom
40
96
  // 1-选股, 2-回测
41
97
  }
42
98
  },
43
- setup(V, { expose: z }) {
44
- const D = H("stConfig"), T = V, b = S(null), x = S(!1), N = S(null), I = S([]), $ = J(() => {
45
- var n;
46
- return ((n = I.value.find((a) => a.varName === N.value)) == null ? void 0 : n.formatList) ?? [];
47
- }), j = (n) => n.replace(/^\[|\]$/g, "").split("],[").map((c) => {
48
- const i = c.replace(/\[|\]/g, ""), [C, m] = i.split(",");
99
+ setup(p, { expose: U }) {
100
+ const q = A("stConfig"), I = p, _ = $(null), f = $(!1), k = $(null), w = $([]), z = J(() => {
101
+ var o;
102
+ return ((o = w.value.find((l) => l.varName === k.value)) == null ? void 0 : o.formatList) ?? [];
103
+ }), d = (o) => o.replace(/^\[|\]$/g, "").split("],[").map((u) => {
104
+ const r = u.replace(/\[|\]/g, ""), [B, V] = r.split(",");
49
105
  return {
50
- label: C.trim(),
51
- value: m.trim()
106
+ label: B.trim(),
107
+ value: V.trim()
52
108
  };
53
- }), q = (n) => {
54
- const a = [];
55
- for (let d = 0; d < n.length; d++) {
56
- const l = n[d];
57
- switch (console.log(l), l.vtype) {
109
+ }), v = (o) => {
110
+ const l = [];
111
+ for (let b = 0; b < o.length; b++) {
112
+ const s = o[b];
113
+ switch (console.log(s), s.vtype) {
58
114
  case "text": {
59
- a.push(l.param);
115
+ l.push(s.param);
60
116
  break;
61
117
  }
62
118
  default: {
63
- if (!l.modelValue)
64
- return B.error("请检查插入格式内是否填写完整");
65
- let e = l.modelValue;
66
- l.prefix && (e = `${l.prefix}${e}`), l.suffix && (e = `${e}${l.suffix}`), a.push(e);
119
+ if (!s.modelValue)
120
+ return j.error("请检查插入格式内是否填写完整");
121
+ let e = s.modelValue;
122
+ s.prefix && (e = `${s.prefix}${e}`), s.suffix && (e = `${e}${s.suffix}`), l.push(e);
67
123
  break;
68
124
  }
69
125
  }
70
126
  }
71
- if (!b.value)
72
- return B.error("未检测到编辑器实例");
73
- const k = a.join("_"), c = b.value.getInstance(), i = c.getPosition(), m = b.value.getValue().split(`
127
+ if (!_.value)
128
+ return j.error("未检测到编辑器实例");
129
+ const S = l.join("_"), u = _.value.getInstance(), r = u.getPosition(), V = _.value.getValue().split(`
74
130
  `);
75
- if (i.lineNumber <= m.length) {
76
- const d = i.lineNumber - 1, l = m[d], e = i.column - 1, _ = e > 0 ? l[e - 1] : "", t = e < l.length ? l[e] : "";
77
- let v = k;
78
- _ && _ !== " " && !/[\s({[ ]/.test(_) && (v = " " + v), t && t !== " " && !/[\s)}\]]/.test(t) && (v = v + " ");
79
- const s = l.substring(0, e) + v + l.substring(e);
80
- m[d] = s;
81
- const L = m.join(`
131
+ if (r.lineNumber <= V.length) {
132
+ const b = r.lineNumber - 1, s = V[b], e = r.column - 1, g = e > 0 ? s[e - 1] : "", t = e < s.length ? s[e] : "";
133
+ let x = S;
134
+ g && g !== " " && !/[\s({[ ]/.test(g) && (x = " " + x), t && t !== " " && !/[\s)}\]]/.test(t) && (x = x + " ");
135
+ const i = s.substring(0, e) + x + s.substring(e);
136
+ V[b] = i;
137
+ const D = V.join(`
82
138
  `);
83
- b.value.setValue(L);
84
- const A = i.column + v.length;
85
- c.setPosition({
86
- lineNumber: i.lineNumber,
87
- column: A
88
- }), c.focus();
139
+ _.value.setValue(D);
140
+ const P = r.column + x.length;
141
+ u.setPosition({
142
+ lineNumber: r.lineNumber,
143
+ column: P
144
+ }), u.focus();
89
145
  }
90
146
  };
91
147
  return K(async () => {
92
- const { body: n } = await D.request.post("/common/conf/queryAllBackVariables", { useCase: T.useCase });
93
- I.value = n ?? [];
94
- }), z({
148
+ const { body: o } = await q.request.post("/common/conf/queryAllBackVariables", { useCase: I.useCase });
149
+ w.value = o ?? [];
150
+ }), U({
95
151
  /**
96
152
  * @description: 打开变量选择器窗口
97
153
  * @editor 脚本编辑器实例
98
154
  * @newZindex Number 窗口定位层级
99
155
  */
100
- open: (n) => {
101
- b.value = n, x.value = !0;
156
+ open: (o) => {
157
+ _.value = o, f.value = !0;
102
158
  },
103
159
  close: () => {
104
- x.value = !1;
160
+ f.value = !1;
105
161
  }
106
- }), (n, a) => {
107
- const k = R, c = G, i = ee, C = F, m = P, d = O, l = M;
108
- return o(), g(l, {
162
+ }), (o, l) => {
163
+ const S = G, u = H, r = te, B = W, V = R, b = O, s = M;
164
+ return a(), N(s, {
109
165
  "modal-class": "var-select-dialog",
110
- modelValue: x.value,
111
- "onUpdate:modelValue": a[2] || (a[2] = (e) => x.value = e),
166
+ modelValue: f.value,
167
+ "onUpdate:modelValue": l[2] || (l[2] = (e) => f.value = e),
112
168
  "align-center": "",
113
169
  "append-to-body": "",
114
170
  "destroy-on-close": "",
@@ -118,20 +174,20 @@ const oe = (V) => (W("data-v-e4f6c06a"), V = V(), X(), V), ae = { class: "custom
118
174
  "modal-penetrable": !0,
119
175
  "show-close": !1
120
176
  }, {
121
- header: p(() => [
122
- u("div", ae, [
123
- u("div", ne, [
124
- se,
125
- f(c, {
126
- modelValue: N.value,
127
- "onUpdate:modelValue": a[0] || (a[0] = (e) => N.value = e),
177
+ header: m(() => [
178
+ c("div", ce, [
179
+ c("div", pe, [
180
+ de,
181
+ y(u, {
182
+ modelValue: k.value,
183
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => k.value = e),
128
184
  placeholder: "选择变量",
129
185
  filterable: "",
130
186
  clearable: ""
131
187
  }, {
132
- default: p(() => [
133
- (o(!0), r(y, null, w(I.value, (e, _) => (o(), g(k, {
134
- key: _,
188
+ default: m(() => [
189
+ (a(!0), n(E, null, L(w.value, (e, g) => (a(), N(S, {
190
+ key: g,
135
191
  label: e.varName,
136
192
  value: e.varName
137
193
  }, null, 8, ["label", "value"]))), 128))
@@ -139,95 +195,95 @@ const oe = (V) => (W("data-v-e4f6c06a"), V = V(), X(), V), ae = { class: "custom
139
195
  _: 1
140
196
  }, 8, ["modelValue"])
141
197
  ]),
142
- u("div", re, [
143
- f(i, {
198
+ c("div", me, [
199
+ y(r, {
144
200
  class: "el-icon--left",
145
- onClick: a[1] || (a[1] = (e) => x.value = !1)
201
+ onClick: l[1] || (l[1] = (e) => f.value = !1)
146
202
  }, {
147
- default: p(() => [
148
- f(U(Y))
203
+ default: m(() => [
204
+ y(T(Z))
149
205
  ]),
150
206
  _: 1
151
207
  })
152
208
  ])
153
209
  ])
154
210
  ]),
155
- default: p(() => [
156
- u("div", ie, [
157
- $.value.length ? (o(!0), r(y, { key: 0 }, w($.value, (e, _) => (o(), r("div", {
211
+ default: m(() => [
212
+ c("div", _e, [
213
+ z.value.length ? (a(!0), n(E, { key: 0 }, L(z.value, (e, g) => (a(), n("div", {
158
214
  class: "format-item",
159
- key: _
215
+ key: g
160
216
  }, [
161
- u("span", null, "格式" + E(_ + 1) + ":", 1),
162
- u("div", ue, [
163
- (o(!0), r(y, null, w(e.configList, (t, v) => (o(), r(y, null, [
164
- u("div", pe, [
165
- t.vtype === "text" ? (o(), r("span", ce, E(t.param), 1)) : h("", !0),
166
- t.vtype === "inputVariety" ? (o(), g(te, {
217
+ c("span", null, "格式" + C(g + 1) + ":", 1),
218
+ c("div", fe, [
219
+ (a(!0), n(E, null, L(e.configList, (t, x) => (a(), n(E, null, [
220
+ c("div", ve, [
221
+ t.vtype === "text" ? (a(), n("span", he, C(t.param), 1)) : h("", !0),
222
+ t.vtype === "inputVariety" ? (a(), N(ie, {
167
223
  key: 1,
168
224
  size: "small",
169
225
  placeholder: t.param,
170
226
  selectClearEnable: !1,
171
227
  labelShowEnable: !1,
172
- onSelect: ({ name: s, code: L }) => t.modelValue = L,
173
- onChange: (s) => t.modelValue = s,
228
+ onSelect: ({ name: i, code: D }) => t.modelValue = D,
229
+ onChange: (i) => t.modelValue = i,
174
230
  style: { width: "100px" }
175
231
  }, null, 8, ["placeholder", "onSelect", "onChange"])) : h("", !0),
176
- t.vtype === "input" ? (o(), r(y, { key: 2 }, [
177
- t.prefix ? (o(), r("span", me, E(t.prefix), 1)) : h("", !0),
178
- f(C, {
232
+ t.vtype === "input" ? (a(), n(E, { key: 2 }, [
233
+ t.prefix ? (a(), n("span", ye, C(t.prefix), 1)) : h("", !0),
234
+ y(B, {
179
235
  modelValue: t.modelValue,
180
- "onUpdate:modelValue": (s) => t.modelValue = s,
236
+ "onUpdate:modelValue": (i) => t.modelValue = i,
181
237
  placeholder: t.param,
182
238
  size: "small"
183
239
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
184
- t.suffix ? (o(), r("span", de, E(t.suffix), 1)) : h("", !0)
240
+ t.suffix ? (a(), n("span", Ve, C(t.suffix), 1)) : h("", !0)
185
241
  ], 64)) : h("", !0),
186
- t.vtype === "select" ? (o(), g(c, {
242
+ t.vtype === "select" ? (a(), N(u, {
187
243
  key: 3,
188
244
  modelValue: t.modelValue,
189
- "onUpdate:modelValue": (s) => t.modelValue = s,
245
+ "onUpdate:modelValue": (i) => t.modelValue = i,
190
246
  placeholder: t.param,
191
247
  clearable: "",
192
248
  size: "small"
193
249
  }, {
194
- default: p(() => [
195
- (o(!0), r(y, null, w(j(t.optionsStr), (s) => (o(), g(k, {
196
- key: s.value,
197
- label: s.label,
198
- value: s.value
250
+ default: m(() => [
251
+ (a(!0), n(E, null, L(d(t.optionsStr), (i) => (a(), N(S, {
252
+ key: i.value,
253
+ label: i.label,
254
+ value: i.value
199
255
  }, null, 8, ["label", "value"]))), 128))
200
256
  ]),
201
257
  _: 2
202
258
  }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : h("", !0)
203
259
  ]),
204
- v !== e.configList.length - 1 ? (o(), r("span", _e, "_")) : h("", !0)
260
+ x !== e.configList.length - 1 ? (a(), n("span", be, "_")) : h("", !0)
205
261
  ], 64))), 256))
206
262
  ]),
207
- f(m, {
263
+ y(V, {
208
264
  type: "primary",
209
265
  plain: "",
210
266
  size: "small",
211
- onClick: (t) => q(e.configList)
267
+ onClick: (t) => v(e.configList)
212
268
  }, {
213
- default: p(() => [
269
+ default: m(() => [
214
270
  Q(" 插入变量 ")
215
271
  ]),
216
272
  _: 2
217
273
  }, 1032, ["onClick"]),
218
- f(d, {
274
+ y(b, {
219
275
  effect: "dark",
220
276
  placement: "top-start"
221
277
  }, {
222
- content: p(() => [
223
- u("div", ve, [
224
- u("span", fe, E(e.tip), 1)
278
+ content: m(() => [
279
+ c("div", ge, [
280
+ c("span", xe, C(e.tip), 1)
225
281
  ])
226
282
  ]),
227
- default: p(() => [
228
- f(i, null, {
229
- default: p(() => [
230
- f(U(Z))
283
+ default: m(() => [
284
+ y(r, null, {
285
+ default: m(() => [
286
+ y(T(ee))
231
287
  ]),
232
288
  _: 1
233
289
  })
@@ -241,11 +297,11 @@ const oe = (V) => (W("data-v-e4f6c06a"), V = V(), X(), V), ae = { class: "custom
241
297
  }, 8, ["modelValue"]);
242
298
  };
243
299
  }
244
- }, Ve = /* @__PURE__ */ le(he, [["__scopeId", "data-v-e4f6c06a"]]), Ye = {
245
- install(V) {
246
- V.component("st-varSelectDialog", Ve);
300
+ }, Ee = /* @__PURE__ */ F(Se, [["__scopeId", "data-v-e4f6c06a"]]), ot = {
301
+ install(p) {
302
+ p.component("st-varSelectDialog", Ee);
247
303
  }
248
304
  };
249
305
  export {
250
- Ye as default
306
+ ot as default
251
307
  };
@@ -1 +1 @@
1
- "use strict";require("./base-ef747d02.cjs");const f=require("./el-autocomplete-b9a3054a.cjs");require("./el-input-172c49f8.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-7ba87e05.cjs");const e=require("vue"),q=require("./index-8901a38c.cjs"),x=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-form-common-props-344056f9.cjs");require("./index-9780a537.cjs");require("./index-cebc7160.cjs");require("./index-8de94a49.cjs");require("./debounce-62f5b6e8.cjs");require("./typescript-b63f8e83.cjs");require("./index-c04f444f.cjs");const S={class:"variety-auto-complete"},b={key:0,class:"label"},v={class:"label"},C={__name:"index",props:{width:{type:String,default:"200px"},size:{type:String,default:"default"},label:{type:String,default:"品种搜索"},placeholder:{type:String,default:"请输入品种名称或代码"},selectClearEnable:{type:Boolean,default:!0}},emits:["input","select","change"],setup(o,{emit:u}){const d=e.inject("stConfig"),s=u,r=o,i=e.ref(""),p=async(t,l)=>{if(t===""||t==="null")l([]);else{const a={keyWord:t,pageNum:1,pageSize:999,userId:q.V("id"),hotSearchFlag:1},{body:n}=await d.request.post("/common/qt/quickSearch",a),g=n.list.map(({code:c,featureName:y})=>({label:`${c}   ${y}`,value:c}));l(g)}},m=t=>{s("input",t)},_=({label:t,value:l})=>{const a=t.split(" ").at(-1);s("select",{name:a,code:l}),r.selectClearEnable&&(i.value="")},h=t=>{s("change",t)};return(t,l)=>{const a=f.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",S,[o.label?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=n=>i.value=n),clearable:"",size:r.size,placeholder:r.placeholder,"fetch-suggestions":p,onInput:m,onSelect:_,onChange:h,style:e.normalizeStyle({width:o.width})},{default:e.withCtx(({item:n})=>[e.createElementVNode("div",v,e.toDisplayString(n.label),1)]),_:1},8,["modelValue","size","placeholder","style"])])}}},V=x._export_sfc(C,[["__scopeId","data-v-279b3fa1"]]),k={install(o){o.component("st-varietyAutoComplete",V)}};module.exports=k;
1
+ "use strict";require("./base-ef747d02.cjs");const f=require("./el-autocomplete-a07e9439.cjs");require("./el-input-7fd293af.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-b6c99b28.cjs");const e=require("vue"),q=require("./index-8901a38c.cjs"),x=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-form-common-props-fd9b61a0.cjs");require("./index-9780a537.cjs");require("./index-098c2447.cjs");require("./index-298075cf.cjs");require("./debounce-62f5b6e8.cjs");require("./typescript-b63f8e83.cjs");require("./index-11547a0c.cjs");const S={class:"variety-auto-complete"},b={key:0,class:"label"},v={class:"label"},C={__name:"index",props:{width:{type:String,default:"200px"},size:{type:String,default:"default"},label:{type:String,default:"品种搜索"},placeholder:{type:String,default:"请输入品种名称或代码"},selectClearEnable:{type:Boolean,default:!0}},emits:["input","select","change"],setup(o,{emit:u}){const d=e.inject("stConfig"),s=u,r=o,i=e.ref(""),p=async(t,l)=>{if(t===""||t==="null")l([]);else{const a={keyWord:t,pageNum:1,pageSize:999,userId:q.V("id"),hotSearchFlag:1},{body:n}=await d.request.post("/common/qt/quickSearch",a),g=n.list.map(({code:c,featureName:y})=>({label:`${c}   ${y}`,value:c}));l(g)}},m=t=>{s("input",t)},_=({label:t,value:l})=>{const a=t.split(" ").at(-1);s("select",{name:a,code:l}),r.selectClearEnable&&(i.value="")},h=t=>{s("change",t)};return(t,l)=>{const a=f.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",S,[o.label?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=n=>i.value=n),clearable:"",size:r.size,placeholder:r.placeholder,"fetch-suggestions":p,onInput:m,onSelect:_,onChange:h,style:e.normalizeStyle({width:o.width})},{default:e.withCtx(({item:n})=>[e.createElementVNode("div",v,e.toDisplayString(n.label),1)]),_:1},8,["modelValue","size","placeholder","style"])])}}},V=x._export_sfc(C,[["__scopeId","data-v-279b3fa1"]]),k={install(o){o.component("st-varietyAutoComplete",V)}};module.exports=k;
@@ -1,18 +1,18 @@
1
1
  import "./base-a5af3db3.js";
2
- import { E as S } from "./el-autocomplete-ed75a659.js";
3
- import "./el-input-cae60510.js";
2
+ import { E as S } from "./el-autocomplete-ba808eb6.js";
3
+ import "./el-input-2f75c4ba.js";
4
4
  import "./el-scrollbar-323542e7.js";
5
- import "./el-popper-a38874f4.js";
5
+ import "./el-popper-b4f97157.js";
6
6
  import { inject as b, ref as C, openBlock as r, createElementBlock as p, toDisplayString as m, createCommentVNode as v, createVNode as V, normalizeStyle as z, withCtx as E, createElementVNode as w } from "vue";
7
7
  import { V as k } from "./index-7ed0999e.js";
8
8
  import { _ as I } from "./_plugin-vue_export-helper-dad06003.js";
9
- import "./use-form-common-props-47e50c10.js";
9
+ import "./use-form-common-props-815d48a6.js";
10
10
  import "./index-960806da.js";
11
- import "./index-87b4bf61.js";
12
- import "./index-6806997d.js";
11
+ import "./index-a871c3eb.js";
12
+ import "./index-844bdd85.js";
13
13
  import "./debounce-8d53f4dd.js";
14
14
  import "./typescript-7ae59c4c.js";
15
- import "./index-54d289d1.js";
15
+ import "./index-d91dc23f.js";
16
16
  const N = { class: "variety-auto-complete" }, q = {
17
17
  key: 0,
18
18
  class: "label"