gs-eant-comp 3.3.0 → 3.3.1

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 (23) hide show
  1. package/dist/{NotificationCenter-DYK_tiZk.js → CommonNotificationCenter-r_IwwpQl.js} +20 -20
  2. package/dist/{OrderCenter-DYxx0AVB.js → CommonOrderCenter-D1ZreMGY.js} +10 -10
  3. package/dist/ContainerManager-B_SXuZKk.js +602 -0
  4. package/dist/{ActivityFeed-DI9hNxV4.js → MobileActivityFeed-2gjV0ke2.js} +11 -11
  5. package/dist/{BannerCarousel-CC_uykla.js → MobileBanner-CxZ2jR0b.js} +11 -11
  6. package/dist/MobileHomeConfig-Cl0Q8T46.js +212 -0
  7. package/dist/{NoticeList-gioopR6r.js → MobileNoticeList-sqdXC7CC.js} +12 -12
  8. package/dist/{QuickActions-BdAibhSL.js → MobileQuickActions-Dg6wzSAQ.js} +7 -7
  9. package/dist/{QuickMenu-VY9bW-XU.js → MobileQuickMenu-DDyshzKm.js} +13 -13
  10. package/dist/{ShoppingCart-Bv7KU5Qh.js → MobileShoppingCart-L50vZizN.js} +25 -25
  11. package/dist/{StatCard-DkTQeLrf.js → MobileStatCard-DTm63DiG.js} +18 -18
  12. package/dist/{TodoList-Bskuy_aU.js → MobileTodoList-CzFB3E6k.js} +12 -12
  13. package/dist/{ActivityTable-C6yju1oZ.js → PcActivityTable-CbXZsRXT.js} +3 -3
  14. package/dist/PcAiSummary-C8uTPEOy.js +286 -0
  15. package/dist/PcHomeConfig-DlG8_m9K.js +59 -0
  16. package/dist/{QuickActionsPanel-CU778wqz.js → PcQuickActions-CEJse6Ey.js} +9 -9
  17. package/dist/{StatCards-BWasvRXQ.js → PcStatCards-C2_qAraR.js} +13 -13
  18. package/dist/PcWorkspaceEntry-DTd8-gnF.js +45 -0
  19. package/dist/gs-eant-comp.css +1 -1
  20. package/dist/gs-eant-comp.js +23 -28
  21. package/dist/gs-eant-comp.umd.cjs +4 -4
  22. package/dist/{index--CCglFst.js → index-x6RwsCx2.js} +3545 -3408
  23. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
- import { ref as M, computed as d, createElementBlock as n, openBlock as r, createElementVNode as e, createStaticVNode as x, createCommentVNode as c, toDisplayString as s, Fragment as k, renderList as p, normalizeClass as f, createTextVNode as B, normalizeStyle as j } from "vue";
2
- import { _ as H } from "./index--CCglFst.js";
1
+ import { ref as M, computed as d, createElementBlock as n, openBlock as r, createElementVNode as e, createStaticVNode as x, createCommentVNode as l, toDisplayString as s, Fragment as k, renderList as p, normalizeClass as f, createTextVNode as B, normalizeStyle as j } from "vue";
2
+ import { _ as H } from "./index-x6RwsCx2.js";
3
3
  const A = { class: "notif-center" }, V = { class: "notif-header" }, N = { class: "header-right" }, L = {
4
4
  key: 0,
5
5
  class: "unread-badge"
@@ -13,7 +13,7 @@ const A = { class: "notif-center" }, V = { class: "notif-header" }, N = { class:
13
13
  key: 0,
14
14
  class: "empty-state"
15
15
  }, G = { class: "empty-text" }, J = {
16
- __name: "NotificationCenter",
16
+ __name: "CommonNotificationCenter",
17
17
  props: {
18
18
  notifications: {
19
19
  type: Array,
@@ -63,44 +63,44 @@ const A = { class: "notif-center" }, V = { class: "notif-header" }, N = { class:
63
63
  },
64
64
  emits: ["read", "action"],
65
65
  setup(_, { emit: y }) {
66
- const i = _, g = y, a = M("all"), u = [
66
+ const a = _, g = y, i = M("all"), u = [
67
67
  { key: "all", label: "全部", count: 0 },
68
68
  { key: "order", label: "订单", count: 1 },
69
69
  { key: "system", label: "系统", count: 1 },
70
70
  { key: "course", label: "课程", count: 0 }
71
- ], w = d(() => u.find((o) => o.key === a.value)?.label || ""), h = d(() => i.notifications.filter((o) => !o.read).length), v = d(() => a.value === "all" ? i.notifications : i.notifications.filter((o) => o.type === a.value)), m = (o) => {
71
+ ], b = d(() => u.find((o) => o.key === i.value)?.label || ""), h = d(() => a.notifications.filter((o) => !o.read).length), v = d(() => i.value === "all" ? a.notifications : a.notifications.filter((o) => o.type === i.value)), m = (o) => {
72
72
  o.read || (o.read = !0, g("read", o));
73
- }, C = () => {
74
- i.notifications.forEach((o) => o.read = !0);
73
+ }, w = () => {
74
+ a.notifications.forEach((o) => o.read = !0);
75
75
  };
76
- return (o, l) => (r(), n("div", A, [
76
+ return (o, c) => (r(), n("div", A, [
77
77
  e("div", V, [
78
- l[0] || (l[0] = x('<div class="header-left" data-v-a11268a5><span class="header-icon" data-v-a11268a5><svg viewBox="0 0 24 24" width="20" height="20" fill="none" data-v-a11268a5><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-a11268a5></path><path d="M13.73 21a2 2 0 0 1-3.46 0" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-a11268a5></path></svg></span><span class="header-title" data-v-a11268a5>消息通知</span></div>', 1)),
78
+ c[0] || (c[0] = x('<div class="header-left" data-v-97cb5b7c><span class="header-icon" data-v-97cb5b7c><svg viewBox="0 0 24 24" width="20" height="20" fill="none" data-v-97cb5b7c><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-97cb5b7c></path><path d="M13.73 21a2 2 0 0 1-3.46 0" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-97cb5b7c></path></svg></span><span class="header-title" data-v-97cb5b7c>消息通知</span></div>', 1)),
79
79
  e("div", N, [
80
- h.value > 0 ? (r(), n("span", L, s(h.value), 1)) : c("", !0),
80
+ h.value > 0 ? (r(), n("span", L, s(h.value), 1)) : l("", !0),
81
81
  e("button", {
82
82
  class: "mark-read",
83
83
  type: "button",
84
- onClick: C
84
+ onClick: w
85
85
  }, "全部已读")
86
86
  ])
87
87
  ]),
88
88
  e("div", T, [
89
89
  (r(), n(k, null, p(u, (t) => e("button", {
90
90
  key: t.key,
91
- class: f(["tab-btn", { active: a.value === t.key }]),
91
+ class: f(["tab-btn", { active: i.value === t.key }]),
92
92
  type: "button",
93
- onClick: (b) => a.value = t.key
93
+ onClick: (C) => i.value = t.key
94
94
  }, [
95
95
  B(s(t.label) + " ", 1),
96
- t.count > 0 ? (r(), n("span", z, s(t.count), 1)) : c("", !0)
96
+ t.count > 0 ? (r(), n("span", z, s(t.count), 1)) : l("", !0)
97
97
  ], 10, I)), 64))
98
98
  ]),
99
99
  e("div", E, [
100
100
  (r(!0), n(k, null, p(v.value, (t) => (r(), n("div", {
101
101
  key: t.id,
102
102
  class: f(["notif-item", { unread: !t.read }]),
103
- onClick: (b) => m(t)
103
+ onClick: (C) => m(t)
104
104
  }, [
105
105
  e("div", {
106
106
  class: "notif-icon-wrap",
@@ -116,10 +116,10 @@ const A = { class: "notif-center" }, V = { class: "notif-header" }, N = { class:
116
116
  e("div", $, s(t.desc), 1),
117
117
  e("div", F, s(t.time), 1)
118
118
  ]),
119
- t.read ? c("", !0) : (r(), n("div", O))
119
+ t.read ? l("", !0) : (r(), n("div", O))
120
120
  ], 10, R))), 128)),
121
121
  v.value.length === 0 ? (r(), n("div", q, [
122
- l[1] || (l[1] = e("div", { class: "empty-icon" }, [
122
+ c[1] || (c[1] = e("div", { class: "empty-icon" }, [
123
123
  e("svg", {
124
124
  viewBox: "0 0 24 24",
125
125
  width: "32",
@@ -135,12 +135,12 @@ const A = { class: "notif-center" }, V = { class: "notif-header" }, N = { class:
135
135
  })
136
136
  ])
137
137
  ], -1)),
138
- e("div", G, "暂无" + s(w.value) + "消息", 1)
139
- ])) : c("", !0)
138
+ e("div", G, "暂无" + s(b.value) + "消息", 1)
139
+ ])) : l("", !0)
140
140
  ])
141
141
  ]));
142
142
  }
143
- }, Q = /* @__PURE__ */ H(J, [["__scopeId", "data-v-a11268a5"]]);
143
+ }, Q = /* @__PURE__ */ H(J, [["__scopeId", "data-v-97cb5b7c"]]);
144
144
  export {
145
145
  Q as default
146
146
  };
@@ -1,10 +1,10 @@
1
- import { createElementBlock as s, openBlock as o, createStaticVNode as p, createElementVNode as e, Fragment as l, renderList as r, toDisplayString as a, createCommentVNode as b, normalizeStyle as f, normalizeClass as c } from "vue";
2
- import { _ as k } from "./index--CCglFst.js";
1
+ import { createElementBlock as s, openBlock as o, createStaticVNode as _, createElementVNode as e, Fragment as l, renderList as r, toDisplayString as a, createCommentVNode as p, normalizeStyle as f, normalizeClass as c } from "vue";
2
+ import { _ as k } from "./index-x6RwsCx2.js";
3
3
  const g = { class: "order-center" }, y = { class: "stats-row" }, C = { class: "stat-value" }, B = { class: "stat-label" }, w = { class: "order-list" }, x = { class: "order-main" }, M = { class: "order-info" }, S = { class: "order-name" }, V = { class: "order-meta" }, A = { class: "order-date" }, N = { class: "order-id" }, j = { class: "order-right" }, z = { class: "order-amount" }, E = {
4
4
  key: 0,
5
5
  class: "order-actions"
6
6
  }, I = ["onClick"], O = {
7
- __name: "OrderCenter",
7
+ __name: "CommonOrderCenter",
8
8
  props: {
9
9
  orders: {
10
10
  type: Array,
@@ -50,18 +50,18 @@ const g = { class: "order-center" }, y = { class: "stats-row" }, C = { class: "s
50
50
  },
51
51
  emits: ["action"],
52
52
  setup(u, { emit: h }) {
53
- const v = h, _ = [
53
+ const v = h, m = [
54
54
  { value: "3", label: "全部订单" },
55
55
  { value: "1", label: "进行中" },
56
56
  { value: "1", label: "已完成" },
57
57
  { value: "1", label: "待支付" }
58
- ], m = (i, n) => {
58
+ ], b = (i, n) => {
59
59
  v("action", { order: i, action: n });
60
60
  };
61
61
  return (i, n) => (o(), s("div", g, [
62
- n[0] || (n[0] = p('<div class="order-header" data-v-8ac0e065><div class="header-left" data-v-8ac0e065><span class="header-icon" data-v-8ac0e065><svg viewBox="0 0 24 24" width="20" height="20" fill="none" data-v-8ac0e065><path d="M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-8ac0e065></path><path d="M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-8ac0e065></path><path d="M9 12h6M9 16h4" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-8ac0e065></path></svg></span><span class="header-title" data-v-8ac0e065>订单中心</span></div><button class="header-more" type="button" data-v-8ac0e065>全部订单 ›</button></div>', 1)),
62
+ n[0] || (n[0] = _('<div class="order-header" data-v-87e3236b><div class="header-left" data-v-87e3236b><span class="header-icon" data-v-87e3236b><svg viewBox="0 0 24 24" width="20" height="20" fill="none" data-v-87e3236b><path d="M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-87e3236b></path><path d="M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-87e3236b></path><path d="M9 12h6M9 16h4" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-87e3236b></path></svg></span><span class="header-title" data-v-87e3236b>订单中心</span></div><button class="header-more" type="button" data-v-87e3236b>全部订单 ›</button></div>', 1)),
63
63
  e("div", y, [
64
- (o(), s(l, null, r(_, (t) => e("div", {
64
+ (o(), s(l, null, r(m, (t) => e("div", {
65
65
  key: t.label,
66
66
  class: "stat-item"
67
67
  }, [
@@ -98,14 +98,14 @@ const g = { class: "order-center" }, y = { class: "stats-row" }, C = { class: "s
98
98
  key: d.label,
99
99
  class: c(["action-btn", d.type]),
100
100
  type: "button",
101
- onClick: (D) => m(t, d)
101
+ onClick: (D) => b(t, d)
102
102
  }, a(d.label), 11, I))), 128))
103
- ])) : b("", !0)
103
+ ])) : p("", !0)
104
104
  ]))), 128))
105
105
  ])
106
106
  ]));
107
107
  }
108
- }, L = /* @__PURE__ */ k(O, [["__scopeId", "data-v-8ac0e065"]]);
108
+ }, L = /* @__PURE__ */ k(O, [["__scopeId", "data-v-87e3236b"]]);
109
109
  export {
110
110
  L as default
111
111
  };