st-comp 0.0.52 → 0.0.54

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/lib/bundle.js CHANGED
@@ -37801,14 +37801,17 @@ const ts1 = /* @__PURE__ */ Pn(es1, [["__scopeId", "data-v-2ece79b3"]]), ns1 = /
37801
37801
  resetSlide: (k, $, j) => {
37802
37802
  let O = -1, W = -1;
37803
37803
  A.data.forEach((V, r1) => {
37804
- O === -1 && V[0] === k ? O = r1 : O === -1 && new Date(V[0]) > new Date(k) && (O = r1 - 1), W === -1 && V[0] === $ ? W = r1 : W === -1 && new Date(V[0]) > new Date($) && (W = r1 - 1);
37804
+ O === -1 && V[0] === k ? O = r1 : O === -1 && new Date(V[0]) > new Date(k) && (O = r1 - 1), (W === -1 && V[0] === $ || W === -1 && new Date(V[0]) > new Date($)) && (W = r1);
37805
37805
  }), W = W === -1 ? A.data.length - 1 : W, m.setOption({
37806
37806
  dataZoom: [
37807
37807
  {
37808
37808
  show: !0,
37809
37809
  startValue: O,
37810
37810
  endValue: W,
37811
- maxValueSpan: j
37811
+ maxValueSpan: j,
37812
+ textStyle: {
37813
+ color: "#ccc"
37814
+ }
37812
37815
  },
37813
37816
  {
37814
37817
  type: "inside",
@@ -37818,8 +37821,11 @@ const ts1 = /* @__PURE__ */ Pn(es1, [["__scopeId", "data-v-2ece79b3"]]), ns1 = /
37818
37821
  }
37819
37822
  ]
37820
37823
  });
37821
- }
37824
+ },
37822
37825
  // 重置
37826
+ resize: () => {
37827
+ m == null || m.resize();
37828
+ }
37823
37829
  }), (k, $) => (g1(), P1("div", {
37824
37830
  class: "klineSlide",
37825
37831
  ref_key: "slideChartRef",
@@ -37827,7 +37833,7 @@ const ts1 = /* @__PURE__ */ Pn(es1, [["__scopeId", "data-v-2ece79b3"]]), ns1 = /
37827
37833
  }, null, 512));
37828
37834
  }
37829
37835
  });
37830
- const rs1 = /* @__PURE__ */ Pn(ns1, [["__scopeId", "data-v-229af280"]]), as1 = {
37836
+ const rs1 = /* @__PURE__ */ Pn(ns1, [["__scopeId", "data-v-5008746a"]]), as1 = {
37831
37837
  install(e) {
37832
37838
  e.component("st-klineUtils", V71), e.component("st-klineSub", ts1), e.component("st-klineTips", Z71), e.component("st-klineSlide", rs1);
37833
37839
  }