@aplus-frontend/ui 0.1.32 → 0.1.34
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/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
- package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
- package/es/src/ap-form/ap-form.vue.d.ts +3 -1
- package/es/src/ap-form/ap-form.vue2.mjs +130 -80
- package/es/src/ap-form/interface.d.ts +51 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date/index.vue.mjs +10 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
- package/es/src/ap-form/items/number/index.vue.mjs +12 -11
- package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
- package/es/src/ap-form/items/select/index.vue.mjs +1 -0
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
- package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/utils/get.d.ts +1 -0
- package/es/src/ap-form/utils/get.mjs +12 -0
- package/es/src/ap-form/utils/set.d.ts +6 -0
- package/es/src/ap-form/utils/set.mjs +41 -0
- package/es/src/ap-list/index.vue.d.ts +3 -0
- package/es/src/ap-list/index.vue.mjs +51 -49
- package/es/src/ap-table/ap-table.vue.d.ts +4 -1
- package/es/src/ap-table/ap-table.vue.mjs +65 -59
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -11
- package/es/src/ap-table/components/setting/utils.mjs +29 -29
- package/es/src/ap-table/constants.d.ts +121 -1
- package/es/src/ap-table/interface.d.ts +6 -1
- package/es/src/ap-table/utils.d.ts +121 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +31 -26
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
- package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/es/src/business/ap-expand-alert/style.css +9 -0
- package/es/src/business/ap-title/style.css +4 -4
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/es/src/business/index.d.ts +53 -187
- package/es/src/check-card/group.vue.d.ts +7 -1
- package/es/src/check-card/group.vue.mjs +26 -22
- package/es/src/check-card/index.vue.d.ts +5 -2
- package/es/src/check-card/index.vue2.mjs +69 -60
- package/es/src/check-card/interface.d.ts +12 -0
- package/es/src/check-card/style/index.css +9 -5
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/es/src/theme/ap-title/ap-title.css +4 -4
- package/es/src/theme/check-card/index.css +9 -5
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +51 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/utils/get.d.ts +1 -0
- package/lib/src/ap-form/utils/get.js +1 -0
- package/lib/src/ap-form/utils/set.d.ts +6 -0
- package/lib/src/ap-form/utils/set.js +1 -0
- package/lib/src/ap-list/index.vue.d.ts +3 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/constants.d.ts +121 -1
- package/lib/src/ap-table/interface.d.ts +6 -1
- package/lib/src/ap-table/utils.d.ts +121 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/lib/src/business/ap-expand-alert/style.css +9 -0
- package/lib/src/business/ap-title/style.css +4 -4
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/lib/src/business/index.d.ts +53 -187
- package/lib/src/check-card/group.vue.d.ts +7 -1
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +5 -2
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/interface.d.ts +12 -0
- package/lib/src/check-card/style/index.css +9 -5
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/lib/src/theme/ap-title/ap-title.css +4 -4
- package/lib/src/theme/check-card/index.css +9 -5
- package/package.json +1 -1
|
@@ -1,119 +1,159 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { Alert as
|
|
4
|
-
import { ApActionItem as
|
|
1
|
+
import { defineComponent as W, computed as f, ref as h, watch as T, nextTick as w, openBlock as a, createElementBlock as n, normalizeClass as s, unref as t, createVNode as x, withCtx as m, createBlock as g, createElementVNode as b, toDisplayString as p, createCommentVNode as A, normalizeStyle as c, renderSlot as N, resolveDynamicComponent as I, Fragment as C, renderList as j, createTextVNode as q } from "vue";
|
|
2
|
+
import { DownOutlined as J } from "@ant-design/icons-vue";
|
|
3
|
+
import { Alert as K, Tooltip as P } from "ant-design-vue";
|
|
4
|
+
import { ApActionItem as Q } from "../../ap-action/index.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import "./style.css";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
7
|
+
import { isString as E } from "lodash-unified";
|
|
8
|
+
import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as X } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
const Z = ["onClick"], ue = /* @__PURE__ */ W({
|
|
10
12
|
__name: "ApExpandAlert",
|
|
11
13
|
props: {
|
|
12
14
|
type: { default: "warning" },
|
|
13
15
|
data: { default: () => [] },
|
|
14
16
|
prefix: { default: "" },
|
|
15
|
-
tipTitle: { default: "
|
|
17
|
+
tipTitle: { default: "" },
|
|
16
18
|
mapLabel: {},
|
|
17
19
|
separator: { default: "|" },
|
|
18
|
-
|
|
20
|
+
separatorStyle: { default: () => ({}) },
|
|
21
|
+
contentStyle: { default: () => ({}) },
|
|
22
|
+
prefixStyle: { default: () => ({}) },
|
|
23
|
+
rows: { default: 2 },
|
|
24
|
+
defaultExpand: { type: Boolean, default: !0 },
|
|
25
|
+
showIcon: { type: Boolean, default: !0 }
|
|
19
26
|
},
|
|
20
27
|
emits: ["choose", "expand"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
28
|
+
setup(L, { expose: $, emit: H }) {
|
|
29
|
+
const z = H, r = L, { t: S } = U(), V = f(() => {
|
|
30
|
+
if (r.type != "card")
|
|
31
|
+
return r.type;
|
|
32
|
+
}), l = h(""), u = h(null), D = f(() => ({
|
|
23
33
|
fontWeight: "400",
|
|
24
34
|
wordBreak: "break-all",
|
|
25
35
|
overflow: "hidden",
|
|
26
36
|
display: "-webkit-box",
|
|
27
|
-
webkitLineClamp:
|
|
37
|
+
webkitLineClamp: l.value,
|
|
28
38
|
webkitBoxOrient: "vertical",
|
|
29
39
|
lineHeight: "22px"
|
|
30
40
|
}));
|
|
31
|
-
function
|
|
32
|
-
|
|
41
|
+
function R() {
|
|
42
|
+
l.value === "1" ? l.value = "" : l.value = "1", z("expand");
|
|
33
43
|
}
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
e ?
|
|
44
|
+
const M = f(() => l.value === "1" ? S("ap.apExpandAlert.expand") : S("ap.apExpandAlert.collapse")), y = h(!0), B = f(() => l.value !== "1");
|
|
45
|
+
function v(e) {
|
|
46
|
+
e ? l.value = "" : l.value = "1";
|
|
37
47
|
}
|
|
38
|
-
|
|
39
|
-
() =>
|
|
48
|
+
T(
|
|
49
|
+
() => r.data,
|
|
40
50
|
() => {
|
|
41
|
-
|
|
42
|
-
if (
|
|
43
|
-
const e = Number(
|
|
44
|
-
parseInt(
|
|
51
|
+
l.value = "", w(() => {
|
|
52
|
+
if (u.value) {
|
|
53
|
+
const e = Number(u.value.clientHeight), d = Number(
|
|
54
|
+
parseInt(u.value.style.lineHeight)
|
|
45
55
|
);
|
|
46
|
-
e <
|
|
56
|
+
e < d * Number(r.rows) && B.value ? y.value = !1 : y.value = !0;
|
|
47
57
|
}
|
|
48
58
|
});
|
|
49
59
|
},
|
|
50
60
|
{
|
|
51
61
|
immediate: !0
|
|
52
62
|
}
|
|
63
|
+
), T(
|
|
64
|
+
() => r.defaultExpand,
|
|
65
|
+
(e) => {
|
|
66
|
+
e ? w(() => {
|
|
67
|
+
v(e);
|
|
68
|
+
}) : w(() => {
|
|
69
|
+
v(e);
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
{ immediate: !0 }
|
|
53
73
|
);
|
|
54
|
-
const { b:
|
|
55
|
-
return
|
|
56
|
-
setExpand:
|
|
57
|
-
}), (e,
|
|
58
|
-
class: s([t(
|
|
74
|
+
const { b: O, e: o, m: F } = X("ap-expand-alert"), G = Y("uiMode", "aplus");
|
|
75
|
+
return $({
|
|
76
|
+
setExpand: v
|
|
77
|
+
}), (e, d) => (a(), n("div", {
|
|
78
|
+
class: s([t(O)(), `${t(F)(t(G))}`])
|
|
59
79
|
}, [
|
|
60
|
-
|
|
61
|
-
type:
|
|
62
|
-
"show-icon":
|
|
63
|
-
class: s(t(
|
|
80
|
+
x(t(K), {
|
|
81
|
+
type: V.value,
|
|
82
|
+
"show-icon": e.showIcon,
|
|
83
|
+
class: s([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""])
|
|
64
84
|
}, {
|
|
65
|
-
action:
|
|
66
|
-
|
|
85
|
+
action: m(() => [
|
|
86
|
+
y.value ? (a(), g(t(Q), {
|
|
67
87
|
key: 0,
|
|
68
88
|
size: "small",
|
|
69
|
-
onClick:
|
|
89
|
+
onClick: d[0] || (d[0] = (i) => R()),
|
|
70
90
|
style: { "font-size": "12px", "padding-left": "16px" }
|
|
71
91
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
|
|
74
|
-
class: s(t(
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
class: s(
|
|
92
|
+
default: m(() => [
|
|
93
|
+
b("span", {
|
|
94
|
+
class: s(t(o)("expandText"))
|
|
95
|
+
}, p(M.value), 3),
|
|
96
|
+
x(t(J), {
|
|
97
|
+
class: s(B.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
|
|
78
98
|
}, null, 8, ["class"])
|
|
79
99
|
]),
|
|
80
100
|
_: 1
|
|
81
|
-
})) :
|
|
101
|
+
})) : A("", !0)
|
|
82
102
|
]),
|
|
83
|
-
message:
|
|
84
|
-
|
|
85
|
-
style: D
|
|
86
|
-
class: s(t(
|
|
103
|
+
message: m(() => [
|
|
104
|
+
b("div", {
|
|
105
|
+
style: c({ ...D.value, ...e.contentStyle }),
|
|
106
|
+
class: s(t(o)("alertContent")),
|
|
87
107
|
ref_key: "ellipsisBoxRef",
|
|
88
|
-
ref:
|
|
108
|
+
ref: u
|
|
89
109
|
}, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
N(e.$slots, "default", {}, () => [
|
|
111
|
+
t(E)(e.prefix) ? (a(), n("span", {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: s(t(o)("prefix")),
|
|
114
|
+
style: c(e.prefixStyle)
|
|
115
|
+
}, p(e.prefix), 7)) : (a(), g(I(e.prefix), {
|
|
116
|
+
key: 1,
|
|
117
|
+
style: c(e.prefixStyle)
|
|
118
|
+
}, null, 8, ["style"])),
|
|
119
|
+
t(E)(e.data) ? (a(), n("span", {
|
|
120
|
+
key: 2,
|
|
121
|
+
class: s(t(o)("text"))
|
|
122
|
+
}, p(e.data), 3)) : (a(!0), n(C, { key: 3 }, j(e.data, (i, k) => (a(), n(C, { key: k }, [
|
|
123
|
+
x(t(P), {
|
|
124
|
+
title: e.tipTitle ? e.tipTitle : null
|
|
125
|
+
}, {
|
|
126
|
+
default: m(() => [
|
|
127
|
+
N(e.$slots, "item", {
|
|
128
|
+
record: i,
|
|
129
|
+
index: k
|
|
130
|
+
}, () => [
|
|
131
|
+
b("span", {
|
|
132
|
+
class: s(t(o)("showItem")),
|
|
133
|
+
onClick: (_) => e.$emit("choose", i)
|
|
134
|
+
}, p(e.mapLabel ? i[e.mapLabel] : i), 11, Z)
|
|
135
|
+
])
|
|
101
136
|
]),
|
|
102
137
|
_: 2
|
|
103
138
|
}, 1032, ["title"]),
|
|
104
|
-
|
|
139
|
+
k !== e.data.length - 1 ? (a(), n("span", {
|
|
105
140
|
key: 0,
|
|
106
|
-
class: s(t(
|
|
107
|
-
|
|
141
|
+
class: s(t(o)("spliter")),
|
|
142
|
+
style: c(e.separatorStyle)
|
|
143
|
+
}, [
|
|
144
|
+
t(E)(e.separator) ? (a(), n(C, { key: 0 }, [
|
|
145
|
+
q(p(e.separator), 1)
|
|
146
|
+
], 64)) : (a(), g(I(e.separator), { key: 1 }))
|
|
147
|
+
], 6)) : A("", !0)
|
|
108
148
|
], 64))), 128))
|
|
109
149
|
])
|
|
110
150
|
], 6)
|
|
111
151
|
]),
|
|
112
152
|
_: 3
|
|
113
|
-
}, 8, ["type", "class"])
|
|
153
|
+
}, 8, ["type", "show-icon", "class"])
|
|
114
154
|
], 2));
|
|
115
155
|
}
|
|
116
156
|
});
|
|
117
157
|
export {
|
|
118
|
-
|
|
158
|
+
ue as default
|
|
119
159
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { AlertProps } from 'ant-design-vue/es/alert';
|
|
2
|
+
import { Component, CSSProperties, VNode } from 'vue';
|
|
3
|
+
export type ApExpandAlertProps<T> = {
|
|
2
4
|
/**
|
|
3
5
|
* Alert类型
|
|
4
6
|
*/
|
|
5
|
-
type
|
|
7
|
+
type?: 'warning' | 'error' | 'success' | 'info' | 'card' | undefined;
|
|
6
8
|
/**
|
|
7
9
|
* 展开数据
|
|
8
10
|
*/
|
|
9
|
-
data
|
|
11
|
+
data?: Array<T> | string;
|
|
10
12
|
/**
|
|
11
13
|
* 标题前缀
|
|
12
14
|
*/
|
|
@@ -22,9 +24,25 @@ export interface ApExpandAlertProps {
|
|
|
22
24
|
/**
|
|
23
25
|
* 分隔符
|
|
24
26
|
*/
|
|
25
|
-
separator
|
|
27
|
+
separator?: Component | VNode | string;
|
|
28
|
+
/**
|
|
29
|
+
* 分隔符样式
|
|
30
|
+
*/
|
|
31
|
+
separatorStyle?: CSSProperties;
|
|
32
|
+
/**
|
|
33
|
+
* 内容样式
|
|
34
|
+
*/
|
|
35
|
+
contentStyle?: Omit<CSSProperties, 'wordBreak' | 'overflow' | 'display' | 'webkitLineClamp' | 'webkitBoxOrient'>;
|
|
36
|
+
/**
|
|
37
|
+
* 前缀样式
|
|
38
|
+
*/
|
|
39
|
+
prefixStyle?: CSSProperties;
|
|
26
40
|
/**
|
|
27
41
|
* 内容达到几行显示展开收起,默认是两行
|
|
28
42
|
*/
|
|
29
|
-
rows
|
|
30
|
-
|
|
43
|
+
rows?: string | number;
|
|
44
|
+
/**
|
|
45
|
+
* 默认是否展开
|
|
46
|
+
*/
|
|
47
|
+
defaultExpand?: boolean;
|
|
48
|
+
} & Pick<AlertProps, 'showIcon'>;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.aplus-ap-expand-alert__prefix {
|
|
21
21
|
color: #182948;
|
|
22
|
+
display: inline-block;
|
|
22
23
|
}
|
|
23
24
|
.aplus-ap-expand-alert__showItem {
|
|
24
25
|
color: #0070ff;
|
|
@@ -40,3 +41,11 @@
|
|
|
40
41
|
font-size: 16px;
|
|
41
42
|
transform: translateY(2px);
|
|
42
43
|
}
|
|
44
|
+
.aplus-ap-expand-alert--aplus .card-alert {
|
|
45
|
+
background-color: transparent !important;
|
|
46
|
+
border: none ;
|
|
47
|
+
}
|
|
48
|
+
.aplus-ap-expand-alert--admin .card-alert {
|
|
49
|
+
background-color: transparent !important;
|
|
50
|
+
border: none;
|
|
51
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.aplus-ap-title {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
height: 20px;
|
|
5
4
|
display: flex;
|
|
6
5
|
align-items: center;
|
|
7
6
|
justify-content: space-between;
|
|
@@ -12,7 +11,8 @@
|
|
|
12
11
|
position: absolute;
|
|
13
12
|
content: '';
|
|
14
13
|
left: 0;
|
|
15
|
-
top:
|
|
14
|
+
top: 50%;
|
|
15
|
+
transform: translateY(-50%);
|
|
16
16
|
width: 3px;
|
|
17
17
|
height: 16px;
|
|
18
18
|
background: #0070ff;
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
color: #0070ff;
|
|
31
31
|
}
|
|
32
32
|
.aplus-ap-title--admin {
|
|
33
|
-
height: 22px;
|
|
34
33
|
padding-left: 14px;
|
|
35
34
|
}
|
|
36
35
|
.aplus-ap-title--admin::before {
|
|
37
|
-
top:
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translateY(-50%);
|
|
38
38
|
width: 8px;
|
|
39
39
|
height: 8px;
|
|
40
40
|
border-radius: 50%;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApTableProps } from '../../';
|
|
2
2
|
import { UseTableRefreshOption } from './useTableRefresh';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
|
+
import { TableColumnsType } from 'ant-design-vue';
|
|
4
5
|
export interface UsePageListApTable extends ApTableProps {
|
|
5
6
|
/** 是否显示默认的行选择配置
|
|
6
7
|
* @default true
|
|
@@ -46,6 +47,7 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
|
|
|
46
47
|
clearAll: () => void;
|
|
47
48
|
toggleSelect: (item: any) => void;
|
|
48
49
|
} | undefined;
|
|
50
|
+
getShownColumns: () => TableColumnsType<any>;
|
|
49
51
|
} | null | undefined;
|
|
50
52
|
clearSelection: () => void;
|
|
51
53
|
}];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApTransformDataHelper } from '../utils/ap-trans-data';
|
|
2
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, VNode, CSSProperties,
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, DefineComponent } from 'vue';
|
|
3
3
|
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
4
4
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
5
5
|
import { LiteralUnion, Key } from 'ant-design-vue/es/_util/type';
|
|
@@ -176,196 +176,62 @@ export declare const ApTitle: {
|
|
|
176
176
|
onClick?: () => void;
|
|
177
177
|
};
|
|
178
178
|
}));
|
|
179
|
-
export declare const ApExpandAlert: {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
type: PropType<string>;
|
|
198
|
-
default: string;
|
|
199
|
-
};
|
|
200
|
-
rows: {
|
|
201
|
-
type: PropType<string | number>;
|
|
202
|
-
required: true;
|
|
203
|
-
default: number;
|
|
204
|
-
};
|
|
205
|
-
tipTitle: {
|
|
206
|
-
type: PropType<string>;
|
|
207
|
-
default: string;
|
|
208
|
-
};
|
|
209
|
-
mapLabel: {
|
|
210
|
-
type: PropType<string>;
|
|
211
|
-
};
|
|
212
|
-
}>> & {
|
|
213
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
214
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
setExpand: (state?: boolean) => void;
|
|
217
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
218
|
-
expand: (...args: any[]) => void;
|
|
219
|
-
choose: (...args: any[]) => void;
|
|
220
|
-
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
221
|
-
type: {
|
|
222
|
-
type: PropType<"error" | "success" | "info" | "warning" | undefined>;
|
|
223
|
-
required: true;
|
|
224
|
-
default: string;
|
|
225
|
-
};
|
|
226
|
-
data: {
|
|
227
|
-
type: PropType<string | any[]>;
|
|
228
|
-
required: true;
|
|
229
|
-
default: () => never[];
|
|
230
|
-
};
|
|
231
|
-
separator: {
|
|
232
|
-
type: PropType<string>;
|
|
233
|
-
required: true;
|
|
234
|
-
default: string;
|
|
235
|
-
};
|
|
236
|
-
prefix: {
|
|
237
|
-
type: PropType<string>;
|
|
238
|
-
default: string;
|
|
239
|
-
};
|
|
240
|
-
rows: {
|
|
241
|
-
type: PropType<string | number>;
|
|
242
|
-
required: true;
|
|
243
|
-
default: number;
|
|
244
|
-
};
|
|
245
|
-
tipTitle: {
|
|
246
|
-
type: PropType<string>;
|
|
247
|
-
default: string;
|
|
248
|
-
};
|
|
249
|
-
mapLabel: {
|
|
250
|
-
type: PropType<string>;
|
|
251
|
-
};
|
|
252
|
-
}>> & {
|
|
253
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
254
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
255
|
-
}, {
|
|
256
|
-
type: "warning" | "error" | "success" | "info" | undefined;
|
|
257
|
-
data: Array<any> | string;
|
|
258
|
-
separator: string;
|
|
259
|
-
prefix: string;
|
|
260
|
-
rows: string | number;
|
|
261
|
-
tipTitle: string;
|
|
262
|
-
}, true, {}, {}, {
|
|
263
|
-
P: {};
|
|
264
|
-
B: {};
|
|
265
|
-
D: {};
|
|
266
|
-
C: {};
|
|
267
|
-
M: {};
|
|
268
|
-
Defaults: {};
|
|
269
|
-
}, Readonly< ExtractPropTypes<{
|
|
270
|
-
type: {
|
|
271
|
-
type: PropType<"error" | "success" | "info" | "warning" | undefined>;
|
|
272
|
-
required: true;
|
|
273
|
-
default: string;
|
|
274
|
-
};
|
|
275
|
-
data: {
|
|
276
|
-
type: PropType<string | any[]>;
|
|
277
|
-
required: true;
|
|
278
|
-
default: () => never[];
|
|
279
|
-
};
|
|
280
|
-
separator: {
|
|
281
|
-
type: PropType<string>;
|
|
282
|
-
required: true;
|
|
283
|
-
default: string;
|
|
284
|
-
};
|
|
285
|
-
prefix: {
|
|
286
|
-
type: PropType<string>;
|
|
287
|
-
default: string;
|
|
288
|
-
};
|
|
289
|
-
rows: {
|
|
290
|
-
type: PropType<string | number>;
|
|
291
|
-
required: true;
|
|
292
|
-
default: number;
|
|
293
|
-
};
|
|
294
|
-
tipTitle: {
|
|
295
|
-
type: PropType<string>;
|
|
296
|
-
default: string;
|
|
297
|
-
};
|
|
298
|
-
mapLabel: {
|
|
299
|
-
type: PropType<string>;
|
|
300
|
-
};
|
|
301
|
-
}>> & {
|
|
179
|
+
export declare const ApExpandAlert: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
180
|
+
attrs: any;
|
|
181
|
+
slots: Readonly<{
|
|
182
|
+
default(props: any): any;
|
|
183
|
+
item(props: {
|
|
184
|
+
record: T;
|
|
185
|
+
index: number;
|
|
186
|
+
}): any;
|
|
187
|
+
}> & {
|
|
188
|
+
default(props: any): any;
|
|
189
|
+
item(props: {
|
|
190
|
+
record: T;
|
|
191
|
+
index: number;
|
|
192
|
+
}): any;
|
|
193
|
+
};
|
|
194
|
+
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
195
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
196
|
+
props: {
|
|
302
197
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
303
198
|
onChoose?: ((...args: any[]) => any) | undefined;
|
|
304
|
-
|
|
199
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
200
|
+
data?: string | T[] | undefined;
|
|
201
|
+
prefix?: string | undefined;
|
|
202
|
+
tipTitle?: string | undefined;
|
|
203
|
+
mapLabel?: string | undefined;
|
|
204
|
+
separator?: ( Component | VNode | string) | undefined;
|
|
205
|
+
separatorStyle?: CSSProperties | undefined;
|
|
206
|
+
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
207
|
+
prefixStyle?: CSSProperties | undefined;
|
|
208
|
+
rows?: (string | number) | undefined;
|
|
209
|
+
defaultExpand?: boolean | undefined;
|
|
210
|
+
showIcon?: boolean | undefined;
|
|
211
|
+
} & PublicProps;
|
|
212
|
+
expose(exposed: ShallowUnwrapRef<{
|
|
305
213
|
setExpand: (state?: boolean) => void;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
required: true;
|
|
321
|
-
default: string;
|
|
322
|
-
};
|
|
323
|
-
data: {
|
|
324
|
-
type: PropType<string | any[]>;
|
|
325
|
-
required: true;
|
|
326
|
-
default: () => never[];
|
|
327
|
-
};
|
|
328
|
-
separator: {
|
|
329
|
-
type: PropType<string>;
|
|
330
|
-
required: true;
|
|
331
|
-
default: string;
|
|
332
|
-
};
|
|
333
|
-
prefix: {
|
|
334
|
-
type: PropType<string>;
|
|
335
|
-
default: string;
|
|
336
|
-
};
|
|
337
|
-
rows: {
|
|
338
|
-
type: PropType<string | number>;
|
|
339
|
-
required: true;
|
|
340
|
-
default: number;
|
|
341
|
-
};
|
|
342
|
-
tipTitle: {
|
|
343
|
-
type: PropType<string>;
|
|
344
|
-
default: string;
|
|
345
|
-
};
|
|
346
|
-
mapLabel: {
|
|
347
|
-
type: PropType<string>;
|
|
348
|
-
};
|
|
349
|
-
}>> & {
|
|
350
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
|
351
|
-
onChoose?: ((...args: any[]) => any) | undefined;
|
|
352
|
-
}, {
|
|
353
|
-
setExpand: (state?: boolean) => void;
|
|
354
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
355
|
-
expand: (...args: any[]) => void;
|
|
356
|
-
choose: (...args: any[]) => void;
|
|
357
|
-
}, string, {
|
|
358
|
-
type: "warning" | "error" | "success" | "info" | undefined;
|
|
359
|
-
data: Array<any> | string;
|
|
360
|
-
separator: string;
|
|
361
|
-
prefix: string;
|
|
362
|
-
rows: string | number;
|
|
363
|
-
tipTitle: string;
|
|
364
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
365
|
-
$slots: {
|
|
366
|
-
default?(_: {}): any;
|
|
214
|
+
}>): void;
|
|
215
|
+
attrs: any;
|
|
216
|
+
slots: Readonly<{
|
|
217
|
+
default(props: any): any;
|
|
218
|
+
item(props: {
|
|
219
|
+
record: T;
|
|
220
|
+
index: number;
|
|
221
|
+
}): any;
|
|
222
|
+
}> & {
|
|
223
|
+
default(props: any): any;
|
|
224
|
+
item(props: {
|
|
225
|
+
record: T;
|
|
226
|
+
index: number;
|
|
227
|
+
}): any;
|
|
367
228
|
};
|
|
368
|
-
|
|
229
|
+
emit: (event: "expand" | "choose", ...args: any[]) => void;
|
|
230
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
}> & {
|
|
233
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
234
|
+
};
|
|
369
235
|
export declare const ApLabel: {
|
|
370
236
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
371
237
|
helpMessage: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckCardGroupProps, CheckCardValueType } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, CSSProperties, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
slots: {
|
|
5
5
|
default?(_: {}): any;
|
|
@@ -17,6 +17,8 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
17
17
|
size: undefined;
|
|
18
18
|
stopPropagation: undefined;
|
|
19
19
|
defaultValue: undefined;
|
|
20
|
+
indicatorSize: undefined;
|
|
21
|
+
style: undefined;
|
|
20
22
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
23
|
"update:value": (...args: any[]) => void;
|
|
22
24
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CheckCardGroupProps>, {
|
|
@@ -28,10 +30,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
28
30
|
size: undefined;
|
|
29
31
|
stopPropagation: undefined;
|
|
30
32
|
defaultValue: undefined;
|
|
33
|
+
indicatorSize: undefined;
|
|
34
|
+
style: undefined;
|
|
31
35
|
}>>> & {
|
|
32
36
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
33
37
|
}, {
|
|
34
38
|
size: "middle" | "small";
|
|
39
|
+
style: CSSProperties;
|
|
35
40
|
value: CheckCardValueType | CheckCardValueType[];
|
|
36
41
|
multiple: boolean;
|
|
37
42
|
disabled: boolean;
|
|
@@ -39,6 +44,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
39
44
|
defaultValue: CheckCardValueType | CheckCardValueType[];
|
|
40
45
|
bordered: boolean;
|
|
41
46
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
47
|
+
indicatorSize: number;
|
|
42
48
|
}, {}>;
|
|
43
49
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
50
|
export default _default;
|