sctj-components 1.0.74 → 1.0.76

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.
@@ -3624,6 +3624,7 @@ const _sfc_main$c = {
3624
3624
  }
3625
3625
  };
3626
3626
  const chartClick = (params) => {
3627
+ console.log("Chart clicked:", params);
3627
3628
  emit("chartClick", params);
3628
3629
  };
3629
3630
  const legendSelectChanged = (params) => {
@@ -4263,7 +4264,7 @@ const _sfc_main$b = {
4263
4264
  }
4264
4265
  };
4265
4266
  const SCTJCommonChart = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2f3b9e13"]]);
4266
- const PieChart_vue_vue_type_style_index_0_scoped_747db0fa_lang = "";
4267
+ const PieChart_vue_vue_type_style_index_0_scoped_c3a3e060_lang = "";
4267
4268
  const _hoisted_1$9 = ["element-loading-background"];
4268
4269
  const _sfc_main$a = {
4269
4270
  __name: "PieChart",
@@ -4318,7 +4319,8 @@ const _sfc_main$a = {
4318
4319
  default: () => []
4319
4320
  }
4320
4321
  },
4321
- setup(__props) {
4322
+ emits: ["chartClick"],
4323
+ setup(__props, { emit }) {
4322
4324
  const props = __props;
4323
4325
  const baseChart = ref$1(null);
4324
4326
  const resizeObserver = ref$1(null);
@@ -4373,6 +4375,9 @@ const _sfc_main$a = {
4373
4375
  color: "#000"
4374
4376
  };
4375
4377
  });
4378
+ const handleChartClick = (params) => {
4379
+ emit("chartClick", params);
4380
+ };
4376
4381
  const loadingColor = computed$1(() => {
4377
4382
  return props.mode === "dark" ? "rgba(25, 70, 144, .9)" : "rgba(255, 255, 255, .9)";
4378
4383
  });
@@ -4491,6 +4496,7 @@ const _sfc_main$a = {
4491
4496
  class: "card-body"
4492
4497
  }, [
4493
4498
  createVNode(_sfc_main$c, {
4499
+ onChartClick: handleChartClick,
4494
4500
  ref_key: "baseChart",
4495
4501
  ref: baseChart,
4496
4502
  option: unref(chartOption),
@@ -4505,7 +4511,7 @@ const _sfc_main$a = {
4505
4511
  };
4506
4512
  }
4507
4513
  };
4508
- const SCTJPieChart = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-747db0fa"]]);
4514
+ const SCTJPieChart = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-c3a3e060"]]);
4509
4515
  const generateShortId = () => {
4510
4516
  return Math.random().toString(36).substring(2, 8);
4511
4517
  };