st-comp 0.0.121 → 0.0.122
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/KlineNew.cjs +1 -1
- package/es/KlineNew.js +246 -224
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-dbad59c9.js → index-62c62885.js} +35 -13
- package/lib/{python-ab788b86.js → python-6cdad7a6.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineNew/components/KlineTips/index.vue +31 -3
|
@@ -65288,6 +65288,18 @@ const UN = /* @__PURE__ */ Er(hst, [["__scopeId", "data-v-2a02e841"]]), fst = {
|
|
|
65288
65288
|
type: Object,
|
|
65289
65289
|
require: !0
|
|
65290
65290
|
},
|
|
65291
|
+
// K线数据
|
|
65292
|
+
// candlestickData: [开, 收, 低, 高, 成交额, 涨跌值, 涨跌百分比]
|
|
65293
|
+
candlestickData: {
|
|
65294
|
+
type: Array,
|
|
65295
|
+
default: () => null
|
|
65296
|
+
},
|
|
65297
|
+
// 主图指标数据
|
|
65298
|
+
// mainIndicatorData: [key, data, color]
|
|
65299
|
+
mainIndicatorData: {
|
|
65300
|
+
type: Array,
|
|
65301
|
+
default: () => null
|
|
65302
|
+
},
|
|
65291
65303
|
activeIndex: {
|
|
65292
65304
|
type: Number,
|
|
65293
65305
|
require: !0
|
|
@@ -65295,18 +65307,28 @@ const UN = /* @__PURE__ */ Er(hst, [["__scopeId", "data-v-2a02e841"]]), fst = {
|
|
|
65295
65307
|
},
|
|
65296
65308
|
setup(n) {
|
|
65297
65309
|
const { round: e, multiply: t, divide: i, subtract: r, formatValue: o } = jf, s = n, a = ee(() => {
|
|
65298
|
-
const { drawData: u, activeIndex: c } = s;
|
|
65299
|
-
if (
|
|
65300
|
-
|
|
65301
|
-
|
|
65302
|
-
{ label: "
|
|
65303
|
-
{ label: "
|
|
65304
|
-
{ label: "
|
|
65310
|
+
const { drawData: u, activeIndex: c, candlestickData: d } = s;
|
|
65311
|
+
if (d != null && d.length && d[c]) {
|
|
65312
|
+
let h;
|
|
65313
|
+
return d[c][6] > 0 ? h = "red" : d[c][6] < 0 && (h = "green"), [
|
|
65314
|
+
{ label: "开", value: e(d[c][0]) },
|
|
65315
|
+
{ label: "高", value: e(d[c][3]) },
|
|
65316
|
+
{ label: "低", value: e(d[c][2]) },
|
|
65317
|
+
{ label: "收", value: e(d[c][1]) },
|
|
65318
|
+
{ label: "额", value: o(d[c][4]) },
|
|
65319
|
+
{ label: "涨跌", value: `${e(d[c][6])}%`, color: h }
|
|
65305
65320
|
];
|
|
65306
|
-
|
|
65307
|
-
const
|
|
65308
|
-
|
|
65309
|
-
|
|
65321
|
+
} else if (u.candlestickData && u.candlestickData[c]) {
|
|
65322
|
+
const h = u.candlestickData[c], f = [
|
|
65323
|
+
{ label: "开", value: e(h[0]) },
|
|
65324
|
+
{ label: "高", value: e(h[3]) },
|
|
65325
|
+
{ label: "低", value: e(h[2]) },
|
|
65326
|
+
{ label: "收", value: e(h[1]) }
|
|
65327
|
+
];
|
|
65328
|
+
h[5] !== void 0 && f.push({ label: "额", value: o(h[5]) });
|
|
65329
|
+
const g = e(t(i(r(h[1], h[4]), Math.abs(h[4])), 100));
|
|
65330
|
+
let p;
|
|
65331
|
+
return g > 0 ? p = "red" : g < 0 && (p = "green"), f.push({ label: "涨跌", value: `${g}%`, color: p }), f;
|
|
65310
65332
|
}
|
|
65311
65333
|
return [];
|
|
65312
65334
|
}), l = ee(() => {
|
|
@@ -65320,7 +65342,7 @@ const UN = /* @__PURE__ */ Er(hst, [["__scopeId", "data-v-2a02e841"]]), fst = {
|
|
|
65320
65342
|
]));
|
|
65321
65343
|
}
|
|
65322
65344
|
});
|
|
65323
|
-
const pst = /* @__PURE__ */ Er(gst, [["__scopeId", "data-v-
|
|
65345
|
+
const pst = /* @__PURE__ */ Er(gst, [["__scopeId", "data-v-234f3f41"]]), mst = { class: "klineSub" }, vst = { class: "klineSub-tips" }, bst = {
|
|
65324
65346
|
key: 0,
|
|
65325
65347
|
class: "klineSub-tips-select"
|
|
65326
65348
|
}, _st = /* @__PURE__ */ Ve({
|
|
@@ -241639,7 +241661,7 @@ hyt({
|
|
|
241639
241661
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
241640
241662
|
aliases: ["Python", "py"],
|
|
241641
241663
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
241642
|
-
loader: () => import("./python-
|
|
241664
|
+
loader: () => import("./python-6cdad7a6.js")
|
|
241643
241665
|
});
|
|
241644
241666
|
const fyt = /* @__PURE__ */ Ve({
|
|
241645
241667
|
__name: "index",
|