@yuku123/z-team-component 0.2.28 → 0.2.29

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.
@@ -1,9 +1,9 @@
1
1
  import { jsxs as i, jsx as e, Fragment as A } from "react/jsx-runtime";
2
2
  import { useState as o, useEffect as oe } from "react";
3
- import { Form as m, message as r, Button as d, Input as B, Row as ae, Col as z, Card as v, Statistic as S, Alert as T, Space as p, Typography as se, Tabs as de, Popconfirm as F, Table as _, Tag as h, Tooltip as ce, Modal as he, Radio as O, Select as w, InputNumber as ue } from "antd";
3
+ import { Form as m, message as r, Button as d, Input as B, Row as ae, Col as z, Card as v, Statistic as S, Alert as O, Space as p, Typography as se, Tabs as de, Popconfirm as F, Table as _, Tag as h, Tooltip as ce, Modal as he, Radio as T, Select as w, InputNumber as ue } from "antd";
4
4
  import { PlusOutlined as me, ClockCircleOutlined as $, CheckCircleOutlined as j, LinkOutlined as U, CopyOutlined as x, QrcodeOutlined as M, UserDeleteOutlined as K, TeamOutlined as pe, MailOutlined as q, DeleteOutlined as ye, UserAddOutlined as N, CloseCircleOutlined as W } from "@ant-design/icons";
5
- import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-CX7MUpws.js";
6
- import { b as Ie, T as ke } from "./ProjectApp-BquB_X7K.js";
5
+ import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-3-Ykp2ll.js";
6
+ import { PageHeader as Ie, TableToolbar as ke } from "@yuku123/z-frontend-common/ui";
7
7
  const { Text: c } = se, De = () => {
8
8
  const [C] = m.useForm(), [D, L] = o(!1), [y, G] = o([]), [R, H] = o([]), [J, Q] = o(null), [u, V] = o(""), [X, b] = o(!1), [Y, E] = o(!1), [a, P] = o(null), [l, Z] = o(localStorage.getItem("userInfo") && JSON.parse(localStorage.getItem("userInfo") || "{}").tenantCode || "");
9
9
  oe(() => {
@@ -126,7 +126,7 @@ const { Text: c } = se, De = () => {
126
126
  ) }) })
127
127
  ] }),
128
128
  a && /* @__PURE__ */ e(
129
- T,
129
+ O,
130
130
  {
131
131
  type: "success",
132
132
  showIcon: !0,
@@ -191,7 +191,7 @@ const { Text: c } = se, De = () => {
191
191
  ] }),
192
192
  children: /* @__PURE__ */ i(A, { children: [
193
193
  u && u !== "owner" && /* @__PURE__ */ e(
194
- T,
194
+ O,
195
195
  {
196
196
  type: "warning",
197
197
  showIcon: !0,
@@ -453,12 +453,12 @@ const { Text: c } = se, De = () => {
453
453
  okText: "创建",
454
454
  children: [
455
455
  /* @__PURE__ */ i(m, { form: C, layout: "vertical", initialValues: { type: "link", roleCode: "member", maxUses: 1 }, children: [
456
- /* @__PURE__ */ e(m.Item, { name: "type", label: "类型", rules: [{ required: !0 }], children: /* @__PURE__ */ i(O.Group, { children: [
457
- /* @__PURE__ */ i(O.Button, { value: "link", children: [
456
+ /* @__PURE__ */ e(m.Item, { name: "type", label: "类型", rules: [{ required: !0 }], children: /* @__PURE__ */ i(T.Group, { children: [
457
+ /* @__PURE__ */ i(T.Button, { value: "link", children: [
458
458
  /* @__PURE__ */ e(U, {}),
459
459
  " 邀请链接"
460
460
  ] }),
461
- /* @__PURE__ */ i(O.Button, { value: "code", children: [
461
+ /* @__PURE__ */ i(T.Button, { value: "code", children: [
462
462
  /* @__PURE__ */ e(M, {}),
463
463
  " 邀请码"
464
464
  ] })
@@ -479,7 +479,7 @@ const { Text: c } = se, De = () => {
479
479
  }
480
480
  )
481
481
  ] }),
482
- /* @__PURE__ */ e(T, { type: "info", showIcon: !0, title: "链接模式 7 天过期, 码模式同 7 天" })
482
+ /* @__PURE__ */ e(O, { type: "info", showIcon: !0, title: "链接模式 7 天过期, 码模式同 7 天" })
483
483
  ]
484
484
  }
485
485
  )
@@ -3,8 +3,8 @@ import { useState as a, useMemo as oe, useEffect as W } from "react";
3
3
  import { useNavigate as le, useSearchParams as se } from "react-router-dom";
4
4
  import { Form as c, message as o, Spin as ce, Typography as de, Card as d, Tag as x, Empty as me, Row as he, Col as fe, Space as S, Avatar as ge, Pagination as pe, Button as T, Result as ue, Modal as E, Input as k, Alert as U } from "antd";
5
5
  import { RocketOutlined as q, ApartmentOutlined as ye, CheckCircleOutlined as Ce, PlusOutlined as z, KeyOutlined as m, GiftOutlined as ve, HomeOutlined as we, CrownOutlined as be } from "@ant-design/icons";
6
- import { g as xe, a as Se, s as Te, r as ke } from "./api-CX7MUpws.js";
7
- import { a as ze } from "./ProjectApp-BquB_X7K.js";
6
+ import { g as xe, a as Se, s as Te, r as ke } from "./api-3-Ykp2ll.js";
7
+ import { a as ze } from "./ProjectApp-oUbzb0Io.js";
8
8
  const { Title: u, Text: O, Paragraph: Oe } = de, y = 12, Me = () => {
9
9
  const L = le(), [H] = se(), [_, I] = a(!0), [i, $] = a(null), [l, G] = a([]), [A, F] = a(0), [h, B] = a(""), [C, K] = a(1), X = oe(() => {
10
10
  const e = (C - 1) * y;