st-comp 0.0.207 → 0.0.208
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +1 -74
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +53 -56
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +45 -48
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +1 -118
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +81 -84
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +161 -164
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +15 -18
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +18 -21
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +140 -143
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +55 -58
- package/es/User.cjs +1 -1
- package/es/User.js +85 -88
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +53 -56
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +15 -17
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +53 -56
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +33 -36
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +103 -106
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
- package/es/_initCloneObject-e660897e.cjs +1 -0
- package/es/base-7ba08794.cjs +5 -0
- package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
- package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
- package/es/castArray-efa457a5.cjs +1 -0
- package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
- package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
- package/es/debounce-4aa22feb.cjs +1 -0
- package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
- package/es/el-autocomplete-609ac86d.cjs +1 -0
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
- package/es/el-button-08310c06.cjs +1 -0
- package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
- package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
- package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
- package/es/el-dialog-ea480083.cjs +1 -0
- package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
- package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
- package/es/el-empty-b40fa7ea.cjs +1 -0
- package/es/el-form-item-338ea2f7.cjs +12 -0
- package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
- package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
- package/es/el-input-b04b5bfc.cjs +1 -0
- package/es/el-input-number-7242c8b5.cjs +1 -0
- package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
- package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
- package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
- package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
- package/es/el-menu-item-7aca344e.cjs +1 -0
- package/es/el-message-05cd85bf.cjs +1 -0
- package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
- package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
- package/es/el-message-box-b7e9917e.cjs +1 -0
- package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
- package/es/el-overlay-60bc5a02.cjs +1 -0
- package/es/el-popconfirm-24b622c5.cjs +1 -0
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
- package/es/el-popper-1dd8f5b4.cjs +1 -0
- package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
- package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
- package/es/el-segmented-a928d89b.cjs +1 -0
- package/es/el-select-5fd77a96.cjs +1 -0
- package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
- package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
- package/es/el-table-column-bf3ab2a6.cjs +14 -0
- package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
- package/es/el-tag-d59f3463.cjs +1 -0
- package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
- package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
- package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
- package/es/{index-88546436.js → index-29418a8d.js} +18 -18
- package/es/index-3d0bc5da.js +566 -0
- package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
- package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
- package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
- package/es/index-a206f6eb.cjs +1 -0
- package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
- package/es/index-b4700d83.cjs +1 -0
- package/es/index-c30cf7f9.cjs +1 -0
- package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
- package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
- package/es/raf-d8c44079.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
- package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-41182853.cjs +1 -0
- package/es/use-form-common-props-4cdda474.js +671 -0
- package/es/use-global-config-7bfbe48c.js +71 -0
- package/es/use-global-config-dc5527e8.cjs +1 -0
- package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
- package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
- package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
- package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
- package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
- package/es/_initCloneObject-52b6a510.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/castArray-35947698.cjs +0 -1
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/el-autocomplete-a07e9439.cjs +0 -1
- package/es/el-button-eec58cff.cjs +0 -1
- package/es/el-dialog-ae86edb8.cjs +0 -1
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-form-item-c3fe189b.cjs +0 -12
- package/es/el-input-7fd293af.cjs +0 -1
- package/es/el-input-number-22e21d16.cjs +0 -1
- package/es/el-menu-item-17dc717e.cjs +0 -1
- package/es/el-message-5e6a6be9.cjs +0 -1
- package/es/el-message-box-c10adb52.cjs +0 -1
- package/es/el-overlay-9e34965f.cjs +0 -1
- package/es/el-popconfirm-70a976bf.cjs +0 -1
- package/es/el-popper-b6c99b28.cjs +0 -1
- package/es/el-segmented-f8fce9ac.cjs +0 -1
- package/es/el-select-d8d91db1.cjs +0 -1
- package/es/el-table-column-c974cb96.cjs +0 -14
- package/es/el-tag-a33c4b22.cjs +0 -1
- package/es/index-098c2447.cjs +0 -1
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9b9ef5dd.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c108567d.cjs +0 -1
- package/es/index-d77a7336.js +0 -204
- package/es/index-e5566b94.js +0 -368
- package/es/index-f3562b52.cjs +0 -1
- package/es/raf-80ef0c0a.js +0 -6
- package/es/use-form-common-props-815d48a6.js +0 -364
- package/es/use-form-common-props-fd9b61a0.cjs +0 -1
- package/es/use-global-config-30d7d8ce.cjs +0 -1
- package/es/use-global-config-b5e9d3d5.js +0 -72
package/es/VarSelectDialog.js
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { E as
|
|
3
|
-
import "./el-overlay-
|
|
1
|
+
import { f as M, e as O, E as R } from "./base-aa512893.js";
|
|
2
|
+
import { E as W } from "./el-dialog-1d5f5877.js";
|
|
3
|
+
import "./el-overlay-04426e36.js";
|
|
4
4
|
import "./el-tooltip-4ed993c7.js";
|
|
5
|
-
import { E as
|
|
6
|
-
import { E as
|
|
7
|
-
import { E as
|
|
8
|
-
import "./el-tag-
|
|
9
|
-
import { E as
|
|
5
|
+
import { E as G } from "./el-popper-49152708.js";
|
|
6
|
+
import { E as H } from "./el-button-56624e61.js";
|
|
7
|
+
import { E as J } from "./el-input-262851e8.js";
|
|
8
|
+
import "./el-tag-55a172c9.js";
|
|
9
|
+
import { E as K, a as Q } from "./el-select-700f3686.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
|
|
12
|
-
import {
|
|
13
|
-
import { E as le } from "./el-autocomplete-ba808eb6.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 X, onMounted as Y, createBlock as N, Fragment as E, renderList as L, unref as T, createTextVNode as Z, pushScopeId as ee, popScopeId as te } from "vue";
|
|
12
|
+
import { E as le } from "./el-autocomplete-87b7f461.js";
|
|
14
13
|
import { V as oe } from "./index-7ed0999e.js";
|
|
15
14
|
import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
|
|
16
|
-
import { E as j } from "./el-message-
|
|
17
|
-
import "./use-form-common-props-
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./index-d77a7336.js";
|
|
15
|
+
import { E as j } from "./el-message-416bd265.js";
|
|
16
|
+
import "./use-form-common-props-4cdda474.js";
|
|
17
|
+
import "./index-3d0bc5da.js";
|
|
20
18
|
import "./index-2e331d74.js";
|
|
21
|
-
import "./vnode-
|
|
22
|
-
import "./scroll-
|
|
23
|
-
import "./use-global-config-
|
|
24
|
-
import "./index-e5566b94.js";
|
|
19
|
+
import "./vnode-b62d0045.js";
|
|
20
|
+
import "./scroll-0a48995c.js";
|
|
21
|
+
import "./use-global-config-7bfbe48c.js";
|
|
25
22
|
import "./index-657047bb.js";
|
|
26
23
|
import "./typescript-7ae59c4c.js";
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
29
|
-
import "./index-
|
|
30
|
-
import "./castArray-
|
|
31
|
-
import "./debounce-
|
|
32
|
-
import "./config-provider-
|
|
24
|
+
import "./index-cbbd78b4.js";
|
|
25
|
+
import "./index-66ad0d6a.js";
|
|
26
|
+
import "./index-4e46f96c.js";
|
|
27
|
+
import "./castArray-1eb17278.js";
|
|
28
|
+
import "./debounce-33406a0d.js";
|
|
29
|
+
import "./config-provider-49c17381.js";
|
|
33
30
|
const ae = { class: "variety-auto-complete" }, se = { key: 0 }, ne = { class: "label" }, re = {
|
|
34
31
|
__name: "VarietySelect",
|
|
35
32
|
props: {
|
|
@@ -52,9 +49,9 @@ const ae = { class: "variety-auto-complete" }, se = { key: 0 }, ne = { class: "l
|
|
|
52
49
|
pageSize: 999,
|
|
53
50
|
userId: oe("id"),
|
|
54
51
|
hotSearchFlag: 1
|
|
55
|
-
}, { body: l } = await q.request.post("/common/qt/getFeatureInfosByPage", o), S = l.list.map(({ code:
|
|
56
|
-
label: `${
|
|
57
|
-
value:
|
|
52
|
+
}, { body: l } = await q.request.post("/common/qt/getFeatureInfosByPage", o), S = l.list.map(({ code: i, featureName: r }) => ({
|
|
53
|
+
label: `${i} ${r}`,
|
|
54
|
+
value: i
|
|
58
55
|
}));
|
|
59
56
|
v(S);
|
|
60
57
|
}
|
|
@@ -86,8 +83,8 @@ const ae = { class: "variety-auto-complete" }, se = { key: 0 }, ne = { class: "l
|
|
|
86
83
|
]);
|
|
87
84
|
};
|
|
88
85
|
}
|
|
89
|
-
},
|
|
90
|
-
const
|
|
86
|
+
}, ue = /* @__PURE__ */ F(re, [["__scopeId", "data-v-d433c4b8"]]);
|
|
87
|
+
const ie = (p) => (ee("data-v-e4f6c06a"), p = p(), te(), p), ce = { class: "custom-header" }, pe = { class: "left" }, de = /* @__PURE__ */ ie(() => /* @__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 = {
|
|
91
88
|
__name: "index",
|
|
92
89
|
props: {
|
|
93
90
|
useCase: {
|
|
@@ -97,11 +94,11 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
96
|
setup(p, { expose: U }) {
|
|
100
|
-
const q = A("stConfig"), I = p, _ = $(null), f = $(!1), k = $(null), w = $([]), z =
|
|
97
|
+
const q = A("stConfig"), I = p, _ = $(null), f = $(!1), k = $(null), w = $([]), z = X(() => {
|
|
101
98
|
var o;
|
|
102
99
|
return ((o = w.value.find((l) => l.varName === k.value)) == null ? void 0 : o.formatList) ?? [];
|
|
103
|
-
}), d = (o) => o.replace(/^\[|\]$/g, "").split("],[").map((
|
|
104
|
-
const r =
|
|
100
|
+
}), d = (o) => o.replace(/^\[|\]$/g, "").split("],[").map((i) => {
|
|
101
|
+
const r = i.replace(/\[|\]/g, ""), [B, V] = r.split(",");
|
|
105
102
|
return {
|
|
106
103
|
label: B.trim(),
|
|
107
104
|
value: V.trim()
|
|
@@ -126,25 +123,25 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
126
123
|
}
|
|
127
124
|
if (!_.value)
|
|
128
125
|
return j.error("未检测到编辑器实例");
|
|
129
|
-
const S = l.join("_"),
|
|
126
|
+
const S = l.join("_"), i = _.value.getInstance(), r = i.getPosition(), V = _.value.getValue().split(`
|
|
130
127
|
`);
|
|
131
128
|
if (r.lineNumber <= V.length) {
|
|
132
129
|
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
130
|
let x = S;
|
|
134
131
|
g && g !== " " && !/[\s({[ ]/.test(g) && (x = " " + x), t && t !== " " && !/[\s)}\]]/.test(t) && (x = x + " ");
|
|
135
|
-
const
|
|
136
|
-
V[b] =
|
|
132
|
+
const u = s.substring(0, e) + x + s.substring(e);
|
|
133
|
+
V[b] = u;
|
|
137
134
|
const D = V.join(`
|
|
138
135
|
`);
|
|
139
136
|
_.value.setValue(D);
|
|
140
137
|
const P = r.column + x.length;
|
|
141
|
-
|
|
138
|
+
i.setPosition({
|
|
142
139
|
lineNumber: r.lineNumber,
|
|
143
140
|
column: P
|
|
144
|
-
}),
|
|
141
|
+
}), i.focus();
|
|
145
142
|
}
|
|
146
143
|
};
|
|
147
|
-
return
|
|
144
|
+
return Y(async () => {
|
|
148
145
|
const { body: o } = await q.request.post("/common/conf/queryAllBackVariables", { useCase: I.useCase });
|
|
149
146
|
w.value = o ?? [];
|
|
150
147
|
}), U({
|
|
@@ -160,7 +157,7 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
160
157
|
f.value = !1;
|
|
161
158
|
}
|
|
162
159
|
}), (o, l) => {
|
|
163
|
-
const S =
|
|
160
|
+
const S = K, i = Q, r = R, B = J, V = H, b = G, s = W;
|
|
164
161
|
return a(), N(s, {
|
|
165
162
|
"modal-class": "var-select-dialog",
|
|
166
163
|
modelValue: f.value,
|
|
@@ -178,7 +175,7 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
178
175
|
c("div", ce, [
|
|
179
176
|
c("div", pe, [
|
|
180
177
|
de,
|
|
181
|
-
y(
|
|
178
|
+
y(i, {
|
|
182
179
|
modelValue: k.value,
|
|
183
180
|
"onUpdate:modelValue": l[0] || (l[0] = (e) => k.value = e),
|
|
184
181
|
placeholder: "选择变量",
|
|
@@ -201,7 +198,7 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
201
198
|
onClick: l[1] || (l[1] = (e) => f.value = !1)
|
|
202
199
|
}, {
|
|
203
200
|
default: m(() => [
|
|
204
|
-
y(T(
|
|
201
|
+
y(T(M))
|
|
205
202
|
]),
|
|
206
203
|
_: 1
|
|
207
204
|
})
|
|
@@ -219,39 +216,39 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
219
216
|
(a(!0), n(E, null, L(e.configList, (t, x) => (a(), n(E, null, [
|
|
220
217
|
c("div", ve, [
|
|
221
218
|
t.vtype === "text" ? (a(), n("span", he, C(t.param), 1)) : h("", !0),
|
|
222
|
-
t.vtype === "inputVariety" ? (a(), N(
|
|
219
|
+
t.vtype === "inputVariety" ? (a(), N(ue, {
|
|
223
220
|
key: 1,
|
|
224
221
|
size: "small",
|
|
225
222
|
placeholder: t.param,
|
|
226
223
|
selectClearEnable: !1,
|
|
227
224
|
labelShowEnable: !1,
|
|
228
|
-
onSelect: ({ name:
|
|
229
|
-
onChange: (
|
|
225
|
+
onSelect: ({ name: u, code: D }) => t.modelValue = D,
|
|
226
|
+
onChange: (u) => t.modelValue = u,
|
|
230
227
|
style: { width: "100px" }
|
|
231
228
|
}, null, 8, ["placeholder", "onSelect", "onChange"])) : h("", !0),
|
|
232
229
|
t.vtype === "input" ? (a(), n(E, { key: 2 }, [
|
|
233
230
|
t.prefix ? (a(), n("span", ye, C(t.prefix), 1)) : h("", !0),
|
|
234
231
|
y(B, {
|
|
235
232
|
modelValue: t.modelValue,
|
|
236
|
-
"onUpdate:modelValue": (
|
|
233
|
+
"onUpdate:modelValue": (u) => t.modelValue = u,
|
|
237
234
|
placeholder: t.param,
|
|
238
235
|
size: "small"
|
|
239
236
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
240
237
|
t.suffix ? (a(), n("span", Ve, C(t.suffix), 1)) : h("", !0)
|
|
241
238
|
], 64)) : h("", !0),
|
|
242
|
-
t.vtype === "select" ? (a(), N(
|
|
239
|
+
t.vtype === "select" ? (a(), N(i, {
|
|
243
240
|
key: 3,
|
|
244
241
|
modelValue: t.modelValue,
|
|
245
|
-
"onUpdate:modelValue": (
|
|
242
|
+
"onUpdate:modelValue": (u) => t.modelValue = u,
|
|
246
243
|
placeholder: t.param,
|
|
247
244
|
clearable: "",
|
|
248
245
|
size: "small"
|
|
249
246
|
}, {
|
|
250
247
|
default: m(() => [
|
|
251
|
-
(a(!0), n(E, null, L(d(t.optionsStr), (
|
|
252
|
-
key:
|
|
253
|
-
label:
|
|
254
|
-
value:
|
|
248
|
+
(a(!0), n(E, null, L(d(t.optionsStr), (u) => (a(), N(S, {
|
|
249
|
+
key: u.value,
|
|
250
|
+
label: u.label,
|
|
251
|
+
value: u.value
|
|
255
252
|
}, null, 8, ["label", "value"]))), 128))
|
|
256
253
|
]),
|
|
257
254
|
_: 2
|
|
@@ -267,7 +264,7 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
267
264
|
onClick: (t) => v(e.configList)
|
|
268
265
|
}, {
|
|
269
266
|
default: m(() => [
|
|
270
|
-
|
|
267
|
+
Z(" 插入变量 ")
|
|
271
268
|
]),
|
|
272
269
|
_: 2
|
|
273
270
|
}, 1032, ["onClick"]),
|
|
@@ -283,7 +280,7 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
283
280
|
default: m(() => [
|
|
284
281
|
y(r, null, {
|
|
285
282
|
default: m(() => [
|
|
286
|
-
y(T(
|
|
283
|
+
y(T(O))
|
|
287
284
|
]),
|
|
288
285
|
_: 1
|
|
289
286
|
})
|
|
@@ -297,11 +294,11 @@ const ue = (p) => (X("data-v-e4f6c06a"), p = p(), Y(), p), ce = { class: "custom
|
|
|
297
294
|
}, 8, ["modelValue"]);
|
|
298
295
|
};
|
|
299
296
|
}
|
|
300
|
-
}, Ee = /* @__PURE__ */ F(Se, [["__scopeId", "data-v-e4f6c06a"]]),
|
|
297
|
+
}, Ee = /* @__PURE__ */ F(Se, [["__scopeId", "data-v-e4f6c06a"]]), et = {
|
|
301
298
|
install(p) {
|
|
302
299
|
p.component("st-varSelectDialog", Ee);
|
|
303
300
|
}
|
|
304
301
|
};
|
|
305
302
|
export {
|
|
306
|
-
|
|
303
|
+
et as default
|
|
307
304
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./base-
|
|
1
|
+
"use strict";require("./base-7ba08794.cjs");const f=require("./el-autocomplete-609ac86d.cjs");require("./el-input-b04b5bfc.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-1dd8f5b4.cjs");const e=require("vue"),q=require("./index-8901a38c.cjs"),x=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-form-common-props-41182853.cjs");require("./index-ae6c9d97.cjs");require("./debounce-4aa22feb.cjs");require("./typescript-b63f8e83.cjs");require("./index-d8294b1a.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,c=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/getFeatureInfosByPage",a),h=n.list.map(({code:i,featureName:y})=>({label:`${i} ${y}`,value:i}));l(h)}},m=t=>{s("input",t)},g=({label:t,value:l})=>{const a=t.split(" ").at(-1);s("select",{name:a,code:l}),r.selectClearEnable&&(c.value="")},_=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:c.value,"onUpdate:modelValue":l[0]||(l[0]=n=>c.value=n),clearable:"",size:r.size,placeholder:r.placeholder,"fetch-suggestions":p,onInput:m,onSelect:g,onChange:_,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-03da1466"]]),z={install(o){o.component("st-varietyAutoComplete",V)}};module.exports=z;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { E as S } from "./el-autocomplete-
|
|
3
|
-
import "./el-input-
|
|
1
|
+
import "./base-aa512893.js";
|
|
2
|
+
import { E as S } from "./el-autocomplete-87b7f461.js";
|
|
3
|
+
import "./el-input-262851e8.js";
|
|
4
4
|
import "./el-scrollbar-323542e7.js";
|
|
5
|
-
import "./el-popper-
|
|
6
|
-
import { inject as b, ref as C, openBlock as r, createElementBlock as p, toDisplayString as
|
|
5
|
+
import "./el-popper-49152708.js";
|
|
6
|
+
import { inject as b, ref as C, openBlock as r, createElementBlock as p, toDisplayString as d, createCommentVNode as v, createVNode as V, normalizeStyle as z, withCtx as E, createElementVNode as w } from "vue";
|
|
7
7
|
import { V as I } from "./index-7ed0999e.js";
|
|
8
8
|
import { _ as B } from "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
-
import "./use-form-common-props-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./
|
|
12
|
-
import "./index-844bdd85.js";
|
|
13
|
-
import "./debounce-8d53f4dd.js";
|
|
9
|
+
import "./use-form-common-props-4cdda474.js";
|
|
10
|
+
import "./index-66ad0d6a.js";
|
|
11
|
+
import "./debounce-33406a0d.js";
|
|
14
12
|
import "./typescript-7ae59c4c.js";
|
|
15
|
-
import "./index-
|
|
13
|
+
import "./index-cbbd78b4.js";
|
|
16
14
|
const N = { class: "variety-auto-complete" }, k = {
|
|
17
15
|
key: 0,
|
|
18
16
|
class: "label"
|
|
@@ -27,8 +25,8 @@ const N = { class: "variety-auto-complete" }, k = {
|
|
|
27
25
|
// 选择后是否自动清空值
|
|
28
26
|
},
|
|
29
27
|
emits: ["input", "select", "change"],
|
|
30
|
-
setup(o, { emit:
|
|
31
|
-
const u = b("stConfig"), n =
|
|
28
|
+
setup(o, { emit: m }) {
|
|
29
|
+
const u = b("stConfig"), n = m, s = o, i = C(""), f = async (e, t) => {
|
|
32
30
|
if (e === "" || e === "null")
|
|
33
31
|
t([]);
|
|
34
32
|
else {
|
|
@@ -55,7 +53,7 @@ const N = { class: "variety-auto-complete" }, k = {
|
|
|
55
53
|
return (e, t) => {
|
|
56
54
|
const a = S;
|
|
57
55
|
return r(), p("div", N, [
|
|
58
|
-
o.label ? (r(), p("span", k,
|
|
56
|
+
o.label ? (r(), p("span", k, d(o.label), 1)) : v("", !0),
|
|
59
57
|
V(a, {
|
|
60
58
|
modelValue: i.value,
|
|
61
59
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => i.value = l),
|
|
@@ -69,18 +67,18 @@ const N = { class: "variety-auto-complete" }, k = {
|
|
|
69
67
|
style: z({ width: o.width })
|
|
70
68
|
}, {
|
|
71
69
|
default: E(({ item: l }) => [
|
|
72
|
-
w("div", A,
|
|
70
|
+
w("div", A, d(l.label), 1)
|
|
73
71
|
]),
|
|
74
72
|
_: 1
|
|
75
73
|
}, 8, ["modelValue", "size", "placeholder", "style"])
|
|
76
74
|
]);
|
|
77
75
|
};
|
|
78
76
|
}
|
|
79
|
-
}, F = /* @__PURE__ */ B(q, [["__scopeId", "data-v-03da1466"]]),
|
|
77
|
+
}, F = /* @__PURE__ */ B(q, [["__scopeId", "data-v-03da1466"]]), Q = {
|
|
80
78
|
install(o) {
|
|
81
79
|
o.component("st-varietyAutoComplete", F);
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
82
|
export {
|
|
85
|
-
|
|
83
|
+
Q as default
|
|
86
84
|
};
|