@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.
Files changed (103) hide show
  1. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  2. package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
  3. package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
  4. package/es/src/ap-form/ap-form.vue.d.ts +3 -1
  5. package/es/src/ap-form/ap-form.vue2.mjs +130 -80
  6. package/es/src/ap-form/interface.d.ts +51 -1
  7. package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
  8. package/es/src/ap-form/items/date/index.vue.mjs +10 -9
  9. package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
  10. package/es/src/ap-form/items/number/index.vue.mjs +12 -11
  11. package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
  12. package/es/src/ap-form/items/select/index.vue.mjs +1 -0
  13. package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
  14. package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
  15. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  16. package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
  17. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
  18. package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
  19. package/es/src/ap-form/utils/get.d.ts +1 -0
  20. package/es/src/ap-form/utils/get.mjs +12 -0
  21. package/es/src/ap-form/utils/set.d.ts +6 -0
  22. package/es/src/ap-form/utils/set.mjs +41 -0
  23. package/es/src/ap-list/index.vue.d.ts +3 -0
  24. package/es/src/ap-list/index.vue.mjs +51 -49
  25. package/es/src/ap-table/ap-table.vue.d.ts +4 -1
  26. package/es/src/ap-table/ap-table.vue.mjs +65 -59
  27. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +8 -8
  28. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -11
  29. package/es/src/ap-table/components/setting/utils.mjs +29 -29
  30. package/es/src/ap-table/constants.d.ts +121 -1
  31. package/es/src/ap-table/interface.d.ts +6 -1
  32. package/es/src/ap-table/utils.d.ts +121 -1
  33. package/es/src/business/ap-card/ApCard.vue2.mjs +31 -26
  34. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  35. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
  36. package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
  37. package/es/src/business/ap-expand-alert/style.css +9 -0
  38. package/es/src/business/ap-title/style.css +4 -4
  39. package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
  40. package/es/src/business/index.d.ts +53 -187
  41. package/es/src/check-card/group.vue.d.ts +7 -1
  42. package/es/src/check-card/group.vue.mjs +26 -22
  43. package/es/src/check-card/index.vue.d.ts +5 -2
  44. package/es/src/check-card/index.vue2.mjs +69 -60
  45. package/es/src/check-card/interface.d.ts +12 -0
  46. package/es/src/check-card/style/index.css +9 -5
  47. package/es/src/locale/lang/en.mjs +4 -0
  48. package/es/src/locale/lang/zh-cn.mjs +4 -0
  49. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  50. package/es/src/theme/ap-title/ap-title.css +4 -4
  51. package/es/src/theme/check-card/index.css +9 -5
  52. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  53. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  54. package/lib/src/ap-form/ap-form-list.vue.js +1 -1
  55. package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
  56. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  57. package/lib/src/ap-form/interface.d.ts +51 -1
  58. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  59. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  60. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  61. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  62. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  63. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  64. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  65. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  66. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  67. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  68. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
  69. package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
  70. package/lib/src/ap-form/utils/get.d.ts +1 -0
  71. package/lib/src/ap-form/utils/get.js +1 -0
  72. package/lib/src/ap-form/utils/set.d.ts +6 -0
  73. package/lib/src/ap-form/utils/set.js +1 -0
  74. package/lib/src/ap-list/index.vue.d.ts +3 -0
  75. package/lib/src/ap-list/index.vue.js +1 -1
  76. package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
  77. package/lib/src/ap-table/ap-table.vue.js +1 -1
  78. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  79. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  80. package/lib/src/ap-table/components/setting/utils.js +1 -1
  81. package/lib/src/ap-table/constants.d.ts +121 -1
  82. package/lib/src/ap-table/interface.d.ts +6 -1
  83. package/lib/src/ap-table/utils.d.ts +121 -1
  84. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  85. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
  86. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  87. package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
  88. package/lib/src/business/ap-expand-alert/style.css +9 -0
  89. package/lib/src/business/ap-title/style.css +4 -4
  90. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
  91. package/lib/src/business/index.d.ts +53 -187
  92. package/lib/src/check-card/group.vue.d.ts +7 -1
  93. package/lib/src/check-card/group.vue.js +1 -1
  94. package/lib/src/check-card/index.vue.d.ts +5 -2
  95. package/lib/src/check-card/index.vue2.js +1 -1
  96. package/lib/src/check-card/interface.d.ts +12 -0
  97. package/lib/src/check-card/style/index.css +9 -5
  98. package/lib/src/locale/lang/en.js +1 -1
  99. package/lib/src/locale/lang/zh-cn.js +1 -1
  100. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
  101. package/lib/src/theme/ap-title/ap-title.css +4 -4
  102. package/lib/src/theme/check-card/index.css +9 -5
  103. package/package.json +1 -1
@@ -1,119 +1,159 @@
1
- import { defineComponent as z, ref as f, computed as v, watch as R, nextTick as S, openBlock as n, createElementBlock as i, normalizeClass as s, unref as t, createVNode as h, withCtx as d, createBlock as V, createElementVNode as c, toDisplayString as r, createCommentVNode as w, normalizeStyle as D, renderSlot as M, Fragment as x, renderList as O } from "vue";
2
- import { DownOutlined as F } from "@ant-design/icons-vue";
3
- import { Alert as G, Tooltip as W } from "ant-design-vue";
4
- import { ApActionItem as j } from "../../ap-action/index.mjs";
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 { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useGlobalConfig as J } from "../../config-provider/hooks/use-global-config.mjs";
9
- const K = { key: 0 }, P = ["onClick"], le = /* @__PURE__ */ z({
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
- rows: { default: 2 }
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(g, { expose: b, emit: C }) {
22
- const B = C, k = g, a = f(""), p = f(null), E = v(() => ({
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: a.value,
37
+ webkitLineClamp: l.value,
28
38
  webkitBoxOrient: "vertical",
29
39
  lineHeight: "22px"
30
40
  }));
31
- function N() {
32
- a.value === "1" ? a.value = "" : a.value = "1", B("expand");
41
+ function R() {
42
+ l.value === "1" ? l.value = "" : l.value = "1", z("expand");
33
43
  }
34
- const A = v(() => a.value === "1" ? "展开" : "收起"), m = f(!0), y = v(() => a.value !== "1");
35
- function T(e) {
36
- e ? a.value = "" : a.value = "1";
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
- R(
39
- () => k.data,
48
+ T(
49
+ () => r.data,
40
50
  () => {
41
- a.value = "", S(() => {
42
- if (p.value) {
43
- const e = Number(p.value.clientHeight), u = Number(
44
- parseInt(p.value.style.lineHeight)
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 < u * Number(k.rows) && y.value ? m.value = !1 : m.value = !0;
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: H, e: l, m: I } = q("ap-expand-alert"), L = J("uiMode", "aplus");
55
- return b({
56
- setExpand: T
57
- }), (e, u) => (n(), i("div", {
58
- class: s([t(H)(), `${t(I)(t(L))}`])
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
- h(t(G), {
61
- type: e.type,
62
- "show-icon": "",
63
- class: s(t(l)("antAlert"))
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: d(() => [
66
- m.value ? (n(), V(t(j), {
85
+ action: m(() => [
86
+ y.value ? (a(), g(t(Q), {
67
87
  key: 0,
68
88
  size: "small",
69
- onClick: u[0] || (u[0] = (o) => N()),
89
+ onClick: d[0] || (d[0] = (i) => R()),
70
90
  style: { "font-size": "12px", "padding-left": "16px" }
71
91
  }, {
72
- default: d(() => [
73
- c("span", {
74
- class: s(t(l)("expandText"))
75
- }, r(A.value), 3),
76
- h(t(F), {
77
- class: s(y.value ? t(l)("expandIcon") : t(l)("collapseIcon"))
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
- })) : w("", !0)
101
+ })) : A("", !0)
82
102
  ]),
83
- message: d(() => [
84
- c("div", {
85
- style: D(E.value),
86
- class: s(t(l)("alertContent")),
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: p
108
+ ref: u
89
109
  }, [
90
- M(e.$slots, "default", {}, () => [
91
- c("span", {
92
- class: s(t(l)("prefix"))
93
- }, r(e.prefix), 3),
94
- typeof e.data == "string" ? (n(), i("span", K, r(e.data), 1)) : (n(!0), i(x, { key: 1 }, O(e.data, (o, $) => (n(), i(x, { key: o }, [
95
- h(t(W), { title: e.tipTitle }, {
96
- default: d(() => [
97
- c("span", {
98
- class: s(t(l)("showItem")),
99
- onClick: (Q) => e.$emit("choose", o)
100
- }, r(e.mapLabel ? o[e.mapLabel] : o), 11, P)
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
- $ !== e.data.length - 1 ? (n(), i("span", {
139
+ k !== e.data.length - 1 ? (a(), n("span", {
105
140
  key: 0,
106
- class: s(t(l)("spliter"))
107
- }, r(e.separator), 3)) : w("", !0)
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
- le as default
158
+ ue as default
119
159
  };
@@ -1,12 +1,14 @@
1
- export interface ApExpandAlertProps {
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: 'warning' | 'error' | 'success' | 'info' | undefined;
7
+ type?: 'warning' | 'error' | 'success' | 'info' | 'card' | undefined;
6
8
  /**
7
9
  * 展开数据
8
10
  */
9
- data: Array<any> | string;
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: string;
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: string | number;
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: 2px;
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: 7px;
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, RendererNode, RendererElement, PublicProps, ShallowUnwrapRef, DefineComponent } from 'vue';
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
- new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
181
- type: {
182
- type: PropType<"error" | "success" | "info" | "warning" | undefined>;
183
- required: true;
184
- default: string;
185
- };
186
- data: {
187
- type: PropType<string | any[]>;
188
- required: true;
189
- default: () => never[];
190
- };
191
- separator: {
192
- type: PropType<string>;
193
- required: true;
194
- default: string;
195
- };
196
- prefix: {
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
- type: "warning" | "error" | "success" | "info" | undefined;
308
- data: Array<any> | string;
309
- separator: string;
310
- prefix: string;
311
- rows: string | number;
312
- tipTitle: string;
313
- }>;
314
- __isFragment?: never;
315
- __isTeleport?: never;
316
- __isSuspense?: never;
317
- } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
318
- type: {
319
- type: PropType<"error" | "success" | "info" | "warning" | undefined>;
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;