@blueking/monitor-alarm-center 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -315631,6 +315631,8 @@ const AlarmTrendChart = /* @__PURE__ */ defineComponent({
315631
315631
  t: t3
315632
315632
  } = useI18n$1();
315633
315633
  const store = useAlarmCenterStore();
315634
+ const handleAlarmTrendChartZoomChange = inject("handleAlarmTrendChartZoomChange", (_2) => {
315635
+ });
315634
315636
  const apiMap = {
315635
315637
  [AlarmType.ALERT]: "alert_v2.alertDateHistogram",
315636
315638
  [AlarmType.ACTION]: "alert_v2.actionDateHistogram",
@@ -315743,6 +315745,8 @@ const AlarmTrendChart = /* @__PURE__ */ defineComponent({
315743
315745
  };
315744
315746
  };
315745
315747
  const handleDataZoomChange = (dataZoom) => {
315748
+ console.log("dataZoom = ", dataZoom);
315749
+ handleAlarmTrendChartZoomChange(dataZoom);
315746
315750
  store.timeRange = dataZoom;
315747
315751
  };
315748
315752
  return {
@@ -316463,6 +316467,11 @@ const AlarmCenter = /* @__PURE__ */ defineComponent({
316463
316467
  if (bridgeProps.queryString) {
316464
316468
  window.APM_QUERY_STRING = bridgeProps.queryString;
316465
316469
  }
316470
+ const handleAlarmTrendChartZoomChange = (v2) => {
316471
+ console.log("handleAlarmTrendChartZoomChange = ", v2);
316472
+ bridgeEmit("alarmTrendChartZoomChange", v2);
316473
+ };
316474
+ provide("handleAlarmTrendChartZoomChange", handleAlarmTrendChartZoomChange);
316466
316475
  const {
316467
316476
  handleGetUserConfig: handleGetResidentSettingUserConfig,
316468
316477
  handleSetUserConfig: handleSetResidentSettingUserConfig
@@ -316583,7 +316592,6 @@ const AlarmCenter = /* @__PURE__ */ defineComponent({
316583
316592
  currentFavorite.value = null;
316584
316593
  });
316585
316594
  watch(bridgeProps, () => {
316586
- console.log("bridgeProps change === ", bridgeProps);
316587
316595
  alarmStore.refreshImmediate = bridgeProps.refreshImmediate;
316588
316596
  alarmStore.refreshInterval = Number(bridgeProps.refreshInterval);
316589
316597
  alarmStore.timeRange = bridgeProps.timeRange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/monitor-alarm-center",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "蓝鲸监控告警中心抽取出来的独立库,主要提供给APM等宿主使用",
5
5
  "scripts": {},
6
6
  "files": [