@aplus-frontend/ui 7.10.6 → 7.11.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 (113) 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 +129 -93
  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-download/ap-download.vue.d.ts +1 -0
  17. package/es/src/business/ap-download/ap-download.vue.mjs +86 -45
  18. package/es/src/business/ap-download/interface.d.ts +4 -0
  19. package/es/src/business/ap-download/style/index.mjs +8 -4
  20. package/es/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  21. package/es/src/business/ap-file-preview/ap-file-preview.vue.mjs +4 -0
  22. package/es/src/business/ap-file-preview/ap-file-preview.vue2.mjs +104 -0
  23. package/es/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  24. package/es/src/business/ap-file-preview/components/error-result/index.vue.mjs +4 -0
  25. package/es/src/business/ap-file-preview/components/error-result/index.vue2.mjs +40 -0
  26. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  27. package/es/src/business/ap-file-preview/icons/not-exist-icon.vue.mjs +20 -0
  28. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  29. package/es/src/business/ap-file-preview/icons/not-preview-icon.vue.mjs +20 -0
  30. package/es/src/business/ap-file-preview/index.d.ts +7 -0
  31. package/es/src/business/ap-file-preview/index.mjs +8 -0
  32. package/es/src/business/ap-file-preview/interface.d.ts +45 -0
  33. package/es/src/business/ap-file-preview/style/index.d.ts +5 -0
  34. package/es/src/business/ap-file-preview/style/index.mjs +46 -0
  35. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  36. package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +18 -0
  37. package/es/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  38. package/es/src/business/ap-file-preview/utils/default-parser-plugin.mjs +48 -0
  39. package/es/src/business/ap-image/ApImage.vue2.mjs +16 -16
  40. package/es/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  41. package/es/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  42. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +94 -82
  43. package/es/src/business/ap-upload/style/multiple-file.mjs +6 -3
  44. package/es/src/business/index.d.ts +1 -0
  45. package/es/src/business/index.mjs +16 -14
  46. package/es/src/config-provider/config-provider-props.d.ts +6 -0
  47. package/es/src/config-provider/config-provider-props.mjs +6 -2
  48. package/es/src/config-provider/config-provider.d.ts +17 -1
  49. package/es/src/config-provider/config-provider.mjs +24 -23
  50. package/es/src/config-provider/hooks/use-global-config.d.ts +7 -0
  51. package/es/src/config-provider/index.d.ts +31 -3
  52. package/es/src/index.mjs +74 -72
  53. package/es/src/locale/lang/en.mjs +5 -0
  54. package/es/src/locale/lang/zh-cn.mjs +5 -0
  55. package/es/src/version.d.ts +1 -1
  56. package/es/src/version.mjs +1 -1
  57. package/lib/index.js +1 -1
  58. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  59. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  60. package/lib/src/ag-grid/editable/interface.d.ts +2 -1
  61. package/lib/src/ag-grid/editable/utils.d.ts +7 -0
  62. package/lib/src/ag-grid/editable/utils.js +1 -1
  63. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  64. package/lib/src/ap-form/utils/transform.d.ts +6 -0
  65. package/lib/src/ap-form/utils/transform.js +1 -0
  66. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  67. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  68. package/lib/src/business/ap-appendix/interface.d.ts +4 -0
  69. package/lib/src/business/ap-appendix/style/index.js +1 -1
  70. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  71. package/lib/src/business/ap-attachment/style/index.js +1 -1
  72. package/lib/src/business/ap-download/ap-download.vue.d.ts +1 -0
  73. package/lib/src/business/ap-download/ap-download.vue.js +1 -1
  74. package/lib/src/business/ap-download/interface.d.ts +4 -0
  75. package/lib/src/business/ap-download/style/index.js +1 -1
  76. package/lib/src/business/ap-file-preview/ap-file-preview.vue.d.ts +4 -0
  77. package/lib/src/business/ap-file-preview/ap-file-preview.vue.js +1 -0
  78. package/lib/src/business/ap-file-preview/ap-file-preview.vue2.js +1 -0
  79. package/lib/src/business/ap-file-preview/components/error-result/index.vue.d.ts +6 -0
  80. package/lib/src/business/ap-file-preview/components/error-result/index.vue.js +1 -0
  81. package/lib/src/business/ap-file-preview/components/error-result/index.vue2.js +1 -0
  82. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.d.ts +3 -0
  83. package/lib/src/business/ap-file-preview/icons/not-exist-icon.vue.js +1 -0
  84. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.d.ts +3 -0
  85. package/lib/src/business/ap-file-preview/icons/not-preview-icon.vue.js +1 -0
  86. package/lib/src/business/ap-file-preview/index.d.ts +7 -0
  87. package/lib/src/business/ap-file-preview/index.js +1 -0
  88. package/lib/src/business/ap-file-preview/interface.d.ts +45 -0
  89. package/lib/src/business/ap-file-preview/style/index.d.ts +5 -0
  90. package/lib/src/business/ap-file-preview/style/index.js +1 -0
  91. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.d.ts +2 -0
  92. package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -0
  93. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.d.ts +4 -0
  94. package/lib/src/business/ap-file-preview/utils/default-parser-plugin.js +1 -0
  95. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  96. package/lib/src/business/ap-upload/apUpload.vue.d.ts +1 -1
  97. package/lib/src/business/ap-upload/apUploadTypes.d.ts +2 -2
  98. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  99. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  100. package/lib/src/business/index.d.ts +1 -0
  101. package/lib/src/business/index.js +1 -1
  102. package/lib/src/config-provider/config-provider-props.d.ts +6 -0
  103. package/lib/src/config-provider/config-provider-props.js +1 -1
  104. package/lib/src/config-provider/config-provider.d.ts +17 -1
  105. package/lib/src/config-provider/config-provider.js +1 -1
  106. package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -0
  107. package/lib/src/config-provider/index.d.ts +31 -3
  108. package/lib/src/index.js +1 -1
  109. package/lib/src/locale/lang/en.js +1 -1
  110. package/lib/src/locale/lang/zh-cn.js +1 -1
  111. package/lib/src/version.d.ts +1 -1
  112. package/lib/src/version.js +1 -1
  113. package/package.json +1 -1
@@ -1,18 +1,19 @@
1
- import { defineComponent as O, computed as f, ref as S, createElementBlock as A, openBlock as r, mergeProps as T, unref as e, renderSlot as c, createCommentVNode as N, createVNode as p, withCtx as d, createElementVNode as s, normalizeClass as i, createBlock as C, 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,39 +22,46 @@ 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: a, em: k } = K("ap-appendix"), { t: u } = Q(), I = H("ap-appendix"), t = 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
- ), v = f(
30
- () => J(
31
- t?.needName ?? h?.value?.needName,
31
+ ), y = g(
32
+ () => W(
33
+ t?.needName ?? _?.value?.needName,
32
34
  t?.fileList ?? []
33
35
  )
34
- ), x = f(
35
- () => t.getOssAccess || h.value?.getOssAccess
36
- ), g = f(
37
- () => !(Array.isArray(v.value) && v.value.length)
38
- ), o = S([]), B = f(() => t.title || u("ap.apAppendix.appendix"));
39
- async function b(n, m) {
40
- if (!(o.value.findIndex((l) => l === m) > -1)) {
41
- o.value = [...o.value, m];
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)) {
43
+ o.value = [...o.value, f];
42
44
  try {
43
- if (_.value?.trigger) {
44
- let l = [n].map((L) => ({
45
- objectName: L.path,
46
- fileName: L.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(l);
50
+ await F.value?.trigger(l);
49
51
  }
50
52
  } finally {
51
- o.value = o.value.filter((l) => l !== m);
53
+ o.value = o.value.filter((l) => l !== f);
52
54
  }
53
55
  }
54
56
  }
55
- return (n, m) => (r(), A("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
66
  ...n.$attrs
59
67
  }, {
@@ -61,33 +69,33 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
61
69
  "--ap-appendix-column": `repeat(${Number(t?.column || 2)}, 1fr)`
62
70
  }
63
71
  }), [
64
- c(n.$slots, "title", {
72
+ d(n.$slots, "title", {
65
73
  fileList: t.fileList
66
74
  }, () => [
67
- p(W, {
68
- title: B.value,
75
+ r(Z, {
76
+ title: S.value,
69
77
  "help-message": t?.tooltip
70
78
  }, {
71
- suffix: d(() => [
79
+ suffix: c(() => [
72
80
  s("div", {
73
- class: i([e(a)("suffix")])
81
+ class: a([e(i)("suffix")])
74
82
  }, [
75
- c(n.$slots, "titleSuffix", {
83
+ d(n.$slots, "titleSuffix", {
76
84
  fileList: t.fileList
77
85
  }),
78
- c(n.$slots, "titleDownloadAllBtn", {
86
+ d(n.$slots, "titleDownloadAllBtn", {
79
87
  fileList: t.fileList
80
88
  }, () => [
81
- g.value ? N("", !0) : (r(), C(X, {
89
+ A.value ? k("", !0) : (p(), C(ee, {
82
90
  key: 0,
83
- class: i([e(a)("download-all")]),
84
- text: e(u)("ap.apAppendix.downloadAll"),
85
- "get-oss-access": x.value,
91
+ class: a([e(i)("download-all")]),
92
+ text: e(m)("ap.apAppendix.downloadAll"),
93
+ "get-oss-access": O.value,
86
94
  "file-name": t?.fileList ?? [],
87
95
  "need-name": t.needName
88
96
  }, {
89
- icon: d(() => [
90
- p(e(R))
97
+ icon: c(() => [
98
+ r(e(q))
91
99
  ]),
92
100
  _: 1
93
101
  }, 8, ["class", "text", "get-oss-access", "file-name", "need-name"]))
@@ -97,80 +105,108 @@ const Y = ["onClick"], de = /* @__PURE__ */ O({
97
105
  _: 3
98
106
  }, 8, ["title", "help-message"])
99
107
  ]),
100
- g.value ? N("", !0) : c(n.$slots, "fileArea", {
108
+ A.value ? k("", !0) : d(n.$slots, "fileArea", {
101
109
  key: 0,
102
110
  fileList: t.fileList
103
111
  }, () => [
104
112
  s("div", {
105
- class: i({
106
- [e(a)("file-area")]: !0,
107
- [e(k)("file-area", "border")]: !!t.isFileAreaBorder
113
+ class: a({
114
+ [e(i)("file-area")]: !0,
115
+ [e(w)("file-area", "border")]: !!t.isFileAreaBorder
108
116
  })
109
117
  }, [
110
118
  s("div", {
111
- class: i([e(a)("file-area-content")])
119
+ class: a([e(i)("file-area-content")])
112
120
  }, [
113
- (r(!0), A(V, null, D(v.value, (y, l) => (r(), A("div", {
121
+ (p(!0), L(G, null, U(y.value, (u, l) => (p(), L("div", {
114
122
  key: l,
115
- class: i({
116
- [e(a)("file-area-content-item")]: !0,
117
- [e(k)("file-area-content-item", "loading")]: o.value.includes(l)
123
+ class: a({
124
+ [e(i)("file-area-content-item")]: !0,
125
+ [e(w)("file-area-content-item", "loading")]: o.value.includes(l)
118
126
  })
119
127
  }, [
120
- p(e(U), null, j({
121
- default: d(() => [
122
- s("div", {
123
- class: i({
124
- [e(a)("file-area-content-item-content")]: !0,
125
- [e(a)("file-area-content-item--loading-content")]: o.value.includes(l)
126
- }),
127
- onClick: (L) => b(y, l)
128
- }, [
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(() => [
129
136
  s("div", {
130
- class: i([e(a)("file-area-content-item-icon")])
137
+ class: a([e(i)("file-area-content-item-content-text")]),
138
+ onClick: (v) => D(u)
131
139
  }, [
132
- o.value.includes(l) ? (r(), C(e(M), { key: 0 })) : (r(), C(e(q), { key: 1 }))
133
- ], 2),
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(() => [
134
167
  s("div", {
135
- class: i([e(a)("file-area-content-item-file-name")])
168
+ class: a([e(i)("file-area-content-item-icon-preview")]),
169
+ onClick: (v) => P(u, l)
136
170
  }, [
137
- p(e(z), {
138
- ellipsis: "",
139
- content: y.fileName
140
- }, null, 8, ["content"])
141
- ], 2)
142
- ], 10, Y)
143
- ]),
144
- _: 2
145
- }, [
146
- o.value.includes(l) ? void 0 : {
147
- name: "title",
148
- fn: d(() => [
149
- P(G(e(u)("ap.apAppendix.downloadFile")), 1)
171
+ r(e(J))
172
+ ], 10, ie)
150
173
  ]),
151
- key: "0"
152
- }
153
- ]), 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)
154
185
  ], 2))), 128))
155
186
  ], 2)
156
187
  ], 2)
157
188
  ]),
158
- g.value ? c(n.$slots, "empty", { key: 1 }, () => [
189
+ A.value ? d(n.$slots, "empty", { key: 1 }, () => [
159
190
  s("div", {
160
- class: i([e(a)("empty")])
191
+ class: a([e(i)("empty")])
161
192
  }, [
162
193
  s("div", {
163
- class: i([e(a)("empty-content")])
194
+ class: a([e(i)("empty-content")])
164
195
  }, [
165
- p(e($), {
166
- image: e($).PRESENTED_IMAGE_SIMPLE
167
- }, 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"])
168
204
  ], 2)
169
205
  ], 2)
170
- ]) : N("", !0)
206
+ ]) : k("", !0)
171
207
  ], 16));
172
208
  }
173
209
  });
174
210
  export {
175
- de as default
211
+ Ae as default
176
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,