@aplus-frontend/ui 7.0.0-beta.3 → 7.0.0
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/hooks/use-columns-def.mjs +71 -70
- package/es/src/ag-grid/index.vue.mjs +1 -0
- package/es/src/ag-grid/interface.d.ts +1 -0
- package/es/src/ag-grid/style/custom-header.d.ts +2 -2
- package/es/src/ag-grid/style/editable.d.ts +2 -2
- package/es/src/ag-grid/style/index.d.ts +2 -2
- package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
- package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/es/src/ap-action/style/index.d.ts +2 -2
- package/es/src/ap-button/style/index.d.ts +2 -2
- package/es/src/ap-button/utils/index.mjs +16 -16
- package/es/src/ap-descriptions/style/index.d.ts +2 -2
- package/es/src/ap-download/ap-download.vue.d.ts +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +27 -27
- package/es/src/ap-download/interface.d.ts +4 -0
- package/es/src/ap-download/style/index.d.ts +2 -2
- package/es/src/ap-drawer/style/index.d.ts +2 -2
- package/es/src/ap-field/style/index.d.ts +2 -2
- package/es/src/ap-form/style/drawer-form.d.ts +2 -2
- package/es/src/ap-form/style/item-group.d.ts +2 -2
- package/es/src/ap-form/style/item-text-group.d.ts +2 -2
- package/es/src/ap-form/style/item.d.ts +2 -2
- package/es/src/ap-form/style/modal-form.d.ts +2 -2
- package/es/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/es/src/ap-form/style/search-form.d.ts +2 -2
- package/es/src/ap-grid/style/editable.d.ts +2 -2
- package/es/src/ap-grid/style/index.d.ts +2 -2
- package/es/src/ap-grid/utils/col.mjs +33 -33
- package/es/src/ap-list/style/index.d.ts +2 -2
- package/es/src/ap-modal/interface.d.ts +31 -11
- package/es/src/ap-modal/utils/createModal.mjs +52 -45
- package/es/src/ap-pro-card/style/divider.d.ts +2 -2
- package/es/src/ap-pro-card/style/index.d.ts +2 -2
- package/es/src/ap-pro-card/style/operation.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/es/src/ap-pro-card/style/title.d.ts +2 -2
- package/es/src/ap-table/style/ellipsis.d.ts +2 -2
- package/es/src/ap-table/style/index-comp.d.ts +2 -2
- package/es/src/ap-table/style/index.d.ts +2 -2
- package/es/src/ap-table/style/setting.d.ts +2 -2
- package/es/src/ap-tag/style/group.d.ts +2 -2
- package/es/src/ap-tag/style/index.d.ts +2 -2
- package/es/src/ap-upload/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/es/src/business/ag-grid-modal/utils.mjs +23 -23
- package/es/src/business/ap-appendix/style/index.d.ts +3 -3
- package/es/src/business/ap-appendix/style/index.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +70 -66
- package/es/src/business/ap-attachment/style/index.d.ts +2 -2
- package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/es/src/business/ap-batch-action/style/index.mjs +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
- package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
- package/es/src/business/ap-card/style/index.d.ts +3 -3
- package/es/src/business/ap-card/style/index.mjs +8 -8
- package/es/src/business/ap-copy/style/index.d.ts +2 -2
- package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
- package/es/src/business/ap-expand-alert/index.d.ts +5 -2
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/es/src/business/ap-image/style/index.d.ts +3 -3
- package/es/src/business/ap-image/style/index.mjs +6 -6
- package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/es/src/business/ap-label/style/index.d.ts +2 -2
- package/es/src/business/ap-ladder/style/index.d.ts +2 -2
- package/es/src/business/ap-product-info/style/index.d.ts +2 -2
- package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/es/src/business/ap-size-input/style/index.d.ts +2 -2
- package/es/src/business/ap-status/style/index.d.ts +2 -2
- package/es/src/business/ap-summary/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
- package/es/src/business/ap-title/style/index.d.ts +2 -2
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/es/src/business/ap-view/style/index.d.ts +3 -3
- package/es/src/business/ap-view/style/index.mjs +1 -1
- package/es/src/business/batch-input-group/style/index.d.ts +2 -2
- package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
- package/es/src/check-card/style/index.d.ts +2 -2
- package/es/src/editable-table/style/index.d.ts +2 -2
- package/es/src/full-screen/style/index.d.ts +2 -2
- package/es/src/mask/style/index.d.ts +2 -2
- package/es/src/scroll-bar/style/index.d.ts +2 -2
- package/es/src/scroll-view/style/index.d.ts +2 -2
- package/es/src/splitter/style/index.d.ts +2 -2
- package/es/src/text/style/group.d.ts +2 -2
- package/es/src/text/style/index.d.ts +2 -2
- package/es/src/utils/cssinjs/index.d.ts +2 -2
- package/es/src/utils/cssinjs/index.mjs +41 -35
- package/es/src/utils/cssinjs/plugin-specificity.mjs +13 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +1 -0
- package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
- package/lib/src/ag-grid/style/editable.d.ts +2 -2
- package/lib/src/ag-grid/style/index.d.ts +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
- package/lib/src/ap-action/style/index.d.ts +2 -2
- package/lib/src/ap-button/style/index.d.ts +2 -2
- package/lib/src/ap-button/utils/index.js +1 -1
- package/lib/src/ap-descriptions/style/index.d.ts +2 -2
- package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +4 -0
- package/lib/src/ap-download/style/index.d.ts +2 -2
- package/lib/src/ap-drawer/style/index.d.ts +2 -2
- package/lib/src/ap-field/style/index.d.ts +2 -2
- package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
- package/lib/src/ap-form/style/item-group.d.ts +2 -2
- package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
- package/lib/src/ap-form/style/item.d.ts +2 -2
- package/lib/src/ap-form/style/modal-form.d.ts +2 -2
- package/lib/src/ap-form/style/search-form-sorter.d.ts +2 -2
- package/lib/src/ap-form/style/search-form.d.ts +2 -2
- package/lib/src/ap-grid/style/editable.d.ts +2 -2
- package/lib/src/ap-grid/style/index.d.ts +2 -2
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-list/style/index.d.ts +2 -2
- package/lib/src/ap-modal/interface.d.ts +31 -11
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
- package/lib/src/ap-pro-card/style/index.d.ts +2 -2
- package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
- package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
- package/lib/src/ap-pro-card/style/title.d.ts +2 -2
- package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
- package/lib/src/ap-table/style/index-comp.d.ts +2 -2
- package/lib/src/ap-table/style/index.d.ts +2 -2
- package/lib/src/ap-table/style/setting.d.ts +2 -2
- package/lib/src/ap-tag/style/group.d.ts +2 -2
- package/lib/src/ap-tag/style/index.d.ts +2 -2
- package/lib/src/ap-upload/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/utils.js +1 -1
- package/lib/src/business/ap-appendix/style/index.d.ts +3 -3
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
- package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
- package/lib/src/business/ap-batch-action/style/index.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
- package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
- package/lib/src/business/ap-card/style/index.d.ts +3 -3
- package/lib/src/business/ap-card/style/index.js +1 -1
- package/lib/src/business/ap-copy/style/index.d.ts +2 -2
- package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
- package/lib/src/business/ap-image/style/index.d.ts +3 -3
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
- package/lib/src/business/ap-label/style/index.d.ts +2 -2
- package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
- package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
- package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
- package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
- package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
- package/lib/src/business/ap-status/style/index.d.ts +2 -2
- package/lib/src/business/ap-summary/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.d.ts +2 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
- package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
- package/lib/src/business/ap-view/style/index.d.ts +3 -3
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.d.ts +2 -2
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/check-card/style/index.d.ts +2 -2
- package/lib/src/editable-table/style/index.d.ts +2 -2
- package/lib/src/full-screen/style/index.d.ts +2 -2
- package/lib/src/mask/style/index.d.ts +2 -2
- package/lib/src/scroll-bar/style/index.d.ts +2 -2
- package/lib/src/scroll-view/style/index.d.ts +2 -2
- package/lib/src/splitter/style/index.d.ts +2 -2
- package/lib/src/text/style/group.d.ts +2 -2
- package/lib/src/text/style/index.d.ts +2 -2
- package/lib/src/utils/cssinjs/index.d.ts +2 -2
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/utils/cssinjs/plugin-specificity.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
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 g, watch as x, nextTick as f, onMounted as J, createElementBlock as i, openBlock as l, normalizeClass as n, unref as t, createVNode as C, withCtx as m, createElementVNode as S, normalizeStyle as y, renderSlot as H, createBlock as $, toDisplayString as u, resolveDynamicComponent as I, Fragment as E, renderList as P, createCommentVNode as L, createTextVNode as Q } from "vue";
|
|
2
|
+
import { DownOutlined as U } from "@ant-design/icons-vue";
|
|
3
|
+
import { Alert as X, Tooltip as Y } from "@aplus-frontend/antdv";
|
|
4
|
+
import { ApActionItem as Z } 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
|
|
6
|
+
import { isNil as _, isString as A } from "lodash-unified";
|
|
7
|
+
import ee from "./style/index.mjs";
|
|
8
|
+
import { useLocale as te } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useGlobalConfig as ae } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
-
const
|
|
11
|
+
const oe = ["onClick"], he = /* @__PURE__ */ j({
|
|
12
12
|
__name: "ApExpandAlert",
|
|
13
13
|
props: {
|
|
14
14
|
type: { default: "warning" },
|
|
@@ -22,38 +22,43 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
|
|
|
22
22
|
prefixStyle: { default: () => ({}) },
|
|
23
23
|
rows: { default: 2 },
|
|
24
24
|
defaultExpand: { type: Boolean, default: !0 },
|
|
25
|
-
showIcon: { type: Boolean, default: !0 }
|
|
25
|
+
showIcon: { type: Boolean, default: !0 },
|
|
26
|
+
closable: { type: Boolean },
|
|
27
|
+
afterClose: {}
|
|
26
28
|
},
|
|
27
|
-
emits: ["choose", "expand"],
|
|
29
|
+
emits: ["choose", "expand", "close"],
|
|
28
30
|
setup(z, { expose: D, emit: M }) {
|
|
29
|
-
const
|
|
31
|
+
const h = M, p = z, { t: B } = te(), V = c(() => {
|
|
30
32
|
if (p.type != "card")
|
|
31
33
|
return p.type;
|
|
32
|
-
}),
|
|
34
|
+
}), a = g(""), d = g(null), R = c(() => ({
|
|
33
35
|
fontWeight: "400",
|
|
34
36
|
wordBreak: "break-all",
|
|
35
37
|
overflow: "hidden",
|
|
36
38
|
display: "-webkit-box",
|
|
37
|
-
webkitLineClamp:
|
|
39
|
+
webkitLineClamp: a.value,
|
|
38
40
|
webkitBoxOrient: "vertical",
|
|
39
41
|
lineHeight: "18px"
|
|
40
42
|
}));
|
|
41
43
|
function q() {
|
|
42
|
-
|
|
44
|
+
a.value === "1" ? (a.value = "", h("expand", "expand")) : (a.value = "1", h("expand", "collapse"));
|
|
43
45
|
}
|
|
44
|
-
const F = c(() =>
|
|
45
|
-
function
|
|
46
|
-
e ?
|
|
46
|
+
const F = c(() => a.value === "1" ? B("ap.apExpandAlert.expand") : B("ap.apExpandAlert.collapse")), v = g(!0), N = c(() => a.value !== "1");
|
|
47
|
+
function k(e) {
|
|
48
|
+
e ? a.value = "" : a.value = "1";
|
|
49
|
+
}
|
|
50
|
+
function O(e) {
|
|
51
|
+
h("close", e);
|
|
47
52
|
}
|
|
48
53
|
x(
|
|
49
54
|
() => p.data,
|
|
50
55
|
() => {
|
|
51
|
-
|
|
56
|
+
a.value = "", f(() => {
|
|
52
57
|
if (d.value) {
|
|
53
58
|
const e = Number(d.value.clientHeight), r = Number(
|
|
54
59
|
parseInt(d.value.style.lineHeight)
|
|
55
60
|
);
|
|
56
|
-
e < r * Number(p.rows) && N.value ?
|
|
61
|
+
e < r * Number(p.rows) && N.value ? v.value = !1 : v.value = !0;
|
|
57
62
|
}
|
|
58
63
|
});
|
|
59
64
|
},
|
|
@@ -64,21 +69,21 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
|
|
|
64
69
|
() => p.defaultExpand,
|
|
65
70
|
(e) => {
|
|
66
71
|
e ? f(() => {
|
|
67
|
-
|
|
72
|
+
k(e);
|
|
68
73
|
}) : f(() => {
|
|
69
|
-
|
|
74
|
+
k(e);
|
|
70
75
|
});
|
|
71
76
|
},
|
|
72
77
|
{ immediate: !0 }
|
|
73
|
-
),
|
|
78
|
+
), J(() => {
|
|
74
79
|
x(
|
|
75
80
|
() => p.contentStyle,
|
|
76
81
|
(e) => {
|
|
77
|
-
|
|
82
|
+
_(e.lineHeight) || f(() => {
|
|
78
83
|
const r = document.querySelector(
|
|
79
|
-
`#${
|
|
84
|
+
`#${w} .ant-alert-action`
|
|
80
85
|
), s = document.querySelector(
|
|
81
|
-
`#${
|
|
86
|
+
`#${w} .ant-alert-icon`
|
|
82
87
|
);
|
|
83
88
|
r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
|
|
84
89
|
});
|
|
@@ -90,20 +95,23 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
|
|
|
90
95
|
}
|
|
91
96
|
);
|
|
92
97
|
});
|
|
93
|
-
const { b: T, e: o, m:
|
|
98
|
+
const { b: T, e: o, m: G } = le("ap-expand-alert"), K = ee("ap-expand-alert"), w = `${T()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`, W = ae("uiMode", "aplus");
|
|
94
99
|
return D({
|
|
95
|
-
setExpand:
|
|
96
|
-
}), (e, r) => (
|
|
97
|
-
id:
|
|
98
|
-
class: n([t(T)(), `${t(
|
|
100
|
+
setExpand: k
|
|
101
|
+
}), (e, r) => (l(), i("div", {
|
|
102
|
+
id: w,
|
|
103
|
+
class: n([t(T)(), `${t(G)(t(W))}`, t(K)])
|
|
99
104
|
}, [
|
|
100
|
-
|
|
105
|
+
C(t(X), {
|
|
101
106
|
type: V.value,
|
|
102
107
|
"show-icon": e.showIcon,
|
|
103
|
-
|
|
108
|
+
closable: e.closable,
|
|
109
|
+
class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""]),
|
|
110
|
+
"after-close": e.afterClose,
|
|
111
|
+
onClose: O
|
|
104
112
|
}, {
|
|
105
113
|
action: m(() => [
|
|
106
|
-
|
|
114
|
+
v.value ? (l(), $(t(Z), {
|
|
107
115
|
key: 0,
|
|
108
116
|
size: "small",
|
|
109
117
|
style: { "font-size": "12px", "padding-left": "16px" },
|
|
@@ -113,7 +121,7 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
|
|
|
113
121
|
S("span", {
|
|
114
122
|
class: n(t(o)("expandText"))
|
|
115
123
|
}, u(F.value), 3),
|
|
116
|
-
|
|
124
|
+
C(t(U), {
|
|
117
125
|
class: n(N.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
|
|
118
126
|
}, null, 8, ["class"])
|
|
119
127
|
]),
|
|
@@ -128,52 +136,52 @@ const le = ["onClick"], ye = /* @__PURE__ */ W({
|
|
|
128
136
|
class: n(t(o)("alertContent"))
|
|
129
137
|
}, [
|
|
130
138
|
H(e.$slots, "default", {}, () => [
|
|
131
|
-
t(
|
|
139
|
+
t(A)(e.prefix) ? (l(), i("span", {
|
|
132
140
|
key: 0,
|
|
133
141
|
class: n(t(o)("prefix")),
|
|
134
142
|
style: y(e.prefixStyle)
|
|
135
|
-
}, u(e.prefix), 7)) : (
|
|
143
|
+
}, u(e.prefix), 7)) : (l(), $(I(e.prefix), {
|
|
136
144
|
key: 1,
|
|
137
145
|
style: y(e.prefixStyle)
|
|
138
146
|
}, null, 8, ["style"])),
|
|
139
|
-
t(
|
|
147
|
+
t(A)(e.data) ? (l(), i("span", {
|
|
140
148
|
key: 2,
|
|
141
149
|
class: n(t(o)("text"))
|
|
142
|
-
}, u(e.data), 3)) : (
|
|
143
|
-
|
|
150
|
+
}, u(e.data), 3)) : (l(!0), i(E, { key: 3 }, P(e.data, (s, b) => (l(), i(E, { key: b }, [
|
|
151
|
+
C(t(Y), {
|
|
144
152
|
title: e.tipTitle ? e.tipTitle : null
|
|
145
153
|
}, {
|
|
146
154
|
default: m(() => [
|
|
147
155
|
H(e.$slots, "item", {
|
|
148
156
|
record: s,
|
|
149
|
-
index:
|
|
157
|
+
index: b
|
|
150
158
|
}, () => [
|
|
151
159
|
S("span", {
|
|
152
160
|
class: n(t(o)("showItem")),
|
|
153
|
-
onClick: (
|
|
154
|
-
}, u(e.mapLabel ? s[e.mapLabel] : s), 11,
|
|
161
|
+
onClick: (ne) => e.$emit("choose", s)
|
|
162
|
+
}, u(e.mapLabel ? s[e.mapLabel] : s), 11, oe)
|
|
155
163
|
])
|
|
156
164
|
]),
|
|
157
165
|
_: 2
|
|
158
166
|
}, 1032, ["title"]),
|
|
159
|
-
|
|
167
|
+
b !== e.data.length - 1 ? (l(), i("span", {
|
|
160
168
|
key: 0,
|
|
161
169
|
class: n(t(o)("spliter")),
|
|
162
170
|
style: y(e.separatorStyle)
|
|
163
171
|
}, [
|
|
164
|
-
t(
|
|
165
|
-
|
|
166
|
-
], 64)) : (
|
|
172
|
+
t(A)(e.separator) ? (l(), i(E, { key: 0 }, [
|
|
173
|
+
Q(u(e.separator), 1)
|
|
174
|
+
], 64)) : (l(), $(I(e.separator), { key: 1 }))
|
|
167
175
|
], 6)) : L("", !0)
|
|
168
176
|
], 64))), 128))
|
|
169
177
|
])
|
|
170
178
|
], 6)
|
|
171
179
|
]),
|
|
172
180
|
_: 3
|
|
173
|
-
}, 8, ["type", "show-icon", "class"])
|
|
181
|
+
}, 8, ["type", "show-icon", "closable", "class", "after-close"])
|
|
174
182
|
], 2));
|
|
175
183
|
}
|
|
176
184
|
});
|
|
177
185
|
export {
|
|
178
|
-
|
|
186
|
+
he as default
|
|
179
187
|
};
|
|
@@ -15,9 +15,10 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
15
15
|
index: number;
|
|
16
16
|
}): any;
|
|
17
17
|
};
|
|
18
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
18
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
19
19
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
20
|
props: {
|
|
21
|
+
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
21
22
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
22
23
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
23
24
|
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
@@ -31,6 +32,8 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
31
32
|
prefixStyle?: CSSProperties | undefined;
|
|
32
33
|
rows?: string | number | undefined;
|
|
33
34
|
defaultExpand?: boolean | undefined;
|
|
35
|
+
closable?: boolean | undefined;
|
|
36
|
+
afterClose?: (() => void) | undefined;
|
|
34
37
|
showIcon?: boolean | undefined;
|
|
35
38
|
} & PublicProps;
|
|
36
39
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -50,7 +53,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
50
53
|
index: number;
|
|
51
54
|
}): any;
|
|
52
55
|
};
|
|
53
|
-
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
56
|
+
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
54
57
|
}>) => VNode & {
|
|
55
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
59
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApImageStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
|
|
2
|
-
const n = (
|
|
3
|
-
const { componentCls:
|
|
2
|
+
const n = (e) => {
|
|
3
|
+
const { componentCls: o } = e;
|
|
4
4
|
return {
|
|
5
|
-
[`${
|
|
5
|
+
[`${o}-toolbar`]: {
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
8
8
|
padding: "0 24px",
|
|
@@ -10,10 +10,10 @@ const n = (o) => {
|
|
|
10
10
|
borderRadius: "100px"
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
}, a = t("ApImage", (
|
|
14
|
-
n(
|
|
13
|
+
}, a = t("ApImage", (e) => [
|
|
14
|
+
n(e)
|
|
15
15
|
]);
|
|
16
16
|
export {
|
|
17
17
|
a as default,
|
|
18
|
-
n as
|
|
18
|
+
n as genApImageStyle
|
|
19
19
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
2
|
export type ApRadioGroupToken = {
|
|
3
3
|
apRadioGroupItemActiveBgColor: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genApTableModalStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as
|
|
2
|
-
import { message as R, Modal as
|
|
1
|
+
import { defineComponent as G, ref as d, unref as r, computed as H, h as U, createBlock as w, openBlock as g, mergeProps as m, withCtx as k, createCommentVNode as j, createVNode as h, resolveDynamicComponent as q } from "vue";
|
|
2
|
+
import { message as R, Modal as V } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { ApTable as z } from "../../ap-table/index.mjs";
|
|
5
5
|
import { cloneDeep as W, omit as T } from "lodash-unified";
|
|
@@ -67,24 +67,24 @@ const ye = /* @__PURE__ */ G({
|
|
|
67
67
|
},
|
|
68
68
|
emits: ["finish"],
|
|
69
69
|
setup(S, { expose: B, emit: P }) {
|
|
70
|
-
const e = S, M = P,
|
|
71
|
-
let f = null,
|
|
70
|
+
const e = S, M = P, i = d(!1), v = d({}), u = d(null), a = d([]), b = d();
|
|
71
|
+
let f = null, c = null;
|
|
72
72
|
const { b: K } = X("ap-table-modal"), I = Q("ap-table-modal"), { t: C } = Y(), O = async (t = [], o = {}) => {
|
|
73
|
-
switch (a.value = [...t],
|
|
73
|
+
switch (a.value = [...t], i.value = !0, v.value = o?.extraParams, b.value = o.apTableDataSources || e.apTableProps?.dataSource, o.refreshMode || "reset") {
|
|
74
74
|
case "reset":
|
|
75
|
-
|
|
75
|
+
u.value?.reset();
|
|
76
76
|
break;
|
|
77
77
|
case "submit":
|
|
78
|
-
|
|
78
|
+
u.value?.submit();
|
|
79
79
|
break;
|
|
80
80
|
case "none":
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
return new Promise((n, l) => {
|
|
84
|
-
f = n,
|
|
84
|
+
f = n, c = (s) => l("Ignored Reject: " + s);
|
|
85
85
|
});
|
|
86
86
|
}, x = () => {
|
|
87
|
-
|
|
87
|
+
i.value = !1, f = null, c?.(y.ModalCancel), c = null;
|
|
88
88
|
}, _ = async (t) => {
|
|
89
89
|
t = J({
|
|
90
90
|
...t,
|
|
@@ -97,7 +97,7 @@ const ye = /* @__PURE__ */ G({
|
|
|
97
97
|
};
|
|
98
98
|
}, N = async () => {
|
|
99
99
|
if (a.value.length > e.maxCount) {
|
|
100
|
-
|
|
100
|
+
c?.(y.ExceedMaxCount);
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
if (e.getRowKey) {
|
|
@@ -109,10 +109,10 @@ const ye = /* @__PURE__ */ G({
|
|
|
109
109
|
return;
|
|
110
110
|
M("finish", o, t), f?.({ keys: o, rows: t });
|
|
111
111
|
} else {
|
|
112
|
-
|
|
112
|
+
c?.(y.NotFineGetRowKey);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
i.value = !1;
|
|
116
116
|
}, D = H(() => {
|
|
117
117
|
if (!e.getRowKey) return;
|
|
118
118
|
const t = e.getRowKey;
|
|
@@ -130,12 +130,12 @@ const ye = /* @__PURE__ */ G({
|
|
|
130
130
|
);
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
const l =
|
|
133
|
+
const l = u.value?.dataSource;
|
|
134
134
|
if (o) {
|
|
135
|
-
const
|
|
136
|
-
a.value = a.value.concat(
|
|
135
|
+
const s = r(l).filter((p) => !a.value.some((E) => t(E) === t(p)));
|
|
136
|
+
a.value = a.value.concat(s);
|
|
137
137
|
} else
|
|
138
|
-
a.value = a.value?.filter((
|
|
138
|
+
a.value = a.value?.filter((s) => !l.some((p) => t(p) === t(s)));
|
|
139
139
|
},
|
|
140
140
|
onSelect(o, n) {
|
|
141
141
|
if (n) {
|
|
@@ -150,7 +150,7 @@ const ye = /* @__PURE__ */ G({
|
|
|
150
150
|
e.rowSelection?.type === "radio" ? a.value = [o] : a.value.push(o);
|
|
151
151
|
} else {
|
|
152
152
|
const l = a.value.findIndex(
|
|
153
|
-
(
|
|
153
|
+
(s) => t(o) === t(s)
|
|
154
154
|
);
|
|
155
155
|
a.value.splice(l, 1);
|
|
156
156
|
}
|
|
@@ -171,7 +171,7 @@ const ye = /* @__PURE__ */ G({
|
|
|
171
171
|
{
|
|
172
172
|
default: e.renderModalTitleSuffix ?? void 0
|
|
173
173
|
}
|
|
174
|
-
) : e.title, A = () =>
|
|
174
|
+
) : e.title, A = () => u.value, F = () => {
|
|
175
175
|
a.value = [];
|
|
176
176
|
}, $ = (t) => {
|
|
177
177
|
const o = e.getRowKey;
|
|
@@ -185,10 +185,10 @@ const ye = /* @__PURE__ */ G({
|
|
|
185
185
|
open: O,
|
|
186
186
|
close: x,
|
|
187
187
|
getApTableInstance: A
|
|
188
|
-
}), (t, o) => (g(), w(r(
|
|
188
|
+
}), (t, o) => (g(), w(r(V), m(
|
|
189
189
|
{
|
|
190
|
-
open:
|
|
191
|
-
"onUpdate:open": o[0] || (o[0] = (n) =>
|
|
190
|
+
open: i.value,
|
|
191
|
+
"onUpdate:open": o[0] || (o[0] = (n) => i.value = n)
|
|
192
192
|
},
|
|
193
193
|
r(T)(e, [
|
|
194
194
|
"api",
|
|
@@ -213,7 +213,7 @@ const ye = /* @__PURE__ */ G({
|
|
|
213
213
|
}
|
|
214
214
|
), {
|
|
215
215
|
default: k(() => [
|
|
216
|
-
e.renderHeader ? (g(), w(
|
|
216
|
+
e.renderHeader ? (g(), w(q(e.renderHeader), { key: 0 })) : j("", !0),
|
|
217
217
|
h(ee, m(e.tableLayoutConfig || {}, {
|
|
218
218
|
"selected-list": a.value,
|
|
219
219
|
onClear: F,
|
|
@@ -222,7 +222,7 @@ const ye = /* @__PURE__ */ G({
|
|
|
222
222
|
default: k(() => [
|
|
223
223
|
h(r(z), m({
|
|
224
224
|
ref_key: "apTableRef",
|
|
225
|
-
ref:
|
|
225
|
+
ref: u,
|
|
226
226
|
scroll: { y: 450 },
|
|
227
227
|
style: { padding: "0px" },
|
|
228
228
|
columns: t.columns,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genApTitleStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genProCardStyle: GenStyleFunc<BaseToken>;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (prefixCls: string) =>
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const genApViewStyle: GenStyleFunc<BaseToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
2
|
export type BatchInputGroupToken = {
|
|
3
3
|
batchInputGroupTriggerColorDisabled: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: (prefixCls: string) =>
|
|
5
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
6
6
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isFunction as g, merge as A, cloneDeep as F } from "lodash-unified";
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useKeepAliveFlag as
|
|
2
|
+
import { ref as V } from "vue";
|
|
3
|
+
import { useKeepAliveFlag as w } from "./useKeepAliveFlag.mjs";
|
|
4
4
|
function O(l) {
|
|
5
|
-
const r =
|
|
5
|
+
const r = V(null), {
|
|
6
6
|
isShowRowSelection: u = !0,
|
|
7
7
|
clearSelectionOnRequest: d = !0,
|
|
8
8
|
transformSearchFormValues: o,
|
|
@@ -18,7 +18,7 @@ function O(l) {
|
|
|
18
18
|
r.value?.submitWith(e);
|
|
19
19
|
}, p = () => {
|
|
20
20
|
r.value?.reset();
|
|
21
|
-
}, { isDeactivated: h } =
|
|
21
|
+
}, { isDeactivated: h } = w({
|
|
22
22
|
afterActivated() {
|
|
23
23
|
(g(s) ? s() : s) && c();
|
|
24
24
|
},
|
|
@@ -47,8 +47,9 @@ function O(l) {
|
|
|
47
47
|
fixed: "left",
|
|
48
48
|
columnWidth: 38
|
|
49
49
|
} : void 0,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/** Jackie 推荐方法 */
|
|
51
|
+
onVnodeBeforeMount(e) {
|
|
52
|
+
r.value = e.component?.exposed;
|
|
52
53
|
},
|
|
53
54
|
// 新UI规范,需要都添加分割线
|
|
54
55
|
card: !0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
2
|
export type CheckCardToken = {
|
|
3
3
|
/** 禁用背景色 */
|
|
4
4
|
checkCardDisabledBg: string;
|
|
@@ -11,5 +11,5 @@ export type CheckCardToken = {
|
|
|
11
11
|
/** 指示器位置偏移 */
|
|
12
12
|
checkCardIndicatorOffset: number;
|
|
13
13
|
};
|
|
14
|
-
declare const _default: (prefixCls: string) =>
|
|
14
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
15
15
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
type EditableTableToken = {
|
|
4
4
|
editableTableHeaderBg: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const genEditableTableStyle: GenStyleFunc<EditableTableToken>;
|
|
7
|
-
declare const _default: (prefixCls: string) =>
|
|
7
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export declare const genFullScreenStyle: GenStyleFunc;
|
|
4
|
-
declare const _default: (prefixCls: string) =>
|
|
4
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenStyleFunc } from '../../design-token/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
3
|
export type MaskToken = {
|
|
4
4
|
/**
|
|
5
5
|
* 遮罩打开/关闭时的动画时长
|
|
@@ -12,5 +12,5 @@ export type MaskToken = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare function genFadeKeyFrames(): string[];
|
|
14
14
|
export declare const genMaskStyle: GenStyleFunc<MaskToken>;
|
|
15
|
-
declare const _default: (prefixCls: string) =>
|
|
15
|
+
declare const _default: (prefixCls: string) => ComputedRef<string>;
|
|
16
16
|
export default _default;
|