@aplus-frontend/ui 0.0.37 → 0.0.39
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-download/ap-download.vue.mjs +26 -35
- package/es/src/ap-download/hooks/index.d.ts +1 -6
- package/es/src/ap-download/hooks/index.mjs +12 -12
- package/es/src/ap-download/interface.d.ts +3 -13
- package/es/src/ap-download/style/ap-download.css +12 -12
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +28 -27
- package/es/src/ap-form/search-form/index.vue.mjs +107 -102
- package/es/src/ap-table/ap-table.vue.d.ts +10 -4
- package/es/src/ap-table/ap-table.vue.mjs +58 -57
- package/es/src/ap-table/constants.d.ts +8 -8
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/interface.d.ts +6 -2
- package/es/src/business/ap-label/ApLabel.vue.d.ts +13 -2
- package/es/src/business/ap-label/ApLabel.vue2.mjs +43 -25
- package/es/src/business/ap-label/interface.d.ts +6 -3
- package/es/src/business/ap-label/style.css +2 -1
- package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +1 -1
- package/es/src/business/expandAlert/interface.d.ts +1 -1
- package/es/src/business/index.d.ts +53 -9
- package/es/src/theme/ap-download/ap-download.css +12 -12
- package/es/src/theme/ap-label/ap-label.css +2 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.d.ts +1 -6
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/interface.d.ts +3 -13
- package/lib/src/ap-download/style/ap-download.css +12 -12
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -4
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +8 -8
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/interface.d.ts +6 -2
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +13 -2
- package/lib/src/business/ap-label/ApLabel.vue2.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +6 -3
- package/lib/src/business/ap-label/style.css +2 -1
- package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/expandAlert/interface.d.ts +1 -1
- package/lib/src/business/index.d.ts +53 -9
- package/lib/src/theme/ap-download/ap-download.css +12 -12
- package/lib/src/theme/ap-label/ap-label.css +2 -1
- package/package.json +4 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, computed as
|
|
1
|
+
import { defineComponent as y, computed as n, unref as z, openBlock as v, createElementBlock as I, normalizeStyle as N, normalizeClass as i, createElementVNode as s, renderSlot as B, toDisplayString as O } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
|
-
import { useOssInit as
|
|
3
|
+
import { useOssInit as k } from "./hooks/index.mjs";
|
|
4
4
|
import "./style/ap-download.css";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { useLocale as A } from "../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useGlobalConfig as F } from "../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { useNamespace as M } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const W = { class: "icon" }, D = { class: "text" }, j = /* @__PURE__ */ y({
|
|
8
9
|
name: "ApDownload",
|
|
9
10
|
__name: "ap-download",
|
|
10
11
|
props: {
|
|
@@ -16,43 +17,33 @@ const M = { class: "icon" }, W = { class: "text" }, j = /* @__PURE__ */ y({
|
|
|
16
17
|
getOssAccess: {}
|
|
17
18
|
},
|
|
18
19
|
setup(l) {
|
|
19
|
-
const t = l,
|
|
20
|
-
function
|
|
20
|
+
const { lang: p } = A(), c = n(() => p.value === "zh-cn" ? "zh_CN" : "en_US"), t = l, d = F("uiMode"), { b: r, bm: a } = M("ap-download");
|
|
21
|
+
function u(e, o) {
|
|
21
22
|
e.length === 4 && (e = `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`);
|
|
22
|
-
const
|
|
23
|
-
return `#${
|
|
23
|
+
const S = parseInt(e.slice(1, 3), 16), $ = parseInt(e.slice(3, 5), 16), _ = parseInt(e.slice(5, 7), 16), b = Math.round(o * 255).toString(16).padStart(2, "0");
|
|
24
|
+
return `#${S.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}${_.toString(16).padStart(2, "0")}${b}`;
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
+
const m = n(() => ({
|
|
26
27
|
"--download-main-color": t.color,
|
|
27
|
-
"--download-main-color-opacity":
|
|
28
|
-
})),
|
|
29
|
-
const e = [r("inner-wrapper"),
|
|
30
|
-
return t.disabled && (
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
() => t.disabled,
|
|
34
|
-
() => {
|
|
35
|
-
t.disabled || N(t.getOssAccess);
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
flush: "sync"
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
const { client: f } = k(), g = () => {
|
|
42
|
-
t.disabled || f.downloadFile(t.fileName);
|
|
28
|
+
"--download-main-color-opacity": u(t.color, 0.6)
|
|
29
|
+
})), f = n(() => [r("wrapper"), a("wrapper", t.size)].filter(Boolean)), g = n(() => {
|
|
30
|
+
const e = [r("inner-wrapper"), a("inner-wrapper", t.size)];
|
|
31
|
+
return t.disabled && (d.value === "aplus" ? e.push(a("inner-wrapper", "disabled")) : e.push(a("inner-wrapper", "disabled-admin"))), e;
|
|
32
|
+
}), w = async () => {
|
|
33
|
+
t.disabled || await (await k(t.getOssAccess, z(c))).downloadFile(t.fileName);
|
|
43
34
|
};
|
|
44
|
-
return (e, o) => (
|
|
45
|
-
style:
|
|
46
|
-
class: i(
|
|
47
|
-
onClick:
|
|
35
|
+
return (e, o) => (v(), I("span", {
|
|
36
|
+
style: N(m.value),
|
|
37
|
+
class: i(f.value),
|
|
38
|
+
onClick: w
|
|
48
39
|
}, [
|
|
49
|
-
|
|
50
|
-
class: i(
|
|
40
|
+
s("span", {
|
|
41
|
+
class: i(g.value)
|
|
51
42
|
}, [
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
s("span", W, [
|
|
44
|
+
B(e.$slots, "icon")
|
|
54
45
|
]),
|
|
55
|
-
|
|
46
|
+
s("span", D, O(e.text), 1)
|
|
56
47
|
], 2)
|
|
57
48
|
], 6));
|
|
58
49
|
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { Oss } from '@aplus-frontend/oss';
|
|
2
2
|
|
|
3
3
|
export type { Oss } from '@aplus-frontend/oss';
|
|
4
|
-
export declare function
|
|
5
|
-
client: Oss;
|
|
6
|
-
};
|
|
7
|
-
export declare function useOssInit(getOssAccess: any): Promise<{
|
|
8
|
-
client: Oss;
|
|
9
|
-
}>;
|
|
4
|
+
export declare function useOssInit(getOssAccess: any, Locale: 'zh_CN' | 'en_US'): Promise<Oss | null>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { client as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
async function e(n) {
|
|
6
|
-
if (!n)
|
|
1
|
+
import { client as i } from "@aplus-frontend/oss";
|
|
2
|
+
const n = /* @__PURE__ */ new Map(), t = Symbol("ossInstance");
|
|
3
|
+
async function r(o, a) {
|
|
4
|
+
if (!o)
|
|
7
5
|
throw new Error("请传入getOssAccess");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
if (n.has(t))
|
|
7
|
+
return n.get(t);
|
|
8
|
+
const e = await i.initOssClient({
|
|
9
|
+
locale: a,
|
|
10
|
+
getOssAccess: o,
|
|
11
11
|
onFailure: (s) => {
|
|
12
12
|
throw new Error(
|
|
13
13
|
typeof (s == null ? void 0 : s.message) == "string" ? s.message : "获取oss临时权限失败"
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
|
-
})
|
|
16
|
+
});
|
|
17
|
+
return n.set(t, e), e;
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
-
e as useOssInit
|
|
20
|
+
r as useOssInit
|
|
21
21
|
};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
regionId: string;
|
|
4
|
-
endpoint: string;
|
|
5
|
-
accessKeyId: string;
|
|
6
|
-
accessKeySecret: string;
|
|
7
|
-
expiration: number;
|
|
8
|
-
extInformation: string;
|
|
9
|
-
fileProvideType: string;
|
|
10
|
-
callbackUrl: string;
|
|
11
|
-
}
|
|
1
|
+
import { accessCreate } from '@aplus-frontend/oss';
|
|
2
|
+
|
|
12
3
|
export interface ApDownLoadProps {
|
|
13
4
|
/**
|
|
14
5
|
* 标签内容
|
|
@@ -28,6 +19,5 @@ export interface ApDownLoadProps {
|
|
|
28
19
|
*/
|
|
29
20
|
disabled?: boolean;
|
|
30
21
|
fileName: string;
|
|
31
|
-
getOssAccess: () => Promise<
|
|
22
|
+
getOssAccess: () => Promise<accessCreate>;
|
|
32
23
|
}
|
|
33
|
-
export {};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
.aplus-download-wrapper {
|
|
1
|
+
.aplus-ap-download-wrapper {
|
|
2
2
|
text-wrap: nowrap;
|
|
3
3
|
display: inline-block;
|
|
4
4
|
display: flex;
|
|
5
5
|
}
|
|
6
|
-
.aplus-download-inner-wrapper {
|
|
6
|
+
.aplus-ap-download-inner-wrapper {
|
|
7
7
|
display: inline-block;
|
|
8
8
|
color: var(--download-main-color);
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
}
|
|
13
|
-
.aplus-download-inner-wrapper .icon {
|
|
13
|
+
.aplus-ap-download-inner-wrapper .icon {
|
|
14
14
|
position: relative;
|
|
15
15
|
font-size: 18px;
|
|
16
16
|
}
|
|
17
|
-
.aplus-download-inner-wrapper .text {
|
|
17
|
+
.aplus-ap-download-inner-wrapper .text {
|
|
18
18
|
margin-left: 5px;
|
|
19
19
|
}
|
|
20
|
-
.aplus-download-inner-wrapper:hover {
|
|
20
|
+
.aplus-ap-download-inner-wrapper:hover {
|
|
21
21
|
color: var(--download-main-color-opacity);
|
|
22
22
|
}
|
|
23
|
-
.aplus-download-inner-wrapper--large {
|
|
23
|
+
.aplus-ap-download-inner-wrapper--large {
|
|
24
24
|
line-height: 26px;
|
|
25
25
|
height: 28px;
|
|
26
26
|
font-size: 16px;
|
|
27
27
|
}
|
|
28
|
-
.aplus-download-inner-wrapper--middle {
|
|
28
|
+
.aplus-ap-download-inner-wrapper--middle {
|
|
29
29
|
line-height: 22px;
|
|
30
30
|
height: 24px;
|
|
31
31
|
font-size: 14px;
|
|
32
32
|
}
|
|
33
|
-
.aplus-download-inner-wrapper--small {
|
|
33
|
+
.aplus-ap-download-inner-wrapper--small {
|
|
34
34
|
line-height: 19px;
|
|
35
35
|
height: 20px;
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
}
|
|
38
|
-
.aplus-download-inner-wrapper--disabled {
|
|
38
|
+
.aplus-ap-download-inner-wrapper--disabled {
|
|
39
39
|
color: #8896b0;
|
|
40
40
|
cursor: not-allowed;
|
|
41
41
|
}
|
|
42
|
-
.aplus-download-inner-wrapper--disabled:hover {
|
|
42
|
+
.aplus-ap-download-inner-wrapper--disabled:hover {
|
|
43
43
|
color: #8896b0;
|
|
44
44
|
}
|
|
45
|
-
.aplus-download-inner-wrapper--disabled-admin {
|
|
45
|
+
.aplus-ap-download-inner-wrapper--disabled-admin {
|
|
46
46
|
cursor: not-allowed;
|
|
47
47
|
color: #999;
|
|
48
48
|
}
|
|
49
|
-
.aplus-download-inner-wrapper--disabled-admin:hover {
|
|
49
|
+
.aplus-ap-download-inner-wrapper--disabled-admin:hover {
|
|
50
50
|
color: #999;
|
|
51
51
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { isVNode as
|
|
1
|
+
import { isVNode as h, defineComponent as k, useSlots as w, watch as _, shallowRef as P, computed as S, unref as n, createVNode as b, mergeProps as m, openBlock as s, createBlock as c, withCtx as x, createElementBlock as B, Fragment as N, renderList as R, resolveDynamicComponent as j } from "vue";
|
|
2
2
|
import { Col as v, Row as F } from "ant-design-vue";
|
|
3
|
-
import { pick as I } from "lodash-unified";
|
|
3
|
+
import { pick as D, isBoolean as I } from "lodash-unified";
|
|
4
4
|
import { apFormItemColPropKeys as O } from "../constant.mjs";
|
|
5
|
-
import { genRealChildren as
|
|
5
|
+
import { genRealChildren as u, buildColSpan as V, getStringName as $ } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import "../style/ap-form-item-group.css";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { isDef as A } from "../../utils/index.mjs";
|
|
9
|
+
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
function G(t) {
|
|
11
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !h(t);
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
+
const U = /* @__PURE__ */ k({
|
|
13
14
|
name: "ApFormItemGroup",
|
|
14
15
|
__name: "index",
|
|
15
16
|
props: {
|
|
@@ -27,31 +28,31 @@ const M = /* @__PURE__ */ w({
|
|
|
27
28
|
default: 3
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
|
-
setup(
|
|
31
|
+
setup(t) {
|
|
31
32
|
const {
|
|
32
|
-
b:
|
|
33
|
-
} =
|
|
34
|
-
countPerRow:
|
|
35
|
-
...
|
|
36
|
-
} =
|
|
37
|
-
|
|
38
|
-
l.value =
|
|
33
|
+
b: a
|
|
34
|
+
} = E("ap-form-item-group"), {
|
|
35
|
+
countPerRow: d,
|
|
36
|
+
...f
|
|
37
|
+
} = t, p = w();
|
|
38
|
+
_(() => p.default(), (o) => {
|
|
39
|
+
l.value = u(o);
|
|
39
40
|
});
|
|
40
|
-
const l =
|
|
41
|
-
const e =
|
|
41
|
+
const l = P(u(p.default())), g = S(() => n(l).map((o, i) => {
|
|
42
|
+
const e = o.props, r = D(e, O), y = r != null && r.span ? {} : V(d), C = I(e.hidden) ? !!e.hidden : A(e.hidden);
|
|
42
43
|
return {
|
|
43
|
-
key: `${
|
|
44
|
-
node:
|
|
45
|
-
class: C ?
|
|
46
|
-
}),
|
|
47
|
-
default: () => [
|
|
44
|
+
key: `${i}-${$(e.name)}`,
|
|
45
|
+
node: b(v, m(y, r, {
|
|
46
|
+
class: C ? a("col-hidden") : ""
|
|
47
|
+
}), G(o) ? o : {
|
|
48
|
+
default: () => [o]
|
|
48
49
|
})
|
|
49
50
|
};
|
|
50
51
|
}));
|
|
51
|
-
return (
|
|
52
|
-
class: n(
|
|
53
|
-
},
|
|
54
|
-
default:
|
|
52
|
+
return (o, i) => (s(), c(n(F), m({
|
|
53
|
+
class: n(a)()
|
|
54
|
+
}, f), {
|
|
55
|
+
default: x(() => [(s(!0), B(N, null, R(g.value, (e) => (s(), c(j(e.node), {
|
|
55
56
|
key: e.key
|
|
56
57
|
}))), 128))]),
|
|
57
58
|
_: 1
|
|
@@ -59,5 +60,5 @@ const M = /* @__PURE__ */ w({
|
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
+
U as default
|
|
63
64
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Col as
|
|
1
|
+
import { isVNode as ne, defineComponent as le, useSlots as re, ref as se, unref as o, shallowRef as V, computed as g, watch as j, cloneVNode as ie, createVNode as n, Fragment as _, openBlock as m, createBlock as y, mergeProps as ue, withCtx as B, resolveDynamicComponent as A, createElementBlock as ce, renderList as pe } from "vue";
|
|
2
|
+
import { Col as R, Flex as M, Space as de, Button as E, Row as fe } from "ant-design-vue";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../ap-form-item.vue2.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import { genRealChildren as
|
|
7
|
-
import { DoubleRightOutlined as
|
|
6
|
+
import { genRealChildren as D } from "../ap-form-item-group/helper.mjs";
|
|
7
|
+
import { DoubleRightOutlined as me } from "@ant-design/icons-vue";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
9
|
import "../style/search-form.css";
|
|
10
|
-
import { isArray as
|
|
11
|
-
import { isDef as
|
|
12
|
-
import { diffFormItem as
|
|
13
|
-
import { useControllableValue as
|
|
14
|
-
import { useNamespace as
|
|
15
|
-
import { useGlobalConfig as
|
|
16
|
-
import { useLocale as
|
|
17
|
-
import
|
|
10
|
+
import { isArray as he, isBoolean as xe, omit as ye } from "lodash-unified";
|
|
11
|
+
import { isDef as $ } from "../../utils/index.mjs";
|
|
12
|
+
import { diffFormItem as Ce } from "./utils.mjs";
|
|
13
|
+
import { useControllableValue as ge } from "../../hooks/useControllableValue.mjs";
|
|
14
|
+
import { useNamespace as _e } from "../../config-provider/hooks/use-namespace.mjs";
|
|
15
|
+
import { useGlobalConfig as Re } from "../../config-provider/hooks/use-global-config.mjs";
|
|
16
|
+
import { useLocale as Se } from "../../config-provider/hooks/use-locale.mjs";
|
|
17
|
+
import L from "../ap-form-item.vue.mjs";
|
|
18
18
|
import Fe from "../ap-form.vue2.mjs";
|
|
19
|
-
function
|
|
20
|
-
return typeof
|
|
19
|
+
function Be(h) {
|
|
20
|
+
return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !ne(h);
|
|
21
21
|
}
|
|
22
|
-
const i = 24,
|
|
22
|
+
const i = 24, ze = /* @__PURE__ */ le({
|
|
23
23
|
name: "ApFormSearchForm",
|
|
24
24
|
__name: "index",
|
|
25
25
|
props: {
|
|
@@ -98,134 +98,139 @@ const i = 24, qe = /* @__PURE__ */ ae({
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
emits: ["update:collapse"],
|
|
101
|
-
setup(
|
|
102
|
-
expose:
|
|
101
|
+
setup(h, {
|
|
102
|
+
expose: W,
|
|
103
103
|
emit: q
|
|
104
104
|
}) {
|
|
105
|
-
var
|
|
106
|
-
const
|
|
107
|
-
value:
|
|
108
|
-
updateValue:
|
|
109
|
-
} =
|
|
105
|
+
var N;
|
|
106
|
+
const s = re(), a = h, z = q, {
|
|
107
|
+
value: u,
|
|
108
|
+
updateValue: H
|
|
109
|
+
} = ge(a, z, {
|
|
110
110
|
valuePropName: "collapse",
|
|
111
111
|
defaultValuePropName: "defaultCollapse"
|
|
112
112
|
}), {
|
|
113
|
-
b:
|
|
114
|
-
} =
|
|
115
|
-
t:
|
|
116
|
-
} =
|
|
117
|
-
function H() {
|
|
118
|
-
U(!t(f));
|
|
119
|
-
}
|
|
113
|
+
b: U
|
|
114
|
+
} = _e("ap-form-search-form"), G = Re("uiMode"), {
|
|
115
|
+
t: b
|
|
116
|
+
} = Se(), C = se();
|
|
120
117
|
function J() {
|
|
121
|
-
|
|
122
|
-
(a = (e = x.value) == null ? void 0 : e.validateFields()) == null || a.then(o.onSubmit);
|
|
118
|
+
H(!o(u));
|
|
123
119
|
}
|
|
124
120
|
function K() {
|
|
125
|
-
var e,
|
|
126
|
-
|
|
121
|
+
var e, t;
|
|
122
|
+
(t = (e = C.value) == null ? void 0 : e.validateFields()) == null || t.then(a.onSubmit);
|
|
123
|
+
}
|
|
124
|
+
function Q() {
|
|
125
|
+
var e, t, l;
|
|
126
|
+
a.customReset || (t = (e = C.value) == null ? void 0 : e.resetFields) == null || t.call(e), (l = a.onReset) == null || l.call(a);
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}),
|
|
128
|
+
let v = [];
|
|
129
|
+
const S = V(D(s.default())), p = V((N = s.extra) == null ? void 0 : N.call(s)), w = g(() => Math.floor(i / a.countPerRow));
|
|
130
|
+
j(() => s.default(), (e) => {
|
|
131
|
+
v = S.value, S.value = D(e);
|
|
132
|
+
}), j(() => {
|
|
133
133
|
var e;
|
|
134
|
-
return (e =
|
|
134
|
+
return (e = s.extra) == null ? void 0 : e.call(s);
|
|
135
135
|
}, (e) => {
|
|
136
|
-
|
|
136
|
+
p.value = e;
|
|
137
137
|
});
|
|
138
|
-
const
|
|
139
|
-
const e =
|
|
140
|
-
let
|
|
141
|
-
e.forEach((
|
|
142
|
-
const
|
|
143
|
-
|
|
138
|
+
const X = (e) => $(e) ? (he(e) ? e : [e]).join("") : Date.now(), F = g(() => {
|
|
139
|
+
const e = Ce(v, S.value), t = [], l = [], r = o(w);
|
|
140
|
+
let d = 0;
|
|
141
|
+
e.forEach((c) => {
|
|
142
|
+
const f = c.props;
|
|
143
|
+
(xe(f.hidden) ? !!f.hidden : $(f.hidden)) ? t.push(c) : (d += f.span || r, l.push(c));
|
|
144
144
|
});
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
const
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
|
|
145
|
+
const k = i - (d + r) % i, Z = d % i < r, ee = k < r ? i : k, I = i - r * (o(p) && !a.extraInAction ? 2 : 1), te = !a.forceExpand && d > I;
|
|
146
|
+
let P = 0, T = 0;
|
|
147
|
+
const oe = l.map((c, f) => {
|
|
148
|
+
const x = c.props, O = x.span || r;
|
|
149
|
+
if (P += O, !a.forceExpand && o(u) && P > I) {
|
|
150
|
+
t.push(ie(c, {
|
|
151
151
|
hidden: !0
|
|
152
152
|
}));
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
|
-
return
|
|
156
|
-
node:
|
|
157
|
-
span:
|
|
158
|
-
key: `ApFormSearchFormItem-${
|
|
155
|
+
return T += O, {
|
|
156
|
+
node: c,
|
|
157
|
+
span: x.span || r,
|
|
158
|
+
key: `ApFormSearchFormItem-${f}-${X(x.name)}-${x._signal}`
|
|
159
159
|
};
|
|
160
|
-
}).filter(Boolean),
|
|
160
|
+
}).filter(Boolean), ae = i - T - r;
|
|
161
161
|
return {
|
|
162
|
-
hideNode:
|
|
163
|
-
nodes:
|
|
164
|
-
defaultExtraSpan:
|
|
165
|
-
actualExtraSpan:
|
|
166
|
-
showCollapse:
|
|
162
|
+
hideNode: n(_, null, [t]),
|
|
163
|
+
nodes: oe,
|
|
164
|
+
defaultExtraSpan: ee,
|
|
165
|
+
actualExtraSpan: ae,
|
|
166
|
+
showCollapse: te,
|
|
167
|
+
lastRowOnlyIncludeActionAndExtra: Z
|
|
167
168
|
};
|
|
168
|
-
}),
|
|
169
|
+
}), Y = g(() => {
|
|
169
170
|
let e;
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
const t = o(F), l = n(R, {
|
|
172
|
+
span: o(w),
|
|
173
|
+
key: "actionWrapper"
|
|
173
174
|
}, {
|
|
174
|
-
default: () => [
|
|
175
|
-
default: () => [
|
|
176
|
-
justify: "space-between"
|
|
175
|
+
default: () => [n(L, null, {
|
|
176
|
+
default: () => [n(M, {
|
|
177
|
+
justify: !o(u) && t.lastRowOnlyIncludeActionAndExtra && !(o(p) && a.extraInAction) ? "flex-end" : "space-between"
|
|
177
178
|
}, {
|
|
178
|
-
default: () => [
|
|
179
|
-
default: () => [
|
|
179
|
+
default: () => [n(de, null, {
|
|
180
|
+
default: () => [n(E, {
|
|
180
181
|
type: "primary",
|
|
181
|
-
onClick:
|
|
182
|
-
loading:
|
|
182
|
+
onClick: K,
|
|
183
|
+
loading: a.submitLoading,
|
|
183
184
|
htmlType: "submit"
|
|
184
185
|
}, {
|
|
185
|
-
default: () => [
|
|
186
|
-
}),
|
|
187
|
-
onClick:
|
|
186
|
+
default: () => [a.searchText || b("ap.apForm.search.search")]
|
|
187
|
+
}), n(E, {
|
|
188
|
+
onClick: Q
|
|
188
189
|
}, {
|
|
189
|
-
default: () => [
|
|
190
|
-
}),
|
|
191
|
-
onClick:
|
|
192
|
-
icon:
|
|
190
|
+
default: () => [a.resetText || b("ap.apForm.search.reset")]
|
|
191
|
+
}), t.showCollapse ? n(E, {
|
|
192
|
+
onClick: J,
|
|
193
|
+
icon: n(me, {
|
|
193
194
|
style: G.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
|
|
194
|
-
rotate:
|
|
195
|
+
rotate: o(u) ? 90 : -90
|
|
195
196
|
}, null)
|
|
196
197
|
}, null) : null]
|
|
197
|
-
}),
|
|
198
|
+
}), a.extraInAction ? o(p) : null]
|
|
198
199
|
})]
|
|
199
200
|
})]
|
|
200
|
-
}), !
|
|
201
|
-
span:
|
|
201
|
+
}), r = !a.extraInAction && o(p) ? n(R, {
|
|
202
|
+
span: o(u) ? t.actualExtraSpan : t.defaultExtraSpan,
|
|
203
|
+
key: "extraNode"
|
|
202
204
|
}, {
|
|
203
|
-
default: () => [
|
|
204
|
-
default: () => [
|
|
205
|
-
justify: !
|
|
206
|
-
},
|
|
205
|
+
default: () => [n(L, null, {
|
|
206
|
+
default: () => [n(M, {
|
|
207
|
+
justify: !o(u) && (t.defaultExtraSpan === i || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
|
|
208
|
+
}, Be(e = o(p)) ? e : {
|
|
207
209
|
default: () => [e]
|
|
208
210
|
})]
|
|
209
211
|
})]
|
|
210
|
-
}) : null
|
|
212
|
+
}) : null, d = n(R, {
|
|
213
|
+
span: t.defaultExtraSpan
|
|
214
|
+
}, null);
|
|
215
|
+
return !o(u) && t.lastRowOnlyIncludeActionAndExtra ? n(_, null, [r || d, l]) : n(_, null, [l, r]);
|
|
211
216
|
});
|
|
212
|
-
return
|
|
213
|
-
apForm: g(() =>
|
|
214
|
-
}), (e,
|
|
215
|
-
class:
|
|
217
|
+
return W({
|
|
218
|
+
apForm: g(() => o(C))
|
|
219
|
+
}), (e, t) => (m(), y(Fe, ue({
|
|
220
|
+
class: o(U)(),
|
|
216
221
|
ref_key: "apForm",
|
|
217
|
-
ref:
|
|
218
|
-
},
|
|
219
|
-
default: B(() => [(
|
|
222
|
+
ref: C
|
|
223
|
+
}, o(ye)(a, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
224
|
+
default: B(() => [(m(), y(A(F.value.hideNode))), n(o(fe), {
|
|
220
225
|
gutter: 16
|
|
221
226
|
}, {
|
|
222
|
-
default: B(() => [(
|
|
223
|
-
key:
|
|
224
|
-
span:
|
|
227
|
+
default: B(() => [(m(!0), ce(_, null, pe(F.value.nodes, (l) => (m(), y(o(R), {
|
|
228
|
+
key: l.key,
|
|
229
|
+
span: l.span
|
|
225
230
|
}, {
|
|
226
|
-
default: B(() => [(
|
|
231
|
+
default: B(() => [(m(), y(A(l.node)))]),
|
|
227
232
|
_: 2
|
|
228
|
-
}, 1032, ["span"]))), 128)), (
|
|
233
|
+
}, 1032, ["span"]))), 128)), (m(), y(A(Y.value)))]),
|
|
229
234
|
_: 1
|
|
230
235
|
})]),
|
|
231
236
|
_: 1
|
|
@@ -233,5 +238,5 @@ const i = 24, qe = /* @__PURE__ */ ae({
|
|
|
233
238
|
}
|
|
234
239
|
});
|
|
235
240
|
export {
|
|
236
|
-
|
|
241
|
+
ze as default
|
|
237
242
|
};
|
|
@@ -4,7 +4,7 @@ import { ColumnType } from 'ant-design-vue/es/table';
|
|
|
4
4
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
5
5
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
6
6
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
7
|
-
import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, CompareFn, ColumnFilterItem, SortOrder } from 'ant-design-vue/es/table/interface';
|
|
7
|
+
import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, CompareFn, ColumnFilterItem, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
8
8
|
import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, GetRowKey, TableSticky, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender } from 'ant-design-vue/es/vc-table/interface';
|
|
9
9
|
import { TablePaginationConfig } from 'ant-design-vue';
|
|
10
10
|
import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
|
|
@@ -672,7 +672,9 @@ declare const _default: <RecordType>(__VLS_props: {
|
|
|
672
672
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
673
673
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
674
674
|
}>> | undefined;
|
|
675
|
-
rowSelection?: true | ApTableRowSelection<RecordType> |
|
|
675
|
+
rowSelection?: true | ApTableRowSelection<RecordType> | ( TableRowSelection<RecordType> & {
|
|
676
|
+
mode?: "base" | undefined;
|
|
677
|
+
}) | undefined;
|
|
676
678
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
677
679
|
showHeader?: boolean | undefined;
|
|
678
680
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -1417,7 +1419,9 @@ declare const _default: <RecordType>(__VLS_props: {
|
|
|
1417
1419
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
1418
1420
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
1419
1421
|
}>> | undefined;
|
|
1420
|
-
rowSelection?: true | ApTableRowSelection<RecordType> |
|
|
1422
|
+
rowSelection?: true | ApTableRowSelection<RecordType> | ( TableRowSelection<RecordType> & {
|
|
1423
|
+
mode?: "base" | undefined;
|
|
1424
|
+
}) | undefined;
|
|
1421
1425
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
1422
1426
|
showHeader?: boolean | undefined;
|
|
1423
1427
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -2166,7 +2170,9 @@ declare const _default: <RecordType>(__VLS_props: {
|
|
|
2166
2170
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
2167
2171
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
2168
2172
|
}>> | undefined;
|
|
2169
|
-
rowSelection?: true | ApTableRowSelection<RecordType> |
|
|
2173
|
+
rowSelection?: true | ApTableRowSelection<RecordType> | ( TableRowSelection<RecordType> & {
|
|
2174
|
+
mode?: "base" | undefined;
|
|
2175
|
+
}) | undefined;
|
|
2170
2176
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
2171
2177
|
showHeader?: boolean | undefined;
|
|
2172
2178
|
customRow?: GetComponentProps<RecordType> | undefined;
|