@aplus-frontend/ui 6.30.0 → 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.
- package/es/src/ap-form/search-form/index.vue.mjs +40 -40
- package/es/src/ap-grid/utils/col.d.ts +1 -0
- package/es/src/ap-grid/utils/col.mjs +54 -49
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +95 -81
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +3 -0
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.mjs +20 -0
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +3 -0
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.mjs +20 -0
- package/es/src/business/ap-appendix/interface.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
- package/es/src/business/ap-view/interface.d.ts +13 -3
- package/es/src/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- package/es/src/mask/utils.d.ts +1 -1
- package/es/src/mask/utils.mjs +29 -13
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/col.d.ts +1 -0
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.js +1 -0
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.js +1 -0
- package/lib/src/business/ap-appendix/interface.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +13 -3
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/utils.d.ts +1 -1
- package/lib/src/mask/utils.js +3 -3
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/antdv-override.css +0 -6
- package/theme/antdv-override.less +0 -8
- package/theme/ap-appendix/ap-appendix.css +15 -0
- package/theme/ap-appendix/ap-appendix.less +15 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/index.css +19 -10
|
@@ -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
|
}
|
|
@@ -39,15 +39,15 @@ const Ke = /* @__PURE__ */ $({
|
|
|
39
39
|
setup(F, {
|
|
40
40
|
expose: N
|
|
41
41
|
}) {
|
|
42
|
-
const
|
|
42
|
+
const o = F, _ = te("viewCacheOption"), {
|
|
43
43
|
b: V
|
|
44
44
|
} = ae("ap-view"), {
|
|
45
|
-
t:
|
|
45
|
+
t: I
|
|
46
46
|
} = ie(), d = C(() => ({
|
|
47
47
|
viewKey: u,
|
|
48
|
-
viewName:
|
|
48
|
+
viewName: I("ap.apView.systemView")
|
|
49
49
|
})), {
|
|
50
|
-
getSearchFormValues:
|
|
50
|
+
getSearchFormValues: O,
|
|
51
51
|
setSearchFormValues: L,
|
|
52
52
|
submit: x,
|
|
53
53
|
reset: B,
|
|
@@ -55,20 +55,20 @@ const Ke = /* @__PURE__ */ $({
|
|
|
55
55
|
getSearchFormSorterItems: k,
|
|
56
56
|
setSearchFormSorterItems: A,
|
|
57
57
|
resetSearchFormSorterItems: P
|
|
58
|
-
} = Z(), T = p(!1), S = p(!1),
|
|
58
|
+
} = Z(), T = p(!1), S = p(!1), w = p("");
|
|
59
59
|
let c = !1, b = !1;
|
|
60
60
|
const W = {
|
|
61
61
|
dropdownType: "dropdown",
|
|
62
62
|
content: K(se, {
|
|
63
|
-
maxViewNum:
|
|
63
|
+
maxViewNum: o.maxViewNum
|
|
64
64
|
}, null)
|
|
65
|
-
},
|
|
66
|
-
id:
|
|
65
|
+
}, i = p([d.value]), j = C(() => i.value.map((t) => ({
|
|
66
|
+
id: t.viewKey,
|
|
67
67
|
content: K(oe, {
|
|
68
|
-
view:
|
|
68
|
+
view: t
|
|
69
69
|
}, null)
|
|
70
|
-
}))),
|
|
71
|
-
getSearchFormValues:
|
|
70
|
+
}))), r = {
|
|
71
|
+
getSearchFormValues: O,
|
|
72
72
|
setSearchFormValues: L,
|
|
73
73
|
submit: x,
|
|
74
74
|
reset: B,
|
|
@@ -76,112 +76,112 @@ const Ke = /* @__PURE__ */ $({
|
|
|
76
76
|
getSearchFormSorterItems: k,
|
|
77
77
|
setSearchFormSorterItems: A,
|
|
78
78
|
resetSearchFormSorterItems: P,
|
|
79
|
-
...
|
|
80
|
-
},
|
|
79
|
+
...o.saveDataSource
|
|
80
|
+
}, v = {
|
|
81
81
|
..._.value,
|
|
82
|
-
...
|
|
83
|
-
}, g = () =>
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
...Object.fromEntries(Object.keys(
|
|
89
|
-
...
|
|
90
|
-
}),
|
|
82
|
+
...o.viewCacheOption
|
|
83
|
+
}, g = () => o.isDefaultSystemView ? u : (o.isFirstDefaultSystemView || b) && c ? u : i.value.find((a) => a.isDefault)?.viewKey ?? u, l = (t) => {
|
|
84
|
+
w.value = t;
|
|
85
|
+
const a = i.value.find((e) => e.viewKey === w.value);
|
|
86
|
+
a && setTimeout(() => {
|
|
87
|
+
a.viewKey === u ? c ? o.manual || r?.submitWith?.() : o.manual || (r?.resetSearchFormSorterItems?.(), r?.reset?.()) : (r?.setSearchFormValues?.({
|
|
88
|
+
...Object.fromEntries(Object.keys(r?.getSearchFormValues?.() ?? {}).map((e) => [e, void 0])) ?? {},
|
|
89
|
+
...r?.getSearchFormSorterItems?.()?.reduce((e, s) => (a.viewConfig?.searchForm?.[s.name] && (e[s.name] = a.viewConfig?.searchForm?.[s.name]), e), {}) ?? {}
|
|
90
|
+
}), r?.setSearchFormSorterItems?.(a.viewConfig?.sorterItems ?? []), c ? o.manual || r?.submitWith?.() : r?.submit?.()), c = !1;
|
|
91
91
|
});
|
|
92
92
|
}, D = {
|
|
93
|
-
getViewList: async (
|
|
93
|
+
getViewList: async (t) => {
|
|
94
94
|
try {
|
|
95
95
|
const {
|
|
96
|
-
tableKey:
|
|
97
|
-
} =
|
|
98
|
-
tableKey:
|
|
96
|
+
tableKey: a
|
|
97
|
+
} = t, e = await v?.getViewList?.({
|
|
98
|
+
tableKey: a
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return i.value = [d.value, ...e ?? []], l(g()), i.value;
|
|
101
101
|
} catch {
|
|
102
|
-
return
|
|
102
|
+
return i.value = [d.value], l(u), i.value;
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
addView: async (
|
|
105
|
+
addView: async (t) => {
|
|
106
106
|
const {
|
|
107
|
-
tableKey:
|
|
108
|
-
viewKey:
|
|
109
|
-
viewName:
|
|
110
|
-
isDefault:
|
|
107
|
+
tableKey: a,
|
|
108
|
+
viewKey: e,
|
|
109
|
+
viewName: s,
|
|
110
|
+
isDefault: n,
|
|
111
111
|
viewConfig: f
|
|
112
|
-
} =
|
|
113
|
-
await
|
|
114
|
-
tableKey:
|
|
115
|
-
viewKey:
|
|
116
|
-
viewName:
|
|
117
|
-
isDefault:
|
|
112
|
+
} = t;
|
|
113
|
+
await v?.addView?.({
|
|
114
|
+
tableKey: a,
|
|
115
|
+
viewKey: e,
|
|
116
|
+
viewName: s,
|
|
117
|
+
isDefault: n,
|
|
118
118
|
viewConfig: f
|
|
119
|
-
}),
|
|
119
|
+
}), n && (i.value = i.value.map((m) => ({
|
|
120
120
|
...m,
|
|
121
121
|
isDefault: !1
|
|
122
|
-
}))),
|
|
123
|
-
viewKey:
|
|
124
|
-
viewName:
|
|
125
|
-
isDefault:
|
|
122
|
+
}))), i.value = [...i.value, {
|
|
123
|
+
viewKey: e,
|
|
124
|
+
viewName: s,
|
|
125
|
+
isDefault: n,
|
|
126
126
|
viewConfig: f
|
|
127
|
-
}],
|
|
127
|
+
}], l(e);
|
|
128
128
|
},
|
|
129
|
-
changeView: async (
|
|
129
|
+
changeView: async (t) => {
|
|
130
130
|
const {
|
|
131
|
-
tableKey:
|
|
132
|
-
viewKey:
|
|
133
|
-
viewName:
|
|
134
|
-
isDefault:
|
|
131
|
+
tableKey: a,
|
|
132
|
+
viewKey: e,
|
|
133
|
+
viewName: s,
|
|
134
|
+
isDefault: n,
|
|
135
135
|
viewConfig: f
|
|
136
|
-
} =
|
|
137
|
-
await
|
|
138
|
-
tableKey:
|
|
139
|
-
viewKey:
|
|
140
|
-
viewName:
|
|
141
|
-
isDefault:
|
|
136
|
+
} = t;
|
|
137
|
+
await v?.changeView?.({
|
|
138
|
+
tableKey: a,
|
|
139
|
+
viewKey: e,
|
|
140
|
+
viewName: s,
|
|
141
|
+
isDefault: n,
|
|
142
142
|
viewConfig: f
|
|
143
|
-
}),
|
|
143
|
+
}), n && (i.value = i.value.map((h) => ({
|
|
144
144
|
...h,
|
|
145
145
|
isDefault: !1
|
|
146
146
|
})));
|
|
147
|
-
const m =
|
|
148
|
-
m && (m.viewName =
|
|
147
|
+
const m = i.value.find((h) => h.viewKey === e);
|
|
148
|
+
m && (m.viewName = s, m.isDefault = n, m.viewConfig = f), l(e);
|
|
149
149
|
},
|
|
150
|
-
removeView: async (
|
|
150
|
+
removeView: async (t) => {
|
|
151
151
|
const {
|
|
152
|
-
tableKey:
|
|
153
|
-
viewKey:
|
|
154
|
-
} =
|
|
155
|
-
await
|
|
156
|
-
tableKey:
|
|
157
|
-
viewKey:
|
|
158
|
-
}),
|
|
152
|
+
tableKey: a,
|
|
153
|
+
viewKey: e
|
|
154
|
+
} = t;
|
|
155
|
+
await v?.removeView?.({
|
|
156
|
+
tableKey: a,
|
|
157
|
+
viewKey: e
|
|
158
|
+
}), i.value = i.value.filter((s) => s.viewKey !== e), e === w.value && l(g());
|
|
159
159
|
}
|
|
160
160
|
}, G = {
|
|
161
|
-
tableKey:
|
|
162
|
-
currentViewKey:
|
|
163
|
-
changeCurrentViewKey:
|
|
161
|
+
tableKey: o.tableKey,
|
|
162
|
+
currentViewKey: w,
|
|
163
|
+
changeCurrentViewKey: l,
|
|
164
164
|
popoverOpen: T,
|
|
165
165
|
menuOpen: S,
|
|
166
|
-
viewList:
|
|
166
|
+
viewList: i,
|
|
167
167
|
viewListCRUD: D,
|
|
168
|
-
saveDataSource:
|
|
168
|
+
saveDataSource: r
|
|
169
169
|
};
|
|
170
|
-
return X(G), U(() =>
|
|
171
|
-
ee(
|
|
172
|
-
tableKey:
|
|
170
|
+
return X(G), U(() => o.tableKey, (t) => {
|
|
171
|
+
ee(t) && (c = !0, D?.getViewList?.({
|
|
172
|
+
tableKey: t
|
|
173
173
|
}));
|
|
174
174
|
}, {
|
|
175
175
|
immediate: !0
|
|
176
176
|
}), N({
|
|
177
|
-
setFirstDefaultSystemView: (
|
|
178
|
-
b =
|
|
177
|
+
setFirstDefaultSystemView: (t) => {
|
|
178
|
+
b = t;
|
|
179
179
|
}
|
|
180
|
-
}), (
|
|
181
|
-
...
|
|
180
|
+
}), (t, a) => (z(), Y(y(Q), M({
|
|
181
|
+
...t.$attrs
|
|
182
182
|
}, {
|
|
183
183
|
open: S.value,
|
|
184
|
-
"onUpdate:open":
|
|
184
|
+
"onUpdate:open": a[0] || (a[0] = (e) => S.value = e),
|
|
185
185
|
class: [y(V)()],
|
|
186
186
|
"button-props": W,
|
|
187
187
|
"menu-list": j.value,
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverSorterItem } from '../../ap-form';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
3
|
export interface SaveDataSource {
|
|
4
|
+
/** 获取表单数据 */
|
|
4
5
|
getSearchFormValues?: (transform?: boolean) => (Partial<Recordable> & Recordable<any>) | undefined;
|
|
6
|
+
/** 设置表单数据 */
|
|
5
7
|
setSearchFormValues?: (values: Partial<Recordable>) => void;
|
|
8
|
+
/** 提交 */
|
|
6
9
|
submit?: () => void;
|
|
10
|
+
/** 表格submitWith,非表格则和submit传递一致函数即可 */
|
|
7
11
|
submitWith?: () => void;
|
|
12
|
+
/** 重置 */
|
|
8
13
|
reset?: () => void;
|
|
14
|
+
/** 获取表单排序 */
|
|
9
15
|
getSearchFormSorterItems?: () => ApFormSearchFormPopoverSorterItem[];
|
|
16
|
+
/** 设置表单排序 */
|
|
10
17
|
setSearchFormSorterItems?: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
18
|
+
/** 重置表单排序 */
|
|
11
19
|
resetSearchFormSorterItems?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* 是否转换搜索表单,默认为 false
|
|
14
|
-
*/
|
|
20
|
+
/** 是否转换搜索表单,默认为 false */
|
|
15
21
|
searchFormTransform?: boolean;
|
|
16
22
|
}
|
|
17
23
|
export interface ViewCacheOption {
|
|
24
|
+
/** 获取视图列表 */
|
|
18
25
|
getViewList?: (option: {
|
|
19
26
|
tableKey: string;
|
|
20
27
|
}) => Promise<ViewListModel[]>;
|
|
28
|
+
/** 添加视图 */
|
|
21
29
|
addView?: (option: {
|
|
22
30
|
tableKey: string;
|
|
23
31
|
viewName: string;
|
|
@@ -25,6 +33,7 @@ export interface ViewCacheOption {
|
|
|
25
33
|
viewConfig?: Recordable;
|
|
26
34
|
isDefault?: boolean;
|
|
27
35
|
}) => Promise<void>;
|
|
36
|
+
/** 设置视图 */
|
|
28
37
|
changeView?: (option: {
|
|
29
38
|
tableKey: string;
|
|
30
39
|
viewName: string;
|
|
@@ -32,6 +41,7 @@ export interface ViewCacheOption {
|
|
|
32
41
|
viewConfig?: Recordable;
|
|
33
42
|
isDefault?: boolean;
|
|
34
43
|
}) => Promise<void>;
|
|
44
|
+
/** 删除视图 */
|
|
35
45
|
removeView?: (option: {
|
|
36
46
|
tableKey: string;
|
|
37
47
|
viewKey: string;
|
|
@@ -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"
|
package/es/src/mask/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function lockScrollable(): () => void;
|
|
1
|
+
export declare function lockScrollable(): (() => void) | undefined;
|
|
2
2
|
export declare const getMaskZIndex: () => number;
|
package/es/src/mask/utils.mjs
CHANGED
|
@@ -1,21 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { getScrollbarSize as i } from "../utils/index.mjs";
|
|
2
|
+
function d(o) {
|
|
3
|
+
if (!o || o.nodeType !== Node.ELEMENT_NODE)
|
|
4
|
+
return {
|
|
5
|
+
x: !1,
|
|
6
|
+
y: !1
|
|
7
|
+
};
|
|
8
|
+
const e = window.getComputedStyle(o), l = e.overflowX, t = e.overflowY, n = l === "scroll" || l === "auto", r = t === "scroll" || t === "auto", c = o.scrollWidth > o.clientWidth, s = o.scrollHeight > o.clientHeight;
|
|
9
|
+
return {
|
|
10
|
+
x: n && c,
|
|
11
|
+
y: r && s
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function f() {
|
|
15
|
+
const o = `aplus-ui-locker-${Date.now()}`, { y: e } = d(document.body);
|
|
16
|
+
if (!e)
|
|
17
|
+
return;
|
|
18
|
+
const l = i();
|
|
19
|
+
let t = document.querySelector(`style#${o}`);
|
|
20
|
+
return t || (t = document.createElement("style"), t.id = o, t.innerHTML = `
|
|
5
21
|
html body {
|
|
6
22
|
overflow-y: hidden;
|
|
7
|
-
width: calc(100% -
|
|
23
|
+
width: calc(100% - ${l || 15}px);
|
|
8
24
|
}
|
|
9
|
-
`, document.head.appendChild(
|
|
10
|
-
|
|
25
|
+
`, document.head.appendChild(t)), () => {
|
|
26
|
+
t.remove();
|
|
11
27
|
};
|
|
12
28
|
}
|
|
13
|
-
function
|
|
14
|
-
let
|
|
15
|
-
return () => ++
|
|
29
|
+
function a() {
|
|
30
|
+
let o = 99;
|
|
31
|
+
return () => ++o;
|
|
16
32
|
}
|
|
17
|
-
const
|
|
33
|
+
const y = a();
|
|
18
34
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
35
|
+
y as getMaskZIndex,
|
|
36
|
+
f as lockScrollable
|
|
21
37
|
};
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.31.0";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const E=require("../item-group/helper.js");require("../../config-provider/index.js");const w=require("lodash-unified"),O=require("../../utils/index.js"),F=require("./utils.js");require("./components/popover-filter.vue.js");const Q=require("./hooks/use-count-per-row.js");require("./components/popover-sorter/index.vue.js");const X=require("./hooks/use-sorter.js"),Y=require("./hooks/use-collapse-input-count.js"),D=require("@fruits-chain/utils"),Z=require("../../config-provider/hooks/use-namespace.js"),ee=require("../../config-provider/hooks/use-locale.js"),L=require("../item/index.vue.js"),te=require("./components/popover-filter.vue2.js"),oe=require("./components/popover-sorter/index.vue2.js"),ne=require("../ap-form.vue2.js");function ae(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const r=100,le=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},variant:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!0},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:5},submitLoading:{type:Boolean},maxRows:{default:2},sortable:{type:Boolean,default:!0},resizeTarget:{},loadingDelay:{default:300}},setup(d,{expose:W}){const x=e.useSlots(),o=d,{b:p}=Z.useNamespace("ap-form-search-form"),{t:B}=ee.useLocale(),j=Q.useCountPerRow(o),g=e.ref(),R=e.ref();function b(){const t=g.value?.getFieldsValueTransformed(!0);F.execFunc(o.onSubmit,t)}function M(){o.customReset||g.value?.resetFields?.(),F.execFunc(o.onReset)}const U=t=>O.isDef(t)?(w.isArray(t)?t:[t]).join(""):Date.now();let k=[];const f=e.shallowRef(E.genRealChildren(x.default())),c=e.shallowRef(x.extra?.()),q=e.computed(()=>D.floorWith(r/e.unref(j),4)),{items:v,sorted:V,handleClickConfirm:C}=X.useSorter(f);e.watch(()=>x.default(),t=>{k=f.value,f.value=F.diffFormItem(k,E.genRealChildren(t)),V.value=!1}),e.watch(()=>x.extra?.(),t=>{c.value=t});function $(t){return D.floorWith(t*(r/24),4)}const n=e.computed(()=>{const t=f.value,i=[],a=[],h=[],s=e.unref(q);let y=0,N=0;const G=r*o.maxRows-s*(e.unref(c)&&!o.extraInAction?2:1);t.forEach(S=>{const I=Y.getTargetNode(S);if(!I)return;const u=I.props;if(w.isBoolean(u.hidden)?!!u.hidden:O.isDef(u.hidden))i.push(S);else{let _=u.span?$(u.span):s;const T={node:S,span:_,key:`ApFormSearchFormItem-${U(u.name)}-${u._signal}`},P=r-y%r;P<_&&(_+=P),y+=_,y>G?a.push(T):(N=y,h.push(T))}});const A=r-(N+s)%r,J=Math.ceil(N)%r<s,K=A<s?r:A;return{hideNode:e.createVNode(e.Fragment,null,[i]),nodes:h,collapseNodes:a,extraSpan:K,lastRowOnlyIncludeActionAndExtra:J}}),m=t=>`${t}%`,z=e.computed(()=>{let t;const i=n.value.collapseNodes.length||o.sortable&&f.value.length,a=e.createVNode(l.Col,{flex:m(e.unref(q)),key:"actionWrapper"},{default:()=>[e.createVNode(L.default,null,{default:()=>[e.createVNode(l.Flex,{wrap:"wrap",justify:n.value.lastRowOnlyIncludeActionAndExtra&&!(e.unref(c)&&o.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(l.Flex,{gap:8,wrap:"wrap"},{default:()=>[i?e.createVNode("div",{class:p("column-setting-trigger-wrapper")},[n.value.collapseNodes.length?e.createVNode(te.default,{onSubmit:b,config:n.value.collapseNodes,submitLoading:o.submitLoading},null):null,o.sortable&&v.value.length?e.createVNode(oe.default,{ref:R,items:v.value,onClickConfirm:C,sorted:V.value},null):null]):null,e.createVNode(l.Button,{type:"primary",onClick:b,loading:o.submitLoading?{delay:o.loadingDelay}:!1,htmlType:"submit",class:p("action-btn")},{default:()=>[o.searchText||B("ap.apForm.search.search")]}),e.createVNode(l.Button,{onClick:M,type:"text",class:[p("action-btn"),p("action-btn-reset")]},{default:()=>[o.resetText||B("ap.apForm.search.reset")]})]}),o.extraInAction?e.unref(c):null]})]})]}),h=!o.extraInAction&&e.unref(c)?e.createVNode(l.Col,{flex:m(n.value.extraSpan),key:"extraNode"},{default:()=>[e.createVNode(L.default,null,{default:()=>[e.createVNode(l.Flex,{justify:n.value.extraSpan===r||n.value.lastRowOnlyIncludeActionAndExtra?"start":"flex-end"},ae(t=e.unref(c))?t:{default:()=>[t]})]})]}):null,s=e.createVNode(l.Col,{flex:m(n.value.extraSpan)},null);return n.value.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[h||s,a]):e.createVNode(e.Fragment,null,[a,h])});function H(){const t=R.value?.getCachedList();C(t)}return W({apForm:e.computed(()=>e.unref(g)),getSorterItems:()=>v.value,setSorterItems:C,resetSorterItems:H}),(t,i)=>(e.openBlock(),e.createBlock(ne.default,e.mergeProps({ref_key:"apForm",ref:g,class:e.unref(p)()},e.unref(w.omit)(o,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value.hideNode))),e.createVNode(e.unref(l.Row),{gutter:8},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.nodes,a=>(e.openBlock(),e.createBlock(e.unref(l.Col),{key:a.key,flex:m(a.span),style:e.normalizeStyle({maxWidth:m(a.span)})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.node)))]),_:2},1032,["flex","style"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(z.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=le;
|
|
@@ -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"),
|
|
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"),
|
|
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
|
}
|