@aplus-frontend/ui 6.30.1 → 6.31.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.
@@ -1,6 +1,7 @@
1
1
  import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
2
2
  import { ApGridColumnType, ColConfigType } from '../interface';
3
3
  import { ValueTypeRenderConfig } from '../../config-provider';
4
+ export declare function getValueByDataIndex(row: any, dataIndex?: DataIndex): any;
4
5
  export declare function dataIndexToField(dataIndex: DataIndex): string | undefined;
5
6
  export declare function transformFixed(fixed: ApGridColumnType['fixed']): "left" | "right" | undefined;
6
7
  /**
@@ -1,19 +1,23 @@
1
- import { createVNode as f, Fragment as p } from "vue";
2
- import { isUndefined as A, isArray as R, isString as y, isBoolean as c, isNumber as N, pick as b } from "lodash-unified";
3
- import { valueEnumToArray as w, objectToString as E, getTableTitle as F, getTableRenderType as O, getTableRenderProps as S, getTableCellRenderNode as $ } from "../../ap-table/utils.mjs";
4
- import { noRenderAsFormItemValueList as M } from "../../ap-table/constants.mjs";
1
+ import { createVNode as o, Fragment as p } from "vue";
2
+ import { isArray as c, isUndefined as N, isString as b, isBoolean as F, isNumber as E, pick as x } from "lodash-unified";
3
+ import { valueEnumToArray as O, objectToString as $, getTableTitle as v, getTableRenderType as w, getTableRenderProps as S, getTableCellRenderNode as V } from "../../ap-table/utils.mjs";
4
+ import { noRenderAsFormItemValueList as B } from "../../ap-table/constants.mjs";
5
5
  import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
6
- import V from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
- function v(e) {
8
- if (!A(e))
9
- return R(e) ? e.reduce((r, t) => y(t) ? `${r}.${t}` : `${r}[${t}]`, "") : String(e);
6
+ import M from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
+ function h(e, r) {
8
+ if (r)
9
+ return c(r) ? r.reduce((t, l) => t?.[l], e) : e?.[r];
10
10
  }
11
- function x(e) {
11
+ function A(e) {
12
+ if (!N(e))
13
+ return c(e) ? e.reduce((r, t) => b(t) ? `${r}${r ? "." : ""}${t}` : `${r}[${t}]`, "") : String(e);
14
+ }
15
+ function R(e) {
12
16
  if (e)
13
17
  return e === !0 ? "left" : e;
14
18
  }
15
19
  function j(e) {
16
- return c(e) ? {
20
+ return F(e) ? {
17
21
  sortable: e
18
22
  } : e ? {
19
23
  sortable: !0,
@@ -25,17 +29,17 @@ function j(e) {
25
29
  }
26
30
  function q(e) {
27
31
  let r;
28
- return c(e.filters) && e.valueEnum ? r = w(e.valueEnum) : r = e.filters, r?.map((t) => ({
29
- label: y(t.text) ? t.text : "",
32
+ return F(e.filters) && e.valueEnum ? r = O(e.valueEnum) : r = e.filters, r?.map((t) => ({
33
+ label: b(t.text) ? t.text : "",
30
34
  value: t.value
31
35
  }));
32
36
  }
33
- function B(e) {
37
+ function W(e) {
34
38
  if (e)
35
39
  return (r) => e(r.value, r.row);
36
40
  }
37
- function W(e, r) {
38
- return e ? N(e) ? {
41
+ function _(e, r) {
42
+ return e ? E(e) ? {
39
43
  tooltip: r,
40
44
  rows: e
41
45
  } : e === !0 || e === "tooltip" ? {
@@ -47,12 +51,12 @@ function W(e, r) {
47
51
  htmlTitle: e === "title" ? r : ""
48
52
  } : !1;
49
53
  }
50
- function _(e, r, t) {
51
- if (M.includes(e.valueType))
54
+ function k(e, r, t) {
55
+ if (B.includes(e.valueType))
52
56
  return t;
53
57
  if (e.copyable || e.ellipsis) {
54
- const l = W(e.ellipsis, r), i = E(r);
55
- return f(V, {
58
+ const l = _(e.ellipsis, r), i = $(r);
59
+ return o(M, {
56
60
  rawValue: i,
57
61
  copyable: e.copyable,
58
62
  ellipsis: l,
@@ -61,78 +65,79 @@ function _(e, r, t) {
61
65
  }
62
66
  return t;
63
67
  }
64
- function h(e, r, t) {
65
- const l = b(e, ["width", "minWidth", "align"]);
66
- return l.field = v(e.dataIndex), l.fixed = x(e.fixed), l.slots = {
67
- header: () => F(e, t, void 0, r)
68
+ function T(e, r, t) {
69
+ const l = x(e, ["width", "minWidth", "align"]);
70
+ return l.field = A(e.dataIndex), l.fixed = R(e.fixed), l.slots = {
71
+ header: () => v(e, t, void 0, r)
68
72
  }, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
69
73
  }
70
- const k = ({
74
+ const z = ({
71
75
  value: e,
72
76
  ...r
73
77
  }, t, l, i = !0) => {
74
- const s = O(t), d = S({
78
+ const s = w(t), d = S({
75
79
  ...t,
76
80
  valueType: s
77
81
  }, {
78
82
  value: e,
79
83
  ...r
80
- }), n = $(s, d, r.record, l), a = t.renderText?.({
84
+ }), n = V(s, d, r.record, l), a = t.renderText?.({
81
85
  value: e,
82
86
  ...r
83
- }) || e, u = t.renderText ? f(p, null, [t.renderText?.({
87
+ }) || e, u = t.renderText ? o(p, null, [t.renderText?.({
84
88
  value: e,
85
89
  ...r
86
90
  })]) : n;
87
- let o = i ? _(t, a, u) : u;
88
- return t.customRender && (o = t.customRender({
91
+ let f = i ? k(t, a, u) : u;
92
+ return t.customRender && (f = t.customRender({
89
93
  value: e,
90
94
  ...r,
91
95
  column: t,
92
- originalNode: o,
96
+ originalNode: f,
93
97
  originalText: a
94
- })), f(p, null, [o]);
98
+ })), o(p, null, [f]);
95
99
  };
96
- function T(e, r, t, l) {
97
- const i = b(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
98
- i.field = v(e.dataIndex), i.fixed = x(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, j(e.sorter)), i.filters = q(e), i.filterMultiple = e.filterMultiple, i.filterMethod = B(e.onFilter);
100
+ function y(e, r, t, l) {
101
+ const i = x(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
102
+ i.field = A(e.dataIndex), i.fixed = R(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, j(e.sorter)), i.filters = q(e), i.filterMultiple = e.filterMultiple, i.filterMethod = W(e.onFilter);
99
103
  const s = ({
100
104
  row: d,
101
105
  rowIndex: n
102
- }) => k({
103
- value: d[i.field],
104
- text: d[i.field],
106
+ }) => z({
107
+ value: h(d, e.dataIndex),
108
+ text: h(d, e.dataIndex),
105
109
  record: d,
106
110
  index: n,
107
111
  renderIndex: n,
108
112
  column: e
109
113
  }, e, l);
110
114
  return i.slots = {
111
- header: () => F(e, t, void 0, r),
115
+ header: () => v(e, t, void 0, r),
112
116
  default: s,
113
117
  footer: s
114
118
  }, e.html && (delete i.slots.default, delete i.slots.footer, i.type = "html"), e.seq && (i.type = "seq", i.slots = {}), i;
115
119
  }
116
- function H(e, r, t, l) {
120
+ function J(e, r, t, l) {
117
121
  if (!e.children?.length)
118
- return T(e, r, t, l);
122
+ return y(e, r, t, l);
119
123
  function i(d) {
120
124
  return d.map((n) => {
121
125
  if (n.children?.length) {
122
- const a = h(n, r, t);
126
+ const a = T(n, r, t);
123
127
  return a.children = i(n.children), a;
124
128
  }
125
- return T(n, r, t, l);
129
+ return y(n, r, t, l);
126
130
  });
127
131
  }
128
- const s = h(e, r, t);
132
+ const s = T(e, r, t);
129
133
  return s.children = i(e.children), s;
130
134
  }
131
135
  export {
132
- k as contentCustom,
133
- v as dataIndexToField,
134
- H as transformCol,
135
- x as transformFixed,
136
- h as transformToColGroup,
137
- T as transformToColumn
136
+ z as contentCustom,
137
+ A as dataIndexToField,
138
+ h as getValueByDataIndex,
139
+ J as transformCol,
140
+ R as transformFixed,
141
+ T as transformToColGroup,
142
+ y as transformToColumn
138
143
  };
@@ -1,18 +1,20 @@
1
- import { defineComponent as O, computed as p, ref as I, createElementBlock as m, openBlock as n, mergeProps as T, unref as e, renderSlot as d, createVNode as u, withCtx as g, createElementVNode as r, normalizeClass as o, createBlock as A, createCommentVNode as F, Fragment as V, renderList as S, createSlots as j, createTextVNode as D, toDisplayString as E } from "vue";
2
- import U from "./icons/file-icon.vue.mjs";
3
- import { Tooltip as z, TypographyText as G } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as P } from "@aplus-frontend/icon";
5
- import { LoadingOutlined as q } from "@ant-design/icons-vue";
1
+ import { defineComponent as T, computed as d, ref as E, createElementBlock as k, openBlock as r, mergeProps as V, unref as e, renderSlot as c, createCommentVNode as C, createVNode as v, withCtx as g, createElementVNode as s, normalizeClass as i, createBlock as p, Fragment as S, renderList as j, createSlots as D, createTextVNode as M, toDisplayString as h } from "vue";
2
+ import U from "./icons/empty-aplus-icon.vue.mjs";
3
+ import z from "./icons/empty-admin-icon.vue.mjs";
4
+ import G from "./icons/file-icon.vue.mjs";
5
+ import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
6
+ import { IconVariantDownload as H } from "@aplus-frontend/icon";
7
+ import { LoadingOutlined as J } from "@ant-design/icons-vue";
6
8
  import "../ap-title/ApTitle.vue.mjs";
7
9
  import "../../ap-download/ap-download.vue2.mjs";
8
10
  import "../../config-provider/index.mjs";
9
- import { getFileInfo as H } from "./utils/index.mjs";
10
- import { useNamespace as J } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useLocale as K } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
13
- import M from "../ap-title/ApTitle.vue2.mjs";
14
- import Q from "../../ap-download/ap-download.vue.mjs";
15
- const R = ["onClick"], fe = /* @__PURE__ */ O({
11
+ import { getFileInfo as K } from "./utils/index.mjs";
12
+ import { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import { useLocale as R } from "../../config-provider/hooks/use-locale.mjs";
14
+ import { useGlobalConfig as N } from "../../config-provider/hooks/use-global-config.mjs";
15
+ import W from "../ap-title/ApTitle.vue2.mjs";
16
+ import X from "../../ap-download/ap-download.vue.mjs";
17
+ const Y = ["onClick"], ve = /* @__PURE__ */ T({
16
18
  __name: "ap-appendix",
17
19
  props: {
18
20
  fileList: {},
@@ -23,67 +25,67 @@ const R = ["onClick"], fe = /* @__PURE__ */ O({
23
25
  column: { default: 2 },
24
26
  isFileAreaBorder: { type: Boolean, default: !1 }
25
27
  },
26
- setup(h) {
27
- const { b: w, e: a, em: C } = J("ap-appendix"), { t: v } = K(), l = h, $ = _("apUpload"), k = _(
28
+ setup(w) {
29
+ const { b: _, e: l, em: F } = Q("ap-appendix"), { t: m } = R(), x = N("uiMode"), a = w, B = N("apUpload"), $ = N(
28
30
  "downloadCenterTriggerConfig"
29
- ), c = p(
30
- () => H(l?.needName, l?.fileList ?? [])
31
- ), x = p(
32
- () => l.getOssAccess || $.value?.getOssAccess
33
- ), N = p(
34
- () => !(Array.isArray(c.value) && c.value.length)
35
- ), i = I([]), B = p(() => l.title || v("ap.apAppendix.appendix"));
36
- async function b(s, f) {
37
- if (!(i.value.findIndex((t) => t === f) > -1)) {
38
- i.value = [...i.value, f];
31
+ ), f = d(
32
+ () => K(a?.needName, a?.fileList ?? [])
33
+ ), I = d(
34
+ () => a.getOssAccess || B.value?.getOssAccess
35
+ ), y = d(
36
+ () => !(Array.isArray(f.value) && f.value.length)
37
+ ), o = E([]), b = d(() => a.title || m("ap.apAppendix.appendix"));
38
+ async function O(n, u) {
39
+ if (!(o.value.findIndex((t) => t === u) > -1)) {
40
+ o.value = [...o.value, u];
39
41
  try {
40
- if (k.value?.trigger) {
41
- let t = [s].map((L) => ({
42
+ if ($.value?.trigger) {
43
+ let t = [n].map((L) => ({
42
44
  objectName: L.path,
43
45
  fileName: L.fileName
44
46
  }));
45
- await k.value?.trigger(t);
47
+ await $.value?.trigger(t);
46
48
  }
47
49
  } finally {
48
- i.value = i.value.filter((t) => t !== f);
50
+ o.value = o.value.filter((t) => t !== u);
49
51
  }
50
52
  }
51
53
  }
52
- return (s, f) => (n(), m("div", T({
53
- class: [e(w)()]
54
+ return (n, u) => (r(), k("div", V({
55
+ class: [e(_)()]
54
56
  }, {
55
- ...s.$attrs
57
+ ...n.$attrs
56
58
  }, {
57
59
  style: {
58
- "--ap-appendix-column": `repeat(${Number(l?.column || 2)}, 1fr)`
60
+ "--ap-appendix-column": `repeat(${Number(a?.column || 2)}, 1fr)`
59
61
  }
60
62
  }), [
61
- d(s.$slots, "title", {
62
- fileList: l.fileList
63
+ c(n.$slots, "title", {
64
+ fileList: a.fileList
63
65
  }, () => [
64
- u(M, {
65
- title: B.value,
66
- "help-message": l?.tooltip
66
+ v(W, {
67
+ title: b.value,
68
+ "help-message": a?.tooltip
67
69
  }, {
68
70
  suffix: g(() => [
69
- r("div", {
70
- class: o([e(a)("suffix")])
71
+ s("div", {
72
+ class: i([e(l)("suffix")])
71
73
  }, [
72
- d(s.$slots, "titleSuffix", {
73
- fileList: l.fileList
74
+ c(n.$slots, "titleSuffix", {
75
+ fileList: a.fileList
74
76
  }),
75
- d(s.$slots, "titleDownloadAllBtn", {
76
- fileList: l.fileList
77
+ c(n.$slots, "titleDownloadAllBtn", {
78
+ fileList: a.fileList
77
79
  }, () => [
78
- N.value ? F("", !0) : (n(), A(Q, {
80
+ y.value ? C("", !0) : (r(), p(X, {
79
81
  key: 0,
80
- class: o([e(a)("download-all")]),
81
- text: e(v)("ap.apAppendix.downloadAll"),
82
- "get-oss-access": x.value,
83
- "file-name": c.value
82
+ class: i([e(l)("download-all")]),
83
+ text: e(m)("ap.apAppendix.downloadAll"),
84
+ "get-oss-access": I.value,
85
+ "file-name": f.value
84
86
  }, {
85
87
  icon: g(() => [
86
- u(e(P))
88
+ v(e(H))
87
89
  ]),
88
90
  _: 1
89
91
  }, 8, ["class", "text", "get-oss-access", "file-name"]))
@@ -93,67 +95,79 @@ const R = ["onClick"], fe = /* @__PURE__ */ O({
93
95
  _: 3
94
96
  }, 8, ["title", "help-message"])
95
97
  ]),
96
- d(s.$slots, "fileArea", {
97
- fileList: l.fileList
98
+ y.value ? C("", !0) : c(n.$slots, "fileArea", {
99
+ key: 0,
100
+ fileList: a.fileList
98
101
  }, () => [
99
- N.value ? F("", !0) : (n(), m("div", {
100
- key: 0,
101
- class: o({
102
- [e(a)("file-area")]: !0,
103
- [e(C)("file-area", "border")]: !!l.isFileAreaBorder
102
+ s("div", {
103
+ class: i({
104
+ [e(l)("file-area")]: !0,
105
+ [e(F)("file-area", "border")]: !!a.isFileAreaBorder
104
106
  })
105
107
  }, [
106
- r("div", {
107
- class: o([e(a)("file-area-content")])
108
+ s("div", {
109
+ class: i([e(l)("file-area-content")])
108
110
  }, [
109
- (n(!0), m(V, null, S(c.value, (y, t) => (n(), m("div", {
111
+ (r(!0), k(S, null, j(f.value, (A, t) => (r(), k("div", {
110
112
  key: t,
111
- class: o({
112
- [e(a)("file-area-content-item")]: !0,
113
- [e(C)("file-area-content-item", "loading")]: i.value.includes(t)
113
+ class: i({
114
+ [e(l)("file-area-content-item")]: !0,
115
+ [e(F)("file-area-content-item", "loading")]: o.value.includes(t)
114
116
  })
115
117
  }, [
116
- u(e(z), null, j({
118
+ v(e(P), null, D({
117
119
  default: g(() => [
118
- r("div", {
119
- class: o({
120
- [e(a)("file-area-content-item-content")]: !0,
121
- [e(a)("file-area-content-item--loading-content")]: i.value.includes(t)
120
+ s("div", {
121
+ class: i({
122
+ [e(l)("file-area-content-item-content")]: !0,
123
+ [e(l)("file-area-content-item--loading-content")]: o.value.includes(t)
122
124
  }),
123
- onClick: (L) => b(y, t)
125
+ onClick: (L) => O(A, t)
124
126
  }, [
125
- r("div", {
126
- class: o([e(a)("file-area-content-item-icon")])
127
+ s("div", {
128
+ class: i([e(l)("file-area-content-item-icon")])
127
129
  }, [
128
- i.value.includes(t) ? (n(), A(e(q), { key: 0 })) : (n(), A(U, { key: 1 }))
130
+ o.value.includes(t) ? (r(), p(e(J), { key: 0 })) : (r(), p(G, { key: 1 }))
129
131
  ], 2),
130
- r("div", {
131
- class: o([e(a)("file-area-content-item-file-name")])
132
+ s("div", {
133
+ class: i([e(l)("file-area-content-item-file-name")])
132
134
  }, [
133
- u(e(G), {
135
+ v(e(q), {
134
136
  ellipsis: "",
135
- content: y.fileName
137
+ content: A.fileName
136
138
  }, null, 8, ["content"])
137
139
  ], 2)
138
- ], 10, R)
140
+ ], 10, Y)
139
141
  ]),
140
142
  _: 2
141
143
  }, [
142
- i.value.includes(t) ? void 0 : {
144
+ o.value.includes(t) ? void 0 : {
143
145
  name: "title",
144
146
  fn: g(() => [
145
- D(E(e(v)("ap.apAppendix.downloadFile")), 1)
147
+ M(h(e(m)("ap.apAppendix.downloadFile")), 1)
146
148
  ]),
147
149
  key: "0"
148
150
  }
149
151
  ]), 1024)
150
152
  ], 2))), 128))
151
153
  ], 2)
152
- ], 2))
153
- ])
154
+ ], 2)
155
+ ]),
156
+ y.value ? c(n.$slots, "empty", { key: 1 }, () => [
157
+ s("div", {
158
+ class: i([e(l)("empty")])
159
+ }, [
160
+ s("div", {
161
+ class: i([e(l)("empty-content")])
162
+ }, [
163
+ e(x) === "aplus" ? (r(), p(U, { key: 0 })) : (r(), p(z, { key: 1 })),
164
+ s("span", null, h(e(m)("ap.apAppendix.empty")), 1)
165
+ ], 2)
166
+ ], 2)
167
+ ]) : C("", !0)
154
168
  ], 16));
155
169
  }
156
170
  });
157
171
  export {
158
- fe as default
172
+ ve as default
159
173
  };
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { createElementBlock as l, openBlock as i, createStaticVNode as e } from "vue";
2
+ import Q from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
+ const o = {}, L = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
6
+ fill: "none",
7
+ version: "1.1",
8
+ width: "88",
9
+ height: "88.5078125",
10
+ viewBox: "0 0 88 88.5078125"
11
+ };
12
+ function r(p, t) {
13
+ return i(), l("svg", L, t[0] || (t[0] = [
14
+ e('<defs><clipPath id="master_svg0_373_19161"><rect x="0" y="33" width="88" height="55.507694244384766" rx="0"></rect></clipPath></defs><g><g clip-path="url(#master_svg0_373_19161)"><g><g><path d="M12.375,72.37709593772888C4.71416,74.08249593772888,0,76.40572593772887,0,78.96611593772889C0,84.20009593772889,19.6995,88.44299593772888,44,88.44299593772888C68.3005,88.44299593772888,88,84.20009593772889,88,78.96611593772889C88,76.40572593772887,83.2858,74.08249593772888,75.625,72.37709608666788C75.625,72.37709608666788,75.625,76.50840593772888,75.625,76.50840593772888C75.625,79.38261593772889,73.81,81.73831593772888,71.5687,81.73831593772888C71.5687,81.73831593772888,16.4312,81.73831593772888,16.4312,81.73831593772888C14.19,81.73831593772888,12.375,79.38126593772888,12.375,76.50840593772888C12.375,76.50840593772888,12.375,72.37709593772888,12.375,72.37709593772888Z" fill="#000000" fill-opacity="0.03999999910593033"></path></g><g><g><path d="M57.2179,55.92138781272888C57.2179,53.74846781272888,58.5846,51.95462166272888,60.28,51.95326781272888C60.28,51.95326781272888,75.625,51.95326781272888,75.625,51.95326781272888C75.625,51.95326781272888,75.625,76.50796781272888,75.625,76.50796781272888C75.625,79.38216781272888,73.81,81.73786781272888,71.5687,81.73786781272888C71.5687,81.73786781272888,16.43125,81.73786781272888,16.43125,81.73786781272888C14.19,81.73786781272888,12.375,79.38086781272888,12.375,76.50796781272888C12.375,76.50796781272888,12.375,51.95326781272888,12.375,51.95326781272888C12.375,51.95326781272888,27.72,51.95326781272888,27.72,51.95326781272888C29.4154,51.95326781272888,30.7821,53.74440781272888,30.7821,55.917327812728885C30.7821,55.917327812728885,30.7821,55.947117812728884,30.7821,55.947117812728884C30.7821,58.12003781272888,32.164,59.874617812728886,33.858000000000004,59.874617812728886C33.858000000000004,59.874617812728886,54.142,59.874617812728886,54.142,59.874617812728886C55.836,59.874617812728886,57.2179,58.10378781272888,57.2179,55.930867812728884C57.2179,55.930867812728884,57.2179,55.92138781272888,57.2179,55.92138781272888C57.2179,55.92138781272888,57.2179,55.92138781272888,57.2179,55.92138781272888Z" fill="#000000" fill-opacity="0.03999999910593033"></path><path d="M57.7179,55.930867812728884L57.7179,55.92138781272888Q57.7179,54.45772781272888,58.5096,53.42769781272888Q59.258,52.45408381272888,60.28,52.45326781272888L75.125,52.45326781272888L75.125,76.50796781272888Q75.125,78.49546781272889,74.0419,79.89476781272889Q73.00229999999999,81.23786781272888,71.5687,81.23786781272888L16.43125,81.23786781272888Q14.997869999999999,81.23786781272888,13.95808,79.89426781272888Q12.875,78.49466781272888,12.875,76.50796781272888L12.875,52.45326781272888L27.72,52.45326781272888Q28.7425,52.45326781272888,29.4906,53.42538781272888Q30.2821,54.45397781272888,30.2821,55.917327812728885L30.2821,55.947117812728884Q30.2821,57.74781781272888,31.2914,59.03433781272888Q32.3429,60.37462781272888,33.858000000000004,60.374617812728886L54.142,60.374617812728886Q55.6567,60.374617812728886,56.7094,59.02511781272888Q57.7179,57.73234781272888,57.7179,55.930867812728884ZM57.7168,52.81828281272888Q56.7179,54.11781781272888,56.7179,55.92138781272888L56.7179,55.930867812728884Q56.7179,57.38843781272888,55.921,58.41005781272888Q55.1685,59.374617812728886,54.142,59.374617812728886L33.858000000000004,59.374617812728886Q32.8294,59.374617812728886,32.078199999999995,58.41708781272888Q31.2821,57.40236781272888,31.2821,55.947117812728884L31.2821,55.917327812728885Q31.2821,54.11374781272888,30.2831,52.81551981272888Q29.2348,51.45326781272888,27.72,51.45326781272888L11.875,51.45326781272888L11.875,76.50796781272888Q11.875,78.83636781272888,13.167231,80.50626781272888Q14.50727,82.23786781272888,16.43125,82.23786781272888L71.5687,82.23786781272888Q73.49289999999999,82.23786781272888,74.8327,80.50676781272888Q76.125,78.83726781272888,76.125,76.50796781272888L76.125,51.45326781272888L60.28,51.45326781272888Q58.765,51.45447781272888,57.7168,52.81828281272888Z" fill-rule="evenodd" fill="#000000" fill-opacity="0.15000000596046448"></path></g><g><path d="M25.9259,36.227007812728885L12.002564,51.77106781272888L12.747436,52.43826781272888L26.726100000000002,36.83247781272888L26.7485,36.79707781272888Q27.676299999999998,35.32826781272888,29.0029,35.32826781272888L58.9971,35.32826781272888Q60.324,35.32826781272888,61.2514,36.798187812728884L61.2738,36.833737812728884L75.2526,52.43696781272888L75.9974,51.76966781272888L62.0741,36.228457812728884Q60.8579,34.32826781272888,58.9971,34.32826781272888L29.0029,34.32826781272888Q27.142699999999998,34.32826781272888,25.9259,36.227007812728885Z" fill-rule="evenodd" fill="#000000" fill-opacity="0.15000000596046448"></path></g></g></g></g></g>', 2)
15
+ ]));
16
+ }
17
+ const g = /* @__PURE__ */ Q(o, [["render", r]]);
18
+ export {
19
+ g as default
20
+ };
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { createElementBlock as l, openBlock as e, createStaticVNode as i } from "vue";
2
+ import Q from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
+ const o = {}, L = {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
6
+ fill: "none",
7
+ version: "1.1",
8
+ width: "88",
9
+ height: "88.5078125",
10
+ viewBox: "0 0 88 88.5078125"
11
+ };
12
+ function p(r, t) {
13
+ return e(), l("svg", L, t[0] || (t[0] = [
14
+ i('<defs><clipPath id="master_svg0_373_19161"><rect x="0" y="33" width="88" height="55.507694244384766" rx="0"></rect></clipPath></defs><g><g clip-path="url(#master_svg0_373_19161)"><g><g><path d="M12.375,72.37709593772888C4.71416,74.08249593772888,0,76.40572593772887,0,78.96611593772889C0,84.20009593772889,19.6995,88.44299593772888,44,88.44299593772888C68.3005,88.44299593772888,88,84.20009593772889,88,78.96611593772889C88,76.40572593772887,83.2858,74.08249593772888,75.625,72.37709608666788C75.625,72.37709608666788,75.625,76.50840593772888,75.625,76.50840593772888C75.625,79.38261593772889,73.81,81.73831593772888,71.5687,81.73831593772888C71.5687,81.73831593772888,16.4312,81.73831593772888,16.4312,81.73831593772888C14.19,81.73831593772888,12.375,79.38126593772888,12.375,76.50840593772888C12.375,76.50840593772888,12.375,72.37709593772888,12.375,72.37709593772888Z" fill="#F6F6F8" fill-opacity="1"></path></g><g><g><path d="M57.2179,55.92138781272888C57.2179,53.74846781272888,58.5846,51.95462166272888,60.28,51.95326781272888C60.28,51.95326781272888,75.625,51.95326781272888,75.625,51.95326781272888C75.625,51.95326781272888,75.625,76.50796781272888,75.625,76.50796781272888C75.625,79.38216781272888,73.81,81.73786781272888,71.5687,81.73786781272888C71.5687,81.73786781272888,16.43125,81.73786781272888,16.43125,81.73786781272888C14.19,81.73786781272888,12.375,79.38086781272888,12.375,76.50796781272888C12.375,76.50796781272888,12.375,51.95326781272888,12.375,51.95326781272888C12.375,51.95326781272888,27.72,51.95326781272888,27.72,51.95326781272888C29.4154,51.95326781272888,30.7821,53.74440781272888,30.7821,55.917327812728885C30.7821,55.917327812728885,30.7821,55.947117812728884,30.7821,55.947117812728884C30.7821,58.12003781272888,32.164,59.874617812728886,33.858000000000004,59.874617812728886C33.858000000000004,59.874617812728886,54.142,59.874617812728886,54.142,59.874617812728886C55.836,59.874617812728886,57.2179,58.10378781272888,57.2179,55.930867812728884C57.2179,55.930867812728884,57.2179,55.92138781272888,57.2179,55.92138781272888C57.2179,55.92138781272888,57.2179,55.92138781272888,57.2179,55.92138781272888Z" fill="#FAFBFB" fill-opacity="1"></path><path d="M57.7179,55.930867812728884L57.7179,55.92138781272888Q57.7179,54.45772781272888,58.5096,53.42769781272888Q59.258,52.45408381272888,60.28,52.45326781272888L75.125,52.45326781272888L75.125,76.50796781272888Q75.125,78.49546781272889,74.0419,79.89476781272889Q73.00229999999999,81.23786781272888,71.5687,81.23786781272888L16.43125,81.23786781272888Q14.997869999999999,81.23786781272888,13.95808,79.89426781272888Q12.875,78.49466781272888,12.875,76.50796781272888L12.875,52.45326781272888L27.72,52.45326781272888Q28.7425,52.45326781272888,29.4906,53.42538781272888Q30.2821,54.45397781272888,30.2821,55.917327812728885L30.2821,55.947117812728884Q30.2821,57.74781781272888,31.2914,59.03433781272888Q32.3429,60.37462781272888,33.858000000000004,60.374617812728886L54.142,60.374617812728886Q55.6567,60.374617812728886,56.7094,59.02511781272888Q57.7179,57.73234781272888,57.7179,55.930867812728884ZM57.7168,52.81828281272888Q56.7179,54.11781781272888,56.7179,55.92138781272888L56.7179,55.930867812728884Q56.7179,57.38843781272888,55.921,58.41005781272888Q55.1685,59.374617812728886,54.142,59.374617812728886L33.858000000000004,59.374617812728886Q32.8294,59.374617812728886,32.078199999999995,58.41708781272888Q31.2821,57.40236781272888,31.2821,55.947117812728884L31.2821,55.917327812728885Q31.2821,54.11374781272888,30.2831,52.81551981272888Q29.2348,51.45326781272888,27.72,51.45326781272888L11.875,51.45326781272888L11.875,76.50796781272888Q11.875,78.83636781272888,13.167231,80.50626781272888Q14.50727,82.23786781272888,16.43125,82.23786781272888L71.5687,82.23786781272888Q73.49289999999999,82.23786781272888,74.8327,80.50676781272888Q76.125,78.83726781272888,76.125,76.50796781272888L76.125,51.45326781272888L60.28,51.45326781272888Q58.765,51.45447781272888,57.7168,52.81828281272888Z" fill-rule="evenodd" fill="#DBDFE4" fill-opacity="1"></path></g><g><path d="M25.9259,36.227007812728885L12.002564,51.77106781272888L12.747436,52.43826781272888L26.726100000000002,36.83247781272888L26.7485,36.79707781272888Q27.676299999999998,35.32826781272888,29.0029,35.32826781272888L58.9971,35.32826781272888Q60.324,35.32826781272888,61.2514,36.798187812728884L61.2738,36.833737812728884L75.2526,52.43696781272888L75.9974,51.76966781272888L62.0741,36.228457812728884Q60.8579,34.32826781272888,58.9971,34.32826781272888L29.0029,34.32826781272888Q27.142699999999998,34.32826781272888,25.9259,36.227007812728885Z" fill-rule="evenodd" fill="#DBDFE4" fill-opacity="1"></path></g></g></g></g></g>', 2)
15
+ ]));
16
+ }
17
+ const g = /* @__PURE__ */ Q(o, [["render", p]]);
18
+ export {
19
+ g as default
20
+ };
@@ -54,4 +54,5 @@ export interface ApAppendixSlots<FileType = any> {
54
54
  title: (props: ApAppendixBaseSlotProps<FileType>) => any;
55
55
  titleSuffix: (props: ApAppendixBaseSlotProps<FileType>) => any;
56
56
  titleDownloadAllBtn: (props: ApAppendixBaseSlotProps<FileType>) => any;
57
+ empty: () => any;
57
58
  }
@@ -145,7 +145,8 @@ const a = {
145
145
  apAppendix: {
146
146
  downloadAll: "Download All",
147
147
  downloadFile: "Download file",
148
- appendix: "Appendix"
148
+ appendix: "Appendix",
149
+ empty: "No data"
149
150
  },
150
151
  batchInputGroup: {
151
152
  popoverInputPlaceholder: "A maximum of {maxNum} entries can be entered in batches, separated by newlines"
@@ -153,7 +153,8 @@ const a = {
153
153
  apAppendix: {
154
154
  downloadAll: "下载全部",
155
155
  downloadFile: "下载文件",
156
- appendix: "附件"
156
+ appendix: "附件",
157
+ empty: "暂无数据"
157
158
  },
158
159
  batchInputGroup: {
159
160
  popoverInputPlaceholder: "支持批量输入,可用换行符分隔,最多输入{maxNum}条"
@@ -1,2 +1,2 @@
1
- declare const _default: "6.30.1";
1
+ declare const _default: "6.31.0";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "6.30.1";
1
+ const e = "6.31.0";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1,6 +1,7 @@
1
1
  import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
2
2
  import { ApGridColumnType, ColConfigType } from '../interface';
3
3
  import { ValueTypeRenderConfig } from '../../config-provider';
4
+ export declare function getValueByDataIndex(row: any, dataIndex?: DataIndex): any;
4
5
  export declare function dataIndexToField(dataIndex: DataIndex): string | undefined;
5
6
  export declare function transformFixed(fixed: ApGridColumnType['fixed']): "left" | "right" | undefined;
6
7
  /**
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),s=require("lodash-unified"),o=require("../../ap-table/utils.js"),F=require("../../ap-table/constants.js");require("../../ap-table/components/paragraph-ellipsis/index.vue.js");const x=require("../../ap-table/components/paragraph-ellipsis/index.vue2.js");function T(e){if(!s.isUndefined(e))return s.isArray(e)?e.reduce((t,r)=>s.isString(r)?`${t}.${r}`:`${t}[${r}]`,""):String(e)}function y(e){if(e)return e===!0?"left":e}function q(e){return s.isBoolean(e)?{sortable:e}:e?{sortable:!0,sortType:e?.type,sortBy:e?.by}:{sortable:!1}}function N(e){let t;return s.isBoolean(e.filters)&&e.valueEnum?t=o.valueEnumToArray(e.valueEnum):t=e.filters,t?.map(r=>({label:s.isString(r.text)?r.text:"",value:r.value}))}function A(e){if(e)return t=>e(t.value,t.row)}function R(e,t){return e?s.isNumber(e)?{tooltip:t,rows:e}:e===!0||e==="tooltip"?{tooltip:t,rows:1}:{tooltip:null,rows:1,htmlTitle:e==="title"?t:""}:!1}function S(e,t,r){if(F.noRenderAsFormItemValueList.includes(e.valueType))return r;if(e.copyable||e.ellipsis){const n=R(e.ellipsis,t),i=o.objectToString(t);return f.createVNode(x.default,{rawValue:i,copyable:e.copyable,ellipsis:n,content:r},null)}return r}function h(e,t,r){const n=s.pick(e,["width","minWidth","align"]);return n.field=T(e.dataIndex),n.fixed=y(e.fixed),n.slots={header:()=>o.getTableTitle(e,r,void 0,t)},n.headerAlign=e.align,n.showOverflow=!1,n.showFooterOverflow=!1,n}const v=({value:e,...t},r,n,i=!0)=>{const d=o.getTableRenderType(r),a=o.getTableRenderProps({...r,valueType:d},{value:e,...t}),l=o.getTableCellRenderNode(d,a,t.record,n),u=r.renderText?.({value:e,...t})||e,b=r.renderText?f.createVNode(f.Fragment,null,[r.renderText?.({value:e,...t})]):l;let p=i?S(r,u,b):b;return r.customRender&&(p=r.customRender({value:e,...t,column:r,originalNode:p,originalText:u})),f.createVNode(f.Fragment,null,[p])};function c(e,t,r,n){const i=s.pick(e,["width","minWidth","align","resizable","className","headerClassName","footerClassName","treeNode"]);i.field=T(e.dataIndex),i.fixed=y(e.fixed),i.headerAlign=e.align,i.footerAlign=e.align,i.showOverflow=!1,i.showFooterOverflow=!1,Object.assign(i,q(e.sorter)),i.filters=N(e),i.filterMultiple=e.filterMultiple,i.filterMethod=A(e.onFilter);const d=({row:a,rowIndex:l})=>v({value:a[i.field],text:a[i.field],record:a,index:l,renderIndex:l,column:e},e,n);return i.slots={header:()=>o.getTableTitle(e,r,void 0,t),default:d,footer:d},e.html&&(delete i.slots.default,delete i.slots.footer,i.type="html"),e.seq&&(i.type="seq",i.slots={}),i}function _(e,t,r,n){if(!e.children?.length)return c(e,t,r,n);function i(a){return a.map(l=>{if(l.children?.length){const u=h(l,t,r);return u.children=i(l.children),u}return c(l,t,r,n)})}const d=h(e,t,r);return d.children=i(e.children),d}exports.contentCustom=v;exports.dataIndexToField=T;exports.transformCol=_;exports.transformFixed=y;exports.transformToColGroup=h;exports.transformToColumn=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),l=require("lodash-unified"),u=require("../../ap-table/utils.js"),x=require("../../ap-table/constants.js");require("../../ap-table/components/paragraph-ellipsis/index.vue.js");const q=require("../../ap-table/components/paragraph-ellipsis/index.vue2.js");function h(e,t){if(t)return l.isArray(t)?t.reduce((r,n)=>r?.[n],e):e?.[t]}function y(e){if(!l.isUndefined(e))return l.isArray(e)?e.reduce((t,r)=>l.isString(r)?`${t}${t?".":""}${r}`:`${t}[${r}]`,""):String(e)}function b(e){if(e)return e===!0?"left":e}function A(e){return l.isBoolean(e)?{sortable:e}:e?{sortable:!0,sortType:e?.type,sortBy:e?.by}:{sortable:!1}}function N(e){let t;return l.isBoolean(e.filters)&&e.valueEnum?t=u.valueEnumToArray(e.valueEnum):t=e.filters,t?.map(r=>({label:l.isString(r.text)?r.text:"",value:r.value}))}function R(e){if(e)return t=>e(t.value,t.row)}function S(e,t){return e?l.isNumber(e)?{tooltip:t,rows:e}:e===!0||e==="tooltip"?{tooltip:t,rows:1}:{tooltip:null,rows:1,htmlTitle:e==="title"?t:""}:!1}function V(e,t,r){if(x.noRenderAsFormItemValueList.includes(e.valueType))return r;if(e.copyable||e.ellipsis){const n=S(e.ellipsis,t),i=u.objectToString(t);return f.createVNode(q.default,{rawValue:i,copyable:e.copyable,ellipsis:n,content:r},null)}return r}function c(e,t,r){const n=l.pick(e,["width","minWidth","align"]);return n.field=y(e.dataIndex),n.fixed=b(e.fixed),n.slots={header:()=>u.getTableTitle(e,r,void 0,t)},n.headerAlign=e.align,n.showOverflow=!1,n.showFooterOverflow=!1,n}const v=({value:e,...t},r,n,i=!0)=>{const a=u.getTableRenderType(r),d=u.getTableRenderProps({...r,valueType:a},{value:e,...t}),s=u.getTableCellRenderNode(a,d,t.record,n),o=r.renderText?.({value:e,...t})||e,F=r.renderText?f.createVNode(f.Fragment,null,[r.renderText?.({value:e,...t})]):s;let p=i?V(r,o,F):F;return r.customRender&&(p=r.customRender({value:e,...t,column:r,originalNode:p,originalText:o})),f.createVNode(f.Fragment,null,[p])};function T(e,t,r,n){const i=l.pick(e,["width","minWidth","align","resizable","className","headerClassName","footerClassName","treeNode"]);i.field=y(e.dataIndex),i.fixed=b(e.fixed),i.headerAlign=e.align,i.footerAlign=e.align,i.showOverflow=!1,i.showFooterOverflow=!1,Object.assign(i,A(e.sorter)),i.filters=N(e),i.filterMultiple=e.filterMultiple,i.filterMethod=R(e.onFilter);const a=({row:d,rowIndex:s})=>v({value:h(d,e.dataIndex),text:h(d,e.dataIndex),record:d,index:s,renderIndex:s,column:e},e,n);return i.slots={header:()=>u.getTableTitle(e,r,void 0,t),default:a,footer:a},e.html&&(delete i.slots.default,delete i.slots.footer,i.type="html"),e.seq&&(i.type="seq",i.slots={}),i}function _(e,t,r,n){if(!e.children?.length)return T(e,t,r,n);function i(d){return d.map(s=>{if(s.children?.length){const o=c(s,t,r);return o.children=i(s.children),o}return T(s,t,r,n)})}const a=c(e,t,r);return a.children=i(e.children),a}exports.contentCustom=v;exports.dataIndexToField=y;exports.getValueByDataIndex=h;exports.transformCol=_;exports.transformFixed=b;exports.transformToColGroup=c;exports.transformToColumn=T;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("./icons/file-icon.vue.js"),m=require("@aplus-frontend/antdv"),L=require("@aplus-frontend/icon"),A=require("@ant-design/icons-vue");require("../ap-title/ApTitle.vue.js");require("../../ap-download/ap-download.vue2.js");require("../../config-provider/index.js");const q=require("./utils/index.js"),w=require("../../config-provider/hooks/use-namespace.js"),V=require("../../config-provider/hooks/use-locale.js"),v=require("../../config-provider/hooks/use-global-config.js"),h=require("../ap-title/ApTitle.vue2.js"),b=require("../../ap-download/ap-download.vue.js"),x=["onClick"],E=e.defineComponent({__name:"ap-appendix",props:{fileList:{},needName:{type:[Boolean,Object],default:!1},getOssAccess:{},title:{},tooltip:{},column:{default:2},isFileAreaBorder:{type:Boolean,default:!1}},setup(g){const{b:C,e:a,em:d}=w.useNamespace("ap-appendix"),{t:s}=V.useLocale(),l=g,k=v.useGlobalConfig("apUpload"),f=v.useGlobalConfig("downloadCenterTriggerConfig"),i=e.computed(()=>q.getFileInfo(l?.needName,l?.fileList??[])),_=e.computed(()=>l.getOssAccess||k.value?.getOssAccess),p=e.computed(()=>!(Array.isArray(i.value)&&i.value.length)),n=e.ref([]),y=e.computed(()=>l.title||s("ap.apAppendix.appendix"));async function N(o,r){if(!(n.value.findIndex(t=>t===r)>-1)){n.value=[...n.value,r];try{if(f.value?.trigger){let t=[o].map(u=>({objectName:u.path,fileName:u.fileName}));await f.value?.trigger(t)}}finally{n.value=n.value.filter(t=>t!==r)}}}return(o,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(C)()]},{...o.$attrs},{style:{"--ap-appendix-column":`repeat(${Number(l?.column||2)}, 1fr)`}}),[e.renderSlot(o.$slots,"title",{fileList:l.fileList},()=>[e.createVNode(h.default,{title:y.value,"help-message":l?.tooltip},{suffix:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("suffix")])},[e.renderSlot(o.$slots,"titleSuffix",{fileList:l.fileList}),e.renderSlot(o.$slots,"titleDownloadAllBtn",{fileList:l.fileList},()=>[p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b.default,{key:0,class:e.normalizeClass([e.unref(a)("download-all")]),text:e.unref(s)("ap.apAppendix.downloadAll"),"get-oss-access":_.value,"file-name":i.value},{icon:e.withCtx(()=>[e.createVNode(e.unref(L.IconVariantDownload))]),_:1},8,["class","text","get-oss-access","file-name"]))])],2)]),_:3},8,["title","help-message"])]),e.renderSlot(o.$slots,"fileArea",{fileList:l.fileList},()=>[p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(a)("file-area")]:!0,[e.unref(d)("file-area","border")]:!!l.isFileAreaBorder})},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("file-area-content")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(c,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass({[e.unref(a)("file-area-content-item")]:!0,[e.unref(d)("file-area-content-item","loading")]:n.value.includes(t)})},[e.createVNode(e.unref(m.Tooltip),null,e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(a)("file-area-content-item-content")]:!0,[e.unref(a)("file-area-content-item--loading-content")]:n.value.includes(t)}),onClick:u=>N(c,t)},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("file-area-content-item-icon")])},[n.value.includes(t)?(e.openBlock(),e.createBlock(e.unref(A.LoadingOutlined),{key:0})):(e.openBlock(),e.createBlock(B.default,{key:1}))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(a)("file-area-content-item-file-name")])},[e.createVNode(e.unref(m.TypographyText),{ellipsis:"",content:c.fileName},null,8,["content"])],2)],10,x)]),_:2},[n.value.includes(t)?void 0:{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("ap.apAppendix.downloadFile")),1)]),key:"0"}]),1024)],2))),128))],2)],2))])],16))}});exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("./icons/empty-aplus-icon.vue.js"),V=require("./icons/empty-admin-icon.vue.js"),L=require("./icons/file-icon.vue.js"),v=require("@aplus-frontend/antdv"),q=require("@aplus-frontend/icon"),w=require("@ant-design/icons-vue");require("../ap-title/ApTitle.vue.js");require("../../ap-download/ap-download.vue2.js");require("../../config-provider/index.js");const E=require("./utils/index.js"),b=require("../../config-provider/hooks/use-namespace.js"),h=require("../../config-provider/hooks/use-locale.js"),f=require("../../config-provider/hooks/use-global-config.js"),x=require("../ap-title/ApTitle.vue2.js"),S=require("../../ap-download/ap-download.vue.js"),z=["onClick"],F=e.defineComponent({__name:"ap-appendix",props:{fileList:{},needName:{type:[Boolean,Object],default:!1},getOssAccess:{},title:{},tooltip:{},column:{default:2},isFileAreaBorder:{type:Boolean,default:!1}},setup(g){const{b:y,e:l,em:p}=b.useNamespace("ap-appendix"),{t:r}=h.useLocale(),C=f.useGlobalConfig("uiMode"),n=g,k=f.useGlobalConfig("apUpload"),m=f.useGlobalConfig("downloadCenterTriggerConfig"),s=e.computed(()=>E.getFileInfo(n?.needName,n?.fileList??[])),N=e.computed(()=>n.getOssAccess||k.value?.getOssAccess),c=e.computed(()=>!(Array.isArray(s.value)&&s.value.length)),a=e.ref([]),B=e.computed(()=>n.title||r("ap.apAppendix.appendix"));async function _(o,i){if(!(a.value.findIndex(t=>t===i)>-1)){a.value=[...a.value,i];try{if(m.value?.trigger){let t=[o].map(d=>({objectName:d.path,fileName:d.fileName}));await m.value?.trigger(t)}}finally{a.value=a.value.filter(t=>t!==i)}}}return(o,i)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:[e.unref(y)()]},{...o.$attrs},{style:{"--ap-appendix-column":`repeat(${Number(n?.column||2)}, 1fr)`}}),[e.renderSlot(o.$slots,"title",{fileList:n.fileList},()=>[e.createVNode(x.default,{title:B.value,"help-message":n?.tooltip},{suffix:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("suffix")])},[e.renderSlot(o.$slots,"titleSuffix",{fileList:n.fileList}),e.renderSlot(o.$slots,"titleDownloadAllBtn",{fileList:n.fileList},()=>[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S.default,{key:0,class:e.normalizeClass([e.unref(l)("download-all")]),text:e.unref(r)("ap.apAppendix.downloadAll"),"get-oss-access":N.value,"file-name":s.value},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.IconVariantDownload))]),_:1},8,["class","text","get-oss-access","file-name"]))])],2)]),_:3},8,["title","help-message"])]),c.value?e.createCommentVNode("",!0):e.renderSlot(o.$slots,"fileArea",{key:0,fileList:n.fileList},()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(l)("file-area")]:!0,[e.unref(p)("file-area","border")]:!!n.isFileAreaBorder})},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content")])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(u,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass({[e.unref(l)("file-area-content-item")]:!0,[e.unref(p)("file-area-content-item","loading")]:a.value.includes(t)})},[e.createVNode(e.unref(v.Tooltip),null,e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(l)("file-area-content-item-content")]:!0,[e.unref(l)("file-area-content-item--loading-content")]:a.value.includes(t)}),onClick:d=>_(u,t)},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content-item-icon")])},[a.value.includes(t)?(e.openBlock(),e.createBlock(e.unref(w.LoadingOutlined),{key:0})):(e.openBlock(),e.createBlock(L.default,{key:1}))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("file-area-content-item-file-name")])},[e.createVNode(e.unref(v.TypographyText),{ellipsis:"",content:u.fileName},null,8,["content"])],2)],10,z)]),_:2},[a.value.includes(t)?void 0:{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apAppendix.downloadFile")),1)]),key:"0"}]),1024)],2))),128))],2)],2)]),c.value?e.renderSlot(o.$slots,"empty",{key:1},()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("empty")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l)("empty-content")])},[e.unref(C)==="aplus"?(e.openBlock(),e.createBlock(A.default,{key:0})):(e.openBlock(),e.createBlock(V.default,{key:1})),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("ap.apAppendix.empty")),1)],2)],2)]):e.createCommentVNode("",!0)],16))}});exports.default=F;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../../_virtual/_plugin-vue_export-helper.js"),i={},r={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"88",height:"88.5078125",viewBox:"0 0 88 88.5078125"};function o(n,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createStaticVNode('<defs><clipPath id="master_svg0_373_19161"><rect x="0" y="33" width="88" height="55.507694244384766" rx="0"></rect></clipPath></defs><g><g clip-path="url(#master_svg0_373_19161)"><g><g><path d="M12.375,72.37709593772888C4.71416,74.08249593772888,0,76.40572593772887,0,78.96611593772889C0,84.20009593772889,19.6995,88.44299593772888,44,88.44299593772888C68.3005,88.44299593772888,88,84.20009593772889,88,78.96611593772889C88,76.40572593772887,83.2858,74.08249593772888,75.625,72.37709608666788C75.625,72.37709608666788,75.625,76.50840593772888,75.625,76.50840593772888C75.625,79.38261593772889,73.81,81.73831593772888,71.5687,81.73831593772888C71.5687,81.73831593772888,16.4312,81.73831593772888,16.4312,81.73831593772888C14.19,81.73831593772888,12.375,79.38126593772888,12.375,76.50840593772888C12.375,76.50840593772888,12.375,72.37709593772888,12.375,72.37709593772888Z" fill="#000000" fill-opacity="0.03999999910593033"></path></g><g><g><path d="M57.2179,55.92138781272888C57.2179,53.74846781272888,58.5846,51.95462166272888,60.28,51.95326781272888C60.28,51.95326781272888,75.625,51.95326781272888,75.625,51.95326781272888C75.625,51.95326781272888,75.625,76.50796781272888,75.625,76.50796781272888C75.625,79.38216781272888,73.81,81.73786781272888,71.5687,81.73786781272888C71.5687,81.73786781272888,16.43125,81.73786781272888,16.43125,81.73786781272888C14.19,81.73786781272888,12.375,79.38086781272888,12.375,76.50796781272888C12.375,76.50796781272888,12.375,51.95326781272888,12.375,51.95326781272888C12.375,51.95326781272888,27.72,51.95326781272888,27.72,51.95326781272888C29.4154,51.95326781272888,30.7821,53.74440781272888,30.7821,55.917327812728885C30.7821,55.917327812728885,30.7821,55.947117812728884,30.7821,55.947117812728884C30.7821,58.12003781272888,32.164,59.874617812728886,33.858000000000004,59.874617812728886C33.858000000000004,59.874617812728886,54.142,59.874617812728886,54.142,59.874617812728886C55.836,59.874617812728886,57.2179,58.10378781272888,57.2179,55.930867812728884C57.2179,55.930867812728884,57.2179,55.92138781272888,57.2179,55.92138781272888C57.2179,55.92138781272888,57.2179,55.92138781272888,57.2179,55.92138781272888Z" fill="#000000" fill-opacity="0.03999999910593033"></path><path d="M57.7179,55.930867812728884L57.7179,55.92138781272888Q57.7179,54.45772781272888,58.5096,53.42769781272888Q59.258,52.45408381272888,60.28,52.45326781272888L75.125,52.45326781272888L75.125,76.50796781272888Q75.125,78.49546781272889,74.0419,79.89476781272889Q73.00229999999999,81.23786781272888,71.5687,81.23786781272888L16.43125,81.23786781272888Q14.997869999999999,81.23786781272888,13.95808,79.89426781272888Q12.875,78.49466781272888,12.875,76.50796781272888L12.875,52.45326781272888L27.72,52.45326781272888Q28.7425,52.45326781272888,29.4906,53.42538781272888Q30.2821,54.45397781272888,30.2821,55.917327812728885L30.2821,55.947117812728884Q30.2821,57.74781781272888,31.2914,59.03433781272888Q32.3429,60.37462781272888,33.858000000000004,60.374617812728886L54.142,60.374617812728886Q55.6567,60.374617812728886,56.7094,59.02511781272888Q57.7179,57.73234781272888,57.7179,55.930867812728884ZM57.7168,52.81828281272888Q56.7179,54.11781781272888,56.7179,55.92138781272888L56.7179,55.930867812728884Q56.7179,57.38843781272888,55.921,58.41005781272888Q55.1685,59.374617812728886,54.142,59.374617812728886L33.858000000000004,59.374617812728886Q32.8294,59.374617812728886,32.078199999999995,58.41708781272888Q31.2821,57.40236781272888,31.2821,55.947117812728884L31.2821,55.917327812728885Q31.2821,54.11374781272888,30.2831,52.81551981272888Q29.2348,51.45326781272888,27.72,51.45326781272888L11.875,51.45326781272888L11.875,76.50796781272888Q11.875,78.83636781272888,13.167231,80.50626781272888Q14.50727,82.23786781272888,16.43125,82.23786781272888L71.5687,82.23786781272888Q73.49289999999999,82.23786781272888,74.8327,80.50676781272888Q76.125,78.83726781272888,76.125,76.50796781272888L76.125,51.45326781272888L60.28,51.45326781272888Q58.765,51.45447781272888,57.7168,52.81828281272888Z" fill-rule="evenodd" fill="#000000" fill-opacity="0.15000000596046448"></path></g><g><path d="M25.9259,36.227007812728885L12.002564,51.77106781272888L12.747436,52.43826781272888L26.726100000000002,36.83247781272888L26.7485,36.79707781272888Q27.676299999999998,35.32826781272888,29.0029,35.32826781272888L58.9971,35.32826781272888Q60.324,35.32826781272888,61.2514,36.798187812728884L61.2738,36.833737812728884L75.2526,52.43696781272888L75.9974,51.76966781272888L62.0741,36.228457812728884Q60.8579,34.32826781272888,58.9971,34.32826781272888L29.0029,34.32826781272888Q27.142699999999998,34.32826781272888,25.9259,36.227007812728885Z" fill-rule="evenodd" fill="#000000" fill-opacity="0.15000000596046448"></path></g></g></g></g></g>',2)]))}const Q=l.default(i,[["render",o]]);exports.default=Q;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../../_virtual/_plugin-vue_export-helper.js"),i={},r={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"88",height:"88.5078125",viewBox:"0 0 88 88.5078125"};function o(n,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createStaticVNode('<defs><clipPath id="master_svg0_373_19161"><rect x="0" y="33" width="88" height="55.507694244384766" rx="0"></rect></clipPath></defs><g><g clip-path="url(#master_svg0_373_19161)"><g><g><path d="M12.375,72.37709593772888C4.71416,74.08249593772888,0,76.40572593772887,0,78.96611593772889C0,84.20009593772889,19.6995,88.44299593772888,44,88.44299593772888C68.3005,88.44299593772888,88,84.20009593772889,88,78.96611593772889C88,76.40572593772887,83.2858,74.08249593772888,75.625,72.37709608666788C75.625,72.37709608666788,75.625,76.50840593772888,75.625,76.50840593772888C75.625,79.38261593772889,73.81,81.73831593772888,71.5687,81.73831593772888C71.5687,81.73831593772888,16.4312,81.73831593772888,16.4312,81.73831593772888C14.19,81.73831593772888,12.375,79.38126593772888,12.375,76.50840593772888C12.375,76.50840593772888,12.375,72.37709593772888,12.375,72.37709593772888Z" fill="#F6F6F8" fill-opacity="1"></path></g><g><g><path d="M57.2179,55.92138781272888C57.2179,53.74846781272888,58.5846,51.95462166272888,60.28,51.95326781272888C60.28,51.95326781272888,75.625,51.95326781272888,75.625,51.95326781272888C75.625,51.95326781272888,75.625,76.50796781272888,75.625,76.50796781272888C75.625,79.38216781272888,73.81,81.73786781272888,71.5687,81.73786781272888C71.5687,81.73786781272888,16.43125,81.73786781272888,16.43125,81.73786781272888C14.19,81.73786781272888,12.375,79.38086781272888,12.375,76.50796781272888C12.375,76.50796781272888,12.375,51.95326781272888,12.375,51.95326781272888C12.375,51.95326781272888,27.72,51.95326781272888,27.72,51.95326781272888C29.4154,51.95326781272888,30.7821,53.74440781272888,30.7821,55.917327812728885C30.7821,55.917327812728885,30.7821,55.947117812728884,30.7821,55.947117812728884C30.7821,58.12003781272888,32.164,59.874617812728886,33.858000000000004,59.874617812728886C33.858000000000004,59.874617812728886,54.142,59.874617812728886,54.142,59.874617812728886C55.836,59.874617812728886,57.2179,58.10378781272888,57.2179,55.930867812728884C57.2179,55.930867812728884,57.2179,55.92138781272888,57.2179,55.92138781272888C57.2179,55.92138781272888,57.2179,55.92138781272888,57.2179,55.92138781272888Z" fill="#FAFBFB" fill-opacity="1"></path><path d="M57.7179,55.930867812728884L57.7179,55.92138781272888Q57.7179,54.45772781272888,58.5096,53.42769781272888Q59.258,52.45408381272888,60.28,52.45326781272888L75.125,52.45326781272888L75.125,76.50796781272888Q75.125,78.49546781272889,74.0419,79.89476781272889Q73.00229999999999,81.23786781272888,71.5687,81.23786781272888L16.43125,81.23786781272888Q14.997869999999999,81.23786781272888,13.95808,79.89426781272888Q12.875,78.49466781272888,12.875,76.50796781272888L12.875,52.45326781272888L27.72,52.45326781272888Q28.7425,52.45326781272888,29.4906,53.42538781272888Q30.2821,54.45397781272888,30.2821,55.917327812728885L30.2821,55.947117812728884Q30.2821,57.74781781272888,31.2914,59.03433781272888Q32.3429,60.37462781272888,33.858000000000004,60.374617812728886L54.142,60.374617812728886Q55.6567,60.374617812728886,56.7094,59.02511781272888Q57.7179,57.73234781272888,57.7179,55.930867812728884ZM57.7168,52.81828281272888Q56.7179,54.11781781272888,56.7179,55.92138781272888L56.7179,55.930867812728884Q56.7179,57.38843781272888,55.921,58.41005781272888Q55.1685,59.374617812728886,54.142,59.374617812728886L33.858000000000004,59.374617812728886Q32.8294,59.374617812728886,32.078199999999995,58.41708781272888Q31.2821,57.40236781272888,31.2821,55.947117812728884L31.2821,55.917327812728885Q31.2821,54.11374781272888,30.2831,52.81551981272888Q29.2348,51.45326781272888,27.72,51.45326781272888L11.875,51.45326781272888L11.875,76.50796781272888Q11.875,78.83636781272888,13.167231,80.50626781272888Q14.50727,82.23786781272888,16.43125,82.23786781272888L71.5687,82.23786781272888Q73.49289999999999,82.23786781272888,74.8327,80.50676781272888Q76.125,78.83726781272888,76.125,76.50796781272888L76.125,51.45326781272888L60.28,51.45326781272888Q58.765,51.45447781272888,57.7168,52.81828281272888Z" fill-rule="evenodd" fill="#DBDFE4" fill-opacity="1"></path></g><g><path d="M25.9259,36.227007812728885L12.002564,51.77106781272888L12.747436,52.43826781272888L26.726100000000002,36.83247781272888L26.7485,36.79707781272888Q27.676299999999998,35.32826781272888,29.0029,35.32826781272888L58.9971,35.32826781272888Q60.324,35.32826781272888,61.2514,36.798187812728884L61.2738,36.833737812728884L75.2526,52.43696781272888L75.9974,51.76966781272888L62.0741,36.228457812728884Q60.8579,34.32826781272888,58.9971,34.32826781272888L29.0029,34.32826781272888Q27.142699999999998,34.32826781272888,25.9259,36.227007812728885Z" fill-rule="evenodd" fill="#DBDFE4" fill-opacity="1"></path></g></g></g></g></g>',2)]))}const Q=l.default(i,[["render",o]]);exports.default=Q;
@@ -54,4 +54,5 @@ export interface ApAppendixSlots<FileType = any> {
54
54
  title: (props: ApAppendixBaseSlotProps<FileType>) => any;
55
55
  titleSuffix: (props: ApAppendixBaseSlotProps<FileType>) => any;
56
56
  titleDownloadAllBtn: (props: ApAppendixBaseSlotProps<FileType>) => any;
57
+ empty: () => any;
57
58
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/locale/lang/en-US"),t={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More",all:"All"},field:{startDateText:"Start date",endDateText:"End date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",thisMonth:"This month",lastMonth:"Last month",thisYear:"This year",lastYear:"Last year",lastXDays:"Last {day} days"},apForm:{search:{search:"Search",reset:"Reset",moreFilter:"More Filters",sorterTitle:"Customize filter layout",sorterDesc:"Drag to sort. Top items appear first.",sorterReset:"Restore Defaults",sorterConfirmBtn:"Confirm"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter (Within 300 words)",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time",fileLabel:"File Upload"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apSizeInput:{length:"Length",width:"Width",height:"Height"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},batchInputGroup:{popoverInputPlaceholder:"A maximum of {maxNum} entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"},apView:{systemView:"System view",saveView:"Save view",maxTip:"The maximum number of views that can be saved has been reached. Please delete them before saving a new view",saveNewView:"Save as new wiew",newView:"New view",setDefault:"Default",viewName:"View name",notEmpty:"Cannot be empty",cancel:"Cancel",save:"Save",default:"Default",rename:"Rename",deleteTip:"Are you sure you want to delete this view?",ok:"Ok"},apCopy:{copySuccess:"Copy success",copyError:"Copy failed"},...e}};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/locale/lang/en-US"),t={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More",all:"All"},field:{startDateText:"Start date",endDateText:"End date",today:"Today",yesterday:"Yesterday",thisWeek:"This week",lastWeek:"Last week",thisMonth:"This month",lastMonth:"Last month",thisYear:"This year",lastYear:"Last year",lastXDays:"Last {day} days"},apForm:{search:{search:"Search",reset:"Reset",moreFilter:"More Filters",sorterTitle:"Customize filter layout",sorterDesc:"Drag to sort. Top items appear first.",sorterReset:"Restore Defaults",sorterConfirmBtn:"Confirm"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export",exportSuccess:"The task has been submitted,please go to the download center to check the progress"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter (Within 300 words)",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time",fileLabel:"File Upload"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apSizeInput:{length:"Length",width:"Width",height:"Height"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix",empty:"No data"},batchInputGroup:{popoverInputPlaceholder:"A maximum of {maxNum} entries can be entered in batches, separated by newlines"},apSummary:{total:"Total"},apView:{systemView:"System view",saveView:"Save view",maxTip:"The maximum number of views that can be saved has been reached. Please delete them before saving a new view",saveNewView:"Save as new wiew",newView:"New view",setDefault:"Default",viewName:"View name",notEmpty:"Cannot be empty",cancel:"Cancel",save:"Save",default:"Default",rename:"Rename",deleteTip:"Are you sure you want to delete this view?",ok:"Ok"},apCopy:{copySuccess:"Copy success",copyError:"Copy failed"},...e}};exports.default=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/locale/lang/zh-CN"),t={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多",all:"全部"},field:{startDateText:"开始日期",endDateText:"结束日期",today:"今天",yesterday:"昨天",thisWeek:"本周",lastWeek:"上周",thisMonth:"本月",lastMonth:"上月",thisYear:"今年",lastYear:"去年",lastXDays:"近{day}天"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置",moreFilter:"更多筛选",sorterTitle:"筛选条件自定义布局",sorterDesc:"可拖动排序,越靠前的筛选项会优先展示在列表页",sorterReset:"恢复默认",sorterConfirmBtn:"确定"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入(300字以内)",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个",fileLabel:"上传附件"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apSizeInput:{length:"长",width:"宽",height:"高"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入{maxNum}条"},apSummary:{total:"合计"},apView:{systemView:"系统视图",saveView:"保存视图",maxTip:"视图已达保存上限,请先删除后再保存新视图",saveNewView:"保存新视图",newView:"新视图",setDefault:"设为默认",viewName:"视图名称",notEmpty:"不可为空",cancel:"取消",save:"保存",default:"默认",rename:"重命名",deleteTip:"确定删除该视图吗?",ok:"确定"},apCopy:{copySuccess:"复制成功",copyError:"复制失败"},...e}};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vxe-table/es/locale/lang/zh-CN"),t={name:"zh-cn",ap:{common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多",all:"全部"},field:{startDateText:"开始日期",endDateText:"结束日期",today:"今天",yesterday:"昨天",thisWeek:"本周",lastWeek:"上周",thisMonth:"本月",lastMonth:"上月",thisYear:"今年",lastYear:"去年",lastXDays:"近{day}天"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},apForm:{search:{search:"查询",reset:"重置",moreFilter:"更多筛选",sorterTitle:"筛选条件自定义布局",sorterDesc:"可拖动排序,越靠前的筛选项会优先展示在列表页",sorterReset:"恢复默认",sorterConfirmBtn:"确定"}},apTable:{pagination:{totalLeftPrefix:"共",totalLeftSuffix:"条记录",totalRightPrefix:"第",totalRightSuffix:"页"},setting:{title:"自定义表格",selectAll:"全选",unSelectAll:"取消全选",selectAllTip:"请选择需要展示在表格的字段",sizeSmall:"紧凑",sizeNormal:"正常",selectCount:"已选字段({count})",reset:"重置",fixToLeft:"固定在左侧",fixToRight:"固定在右侧",unFixed:"不固定",delete:"删除"},paragraphEllipsis:{copy:"复制",copySuccess:"复制成功"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出",exportSuccess:"任务已提交,前往下载中心查看进度"},apBatchAction:{selected:"已选",piecesOfData:"条数据",empty:"清空"},apApBatchActionGroup:{batchOperation:"批量操作"},workOrderModal:{createTickets:"创建工单",submit:"确定",cancel:"取消",ticketsTitle:"工单标题",noEmpty:"不可为空",pleaseEntry:"请输入(300字以内)",ticketsType:"工单类型",ticketsDetail:"工单详情",ticketsLevel:"优先级",operationSuccess:"操作成功",fileSizeMax:"单个文件大小限制",fileCountMax:"单次数量限制 {x} 个",fileLabel:"上传附件"},apTableModal:{titleSuffixOne:"最多可添加{maxCount}个,",titleSuffixTwo:"已添加",titleSuffixThree:"个",messageMaxCount:"最多选择{maxCount}条数据",clear:"清空",selected:"已选"},apAttachment:{downloadall:"下载全部",more:"更多"},apSizeInput:{length:"长",width:"宽",height:"高"},apExpandAlert:{expand:"展开",collapse:"收起"},apAppendix:{downloadAll:"下载全部",downloadFile:"下载文件",appendix:"附件",empty:"暂无数据"},batchInputGroup:{popoverInputPlaceholder:"支持批量输入,可用换行符分隔,最多输入{maxNum}条"},apSummary:{total:"合计"},apView:{systemView:"系统视图",saveView:"保存视图",maxTip:"视图已达保存上限,请先删除后再保存新视图",saveNewView:"保存新视图",newView:"新视图",setDefault:"设为默认",viewName:"视图名称",notEmpty:"不可为空",cancel:"取消",save:"保存",default:"默认",rename:"重命名",deleteTip:"确定删除该视图吗?",ok:"确定"},apCopy:{copySuccess:"复制成功",copyError:"复制失败"},...e}};exports.default=t;
@@ -1,2 +1,2 @@
1
- declare const _default: "6.30.1";
1
+ declare const _default: "6.31.0";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.30.1";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.0";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "6.30.1",
3
+ "version": "6.31.0",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -115,3 +115,18 @@
115
115
  .aplus-ap-appendix__file-area-content-item--loading-content:hover .ant-typography {
116
116
  color: var(--ap-text-color-4);
117
117
  }
118
+ .aplus-ap-appendix__empty {
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ color: var(--ap-text-color-3);
123
+ font-size: 12px;
124
+ line-height: 18px;
125
+ }
126
+ .aplus-ap-appendix__empty-content {
127
+ display: flex;
128
+ flex-direction: column;
129
+ align-items: center;
130
+ justify-content: center;
131
+ gap: 8px;
132
+ }
@@ -74,4 +74,19 @@
74
74
  }
75
75
  }
76
76
  }
77
+ &__empty{
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ color: var(--ap-text-color-3);
82
+ font-size: @font-size-base;
83
+ line-height: @line-height-base;
84
+ &-content {
85
+ display: flex;
86
+ flex-direction: column;
87
+ align-items: center;
88
+ justify-content: center;
89
+ gap: 8px;
90
+ }
91
+ }
77
92
  });
package/theme/index.css CHANGED
@@ -3124,6 +3124,21 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
3124
3124
  .aplus-ap-appendix__file-area-content-item--loading-content:hover .ant-typography {
3125
3125
  color: var(--ap-text-color-4);
3126
3126
  }
3127
+ .aplus-ap-appendix__empty {
3128
+ display: flex;
3129
+ align-items: center;
3130
+ justify-content: center;
3131
+ color: var(--ap-text-color-3);
3132
+ font-size: 12px;
3133
+ line-height: 18px;
3134
+ }
3135
+ .aplus-ap-appendix__empty-content {
3136
+ display: flex;
3137
+ flex-direction: column;
3138
+ align-items: center;
3139
+ justify-content: center;
3140
+ gap: 8px;
3141
+ }
3127
3142
  .aplus-ap-group-search__search > .ant-select-selector {
3128
3143
  padding: 0px 10px 0 0 !important;
3129
3144
  }