chbim-time-axis-v2 0.0.15 → 0.0.16
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.
|
@@ -12787,6 +12787,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12787
12787
|
},
|
|
12788
12788
|
emits: ["taskUpdate", "update:tasks", "add", "delete", "task-enter", "task-leave"],
|
|
12789
12789
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12790
|
+
const slots = useSlots();
|
|
12790
12791
|
const props = __props;
|
|
12791
12792
|
const emit = __emit;
|
|
12792
12793
|
const contextMenuVisible = ref(false);
|
|
@@ -12830,7 +12831,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12830
12831
|
const builtinMenuTime = ref(null);
|
|
12831
12832
|
const openRowContextMenu = (payload) => {
|
|
12832
12833
|
const { event, task, time } = payload;
|
|
12833
|
-
|
|
12834
|
+
const canAddInstant = task.type !== "group" && (task.type === "instant" || task.allowInstant);
|
|
12835
|
+
const hasCustomSlot = !!slots.rowContextMenu;
|
|
12836
|
+
if (hasCustomSlot || canAddInstant) {
|
|
12834
12837
|
event.preventDefault();
|
|
12835
12838
|
event.stopPropagation();
|
|
12836
12839
|
closeContextMenu();
|
|
@@ -13608,18 +13611,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13608
13611
|
onClick: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
13609
13612
|
}, ["stop"]))
|
|
13610
13613
|
}, [
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
},
|
|
13614
|
+
renderSlot(_ctx.$slots, "rowContextMenu", {
|
|
13615
|
+
task: builtinMenuTask.value,
|
|
13616
|
+
time: builtinMenuTime.value,
|
|
13617
|
+
close: closeBuiltinMenu
|
|
13618
|
+
}, () => [
|
|
13619
|
+
createElementVNode("div", _hoisted_17, toDisplayString(unref(dayjs)(builtinMenuTime.value).format("YYYY-MM-DD")), 1),
|
|
13620
|
+
builtinMenuTask.value && builtinMenuTask.value.type !== "group" && (builtinMenuTask.value.type === "instant" || builtinMenuTask.value.allowInstant) ? (openBlock(), createElementBlock("div", {
|
|
13621
|
+
key: 0,
|
|
13622
|
+
class: "builtin-menu-item",
|
|
13623
|
+
onClick: executeAddInstant
|
|
13624
|
+
}, " 添加瞬时任务 ")) : createCommentVNode("", true)
|
|
13625
|
+
], true)
|
|
13616
13626
|
], 4)) : createCommentVNode("", true)
|
|
13617
13627
|
], 2);
|
|
13618
13628
|
};
|
|
13619
13629
|
}
|
|
13620
13630
|
});
|
|
13621
|
-
const
|
|
13622
|
-
const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
13631
|
+
const CesiumGantt_vue_vue_type_style_index_0_scoped_6b42d8c6_lang = "";
|
|
13632
|
+
const CesiumGantt = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b42d8c6"]]);
|
|
13623
13633
|
CesiumGantt.install = (app) => {
|
|
13624
13634
|
app.component("CesiumGantt", CesiumGantt);
|
|
13625
13635
|
};
|