chbim-time-axis-v2 0.2.0 → 0.2.2

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.
@@ -11594,7 +11594,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
11594
11594
  ref: containerRef,
11595
11595
  onScroll: handleScroll
11596
11596
  }, [
11597
- _cache[2] || (_cache[2] = createStaticVNode('<div class="headerRow" data-v-28398f25><div class="headerCell" data-v-28398f25>内容</div><div class="headerCell" data-v-28398f25>开始时间</div><div class="headerCell" data-v-28398f25>结束时间</div><div class="headerCell" data-v-28398f25>操作</div></div>', 1)),
11597
+ _cache[2] || (_cache[2] = createStaticVNode('<div class="headerRow" data-v-4b05ed06><div class="headerCell" data-v-4b05ed06>内容</div><div class="headerCell" data-v-4b05ed06>开始时间</div><div class="headerCell" data-v-4b05ed06>结束时间</div><div class="headerCell" data-v-4b05ed06>操作</div></div>', 1)),
11598
11598
  createElementVNode("div", _hoisted_1$2, [
11599
11599
  (openBlock(true), createElementBlock(Fragment, null, renderList(flatTasks.value, (item) => {
11600
11600
  return openBlock(), createElementBlock("div", {
@@ -11618,7 +11618,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
11618
11618
  item.task.type === "group" ? (openBlock(), createElementBlock("span", {
11619
11619
  key: 1,
11620
11620
  style: normalizeStyle([{ "margin-right": "5px", "cursor": "pointer", "width": "1em", "display": "inline-block", "transition": "transform 0.3s" }, {
11621
- transform: !item.task.collapsed ? "rotateZ(-90deg)" : "rotateZ(0deg)"
11621
+ transform: item.task.collapsed ? "rotateZ(-90deg)" : "rotateZ(0deg)"
11622
11622
  }]),
11623
11623
  onClick: withModifiers(($event) => _ctx.$emit("toggle-group", item.task.id), ["stop"])
11624
11624
  }, [..._cache[1] || (_cache[1] = [
@@ -11684,7 +11684,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
11684
11684
  };
11685
11685
  }
11686
11686
  });
11687
- const TaskList_vue_vue_type_style_index_0_scoped_28398f25_lang = "";
11687
+ const TaskList_vue_vue_type_style_index_0_scoped_4b05ed06_lang = "";
11688
11688
  const _export_sfc = (sfc, props) => {
11689
11689
  const target = sfc.__vccOpts || sfc;
11690
11690
  for (const [key, val] of props) {
@@ -11692,7 +11692,7 @@ const _export_sfc = (sfc, props) => {
11692
11692
  }
11693
11693
  return target;
11694
11694
  };
11695
- const TaskList = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-28398f25"]]);
11695
+ const TaskList = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4b05ed06"]]);
11696
11696
  var utc$1 = { exports: {} };
11697
11697
  (function(module, exports) {
11698
11698
  !function(t, i) {
@@ -12422,7 +12422,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
12422
12422
  const flatten = (list, level = 0) => {
12423
12423
  list.forEach((task) => {
12424
12424
  acc.push({ task, level });
12425
- if (task.children) {
12425
+ if (task.children && task.type === "group") {
12426
12426
  flatten(task.children, level + 1);
12427
12427
  }
12428
12428
  });
@@ -12954,8 +12954,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
12954
12954
  };
12955
12955
  }
12956
12956
  });
12957
- const TimelineChart_vue_vue_type_style_index_0_scoped_17f9d135_lang = "";
12958
- const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-17f9d135"]]);
12957
+ const TimelineChart_vue_vue_type_style_index_0_scoped_0dc642df_lang = "";
12958
+ const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0dc642df"]]);
12959
12959
  const _hoisted_1 = { class: "toolbar" };
12960
12960
  const _hoisted_2 = { style: { "flex": "1", "display": "flex", "align-items": "center", "height": "100%" } };
12961
12961
  const _hoisted_3 = { class: "left-controls" };