libf 2 年之前
父節點
當前提交
dd0866d79c

文件差異過大導致無法顯示
+ 2 - 2
src/components/calendar/tuical/toastui-calendar.css


+ 14 - 3
src/components/calendar/tuical/toastui-calendar.mjs

@@ -6343,11 +6343,12 @@ const classNames$j = {
   repeatIcon: cls("icon", "ic-repeat-b"),
   userIcon: cls("icon", "ic-user-b"),
   stateIcon: cls("icon", "ic-state-b"),
+  categoryIcon: cls("icon", "ic-category-b"),
   calendarDotIcon: cls("icon", "calendar-dot")
 };
 function EventDetailSectionDetail({ event }) {
   var _a, _b;
-  const { location: location2, recurrenceRule, attendees, state, calendarId, body } = event;
+  const { location: location2, recurrenceRule, attendees, state, category, calendarId, body } = event;
   const calendar = useCalendarById(calendarId);
   return /* @__PURE__ */ h$3("div", {
     className: classNames$j.sectionDetail
@@ -6391,6 +6392,16 @@ function EventDetailSectionDetail({ event }) {
     template: "popupDetailState",
     param: event,
     as: "span"
+  }))), category && /* @__PURE__ */ h$3("div", {
+    className: classNames$j.detailItem
+  }, /* @__PURE__ */ h$3("span", {
+    className: classNames$j.categoryIcon
+  }), /* @__PURE__ */ h$3("span", {
+    className: classNames$j.content
+  }, /* @__PURE__ */ h$3(Template, {
+    template: "popupDetailCategory",
+    param: event,
+    as: "span"
   }))), calendar && /* @__PURE__ */ h$3("div", {
     className: classNames$j.detailItem
   }, /* @__PURE__ */ h$3("span", {
@@ -7021,7 +7032,7 @@ function EventStateSelector({ eventState = "Busy", formStateDispatch }) {
 const classNames$category_selector = {
   popupSection: ["dropdown-section", "category-section"],
   popupSectionItem: cls("popup-section-item", "popup-button"),
-  stateIcon: cls("icon", "ic-category"),
+  categoryIcon: cls("icon", "ic-category"),
   arrowIcon: cls("icon", "ic-dropdown-arrow"),
   content: cls("content", "event-category")
 };
@@ -7035,7 +7046,7 @@ function EventCategorySelector({ eventCategory = "task", formStateDispatch }) {
     type: "button",
     className: classNames$category_selector.popupSectionItem
   }, /* @__PURE__ */ h$3("span", {
-    className: classNames$category_selector.stateIcon
+    className: classNames$category_selector.categoryIcon
   }), /* @__PURE__ */ h$3("span", {
     className: classNames$category_selector.content
   }, h$3(Template, {