@aplus-frontend/ui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.mjs +1 -0
- package/es/src/ap-button/ap-button.vue.d.ts +3 -0
- package/es/src/ap-button/ap-button.vue.mjs +47 -66
- package/es/src/ap-button/interface.d.ts +1 -0
- package/es/src/ap-button/utils/index.d.ts +3 -0
- package/es/src/ap-button/utils/index.mjs +33 -0
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +23 -22
- package/es/src/ap-field/hooks/use-options.d.ts +8 -0
- package/es/src/ap-field/hooks/use-options.mjs +22 -0
- package/es/src/ap-field/radio/index.vue.mjs +25 -24
- package/es/src/ap-field/segmented/index.vue.mjs +37 -33
- package/es/src/ap-field/select/index.vue.mjs +74 -73
- package/es/src/ap-table/ap-table.vue.mjs +2 -428
- package/es/src/ap-table/ap-table.vue2.mjs +428 -2
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +22 -20
- package/es/src/ap-table/hooks/use-table-column-state.mjs +72 -69
- package/es/src/ap-table/index.d.ts +6 -1
- package/es/src/ap-table/index.mjs +9 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
- package/es/src/business/ap-batch-action/index.d.ts +8 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
- package/es/src/business/ap-batch-action-group/index.d.ts +4 -0
- package/es/src/business/ap-button-group/index.d.ts +8 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +42 -40
- package/es/src/business/ap-table-modal/index.d.ts +38 -1
- package/es/src/business/ap-table-modal/interface.d.ts +17 -2
- package/es/src/business/ap-table-modal/style/css.js +1 -1
- package/es/src/business/ap-table-modal/style/index.js +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +134 -79
- package/es/src/config-provider/config-provider.d.ts +1 -0
- package/es/src/config-provider/css-var.d.ts +1 -0
- package/es/src/config-provider/css-var.mjs +7 -5
- package/es/src/config-provider/index.d.ts +6 -0
- package/es/src/index.mjs +201 -202
- package/es/src/locale/lang/en.mjs +3 -1
- package/es/src/locale/lang/zh-cn.mjs +3 -1
- package/es/src/path-map.mjs +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +3 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -0
- package/lib/src/ap-button/utils/index.d.ts +3 -0
- package/lib/src/ap-button/utils/index.js +1 -0
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +8 -0
- package/lib/src/ap-field/hooks/use-options.js +1 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/index.d.ts +6 -1
- package/lib/src/ap-table/index.js +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +8 -3
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +4 -0
- package/lib/src/business/ap-button-group/index.d.ts +8 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +38 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
- package/lib/src/business/ap-table-modal/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -0
- package/lib/src/config-provider/css-var.d.ts +1 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +6 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +2 -2
|
@@ -1,115 +1,118 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isDef as
|
|
3
|
-
import
|
|
4
|
-
import { useInjectApTable as
|
|
5
|
-
import { isObject as
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
n(o), (
|
|
1
|
+
import { ref as _, shallowRef as j, unref as f, computed as z, watchEffect as D } from "vue";
|
|
2
|
+
import { isDef as G } from "../../utils/index.mjs";
|
|
3
|
+
import W, { customCloneColumnStates as k, getColumnStateString as X } from "../components/setting/utils.mjs";
|
|
4
|
+
import { useInjectApTable as q } from "../context.mjs";
|
|
5
|
+
import { isObject as B, mergeWith as E, isBoolean as H, omit as L, isNumber as N } from "lodash-unified";
|
|
6
|
+
function a(r, n) {
|
|
7
|
+
r.forEach((o) => {
|
|
8
|
+
var c;
|
|
9
|
+
n(o), (c = o.children) != null && c.length && a(o.children, n);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function P(r, n) {
|
|
13
13
|
if (!n)
|
|
14
14
|
return {};
|
|
15
|
-
const o =
|
|
15
|
+
const o = r.getItem(n);
|
|
16
16
|
return o ? JSON.parse(o) : {};
|
|
17
17
|
}
|
|
18
|
-
function I(
|
|
19
|
-
if (
|
|
20
|
-
return E({},
|
|
18
|
+
function I(r, n) {
|
|
19
|
+
if (B(r) && B(n))
|
|
20
|
+
return E({}, r, n, I);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const o =
|
|
24
|
-
|
|
25
|
-
), { columnsBackup: m, updateColumns:
|
|
22
|
+
const b = Number.MAX_SAFE_INTEGER, V = (r, n) => {
|
|
23
|
+
const o = _(n), c = j(
|
|
24
|
+
k(n)
|
|
25
|
+
), { columnsBackup: m, updateColumns: d } = q(), T = r.persistenceType || "localStorage", p = window[T];
|
|
26
26
|
function F() {
|
|
27
|
-
const e =
|
|
27
|
+
const e = P(
|
|
28
28
|
p,
|
|
29
|
-
|
|
30
|
-
),
|
|
29
|
+
r.persistenceKey
|
|
30
|
+
), t = E(
|
|
31
31
|
{},
|
|
32
|
-
|
|
32
|
+
r.defaultValue || {},
|
|
33
33
|
e,
|
|
34
34
|
I
|
|
35
|
-
),
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
key:
|
|
41
|
-
label:
|
|
35
|
+
), s = f(m);
|
|
36
|
+
function l(R, u, y) {
|
|
37
|
+
return R.map((i) => {
|
|
38
|
+
var A;
|
|
39
|
+
const v = (u == null ? void 0 : u[i.key]) || {}, h = {
|
|
40
|
+
key: i.key,
|
|
41
|
+
label: i.title,
|
|
42
42
|
show: !0,
|
|
43
|
-
fixed:
|
|
43
|
+
fixed: y ? y.fixed : H(i.fixed) ? i.fixed ? "left" : void 0 : i.fixed,
|
|
44
44
|
disabled: !1,
|
|
45
|
-
...
|
|
45
|
+
...L(v, "children")
|
|
46
46
|
};
|
|
47
|
-
return h.children = (
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
return h.children = (A = i.children) != null && A.length ? l(
|
|
48
|
+
i.children,
|
|
49
|
+
v.children,
|
|
50
50
|
h
|
|
51
51
|
) : void 0, h;
|
|
52
|
-
}).sort(
|
|
53
|
-
(s, f) => (N(s.order) ? s.order : B) - (N(f.order) ? f.order : B)
|
|
54
|
-
);
|
|
52
|
+
}).sort(O);
|
|
55
53
|
}
|
|
56
|
-
return
|
|
54
|
+
return l(s || [], t);
|
|
57
55
|
}
|
|
58
|
-
|
|
56
|
+
function O(e, t) {
|
|
57
|
+
const s = N(e.order) ? e.order : b;
|
|
58
|
+
let l = N(t.order) ? t.order : b;
|
|
59
|
+
return e.fixed === "right" && t.fixed !== "right" && (l = s - 1), t.fixed === "left" && e.fixed !== "left" && (l = s - 1), s - l;
|
|
60
|
+
}
|
|
61
|
+
const C = z(() => f(o).every((e) => e.show));
|
|
59
62
|
function S() {
|
|
60
|
-
const e =
|
|
61
|
-
|
|
62
|
-
!
|
|
63
|
+
const e = f(o);
|
|
64
|
+
a(e, (t) => {
|
|
65
|
+
!t.disabled && (t.show = !0);
|
|
63
66
|
});
|
|
64
67
|
}
|
|
65
68
|
function g() {
|
|
66
|
-
const e =
|
|
67
|
-
|
|
68
|
-
!
|
|
69
|
+
const e = f(o);
|
|
70
|
+
a(e, (t) => {
|
|
71
|
+
!t.disabled && (t.show = !1);
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
74
|
+
function K() {
|
|
75
|
+
f(C) ? g() : S();
|
|
73
76
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
function J(e, t) {
|
|
78
|
+
a(f(o), (s) => {
|
|
79
|
+
s.key === e && (s.show = G(t) ? t : !s.show);
|
|
77
80
|
});
|
|
78
81
|
}
|
|
79
82
|
function w(e) {
|
|
80
83
|
o.value = e;
|
|
81
84
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
85
|
+
function M(e) {
|
|
86
|
+
c.value = e;
|
|
84
87
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
88
|
-
p.setItem(
|
|
88
|
+
function x(e) {
|
|
89
|
+
if (r.persistenceKey) {
|
|
90
|
+
const t = X(e);
|
|
91
|
+
p.setItem(r.persistenceKey, JSON.stringify(t));
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
|
-
return
|
|
92
|
-
var
|
|
94
|
+
return D(() => {
|
|
95
|
+
var t;
|
|
93
96
|
const e = F();
|
|
94
|
-
w(e), (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
w(e), (t = r.onChange) == null || t.call(r, e), d == null || d(
|
|
98
|
+
W(
|
|
99
|
+
f(m),
|
|
100
|
+
f(e)
|
|
98
101
|
)
|
|
99
|
-
),
|
|
102
|
+
), c.value = k(e), x(e);
|
|
100
103
|
}), {
|
|
101
104
|
columnState: o,
|
|
102
105
|
selectAll: S,
|
|
103
106
|
unSelectAll: g,
|
|
104
|
-
toggleSelect:
|
|
107
|
+
toggleSelect: J,
|
|
105
108
|
setColumnState: w,
|
|
106
109
|
isAllSelected: C,
|
|
107
|
-
toggleSelectAll:
|
|
108
|
-
columnStateBackup:
|
|
109
|
-
setColumnStateBackup:
|
|
110
|
-
cacheColumnStateIfNeeded:
|
|
110
|
+
toggleSelectAll: K,
|
|
111
|
+
columnStateBackup: c,
|
|
112
|
+
setColumnStateBackup: M,
|
|
113
|
+
cacheColumnStateIfNeeded: x
|
|
111
114
|
};
|
|
112
115
|
};
|
|
113
116
|
export {
|
|
114
|
-
|
|
117
|
+
V as useTableColumnState
|
|
115
118
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as _ApTable } from './ap-table.vue';
|
|
2
|
+
import { default as ApTableSetting } from './components/setting/modal/index.vue';
|
|
3
|
+
type ApTableMixedType = typeof _ApTable & {
|
|
4
|
+
Setting: typeof ApTableSetting;
|
|
5
|
+
};
|
|
6
|
+
declare const ApTable: ApTableMixedType;
|
|
2
7
|
export { ApTable };
|
|
3
8
|
export * from './interface';
|
|
4
9
|
export * from './hooks/use-table-paging';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import "./ap-table.
|
|
1
|
+
import "./ap-table.vue.mjs";
|
|
2
|
+
import "./components/setting/modal/index.vue.mjs";
|
|
2
3
|
import "./interface.mjs";
|
|
3
|
-
import { useTablePaging as
|
|
4
|
+
import { useTablePaging as s } from "./hooks/use-table-paging.mjs";
|
|
5
|
+
import o from "./ap-table.vue2.mjs";
|
|
6
|
+
import m from "./components/setting/modal/index.vue2.mjs";
|
|
7
|
+
const r = o;
|
|
8
|
+
r.Setting = m;
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
r as ApTable,
|
|
11
|
+
s as useTablePaging
|
|
6
12
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ApBatchActionProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
slots: {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
header: () => void;
|
|
6
|
+
prefix: () => void;
|
|
7
|
+
suffix: () => void;
|
|
8
|
+
}> & {
|
|
9
|
+
header: () => void;
|
|
10
|
+
prefix: () => void;
|
|
11
|
+
suffix: () => void;
|
|
7
12
|
};
|
|
8
13
|
refs: {};
|
|
9
14
|
attrs: Partial<{}>;
|
|
@@ -1,45 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { defineComponent as v, useSlots as _, computed as u, openBlock as m, createElementBlock as f, normalizeClass as r, unref as t, renderSlot as i, createCommentVNode as B, createElementVNode as s, createTextVNode as d, toDisplayString as o, createVNode as C, withCtx as k } from "vue";
|
|
2
|
+
import { Button as N } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
const
|
|
4
|
+
import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
import { useLocale as $ } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
const b = { class: "selected-desc" }, g = { class: "selected-desc-conut" }, w = { class: "selected-desc-clean" }, z = /* @__PURE__ */ v({
|
|
7
7
|
__name: "ApBatchAction",
|
|
8
8
|
props: {
|
|
9
9
|
selectedRowKeys: {},
|
|
10
10
|
clearAll: { type: Function }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { b:
|
|
12
|
+
setup(h) {
|
|
13
|
+
const { b: c } = V("ap-batch-action"), { t: a } = $(), l = h, n = _().header, y = u(() => {
|
|
14
14
|
var e;
|
|
15
15
|
return ((e = l.selectedRowKeys) == null ? void 0 : e.length) || 0;
|
|
16
|
+
}), A = u(() => {
|
|
17
|
+
const e = n == null ? void 0 : n();
|
|
18
|
+
return Array.isArray(e) && e.length > 0;
|
|
16
19
|
});
|
|
17
|
-
return (e,
|
|
18
|
-
class:
|
|
20
|
+
return (e, p) => (m(), f("div", {
|
|
21
|
+
class: r([t(c)()])
|
|
19
22
|
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
A.value ? (m(), f("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: r(t(c)("header"))
|
|
26
|
+
}, [
|
|
27
|
+
i(e.$slots, "header")
|
|
28
|
+
], 2)) : B("", !0),
|
|
29
|
+
s("div", {
|
|
30
|
+
class: r(t(c)("body"))
|
|
31
|
+
}, [
|
|
32
|
+
i(e.$slots, "prefix"),
|
|
33
|
+
s("div", b, [
|
|
34
|
+
s("div", g, [
|
|
35
|
+
d(o(t(a)("ap.apBatchAction.selected")) + " ", 1),
|
|
36
|
+
s("span", null, o(y.value), 1),
|
|
37
|
+
d(" " + o(t(a)("ap.apBatchAction.piecesOfData")), 1)
|
|
38
|
+
]),
|
|
39
|
+
s("div", w, [
|
|
40
|
+
C(t(N), {
|
|
41
|
+
type: "link",
|
|
42
|
+
onClick: p[0] || (p[0] = (x) => l.clearAll && l.clearAll())
|
|
43
|
+
}, {
|
|
44
|
+
default: k(() => [
|
|
45
|
+
d(o(t(a)("ap.apBatchAction.empty")), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})
|
|
49
|
+
])
|
|
26
50
|
]),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type: "link",
|
|
30
|
-
onClick: a[0] || (a[0] = (w) => l.clearAll && l.clearAll())
|
|
31
|
-
}, {
|
|
32
|
-
default: B(() => [
|
|
33
|
-
n(c(t(o)("ap.apBatchAction.empty")), 1)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
})
|
|
37
|
-
])
|
|
38
|
-
]),
|
|
39
|
-
r(e.$slots, "suffix")
|
|
51
|
+
i(e.$slots, "suffix")
|
|
52
|
+
], 2)
|
|
40
53
|
], 2));
|
|
41
54
|
}
|
|
42
55
|
});
|
|
43
56
|
export {
|
|
44
|
-
|
|
57
|
+
z as default
|
|
45
58
|
};
|
|
@@ -41,9 +41,14 @@ declare const ApBatchAction: {
|
|
|
41
41
|
type: PropType<() => void>;
|
|
42
42
|
};
|
|
43
43
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
44
|
-
$slots: {
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
header: () => void;
|
|
46
|
+
prefix: () => void;
|
|
47
|
+
suffix: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
header: () => void;
|
|
50
|
+
prefix: () => void;
|
|
51
|
+
suffix: () => void;
|
|
47
52
|
};
|
|
48
53
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
49
54
|
$props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as A, computed as n, openBlock as v, createBlock as y, unref as a, mergeProps as m, withCtx as r, createVNode as c, createElementVNode as C, normalizeStyle as D, toDisplayString as h, normalizeClass as N, normalizeProps as R, guardReactiveProps as T, createTextVNode as
|
|
2
|
-
import { DropdownButton as
|
|
1
|
+
import { defineComponent as A, computed as n, openBlock as v, createBlock as y, unref as a, mergeProps as m, withCtx as r, createVNode as c, createElementVNode as C, normalizeStyle as D, toDisplayString as h, normalizeClass as N, normalizeProps as R, guardReactiveProps as T, createTextVNode as V, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { DropdownButton as x, Dropdown as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../ap-button/index.mjs";
|
|
4
4
|
import "./MenuItemGroup.vue.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { usePermission as
|
|
8
|
-
import { useNamespace as
|
|
6
|
+
import { DownOutlined as G } from "@ant-design/icons-vue";
|
|
7
|
+
import { usePermission as M } from "@aplus-frontend/hooks";
|
|
8
|
+
import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { useLocale as F } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useGlobalConfig as O } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
11
|
import w from "./MenuItemGroup.vue2.mjs";
|
|
@@ -18,7 +18,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
18
18
|
menuList: {}
|
|
19
19
|
},
|
|
20
20
|
setup(P) {
|
|
21
|
-
const { b: i } =
|
|
21
|
+
const { b: i } = S("ap-batch-action-group"), { t: L } = F(), e = P, _ = O("uiMode"), { hasPermission: g } = M(), p = n(
|
|
22
22
|
() => {
|
|
23
23
|
var t;
|
|
24
24
|
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
|
|
@@ -31,7 +31,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
31
31
|
), f = n(
|
|
32
32
|
() => {
|
|
33
33
|
var t;
|
|
34
|
-
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) ||
|
|
34
|
+
return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || L("ap.apApBatchActionGroup.batchOperation");
|
|
35
35
|
}
|
|
36
36
|
), k = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
|
|
37
37
|
() => {
|
|
@@ -43,7 +43,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
43
43
|
aplus: "#0070FF",
|
|
44
44
|
admin: "#34b77c"
|
|
45
45
|
};
|
|
46
|
-
return u.value === "borderLink" ? d.value ? void 0 : t[
|
|
46
|
+
return u.value === "borderLink" ? d.value ? void 0 : t[_.value] || t.aplus : void 0;
|
|
47
47
|
}), l = n(() => {
|
|
48
48
|
var t;
|
|
49
49
|
return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
|
|
@@ -57,10 +57,11 @@ const ee = /* @__PURE__ */ A({
|
|
|
57
57
|
type: u.value === "borderLink" ? "default" : u.value
|
|
58
58
|
} : {};
|
|
59
59
|
}
|
|
60
|
-
return (t, o) => l.value.length && p.value === "dropdown" ? (v(), y(a(
|
|
60
|
+
return (t, o) => l.value.length && p.value === "dropdown" ? (v(), y(a(x), m({
|
|
61
61
|
key: 0,
|
|
62
62
|
class: [a(i)()]
|
|
63
63
|
}, {
|
|
64
|
+
...t.$attrs,
|
|
64
65
|
...b(),
|
|
65
66
|
disabled: d.value
|
|
66
67
|
}), {
|
|
@@ -77,7 +78,7 @@ const ee = /* @__PURE__ */ A({
|
|
|
77
78
|
}, h(f.value), 5)
|
|
78
79
|
]),
|
|
79
80
|
_: 1
|
|
80
|
-
}, 16, ["class"])) : l.value.length && p.value === "default" ? (v(), y(a(
|
|
81
|
+
}, 16, ["class"])) : l.value.length && p.value === "default" ? (v(), y(a(z), {
|
|
81
82
|
key: 1,
|
|
82
83
|
class: N([a(i)()]),
|
|
83
84
|
disabled: d.value
|
|
@@ -94,14 +95,14 @@ const ee = /* @__PURE__ */ A({
|
|
|
94
95
|
type: u.value
|
|
95
96
|
})), {
|
|
96
97
|
default: r(() => [
|
|
97
|
-
|
|
98
|
-
c(a(
|
|
98
|
+
V(h(f.value) + " ", 1),
|
|
99
|
+
c(a(G))
|
|
99
100
|
]),
|
|
100
101
|
_: 1
|
|
101
102
|
}, 16)
|
|
102
103
|
]),
|
|
103
104
|
_: 1
|
|
104
|
-
}, 8, ["class", "disabled"])) :
|
|
105
|
+
}, 8, ["class", "disabled"])) : $("", !0);
|
|
105
106
|
}
|
|
106
107
|
});
|
|
107
108
|
export {
|
|
@@ -69,6 +69,7 @@ declare const ApBatchActionGroup: {
|
|
|
69
69
|
type?: ButtonProps["type"] | "borderLink";
|
|
70
70
|
borderLinkColor?: string;
|
|
71
71
|
minWidth?: boolean | number | string;
|
|
72
|
+
lazy?: boolean | number;
|
|
72
73
|
onClick?: () => any | Promise<any>;
|
|
73
74
|
} & {
|
|
74
75
|
content?: string;
|
|
@@ -365,6 +366,7 @@ declare const ApBatchActionGroup: {
|
|
|
365
366
|
type?: ButtonProps["type"] | "borderLink";
|
|
366
367
|
borderLinkColor?: string;
|
|
367
368
|
minWidth?: boolean | number | string;
|
|
369
|
+
lazy?: boolean | number;
|
|
368
370
|
onClick?: () => any | Promise<any>;
|
|
369
371
|
} & {
|
|
370
372
|
content?: string;
|
|
@@ -668,6 +670,7 @@ declare const ApBatchActionGroup: {
|
|
|
668
670
|
type?: ButtonProps["type"] | "borderLink";
|
|
669
671
|
borderLinkColor?: string;
|
|
670
672
|
minWidth?: boolean | number | string;
|
|
673
|
+
lazy?: boolean | number;
|
|
671
674
|
onClick?: () => any | Promise<any>;
|
|
672
675
|
} & {
|
|
673
676
|
content?: string;
|
|
@@ -968,6 +971,7 @@ declare const ApBatchActionGroup: {
|
|
|
968
971
|
type?: ButtonProps["type"] | "borderLink";
|
|
969
972
|
borderLinkColor?: string;
|
|
970
973
|
minWidth?: boolean | number | string;
|
|
974
|
+
lazy?: boolean | number;
|
|
971
975
|
onClick?: () => any | Promise<any>;
|
|
972
976
|
} & {
|
|
973
977
|
content?: string;
|
|
@@ -85,6 +85,7 @@ declare const ApButtonGroup: {
|
|
|
85
85
|
type?: ButtonProps["type"] | "borderLink";
|
|
86
86
|
borderLinkColor?: string;
|
|
87
87
|
minWidth?: boolean | number | string;
|
|
88
|
+
lazy?: boolean | number;
|
|
88
89
|
onClick?: () => any | Promise<any>;
|
|
89
90
|
} & {
|
|
90
91
|
content?: VNodeChild;
|
|
@@ -143,6 +144,7 @@ declare const ApButtonGroup: {
|
|
|
143
144
|
type?: ButtonProps["type"] | "borderLink";
|
|
144
145
|
borderLinkColor?: string;
|
|
145
146
|
minWidth?: boolean | number | string;
|
|
147
|
+
lazy?: boolean | number;
|
|
146
148
|
onClick?: () => any | Promise<any>;
|
|
147
149
|
} & {
|
|
148
150
|
content?: VNodeChild;
|
|
@@ -231,6 +233,7 @@ declare const ApButtonGroup: {
|
|
|
231
233
|
type?: ButtonProps["type"] | "borderLink";
|
|
232
234
|
borderLinkColor?: string;
|
|
233
235
|
minWidth?: boolean | number | string;
|
|
236
|
+
lazy?: boolean | number;
|
|
234
237
|
onClick?: () => any | Promise<any>;
|
|
235
238
|
} & {
|
|
236
239
|
content?: VNodeChild;
|
|
@@ -289,6 +292,7 @@ declare const ApButtonGroup: {
|
|
|
289
292
|
type?: ButtonProps["type"] | "borderLink";
|
|
290
293
|
borderLinkColor?: string;
|
|
291
294
|
minWidth?: boolean | number | string;
|
|
295
|
+
lazy?: boolean | number;
|
|
292
296
|
onClick?: () => any | Promise<any>;
|
|
293
297
|
} & {
|
|
294
298
|
content?: VNodeChild;
|
|
@@ -384,6 +388,7 @@ declare const ApButtonGroup: {
|
|
|
384
388
|
type?: ButtonProps["type"] | "borderLink";
|
|
385
389
|
borderLinkColor?: string;
|
|
386
390
|
minWidth?: boolean | number | string;
|
|
391
|
+
lazy?: boolean | number;
|
|
387
392
|
onClick?: () => any | Promise<any>;
|
|
388
393
|
} & {
|
|
389
394
|
content?: VNodeChild;
|
|
@@ -442,6 +447,7 @@ declare const ApButtonGroup: {
|
|
|
442
447
|
type?: ButtonProps["type"] | "borderLink";
|
|
443
448
|
borderLinkColor?: string;
|
|
444
449
|
minWidth?: boolean | number | string;
|
|
450
|
+
lazy?: boolean | number;
|
|
445
451
|
onClick?: () => any | Promise<any>;
|
|
446
452
|
} & {
|
|
447
453
|
content?: VNodeChild;
|
|
@@ -534,6 +540,7 @@ declare const ApButtonGroup: {
|
|
|
534
540
|
type?: ButtonProps["type"] | "borderLink";
|
|
535
541
|
borderLinkColor?: string;
|
|
536
542
|
minWidth?: boolean | number | string;
|
|
543
|
+
lazy?: boolean | number;
|
|
537
544
|
onClick?: () => any | Promise<any>;
|
|
538
545
|
} & {
|
|
539
546
|
content?: VNodeChild;
|
|
@@ -592,6 +599,7 @@ declare const ApButtonGroup: {
|
|
|
592
599
|
type?: ButtonProps["type"] | "borderLink";
|
|
593
600
|
borderLinkColor?: string;
|
|
594
601
|
minWidth?: boolean | number | string;
|
|
602
|
+
lazy?: boolean | number;
|
|
595
603
|
onClick?: () => any | Promise<any>;
|
|
596
604
|
} & {
|
|
597
605
|
content?: VNodeChild;
|