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.
- package/components.d.ts +1 -0
- 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 +31 -3
- 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 +122 -178
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +18 -17
- package/es/VarietySearch.js +2705 -2592
- package/es/VarietySelect-2fd501da.cjs +1 -0
- package/es/VarietySelect-5a9dd50b.js +68 -0
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +12 -12
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +61 -61
- package/es/{_initCloneObject-52b6a510.cjs → _initCloneObject-3823a101.cjs} +1 -1
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c34c65bc.js} +2 -2
- package/es/{config-provider-b16efd62.js → config-provider-06a63185.js} +3 -3
- package/es/{config-provider-a584d81e.cjs → config-provider-2182708a.cjs} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-302f71e7.js} +2 -2
- package/es/{dropdown-071c5d7e.cjs → dropdown-89b74bc9.cjs} +1 -1
- package/es/{el-autocomplete-a07e9439.cjs → el-autocomplete-b9a3054a.cjs} +1 -1
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-ed75a659.js} +5 -5
- package/es/{el-button-eec58cff.cjs → el-button-68baab7b.cjs} +1 -1
- package/es/{el-button-c95adb85.js → el-button-d09ff85f.js} +3 -3
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-64648e02.js} +3 -3
- package/es/{el-checkbox-c25236a6.cjs → el-checkbox-b982e2ef.cjs} +1 -1
- package/es/{el-dialog-41ab8417.js → el-dialog-6a80e3d8.js} +4 -4
- package/es/{el-dialog-ae86edb8.cjs → el-dialog-ad7309e9.cjs} +1 -1
- package/es/{el-form-item-c3fe189b.cjs → el-form-item-4076e55f.cjs} +1 -1
- package/es/{el-form-item-c53c374d.js → el-form-item-4eca95be.js} +5 -5
- package/es/{el-input-7fd293af.cjs → el-input-172c49f8.cjs} +1 -1
- package/es/{el-input-2f75c4ba.js → el-input-cae60510.js} +49 -49
- package/es/{el-input-number-5193fe6d.js → el-input-number-c2499410.js} +4 -4
- package/es/{el-input-number-22e21d16.cjs → el-input-number-c2e71528.cjs} +1 -1
- package/es/{el-loading-cfd86c15.cjs → el-loading-05826e64.cjs} +1 -1
- package/es/{el-loading-f6022062.js → el-loading-c738468d.js} +1 -1
- package/es/{el-menu-item-17dc717e.cjs → el-menu-item-7f986598.cjs} +1 -1
- package/es/{el-menu-item-7e881203.js → el-menu-item-f904f685.js} +4 -4
- package/es/{el-message-e544a8f5.js → el-message-0df23ae7.js} +5 -5
- package/es/{el-message-5e6a6be9.cjs → el-message-a86c0efa.cjs} +1 -1
- package/es/{el-message-box-a93d2f6a.js → el-message-box-05d8cf39.js} +9 -9
- package/es/{el-message-box-c10adb52.cjs → el-message-box-40ff2af5.cjs} +1 -1
- package/es/{el-overlay-09ad71cd.js → el-overlay-cc9bc792.js} +18 -18
- package/es/{el-overlay-9e34965f.cjs → el-overlay-d7a6e4a9.cjs} +1 -1
- package/es/{el-popconfirm-70a976bf.cjs → el-popconfirm-737a015b.cjs} +1 -1
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-a6f66a0e.js} +4 -4
- package/es/{el-popper-b6c99b28.cjs → el-popper-7ba87e05.cjs} +1 -1
- package/es/{el-popper-b4f97157.js → el-popper-a38874f4.js} +1 -1
- package/es/{el-segmented-f8fce9ac.cjs → el-segmented-3fd66a0e.cjs} +1 -1
- package/es/{el-segmented-b868d074.js → el-segmented-51b1c797.js} +2 -2
- package/es/{el-select-d8d91db1.cjs → el-select-12f6deb7.cjs} +1 -1
- package/es/{el-select-95627997.js → el-select-1b149fab.js} +8 -8
- package/es/{el-table-column-376cd907.js → el-table-column-3e30ebae.js} +9 -9
- package/es/{el-table-column-c974cb96.cjs → el-table-column-516a0ed9.cjs} +1 -1
- package/es/{el-tag-66cab138.js → el-tag-0a25efdf.js} +2 -2
- package/es/{el-tag-a33c4b22.cjs → el-tag-789f05d3.cjs} +1 -1
- package/es/{el-text-c20a9f48.cjs → el-text-1470de46.cjs} +1 -1
- package/es/{el-text-ac60d0f2.js → el-text-73d899ff.js} +1 -1
- package/es/{index-d725fef6.cjs → index-2375023e.cjs} +138 -137
- package/es/{index-f967d6c1.cjs → index-269b22da.cjs} +1 -1
- package/es/{index-1f7d4f70.js → index-4194c942.js} +1 -1
- package/es/{index-e5566b94.js → index-42e59bf5.js} +1 -1
- package/es/{index-c108567d.cjs → index-4f48940d.cjs} +1 -1
- package/es/{index-d91dc23f.js → index-54d289d1.js} +2 -2
- package/es/{index-844bdd85.js → index-6806997d.js} +2 -2
- package/es/{index-f3562b52.cjs → index-696b6a94.cjs} +1 -1
- package/es/{index-88546436.js → index-6e967429.js} +2 -2
- package/es/{index-a871c3eb.js → index-87b4bf61.js} +75 -60
- package/es/{index-298075cf.cjs → index-8de94a49.cjs} +1 -1
- package/es/{index-57672682.js → index-94e43e0d.js} +2 -2
- package/es/{index-bc8e277e.js → index-ac98a4d8.js} +12827 -12573
- package/es/{index-11547a0c.cjs → index-c04f444f.cjs} +1 -1
- package/es/{index-098c2447.cjs → index-cebc7160.cjs} +1 -1
- package/es/{index-9b9ef5dd.cjs → index-ee977f79.cjs} +1 -1
- package/es/{python-ecde9ff2.js → python-a914569a.js} +39 -11
- package/es/{python-c27ba105.cjs → python-c67c8901.cjs} +2 -2
- package/es/style.css +1 -1
- package/es/{use-form-common-props-fd9b61a0.cjs → use-form-common-props-344056f9.cjs} +1 -1
- package/es/{use-form-common-props-815d48a6.js → use-form-common-props-47e50c10.js} +28 -28
- package/es/{use-global-config-30d7d8ce.cjs → use-global-config-cf78ebac.cjs} +1 -1
- package/es/{use-global-config-b5e9d3d5.js → use-global-config-f52caea0.js} +4 -4
- package/es/{validator-1b8a6128.cjs → validator-3cad04b2.cjs} +1 -1
- package/es/{validator-764a9db0.js → validator-94c04152.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-4921961d.js} +1 -1
- package/es/{zh-cn-90317f62.cjs → zh-cn-aabfaa94.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +227 -225
- package/lib/{index-170fa58f.js → index-c6d17ca2.js} +31989 -31621
- package/lib/{python-396c99dc.js → python-09a6fcf8.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -1
- package/packages/MonacoEditor/index.vue +741 -70
- package/packages/VarietySearch/components/AddTag/index.vue +20 -86
- package/packages/VarietySearch/components/FactorScreen/index.vue +80 -12
- package/packages/VarietySearch/components/FactorScreen/tools.js +41 -0
- package/src/main.ts +16 -11
- package/src/pages/MonacoEditor/index.vue +1 -0
package/es/VarSelectDialog.js
CHANGED
|
@@ -1,93 +1,37 @@
|
|
|
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-6a80e3d8.js";
|
|
3
|
+
import "./el-overlay-cc9bc792.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-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
|
|
12
|
-
import { c as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
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-
|
|
24
|
-
import "./index-
|
|
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-
|
|
28
|
-
import "./index-
|
|
29
|
-
import "./index-
|
|
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 "./
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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(
|
|
100
|
-
const
|
|
101
|
-
var
|
|
102
|
-
return ((
|
|
103
|
-
}),
|
|
104
|
-
const
|
|
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:
|
|
107
|
-
value:
|
|
50
|
+
label: C.trim(),
|
|
51
|
+
value: m.trim()
|
|
108
52
|
};
|
|
109
|
-
}),
|
|
110
|
-
const
|
|
111
|
-
for (let
|
|
112
|
-
const
|
|
113
|
-
switch (console.log(
|
|
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
|
-
|
|
59
|
+
a.push(l.param);
|
|
116
60
|
break;
|
|
117
61
|
}
|
|
118
62
|
default: {
|
|
119
|
-
if (!
|
|
120
|
-
return
|
|
121
|
-
let e =
|
|
122
|
-
|
|
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 (!
|
|
128
|
-
return
|
|
129
|
-
const
|
|
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 (
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
const
|
|
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
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
lineNumber:
|
|
143
|
-
column:
|
|
144
|
-
}),
|
|
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:
|
|
149
|
-
|
|
150
|
-
}),
|
|
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: (
|
|
157
|
-
|
|
100
|
+
open: (n) => {
|
|
101
|
+
b.value = n, x.value = !0;
|
|
158
102
|
},
|
|
159
103
|
close: () => {
|
|
160
|
-
|
|
104
|
+
x.value = !1;
|
|
161
105
|
}
|
|
162
|
-
}), (
|
|
163
|
-
const
|
|
164
|
-
return
|
|
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:
|
|
167
|
-
"onUpdate:modelValue":
|
|
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:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
modelValue:
|
|
183
|
-
"onUpdate:modelValue":
|
|
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:
|
|
189
|
-
(
|
|
190
|
-
key:
|
|
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
|
-
|
|
199
|
-
|
|
142
|
+
u("div", re, [
|
|
143
|
+
f(i, {
|
|
200
144
|
class: "el-icon--left",
|
|
201
|
-
onClick:
|
|
145
|
+
onClick: a[1] || (a[1] = (e) => x.value = !1)
|
|
202
146
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
147
|
+
default: p(() => [
|
|
148
|
+
f(U(Y))
|
|
205
149
|
]),
|
|
206
150
|
_: 1
|
|
207
151
|
})
|
|
208
152
|
])
|
|
209
153
|
])
|
|
210
154
|
]),
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
|
|
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:
|
|
159
|
+
key: _
|
|
216
160
|
}, [
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
(
|
|
220
|
-
|
|
221
|
-
t.vtype === "text" ? (
|
|
222
|
-
t.vtype === "inputVariety" ? (
|
|
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:
|
|
229
|
-
onChange: (
|
|
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" ? (
|
|
233
|
-
t.prefix ? (
|
|
234
|
-
|
|
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": (
|
|
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 ? (
|
|
184
|
+
t.suffix ? (o(), r("span", de, E(t.suffix), 1)) : h("", !0)
|
|
241
185
|
], 64)) : h("", !0),
|
|
242
|
-
t.vtype === "select" ? (
|
|
186
|
+
t.vtype === "select" ? (o(), g(c, {
|
|
243
187
|
key: 3,
|
|
244
188
|
modelValue: t.modelValue,
|
|
245
|
-
"onUpdate:modelValue": (
|
|
189
|
+
"onUpdate:modelValue": (s) => t.modelValue = s,
|
|
246
190
|
placeholder: t.param,
|
|
247
191
|
clearable: "",
|
|
248
192
|
size: "small"
|
|
249
193
|
}, {
|
|
250
|
-
default:
|
|
251
|
-
(
|
|
252
|
-
key:
|
|
253
|
-
label:
|
|
254
|
-
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
|
-
|
|
204
|
+
v !== e.configList.length - 1 ? (o(), r("span", _e, "_")) : h("", !0)
|
|
261
205
|
], 64))), 256))
|
|
262
206
|
]),
|
|
263
|
-
|
|
207
|
+
f(m, {
|
|
264
208
|
type: "primary",
|
|
265
209
|
plain: "",
|
|
266
210
|
size: "small",
|
|
267
|
-
onClick: (t) =>
|
|
211
|
+
onClick: (t) => q(e.configList)
|
|
268
212
|
}, {
|
|
269
|
-
default:
|
|
213
|
+
default: p(() => [
|
|
270
214
|
Q(" 插入变量 ")
|
|
271
215
|
]),
|
|
272
216
|
_: 2
|
|
273
217
|
}, 1032, ["onClick"]),
|
|
274
|
-
|
|
218
|
+
f(d, {
|
|
275
219
|
effect: "dark",
|
|
276
220
|
placement: "top-start"
|
|
277
221
|
}, {
|
|
278
|
-
content:
|
|
279
|
-
|
|
280
|
-
|
|
222
|
+
content: p(() => [
|
|
223
|
+
u("div", ve, [
|
|
224
|
+
u("span", fe, E(e.tip), 1)
|
|
281
225
|
])
|
|
282
226
|
]),
|
|
283
|
-
default:
|
|
284
|
-
|
|
285
|
-
default:
|
|
286
|
-
|
|
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
|
-
},
|
|
301
|
-
install(
|
|
302
|
-
|
|
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
|
-
|
|
250
|
+
Ye as default
|
|
307
251
|
};
|
|
@@ -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-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-
|
|
3
|
-
import "./el-input-
|
|
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-
|
|
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-
|
|
9
|
+
import "./use-form-common-props-47e50c10.js";
|
|
10
10
|
import "./index-960806da.js";
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
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-
|
|
15
|
+
import "./index-54d289d1.js";
|
|
16
16
|
const N = { class: "variety-auto-complete" }, q = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "label"
|