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.
- package/components.d.ts +0 -1
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +21 -21
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +25 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +10 -10
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +18 -18
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +15 -15
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +9 -9
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +11 -11
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +3 -31
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +13 -13
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +17 -17
- package/es/User.cjs +1 -1
- package/es/User.js +18 -18
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +178 -122
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +17 -18
- package/es/VarietySearch.js +2592 -2705
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +9 -9
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +61 -61
- package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-52b6a510.cjs} +1 -1
- package/es/{_initCloneObject-c34c65bc.js → _initCloneObject-eaef9418.js} +2 -2
- package/es/{config-provider-2182708a.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-06a63185.js → config-provider-b16efd62.js} +3 -3
- package/es/{dropdown-89b74bc9.cjs → dropdown-071c5d7e.cjs} +1 -1
- package/es/{dropdown-302f71e7.js → dropdown-a59bba73.js} +2 -2
- package/es/{el-autocomplete-b9a3054a.cjs → el-autocomplete-a07e9439.cjs} +1 -1
- package/es/{el-autocomplete-ed75a659.js → el-autocomplete-ba808eb6.js} +5 -5
- package/es/{el-button-d09ff85f.js → el-button-c95adb85.js} +3 -3
- package/es/{el-button-68baab7b.cjs → el-button-eec58cff.cjs} +1 -1
- package/es/{el-checkbox-64648e02.js → el-checkbox-7421ccd3.js} +3 -3
- package/es/{el-checkbox-b982e2ef.cjs → el-checkbox-c25236a6.cjs} +1 -1
- package/es/{el-dialog-6a80e3d8.js → el-dialog-41ab8417.js} +4 -4
- package/es/{el-dialog-ad7309e9.cjs → el-dialog-ae86edb8.cjs} +1 -1
- package/es/{el-form-item-4076e55f.cjs → el-form-item-c3fe189b.cjs} +1 -1
- package/es/{el-form-item-4eca95be.js → el-form-item-c53c374d.js} +5 -5
- package/es/{el-input-cae60510.js → el-input-2f75c4ba.js} +49 -49
- package/es/{el-input-172c49f8.cjs → el-input-7fd293af.cjs} +1 -1
- package/es/{el-input-number-c2e71528.cjs → el-input-number-22e21d16.cjs} +1 -1
- package/es/{el-input-number-c2499410.js → el-input-number-5193fe6d.js} +4 -4
- package/es/{el-loading-05826e64.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-c738468d.js → el-loading-f6022062.js} +1 -1
- package/es/{el-menu-item-7f986598.cjs → el-menu-item-17dc717e.cjs} +1 -1
- package/es/{el-menu-item-f904f685.js → el-menu-item-7e881203.js} +4 -4
- package/es/{el-message-a86c0efa.cjs → el-message-5e6a6be9.cjs} +1 -1
- package/es/{el-message-box-05d8cf39.js → el-message-box-a93d2f6a.js} +9 -9
- package/es/{el-message-box-40ff2af5.cjs → el-message-box-c10adb52.cjs} +1 -1
- package/es/{el-message-0df23ae7.js → el-message-e544a8f5.js} +5 -5
- package/es/{el-overlay-cc9bc792.js → el-overlay-09ad71cd.js} +18 -18
- package/es/{el-overlay-d7a6e4a9.cjs → el-overlay-9e34965f.cjs} +1 -1
- package/es/{el-popconfirm-737a015b.cjs → el-popconfirm-70a976bf.cjs} +1 -1
- package/es/{el-popconfirm-a6f66a0e.js → el-popconfirm-81dcd202.js} +4 -4
- package/es/{el-popper-a38874f4.js → el-popper-b4f97157.js} +1 -1
- package/es/{el-popper-7ba87e05.cjs → el-popper-b6c99b28.cjs} +1 -1
- package/es/{el-segmented-51b1c797.js → el-segmented-b868d074.js} +2 -2
- package/es/{el-segmented-3fd66a0e.cjs → el-segmented-f8fce9ac.cjs} +1 -1
- package/es/{el-select-1b149fab.js → el-select-95627997.js} +8 -8
- package/es/{el-select-12f6deb7.cjs → el-select-d8d91db1.cjs} +1 -1
- package/es/{el-table-column-3e30ebae.js → el-table-column-376cd907.js} +9 -9
- package/es/{el-table-column-516a0ed9.cjs → el-table-column-c974cb96.cjs} +1 -1
- package/es/{el-tag-0a25efdf.js → el-tag-66cab138.js} +2 -2
- package/es/{el-tag-789f05d3.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/{el-text-73d899ff.js → el-text-ac60d0f2.js} +1 -1
- package/es/{el-text-1470de46.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/{index-cebc7160.cjs → index-098c2447.cjs} +1 -1
- package/es/{index-c04f444f.cjs → index-11547a0c.cjs} +1 -1
- package/es/{index-4194c942.js → index-1f7d4f70.js} +1 -1
- package/es/{index-8de94a49.cjs → index-298075cf.cjs} +1 -1
- package/es/{index-94e43e0d.js → index-57672682.js} +2 -2
- package/es/{index-6806997d.js → index-844bdd85.js} +2 -2
- package/es/{index-6e967429.js → index-88546436.js} +2 -2
- package/es/{index-ee977f79.cjs → index-9b9ef5dd.cjs} +1 -1
- package/es/{index-87b4bf61.js → index-a871c3eb.js} +60 -75
- package/es/{index-ac98a4d8.js → index-bc8e277e.js} +12573 -12827
- package/es/{index-4f48940d.cjs → index-c108567d.cjs} +1 -1
- package/es/{index-2375023e.cjs → index-d725fef6.cjs} +137 -138
- package/es/{index-54d289d1.js → index-d91dc23f.js} +2 -2
- package/es/{index-42e59bf5.js → index-e5566b94.js} +1 -1
- package/es/{index-696b6a94.cjs → index-f3562b52.cjs} +1 -1
- package/es/{index-269b22da.cjs → index-f967d6c1.cjs} +1 -1
- package/es/{python-c67c8901.cjs → python-c27ba105.cjs} +2 -2
- package/es/{python-a914569a.js → python-ecde9ff2.js} +11 -39
- package/es/style.css +1 -1
- package/es/{use-form-common-props-47e50c10.js → use-form-common-props-815d48a6.js} +28 -28
- package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-fd9b61a0.cjs} +1 -1
- package/es/{use-global-config-cf78ebac.cjs → use-global-config-30d7d8ce.cjs} +1 -1
- package/es/{use-global-config-f52caea0.js → use-global-config-b5e9d3d5.js} +4 -4
- package/es/{validator-3cad04b2.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-94c04152.js → validator-764a9db0.js} +1 -1
- package/es/{zh-cn-aabfaa94.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-4921961d.js → zh-cn-e963c628.js} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +225 -227
- package/lib/{index-c6d17ca2.js → index-f416420b.js} +31754 -32122
- package/lib/{python-09a6fcf8.js → python-766b93ca.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
- package/packages/MonacoEditor/index.vue +70 -741
- package/packages/VarietySearch/components/AddTag/index.vue +86 -20
- package/packages/VarietySearch/components/FactorScreen/index.vue +12 -80
- package/packages/VarietySearch/components/FactorScreen/tools.js +0 -41
- package/src/main.ts +11 -16
- package/src/pages/MonacoEditor/index.vue +0 -1
- package/es/VarietySelect-2fd501da.cjs +0 -1
- package/es/VarietySelect-5a9dd50b.js +0 -68
package/es/VarSelectDialog.js
CHANGED
|
@@ -1,37 +1,93 @@
|
|
|
1
1
|
import "./base-a5af3db3.js";
|
|
2
|
-
import { E as M } from "./el-dialog-
|
|
3
|
-
import "./el-overlay-
|
|
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-
|
|
6
|
-
import { E as
|
|
7
|
-
import { E as
|
|
8
|
-
import "./el-tag-
|
|
9
|
-
import { E as
|
|
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
|
|
12
|
-
import { c as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { _ as
|
|
16
|
-
import "./
|
|
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-
|
|
23
|
-
import "./index-
|
|
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-
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
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 "./
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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(
|
|
44
|
-
const
|
|
45
|
-
var
|
|
46
|
-
return ((
|
|
47
|
-
}),
|
|
48
|
-
const
|
|
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:
|
|
51
|
-
value:
|
|
106
|
+
label: B.trim(),
|
|
107
|
+
value: V.trim()
|
|
52
108
|
};
|
|
53
|
-
}),
|
|
54
|
-
const
|
|
55
|
-
for (let
|
|
56
|
-
const
|
|
57
|
-
switch (console.log(
|
|
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
|
-
|
|
115
|
+
l.push(s.param);
|
|
60
116
|
break;
|
|
61
117
|
}
|
|
62
118
|
default: {
|
|
63
|
-
if (!
|
|
64
|
-
return
|
|
65
|
-
let e =
|
|
66
|
-
|
|
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 (!
|
|
72
|
-
return
|
|
73
|
-
const
|
|
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 (
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
const
|
|
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
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
lineNumber:
|
|
87
|
-
column:
|
|
88
|
-
}),
|
|
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:
|
|
93
|
-
|
|
94
|
-
}),
|
|
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: (
|
|
101
|
-
|
|
156
|
+
open: (o) => {
|
|
157
|
+
_.value = o, f.value = !0;
|
|
102
158
|
},
|
|
103
159
|
close: () => {
|
|
104
|
-
|
|
160
|
+
f.value = !1;
|
|
105
161
|
}
|
|
106
|
-
}), (
|
|
107
|
-
const
|
|
108
|
-
return
|
|
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:
|
|
111
|
-
"onUpdate:modelValue":
|
|
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:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
modelValue:
|
|
127
|
-
"onUpdate:modelValue":
|
|
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:
|
|
133
|
-
(
|
|
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
|
-
|
|
143
|
-
|
|
198
|
+
c("div", me, [
|
|
199
|
+
y(r, {
|
|
144
200
|
class: "el-icon--left",
|
|
145
|
-
onClick:
|
|
201
|
+
onClick: l[1] || (l[1] = (e) => f.value = !1)
|
|
146
202
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
|
|
203
|
+
default: m(() => [
|
|
204
|
+
y(T(Z))
|
|
149
205
|
]),
|
|
150
206
|
_: 1
|
|
151
207
|
})
|
|
152
208
|
])
|
|
153
209
|
])
|
|
154
210
|
]),
|
|
155
|
-
default:
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
(
|
|
164
|
-
|
|
165
|
-
t.vtype === "text" ? (
|
|
166
|
-
t.vtype === "inputVariety" ? (
|
|
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:
|
|
173
|
-
onChange: (
|
|
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" ? (
|
|
177
|
-
t.prefix ? (
|
|
178
|
-
|
|
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": (
|
|
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 ? (
|
|
240
|
+
t.suffix ? (a(), n("span", Ve, C(t.suffix), 1)) : h("", !0)
|
|
185
241
|
], 64)) : h("", !0),
|
|
186
|
-
t.vtype === "select" ? (
|
|
242
|
+
t.vtype === "select" ? (a(), N(u, {
|
|
187
243
|
key: 3,
|
|
188
244
|
modelValue: t.modelValue,
|
|
189
|
-
"onUpdate:modelValue": (
|
|
245
|
+
"onUpdate:modelValue": (i) => t.modelValue = i,
|
|
190
246
|
placeholder: t.param,
|
|
191
247
|
clearable: "",
|
|
192
248
|
size: "small"
|
|
193
249
|
}, {
|
|
194
|
-
default:
|
|
195
|
-
(
|
|
196
|
-
key:
|
|
197
|
-
label:
|
|
198
|
-
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
|
-
|
|
260
|
+
x !== e.configList.length - 1 ? (a(), n("span", be, "_")) : h("", !0)
|
|
205
261
|
], 64))), 256))
|
|
206
262
|
]),
|
|
207
|
-
|
|
263
|
+
y(V, {
|
|
208
264
|
type: "primary",
|
|
209
265
|
plain: "",
|
|
210
266
|
size: "small",
|
|
211
|
-
onClick: (t) =>
|
|
267
|
+
onClick: (t) => v(e.configList)
|
|
212
268
|
}, {
|
|
213
|
-
default:
|
|
269
|
+
default: m(() => [
|
|
214
270
|
Q(" 插入变量 ")
|
|
215
271
|
]),
|
|
216
272
|
_: 2
|
|
217
273
|
}, 1032, ["onClick"]),
|
|
218
|
-
|
|
274
|
+
y(b, {
|
|
219
275
|
effect: "dark",
|
|
220
276
|
placement: "top-start"
|
|
221
277
|
}, {
|
|
222
|
-
content:
|
|
223
|
-
|
|
224
|
-
|
|
278
|
+
content: m(() => [
|
|
279
|
+
c("div", ge, [
|
|
280
|
+
c("span", xe, C(e.tip), 1)
|
|
225
281
|
])
|
|
226
282
|
]),
|
|
227
|
-
default:
|
|
228
|
-
|
|
229
|
-
default:
|
|
230
|
-
|
|
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
|
-
},
|
|
245
|
-
install(
|
|
246
|
-
|
|
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
|
-
|
|
306
|
+
ot as default
|
|
251
307
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./base-ef747d02.cjs");const f=require("./el-autocomplete-
|
|
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-
|
|
3
|
-
import "./el-input-
|
|
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-
|
|
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-
|
|
9
|
+
import "./use-form-common-props-815d48a6.js";
|
|
10
10
|
import "./index-960806da.js";
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
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-
|
|
15
|
+
import "./index-d91dc23f.js";
|
|
16
16
|
const N = { class: "variety-auto-complete" }, q = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "label"
|