st-comp 0.0.236 → 0.0.237

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