@aplus-frontend/ui 7.10.5 → 7.11.0

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 (105) hide show
  1. package/es/index.mjs +93 -91
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +75 -63
  3. package/es/src/ag-grid/editable/index.vue.mjs +80 -72
  4. package/es/src/ag-grid/editable/interface.d.ts +2 -1
  5. package/es/src/ag-grid/editable/utils.d.ts +7 -0
  6. package/es/src/ag-grid/editable/utils.mjs +32 -17
  7. package/es/src/ap-form/ap-form.vue2.mjs +144 -153
  8. package/es/src/ap-form/utils/transform.d.ts +6 -0
  9. package/es/src/ap-form/utils/transform.mjs +30 -0
  10. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  11. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +147 -110
  12. package/es/src/business/ap-appendix/interface.d.ts +4 -0
  13. package/es/src/business/ap-appendix/style/index.mjs +56 -34
  14. package/es/src/business/ap-attachment/ApAttachment.mjs +112 -89
  15. package/es/src/business/ap-attachment/style/index.mjs +21 -7
  16. package/es/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  17. package/es/src/business/ap-file-preview/ap-file-preview.vue.mjs +4 -0
  18. package/es/src/business/ap-file-preview/ap-file-preview.vue2.mjs +103 -0
  19. package/es/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  20. package/es/src/business/ap-file-preview/components/error-result/index.vue.mjs +4 -0
  21. package/es/src/business/ap-file-preview/components/error-result/index.vue2.mjs +40 -0
  22. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  23. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.mjs +20 -0
  24. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  25. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.mjs +20 -0
  26. package/es/src/business/ap-file-preview/index.d.ts +7 -0
  27. package/es/src/business/ap-file-preview/index.mjs +8 -0
  28. package/es/src/business/ap-file-preview/interface.d.ts +43 -0
  29. package/es/src/business/ap-file-preview/style/index.d.ts +5 -0
  30. package/es/src/business/ap-file-preview/style/index.mjs +46 -0
  31. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  32. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +18 -0
  33. package/es/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  34. package/es/src/business/ap-file-preview/utils/default-parser-plugin.mjs +48 -0
  35. package/es/src/business/ap-image/ApImage.vue2.mjs +16 -16
  36. package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  37. package/es/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  38. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +94 -82
  39. package/es/src/business/ap-upload/style/multiple-file.mjs +6 -3
  40. package/es/src/business/index.d.ts +1 -0
  41. package/es/src/business/index.mjs +16 -14
  42. package/es/src/config-provider/config-provider-props.d.ts +6 -0
  43. package/es/src/config-provider/config-provider-props.mjs +6 -2
  44. package/es/src/config-provider/config-provider.d.ts +17 -1
  45. package/es/src/config-provider/config-provider.mjs +24 -23
  46. package/es/src/config-provider/hooks/use-global-config.d.ts +7 -0
  47. package/es/src/config-provider/index.d.ts +31 -3
  48. package/es/src/index.mjs +74 -72
  49. package/es/src/locale/lang/en.mjs +5 -0
  50. package/es/src/locale/lang/zh-cn.mjs +5 -0
  51. package/es/src/version.d.ts +1 -1
  52. package/es/src/version.mjs +1 -1
  53. package/lib/index.js +1 -1
  54. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  55. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  56. package/lib/src/ag-grid/editable/interface.d.ts +2 -1
  57. package/lib/src/ag-grid/editable/utils.d.ts +7 -0
  58. package/lib/src/ag-grid/editable/utils.js +1 -1
  59. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  60. package/lib/src/ap-form/utils/transform.d.ts +6 -0
  61. package/lib/src/ap-form/utils/transform.js +1 -0
  62. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  63. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  64. package/lib/src/business/ap-appendix/interface.d.ts +4 -0
  65. package/lib/src/business/ap-appendix/style/index.js +1 -1
  66. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  67. package/lib/src/business/ap-attachment/style/index.js +1 -1
  68. package/lib/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  69. package/lib/src/business/ap-file-preview/ap-file-preview.vue.js +1 -0
  70. package/lib/src/business/ap-file-preview/ap-file-preview.vue2.js +1 -0
  71. package/lib/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  72. package/lib/src/business/ap-file-preview/components/error-result/index.vue.js +1 -0
  73. package/lib/src/business/ap-file-preview/components/error-result/index.vue2.js +1 -0
  74. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  75. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.js +1 -0
  76. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  77. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.js +1 -0
  78. package/lib/src/business/ap-file-preview/index.d.ts +7 -0
  79. package/lib/src/business/ap-file-preview/index.js +1 -0
  80. package/lib/src/business/ap-file-preview/interface.d.ts +43 -0
  81. package/lib/src/business/ap-file-preview/style/index.d.ts +5 -0
  82. package/lib/src/business/ap-file-preview/style/index.js +1 -0
  83. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  84. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -0
  85. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  86. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.js +1 -0
  87. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  88. package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  89. package/lib/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  90. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  91. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  92. package/lib/src/business/index.d.ts +1 -0
  93. package/lib/src/business/index.js +1 -1
  94. package/lib/src/config-provider/config-provider-props.d.ts +6 -0
  95. package/lib/src/config-provider/config-provider-props.js +1 -1
  96. package/lib/src/config-provider/config-provider.d.ts +17 -1
  97. package/lib/src/config-provider/config-provider.js +1 -1
  98. package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -0
  99. package/lib/src/config-provider/index.d.ts +31 -3
  100. package/lib/src/index.js +1 -1
  101. package/lib/src/locale/lang/en.js +1 -1
  102. package/lib/src/locale/lang/zh-cn.js +1 -1
  103. package/lib/src/version.d.ts +1 -1
  104. package/lib/src/version.js +1 -1
  105. package/package.json +1 -1
@@ -1,18 +1,19 @@
1
- import { defineComponent as O, computed as d, ref as S, createElementBlock as L, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as C, createVNode as p, withCtx as u, createElementVNode as n, normalizeClass as i, createBlock as N, Fragment as V, renderList as D, createSlots as j, createTextVNode as P, toDisplayString as G } from "vue";
2
- import { LoadingOutlined as M } from "@ant-design/icons-vue";
3
- import { Tooltip as U, TypographyText as z, Empty as $ } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as R, IconApAdLineCloseAttachments as q } from "@aplus-frontend/icon";
1
+ import { defineComponent as V, computed as g, ref as j, createElementBlock as L, openBlock as p, mergeProps as M, unref as e, renderSlot as d, createCommentVNode as k, createVNode as r, withCtx as c, createElementVNode as s, normalizeClass as a, createBlock as C, Fragment as G, renderList as U, createSlots as x, createTextVNode as N, toDisplayString as h } from "vue";
2
+ import { LoadingOutlined as z } from "@ant-design/icons-vue";
3
+ import { Tooltip as $, TypographyText as R, Empty as I } from "@aplus-frontend/antdv";
4
+ import { IconVariantDownload as q, IconApAdLineCloseAttachments as H, IconApAdLineDownload as J } from "@aplus-frontend/icon";
5
5
  import "../../config-provider/index.mjs";
6
6
  import "../ap-download/ap-download.vue2.mjs";
7
+ import { ApFilePreview as K } from "../ap-file-preview/index.mjs";
7
8
  import "../ap-title/ApTitle.vue.mjs";
8
- import H from "./style/index.mjs";
9
- import { getFileInfo as J } from "./utils/index.mjs";
10
- import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
13
- import W from "../ap-title/ApTitle.vue2.mjs";
14
- import X from "../ap-download/ap-download.vue.mjs";
15
- const Y = ["onClick"], de = /* @__PURE__ */ O({
9
+ import Q from "./style/index.mjs";
10
+ import { getFileInfo as W } from "./utils/index.mjs";
11
+ import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import { useLocale as Y } from "../../config-provider/hooks/use-locale.mjs";
13
+ import { useGlobalConfig as E } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import Z from "../ap-title/ApTitle.vue2.mjs";
15
+ import ee from "../ap-download/ap-download.vue.mjs";
16
+ const te = ["onClick"], ie = ["onClick"], Ae = /* @__PURE__ */ V({
16
17
  __name: "ap-appendix",
17
18
  props: {
18
19
  fileList: {},
@@ -21,155 +22,191 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
21
22
  title: {},
22
23
  tooltip: {},
23
24
  column: { default: 2 },
24
- isFileAreaBorder: { type: Boolean, default: !1 }
25
+ isFileAreaBorder: { type: Boolean, default: !1 },
26
+ emptyText: {}
25
27
  },
26
- setup(E) {
27
- const { b: F, e: l, em: k } = K("ap-appendix"), { t: v } = Q(), I = H("ap-appendix"), a = E, h = w("apUpload"), _ = w(
28
+ setup(T) {
29
+ const { b: B, e: i, em: w } = X("ap-appendix"), { t: m } = Y(), b = Q("ap-appendix"), t = T, _ = E("apUpload"), F = E(
28
30
  "downloadCenterTriggerConfig"
29
- ), m = d(
30
- () => J(
31
- a?.needName ?? h?.value?.needName,
32
- a?.fileList ?? []
31
+ ), y = g(
32
+ () => W(
33
+ t?.needName ?? _?.value?.needName,
34
+ t?.fileList ?? []
33
35
  )
34
- ), x = d(
35
- () => a.getOssAccess || h.value?.getOssAccess
36
- ), g = d(
37
- () => !(Array.isArray(m.value) && m.value.length)
38
- ), o = S([]), B = d(() => a.title || v("ap.apAppendix.appendix"));
39
- async function b(s, f) {
40
- if (!(o.value.findIndex((t) => t === f) > -1)) {
36
+ ), O = g(
37
+ () => t.getOssAccess || _.value?.getOssAccess
38
+ ), A = g(
39
+ () => !(Array.isArray(y.value) && y.value.length)
40
+ ), o = j([]), S = g(() => t.title || m("ap.apAppendix.appendix"));
41
+ async function P(n, f) {
42
+ if (!(o.value.findIndex((l) => l === f) > -1)) {
41
43
  o.value = [...o.value, f];
42
44
  try {
43
- if (_.value?.trigger) {
44
- let t = [s].map((A) => ({
45
- objectName: A.path,
46
- fileName: A.fileName
45
+ if (F.value?.trigger) {
46
+ let l = [n].map((v) => ({
47
+ objectName: v.path,
48
+ fileName: v.fileName
47
49
  }));
48
- await _.value?.trigger(t);
50
+ await F.value?.trigger(l);
49
51
  }
50
52
  } finally {
51
- o.value = o.value.filter((t) => t !== f);
53
+ o.value = o.value.filter((l) => l !== f);
52
54
  }
53
55
  }
54
56
  }
55
- return (s, f) => (r(), L("div", T({
56
- class: [e(F)(), e(I)]
57
+ async function D(n) {
58
+ K.createFilePreviewModal({
59
+ src: n.path,
60
+ fileName: n.fileName
61
+ });
62
+ }
63
+ return (n, f) => (p(), L("div", M({
64
+ class: [e(B)(), e(b)]
57
65
  }, {
58
- ...s.$attrs
66
+ ...n.$attrs
59
67
  }, {
60
68
  style: {
61
- "--ap-appendix-column": `repeat(${Number(a?.column || 2)}, 1fr)`
69
+ "--ap-appendix-column": `repeat(${Number(t?.column || 2)}, 1fr)`
62
70
  }
63
71
  }), [
64
- c(s.$slots, "title", {
65
- fileList: a.fileList
72
+ d(n.$slots, "title", {
73
+ fileList: t.fileList
66
74
  }, () => [
67
- p(W, {
68
- title: B.value,
69
- "help-message": a?.tooltip
75
+ r(Z, {
76
+ title: S.value,
77
+ "help-message": t?.tooltip
70
78
  }, {
71
- suffix: u(() => [
72
- n("div", {
73
- class: i([e(l)("suffix")])
79
+ suffix: c(() => [
80
+ s("div", {
81
+ class: a([e(i)("suffix")])
74
82
  }, [
75
- c(s.$slots, "titleSuffix", {
76
- fileList: a.fileList
83
+ d(n.$slots, "titleSuffix", {
84
+ fileList: t.fileList
77
85
  }),
78
- c(s.$slots, "titleDownloadAllBtn", {
79
- fileList: a.fileList
86
+ d(n.$slots, "titleDownloadAllBtn", {
87
+ fileList: t.fileList
80
88
  }, () => [
81
- g.value ? C("", !0) : (r(), N(X, {
89
+ A.value ? k("", !0) : (p(), C(ee, {
82
90
  key: 0,
83
- class: i([e(l)("download-all")]),
84
- text: e(v)("ap.apAppendix.downloadAll"),
85
- "get-oss-access": x.value,
86
- "file-name": m.value
91
+ class: a([e(i)("download-all")]),
92
+ text: e(m)("ap.apAppendix.downloadAll"),
93
+ "get-oss-access": O.value,
94
+ "file-name": t?.fileList ?? [],
95
+ "need-name": t.needName
87
96
  }, {
88
- icon: u(() => [
89
- p(e(R))
97
+ icon: c(() => [
98
+ r(e(q))
90
99
  ]),
91
100
  _: 1
92
- }, 8, ["class", "text", "get-oss-access", "file-name"]))
101
+ }, 8, ["class", "text", "get-oss-access", "file-name", "need-name"]))
93
102
  ])
94
103
  ], 2)
95
104
  ]),
96
105
  _: 3
97
106
  }, 8, ["title", "help-message"])
98
107
  ]),
99
- g.value ? C("", !0) : c(s.$slots, "fileArea", {
108
+ A.value ? k("", !0) : d(n.$slots, "fileArea", {
100
109
  key: 0,
101
- fileList: a.fileList
110
+ fileList: t.fileList
102
111
  }, () => [
103
- n("div", {
104
- class: i({
105
- [e(l)("file-area")]: !0,
106
- [e(k)("file-area", "border")]: !!a.isFileAreaBorder
112
+ s("div", {
113
+ class: a({
114
+ [e(i)("file-area")]: !0,
115
+ [e(w)("file-area", "border")]: !!t.isFileAreaBorder
107
116
  })
108
117
  }, [
109
- n("div", {
110
- class: i([e(l)("file-area-content")])
118
+ s("div", {
119
+ class: a([e(i)("file-area-content")])
111
120
  }, [
112
- (r(!0), L(V, null, D(m.value, (y, t) => (r(), L("div", {
113
- key: t,
114
- class: i({
115
- [e(l)("file-area-content-item")]: !0,
116
- [e(k)("file-area-content-item", "loading")]: o.value.includes(t)
121
+ (p(!0), L(G, null, U(y.value, (u, l) => (p(), L("div", {
122
+ key: l,
123
+ class: a({
124
+ [e(i)("file-area-content-item")]: !0,
125
+ [e(w)("file-area-content-item", "loading")]: o.value.includes(l)
117
126
  })
118
127
  }, [
119
- p(e(U), null, j({
120
- default: u(() => [
121
- n("div", {
122
- class: i({
123
- [e(l)("file-area-content-item-content")]: !0,
124
- [e(l)("file-area-content-item--loading-content")]: o.value.includes(t)
125
- }),
126
- onClick: (A) => b(y, t)
127
- }, [
128
- n("div", {
129
- class: i([e(l)("file-area-content-item-icon")])
128
+ s("div", {
129
+ class: a({
130
+ [e(i)("file-area-content-item-content")]: !0,
131
+ [e(i)("file-area-content-item--loading-content")]: o.value.includes(l)
132
+ })
133
+ }, [
134
+ r(e($), null, x({
135
+ default: c(() => [
136
+ s("div", {
137
+ class: a([e(i)("file-area-content-item-content-text")]),
138
+ onClick: (v) => D(u)
130
139
  }, [
131
- o.value.includes(t) ? (r(), N(e(M), { key: 0 })) : (r(), N(e(q), { key: 1 }))
132
- ], 2),
133
- n("div", {
134
- class: i([e(l)("file-area-content-item-file-name")])
140
+ s("div", {
141
+ class: a([e(i)("file-area-content-item-icon")])
142
+ }, [
143
+ o.value.includes(l) ? (p(), C(e(z), { key: 0 })) : (p(), C(e(H), { key: 1 }))
144
+ ], 2),
145
+ s("div", {
146
+ class: a([e(i)("file-area-content-item-file-name")])
147
+ }, [
148
+ r(e(R), {
149
+ ellipsis: "",
150
+ content: u.fileName
151
+ }, null, 8, ["content"])
152
+ ], 2)
153
+ ], 10, te)
154
+ ]),
155
+ _: 2
156
+ }, [
157
+ o.value.includes(l) ? void 0 : {
158
+ name: "title",
159
+ fn: c(() => [
160
+ N(h(e(m)("ap.apAppendix.previewFile")), 1)
161
+ ]),
162
+ key: "0"
163
+ }
164
+ ]), 1024),
165
+ r(e($), null, x({
166
+ default: c(() => [
167
+ s("div", {
168
+ class: a([e(i)("file-area-content-item-icon-preview")]),
169
+ onClick: (v) => P(u, l)
135
170
  }, [
136
- p(e(z), {
137
- ellipsis: "",
138
- content: y.fileName
139
- }, null, 8, ["content"])
140
- ], 2)
141
- ], 10, Y)
142
- ]),
143
- _: 2
144
- }, [
145
- o.value.includes(t) ? void 0 : {
146
- name: "title",
147
- fn: u(() => [
148
- P(G(e(v)("ap.apAppendix.downloadFile")), 1)
171
+ r(e(J))
172
+ ], 10, ie)
149
173
  ]),
150
- key: "0"
151
- }
152
- ]), 1024)
174
+ _: 2
175
+ }, [
176
+ o.value.includes(l) ? void 0 : {
177
+ name: "title",
178
+ fn: c(() => [
179
+ N(h(e(m)("ap.apAppendix.downloadFile")), 1)
180
+ ]),
181
+ key: "0"
182
+ }
183
+ ]), 1024)
184
+ ], 2)
153
185
  ], 2))), 128))
154
186
  ], 2)
155
187
  ], 2)
156
188
  ]),
157
- g.value ? c(s.$slots, "empty", { key: 1 }, () => [
158
- n("div", {
159
- class: i([e(l)("empty")])
189
+ A.value ? d(n.$slots, "empty", { key: 1 }, () => [
190
+ s("div", {
191
+ class: a([e(i)("empty")])
160
192
  }, [
161
- n("div", {
162
- class: i([e(l)("empty-content")])
193
+ s("div", {
194
+ class: a([e(i)("empty-content")])
163
195
  }, [
164
- p(e($), {
165
- image: e($).PRESENTED_IMAGE_SIMPLE
166
- }, null, 8, ["image"])
196
+ r(e(I), {
197
+ image: e(I).PRESENTED_IMAGE_SIMPLE
198
+ }, {
199
+ description: c(() => [
200
+ N(h(t.emptyText || e(m)("ap.apAppendix.empty")), 1)
201
+ ]),
202
+ _: 1
203
+ }, 8, ["image"])
167
204
  ], 2)
168
205
  ], 2)
169
- ]) : C("", !0)
206
+ ]) : k("", !0)
170
207
  ], 16));
171
208
  }
172
209
  });
173
210
  export {
174
- de as default
211
+ Ae as default
175
212
  };
@@ -48,6 +48,10 @@ export interface ApAppendixProps<FileType = any> {
48
48
  * 文件区域是否带边框
49
49
  */
50
50
  isFileAreaBorder?: boolean;
51
+ /**
52
+ * 空状态自定义文字
53
+ */
54
+ emptyText?: string;
51
55
  }
52
56
  export interface ApAppendixSlots<FileType = any> {
53
57
  fileArea: (props: ApAppendixBaseSlotProps<FileType>) => any;
@@ -1,45 +1,72 @@
1
- import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- import { defaultToken as i } from "./token.mjs";
3
- const r = (o) => {
4
- const { componentCls: e } = o;
1
+ import { genComponentStyleHook as i } from "../../../utils/cssinjs/index.mjs";
2
+ import { defaultToken as t } from "./token.mjs";
3
+ const r = (e) => {
4
+ const { componentCls: o } = e;
5
5
  return {
6
- [e]: {
7
- [`${e}__suffix`]: {
6
+ [o]: {
7
+ [`${o}__suffix`]: {
8
8
  width: "100%",
9
9
  display: "flex",
10
10
  alignItems: "center"
11
11
  },
12
- [`${e}__download-all`]: {
12
+ [`${o}__download-all`]: {
13
13
  marginLeft: "auto",
14
14
  padding: 0,
15
15
  height: "min-content"
16
16
  },
17
- [`${e}__file-area`]: {
18
- marginBlockStart: o.spaceLG,
17
+ [`${o}__file-area`]: {
18
+ marginBlockStart: e.spaceLG,
19
19
  "&--border": {
20
- border: `${o.lineWidth} dashed ${o.borderColorBase}`,
21
- padding: o.spaceLG,
22
- borderRadius: o.borderRadius
20
+ border: `${e.lineWidth} dashed ${e.borderColorBase}`,
21
+ padding: e.spaceLG,
22
+ borderRadius: e.borderRadius
23
23
  },
24
24
  "&-content": {
25
25
  display: "grid",
26
- rowGap: o.spaceXL,
27
- columnGap: o.calc(o.spaceXL).mul(5).equal(),
28
- gridTemplateColumns: o.apAppendixColumn,
26
+ rowGap: e.spaceLG,
27
+ columnGap: e.calc(e.spaceXL).mul(5).equal(),
28
+ gridTemplateColumns: e.apAppendixColumn,
29
29
  "&-item": {
30
30
  overflow: "hidden",
31
31
  userSelect: "none",
32
+ "&:hover": {
33
+ [`${o}__file-area-content-item-icon-preview`]: {
34
+ display: "flex"
35
+ }
36
+ },
32
37
  "&-content": {
33
38
  display: "flex",
34
39
  alignItems: "center",
35
40
  width: "max-content",
36
41
  cursor: "pointer",
37
- maxWidth: "100%"
42
+ maxWidth: "100%",
43
+ "&-text": {
44
+ display: "flex",
45
+ alignItems: "center",
46
+ width: "max-content",
47
+ cursor: "pointer",
48
+ maxWidth: "100%",
49
+ minWidth: 0,
50
+ overflow: "hidden",
51
+ "&:hover": {
52
+ ".ant-typography": {
53
+ color: e.colorLink
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "&-icon-preview": {
59
+ marginLeft: e.space,
60
+ fontSize: e.fontSizeXL,
61
+ color: e.colorLink,
62
+ display: "none",
63
+ alignItems: "center",
64
+ flexShrink: 0
38
65
  },
39
66
  "&-icon": {
40
- marginRight: o.space,
41
- fontSize: o.fontSizeXL,
42
- color: o.textColor4
67
+ marginRight: e.space,
68
+ fontSize: e.fontSizeXL,
69
+ color: e.textColor4
43
70
  },
44
71
  "&-file-name": {
45
72
  minWidth: 0,
@@ -48,15 +75,10 @@ const r = (o) => {
48
75
  display: "flex",
49
76
  alignItems: "center",
50
77
  ".ant-typography": {
51
- fontSize: o.fontSize,
52
- lineHeight: o.lineHeight,
53
- color: o.textColor1,
54
- transition: `color ${o.motionDurationMid}`
55
- }
56
- },
57
- "&-content:hover": {
58
- ".ant-typography": {
59
- color: o.colorLink
78
+ fontSize: e.fontSize,
79
+ lineHeight: e.lineHeight,
80
+ color: e.textColor1,
81
+ transition: `color ${e.motionDurationMid}`
60
82
  }
61
83
  },
62
84
  "&--loading": {
@@ -64,18 +86,18 @@ const r = (o) => {
64
86
  cursor: "not-allowed"
65
87
  },
66
88
  ".ant-typography": {
67
- color: o.textColor4
89
+ color: e.textColor4
68
90
  },
69
91
  "&-content:hover": {
70
92
  ".ant-typography": {
71
- color: o.textColor4
93
+ color: e.textColor4
72
94
  }
73
95
  }
74
96
  }
75
97
  }
76
98
  }
77
99
  },
78
- [`${e}__empty`]: {
100
+ [`${o}__empty`]: {
79
101
  ".ant-empty": {
80
102
  margin: 0,
81
103
  "&-description": {
@@ -85,10 +107,10 @@ const r = (o) => {
85
107
  }
86
108
  }
87
109
  };
88
- }, l = t(
110
+ }, l = i(
89
111
  "ApAppendix",
90
- (o) => [r(o)],
91
- i
112
+ (e) => [r(e)],
113
+ t
92
114
  );
93
115
  export {
94
116
  l as default,