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/User.js
CHANGED
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
import { b as Be,
|
|
2
|
-
import { E as J } from "./el-button-
|
|
3
|
-
import {
|
|
1
|
+
import { b as Be, d as ie, _ as L, E as ue, I as Ee, u as de, s as Me, w as Ae, T as Ce, a5 as Ue, a6 as Ge } from "./base-aa512893.js";
|
|
2
|
+
import { E as J } from "./el-button-56624e61.js";
|
|
3
|
+
import { e as S, n as V, E as Le, O as ze, w as be, F as qe } from "./el-popper-49152708.js";
|
|
4
4
|
import "./el-scrollbar-323542e7.js";
|
|
5
|
-
import { defineComponent as z, ref as y, inject as P, computed as
|
|
6
|
-
import { E as ce, f as $e, u as Ze, r as Qe } from "./index-a871c3eb.js";
|
|
5
|
+
import { defineComponent as z, ref as y, inject as P, computed as k, provide as Q, readonly as Ye, toRef as W, unref as h, watch as He, renderSlot as K, resolveComponent as R, openBlock as C, createBlock as D, withCtx as l, createVNode as t, normalizeProps as Je, guardReactiveProps as je, getCurrentInstance as Pe, createElementBlock as M, normalizeClass as X, createSlots as We, mergeProps as ee, createCommentVNode as oe, nextTick as ce, Fragment as Fe, createElementVNode as ne, withModifiers as H, resolveDynamicComponent as Ze, normalizeStyle as Qe, reactive as A, createTextVNode as T, toDisplayString as Z, withKeys as $e } from "vue";
|
|
7
6
|
import { R as pe, V as Xe, A as xe, K as eo } from "./index-7ed0999e.js";
|
|
8
|
-
import { c as he, E as te } from "./el-dialog-
|
|
9
|
-
import "./el-overlay-
|
|
10
|
-
import { a as le, E as se } from "./el-form-item-
|
|
11
|
-
import { E as re } from "./el-input-
|
|
12
|
-
import { E as Re } from "./el-text-
|
|
13
|
-
import { E as Y } from "./el-message-
|
|
7
|
+
import { c as he, E as te } from "./el-dialog-1d5f5877.js";
|
|
8
|
+
import "./el-overlay-04426e36.js";
|
|
9
|
+
import { a as le, E as se } from "./el-form-item-505c0b70.js";
|
|
10
|
+
import { E as re } from "./el-input-262851e8.js";
|
|
11
|
+
import { E as Re } from "./el-text-ab6bfc40.js";
|
|
12
|
+
import { E as Y } from "./el-message-416bd265.js";
|
|
14
13
|
import { _ as me } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
import { P as
|
|
16
|
-
import { E as oo } from "./index-
|
|
17
|
-
import {
|
|
18
|
-
import { c as lo, E as so, d as ro, a as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { c as _o } from "./castArray-7741a212.js";
|
|
14
|
+
import { P as Te } from "./index-0afedcbd.js";
|
|
15
|
+
import { E as oo } from "./index-66ad0d6a.js";
|
|
16
|
+
import { b as no, d as ke, a as to } from "./use-form-common-props-4cdda474.js";
|
|
17
|
+
import { c as lo, E as so, d as ro, a as Se, C as ao, b as io, e as uo, f as co, g as po, F as mo, L as fo } from "./dropdown-6e7b1df0.js";
|
|
18
|
+
import { a as vo } from "./index-3d0bc5da.js";
|
|
19
|
+
import { c as _o } from "./castArray-1eb17278.js";
|
|
22
20
|
import "./index-2e331d74.js";
|
|
23
|
-
import "./use-global-config-
|
|
24
|
-
import "./index-e5566b94.js";
|
|
21
|
+
import "./use-global-config-7bfbe48c.js";
|
|
25
22
|
import "./index-657047bb.js";
|
|
26
|
-
import "./vnode-
|
|
27
|
-
import "./scroll-
|
|
28
|
-
import "./_initCloneObject-
|
|
23
|
+
import "./vnode-b62d0045.js";
|
|
24
|
+
import "./scroll-0a48995c.js";
|
|
25
|
+
import "./_initCloneObject-c477c74d.js";
|
|
29
26
|
import "./typescript-7ae59c4c.js";
|
|
30
|
-
import "./index-
|
|
31
|
-
import "./config-provider-
|
|
27
|
+
import "./index-cbbd78b4.js";
|
|
28
|
+
import "./config-provider-49c17381.js";
|
|
32
29
|
const wo = Be({
|
|
33
30
|
style: { type: ie([String, Array, Object]) },
|
|
34
31
|
currentTabId: {
|
|
@@ -88,7 +85,7 @@ const wo = Be({
|
|
|
88
85
|
emits: [ye, "entryFocus"],
|
|
89
86
|
setup(e, { emit: c }) {
|
|
90
87
|
var m;
|
|
91
|
-
const s = y((m = e.currentTabId || e.defaultCurrentTabId) != null ? m : null), f = y(!1), u = y(!1), i = y(), { getItems: d } = P(fe, void 0), w =
|
|
88
|
+
const s = y((m = e.currentTabId || e.defaultCurrentTabId) != null ? m : null), f = y(!1), u = y(!1), i = y(), { getItems: d } = P(fe, void 0), w = k(() => [
|
|
92
89
|
{
|
|
93
90
|
outline: "none"
|
|
94
91
|
},
|
|
@@ -124,9 +121,9 @@ const wo = Be({
|
|
|
124
121
|
c("entryFocus", ..._);
|
|
125
122
|
};
|
|
126
123
|
Q(ve, {
|
|
127
|
-
currentTabbedId:
|
|
124
|
+
currentTabbedId: Ye(s),
|
|
128
125
|
loop: W(e, "loop"),
|
|
129
|
-
tabIndex:
|
|
126
|
+
tabIndex: k(() => h(f) ? -1 : 0),
|
|
130
127
|
rovingFocusGroupRef: i,
|
|
131
128
|
rovingFocusGroupRootStyle: w,
|
|
132
129
|
orientation: W(e, "orientation"),
|
|
@@ -136,7 +133,7 @@ const wo = Be({
|
|
|
136
133
|
onBlur: n,
|
|
137
134
|
onFocus: a,
|
|
138
135
|
onMousedown: o
|
|
139
|
-
}),
|
|
136
|
+
}), He(() => e.currentTabId, (_) => {
|
|
140
137
|
s.value = _ ?? null;
|
|
141
138
|
}), no(i, Ie, p);
|
|
142
139
|
}
|
|
@@ -145,18 +142,18 @@ function ho(e, c, m, s, f, u) {
|
|
|
145
142
|
return K(e.$slots, "default");
|
|
146
143
|
}
|
|
147
144
|
var Ro = /* @__PURE__ */ L($o, [["render", ho], ["__file", "roving-focus-group-impl.vue"]]);
|
|
148
|
-
const
|
|
145
|
+
const To = z({
|
|
149
146
|
name: "ElRovingFocusGroup",
|
|
150
147
|
components: {
|
|
151
148
|
ElFocusGroupCollection: go,
|
|
152
149
|
ElRovingFocusGroupImpl: Ro
|
|
153
150
|
}
|
|
154
151
|
});
|
|
155
|
-
function
|
|
152
|
+
function ko(e, c, m, s, f, u) {
|
|
156
153
|
const i = R("el-roving-focus-group-impl"), d = R("el-focus-group-collection");
|
|
157
154
|
return C(), D(d, null, {
|
|
158
155
|
default: l(() => [
|
|
159
|
-
t(i,
|
|
156
|
+
t(i, Je(je(e.$attrs)), {
|
|
160
157
|
default: l(() => [
|
|
161
158
|
K(e.$slots, "default")
|
|
162
159
|
]),
|
|
@@ -166,7 +163,7 @@ function To(e, c, m, s, f, u) {
|
|
|
166
163
|
_: 3
|
|
167
164
|
});
|
|
168
165
|
}
|
|
169
|
-
var So = /* @__PURE__ */ L(
|
|
166
|
+
var So = /* @__PURE__ */ L(To, [["render", ko], ["__file", "roving-focus-group.vue"]]);
|
|
170
167
|
const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No = z({
|
|
171
168
|
name: "ElDropdown",
|
|
172
169
|
components: {
|
|
@@ -174,18 +171,18 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
174
171
|
ElButtonGroup: Do,
|
|
175
172
|
ElScrollbar: oo,
|
|
176
173
|
ElDropdownCollection: so,
|
|
177
|
-
ElTooltip:
|
|
174
|
+
ElTooltip: Le,
|
|
178
175
|
ElRovingFocusGroup: So,
|
|
179
|
-
ElOnlyChild:
|
|
180
|
-
ElIcon:
|
|
181
|
-
ArrowDown:
|
|
176
|
+
ElOnlyChild: ze,
|
|
177
|
+
ElIcon: ue,
|
|
178
|
+
ArrowDown: Ee
|
|
182
179
|
},
|
|
183
180
|
props: ro,
|
|
184
181
|
emits: ["visible-change", "click", "command"],
|
|
185
182
|
setup(e, { emit: c }) {
|
|
186
|
-
const m =
|
|
183
|
+
const m = Pe(), s = de("dropdown"), { t: f } = vo(), u = y(), i = y(), d = y(), w = y(), b = y(null), r = y(null), o = y(!1), a = k(() => ({
|
|
187
184
|
maxHeight: Me(e.maxHeight)
|
|
188
|
-
})), n =
|
|
185
|
+
})), n = k(() => [s.m(F.value)]), p = k(() => _o(e.trigger)), _ = ke().value, g = k(() => e.id || _);
|
|
189
186
|
function v() {
|
|
190
187
|
var E;
|
|
191
188
|
(E = d.value) == null || E.onClose(void 0, 0);
|
|
@@ -228,7 +225,7 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
228
225
|
}
|
|
229
226
|
return Q(ae, {
|
|
230
227
|
contentRef: w,
|
|
231
|
-
role:
|
|
228
|
+
role: k(() => e.role),
|
|
232
229
|
triggerId: g,
|
|
233
230
|
isUsingKeyboard: o,
|
|
234
231
|
onItemEnter: N,
|
|
@@ -307,7 +304,7 @@ function Oo(e, c, m, s, f, u) {
|
|
|
307
304
|
onBeforeShow: e.handleBeforeShowTooltip,
|
|
308
305
|
onShow: e.handleShowTooltip,
|
|
309
306
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
310
|
-
},
|
|
307
|
+
}, We({
|
|
311
308
|
content: l(() => [
|
|
312
309
|
t(r, {
|
|
313
310
|
ref: "scrollbar",
|
|
@@ -413,7 +410,7 @@ const Ko = z({
|
|
|
413
410
|
},
|
|
414
411
|
emits: ["mousedown", "focus", "keydown"],
|
|
415
412
|
setup(e, { emit: c }) {
|
|
416
|
-
const { currentTabbedId: m, loop: s, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d =
|
|
413
|
+
const { currentTabbedId: m, loop: s, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d = ke(), w = y(), b = V((n) => {
|
|
417
414
|
c("mousedown", n);
|
|
418
415
|
}, (n) => {
|
|
419
416
|
e.focusable ? f(h(d)) : n.preventDefault();
|
|
@@ -448,14 +445,14 @@ const Ko = z({
|
|
|
448
445
|
break;
|
|
449
446
|
}
|
|
450
447
|
}
|
|
451
|
-
|
|
448
|
+
ce(() => {
|
|
452
449
|
_e(F);
|
|
453
450
|
});
|
|
454
451
|
}
|
|
455
|
-
}), a =
|
|
452
|
+
}), a = k(() => m.value === h(d));
|
|
456
453
|
return Q(De, {
|
|
457
454
|
rovingFocusGroupItemRef: w,
|
|
458
|
-
tabIndex:
|
|
455
|
+
tabIndex: k(() => h(a) ? 0 : -1),
|
|
459
456
|
handleMousedown: b,
|
|
460
457
|
handleFocus: r,
|
|
461
458
|
handleKeydown: o
|
|
@@ -484,18 +481,18 @@ var Mo = /* @__PURE__ */ L(Ko, [["render", Bo], ["__file", "roving-focus-item.vu
|
|
|
484
481
|
const Ao = z({
|
|
485
482
|
name: "DropdownItemImpl",
|
|
486
483
|
components: {
|
|
487
|
-
ElIcon:
|
|
484
|
+
ElIcon: ue
|
|
488
485
|
},
|
|
489
|
-
props:
|
|
486
|
+
props: Se,
|
|
490
487
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
491
488
|
setup(e, { emit: c }) {
|
|
492
|
-
const m =
|
|
489
|
+
const m = de("dropdown"), { role: s } = P(ae, void 0), { collectionItemRef: f } = P(ao, void 0), { collectionItemRef: u } = P(yo, void 0), {
|
|
493
490
|
rovingFocusGroupItemRef: i,
|
|
494
491
|
tabIndex: d,
|
|
495
492
|
handleFocus: w,
|
|
496
493
|
handleKeydown: b,
|
|
497
494
|
handleMousedown: r
|
|
498
|
-
} = P(De, void 0), o = he(f, u, i), a =
|
|
495
|
+
} = P(De, void 0), o = he(f, u, i), a = k(() => s.value === "menu" ? "menuitem" : s.value === "navigation" ? "link" : "button"), n = V((p) => {
|
|
499
496
|
if ([S.enter, S.numpadEnter, S.space].includes(p.code))
|
|
500
497
|
return p.preventDefault(), p.stopImmediatePropagation(), c("clickimpl", p), !0;
|
|
501
498
|
}, b);
|
|
@@ -515,7 +512,7 @@ const Ao = z({
|
|
|
515
512
|
});
|
|
516
513
|
function Uo(e, c, m, s, f, u) {
|
|
517
514
|
const i = R("el-icon");
|
|
518
|
-
return C(), M(
|
|
515
|
+
return C(), M(Fe, null, [
|
|
519
516
|
e.divided ? (C(), M("li", {
|
|
520
517
|
key: 0,
|
|
521
518
|
role: "separator",
|
|
@@ -535,7 +532,7 @@ function Uo(e, c, m, s, f, u) {
|
|
|
535
532
|
}), [
|
|
536
533
|
e.icon ? (C(), D(i, { key: 0 }, {
|
|
537
534
|
default: l(() => [
|
|
538
|
-
(C(), D(
|
|
535
|
+
(C(), D(Ze(e.icon)))
|
|
539
536
|
]),
|
|
540
537
|
_: 1
|
|
541
538
|
})) : oe("v-if", !0),
|
|
@@ -545,7 +542,7 @@ function Uo(e, c, m, s, f, u) {
|
|
|
545
542
|
}
|
|
546
543
|
var Go = /* @__PURE__ */ L(Ao, [["render", Uo], ["__file", "dropdown-item-impl.vue"]]);
|
|
547
544
|
const Oe = () => {
|
|
548
|
-
const e = P(Ne, {}), c =
|
|
545
|
+
const e = P(Ne, {}), c = k(() => e == null ? void 0 : e.dropdownSize);
|
|
549
546
|
return {
|
|
550
547
|
elDropdown: e,
|
|
551
548
|
_elDropdownSize: c
|
|
@@ -558,10 +555,10 @@ const Oe = () => {
|
|
|
558
555
|
ElDropdownItemImpl: Go
|
|
559
556
|
},
|
|
560
557
|
inheritAttrs: !1,
|
|
561
|
-
props:
|
|
558
|
+
props: Se,
|
|
562
559
|
emits: ["pointermove", "pointerleave", "click"],
|
|
563
560
|
setup(e, { emit: c, attrs: m }) {
|
|
564
|
-
const { elDropdown: s } = Oe(), f =
|
|
561
|
+
const { elDropdown: s } = Oe(), f = Pe(), u = y(null), i = k(() => {
|
|
565
562
|
var n, p;
|
|
566
563
|
return (p = (n = h(u)) == null ? void 0 : n.textContent) != null ? p : "";
|
|
567
564
|
}), { onItemEnter: d, onItemLeave: w } = P(ae, void 0), b = V((n) => (c("pointermove", n), n.defaultPrevented), be((n) => {
|
|
@@ -583,7 +580,7 @@ const Oe = () => {
|
|
|
583
580
|
return;
|
|
584
581
|
}
|
|
585
582
|
(p = s == null ? void 0 : s.hideOnClick) != null && p.value && ((_ = s.handleClick) == null || _.call(s)), (g = s.commandHandler) == null || g.call(s, e.command, f, n);
|
|
586
|
-
}), a =
|
|
583
|
+
}), a = k(() => ({ ...e, ...m }));
|
|
587
584
|
return {
|
|
588
585
|
handleClick: o,
|
|
589
586
|
handlePointerMove: b,
|
|
@@ -627,14 +624,14 @@ const qo = z({
|
|
|
627
624
|
name: "ElDropdownMenu",
|
|
628
625
|
props: co,
|
|
629
626
|
setup(e) {
|
|
630
|
-
const c =
|
|
627
|
+
const c = de("dropdown"), { _elDropdownSize: m } = Oe(), s = m.value, { focusTrapRef: f, onKeydown: u } = P(qe, void 0), { contentRef: i, role: d, triggerId: w } = P(ae, void 0), { collectionRef: b, getItems: r } = P(po, void 0), {
|
|
631
628
|
rovingFocusGroupRef: o,
|
|
632
629
|
rovingFocusGroupRootStyle: a,
|
|
633
630
|
tabIndex: n,
|
|
634
631
|
onBlur: p,
|
|
635
632
|
onFocus: _,
|
|
636
633
|
onMousedown: g
|
|
637
|
-
} = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I =
|
|
634
|
+
} = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I = k(() => [c.b("menu"), c.bm("menu", s == null ? void 0 : s.value)]), B = he(i, b, f, o, v), F = V((N) => {
|
|
638
635
|
var U;
|
|
639
636
|
(U = e.onKeydown) == null || U.call(e, N);
|
|
640
637
|
}, (N) => {
|
|
@@ -665,7 +662,7 @@ function Yo(e, c, m, s, f, u) {
|
|
|
665
662
|
return C(), M("ul", {
|
|
666
663
|
ref: e.dropdownListWrapperRef,
|
|
667
664
|
class: X(e.dropdownKls),
|
|
668
|
-
style:
|
|
665
|
+
style: Qe(e.rovingFocusGroupRootStyle),
|
|
669
666
|
tabindex: -1,
|
|
670
667
|
role: e.role,
|
|
671
668
|
"aria-labelledby": e.triggerId,
|
|
@@ -681,7 +678,7 @@ var Ke = /* @__PURE__ */ L(qo, [["render", Yo], ["__file", "dropdown-menu.vue"]]
|
|
|
681
678
|
const Ho = Ae(Vo, {
|
|
682
679
|
DropdownItem: Ve,
|
|
683
680
|
DropdownMenu: Ke
|
|
684
|
-
}), Jo =
|
|
681
|
+
}), Jo = Ce(Ve), jo = Ce(Ke);
|
|
685
682
|
const Wo = { class: "mobile" }, Zo = {
|
|
686
683
|
key: 0,
|
|
687
684
|
class: "get-button disabled"
|
|
@@ -731,11 +728,11 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
731
728
|
};
|
|
732
729
|
return (n, p) => {
|
|
733
730
|
const _ = Re, g = J, v = re, I = le, B = se, F = te;
|
|
734
|
-
return C(), M(
|
|
731
|
+
return C(), M(Fe, null, [
|
|
735
732
|
ne("div", Wo, [
|
|
736
733
|
h(m).mobile ? (C(), D(_, { key: 0 }, {
|
|
737
734
|
default: l(() => [
|
|
738
|
-
|
|
735
|
+
T(Z(h(m).mobile), 1)
|
|
739
736
|
]),
|
|
740
737
|
_: 1
|
|
741
738
|
})) : oe("", !0),
|
|
@@ -744,7 +741,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
744
741
|
onClick: o
|
|
745
742
|
}, {
|
|
746
743
|
default: l(() => [
|
|
747
|
-
|
|
744
|
+
T(Z(h(m).mobile ? "更换手机号" : "立即绑定"), 1)
|
|
748
745
|
]),
|
|
749
746
|
_: 1
|
|
750
747
|
})
|
|
@@ -764,7 +761,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
764
761
|
onClick: p[2] || (p[2] = ($) => s.value = !1)
|
|
765
762
|
}, {
|
|
766
763
|
default: l(() => [
|
|
767
|
-
|
|
764
|
+
T(" 取消 ")
|
|
768
765
|
]),
|
|
769
766
|
_: 1
|
|
770
767
|
}),
|
|
@@ -773,7 +770,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
773
770
|
onClick: a
|
|
774
771
|
}, {
|
|
775
772
|
default: l(() => [
|
|
776
|
-
|
|
773
|
+
T(" 确认 ")
|
|
777
774
|
]),
|
|
778
775
|
_: 1
|
|
779
776
|
})
|
|
@@ -891,7 +888,7 @@ const en = {
|
|
|
891
888
|
onClick: r[2] || (r[2] = (v) => f.value = !1)
|
|
892
889
|
}, {
|
|
893
890
|
default: l(() => [
|
|
894
|
-
|
|
891
|
+
T(" 取消 ")
|
|
895
892
|
]),
|
|
896
893
|
_: 1
|
|
897
894
|
}),
|
|
@@ -900,7 +897,7 @@ const en = {
|
|
|
900
897
|
onClick: w
|
|
901
898
|
}, {
|
|
902
899
|
default: l(() => [
|
|
903
|
-
|
|
900
|
+
T(" 确认 ")
|
|
904
901
|
]),
|
|
905
902
|
_: 1
|
|
906
903
|
})
|
|
@@ -918,7 +915,7 @@ const en = {
|
|
|
918
915
|
default: l(() => [
|
|
919
916
|
t(o, null, {
|
|
920
917
|
default: l(() => [
|
|
921
|
-
|
|
918
|
+
T(Z(h(s).username), 1)
|
|
922
919
|
]),
|
|
923
920
|
_: 1
|
|
924
921
|
})
|
|
@@ -993,7 +990,7 @@ const nn = {
|
|
|
993
990
|
Object.assign(d, {
|
|
994
991
|
newPassword: "",
|
|
995
992
|
newPassword2: ""
|
|
996
|
-
}), u.value = !0,
|
|
993
|
+
}), u.value = !0, ce(() => {
|
|
997
994
|
var o, a;
|
|
998
995
|
(o = w.newPassword) != null && o.length || (w.newPassword = (a = m.value) == null ? void 0 : a.ruleFormPassword);
|
|
999
996
|
});
|
|
@@ -1015,7 +1012,7 @@ const nn = {
|
|
|
1015
1012
|
onClick: a[6] || (a[6] = (I) => u.value = !1)
|
|
1016
1013
|
}, {
|
|
1017
1014
|
default: l(() => [
|
|
1018
|
-
|
|
1015
|
+
T(" 取消 ")
|
|
1019
1016
|
]),
|
|
1020
1017
|
_: 1
|
|
1021
1018
|
}),
|
|
@@ -1024,7 +1021,7 @@ const nn = {
|
|
|
1024
1021
|
onClick: a[7] || (a[7] = (I) => r(i.value))
|
|
1025
1022
|
}, {
|
|
1026
1023
|
default: l(() => [
|
|
1027
|
-
|
|
1024
|
+
T(" 确认 ")
|
|
1028
1025
|
]),
|
|
1029
1026
|
_: 1
|
|
1030
1027
|
})
|
|
@@ -1039,7 +1036,7 @@ const nn = {
|
|
|
1039
1036
|
"hide-required-asterisk": "",
|
|
1040
1037
|
"validate-on-rule-change": !1,
|
|
1041
1038
|
onSubmit: a[4] || (a[4] = H((I) => r(i.value), ["prevent"])),
|
|
1042
|
-
onKeyup: a[5] || (a[5] =
|
|
1039
|
+
onKeyup: a[5] || (a[5] = $e((I) => r(i.value), ["enter", "native"]))
|
|
1043
1040
|
}, {
|
|
1044
1041
|
default: l(() => [
|
|
1045
1042
|
t(p, {
|
|
@@ -1057,7 +1054,7 @@ const nn = {
|
|
|
1057
1054
|
}),
|
|
1058
1055
|
onBlur: a[2] || (a[2] = (I) => b.value = !1)
|
|
1059
1056
|
}, null, 8, ["modelValue"]),
|
|
1060
|
-
t(
|
|
1057
|
+
t(Te, {
|
|
1061
1058
|
ref_key: "PasswordPromptRef",
|
|
1062
1059
|
ref: m,
|
|
1063
1060
|
value: d.newPassword,
|
|
@@ -1121,7 +1118,7 @@ const tn = {
|
|
|
1121
1118
|
password: "",
|
|
1122
1119
|
newPassword: "",
|
|
1123
1120
|
newPassword2: ""
|
|
1124
|
-
}), f.value = !0,
|
|
1121
|
+
}), f.value = !0, ce(() => {
|
|
1125
1122
|
var r, o;
|
|
1126
1123
|
(r = d.newPassword) != null && r.length || (d.newPassword = (o = s.value) == null ? void 0 : o.ruleFormPassword);
|
|
1127
1124
|
});
|
|
@@ -1143,7 +1140,7 @@ const tn = {
|
|
|
1143
1140
|
onClick: o[7] || (o[7] = (v) => f.value = !1)
|
|
1144
1141
|
}, {
|
|
1145
1142
|
default: l(() => [
|
|
1146
|
-
|
|
1143
|
+
T(" 取消 ")
|
|
1147
1144
|
]),
|
|
1148
1145
|
_: 1
|
|
1149
1146
|
}),
|
|
@@ -1152,7 +1149,7 @@ const tn = {
|
|
|
1152
1149
|
onClick: o[8] || (o[8] = (v) => b(u.value))
|
|
1153
1150
|
}, {
|
|
1154
1151
|
default: l(() => [
|
|
1155
|
-
|
|
1152
|
+
T(" 确认 ")
|
|
1156
1153
|
]),
|
|
1157
1154
|
_: 1
|
|
1158
1155
|
})
|
|
@@ -1167,7 +1164,7 @@ const tn = {
|
|
|
1167
1164
|
"hide-required-asterisk": "",
|
|
1168
1165
|
"validate-on-rule-change": !1,
|
|
1169
1166
|
onSubmit: o[5] || (o[5] = H((v) => b(u.value), ["prevent"])),
|
|
1170
|
-
onKeyup: o[6] || (o[6] =
|
|
1167
|
+
onKeyup: o[6] || (o[6] = $e((v) => b(u.value), ["enter", "native"]))
|
|
1171
1168
|
}, {
|
|
1172
1169
|
default: l(() => [
|
|
1173
1170
|
t(n, {
|
|
@@ -1199,7 +1196,7 @@ const tn = {
|
|
|
1199
1196
|
}),
|
|
1200
1197
|
onBlur: o[3] || (o[3] = (v) => w.value = !1)
|
|
1201
1198
|
}, null, 8, ["modelValue"]),
|
|
1202
|
-
t(
|
|
1199
|
+
t(Te, {
|
|
1203
1200
|
ref_key: "PasswordPromptRef",
|
|
1204
1201
|
ref: s,
|
|
1205
1202
|
value: i.newPassword,
|
|
@@ -1250,7 +1247,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1250
1247
|
eo(r, o), i("loginout");
|
|
1251
1248
|
};
|
|
1252
1249
|
return Q("userData", u), (r, o) => {
|
|
1253
|
-
const a =
|
|
1250
|
+
const a = ue, n = Jo, p = jo, _ = Ho;
|
|
1254
1251
|
return C(), M("div", ln, [
|
|
1255
1252
|
u ? (C(), D(_, {
|
|
1256
1253
|
key: 0,
|
|
@@ -1267,7 +1264,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1267
1264
|
})
|
|
1268
1265
|
}, {
|
|
1269
1266
|
default: l(() => [
|
|
1270
|
-
|
|
1267
|
+
T("设置资料")
|
|
1271
1268
|
]),
|
|
1272
1269
|
_: 1
|
|
1273
1270
|
}),
|
|
@@ -1279,7 +1276,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1279
1276
|
})
|
|
1280
1277
|
}, {
|
|
1281
1278
|
default: l(() => [
|
|
1282
|
-
|
|
1279
|
+
T(" 设置密码 ")
|
|
1283
1280
|
]),
|
|
1284
1281
|
_: 1
|
|
1285
1282
|
})) : (C(), D(n, {
|
|
@@ -1290,13 +1287,13 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1290
1287
|
})
|
|
1291
1288
|
}, {
|
|
1292
1289
|
default: l(() => [
|
|
1293
|
-
|
|
1290
|
+
T(" 修改密码 ")
|
|
1294
1291
|
]),
|
|
1295
1292
|
_: 1
|
|
1296
1293
|
})),
|
|
1297
1294
|
t(n, { onClick: b }, {
|
|
1298
1295
|
default: l(() => [
|
|
1299
|
-
|
|
1296
|
+
T("退出登录")
|
|
1300
1297
|
]),
|
|
1301
1298
|
_: 1
|
|
1302
1299
|
})
|
|
@@ -1308,14 +1305,14 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1308
1305
|
ne("div", sn, [
|
|
1309
1306
|
t(a, { class: "user-msg-icon" }, {
|
|
1310
1307
|
default: l(() => [
|
|
1311
|
-
t(h(
|
|
1308
|
+
t(h(Ue))
|
|
1312
1309
|
]),
|
|
1313
1310
|
_: 1
|
|
1314
1311
|
}),
|
|
1315
1312
|
ne("span", null, Z(u.nickName || u.username), 1),
|
|
1316
1313
|
t(a, { class: "user-msg-arrow" }, {
|
|
1317
1314
|
default: l(() => [
|
|
1318
|
-
t(h(
|
|
1315
|
+
t(h(Ee))
|
|
1319
1316
|
]),
|
|
1320
1317
|
_: 1
|
|
1321
1318
|
})
|
|
@@ -1327,10 +1324,10 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1327
1324
|
class: "user-login",
|
|
1328
1325
|
onClick: w
|
|
1329
1326
|
}, [
|
|
1330
|
-
|
|
1327
|
+
T(" 前往登录 "),
|
|
1331
1328
|
t(a, { class: "user-login-icon" }, {
|
|
1332
1329
|
default: l(() => [
|
|
1333
|
-
t(h(
|
|
1330
|
+
t(h(Ge))
|
|
1334
1331
|
]),
|
|
1335
1332
|
_: 1
|
|
1336
1333
|
})
|
|
@@ -1350,11 +1347,11 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1350
1347
|
]);
|
|
1351
1348
|
};
|
|
1352
1349
|
}
|
|
1353
|
-
}, an = /* @__PURE__ */ me(rn, [["__scopeId", "data-v-f2b88262"]]),
|
|
1350
|
+
}, an = /* @__PURE__ */ me(rn, [["__scopeId", "data-v-f2b88262"]]), An = {
|
|
1354
1351
|
install(e) {
|
|
1355
1352
|
e.component("st-user", an);
|
|
1356
1353
|
}
|
|
1357
1354
|
};
|
|
1358
1355
|
export {
|
|
1359
|
-
|
|
1356
|
+
An as default
|
|
1360
1357
|
};
|
package/es/VarSelectDialog.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";require("./base-
|
|
1
|
+
"use strict";const N=require("./base-7ba08794.cjs"),I=require("./el-dialog-ea480083.cjs");require("./el-overlay-60bc5a02.cjs");require("./el-tooltip-0ea8fbf8.cjs");const D=require("./el-popper-1dd8f5b4.cjs"),L=require("./el-button-08310c06.cjs"),z=require("./el-input-b04b5bfc.cjs");require("./el-tag-d59f3463.cjs");const S=require("./el-select-5fd77a96.cjs");require("./el-scrollbar-bc3f790d.cjs");const e=require("vue"),F=require("./el-autocomplete-609ac86d.cjs"),U=require("./index-8901a38c.cjs"),w=require("./_plugin-vue_export-helper-f246444f.cjs"),q=require("./el-message-05cd85bf.cjs");require("./use-form-common-props-41182853.cjs");require("./index-c30cf7f9.cjs");require("./index-f1c702f6.cjs");require("./vnode-8cb31692.cjs");require("./scroll-19533c53.cjs");require("./use-global-config-dc5527e8.cjs");require("./index-eea0bcb3.cjs");require("./typescript-b63f8e83.cjs");require("./index-d8294b1a.cjs");require("./index-ae6c9d97.cjs");require("./index-a206f6eb.cjs");require("./castArray-efa457a5.cjs");require("./debounce-4aa22feb.cjs");require("./config-provider-18c0a68a.cjs");const j={class:"variety-auto-complete"},A={key:0},M={class:"label"},P={__name:"VarietySelect",props:{size:{type:String,default:"default"},placeholder:{type:String,default:"请输入品种名称或代码"},labelShowEnable:{type:Boolean,default:!0},selectClearEnable:{type:Boolean,default:!0}},emits:["select","change"],setup(u,{emit:B}){const C=e.inject("stConfig"),g=B,d=u,p=e.ref(""),k=async(i,m)=>{if(i===""||i==="null")m([]);else{const n={keyWord:i,pageNum:1,pageSize:999,userId:U.V("id"),hotSearchFlag:1},{body:o}=await C.request.post("/common/qt/getFeatureInfosByPage",n),f=o.list.map(({code:c,featureName:r})=>({label:`${c} ${r}`,value:c}));m(f)}},y=({label:i,value:m})=>{const n=i.split(" ").at(-1);g("select",{name:n,code:m}),d.selectClearEnable&&(p.value="")},x=i=>{g("change",i)};return(i,m)=>{const n=F.ElAutocomplete;return e.openBlock(),e.createElementBlock("div",j,[u.labelShowEnable?(e.openBlock(),e.createElementBlock("span",A,"品种搜索:")):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:p.value,"onUpdate:modelValue":m[0]||(m[0]=o=>p.value=o),clearable:"",size:d.size,placeholder:d.placeholder,"fetch-suggestions":k,onSelect:y,onChange:x},{default:e.withCtx(({item:o})=>[e.createElementVNode("div",M,e.toDisplayString(o.label),1)]),_:1},8,["modelValue","size","placeholder"])])}}},T=w._export_sfc(P,[["__scopeId","data-v-d433c4b8"]]);const O=u=>(e.pushScopeId("data-v-e4f6c06a"),u=u(),e.popScopeId(),u),H={class:"custom-header"},R={class:"left"},W=O(()=>e.createElementVNode("span",null," 选择变量 ",-1)),G={class:"right"},J={class:"custom-body"},K={class:"config-list"},Q={class:"config-item"},X={key:0},Y={key:0},Z={key:1},ee={key:0},te={style:{"max-width":"820px"}},le={style:{"white-space":"pre-line"}},oe={__name:"index",props:{useCase:{type:String,default:"1"}},setup(u,{expose:B}){const C=e.inject("stConfig"),g=u,d=e.ref(null),p=e.ref(!1),k=e.ref(null),y=e.ref([]),x=e.computed(()=>{var n;return((n=y.value.find(o=>o.varName===k.value))==null?void 0:n.formatList)??[]}),i=n=>n.replace(/^\[|\]$/g,"").split("],[").map(c=>{const r=c.replace(/\[|\]/g,""),[b,_]=r.split(",");return{label:b.trim(),value:_.trim()}}),m=n=>{const o=[];for(let V=0;V<n.length;V++){const a=n[V];switch(console.log(a),a.vtype){case"text":{o.push(a.param);break}default:{if(!a.modelValue)return q.ElMessage.error("请检查插入格式内是否填写完整");let t=a.modelValue;a.prefix&&(t=`${a.prefix}${t}`),a.suffix&&(t=`${t}${a.suffix}`),o.push(t);break}}}if(!d.value)return q.ElMessage.error("未检测到编辑器实例");const f=o.join("_"),c=d.value.getInstance(),r=c.getPosition(),_=d.value.getValue().split(`
|
|
2
2
|
`);if(r.lineNumber<=_.length){const V=r.lineNumber-1,a=_[V],t=r.column-1,h=t>0?a[t-1]:"",l=t<a.length?a[t]:"";let v=f;h&&h!==" "&&!/[\s({[ ]/.test(h)&&(v=" "+v),l&&l!==" "&&!/[\s)}\]]/.test(l)&&(v=v+" ");const s=a.substring(0,t)+v+a.substring(t);_[V]=s;const E=_.join(`
|
|
3
|
-
`);d.value.setValue(E);const $=r.column+v.length;c.setPosition({lineNumber:r.lineNumber,column:$}),c.focus()}};return e.onMounted(async()=>{const{body:n}=await C.request.post("/common/conf/queryAllBackVariables",{useCase:g.useCase});y.value=n??[]}),
|
|
3
|
+
`);d.value.setValue(E);const $=r.column+v.length;c.setPosition({lineNumber:r.lineNumber,column:$}),c.focus()}};return e.onMounted(async()=>{const{body:n}=await C.request.post("/common/conf/queryAllBackVariables",{useCase:g.useCase});y.value=n??[]}),B({open:n=>{d.value=n,p.value=!0},close:()=>{p.value=!1}}),(n,o)=>{const f=S.ElOption,c=S.ElSelect,r=N.ElIcon,b=z.ElInput,_=L.ElButton,V=D.ElTooltip,a=I.ElDialog;return e.openBlock(),e.createBlock(a,{"modal-class":"var-select-dialog",modelValue:p.value,"onUpdate:modelValue":o[2]||(o[2]=t=>p.value=t),"align-center":"","append-to-body":"","destroy-on-close":"",draggable:"",overflow:"",modal:!1,"modal-penetrable":!0,"show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",R,[W,e.createVNode(c,{modelValue:k.value,"onUpdate:modelValue":o[0]||(o[0]=t=>k.value=t),placeholder:"选择变量",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(t,h)=>(e.openBlock(),e.createBlock(f,{key:h,label:t.varName,value:t.varName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",G,[e.createVNode(r,{class:"el-icon--left",onClick:o[1]||(o[1]=t=>p.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(N.close_default))]),_:1})])])]),default:e.withCtx(()=>[e.createElementVNode("div",J,[x.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(x.value,(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:"format-item",key:h},[e.createElementVNode("span",null,"格式"+e.toDisplayString(h+1)+":",1),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configList,(l,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Q,[l.vtype==="text"?(e.openBlock(),e.createElementBlock("span",X,e.toDisplayString(l.param),1)):e.createCommentVNode("",!0),l.vtype==="inputVariety"?(e.openBlock(),e.createBlock(T,{key:1,size:"small",placeholder:l.param,selectClearEnable:!1,labelShowEnable:!1,onSelect:({name:s,code:E})=>l.modelValue=E,onChange:s=>l.modelValue=s,style:{width:"100px"}},null,8,["placeholder","onSelect","onChange"])):e.createCommentVNode("",!0),l.vtype==="input"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[l.prefix?(e.openBlock(),e.createElementBlock("span",Y,e.toDisplayString(l.prefix),1)):e.createCommentVNode("",!0),e.createVNode(b,{modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),l.suffix?(e.openBlock(),e.createElementBlock("span",Z,e.toDisplayString(l.suffix),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.vtype==="select"?(e.openBlock(),e.createBlock(c,{key:3,modelValue:l.modelValue,"onUpdate:modelValue":s=>l.modelValue=s,placeholder:l.param,clearable:"",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(l.optionsStr),s=>(e.openBlock(),e.createBlock(f,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):e.createCommentVNode("",!0)]),v!==t.configList.length-1?(e.openBlock(),e.createElementBlock("span",ee,"_")):e.createCommentVNode("",!0)],64))),256))]),e.createVNode(_,{type:"primary",plain:"",size:"small",onClick:l=>m(t.configList)},{default:e.withCtx(()=>[e.createTextVNode(" 插入变量 ")]),_:2},1032,["onClick"]),e.createVNode(V,{effect:"dark",placement:"top-start"},{content:e.withCtx(()=>[e.createElementVNode("div",te,[e.createElementVNode("span",le,e.toDisplayString(t.tip),1)])]),default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(e.unref(N.info_filled_default))]),_:1})]),_:2},1024)]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}},ne=w._export_sfc(oe,[["__scopeId","data-v-e4f6c06a"]]),ae={install(u){u.component("st-varSelectDialog",ne)}};module.exports=ae;
|