@aplus-frontend/ui 0.1.30 → 0.1.31
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/index.mjs +147 -144
- package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
- package/es/src/ap-button/ap-button.vue.mjs +116 -0
- package/es/src/ap-button/ap-button.vue2.mjs +4 -0
- package/es/src/ap-button/index.d.ts +3 -0
- package/es/src/ap-button/index.mjs +2 -0
- package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
- package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/es/src/ap-form/dependency/index.vue.mjs +37 -0
- package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +10 -6
- package/es/src/ap-form/interface.d.ts +3 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +52 -50
- package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/es/src/business/hooks/useTableRefresh.mjs +1 -1
- package/es/src/business/index.d.ts +0 -265
- package/es/src/business/index.mjs +21 -25
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +169 -165
- package/lib/index.js +1 -1
- package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
- package/lib/src/ap-button/ap-button.vue.js +1 -0
- package/lib/src/ap-button/ap-button.vue2.js +1 -0
- package/lib/src/ap-button/index.d.ts +3 -0
- package/lib/src/ap-button/index.js +1 -0
- package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/lib/src/ap-form/dependency/index.vue.js +1 -0
- package/lib/src/ap-form/dependency/index.vue2.js +1 -0
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/business/index.d.ts +0 -265
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/package.json +1 -1
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
- package/lib/src/business/ap-action-button/ApActionButton.vue.js +0 -1
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
- /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
- /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
- /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as p, ref as m, watchEffect as y, unref as _, renderSlot as g } from "vue";
|
|
2
|
+
import { useInjectForm as h } from "../context.mjs";
|
|
3
|
+
import { isArray as V, isNumber as d, cloneDeep as b } from "lodash-unified";
|
|
4
|
+
const A = /* @__PURE__ */ p({
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
nameList: {}
|
|
8
|
+
},
|
|
9
|
+
setup(u) {
|
|
10
|
+
function a(t, s) {
|
|
11
|
+
return V(s) ? s.reduce((o, e) => o == null ? void 0 : o[e], t) : t == null ? void 0 : t[s];
|
|
12
|
+
}
|
|
13
|
+
const c = u, {
|
|
14
|
+
model: i
|
|
15
|
+
} = h(), f = m({});
|
|
16
|
+
function l(t, s, o) {
|
|
17
|
+
let e = s;
|
|
18
|
+
for (let r = 0; r < t.length; r++) {
|
|
19
|
+
const n = t[r];
|
|
20
|
+
r === t.length - 1 ? e[n] = o : (d(n) ? (Array.isArray(e) || (e[n] = []), e[n] || (e[n] = {})) : (typeof e[n] != "object" || e[n] === null) && (e[n] = {}), e = e[n]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return y(() => {
|
|
24
|
+
const t = b(f.value);
|
|
25
|
+
for (const s of c.nameList) {
|
|
26
|
+
const o = [s].flat(1), e = a(_(i), o);
|
|
27
|
+
l(o, t, e);
|
|
28
|
+
}
|
|
29
|
+
f.value = t;
|
|
30
|
+
}), (t, s) => g(t.$slots, "default", {
|
|
31
|
+
values: f.value
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
A as default
|
|
37
|
+
};
|
|
@@ -5,6 +5,7 @@ import { default as ApFormList } from './ap-form-list.vue';
|
|
|
5
5
|
import { default as ApFormSearchForm } from './search-form/index.vue';
|
|
6
6
|
import { default as ApFormModalForm } from './modal-form/index.vue';
|
|
7
7
|
import { default as useWatch } from './hooks/use-watch';
|
|
8
|
+
import { default as ApFormDependency } from './dependency/index.vue';
|
|
8
9
|
type ApFormMixedProps = typeof _ApForm & {
|
|
9
10
|
FormItem: typeof ApFormItem;
|
|
10
11
|
FormItemGroup: typeof ApFormItemGroup;
|
|
@@ -12,8 +13,9 @@ type ApFormMixedProps = typeof _ApForm & {
|
|
|
12
13
|
SearchForm: typeof ApFormSearchForm;
|
|
13
14
|
ModalForm: typeof ApFormModalForm;
|
|
14
15
|
useWatch: typeof useWatch;
|
|
16
|
+
Dependency: typeof ApFormDependency;
|
|
15
17
|
};
|
|
16
18
|
declare const ApForm: ApFormMixedProps;
|
|
17
19
|
export * from './items';
|
|
18
20
|
export * from './interface';
|
|
19
|
-
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm };
|
|
21
|
+
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency };
|
package/es/src/ap-form/index.mjs
CHANGED
|
@@ -5,25 +5,29 @@ import "./ap-form-list.vue2.mjs";
|
|
|
5
5
|
import "./search-form/index.vue2.mjs";
|
|
6
6
|
import "./modal-form/index.vue2.mjs";
|
|
7
7
|
import o from "./hooks/use-watch.mjs";
|
|
8
|
+
import "./dependency/index.vue2.mjs";
|
|
8
9
|
import "./items/index.mjs";
|
|
9
10
|
import "./interface.mjs";
|
|
10
11
|
import r from "./ap-form.vue2.mjs";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
12
|
+
import p from "./ap-form-item.vue.mjs";
|
|
13
|
+
import t from "./ap-form-item-group/index.vue.mjs";
|
|
13
14
|
import i from "./ap-form-list.vue.mjs";
|
|
14
15
|
import a from "./search-form/index.vue.mjs";
|
|
15
16
|
import s from "./modal-form/index.vue.mjs";
|
|
17
|
+
import e from "./dependency/index.vue.mjs";
|
|
16
18
|
const m = r;
|
|
17
|
-
m.FormItem =
|
|
18
|
-
m.FormItemGroup =
|
|
19
|
+
m.FormItem = p;
|
|
20
|
+
m.FormItemGroup = t;
|
|
19
21
|
m.FormList = i;
|
|
20
22
|
m.SearchForm = a;
|
|
21
23
|
m.ModalForm = s;
|
|
22
24
|
m.useWatch = o;
|
|
25
|
+
m.Dependency = e;
|
|
23
26
|
export {
|
|
24
27
|
m as ApForm,
|
|
25
|
-
|
|
26
|
-
p as
|
|
28
|
+
e as ApFormDependency,
|
|
29
|
+
p as ApFormItem,
|
|
30
|
+
t as ApFormItemGroup,
|
|
27
31
|
i as ApFormList,
|
|
28
32
|
s as ApFormModalForm,
|
|
29
33
|
a as ApFormSearchForm
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { formatFileNameAndDownloadFile as
|
|
3
|
-
import { DownOutlined as
|
|
4
|
-
import { Modal as
|
|
1
|
+
import { defineComponent as R, computed as c, ref as T, openBlock as y, createBlock as p, unref as o, normalizeClass as I, withCtx as l, createVNode as x, createTextVNode as b, toDisplayString as h, normalizeStyle as V, createCommentVNode as q } from "vue";
|
|
2
|
+
import { formatFileNameAndDownloadFile as z } from "@aplus-frontend/utils";
|
|
3
|
+
import { DownOutlined as O } from "@ant-design/icons-vue";
|
|
4
|
+
import { Modal as j, Dropdown as J, Menu as H, MenuItem as F, Button as Q } from "ant-design-vue";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import { ApExportGroupActionType as d } from "./interface.mjs";
|
|
7
|
-
import { usePermission as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
const
|
|
7
|
+
import { usePermission as U } from "@aplus-frontend/hooks";
|
|
8
|
+
import { useNamespace as W } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
const ue = /* @__PURE__ */ R({
|
|
12
12
|
__name: "ApExportGroup",
|
|
13
13
|
props: {
|
|
14
14
|
selectedRowKeys: {},
|
|
@@ -22,72 +22,74 @@ const re = /* @__PURE__ */ K({
|
|
|
22
22
|
getInitialParams: { type: Function },
|
|
23
23
|
beforeRequest: { type: Function }
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const { hasPermission:
|
|
27
|
-
const
|
|
25
|
+
setup(A) {
|
|
26
|
+
const { hasPermission: L } = U(), e = A, { b: G } = W("ap-export-group"), { t: i } = X(), M = Y("uiMode"), k = c(() => {
|
|
27
|
+
const a = {
|
|
28
28
|
aplus: "#0070FF",
|
|
29
29
|
admin: "#34b77c"
|
|
30
30
|
};
|
|
31
|
-
return w.value ? "" :
|
|
32
|
-
}), w = c(() => !!(e != null && e.disabled)),
|
|
31
|
+
return w.value ? "" : a[M.value] || a.aplus;
|
|
32
|
+
}), w = c(() => !!(e != null && e.disabled)), N = {
|
|
33
33
|
textAlign: "center"
|
|
34
|
-
}, s =
|
|
35
|
-
let
|
|
36
|
-
return !(e != null && e.ifShow) && (e != null && e.auth) && (
|
|
34
|
+
}, s = T(!1), g = c(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = c(() => {
|
|
35
|
+
let a = e == null ? void 0 : e.ifShow;
|
|
36
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (a = () => L(e.auth)), (a == null ? void 0 : a()) ?? !0;
|
|
37
37
|
});
|
|
38
|
-
async function
|
|
39
|
-
var
|
|
40
|
-
const { getRequestParams:
|
|
38
|
+
async function B({ key: a }) {
|
|
39
|
+
var v, E, S, _, C;
|
|
40
|
+
const { getRequestParams: r, request: n } = e || {};
|
|
41
41
|
let m = {};
|
|
42
|
-
|
|
43
|
-
[(e == null ? void 0 : e.idKey) || "ids"]:
|
|
44
|
-
} :
|
|
45
|
-
const
|
|
42
|
+
a === d.SELECT ? m = {
|
|
43
|
+
[(e == null ? void 0 : e.idKey) || "ids"]: g.value
|
|
44
|
+
} : a === d.ALL && (m = (r == null ? void 0 : r()) || {});
|
|
45
|
+
const D = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
|
|
46
46
|
try {
|
|
47
47
|
s.value = !0;
|
|
48
48
|
let u = {
|
|
49
49
|
...m,
|
|
50
|
-
...
|
|
50
|
+
...D
|
|
51
51
|
};
|
|
52
52
|
u = ((E = e == null ? void 0 : e.beforeRequest) == null ? void 0 : E.call(e, u)) || u;
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
const t = await (n == null ? void 0 : n(u));
|
|
54
|
+
if (toString.call(t == null ? void 0 : t.data) !== "[object Blob]")
|
|
55
|
+
return;
|
|
56
|
+
t != null && t.headers && !((S = t == null ? void 0 : t.headers) != null && S["content-disposition"]) ? (C = (_ = t == null ? void 0 : t.data) == null ? void 0 : _.text()) == null || C.then((K) => {
|
|
57
|
+
const f = JSON.parse(K || "{}");
|
|
58
|
+
f.code && f.code !== "200" && j.error({
|
|
59
|
+
title: i("ap.apExportGroup.exportError"),
|
|
58
60
|
content: f.message,
|
|
59
61
|
centered: !0
|
|
60
62
|
});
|
|
61
|
-
}) :
|
|
63
|
+
}) : z(t);
|
|
62
64
|
} finally {
|
|
63
65
|
s.value = !1;
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
|
-
return (
|
|
68
|
+
return (a, r) => P.value ? (y(), p(o(J), {
|
|
67
69
|
key: 0,
|
|
68
|
-
class:
|
|
69
|
-
overlayStyle:
|
|
70
|
+
class: I([o(G)()]),
|
|
71
|
+
overlayStyle: N,
|
|
70
72
|
disabled: w.value
|
|
71
73
|
}, {
|
|
72
74
|
overlay: l(() => [
|
|
73
|
-
x(
|
|
75
|
+
x(o(H), { onClick: B }, {
|
|
74
76
|
default: l(() => {
|
|
75
|
-
var
|
|
77
|
+
var n;
|
|
76
78
|
return [
|
|
77
|
-
(y(), p(
|
|
78
|
-
key:
|
|
79
|
-
disabled: ((
|
|
79
|
+
(y(), p(o(F), {
|
|
80
|
+
key: o(d).SELECT,
|
|
81
|
+
disabled: ((n = g.value) == null ? void 0 : n.length) === 0
|
|
80
82
|
}, {
|
|
81
83
|
default: l(() => [
|
|
82
|
-
b(h(
|
|
84
|
+
b(h(o(i)("ap.apExportGroup.exportSelected")), 1)
|
|
83
85
|
]),
|
|
84
86
|
_: 1
|
|
85
87
|
}, 8, ["disabled"])),
|
|
86
|
-
(y(), p(
|
|
87
|
-
key:
|
|
88
|
+
(y(), p(o(F), {
|
|
89
|
+
key: o(d).ALL
|
|
88
90
|
}, {
|
|
89
91
|
default: l(() => [
|
|
90
|
-
b(h(
|
|
92
|
+
b(h(o(i)("ap.apExportGroup.exportAll")), 1)
|
|
91
93
|
]),
|
|
92
94
|
_: 1
|
|
93
95
|
}))
|
|
@@ -97,23 +99,23 @@ const re = /* @__PURE__ */ K({
|
|
|
97
99
|
})
|
|
98
100
|
]),
|
|
99
101
|
default: l(() => [
|
|
100
|
-
x(
|
|
101
|
-
style:
|
|
102
|
-
color:
|
|
102
|
+
x(o(Q), {
|
|
103
|
+
style: V({
|
|
104
|
+
color: k.value
|
|
103
105
|
}),
|
|
104
106
|
loading: s.value
|
|
105
107
|
}, {
|
|
106
108
|
default: l(() => [
|
|
107
|
-
b(h((e == null ? void 0 : e.text) ??
|
|
108
|
-
x(
|
|
109
|
+
b(h((e == null ? void 0 : e.text) ?? o(i)("ap.apExportGroup.export")) + " ", 1),
|
|
110
|
+
x(o(O))
|
|
109
111
|
]),
|
|
110
112
|
_: 1
|
|
111
113
|
}, 8, ["style", "loading"])
|
|
112
114
|
]),
|
|
113
115
|
_: 1
|
|
114
|
-
}, 8, ["class", "disabled"])) :
|
|
116
|
+
}, 8, ["class", "disabled"])) : q("", !0);
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
119
|
export {
|
|
118
|
-
|
|
120
|
+
ue as default
|
|
119
121
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { onMounted as c, nextTick as l, onActivated as T } from "vue";
|
|
2
2
|
function m(e) {
|
|
3
|
-
const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.
|
|
3
|
+
const a = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", r = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
|
|
4
4
|
let s = !0;
|
|
5
5
|
c(() => {
|
|
6
6
|
l(() => {
|
|
@@ -30,7 +30,6 @@ export type { ApExportGroupProps } from './ap-export-group/interface';
|
|
|
30
30
|
export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
|
|
31
31
|
export * from './ap-batch-action-group/interface';
|
|
32
32
|
export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
|
|
33
|
-
export * from './ap-action-button/interface';
|
|
34
33
|
export declare const ApTitle: {
|
|
35
34
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
36
35
|
title: {
|
|
@@ -2799,269 +2798,5 @@ export declare const ApAttachment: DefineComponent<{
|
|
|
2799
2798
|
attachmentList: AttachmentItemProps[];
|
|
2800
2799
|
fileMorePopoverPlacement: TooltipPlacement;
|
|
2801
2800
|
}, {}>;
|
|
2802
|
-
export declare const ApActionButton: {
|
|
2803
|
-
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
2804
|
-
size: {
|
|
2805
|
-
type: PropType<"small" | "large" | "middle">;
|
|
2806
|
-
};
|
|
2807
|
-
type: {
|
|
2808
|
-
type: PropType< ButtonType | "borderLink">;
|
|
2809
|
-
default: string;
|
|
2810
|
-
};
|
|
2811
|
-
title: {
|
|
2812
|
-
type: PropType<string>;
|
|
2813
|
-
};
|
|
2814
|
-
onClick: {
|
|
2815
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2816
|
-
};
|
|
2817
|
-
onMousedown: {
|
|
2818
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2819
|
-
};
|
|
2820
|
-
block: {
|
|
2821
|
-
type: PropType<boolean>;
|
|
2822
|
-
};
|
|
2823
|
-
icon: {
|
|
2824
|
-
type: PropType<any>;
|
|
2825
|
-
};
|
|
2826
|
-
disabled: {
|
|
2827
|
-
type: PropType<boolean>;
|
|
2828
|
-
};
|
|
2829
|
-
minWidth: {
|
|
2830
|
-
type: PropType<string | number | boolean>;
|
|
2831
|
-
default: boolean;
|
|
2832
|
-
};
|
|
2833
|
-
target: {
|
|
2834
|
-
type: PropType<string>;
|
|
2835
|
-
};
|
|
2836
|
-
prefixCls: {
|
|
2837
|
-
type: PropType<string>;
|
|
2838
|
-
};
|
|
2839
|
-
htmlType: {
|
|
2840
|
-
type: PropType<ButtonHTMLType>;
|
|
2841
|
-
};
|
|
2842
|
-
shape: {
|
|
2843
|
-
type: PropType<ButtonShape>;
|
|
2844
|
-
};
|
|
2845
|
-
loading: {
|
|
2846
|
-
type: PropType<boolean | {
|
|
2847
|
-
delay?: number;
|
|
2848
|
-
}>;
|
|
2849
|
-
};
|
|
2850
|
-
ghost: {
|
|
2851
|
-
type: PropType<boolean>;
|
|
2852
|
-
};
|
|
2853
|
-
danger: {
|
|
2854
|
-
type: PropType<boolean>;
|
|
2855
|
-
};
|
|
2856
|
-
href: {
|
|
2857
|
-
type: PropType<string>;
|
|
2858
|
-
};
|
|
2859
|
-
borderLinkColor: {
|
|
2860
|
-
type: PropType<string>;
|
|
2861
|
-
};
|
|
2862
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2863
|
-
size: {
|
|
2864
|
-
type: PropType<"small" | "large" | "middle">;
|
|
2865
|
-
};
|
|
2866
|
-
type: {
|
|
2867
|
-
type: PropType< ButtonType | "borderLink">;
|
|
2868
|
-
default: string;
|
|
2869
|
-
};
|
|
2870
|
-
title: {
|
|
2871
|
-
type: PropType<string>;
|
|
2872
|
-
};
|
|
2873
|
-
onClick: {
|
|
2874
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2875
|
-
};
|
|
2876
|
-
onMousedown: {
|
|
2877
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2878
|
-
};
|
|
2879
|
-
block: {
|
|
2880
|
-
type: PropType<boolean>;
|
|
2881
|
-
};
|
|
2882
|
-
icon: {
|
|
2883
|
-
type: PropType<any>;
|
|
2884
|
-
};
|
|
2885
|
-
disabled: {
|
|
2886
|
-
type: PropType<boolean>;
|
|
2887
|
-
};
|
|
2888
|
-
minWidth: {
|
|
2889
|
-
type: PropType<string | number | boolean>;
|
|
2890
|
-
default: boolean;
|
|
2891
|
-
};
|
|
2892
|
-
target: {
|
|
2893
|
-
type: PropType<string>;
|
|
2894
|
-
};
|
|
2895
|
-
prefixCls: {
|
|
2896
|
-
type: PropType<string>;
|
|
2897
|
-
};
|
|
2898
|
-
htmlType: {
|
|
2899
|
-
type: PropType<ButtonHTMLType>;
|
|
2900
|
-
};
|
|
2901
|
-
shape: {
|
|
2902
|
-
type: PropType<ButtonShape>;
|
|
2903
|
-
};
|
|
2904
|
-
loading: {
|
|
2905
|
-
type: PropType<boolean | {
|
|
2906
|
-
delay?: number;
|
|
2907
|
-
}>;
|
|
2908
|
-
};
|
|
2909
|
-
ghost: {
|
|
2910
|
-
type: PropType<boolean>;
|
|
2911
|
-
};
|
|
2912
|
-
danger: {
|
|
2913
|
-
type: PropType<boolean>;
|
|
2914
|
-
};
|
|
2915
|
-
href: {
|
|
2916
|
-
type: PropType<string>;
|
|
2917
|
-
};
|
|
2918
|
-
borderLinkColor: {
|
|
2919
|
-
type: PropType<string>;
|
|
2920
|
-
};
|
|
2921
|
-
}>>, {
|
|
2922
|
-
type: ButtonType | "borderLink";
|
|
2923
|
-
minWidth: boolean | number | string;
|
|
2924
|
-
}, true, {}, {}, {
|
|
2925
|
-
P: {};
|
|
2926
|
-
B: {};
|
|
2927
|
-
D: {};
|
|
2928
|
-
C: {};
|
|
2929
|
-
M: {};
|
|
2930
|
-
Defaults: {};
|
|
2931
|
-
}, Readonly< ExtractPropTypes<{
|
|
2932
|
-
size: {
|
|
2933
|
-
type: PropType<"small" | "large" | "middle">;
|
|
2934
|
-
};
|
|
2935
|
-
type: {
|
|
2936
|
-
type: PropType< ButtonType | "borderLink">;
|
|
2937
|
-
default: string;
|
|
2938
|
-
};
|
|
2939
|
-
title: {
|
|
2940
|
-
type: PropType<string>;
|
|
2941
|
-
};
|
|
2942
|
-
onClick: {
|
|
2943
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2944
|
-
};
|
|
2945
|
-
onMousedown: {
|
|
2946
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2947
|
-
};
|
|
2948
|
-
block: {
|
|
2949
|
-
type: PropType<boolean>;
|
|
2950
|
-
};
|
|
2951
|
-
icon: {
|
|
2952
|
-
type: PropType<any>;
|
|
2953
|
-
};
|
|
2954
|
-
disabled: {
|
|
2955
|
-
type: PropType<boolean>;
|
|
2956
|
-
};
|
|
2957
|
-
minWidth: {
|
|
2958
|
-
type: PropType<string | number | boolean>;
|
|
2959
|
-
default: boolean;
|
|
2960
|
-
};
|
|
2961
|
-
target: {
|
|
2962
|
-
type: PropType<string>;
|
|
2963
|
-
};
|
|
2964
|
-
prefixCls: {
|
|
2965
|
-
type: PropType<string>;
|
|
2966
|
-
};
|
|
2967
|
-
htmlType: {
|
|
2968
|
-
type: PropType<ButtonHTMLType>;
|
|
2969
|
-
};
|
|
2970
|
-
shape: {
|
|
2971
|
-
type: PropType<ButtonShape>;
|
|
2972
|
-
};
|
|
2973
|
-
loading: {
|
|
2974
|
-
type: PropType<boolean | {
|
|
2975
|
-
delay?: number;
|
|
2976
|
-
}>;
|
|
2977
|
-
};
|
|
2978
|
-
ghost: {
|
|
2979
|
-
type: PropType<boolean>;
|
|
2980
|
-
};
|
|
2981
|
-
danger: {
|
|
2982
|
-
type: PropType<boolean>;
|
|
2983
|
-
};
|
|
2984
|
-
href: {
|
|
2985
|
-
type: PropType<string>;
|
|
2986
|
-
};
|
|
2987
|
-
borderLinkColor: {
|
|
2988
|
-
type: PropType<string>;
|
|
2989
|
-
};
|
|
2990
|
-
}>>, {}, {}, {}, {}, {
|
|
2991
|
-
type: ButtonType | "borderLink";
|
|
2992
|
-
minWidth: boolean | number | string;
|
|
2993
|
-
}>;
|
|
2994
|
-
__isFragment?: never;
|
|
2995
|
-
__isTeleport?: never;
|
|
2996
|
-
__isSuspense?: never;
|
|
2997
|
-
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
2998
|
-
size: {
|
|
2999
|
-
type: PropType<"small" | "large" | "middle">;
|
|
3000
|
-
};
|
|
3001
|
-
type: {
|
|
3002
|
-
type: PropType< ButtonType | "borderLink">;
|
|
3003
|
-
default: string;
|
|
3004
|
-
};
|
|
3005
|
-
title: {
|
|
3006
|
-
type: PropType<string>;
|
|
3007
|
-
};
|
|
3008
|
-
onClick: {
|
|
3009
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
3010
|
-
};
|
|
3011
|
-
onMousedown: {
|
|
3012
|
-
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
3013
|
-
};
|
|
3014
|
-
block: {
|
|
3015
|
-
type: PropType<boolean>;
|
|
3016
|
-
};
|
|
3017
|
-
icon: {
|
|
3018
|
-
type: PropType<any>;
|
|
3019
|
-
};
|
|
3020
|
-
disabled: {
|
|
3021
|
-
type: PropType<boolean>;
|
|
3022
|
-
};
|
|
3023
|
-
minWidth: {
|
|
3024
|
-
type: PropType<string | number | boolean>;
|
|
3025
|
-
default: boolean;
|
|
3026
|
-
};
|
|
3027
|
-
target: {
|
|
3028
|
-
type: PropType<string>;
|
|
3029
|
-
};
|
|
3030
|
-
prefixCls: {
|
|
3031
|
-
type: PropType<string>;
|
|
3032
|
-
};
|
|
3033
|
-
htmlType: {
|
|
3034
|
-
type: PropType<ButtonHTMLType>;
|
|
3035
|
-
};
|
|
3036
|
-
shape: {
|
|
3037
|
-
type: PropType<ButtonShape>;
|
|
3038
|
-
};
|
|
3039
|
-
loading: {
|
|
3040
|
-
type: PropType<boolean | {
|
|
3041
|
-
delay?: number;
|
|
3042
|
-
}>;
|
|
3043
|
-
};
|
|
3044
|
-
ghost: {
|
|
3045
|
-
type: PropType<boolean>;
|
|
3046
|
-
};
|
|
3047
|
-
danger: {
|
|
3048
|
-
type: PropType<boolean>;
|
|
3049
|
-
};
|
|
3050
|
-
href: {
|
|
3051
|
-
type: PropType<string>;
|
|
3052
|
-
};
|
|
3053
|
-
borderLinkColor: {
|
|
3054
|
-
type: PropType<string>;
|
|
3055
|
-
};
|
|
3056
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3057
|
-
type: ButtonType | "borderLink";
|
|
3058
|
-
minWidth: boolean | number | string;
|
|
3059
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3060
|
-
$slots: Partial<Record<string, (_: any) => any>>;
|
|
3061
|
-
}) & ( Plugin & (new (...args: any[]) => {
|
|
3062
|
-
$props: {
|
|
3063
|
-
onClick?: () => void;
|
|
3064
|
-
};
|
|
3065
|
-
}));
|
|
3066
2801
|
export { ApTransformDataHelper };
|
|
3067
2802
|
export * from './ap-table-modal';
|
|
@@ -14,15 +14,13 @@ import "./ap-batch-action-group/ApBatchActionGroup.vue.mjs";
|
|
|
14
14
|
import "./ap-image/ApImage.vue.mjs";
|
|
15
15
|
import "./ap-ladder/ApLadder.vue.mjs";
|
|
16
16
|
import p from "./ap-attachment/ApAttachment.mjs";
|
|
17
|
-
import "
|
|
18
|
-
import { ApTransformDataHelper as so } from "../utils/ap-trans-data/index.mjs";
|
|
17
|
+
import { ApTransformDataHelper as io } from "../utils/ap-trans-data/index.mjs";
|
|
19
18
|
import "./ap-batch-action-group/interface.mjs";
|
|
20
|
-
import "./ap-
|
|
21
|
-
import { default as Ao } from "./ap-table-modal/index.mjs";
|
|
19
|
+
import { default as no } from "./ap-table-modal/index.mjs";
|
|
22
20
|
import r from "./title/ApTitle.vue2.mjs";
|
|
23
21
|
import i from "./ap-expand-alert/ApExpandAlert.vue2.mjs";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
22
|
+
import a from "./ap-status/ApStatus.vue2.mjs";
|
|
23
|
+
import n from "./ap-status/ApStatusGroup.vue2.mjs";
|
|
26
24
|
import c from "./ap-select-layout/select-layout.vue2.mjs";
|
|
27
25
|
import f from "./ap-export-group/ApExportGroup.vue2.mjs";
|
|
28
26
|
import s from "./ap-input-radio/ApInputRadio.vue2.mjs";
|
|
@@ -30,24 +28,22 @@ import _ from "./ap-batch-action/ApBatchAction.vue2.mjs";
|
|
|
30
28
|
import A from "./ap-batch-action-group/ApBatchActionGroup.vue2.mjs";
|
|
31
29
|
import e from "./ap-image/ApImage.vue2.mjs";
|
|
32
30
|
import l from "./ap-ladder/ApLadder.vue2.mjs";
|
|
33
|
-
|
|
34
|
-
const Q = o(r), U = i, V = o(t), W = o(n), X = o(a), Y = o(c), Z = o(f), oo = s, to = _, mo = m, po = A, ro = e, io = o(l), no = p, ao = o(u);
|
|
31
|
+
const K = o(r), N = i, O = o(t), P = o(a), Q = o(n), U = o(c), V = o(f), W = s, X = _, Y = m, Z = A, oo = e, to = o(l), mo = p;
|
|
35
32
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
so as ApTransformDataHelper
|
|
33
|
+
mo as ApAttachment,
|
|
34
|
+
X as ApBatchAction,
|
|
35
|
+
Z as ApBatchActionGroup,
|
|
36
|
+
N as ApExpandAlert,
|
|
37
|
+
V as ApExportGroup,
|
|
38
|
+
oo as ApImage,
|
|
39
|
+
W as ApInputRadio,
|
|
40
|
+
O as ApLabel,
|
|
41
|
+
Y as ApLabelGroup,
|
|
42
|
+
to as ApLadder,
|
|
43
|
+
U as ApSelectLayout,
|
|
44
|
+
P as ApStatus,
|
|
45
|
+
Q as ApStatusGroup,
|
|
46
|
+
no as ApTableModal,
|
|
47
|
+
K as ApTitle,
|
|
48
|
+
io as ApTransformDataHelper
|
|
53
49
|
};
|
package/es/src/index.d.ts
CHANGED