halo-pc 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Article-DASEvkfO.js +194 -0
- package/dist/{ArticleFooter-BFYDplbW.js → ArticleFooter-BSesl8iy.js} +17 -24
- package/dist/{Autocomplete-CIXGPZaG.js → Autocomplete-ClAQY5V5.js} +1 -1
- package/dist/Autocomplete-CzfOoMve.js +48 -0
- package/dist/Autocomplete-DToic2Cg.js +49 -0
- package/dist/{CSharp-BGzxI5QJ.js → CSharp-23QccebX.js} +1 -1
- package/dist/{Calender-DkBPl9bM.js → Calender-DZkQaIeV.js} +3 -3
- package/dist/Callback-CWBDUe_C.js +20 -0
- package/dist/Cascader-BDfFyqiv.js +41 -0
- package/dist/Cascader-CpD_hbhQ.js +81 -0
- package/dist/Checkbox--gCBkIuI.js +70 -0
- package/dist/{Checkbox-CuRjXSPc.js → Checkbox-SLi7MK1r.js} +1 -1
- package/dist/Code-BVTjF5rW.js +54 -0
- package/dist/{Code-BlwPnx9J.js → Code-C4hdU4t4.js} +1 -1
- package/dist/Code-CO4WPAe_.js +4 -0
- package/dist/Code-nrn4wOhB.js +36 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-BgAnkZ3j.js +59 -0
- package/dist/Column-DcMAu4JL.js +68 -0
- package/dist/Comment-CPxVIapg.js +98 -0
- package/dist/Compare-C2oFy0EZ.js +56 -0
- package/dist/Compare-P9zOBC1v.js +26 -0
- package/dist/Copy-B5vrho98.js +43 -0
- package/dist/Custom-BETJLilj.js +51 -0
- package/dist/{DataExport-C0jItlVY.js → DataExport-YTc4EX6l.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dx7mLyuz.js → DataExport.vue_vue_type_script_setup_true_lang-amvVzv4A.js} +34 -40
- package/dist/{DataImport-BfBkneEy.js → DataImport-ByV8MQkV.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-C9qjFakZ.js → DataImport.vue_vue_type_script_setup_true_lang-CYwCKg5Z.js} +61 -66
- package/dist/{Date-B8b9JXpP.js → Date-DbTzQla9.js} +1 -1
- package/dist/Date-DpiWNuFs.js +37 -0
- package/dist/DateRange-Su0Q2cwY.js +57 -0
- package/dist/{DateTime-DjhuyxFC.js → DateTime-C3NrioJi.js} +1 -1
- package/dist/DateTime-QyKfqaVG.js +38 -0
- package/dist/{DateTimeRange-D01wtitk.js → DateTimeRange-lytkhCjC.js} +11 -18
- package/dist/Daterange-D7ZHkOmo.js +57 -0
- package/dist/{Decimal-DqMMTfvl.js → Decimal-CTTT98BQ.js} +1 -1
- package/dist/Delete-MfXy7gUi.js +56 -0
- package/dist/{Detail-C-OFWPso.js → Detail-CUiSzyT7.js} +16 -23
- package/dist/Dictionary-Dd_IU-Hn.js +55 -0
- package/dist/Email-BzN4JpJv.js +48 -0
- package/dist/{File-C2fLmTcj.js → File-Ckh37Ne2.js} +42 -49
- package/dist/Image-Dkd69DoD.js +9 -0
- package/dist/Index-CGJLRExG.js +4 -0
- package/dist/Index-CLzHDG05.js +4 -0
- package/dist/Index-DJJcNPgN.js +173 -0
- package/dist/{Index-B90giDWQ.js → Index-DlrpDUD3.js} +1 -1
- package/dist/Index-DxvVjg9S.js +70 -0
- package/dist/{Index-CQURvmzd.js → Index-G36KYPCK.js} +1 -1
- package/dist/Index-dTIwhIau.js +4 -0
- package/dist/{Index-D7DerkIw.js → Index-x4c71OJZ.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-DZdvfweh.js → Index.vue_vue_type_script_setup_true_lang-8g0L1e0O.js} +16 -23
- package/dist/{Index.vue_vue_type_script_setup_true_lang-B93cecQQ.js → Index.vue_vue_type_script_setup_true_lang-oQyBcgPa.js} +16 -23
- package/dist/{Index.vue_vue_type_style_index_0_lang-DYwz3Eu2.js → Index.vue_vue_type_style_index_0_lang-DVYceMeD.js} +30 -36
- package/dist/{Install-Cqj44p9F.js → Install-BW_ulT9I.js} +20 -27
- package/dist/Int-BRqYiJo7.js +41 -0
- package/dist/{Int-Bj3Gagp5.js → Int-BYSjwPG_.js} +9 -16
- package/dist/List-DAFqVlam.js +73 -0
- package/dist/Maintaince-B8mM4PEp.js +14 -0
- package/dist/{Markdown-COY9enBf.js → Markdown-BXKlgSON.js} +1 -1
- package/dist/Month-BHvq72xE.js +37 -0
- package/dist/Month-BiW1DL44.js +38 -0
- package/dist/{Month-B7jIGlKI.js → Month-DKeTzNrD.js} +1 -1
- package/dist/{Normal-B8YL2DeI.js → Normal-CgSREifM.js} +52 -58
- package/dist/Paging-D02YApLL.js +94 -0
- package/dist/{PagingHeader-c1vaXeWH.js → PagingHeader-DJ7MmfGl.js} +37 -44
- package/dist/{PagingRow-CHDlm8UI.js → PagingRow-BM1GMtrr.js} +21 -28
- package/dist/QueryApi-ChpV_S8J.js +13 -0
- package/dist/{Racebar-ClsuYbRj.js → Racebar-CZlaC5Gm.js} +43 -49
- package/dist/{Radio-C6j5nvI9.js → Radio-BPq3WJa4.js} +1 -1
- package/dist/{Register-BnwfjjXP.js → Register-ByxrZyWq.js} +74 -80
- package/dist/RichText-BtQDAhn9.js +41 -0
- package/dist/{SearchFooter-D10vYX7H.js → SearchFooter-B61gsy3w.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-B3AD4sx-.js → SearchFooter.vue_vue_type_style_index_0_lang-CZv7EteY.js} +1 -1
- package/dist/{SearchForm-BRKHMJRS.js → SearchForm-CLvZoPGQ.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-B-YCROWC.js → SearchForm.vue_vue_type_style_index_0_lang-DnjtHyTb.js} +34 -40
- package/dist/Select-C_afSAvf.js +111 -0
- package/dist/{Select-Z8b2t5QQ.js → Select-DGXJMnE9.js} +19 -26
- package/dist/{Select-BiFIpc5-.js → Select-Nb9K2FMY.js} +1 -1
- package/dist/{Single-DdcVVH9V.js → Single-C-2qA2MU.js} +111 -117
- package/dist/{Statistic-B7niMPBf.js → Statistic-B1K-qIZb.js} +30 -36
- package/dist/{Stock-CRsu1vcy.js → Stock-C560McFR.js} +1 -1
- package/dist/{Stock-xm8v4vDf.js → Stock-_rnn0B8I.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-Cb3jPDk8.js → Stock.vue_vue_type_style_index_0_lang-BEwvRtU6.js} +26 -32
- package/dist/{Switch-BaER4xWy.js → Switch-BadvkLSw.js} +1 -1
- package/dist/{Table-a5uj25Nj.js → Table-B46N43V3.js} +69 -74
- package/dist/{Table-C2dYPoGi.js → Table-Dk48tQ1r.js} +59 -66
- package/dist/Text-CNF204mx.js +53 -0
- package/dist/Text-DblKaz4m.js +52 -0
- package/dist/Text-y-q7UXlg.js +4 -0
- package/dist/Text.vue_vue_type_style_index_0_lang-DtnGWes5.js +53 -0
- package/dist/TextLink-B4Q0zX1K.js +59 -0
- package/dist/{Textarea-DAICkidp.js → Textarea-D1BOQFgK.js} +1 -1
- package/dist/Time-DZQxglEi.js +37 -0
- package/dist/Timeline-8QaD9H_I.js +53 -0
- package/dist/Tree-BUcyK0i_.js +117 -0
- package/dist/{Tree-BwQkDP2T.js → Tree-DVeTdmmL.js} +66 -72
- package/dist/TreeNode-BScAFHPZ.js +37 -0
- package/dist/{Update-BZe92EwV.js → Update-BbU5H_Qf.js} +14 -21
- package/dist/{UpdateChild-DN6pwrUK.js → UpdateChild-BbXuXfOR.js} +19 -26
- package/dist/Upload-C1obfZui.js +146 -0
- package/dist/Upload-CmtHETKR.js +67 -0
- package/dist/UploadApi-2sfpKCMa.js +13 -0
- package/dist/Year-CRd3PkNx.js +41 -0
- package/dist/{Year-2tcz8PDF.js → Year-CTo-9KjE.js} +1 -1
- package/dist/main-65efBfek.js +19835 -0
- package/dist/main.js +53 -54
- package/dist/style.css +1 -1
- package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
- package/esm/coms/partials/PagingRow.vue.d.ts +1 -1
- package/esm/vite.config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/Article-BH4dl6Bf.js +0 -201
- package/dist/Autocomplete-DYxWYClO.js +0 -55
- package/dist/Autocomplete-SOenNkH4.js +0 -54
- package/dist/Callback-B57W83N1.js +0 -27
- package/dist/Cascader-BI6T7N-q.js +0 -88
- package/dist/Cascader-BoN_F8v4.js +0 -48
- package/dist/Checkbox-DdolP6wO.js +0 -77
- package/dist/Code--y8oCkjX.js +0 -43
- package/dist/Code-C48Gf7gU.js +0 -61
- package/dist/Code-DiOQvIZv.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-DlLh3JlB.js +0 -66
- package/dist/Column-BNGw36Iq.js +0 -75
- package/dist/Comment-D37SdQb6.js +0 -105
- package/dist/Compare-C09T8aaU.js +0 -33
- package/dist/Compare-CnnCTG12.js +0 -63
- package/dist/Copy-DNrXXJRQ.js +0 -50
- package/dist/Custom--I04Jyzr.js +0 -58
- package/dist/Date-TKW4HbCJ.js +0 -44
- package/dist/DateRange-JCP1Eokf.js +0 -64
- package/dist/DateTime-DVOVXS_f.js +0 -45
- package/dist/Daterange-CqHXC9JN.js +0 -64
- package/dist/Delete-PcTE_3Cp.js +0 -63
- package/dist/Dictionary-Cfhmc2OQ.js +0 -60
- package/dist/Email-Rj-ZvdfJ.js +0 -55
- package/dist/Image-zgBgvAup.js +0 -9
- package/dist/Index-9fyKz8TT.js +0 -4
- package/dist/Index-CAlWNb2l.js +0 -179
- package/dist/Index-CjFLlnmH.js +0 -4
- package/dist/Index-Cr2WAY6Z.js +0 -76
- package/dist/Index-Izl4chSJ.js +0 -4
- package/dist/Int-dlbcQ6_t.js +0 -47
- package/dist/List-BsAOvgmQ.js +0 -80
- package/dist/Maintaince-DjSvIfbu.js +0 -21
- package/dist/Month-BhNUuzcc.js +0 -44
- package/dist/Month-KDuTRSA0.js +0 -45
- package/dist/Paging-BlFnu-w0.js +0 -100
- package/dist/QueryApi-Bc_kmvgs.js +0 -21
- package/dist/RichText-BImFNkHQ.js +0 -48
- package/dist/Select-f15Y0Ko-.js +0 -118
- package/dist/Text-CMEzogZ8.js +0 -4
- package/dist/Text-CqKE2xDo.js +0 -59
- package/dist/Text-DfqLW_KH.js +0 -60
- package/dist/Text.vue_vue_type_style_index_0_lang-BNpeGb1c.js +0 -60
- package/dist/TextLink-XJurKE8Q.js +0 -66
- package/dist/Time-BmdIHgOY.js +0 -44
- package/dist/Timeline-BOPAiaK-.js +0 -60
- package/dist/Tree-BR8gmBBa.js +0 -123
- package/dist/TreeNode-CdBVgaRW.js +0 -43
- package/dist/Upload-BtErvzEO.js +0 -151
- package/dist/Upload-vPTA8ndw.js +0 -73
- package/dist/UploadApi-CpwS4Kf1.js +0 -21
- package/dist/Year-CVqwpSLR.js +0 -48
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@monaco-editor-BCDRi0Ti.js +0 -258
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/clone-BZn0cTAu.js +0 -134
- package/dist/assets/file-saver-CwlpTZSc.js +0 -74
- package/dist/assets/liquidjs-C-LVcoaY.js +0 -2893
- package/dist/assets/moment-h96o7c8I.js +0 -2578
- package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
- package/dist/assets/state-local-CEworIRt.js +0 -131
- package/dist/assets/underscore-B0BCaBxV.js +0 -1070
- package/dist/assets/underscore.string-DVXD2SZo.js +0 -425
- package/dist/assets/util-deprecate-Dzun97re.js +0 -28
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/dist/main-BS_9gx1M.js +0 -8937
@@ -1,14 +1,8 @@
|
|
1
|
-
import { defineComponent as F, toRefs as
|
2
|
-
import {
|
3
|
-
|
4
|
-
import "./assets/clone-BZn0cTAu.js";
|
5
|
-
import "./assets/file-saver-CwlpTZSc.js";
|
6
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
7
|
-
import "./assets/moment-h96o7c8I.js";
|
8
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
9
|
-
const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), z = [
|
1
|
+
import { defineComponent as F, toRefs as R, ref as T, onMounted as B, openBlock as E, createBlock as G, unref as m, withCtx as P, createElementVNode as A, createTextVNode as V, toDisplayString as b } from "vue";
|
2
|
+
import { w as O, v as K, k as N, n as S } from "./main-65efBfek.js";
|
3
|
+
const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据", -1), q = [
|
10
4
|
j
|
11
|
-
],
|
5
|
+
], U = /* @__PURE__ */ F({
|
12
6
|
__name: "Stock",
|
13
7
|
props: {
|
14
8
|
searchData: {},
|
@@ -21,21 +15,21 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
21
15
|
set: {}
|
22
16
|
},
|
23
17
|
setup(k) {
|
24
|
-
let L = k, { module:
|
18
|
+
let L = k, { module: z, schema: W, table: v, layout: n, next: H, set: f } = R(L), y = null, c = null, p = "#04aa4e", x = "#ff5945", w = T(), u = { history: null, week: null, month: null }, _ = (t) => {
|
25
19
|
let o = N.orderBy(t, (i) => i[n.value.time], !1), e = [], l = [], r = [];
|
26
20
|
for (let i = 0; i < o.length; i++) {
|
27
21
|
let a = o[i];
|
28
22
|
e.push(a[n.value.time]);
|
29
|
-
let
|
30
|
-
l.push([
|
23
|
+
let d = parseFloat(a[n.value.open]), s = parseFloat(a[n.value.close]);
|
24
|
+
l.push([d, s, parseFloat(a[n.value.low]), parseFloat(a[n.value.high])]);
|
31
25
|
let C = {
|
32
26
|
value: parseFloat(a[n.value.volumn]),
|
33
|
-
itemStyle: { color: s >
|
27
|
+
itemStyle: { color: s > d ? p : x }
|
34
28
|
};
|
35
29
|
r.push(C);
|
36
30
|
}
|
37
31
|
return { times: e, values: l, volumes: r };
|
38
|
-
},
|
32
|
+
}, h = (t, o) => {
|
39
33
|
let e = [];
|
40
34
|
for (let l = 0, r = t.values.length; l < r; l++) {
|
41
35
|
if (l < o) {
|
@@ -153,9 +147,9 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
153
147
|
//网格索引,表示使用第2个网格的配置
|
154
148
|
data: t.values,
|
155
149
|
itemStyle: {
|
156
|
-
color:
|
150
|
+
color: p,
|
157
151
|
color0: x,
|
158
|
-
borderColor:
|
152
|
+
borderColor: p,
|
159
153
|
borderColor0: x
|
160
154
|
},
|
161
155
|
markPoint: {
|
@@ -190,7 +184,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
190
184
|
{
|
191
185
|
name: "MA5",
|
192
186
|
type: "line",
|
193
|
-
data:
|
187
|
+
data: h(t, 5),
|
194
188
|
smooth: !0,
|
195
189
|
lineStyle: { width: 1 },
|
196
190
|
itemStyle: { opacity: 0 }
|
@@ -199,7 +193,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
199
193
|
{
|
200
194
|
name: "MA10",
|
201
195
|
type: "line",
|
202
|
-
data:
|
196
|
+
data: h(t, 10),
|
203
197
|
smooth: !0,
|
204
198
|
lineStyle: { width: 1 },
|
205
199
|
itemStyle: { opacity: 0 }
|
@@ -208,7 +202,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
208
202
|
{
|
209
203
|
name: "MA20",
|
210
204
|
type: "line",
|
211
|
-
data:
|
205
|
+
data: h(t, 20),
|
212
206
|
smooth: !0,
|
213
207
|
lineStyle: { width: 1 },
|
214
208
|
itemStyle: { opacity: 0 }
|
@@ -217,7 +211,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
217
211
|
{
|
218
212
|
name: "MA30",
|
219
213
|
type: "line",
|
220
|
-
data:
|
214
|
+
data: h(t, 30),
|
221
215
|
smooth: !0,
|
222
216
|
lineStyle: { width: 1 },
|
223
217
|
itemStyle: { opacity: 0 }
|
@@ -235,7 +229,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
235
229
|
smooth: !0,
|
236
230
|
data: [],
|
237
231
|
areaStyle: {
|
238
|
-
color: new
|
232
|
+
color: new c.graphic.LinearGradient(0, 0, 0, 1, [{
|
239
233
|
offset: 0,
|
240
234
|
color: l
|
241
235
|
}, {
|
@@ -244,7 +238,7 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
244
238
|
}])
|
245
239
|
}
|
246
240
|
};
|
247
|
-
S.theme == "dark" && (r.areaStyle.color = new
|
241
|
+
S.theme == "dark" && (r.areaStyle.color = new c.graphic.LinearGradient(
|
248
242
|
0,
|
249
243
|
0,
|
250
244
|
0,
|
@@ -258,14 +252,14 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
258
252
|
r.data.push(...i), e.series.push(r);
|
259
253
|
}
|
260
254
|
return o && f.value[o.table].forEach((r) => {
|
261
|
-
let i = r[o.time], a = t.times.indexOf(i),
|
255
|
+
let i = r[o.time], a = t.times.indexOf(i), d = t.values[a], s = {
|
262
256
|
coord: [i],
|
263
257
|
itemStyle: { color: null },
|
264
258
|
label: { position: null, offset: null },
|
265
259
|
value: null,
|
266
260
|
symbolRotate: null
|
267
261
|
};
|
268
|
-
r[o.direction] == 1 ? (s.coord.push(
|
262
|
+
r[o.direction] == 1 ? (s.coord.push(d[2] * 0.99), s.value = "买", s.itemStyle.color = "#00c805", s.symbolRotate = 180, s.label.position = "insideBottom", s.label.offset = [0, -5]) : (s.coord.push(d[3] * 1.01), s.value = "卖", s.itemStyle.color = "#ff5000"), e.series[0].markPoint.data.push(s);
|
269
263
|
}), e;
|
270
264
|
}, g = (t) => {
|
271
265
|
let o = 0;
|
@@ -275,28 +269,28 @@ const j = /* @__PURE__ */ A("div", { class: "ha-empty" }, "暂无行情数据",
|
|
275
269
|
}), o / t.length * 100;
|
276
270
|
}, I = (t) => {
|
277
271
|
let o = M(t);
|
278
|
-
|
272
|
+
y || (y = c.init(w.value)), y.setOption(o);
|
279
273
|
let e = t.values, l = e.reverse();
|
280
274
|
u.history = g(e), u.week = g(l.slice(0, 7)), u.month = g(l.slice(0, 30));
|
281
275
|
}, Z = () => {
|
282
276
|
let t = f.value[v.value.name];
|
283
277
|
t.length > 0 && I(_(t));
|
284
278
|
};
|
285
|
-
return
|
286
|
-
|
287
|
-
}), (t, o) => (
|
279
|
+
return B(async () => {
|
280
|
+
c = await O.getECharts(), Z();
|
281
|
+
}), (t, o) => (E(), G(m(K), null, {
|
288
282
|
default: P(() => [
|
289
283
|
A("div", {
|
290
284
|
ref_key: "chartRef",
|
291
285
|
ref: w,
|
292
286
|
class: "chart"
|
293
|
-
},
|
294
|
-
V(" 30日开盘振幅:" + b(
|
287
|
+
}, q, 512),
|
288
|
+
V(" 30日开盘振幅:" + b(m(u).month) + "% 7日开盘振幅:" + b(m(u).week) + "% 历史开盘振幅:" + b(m(u).history) + "% ", 1)
|
295
289
|
]),
|
296
290
|
_: 1
|
297
291
|
}));
|
298
292
|
}
|
299
293
|
});
|
300
294
|
export {
|
301
|
-
|
295
|
+
U as _
|
302
296
|
};
|
@@ -10,7 +10,7 @@ const x = /* @__PURE__ */ u({
|
|
10
10
|
modelValue: { type: [String, Number, Boolean] }
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
let r = f(() => import("./Dictionary-
|
13
|
+
let r = f(() => import("./Dictionary-Dd_IU-Hn.js")), n = a, { schema: m, table: s, field: i, set: d, row: p, modelValue: t } = c(n);
|
14
14
|
return (h, l) => (b(), w(e(r), {
|
15
15
|
schema: e(m),
|
16
16
|
table: e(s),
|
@@ -1,14 +1,9 @@
|
|
1
|
-
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as
|
2
|
-
import {
|
3
|
-
|
4
|
-
import "./assets/underscore.string-DVXD2SZo.js";
|
5
|
-
import "./assets/@monaco-editor-BCDRi0Ti.js";
|
6
|
-
import "./assets/moment-h96o7c8I.js";
|
7
|
-
import "./assets/liquidjs-C-LVcoaY.js";
|
8
|
-
const We = {
|
1
|
+
import { defineComponent as Re, defineAsyncComponent as Se, toRefs as ke, ref as p, onMounted as $e, computed as K, watch as ze, resolveComponent as b, openBlock as f, createElementBlock as z, Fragment as Q, createVNode as R, unref as e, withCtx as v, createTextVNode as Fe, toDisplayString as E, createBlock as F, createCommentVNode as D, renderList as De, createElementVNode as C, normalizeStyle as He, resolveDynamicComponent as qe, nextTick as X } from "vue";
|
2
|
+
import { E as Z, O as Be, c as Ee, U as Ie, q as Me, i as ee, s as I, N as y, $ as M, Y as te, k as N, t as Ne, M as Oe } from "./main-65efBfek.js";
|
3
|
+
const Te = {
|
9
4
|
key: 0,
|
10
5
|
class: "required"
|
11
|
-
},
|
6
|
+
}, We = ["onMouseenter"], Ve = /* @__PURE__ */ C("i", { class: "fa fa-question-circle icon-question" }, null, -1), Ue = { class: "footer-left" }, Ae = { class: "footer-right" }, Pe = /* @__PURE__ */ Re({
|
12
7
|
__name: "Table",
|
13
8
|
props: {
|
14
9
|
route: {},
|
@@ -22,110 +17,110 @@ const We = {
|
|
22
17
|
},
|
23
18
|
emits: ["submit", "change", "row-edit"],
|
24
19
|
setup(le, { expose: ae, emit: oe }) {
|
25
|
-
let ne = Se(() => import("./Index-
|
26
|
-
|
20
|
+
let ne = Se(() => import("./Index-x4c71OJZ.js")), H = oe, re = le, { schema: O, table: l, layout: d, set: s, next: je, route: T, module: S, validateErrors: W } = ke(re), _ = p({ page: 1 }), V = p(), m = p([]), ue = p(!0), k = p(), U = p(), A = p(), j = p(), g = p({ layout: "prev, pager, next", count: 5 }), ie = (t, o, n) => {
|
21
|
+
H("row-edit", t, l.value, n);
|
27
22
|
}, se = (t) => {
|
28
|
-
|
23
|
+
H("submit", t);
|
29
24
|
}, de = (t, o) => {
|
30
25
|
let n = l.value.show[o];
|
31
26
|
return n._headerWidth ? (t.column.realWidth || t.column.width) > n._headerWidth + 20 : !0;
|
32
|
-
},
|
27
|
+
}, me = (t, o) => {
|
33
28
|
let n = t.target.children[0].offsetWidth, u = l.value.show[o];
|
34
29
|
u._headerWidth = n;
|
35
|
-
},
|
36
|
-
|
37
|
-
},
|
38
|
-
|
30
|
+
}, pe = (t, o, n, u, a) => {
|
31
|
+
H("change", t, o, n, u, a);
|
32
|
+
}, L = (t) => s.value[l.value.name].indexOf(t), ce = (t) => {
|
33
|
+
m.value = t;
|
39
34
|
}, fe = async (t, o, n, u, a) => {
|
40
|
-
await Z.setColumnWidth(
|
35
|
+
await Z.setColumnWidth(T.value, a.name, n.property, t);
|
41
36
|
}, ve = (t) => {
|
42
|
-
|
43
|
-
|
37
|
+
Y(t.contentRect.width), X(() => {
|
38
|
+
P(t.contentRect.height);
|
44
39
|
});
|
45
|
-
},
|
40
|
+
}, Y = (t = null) => {
|
46
41
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
47
42
|
t == null && (t = y.getWidth(o)), t <= 690 ? g.value.count = 5 : g.value.count = 7, t <= 300 ? g.value.layout = "pager" : t <= 620 ? g.value.layout = "prev, pager, next" : g.value.layout = "total, prev, pager, next, jumper";
|
48
|
-
},
|
43
|
+
}, P = (t = null) => {
|
49
44
|
let o = y.parentUntil(k.value.$el, ".ha-main-form");
|
50
45
|
t || (t = y.getHeight(o));
|
51
|
-
let n = y.getHeight(
|
52
|
-
|
46
|
+
let n = y.getHeight(U.value), u = y.find(o, ".main-footer"), a = y.getHeight(u), i = t - n - a;
|
47
|
+
j.value = `${i}px`;
|
53
48
|
}, ge = async () => {
|
54
|
-
let t = s.value[l.value.name].length, o =
|
49
|
+
let t = s.value[l.value.name].length, o = I.getDefaultRow(l.value);
|
55
50
|
s.value[l.value.name].push(o);
|
56
51
|
let n = l.value.fields.filter((a) => a.feature != null);
|
57
52
|
for (let a = 0; a < n.length; a++) {
|
58
53
|
let i = n[a];
|
59
|
-
(await
|
54
|
+
(await M.feature.create(i.feature.type)).add(l.value, i, s.value, o);
|
60
55
|
}
|
61
56
|
q(t);
|
62
57
|
let u = te.isBottom(".tree-detail");
|
63
|
-
await
|
58
|
+
await X(() => {
|
64
59
|
u && te.scrollToBottom(".tree-detail");
|
65
60
|
});
|
66
61
|
}, he = async (t = null) => {
|
67
|
-
let o =
|
62
|
+
let o = m.value[0], n = I.getDefaultRow(l.value), u = N.insert(s.value[l.value.name], o, n), a = l.value.fields.filter((i) => i.feature != null);
|
68
63
|
for (let i = 0; i < a.length; i++) {
|
69
64
|
let c = a[i];
|
70
|
-
(await
|
65
|
+
(await M.feature.create(c.feature.type)).insert(l.value, c, s.value, o, n);
|
71
66
|
}
|
72
67
|
q(u), t == null || t(u);
|
73
68
|
}, ye = async () => {
|
74
|
-
let t = l.value.key.name, o =
|
69
|
+
let t = l.value.key.name, o = Ne.clone(m.value, (a) => {
|
75
70
|
a[t] = null, a[`Old_${t}`] = null;
|
76
|
-
}), n = s.value[l.value.name].indexOf(
|
77
|
-
for (let a = 0; a <
|
78
|
-
let i =
|
79
|
-
|
71
|
+
}), n = s.value[l.value.name].indexOf(m.value[0]);
|
72
|
+
for (let a = 0; a < m.value.length; a++) {
|
73
|
+
let i = m.value[a], c = o[a];
|
74
|
+
N.append(s.value[l.value.name], i, c);
|
80
75
|
}
|
81
76
|
let u = l.value.fields.filter((a) => a.feature != null);
|
82
77
|
for (let a = 0; a < u.length; a++) {
|
83
78
|
let i = u[a];
|
84
|
-
(await
|
79
|
+
(await M.feature.create(i.feature.type)).copy(l.value, i, s.value);
|
85
80
|
}
|
86
81
|
q(n);
|
87
82
|
}, _e = () => {
|
88
|
-
|
83
|
+
N.remove(s.value[l.value.name], m.value), m.value = [];
|
89
84
|
}, q = (t) => {
|
90
|
-
let o =
|
85
|
+
let o = Oe.pageCount(t + 1, d.value.pageSize);
|
91
86
|
_.value.page = o;
|
92
87
|
}, we = (t) => {
|
93
88
|
_.value.page = t;
|
94
89
|
}, xe = () => {
|
95
90
|
k.value.$el.querySelector("tbody");
|
96
91
|
};
|
97
|
-
|
98
|
-
|
99
|
-
|
92
|
+
$e(async () => {
|
93
|
+
V.value = await Z.getFieldConfigs(), xe(), Y(), Be.detectLoaded(A, () => {
|
94
|
+
P();
|
100
95
|
});
|
101
96
|
});
|
102
|
-
let be =
|
97
|
+
let be = K(() => {
|
103
98
|
let t = (_.value.page - 1) * d.value.pageSize, o = _.value.page * d.value.pageSize - 1;
|
104
99
|
return s.value[l.value.name].filter((u, a) => a >= t && a <= o);
|
105
|
-
}), Ce =
|
106
|
-
let t = l.value.main ? `/${l.value.name}` : `/${
|
107
|
-
return
|
100
|
+
}), Ce = K(() => {
|
101
|
+
let t = l.value.main ? `/${l.value.name}` : `/${O.value[0].name}/${l.value.name}`;
|
102
|
+
return Ee.getComponent(`${t}/update-child`, "partial", "update-child");
|
108
103
|
});
|
109
|
-
return
|
104
|
+
return ze(W, (t, o) => {
|
110
105
|
let n = t.find((u) => u.table == l.value.name);
|
111
106
|
n != null && (_.value.page = Math.ceil((n.index + 1) / d.value.pageSize));
|
112
107
|
}), ae({ resize: ve }), (t, o) => {
|
113
|
-
const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"),
|
114
|
-
return f(),
|
108
|
+
const n = b("el-table-column"), u = b("el-tooltip"), a = b("el-popover"), i = b("el-form-item"), c = b("el-table"), G = b("el-pagination");
|
109
|
+
return f(), z(Q, null, [
|
115
110
|
R(c, {
|
116
111
|
ref_key: "tableRef",
|
117
112
|
ref: k,
|
118
113
|
class: "ha-table-layout table-default",
|
119
114
|
size: "small",
|
120
115
|
border: "",
|
121
|
-
"max-height": e(
|
116
|
+
"max-height": e(j),
|
122
117
|
data: e(be),
|
123
118
|
onRowClick: o[0] || (o[0] = (r, h, w) => e(ie)(r, h, w)),
|
124
119
|
onSelectionChange: e(ce),
|
125
|
-
onHeaderDragend: o[1] || (o[1] = (r, h, w,
|
120
|
+
onHeaderDragend: o[1] || (o[1] = (r, h, w, $) => e(fe)(r, h, w, $, e(l)))
|
126
121
|
}, {
|
127
122
|
empty: v(() => [
|
128
|
-
Fe(
|
123
|
+
Fe(E(e(Ie)("common.no_data")), 1)
|
129
124
|
]),
|
130
125
|
default: v(() => [
|
131
126
|
e(ue) ? (f(), F(n, {
|
@@ -133,19 +128,19 @@ const We = {
|
|
133
128
|
type: "selection",
|
134
129
|
width: "40",
|
135
130
|
fixed: ""
|
136
|
-
})) :
|
137
|
-
(f(!0),
|
138
|
-
var w,
|
131
|
+
})) : D("", !0),
|
132
|
+
(f(!0), z(Q, null, De(e(l).show, (r, h) => {
|
133
|
+
var w, $, J;
|
139
134
|
return f(), F(n, {
|
140
135
|
key: r.name,
|
141
136
|
"show-overflow-tooltip": "",
|
142
137
|
prop: r.name,
|
143
138
|
label: r.label,
|
144
|
-
"min-width": ((
|
139
|
+
"min-width": ((J = ($ = (w = e(V)) == null ? void 0 : w[e(T)]) == null ? void 0 : $[e(l).name]) == null ? void 0 : J[r.name]) ?? r.control.width,
|
145
140
|
fixed: e(d).fixed.length > 0 ? e(d).fixed.indexOf(r.name) > -1 : h == 0
|
146
141
|
}, {
|
147
142
|
header: v((x) => [
|
148
|
-
e(S).type != "Detail" && r.control.required ? (f(),
|
143
|
+
e(S).type != "Detail" && r.control.required ? (f(), z("i", Te, "*")) : D("", !0),
|
149
144
|
R(u, {
|
150
145
|
placement: "top",
|
151
146
|
content: r.label,
|
@@ -153,10 +148,10 @@ const We = {
|
|
153
148
|
}, {
|
154
149
|
default: v(() => [
|
155
150
|
C("span", {
|
156
|
-
onMouseenter: (B) => e(
|
151
|
+
onMouseenter: (B) => e(me)(B, h)
|
157
152
|
}, [
|
158
|
-
C("span", null,
|
159
|
-
], 40,
|
153
|
+
C("span", null, E(e(Me)(e(l).table, r.name)), 1)
|
154
|
+
], 40, We)
|
160
155
|
]),
|
161
156
|
_: 2
|
162
157
|
}, 1032, ["content", "disabled"]),
|
@@ -168,30 +163,30 @@ const We = {
|
|
168
163
|
title: r.control.tooltip.title
|
169
164
|
}, {
|
170
165
|
reference: v(() => [
|
171
|
-
|
166
|
+
Ve
|
172
167
|
]),
|
173
168
|
default: v(() => [
|
174
|
-
C("pre", null,
|
169
|
+
C("pre", null, E(r.control.tooltip.content), 1)
|
175
170
|
]),
|
176
171
|
_: 2
|
177
|
-
}, 1032, ["title"])) :
|
172
|
+
}, 1032, ["title"])) : D("", !0)
|
178
173
|
]),
|
179
174
|
default: v((x) => [
|
180
175
|
R(i, {
|
181
|
-
style:
|
182
|
-
rules: e(
|
183
|
-
prop: `[${e(l).name}][${e(
|
176
|
+
style: He(e(ee).getStyle(r, e(S).type, e(d).type)),
|
177
|
+
rules: e(I).getRules(e(W), e(l), r, x.$index),
|
178
|
+
prop: `[${e(l).name}][${e(L)(x.row)}][${r.name}]`
|
184
179
|
}, {
|
185
180
|
default: v(() => [
|
186
181
|
R(e(ne), {
|
187
|
-
schema: e(
|
182
|
+
schema: e(O),
|
188
183
|
table: e(l),
|
189
184
|
field: r,
|
190
185
|
set: e(s),
|
191
186
|
row: x.row,
|
192
187
|
config: e(ee).getConfig(r, e(S).type, e(d).type),
|
193
188
|
onSubmit: e(se),
|
194
|
-
onChange: (B) => e(
|
189
|
+
onChange: (B) => e(pe)(B, e(s), e(l), r, e(L)(x.row))
|
195
190
|
}, null, 8, ["schema", "table", "field", "set", "row", "config", "onSubmit", "onChange"])
|
196
191
|
]),
|
197
192
|
_: 2
|
@@ -203,28 +198,28 @@ const We = {
|
|
203
198
|
]),
|
204
199
|
_: 1
|
205
200
|
}, 8, ["max-height", "data", "onSelectionChange"]),
|
206
|
-
e(l).main ?
|
201
|
+
e(l).main ? D("", !0) : (f(), z("div", {
|
207
202
|
key: 0,
|
208
203
|
ref_key: "footerRef",
|
209
|
-
ref:
|
204
|
+
ref: U,
|
210
205
|
class: "table-footer"
|
211
206
|
}, [
|
212
|
-
C("div",
|
207
|
+
C("div", Ue, [
|
213
208
|
(f(), F(qe(e(Ce)), {
|
214
209
|
ref_key: "operationRef",
|
215
|
-
ref:
|
210
|
+
ref: A,
|
216
211
|
module: e(S),
|
217
212
|
table: e(l),
|
218
213
|
set: e(s),
|
219
|
-
selection: e(
|
214
|
+
selection: e(m),
|
220
215
|
onAdd: e(ge),
|
221
216
|
onInsert: e(he),
|
222
217
|
onCopy: e(ye),
|
223
218
|
onRemove: e(_e)
|
224
219
|
}, null, 40, ["module", "table", "set", "selection", "onAdd", "onInsert", "onCopy", "onRemove"]))
|
225
220
|
]),
|
226
|
-
C("div",
|
227
|
-
R(
|
221
|
+
C("div", Ae, [
|
222
|
+
R(G, {
|
228
223
|
background: "",
|
229
224
|
layout: e(g).layout,
|
230
225
|
"current-page": e(_).page,
|
@@ -240,5 +235,5 @@ const We = {
|
|
240
235
|
}
|
241
236
|
});
|
242
237
|
export {
|
243
|
-
|
238
|
+
Pe as default
|
244
239
|
};
|