@aplus-frontend/ui 7.8.0 → 7.9.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 +26 -24
- package/es/src/ag-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ag-grid/index.vue.mjs +53 -52
- package/es/src/ag-grid/style/index.mjs +9 -4
- package/es/src/ap-form/style/item-text-group.mjs +8 -4
- package/es/src/ap-table/style/index.d.ts +2 -2
- package/es/src/ap-table/style/index.mjs +3 -3
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +20 -19
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +14 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +73 -71
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +288 -286
- package/es/src/skeleton/components/desc/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/desc/index.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/index.vue2.mjs +37 -0
- package/es/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
- package/es/src/skeleton/components/desc/item-large.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +72 -0
- package/es/src/skeleton/components/desc/item.vue.d.ts +7 -0
- package/es/src/skeleton/components/desc/item.vue.mjs +4 -0
- package/es/src/skeleton/components/desc/item.vue2.mjs +69 -0
- package/es/src/skeleton/components/line/index.d.ts +14 -0
- package/es/src/skeleton/components/line/index.mjs +26 -0
- package/es/src/skeleton/components/list/index.vue.d.ts +10 -0
- package/es/src/skeleton/components/list/index.vue.mjs +4 -0
- package/es/src/skeleton/components/list/index.vue2.mjs +49 -0
- package/es/src/skeleton/components/list/item.vue.d.ts +6 -0
- package/es/src/skeleton/components/list/item.vue.mjs +4 -0
- package/es/src/skeleton/components/list/item.vue2.mjs +57 -0
- package/es/src/skeleton/components/page-header/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/page-header/index.vue.mjs +4 -0
- package/es/src/skeleton/components/page-header/index.vue2.mjs +24 -0
- package/es/src/skeleton/components/search-form/index.vue.d.ts +6 -0
- package/es/src/skeleton/components/search-form/index.vue.mjs +4 -0
- package/es/src/skeleton/components/search-form/index.vue2.mjs +99 -0
- package/es/src/skeleton/components/table/index.vue.d.ts +11 -0
- package/es/src/skeleton/components/table/index.vue.mjs +4 -0
- package/es/src/skeleton/components/table/index.vue2.mjs +78 -0
- package/es/src/skeleton/components/table/item.vue.d.ts +9 -0
- package/es/src/skeleton/components/table/item.vue.mjs +4 -0
- package/es/src/skeleton/components/table/item.vue2.mjs +80 -0
- package/es/src/skeleton/descriptions.vue.d.ts +8 -0
- package/es/src/skeleton/descriptions.vue.mjs +4 -0
- package/es/src/skeleton/descriptions.vue2.mjs +37 -0
- package/es/src/skeleton/index.d.ts +9 -0
- package/es/src/skeleton/index.mjs +12 -0
- package/es/src/skeleton/interface.d.ts +12 -0
- package/es/src/skeleton/interface.mjs +1 -0
- package/es/src/skeleton/list-page.vue.d.ts +10 -0
- package/es/src/skeleton/list-page.vue.mjs +4 -0
- package/es/src/skeleton/list-page.vue2.mjs +50 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-form/style/item-text-group.js +1 -1
- package/lib/src/ap-table/style/index.d.ts +2 -2
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.d.ts +9 -0
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/desc/index.vue.js +1 -0
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -0
- package/lib/src/skeleton/components/desc/item-large.vue.d.ts +6 -0
- package/lib/src/skeleton/components/desc/item-large.vue.js +1 -0
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -0
- package/lib/src/skeleton/components/desc/item.vue.d.ts +7 -0
- package/lib/src/skeleton/components/desc/item.vue.js +1 -0
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -0
- package/lib/src/skeleton/components/line/index.d.ts +14 -0
- package/lib/src/skeleton/components/line/index.js +1 -0
- package/lib/src/skeleton/components/list/index.vue.d.ts +10 -0
- package/lib/src/skeleton/components/list/index.vue.js +1 -0
- package/lib/src/skeleton/components/list/index.vue2.js +1 -0
- package/lib/src/skeleton/components/list/item.vue.d.ts +6 -0
- package/lib/src/skeleton/components/list/item.vue.js +1 -0
- package/lib/src/skeleton/components/list/item.vue2.js +1 -0
- package/lib/src/skeleton/components/page-header/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/page-header/index.vue.js +1 -0
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -0
- package/lib/src/skeleton/components/search-form/index.vue.d.ts +6 -0
- package/lib/src/skeleton/components/search-form/index.vue.js +1 -0
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -0
- package/lib/src/skeleton/components/table/index.vue.d.ts +11 -0
- package/lib/src/skeleton/components/table/index.vue.js +1 -0
- package/lib/src/skeleton/components/table/index.vue2.js +1 -0
- package/lib/src/skeleton/components/table/item.vue.d.ts +9 -0
- package/lib/src/skeleton/components/table/item.vue.js +1 -0
- package/lib/src/skeleton/components/table/item.vue2.js +1 -0
- package/lib/src/skeleton/descriptions.vue.d.ts +8 -0
- package/lib/src/skeleton/descriptions.vue.js +1 -0
- package/lib/src/skeleton/descriptions.vue2.js +1 -0
- package/lib/src/skeleton/index.d.ts +9 -0
- package/lib/src/skeleton/index.js +1 -0
- package/lib/src/skeleton/interface.d.ts +12 -0
- package/lib/src/skeleton/interface.js +1 -0
- package/lib/src/skeleton/list-page.vue.d.ts +10 -0
- package/lib/src/skeleton/list-page.vue.js +1 -0
- package/lib/src/skeleton/list-page.vue2.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as _, ref as H, createVNode as i, mergeProps as L, onUnmounted as j } from "vue";
|
|
2
2
|
import { ApModal as q } from "../../../ap-modal/index.mjs";
|
|
3
3
|
import "../../../ag-grid/index.mjs";
|
|
4
|
-
import { AsyncCallback as
|
|
4
|
+
import { AsyncCallback as D, genRequest as G, delRowKeyField as T, addRowKeyField as F, getModalLayoutConfig as E } from "../utils.mjs";
|
|
5
5
|
import { useAgGridInstance as U } from "./use-ag-grid-instance.mjs";
|
|
6
|
-
import { isFunction as u, cloneDeep as W, isEmpty as b, omitBy as $, isUndefined as z, omit as
|
|
6
|
+
import { isFunction as u, cloneDeep as W, isEmpty as b, omitBy as $, isUndefined as z, omit as S } from "lodash-unified";
|
|
7
7
|
import { ROW_KEY as B } from "../constants.mjs";
|
|
8
8
|
import { useModalTitle as N } from "./use-modal-title.mjs";
|
|
9
9
|
import { message as V } from "@aplus-frontend/antdv";
|
|
@@ -15,14 +15,14 @@ import J from "../wrapper/index.vue2.mjs";
|
|
|
15
15
|
import Q from "../modal-layout/index.vue2.mjs";
|
|
16
16
|
import X from "../../../ag-grid/index.vue.mjs";
|
|
17
17
|
function we(t) {
|
|
18
|
-
let
|
|
19
|
-
const
|
|
18
|
+
let d, f = null, g = null;
|
|
19
|
+
const c = new D(), [x, K] = N(), {
|
|
20
20
|
t: k
|
|
21
|
-
} = Y(), [s,
|
|
21
|
+
} = Y(), [s, p] = U({
|
|
22
22
|
onSelectedRows(e) {
|
|
23
|
-
|
|
23
|
+
K.setCount(e?.length || 0);
|
|
24
24
|
}
|
|
25
|
-
}), w =
|
|
25
|
+
}), w = G(t.api, t.getRowKey, s.setDataSourceLength), y = (e) => {
|
|
26
26
|
const {
|
|
27
27
|
title: o,
|
|
28
28
|
width: l,
|
|
@@ -42,16 +42,16 @@ function we(t) {
|
|
|
42
42
|
keys: A(o),
|
|
43
43
|
rows: o.map((a) => {
|
|
44
44
|
const r = m(a);
|
|
45
|
-
return e === "old" &&
|
|
45
|
+
return e === "old" && d?.[r] ? d[r] : T(a);
|
|
46
46
|
})
|
|
47
47
|
};
|
|
48
48
|
}, h = async () => {
|
|
49
49
|
const e = P(), o = t.maxCount || 1 / 0;
|
|
50
50
|
return e.keys.length > o ? (V.warning(k("ap.apTableModal.messageMaxCount", {
|
|
51
51
|
maxCount: o
|
|
52
|
-
})), Promise.reject()) : (await t.beforeOk?.(e), t.finishCallback?.(e),
|
|
52
|
+
})), Promise.reject()) : (await t.beforeOk?.(e), t.finishCallback?.(e), c.resolve(e), e);
|
|
53
53
|
}, M = () => {
|
|
54
|
-
|
|
54
|
+
c.reject("modal is closed!");
|
|
55
55
|
}, I = /* @__PURE__ */ _({
|
|
56
56
|
name: "AgGridModalSelectContent",
|
|
57
57
|
props: {
|
|
@@ -73,12 +73,12 @@ function we(t) {
|
|
|
73
73
|
};
|
|
74
74
|
}, () => {
|
|
75
75
|
const l = e.selectedRows?.map((r) => F(r, o.value.getRowKey)), n = o.value, a = E(n.modalLayout);
|
|
76
|
-
return i(
|
|
76
|
+
return i(p, null, {
|
|
77
77
|
default: () => [i(J, {
|
|
78
78
|
height: n.height,
|
|
79
79
|
rowHeight: n.rowHeight
|
|
80
80
|
}, {
|
|
81
|
-
default: () => [t.renderHeader?.(
|
|
81
|
+
default: () => [t.renderHeader?.(S(s, "setInstance"), {
|
|
82
82
|
updateProps: y
|
|
83
83
|
}), i(Q, a.props, {
|
|
84
84
|
default: () => [i(X, L({
|
|
@@ -103,7 +103,7 @@ function we(t) {
|
|
|
103
103
|
fixed: "left",
|
|
104
104
|
columnWidth: 38,
|
|
105
105
|
disabled(r) {
|
|
106
|
-
return u(n.disabledCheckbox) ? n.disabledCheckbox(r,
|
|
106
|
+
return u(n.disabledCheckbox) ? n.disabledCheckbox(r, S(s, "setInstance")) : n.disabledCheckbox ?? !1;
|
|
107
107
|
},
|
|
108
108
|
...t.rowSelection
|
|
109
109
|
},
|
|
@@ -123,11 +123,12 @@ function we(t) {
|
|
|
123
123
|
}, null);
|
|
124
124
|
}
|
|
125
125
|
function v() {
|
|
126
|
-
const e = Object.values(
|
|
126
|
+
const e = Object.values(d || {}), o = C(e);
|
|
127
127
|
f = q.createModal({
|
|
128
|
-
title: i(
|
|
128
|
+
title: i(x, {
|
|
129
129
|
title: t.title,
|
|
130
|
-
maxCount: t.maxCount || 1 / 0
|
|
130
|
+
maxCount: t.maxCount || 1 / 0,
|
|
131
|
+
isShowDefaultSuffix: t.mode !== "radio"
|
|
131
132
|
}, t.modalTitleSlots),
|
|
132
133
|
width: t.width,
|
|
133
134
|
destroyOnClose: !0,
|
|
@@ -145,17 +146,17 @@ function we(t) {
|
|
|
145
146
|
return e?.map(m) || [];
|
|
146
147
|
}
|
|
147
148
|
function R(e, o, l = !1) {
|
|
148
|
-
if (
|
|
149
|
+
if (d = e?.reduce((n, a) => {
|
|
149
150
|
const r = m(a);
|
|
150
151
|
return n[r] = a, n;
|
|
151
152
|
}, {}), w.setExtraParams(o?.extraParams), v(), l)
|
|
152
|
-
return
|
|
153
|
+
return c.buildPromise();
|
|
153
154
|
}
|
|
154
155
|
function O(e, o) {
|
|
155
156
|
return R(e, o, !0);
|
|
156
157
|
}
|
|
157
158
|
return j(() => {
|
|
158
|
-
|
|
159
|
+
c.reject("component is Unmounted!");
|
|
159
160
|
}), {
|
|
160
161
|
open: R,
|
|
161
162
|
asyncOpen: O,
|
|
@@ -8,6 +8,10 @@ export declare function useModalTitle(): readonly [ DefineComponent<ExtractPropT
|
|
|
8
8
|
type: NumberConstructor;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
+
isShowDefaultSuffix: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
11
15
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
12
16
|
title: {
|
|
13
17
|
type: any;
|
|
@@ -17,8 +21,13 @@ export declare function useModalTitle(): readonly [ DefineComponent<ExtractPropT
|
|
|
17
21
|
type: NumberConstructor;
|
|
18
22
|
required: true;
|
|
19
23
|
};
|
|
24
|
+
isShowDefaultSuffix: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
20
28
|
}>> & Readonly<{}>, {
|
|
21
29
|
title: any;
|
|
30
|
+
isShowDefaultSuffix: boolean;
|
|
22
31
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
23
32
|
readonly setCount: (data: number) => void;
|
|
24
33
|
}];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as n, defineComponent as i, createVNode as l } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { useLocale as
|
|
3
|
+
import { useToken as f } from "../../../config-provider/hooks/use-token.mjs";
|
|
4
|
+
import { useLocale as r } from "../../../config-provider/hooks/use-locale.mjs";
|
|
5
5
|
function C() {
|
|
6
|
-
const e =
|
|
6
|
+
const e = n(0);
|
|
7
7
|
return [/* @__PURE__ */ i({
|
|
8
8
|
props: {
|
|
9
9
|
title: {
|
|
@@ -13,6 +13,10 @@ function C() {
|
|
|
13
13
|
maxCount: {
|
|
14
14
|
type: Number,
|
|
15
15
|
required: !0
|
|
16
|
+
},
|
|
17
|
+
isShowDefaultSuffix: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
setup(t, {
|
|
@@ -20,15 +24,15 @@ function C() {
|
|
|
20
24
|
}) {
|
|
21
25
|
const {
|
|
22
26
|
t: o
|
|
23
|
-
} =
|
|
24
|
-
token:
|
|
25
|
-
} =
|
|
27
|
+
} = r(), {
|
|
28
|
+
token: u
|
|
29
|
+
} = f();
|
|
26
30
|
return () => l("div", null, [t.title, a.default ? a.default({
|
|
27
31
|
maxCount: t.maxCount,
|
|
28
32
|
count: e.value
|
|
29
|
-
}) : l("span", {
|
|
33
|
+
}) : t.isShowDefaultSuffix && l("span", {
|
|
30
34
|
style: {
|
|
31
|
-
color:
|
|
35
|
+
color: u.value?.textColor3,
|
|
32
36
|
fontSize: "12px",
|
|
33
37
|
fontWeight: "normal",
|
|
34
38
|
marginLeft: "12px"
|
|
@@ -37,7 +41,7 @@ function C() {
|
|
|
37
41
|
maxCount: t.maxCount
|
|
38
42
|
}) : "", o("ap.apTableModal.titleSuffixTwo"), l("span", {
|
|
39
43
|
style: {
|
|
40
|
-
color:
|
|
44
|
+
color: u.value?.colorPrimary
|
|
41
45
|
}
|
|
42
46
|
}, [e.value]), o("ap.apTableModal.titleSuffixThree")])]);
|
|
43
47
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { Alert as
|
|
4
|
-
import { ApActionItem as
|
|
1
|
+
import { defineComponent as j, computed as c, ref as f, watch as x, nextTick as m, onMounted as G, createElementBlock as i, createCommentVNode as C, openBlock as l, normalizeClass as n, unref as t, createVNode as S, withCtx as y, createElementVNode as $, normalizeStyle as h, renderSlot as L, createBlock as E, toDisplayString as u, resolveDynamicComponent as z, Fragment as A, renderList as J, createTextVNode as P } from "vue";
|
|
2
|
+
import { DownOutlined as Q } from "@ant-design/icons-vue";
|
|
3
|
+
import { Alert as U, Tooltip as X } from "@aplus-frontend/antdv";
|
|
4
|
+
import { ApActionItem as Y } from "../../ap-action/index.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { isNil as
|
|
7
|
-
import
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
const
|
|
6
|
+
import { isNil as Z, isString as B } from "lodash-unified";
|
|
7
|
+
import _ from "./style/index.mjs";
|
|
8
|
+
import { useLocale as ee } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as te } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const le = ["onClick"], fe = /* @__PURE__ */ j({
|
|
11
11
|
__name: "ApExpandAlert",
|
|
12
12
|
props: {
|
|
13
13
|
type: { default: "warning" },
|
|
@@ -26,38 +26,39 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
|
|
|
26
26
|
afterClose: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["choose", "expand", "close"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
29
|
+
setup(D, { expose: V, emit: R }) {
|
|
30
|
+
const v = R, p = D, { t: N } = ee(), q = c(() => {
|
|
31
31
|
if (p.type != "card")
|
|
32
32
|
return p.type;
|
|
33
|
-
}),
|
|
33
|
+
}), a = f(""), d = f(null), F = c(() => ({
|
|
34
34
|
fontWeight: "400",
|
|
35
35
|
wordBreak: "break-all",
|
|
36
36
|
overflow: "hidden",
|
|
37
37
|
display: "-webkit-box",
|
|
38
|
-
webkitLineClamp:
|
|
38
|
+
webkitLineClamp: a.value,
|
|
39
39
|
webkitBoxOrient: "vertical",
|
|
40
40
|
lineHeight: "18px"
|
|
41
41
|
}));
|
|
42
|
-
function
|
|
43
|
-
|
|
42
|
+
function M() {
|
|
43
|
+
a.value === "1" ? (a.value = "", v("expand", "expand")) : (a.value = "1", v("expand", "collapse"));
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
e ?
|
|
45
|
+
const O = c(() => a.value === "1" ? N("ap.apExpandAlert.expand") : N("ap.apExpandAlert.collapse")), k = f(!0), T = c(() => a.value !== "1");
|
|
46
|
+
function w(e) {
|
|
47
|
+
e ? a.value = "" : a.value = "1";
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
const H = f(!1);
|
|
50
|
+
function K(e) {
|
|
51
|
+
v("close", e), H.value = !0;
|
|
51
52
|
}
|
|
52
53
|
x(
|
|
53
54
|
() => p.data,
|
|
54
55
|
() => {
|
|
55
|
-
|
|
56
|
+
a.value = "", m(() => {
|
|
56
57
|
if (d.value) {
|
|
57
58
|
const e = Number(d.value.clientHeight), r = Number(
|
|
58
59
|
parseInt(d.value.style.lineHeight)
|
|
59
60
|
);
|
|
60
|
-
e < r * Number(p.rows) &&
|
|
61
|
+
e < r * Number(p.rows) && T.value ? k.value = !1 : k.value = !0;
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
},
|
|
@@ -67,22 +68,22 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
|
|
|
67
68
|
), x(
|
|
68
69
|
() => p.defaultExpand,
|
|
69
70
|
(e) => {
|
|
70
|
-
e ?
|
|
71
|
-
|
|
72
|
-
}) :
|
|
73
|
-
|
|
71
|
+
e ? m(() => {
|
|
72
|
+
w(e);
|
|
73
|
+
}) : m(() => {
|
|
74
|
+
w(e);
|
|
74
75
|
});
|
|
75
76
|
},
|
|
76
77
|
{ immediate: !0 }
|
|
77
|
-
),
|
|
78
|
+
), G(() => {
|
|
78
79
|
x(
|
|
79
80
|
() => p.contentStyle,
|
|
80
81
|
(e) => {
|
|
81
|
-
|
|
82
|
+
Z(e.lineHeight) || m(() => {
|
|
82
83
|
const r = document.querySelector(
|
|
83
|
-
`#${
|
|
84
|
+
`#${b} .ant-alert-action`
|
|
84
85
|
), s = document.querySelector(
|
|
85
|
-
`#${
|
|
86
|
+
`#${b} .ant-alert-icon`
|
|
86
87
|
);
|
|
87
88
|
r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
|
|
88
89
|
});
|
|
@@ -94,84 +95,85 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
|
|
|
94
95
|
}
|
|
95
96
|
);
|
|
96
97
|
});
|
|
97
|
-
const { b:
|
|
98
|
-
return
|
|
99
|
-
setExpand:
|
|
100
|
-
}), (e, r) => (
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
const { b: I, e: o } = te("ap-expand-alert"), W = _("ap-expand-alert"), b = `${I()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`;
|
|
99
|
+
return V({
|
|
100
|
+
setExpand: w
|
|
101
|
+
}), (e, r) => H.value ? C("", !0) : (l(), i("div", {
|
|
102
|
+
key: 0,
|
|
103
|
+
id: b,
|
|
104
|
+
class: n([t(I)(), t(W)])
|
|
103
105
|
}, [
|
|
104
|
-
S(t(
|
|
105
|
-
type:
|
|
106
|
+
S(t(U), {
|
|
107
|
+
type: q.value,
|
|
106
108
|
"show-icon": e.showIcon,
|
|
107
109
|
closable: e.closable,
|
|
108
110
|
class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""]),
|
|
109
111
|
"after-close": e.afterClose,
|
|
110
|
-
onClose:
|
|
112
|
+
onClose: K
|
|
111
113
|
}, {
|
|
112
|
-
action:
|
|
113
|
-
|
|
114
|
+
action: y(() => [
|
|
115
|
+
k.value ? (l(), E(t(Y), {
|
|
114
116
|
key: 0,
|
|
115
117
|
size: "small",
|
|
116
118
|
style: { "font-size": "12px", "padding-left": "16px" },
|
|
117
|
-
onClick: r[0] || (r[0] = (s) =>
|
|
119
|
+
onClick: r[0] || (r[0] = (s) => M())
|
|
118
120
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
+
default: y(() => [
|
|
122
|
+
$("span", {
|
|
121
123
|
class: n(t(o)("expandText"))
|
|
122
|
-
}, u(
|
|
123
|
-
S(t(
|
|
124
|
-
class: n(
|
|
124
|
+
}, u(O.value), 3),
|
|
125
|
+
S(t(Q), {
|
|
126
|
+
class: n(T.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
|
|
125
127
|
}, null, 8, ["class"])
|
|
126
128
|
]),
|
|
127
129
|
_: 1
|
|
128
|
-
})) :
|
|
130
|
+
})) : C("", !0)
|
|
129
131
|
]),
|
|
130
|
-
message:
|
|
131
|
-
|
|
132
|
+
message: y(() => [
|
|
133
|
+
$("div", {
|
|
132
134
|
ref_key: "ellipsisBoxRef",
|
|
133
135
|
ref: d,
|
|
134
|
-
style:
|
|
136
|
+
style: h({ ...F.value, ...e.contentStyle }),
|
|
135
137
|
class: n(t(o)("alertContent"))
|
|
136
138
|
}, [
|
|
137
|
-
|
|
138
|
-
t(
|
|
139
|
+
L(e.$slots, "default", {}, () => [
|
|
140
|
+
t(B)(e.prefix) ? (l(), i("span", {
|
|
139
141
|
key: 0,
|
|
140
142
|
class: n(t(o)("prefix")),
|
|
141
|
-
style:
|
|
142
|
-
}, u(e.prefix), 7)) : (
|
|
143
|
+
style: h(e.prefixStyle)
|
|
144
|
+
}, u(e.prefix), 7)) : (l(), E(z(e.prefix), {
|
|
143
145
|
key: 1,
|
|
144
|
-
style:
|
|
146
|
+
style: h(e.prefixStyle)
|
|
145
147
|
}, null, 8, ["style"])),
|
|
146
|
-
t(
|
|
148
|
+
t(B)(e.data) ? (l(), i("span", {
|
|
147
149
|
key: 2,
|
|
148
150
|
class: n(t(o)("text"))
|
|
149
|
-
}, u(e.data), 3)) : (
|
|
150
|
-
S(t(
|
|
151
|
+
}, u(e.data), 3)) : (l(!0), i(A, { key: 3 }, J(e.data, (s, g) => (l(), i(A, { key: g }, [
|
|
152
|
+
S(t(X), {
|
|
151
153
|
title: e.tipTitle ? e.tipTitle : null
|
|
152
154
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
|
|
155
|
+
default: y(() => [
|
|
156
|
+
L(e.$slots, "item", {
|
|
155
157
|
record: s,
|
|
156
|
-
index:
|
|
158
|
+
index: g
|
|
157
159
|
}, () => [
|
|
158
|
-
|
|
160
|
+
$("span", {
|
|
159
161
|
class: n(t(o)("showItem")),
|
|
160
162
|
onClick: (ae) => e.$emit("choose", s)
|
|
161
|
-
}, u(e.mapLabel ? s[e.mapLabel] : s), 11,
|
|
163
|
+
}, u(e.mapLabel ? s[e.mapLabel] : s), 11, le)
|
|
162
164
|
])
|
|
163
165
|
]),
|
|
164
166
|
_: 2
|
|
165
167
|
}, 1032, ["title"]),
|
|
166
|
-
|
|
168
|
+
g !== e.data.length - 1 ? (l(), i("span", {
|
|
167
169
|
key: 0,
|
|
168
170
|
class: n(t(o)("spliter")),
|
|
169
|
-
style:
|
|
171
|
+
style: h(e.separatorStyle)
|
|
170
172
|
}, [
|
|
171
|
-
t(
|
|
172
|
-
|
|
173
|
-
], 64)) : (
|
|
174
|
-
], 6)) :
|
|
173
|
+
t(B)(e.separator) ? (l(), i(A, { key: 0 }, [
|
|
174
|
+
P(u(e.separator), 1)
|
|
175
|
+
], 64)) : (l(), E(z(e.separator), { key: 1 }))
|
|
176
|
+
], 6)) : C("", !0)
|
|
175
177
|
], 64))), 128))
|
|
176
178
|
])
|
|
177
179
|
], 6)
|
|
@@ -182,5 +184,5 @@ const te = ["onClick"], ce = /* @__PURE__ */ W({
|
|
|
182
184
|
}
|
|
183
185
|
});
|
|
184
186
|
export {
|
|
185
|
-
|
|
187
|
+
fe as default
|
|
186
188
|
};
|
package/es/src/index.d.ts
CHANGED