@glodon-aiot/agent-cli-ui 3.9.0-alpha.5 → 3.9.0-alpha.6

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.
@@ -2,12 +2,12 @@ import { jsxs as x, jsx as o, Fragment as U } from "react/jsx-runtime";
2
2
  import { useState as s, useEffect as n } from "react";
3
3
  import { Image as k, Spin as E, Tooltip as P, Button as j } from "antd";
4
4
  import { LoadingOutlined as z } from "@ant-design/icons";
5
- import { AecKnowledgeFileStatus as F } from "@glodon-aiot/apis";
5
+ import { AecKnowledgeFileStatus as N } from "@glodon-aiot/apis";
6
6
  import B from "../Iconfont/index.mjs";
7
7
  import { getBase64 as I } from "../../utils/index.mjs";
8
8
  /* empty css */const D = (i) => {
9
9
  const {
10
- className: N,
10
+ className: F,
11
11
  style: y,
12
12
  id: r,
13
13
  file: e,
@@ -35,9 +35,9 @@ import { getBase64 as I } from "../../utils/index.mjs";
35
35
  p(e instanceof File || e == null ? void 0 : e.status);
36
36
  }, [e]);
37
37
  const C = () => {
38
- r && c && a === F.Processing && c(r).then((t) => {
38
+ r && c && a === N.Processing && c(r).then((t) => {
39
39
  t !== a && (a !== void 0 && v && v(t), p(t));
40
- }).catch((t) => p(F.Failed));
40
+ }).catch((t) => p(N.Failed));
41
41
  };
42
42
  return n(() => {
43
43
  C();
@@ -46,7 +46,7 @@ import { getBase64 as I } from "../../utils/index.mjs";
46
46
  d(t);
47
47
  });
48
48
  }, [e]), e ? /* @__PURE__ */ x("div", {
49
- className: `file-preview ${N}`,
49
+ className: `file-preview ${F}`,
50
50
  style: y,
51
51
  children: [/* @__PURE__ */ o(k, {
52
52
  src: m,
@@ -62,7 +62,7 @@ import { getBase64 as I } from "../../utils/index.mjs";
62
62
  }), !f && g && /* @__PURE__ */ o(P, {
63
63
  overlayClassName: "file-remove-tooltip",
64
64
  title: "删除文件",
65
- getPopupContainer: (t) => t.parentNode,
65
+ getPopupContainer: (t) => t.parentNode.parentNode,
66
66
  children: /* @__PURE__ */ o(j, {
67
67
  className: "file-action file-remove",
68
68
  icon: /* @__PURE__ */ o(B, {