@aplus-frontend/ui 7.11.2 → 7.11.4
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/ag-grid/editable/utils.mjs +28 -22
- package/es/src/business/ap-copy/constans.mjs +1 -1
- package/es/src/business/ap-copy/style/index.mjs +1 -1
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +5 -5
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-product-info/style/index.mjs +2 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +24 -22
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/splitter/SplitBar.vue2.mjs +152 -112
- package/es/src/splitter/Splitter.vue2.mjs +67 -61
- package/es/src/splitter/hooks/useItems.d.ts +1 -0
- package/es/src/splitter/hooks/useItems.mjs +20 -16
- package/es/src/splitter/hooks/useResizable.d.ts +3 -0
- package/es/src/splitter/hooks/useResizable.mjs +50 -27
- package/es/src/splitter/interface.d.ts +12 -1
- package/es/src/splitter/style/index.mjs +51 -15
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/utils.js +1 -1
- package/lib/src/business/ap-copy/constans.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.d.ts +1 -0
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResizable.d.ts +3 -0
- package/lib/src/splitter/hooks/useResizable.js +1 -1
- package/lib/src/splitter/interface.d.ts +12 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as G, unref as
|
|
1
|
+
import { defineComponent as q, ref as G, unref as o, computed as v, createBlock as d, openBlock as r, withCtx as C, createElementVNode as J, normalizeClass as R, normalizeStyle as K, createElementBlock as f, createCommentVNode as I, Fragment as b, renderList as E, createVNode as Q, mergeProps as T, resolveDynamicComponent as X } from "vue";
|
|
2
2
|
import { omit as Y } from "lodash-unified";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "../resize-observer/index.mjs";
|
|
@@ -8,12 +8,12 @@ import { useResize as ee } from "./hooks/useResize.mjs";
|
|
|
8
8
|
import { useSizes as te } from "./hooks/useSizes.mjs";
|
|
9
9
|
import "./Panel.vue.mjs";
|
|
10
10
|
import "./SplitBar.vue.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
import
|
|
11
|
+
import oe from "./style/index.mjs";
|
|
12
|
+
import { useNamespace as ae } from "../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import se from "../resize-observer/index.vue.mjs";
|
|
14
14
|
import ne from "./Panel.vue2.mjs";
|
|
15
|
-
import
|
|
16
|
-
const
|
|
15
|
+
import le from "./SplitBar.vue2.mjs";
|
|
16
|
+
const Ce = /* @__PURE__ */ q({
|
|
17
17
|
name: "Splitter",
|
|
18
18
|
__name: "Splitter",
|
|
19
19
|
props: {
|
|
@@ -25,85 +25,91 @@ const ge = /* @__PURE__ */ q({
|
|
|
25
25
|
onResizeStart: {},
|
|
26
26
|
onResize: {},
|
|
27
27
|
onResizeEnd: {},
|
|
28
|
-
lazy: { type: Boolean }
|
|
28
|
+
lazy: { type: Boolean },
|
|
29
|
+
draggerIcon: {},
|
|
30
|
+
collapsibleIcon: {}
|
|
29
31
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const n =
|
|
32
|
-
const { offsetWidth:
|
|
33
|
-
|
|
32
|
+
setup(_) {
|
|
33
|
+
const n = _, { b: m } = ae("splitter"), k = oe("splitter"), i = Z(), c = G(), w = (e) => {
|
|
34
|
+
const { offsetWidth: s, offsetHeight: a } = e.target, t = n.layout === "vertical" ? a : s;
|
|
35
|
+
c.value !== 0 && (c.value = t);
|
|
34
36
|
}, [
|
|
35
|
-
|
|
37
|
+
N,
|
|
36
38
|
u,
|
|
37
|
-
|
|
39
|
+
g,
|
|
40
|
+
O,
|
|
38
41
|
P,
|
|
39
|
-
M
|
|
40
|
-
|
|
41
|
-
] = te(i, l), m = x(i, u, !1), [U, $, w, V, C] = ee(
|
|
42
|
+
M
|
|
43
|
+
] = te(i, c), l = x(i, u, !1), [B, U, $, V, y] = ee(
|
|
42
44
|
i,
|
|
43
|
-
m,
|
|
44
|
-
v,
|
|
45
45
|
l,
|
|
46
|
-
|
|
46
|
+
g,
|
|
47
|
+
c,
|
|
48
|
+
M,
|
|
47
49
|
!1
|
|
48
50
|
), A = (e) => {
|
|
49
|
-
|
|
50
|
-
}, D = (e,
|
|
51
|
-
const
|
|
52
|
-
n.onResize?.(
|
|
51
|
+
B(e), n.onResizeStart?.(o(u));
|
|
52
|
+
}, D = (e, s) => {
|
|
53
|
+
const a = U(e, s);
|
|
54
|
+
n.onResize?.(a);
|
|
53
55
|
}, F = () => {
|
|
54
|
-
|
|
55
|
-
}, H = (e,
|
|
56
|
-
const
|
|
57
|
-
n.onResize?.(
|
|
58
|
-
}, L =
|
|
56
|
+
$(), n.onResizeEnd?.(o(u));
|
|
57
|
+
}, H = (e, s) => {
|
|
58
|
+
const a = V(e, s);
|
|
59
|
+
n.onResize?.(a), n.onResizeEnd?.(a);
|
|
60
|
+
}, L = v(() => [m(), n.className, m(n.layout), k.value]), h = v(() => {
|
|
59
61
|
const e = [];
|
|
60
|
-
let
|
|
61
|
-
for (let
|
|
62
|
-
|
|
62
|
+
let s = 0;
|
|
63
|
+
for (let a = 0; a < i.value.length; a += 1)
|
|
64
|
+
s += o(g)[a], e.push(s);
|
|
63
65
|
return e;
|
|
64
|
-
}),
|
|
65
|
-
const
|
|
66
|
+
}), p = (e) => {
|
|
67
|
+
const s = o(h), a = o(O), t = o(P);
|
|
66
68
|
return {
|
|
67
|
-
minStart: (
|
|
68
|
-
minEnd: (
|
|
69
|
-
maxStart: (
|
|
70
|
-
maxEnd: (
|
|
69
|
+
minStart: (s[e - 1] || 0) + a[e],
|
|
70
|
+
minEnd: (s[e + 1] || 100) - t[e + 1],
|
|
71
|
+
maxStart: (s[e - 1] || 0) + t[e],
|
|
72
|
+
maxEnd: (s[e + 1] || 100) - a[e + 1]
|
|
71
73
|
};
|
|
72
74
|
};
|
|
73
|
-
return (e,
|
|
74
|
-
default:
|
|
75
|
+
return (e, s) => (r(), d(o(se), { onResize: w }, {
|
|
76
|
+
default: C(() => [
|
|
75
77
|
J("div", {
|
|
76
78
|
style: K(e.style),
|
|
77
|
-
class:
|
|
79
|
+
class: R(L.value)
|
|
78
80
|
}, [
|
|
79
|
-
(r(!0),
|
|
80
|
-
Q(ne, T({ ref_for: !0 },
|
|
81
|
-
size:
|
|
81
|
+
(r(!0), f(b, null, E(o(i), (a, t) => (r(), f(b, { key: t }, [
|
|
82
|
+
Q(ne, T({ ref_for: !0 }, o(Y)(a, "_child"), {
|
|
83
|
+
size: o(N)[t]
|
|
82
84
|
}), {
|
|
83
|
-
default:
|
|
84
|
-
(r(!0),
|
|
85
|
+
default: C(() => [
|
|
86
|
+
(r(!0), f(b, null, E(a._child, (z, S) => (r(), d(X(z), { key: S }))), 128))
|
|
85
87
|
]),
|
|
86
88
|
_: 2
|
|
87
89
|
}, 1040, ["size"]),
|
|
88
|
-
|
|
90
|
+
o(l)[t] ? (r(), d(le, {
|
|
89
91
|
key: 0,
|
|
90
92
|
lazy: e.lazy,
|
|
91
93
|
index: t,
|
|
92
|
-
active:
|
|
94
|
+
active: o(y) === t,
|
|
93
95
|
vertical: e.layout === "vertical",
|
|
94
|
-
resizable:
|
|
95
|
-
"aria-now":
|
|
96
|
+
resizable: o(l)[t].resizable,
|
|
97
|
+
"aria-now": h.value[t] * 100,
|
|
96
98
|
"aria-min": Math.max(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
p(t).minStart,
|
|
100
|
+
p(t).minEnd
|
|
99
101
|
) * 100,
|
|
100
102
|
"aria-max": Math.min(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
p(t).maxStart,
|
|
104
|
+
p(t).maxEnd
|
|
103
105
|
) * 100,
|
|
104
|
-
"start-collapsible":
|
|
105
|
-
"end-collapsible":
|
|
106
|
-
"
|
|
106
|
+
"start-collapsible": o(l)[t].startCollapsible,
|
|
107
|
+
"end-collapsible": o(l)[t].endCollapsible,
|
|
108
|
+
"show-start-collapsible-icon": o(l)[t].showStartCollapsibleIcon,
|
|
109
|
+
"show-end-collapsible-icon": o(l)[t].showEndCollapsibleIcon,
|
|
110
|
+
"container-size": c.value || 0,
|
|
111
|
+
"dragger-icon": e.draggerIcon,
|
|
112
|
+
"collapsible-icon": e.collapsibleIcon,
|
|
107
113
|
onOffsetStart: A,
|
|
108
114
|
onOffsetUpdate: (z, S, W) => {
|
|
109
115
|
let j = e.layout === "vertical" ? W : S;
|
|
@@ -111,13 +117,13 @@ const ge = /* @__PURE__ */ q({
|
|
|
111
117
|
},
|
|
112
118
|
onOffsetEnd: F,
|
|
113
119
|
onCollapse: H
|
|
114
|
-
}, null, 8, ["lazy", "index", "active", "vertical", "resizable", "aria-now", "aria-min", "aria-max", "start-collapsible", "end-collapsible", "container-size", "onOffsetUpdate"])) :
|
|
120
|
+
}, null, 8, ["lazy", "index", "active", "vertical", "resizable", "aria-now", "aria-min", "aria-max", "start-collapsible", "end-collapsible", "show-start-collapsible-icon", "show-end-collapsible-icon", "container-size", "dragger-icon", "collapsible-icon", "onOffsetUpdate"])) : I("", !0)
|
|
115
121
|
], 64))), 128)),
|
|
116
|
-
typeof
|
|
122
|
+
typeof o(y) == "number" ? (r(), f("div", {
|
|
117
123
|
key: 0,
|
|
118
124
|
"aria-hidden": "",
|
|
119
|
-
class:
|
|
120
|
-
}, null, 2)) :
|
|
125
|
+
class: R([o(m)("mask"), o(m)(`mask-${e.layout}`)])
|
|
126
|
+
}, null, 2)) : I("", !0)
|
|
121
127
|
], 6)
|
|
122
128
|
]),
|
|
123
129
|
_: 1
|
|
@@ -125,5 +131,5 @@ const ge = /* @__PURE__ */ q({
|
|
|
125
131
|
}
|
|
126
132
|
});
|
|
127
133
|
export {
|
|
128
|
-
|
|
134
|
+
Ce as default
|
|
129
135
|
};
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { genRealChildren as
|
|
3
|
-
function
|
|
4
|
-
if (
|
|
5
|
-
return
|
|
6
|
-
|
|
1
|
+
import { useSlots as n, computed as s } from "vue";
|
|
2
|
+
import { genRealChildren as l } from "../../ap-form/item-group/helper.mjs";
|
|
3
|
+
function u(o) {
|
|
4
|
+
if (o && typeof o == "object")
|
|
5
|
+
return {
|
|
6
|
+
...o,
|
|
7
|
+
showCollapsibleIcon: o.showCollapsibleIcon === void 0 ? "auto" : o.showCollapsibleIcon
|
|
8
|
+
};
|
|
9
|
+
const t = !!o || o === "";
|
|
7
10
|
return {
|
|
8
|
-
start:
|
|
9
|
-
end:
|
|
11
|
+
start: t,
|
|
12
|
+
end: t,
|
|
13
|
+
showCollapsibleIcon: "auto"
|
|
10
14
|
};
|
|
11
15
|
}
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
return s(() =>
|
|
15
|
-
const { props:
|
|
16
|
+
const d = () => {
|
|
17
|
+
const o = n();
|
|
18
|
+
return s(() => o.default ? l(o.default()).map((e) => {
|
|
19
|
+
const { props: r } = e;
|
|
16
20
|
return {
|
|
17
|
-
...
|
|
18
|
-
collapsible:
|
|
19
|
-
_child:
|
|
21
|
+
...r,
|
|
22
|
+
collapsible: u(r?.collapsible),
|
|
23
|
+
_child: e.children.default?.()
|
|
20
24
|
};
|
|
21
25
|
}) : []);
|
|
22
26
|
};
|
|
23
27
|
export {
|
|
24
|
-
|
|
28
|
+
d as useItems
|
|
25
29
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { ShowCollapsibleIconMode } from '../interface';
|
|
2
3
|
import { ItemType } from './useItems';
|
|
3
4
|
export type ResizableInfo = {
|
|
4
5
|
resizable: boolean;
|
|
5
6
|
startCollapsible: boolean;
|
|
6
7
|
endCollapsible: boolean;
|
|
8
|
+
showStartCollapsibleIcon: ShowCollapsibleIconMode;
|
|
9
|
+
showEndCollapsibleIcon: ShowCollapsibleIconMode;
|
|
7
10
|
};
|
|
8
11
|
export declare const useResizable: (items: Ref<ItemType[]>, pxSizes: Ref<number[]>, isRTL: boolean) => ComputedRef<ResizableInfo[]>;
|
|
@@ -1,37 +1,60 @@
|
|
|
1
|
-
import { computed as R, unref as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { computed as R, unref as u } from "vue";
|
|
2
|
+
function w(l, o) {
|
|
3
|
+
return l.collapsible && o.collapsible ? l.showCollapsibleIcon === !0 || o.showCollapsibleIcon === !0 ? !0 : l.showCollapsibleIcon === "auto" || o.showCollapsibleIcon === "auto" ? "auto" : !1 : l.collapsible ? l.showCollapsibleIcon : o.collapsible ? o.showCollapsibleIcon : !1;
|
|
4
|
+
}
|
|
5
|
+
const k = (l, o, i) => R(() => {
|
|
6
|
+
const b = [], c = u(l), p = u(o);
|
|
7
|
+
for (let e = 0; e < c.length - 1; e += 1) {
|
|
8
|
+
const d = c[e], f = c[e + 1], s = p[e], n = p[e + 1], {
|
|
9
|
+
resizable: z = !0,
|
|
10
|
+
min: m,
|
|
11
|
+
collapsible: t
|
|
12
|
+
} = d, {
|
|
13
|
+
resizable: S = !0,
|
|
14
|
+
min: x,
|
|
12
15
|
collapsible: a
|
|
13
|
-
} =
|
|
16
|
+
} = f, E = (
|
|
14
17
|
// Both need to be resizable
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
(
|
|
18
|
-
),
|
|
18
|
+
z && S && // Prev is not collapsed and limit min size
|
|
19
|
+
(s !== 0 || !m) && // Next is not collapsed and limit min size
|
|
20
|
+
(n !== 0 || !x)
|
|
21
|
+
), g = !!t.end && s > 0, v = !!a.start && n === 0 && s > 0, r = (
|
|
19
22
|
// Self is collapsible
|
|
20
|
-
|
|
21
|
-
a.start &&
|
|
22
|
-
),
|
|
23
|
+
t.end && s > 0 || // Collapsed and can be collapsed
|
|
24
|
+
a.start && n === 0 && s > 0
|
|
25
|
+
), M = !!a.start && n > 0, _ = !!t.end && s === 0 && n > 0, C = (
|
|
23
26
|
// Self is collapsible
|
|
24
|
-
a.start &&
|
|
25
|
-
|
|
27
|
+
a.start && n > 0 || // Collapsed and can be collapsed
|
|
28
|
+
t.end && s === 0 && n > 0
|
|
29
|
+
), I = w(
|
|
30
|
+
{
|
|
31
|
+
collapsible: g,
|
|
32
|
+
showCollapsibleIcon: t.showCollapsibleIcon
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
collapsible: v,
|
|
36
|
+
showCollapsibleIcon: a.showCollapsibleIcon
|
|
37
|
+
}
|
|
38
|
+
), h = w(
|
|
39
|
+
{
|
|
40
|
+
collapsible: M,
|
|
41
|
+
showCollapsibleIcon: a.showCollapsibleIcon
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
collapsible: _,
|
|
45
|
+
showCollapsibleIcon: t.showCollapsibleIcon
|
|
46
|
+
}
|
|
26
47
|
);
|
|
27
|
-
|
|
28
|
-
resizable:
|
|
29
|
-
startCollapsible: !!(
|
|
30
|
-
endCollapsible: !!(
|
|
48
|
+
b[e] = {
|
|
49
|
+
resizable: E,
|
|
50
|
+
startCollapsible: !!(i ? C : r),
|
|
51
|
+
endCollapsible: !!(i ? r : C),
|
|
52
|
+
showStartCollapsibleIcon: i ? h : I,
|
|
53
|
+
showEndCollapsibleIcon: i ? I : h
|
|
31
54
|
};
|
|
32
55
|
}
|
|
33
|
-
return
|
|
56
|
+
return b;
|
|
34
57
|
});
|
|
35
58
|
export {
|
|
36
|
-
|
|
59
|
+
k as useResizable
|
|
37
60
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'vue';
|
|
1
|
+
import { CSSProperties, VNode } from 'vue';
|
|
2
2
|
export interface SplitterProps {
|
|
3
3
|
prefixCls?: string;
|
|
4
4
|
className?: string;
|
|
@@ -9,6 +9,11 @@ export interface SplitterProps {
|
|
|
9
9
|
onResize?: (sizes: number[]) => void;
|
|
10
10
|
onResizeEnd?: (sizes: number[]) => void;
|
|
11
11
|
lazy?: boolean;
|
|
12
|
+
draggerIcon?: VNode;
|
|
13
|
+
collapsibleIcon?: {
|
|
14
|
+
start?: VNode;
|
|
15
|
+
end?: VNode;
|
|
16
|
+
};
|
|
12
17
|
}
|
|
13
18
|
export interface PanelProps {
|
|
14
19
|
className?: string;
|
|
@@ -19,6 +24,7 @@ export interface PanelProps {
|
|
|
19
24
|
collapsible?: boolean | {
|
|
20
25
|
start?: boolean;
|
|
21
26
|
end?: boolean;
|
|
27
|
+
showCollapsibleIcon?: boolean | 'auto';
|
|
22
28
|
};
|
|
23
29
|
resizable?: boolean;
|
|
24
30
|
defaultSize?: number | string;
|
|
@@ -51,6 +57,7 @@ export interface UseCollapsible {
|
|
|
51
57
|
onFold: (type: 'previous' | 'next') => void;
|
|
52
58
|
setOldBasics: () => void;
|
|
53
59
|
}
|
|
60
|
+
export type ShowCollapsibleIconMode = boolean | 'auto';
|
|
54
61
|
export interface SplitBarProps {
|
|
55
62
|
index: number;
|
|
56
63
|
active: boolean;
|
|
@@ -67,4 +74,8 @@ export interface SplitBarProps {
|
|
|
67
74
|
ariaMax?: number;
|
|
68
75
|
lazy?: boolean;
|
|
69
76
|
containerSize: number;
|
|
77
|
+
draggerIcon?: SplitterProps['draggerIcon'];
|
|
78
|
+
collapsibleIcon?: SplitterProps['collapsibleIcon'];
|
|
79
|
+
showStartCollapsibleIcon: ShowCollapsibleIconMode;
|
|
80
|
+
showEndCollapsibleIcon: ShowCollapsibleIconMode;
|
|
70
81
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
1
|
+
import { genComponentStyleHook as s } from "../../utils/cssinjs/index.mjs";
|
|
2
2
|
const i = () => ({
|
|
3
3
|
position: "absolute",
|
|
4
4
|
top: "50%",
|
|
5
5
|
left: "50%",
|
|
6
6
|
transform: "translate(-50%, -50%)"
|
|
7
|
-
}),
|
|
7
|
+
}), l = (r) => ({
|
|
8
8
|
position: "absolute",
|
|
9
9
|
zIndex: 1,
|
|
10
10
|
display: "none",
|
|
@@ -12,8 +12,8 @@ const i = () => ({
|
|
|
12
12
|
opacity: 0.2,
|
|
13
13
|
transition: "none",
|
|
14
14
|
pointerEvents: "none"
|
|
15
|
-
}),
|
|
16
|
-
const { componentCls: e, namespace:
|
|
15
|
+
}), n = (r) => {
|
|
16
|
+
const { componentCls: e, namespace: o } = r, t = `--${o}-splitter-bar-preview-offset`, a = `${e}-bar`;
|
|
17
17
|
return {
|
|
18
18
|
[e]: {
|
|
19
19
|
boxSizing: "border-box",
|
|
@@ -60,6 +60,11 @@ const i = () => ({
|
|
|
60
60
|
background: "#bae0ff"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
+
[`&-active${a}-dragger-customize`]: {
|
|
64
|
+
[`${a}-dragger-icon`]: {
|
|
65
|
+
color: r.colorPrimary
|
|
66
|
+
}
|
|
67
|
+
},
|
|
63
68
|
[`&-disabled${e}-bar-dragger`]: {
|
|
64
69
|
zIndex: 0,
|
|
65
70
|
"&, &:hover, &-active": {
|
|
@@ -71,6 +76,17 @@ const i = () => ({
|
|
|
71
76
|
"&::after": {
|
|
72
77
|
display: "none"
|
|
73
78
|
}
|
|
79
|
+
},
|
|
80
|
+
"&-customize": {
|
|
81
|
+
[`${a}-dragger-icon`]: {
|
|
82
|
+
...i(r),
|
|
83
|
+
display: "flex",
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
color: r.antdv.colorFill
|
|
86
|
+
},
|
|
87
|
+
"&::after": {
|
|
88
|
+
display: "none"
|
|
89
|
+
}
|
|
74
90
|
}
|
|
75
91
|
},
|
|
76
92
|
[`${e}-bar-collapse-bar`]: {
|
|
@@ -85,17 +101,37 @@ const i = () => ({
|
|
|
85
101
|
display: "flex",
|
|
86
102
|
justifyContent: "center",
|
|
87
103
|
alignItems: "center",
|
|
88
|
-
|
|
89
|
-
|
|
104
|
+
// Hover
|
|
105
|
+
[`&:hover:not(${a}-collapse-bar-customize)`]: {
|
|
106
|
+
background: r.antdv.controlItemBgActive
|
|
90
107
|
},
|
|
91
|
-
|
|
92
|
-
|
|
108
|
+
// Active
|
|
109
|
+
[`&:active:not(${a}-collapse-bar-customize)`]: {
|
|
110
|
+
background: r.antdv.controlItemBgActiveHover
|
|
111
|
+
},
|
|
112
|
+
[`${a}-collapse-icon`]: {
|
|
113
|
+
display: "flex",
|
|
114
|
+
alignItems: "center"
|
|
93
115
|
}
|
|
94
116
|
},
|
|
117
|
+
[`${a}-collapse-bar-customize`]: {
|
|
118
|
+
background: "transparent"
|
|
119
|
+
},
|
|
95
120
|
"&:hover, &:active": {
|
|
96
|
-
[`${e}-bar-collapse-bar`]: {
|
|
121
|
+
[`${e}-bar-collapse-bar-hover-only`]: {
|
|
122
|
+
opacity: 1
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
[`${e}-bar-collapse-bar-hover-only`]: {
|
|
126
|
+
"@media(hover:none)": {
|
|
97
127
|
opacity: 1
|
|
98
128
|
}
|
|
129
|
+
},
|
|
130
|
+
[`${e}-bar-collapse-bar-always-hidden`]: {
|
|
131
|
+
display: "none"
|
|
132
|
+
},
|
|
133
|
+
[`${e}-bar-collapse-bar-always-visible`]: {
|
|
134
|
+
opacity: 1
|
|
99
135
|
}
|
|
100
136
|
},
|
|
101
137
|
[`${e}-mask`]: {
|
|
@@ -116,7 +152,7 @@ const i = () => ({
|
|
|
116
152
|
[`${e}-bar-preview`]: {
|
|
117
153
|
height: "100%",
|
|
118
154
|
width: r.splitterBarSize,
|
|
119
|
-
...
|
|
155
|
+
...l(r),
|
|
120
156
|
"&-active": {
|
|
121
157
|
display: "block",
|
|
122
158
|
transform: `translateX(var(${t}))`
|
|
@@ -158,7 +194,7 @@ const i = () => ({
|
|
|
158
194
|
[`${e}-bar-preview`]: {
|
|
159
195
|
height: r.splitterBarSize,
|
|
160
196
|
width: "100%",
|
|
161
|
-
...
|
|
197
|
+
...l(r),
|
|
162
198
|
[`&${e}-bar-preview-active`]: {
|
|
163
199
|
display: "block",
|
|
164
200
|
transform: `translateY(var(${t}))`
|
|
@@ -208,9 +244,9 @@ const i = () => ({
|
|
|
208
244
|
}
|
|
209
245
|
}
|
|
210
246
|
};
|
|
211
|
-
},
|
|
247
|
+
}, d = s(
|
|
212
248
|
"Splitter",
|
|
213
|
-
(r) => [
|
|
249
|
+
(r) => [n(r)],
|
|
214
250
|
{
|
|
215
251
|
splitterBarSize: 2,
|
|
216
252
|
splitterTriggerSize: 6,
|
|
@@ -218,6 +254,6 @@ const i = () => ({
|
|
|
218
254
|
}
|
|
219
255
|
);
|
|
220
256
|
export {
|
|
221
|
-
|
|
222
|
-
|
|
257
|
+
d as default,
|
|
258
|
+
n as genSplitterStyle
|
|
223
259
|
};
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.11.
|
|
1
|
+
declare const _default: "7.11.4";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash-unified"),a=require("../../ap-form/utils/set.js"),c=require("../../ap-table/utils.js");function u(e,r,t){if(t)return i.isString(t)?e[t]:t(e,r)}function f(e,r){const t={};return e.forEach((o,n)=>{const s=u(o,n,r);t[s]=o}),t}function l(e,r,t){return e.map((o,n)=>{const s=u(o,n,r);return t[s]??o})}function d(e){let r={};function t(o){for(const n of o)if(n.children?.length)t(n.children);else{const s=c.getFieldProps(n.fieldProps,{});s?.transform&&(r=a.default(r,[n.dataIndex].flat(1),s.transform,!0))}}return t(e),r}exports.arrayToObject=f;exports.getColumnTransformOptions=d;exports.getRowKey=u;exports.updateArrItem=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({text:{type:String,default:""},size:{type:Number,default:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({text:{type:String,default:""},size:{type:Number,default:12},textStyle:{type:[String,Object],default:"major"},link:{type:String,default:""},disableCopy:{type:Boolean,default:!1},onClick:{type:Function,default:()=>{}},tipMessageSuccess:{type:String,default:""},tipMessageError:{type:String,default:""}});exports.ApCopyProps=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),r=o=>{const{componentCls:e}=o;return{[e]:{display:"flex",alignItems:"center",width:"100%",".copy-btn":{opacity:0,transition:`opacity ${o.motionDurationMid} ease`},"&:hover":{".copy-btn":{opacity:1}},[`${e}__text`]:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:o.lineHeight},[`${e}--text-major`]:{color:o.textColor1},[`${e}--text-minor`]:{color:o.textColor3},[`${e}--text-link`]:{color:o.colorLink,cursor:"pointer","&:hover":{color:o.colorLinkHover}},[`${e}__copy-btn`]:{flexShrink:0,marginInlineStart:o.spaceXS,display:"flex",alignItems:"center",fontSize:o.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../utils/cssinjs/index.js"),r=o=>{const{componentCls:e}=o;return{[e]:{display:"flex",alignItems:"center",width:"100%",".copy-btn":{opacity:0,transition:`opacity ${o.motionDurationMid} ease`},"&:hover":{".copy-btn":{opacity:1}},[`${e}__text`]:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:o.lineHeight},[`${e}--text-major`]:{color:o.textColor1},[`${e}--text-minor`]:{color:o.textColor3},[`${e}--text-link`]:{color:o.colorLink,cursor:"pointer","&:hover":{color:o.colorLinkHover}},[`${e}__copy-btn`]:{flexShrink:0,marginInlineStart:o.spaceXS,display:"flex",alignItems:"center",fontSize:o.fontSize,color:o.textColor4,cursor:"pointer","&:hover":{".user-frontend-icon":{color:o.colorLink}}}}}},i=t.genComponentStyleHook("ApCopy",o=>[r(o)]);exports.default=i;
|
|
@@ -21,6 +21,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
|
+
showImg: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
24
28
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
29
|
title: {
|
|
26
30
|
type: StringConstructor;
|
|
@@ -42,11 +46,16 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
42
46
|
type: BooleanConstructor;
|
|
43
47
|
default: boolean;
|
|
44
48
|
};
|
|
49
|
+
showImg: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
45
53
|
}>> & Readonly<{}>, {
|
|
46
54
|
values: ApProductInfoValue[];
|
|
47
55
|
title: string;
|
|
48
56
|
preview: boolean;
|
|
49
57
|
disableCopy: boolean;
|
|
50
58
|
imgSrc: string;
|
|
59
|
+
showImg: boolean;
|
|
51
60
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
52
61
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),s=require("@aplus-frontend/antdv"),v=require("@aplus-frontend/icon");require("../../config-provider/index.js");const a=require("../ap-copy/index.js"),f=require("../ap-image/index.js"),h=require("./constans.js"),y=require("./style/index.js"),N=require("../../config-provider/hooks/use-namespace.js"),g=l.defineComponent({name:"ApProductInfo",props:h.ApProductInfoProps(),setup(r){const{b:c,e:o,m:t}=N.useNamespace("ap-product-info"),i=y.default("ap-product-info"),d=e=>typeof e.value=="function"?e.value():e.helpMessage?l.h(s.Space.Compact,{},[l.h(a.ApCopy,{text:e.value,link:e.link,textStyle:e.link?"link":"minor"}),l.h(s.Tooltip,{placement:"top",color:e.toolTipBgColor,title:typeof e.helpMessage=="string"?e.helpMessage:l.h(e.helpMessage)},()=>l.h(v.IconApAdFillWarn,{color:"#FFA940",style:{cursor:"pointer"}}))]):l.h(a.ApCopy,{text:e.value,textStyle:e.link?"link":"minor",link:e.link,disableCopy:r.disableCopy},e.value);return()=>l.createVNode("div",{class:[c(),i.value]},[l.createVNode("div",{class:o("img")},[l.createVNode(f.ApImage,{src:r.imgSrc,width:44,height:44,preview:r.preview},null)]),l.createVNode("div",{class:[o("content")]},[l.createVNode(a.ApCopy,{disableCopy:r.disableCopy},{default:()=>[r.title]}),l.createVNode("div",{class:o("row-container")},[r.values.map((e,u)=>{const n=e.col===2,p=e.col!==2&&u%2===0;return l.createVNode("div",{key:JSON.stringify(e),class:[o("row-item"),t(n?"full":"half")]},[l.createVNode("div",{class:[o("item")]},[e.label&&l.createVNode("div",{class:o("label")},[e.label,l.createVNode("span",null,[l.createTextVNode(":")])]),l.createVNode("div",{class:[o("value"),!n&&t("overflow")],title:typeof e.value!="function"?String(e.value||""):""},[d(e)])]),p&&l.createVNode("div",{class:o("divider"),style:{right:0}},[l.createVNode("div",{class:o("divider-vertical")},null)])])})])])])}});exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),s=require("@aplus-frontend/antdv"),v=require("@aplus-frontend/icon");require("../../config-provider/index.js");const a=require("../ap-copy/index.js"),f=require("../ap-image/index.js"),h=require("./constans.js"),y=require("./style/index.js"),N=require("../../config-provider/hooks/use-namespace.js"),g=l.defineComponent({name:"ApProductInfo",props:h.ApProductInfoProps(),setup(r){const{b:c,e:o,m:t}=N.useNamespace("ap-product-info"),i=y.default("ap-product-info"),d=e=>typeof e.value=="function"?e.value():e.helpMessage?l.h(s.Space.Compact,{},[l.h(a.ApCopy,{text:e.value,link:e.link,textStyle:e.link?"link":"minor"}),l.h(s.Tooltip,{placement:"top",color:e.toolTipBgColor,title:typeof e.helpMessage=="string"?e.helpMessage:l.h(e.helpMessage)},()=>l.h(v.IconApAdFillWarn,{color:"#FFA940",style:{cursor:"pointer"}}))]):l.h(a.ApCopy,{text:e.value,textStyle:e.link?"link":"minor",link:e.link,disableCopy:r.disableCopy},e.value);return()=>l.createVNode("div",{class:[c(),i.value]},[r.showImg&&l.createVNode("div",{class:o("img")},[l.createVNode(f.ApImage,{src:r.imgSrc,width:44,height:44,preview:r.preview},null)]),l.createVNode("div",{class:[o("content")]},[l.createVNode(a.ApCopy,{disableCopy:r.disableCopy},{default:()=>[r.title]}),l.createVNode("div",{class:o("row-container")},[r.values.map((e,u)=>{const n=e.col===2,p=e.col!==2&&u%2===0;return l.createVNode("div",{key:JSON.stringify(e),class:[o("row-item"),t(n?"full":"half")]},[l.createVNode("div",{class:[o("item")]},[e.label&&l.createVNode("div",{class:o("label")},[e.label,l.createVNode("span",null,[l.createTextVNode(":")])]),l.createVNode("div",{class:[o("value"),!n&&t("overflow")],title:typeof e.value!="function"?String(e.value||""):""},[d(e)])]),p&&l.createVNode("div",{class:o("divider"),style:{right:0}},[l.createVNode("div",{class:o("divider-vertical")},null)])])})])])])}});exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({title:{type:String,default:""},imgSrc:{type:String,default:""},preview:{type:Boolean,default:!1},values:{type:Array,default:()=>[]},disableCopy:{type:Boolean,default:!1}});exports.ApProductInfoProps=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({title:{type:String,default:""},imgSrc:{type:String,default:""},preview:{type:Boolean,default:!1},values:{type:Array,default:()=>[]},disableCopy:{type:Boolean,default:!1},showImg:{type:Boolean,default:!0}});exports.ApProductInfoProps=e;
|