chbim-time-axis-v2 0.0.14 → 0.0.15

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/README.md CHANGED
@@ -346,7 +346,3 @@ A:
346
346
 
347
347
  **Q: 添加瞬时点(Instant)的功能在哪里?**
348
348
  A: 在设置了 `allowInstant: true` 的任务行(非分组)对应的空白时间轴区域**右键点击**,会弹出内置菜单 "添加瞬时任务"。
349
-
350
- ## 📄 License
351
-
352
- MIT
@@ -12345,27 +12345,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
12345
12345
  return !(i.left < scrollLeft.value - 100 || i.left > scrollLeft.value + containerWidth.value + 100);
12346
12346
  });
12347
12347
  }
12348
- if (isVisible || task.type === "instant") {
12349
- const shouldRender = isVisible || task.type === "instant";
12350
- if (shouldRender) {
12351
- const barData = {
12352
- id: task.id,
12353
- top: index * 30,
12354
- left: hasMainBar ? startX : 0,
12355
- width: hasMainBar ? width : 0,
12356
- hasMainBar,
12357
- name: task.name,
12358
- color: task.type === "group" ? "#4a90e2" : "#50e3c2",
12359
- originalTask: task,
12360
- blocks: blocks.length > 0 ? blocks : void 0,
12361
- instants: instants.length > 0 ? instants : void 0
12362
- };
12363
- if (hasLimit) {
12364
- barData.limitLeft = limitLeft;
12365
- barData.limitWidth = limitWidth;
12366
- }
12367
- bars.push(barData);
12348
+ const shouldRender = isVisible || task.type === "instant" || task.type === "block" && task.allowInstant;
12349
+ if (shouldRender) {
12350
+ const barData = {
12351
+ id: task.id,
12352
+ top: index * 30,
12353
+ left: hasMainBar ? startX : 0,
12354
+ width: hasMainBar ? width : 0,
12355
+ hasMainBar,
12356
+ name: task.name,
12357
+ color: task.type === "group" ? "#4a90e2" : "#50e3c2",
12358
+ originalTask: task,
12359
+ blocks: blocks.length > 0 ? blocks : void 0,
12360
+ instants: instants.length > 0 ? instants : void 0
12361
+ };
12362
+ if (hasLimit) {
12363
+ barData.limitLeft = limitLeft;
12364
+ barData.limitWidth = limitWidth;
12368
12365
  }
12366
+ bars.push(barData);
12369
12367
  }
12370
12368
  });
12371
12369
  return bars;
@@ -12737,8 +12735,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
12737
12735
  };
12738
12736
  }
12739
12737
  });
12740
- const TimelineChart_vue_vue_type_style_index_0_scoped_7a1f218b_lang = "";
12741
- const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7a1f218b"]]);
12738
+ const TimelineChart_vue_vue_type_style_index_0_scoped_761ad497_lang = "";
12739
+ const TimelineChart = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-761ad497"]]);
12742
12740
  const _hoisted_1 = { class: "toolbar" };
12743
12741
  const _hoisted_2 = { style: { "flex": "1", "display": "flex", "align-items": "center", "height": "100%" } };
12744
12742
  const _hoisted_3 = { class: "left-controls" };