@aplus-frontend/ui 0.0.27 → 0.0.29

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 (127) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +27 -31
  2. package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -15
  3. package/es/src/ap-action/style/item-dropdown.css +2 -0
  4. package/es/src/ap-download/hooks/index.mjs +4 -3
  5. package/es/src/ap-download/interface.d.ts +2 -2
  6. package/es/src/ap-field/date/helper.mjs +5 -5
  7. package/es/src/ap-field/date-range/index.vue.mjs +15 -15
  8. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +21 -21
  9. package/es/src/ap-form/ap-form-item.vue.mjs +72 -64
  10. package/es/src/ap-form/ap-form-list.vue.mjs +29 -21
  11. package/es/src/ap-form/ap-form.vue.d.ts +13 -3
  12. package/es/src/ap-form/ap-form.vue2.mjs +87 -66
  13. package/es/src/ap-form/constant.d.ts +1 -0
  14. package/es/src/ap-form/constant.mjs +2 -1
  15. package/es/src/ap-form/context.d.ts +4 -3
  16. package/es/src/ap-form/hooks/use-watch.mjs +20 -16
  17. package/es/src/ap-form/interface.d.ts +39 -4
  18. package/es/src/ap-form/items/checkbox/index.vue.mjs +11 -10
  19. package/es/src/ap-form/items/date/index.vue.mjs +14 -13
  20. package/es/src/ap-form/items/date-range/index.vue.mjs +12 -11
  21. package/es/src/ap-form/items/number/index.vue.mjs +13 -12
  22. package/es/src/ap-form/items/radio/index.vue.mjs +4 -3
  23. package/es/src/ap-form/items/select/index.vue.mjs +3 -2
  24. package/es/src/ap-form/items/switch/index.vue.mjs +9 -8
  25. package/es/src/ap-form/items/text/index.vue2.mjs +15 -14
  26. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  27. package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
  28. package/es/src/ap-form/modal-form/index.vue.d.ts +1 -1
  29. package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
  30. package/es/src/ap-form/search-form/index.vue.mjs +123 -99
  31. package/es/src/ap-table/constants.d.ts +132 -0
  32. package/es/src/ap-table/hooks/use-table-paging.mjs +23 -21
  33. package/es/src/ap-upload/apUpload.vue.d.ts +3 -11
  34. package/es/src/ap-upload/apUpload.vue.mjs +42 -36
  35. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +115 -102
  36. package/es/src/ap-upload/components/Picture.vue2.mjs +121 -111
  37. package/es/src/ap-upload/components/SingleFile.vue2.mjs +120 -109
  38. package/es/src/ap-upload/hooks/useOss.d.ts +9 -4
  39. package/es/src/ap-upload/hooks/useOss.mjs +52 -34
  40. package/es/src/ap-upload/utils/accept.d.ts +3 -0
  41. package/es/src/ap-upload/utils/accept.mjs +35 -30
  42. package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +7 -2
  43. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +7 -6
  44. package/es/src/business/ap-status/interface.d.ts +4 -1
  45. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -1
  46. package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +53 -47
  47. package/es/src/business/expandAlert/interface.d.ts +4 -0
  48. package/es/src/business/index.d.ts +79 -15
  49. package/es/src/business/index.mjs +1 -1
  50. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  51. package/es/src/config-provider/config-provider-props.mjs +4 -0
  52. package/es/src/config-provider/config-provider.d.ts +10 -1
  53. package/es/src/config-provider/config-provider.mjs +9 -8
  54. package/es/src/config-provider/constants.d.ts +10 -0
  55. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  56. package/es/src/config-provider/index.d.ts +20 -1
  57. package/es/src/editable-table/form-item.vue.mjs +72 -74
  58. package/es/src/locale/lang/en.mjs +26 -1
  59. package/es/src/locale/lang/zh-cn.mjs +26 -1
  60. package/es/src/theme/ap-action/item-dropdown.css +2 -0
  61. package/es/src/work-order-modal/createWorkOrder.d.ts +3 -1
  62. package/es/src/work-order-modal/interfaces.d.ts +3 -1
  63. package/es/src/work-order-modal/work-order-modal.vue.mjs +7 -7
  64. package/lib/src/ap-action/group/index.vue.js +1 -1
  65. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  66. package/lib/src/ap-action/style/item-dropdown.css +2 -0
  67. package/lib/src/ap-download/hooks/index.js +1 -1
  68. package/lib/src/ap-download/interface.d.ts +2 -2
  69. package/lib/src/ap-field/date/helper.js +1 -1
  70. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  71. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  72. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  73. package/lib/src/ap-form/ap-form-list.vue.js +1 -1
  74. package/lib/src/ap-form/ap-form.vue.d.ts +13 -3
  75. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  76. package/lib/src/ap-form/constant.d.ts +1 -0
  77. package/lib/src/ap-form/constant.js +1 -1
  78. package/lib/src/ap-form/context.d.ts +4 -3
  79. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  80. package/lib/src/ap-form/interface.d.ts +39 -4
  81. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  82. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  83. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  84. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  85. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  86. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  87. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  88. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  89. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  90. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  91. package/lib/src/ap-form/modal-form/index.vue.d.ts +1 -1
  92. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  93. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  94. package/lib/src/ap-table/constants.d.ts +132 -0
  95. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  96. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -11
  97. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  98. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  99. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  100. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  101. package/lib/src/ap-upload/hooks/useOss.d.ts +9 -4
  102. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  103. package/lib/src/ap-upload/utils/accept.d.ts +3 -0
  104. package/lib/src/ap-upload/utils/accept.js +1 -1
  105. package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +7 -2
  106. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  107. package/lib/src/business/ap-status/interface.d.ts +4 -1
  108. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -1
  109. package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -1
  110. package/lib/src/business/expandAlert/interface.d.ts +4 -0
  111. package/lib/src/business/index.d.ts +79 -15
  112. package/lib/src/business/index.js +1 -1
  113. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  114. package/lib/src/config-provider/config-provider-props.js +1 -1
  115. package/lib/src/config-provider/config-provider.d.ts +10 -1
  116. package/lib/src/config-provider/config-provider.js +1 -1
  117. package/lib/src/config-provider/constants.d.ts +10 -0
  118. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  119. package/lib/src/config-provider/index.d.ts +20 -1
  120. package/lib/src/editable-table/form-item.vue.js +1 -1
  121. package/lib/src/locale/lang/en.js +1 -1
  122. package/lib/src/locale/lang/zh-cn.js +1 -1
  123. package/lib/src/theme/ap-action/item-dropdown.css +2 -0
  124. package/lib/src/work-order-modal/createWorkOrder.d.ts +3 -1
  125. package/lib/src/work-order-modal/interfaces.d.ts +3 -1
  126. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  127. package/package.json +4 -3
@@ -5,12 +5,15 @@ export type ApStatusProps = {
5
5
  show?: boolean;
6
6
  style?: object;
7
7
  };
8
- export type ApStatusGroupItemProps = ApStatusProps & {
8
+ type ApStatusGroupItemUnion = Pick<ApStatusProps, 'text' | 'color'> & {
9
9
  value: number | string;
10
10
  };
11
+ export type ApStatusGroupItemProps = Required<ApStatusGroupItemUnion>;
11
12
  export type ApStatusGroupProps = {
12
13
  padding: number;
13
14
  currentValue: number | string;
14
15
  statusList: ApStatusGroupItemProps[] | null;
15
16
  style?: object;
17
+ show?: boolean;
16
18
  };
19
+ export {};
@@ -1,6 +1,11 @@
1
1
  import { ApExpandAlertProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
 
4
+ /**
5
+ * @description: 手动调用收起展开
6
+ * @param {boolean} state true 展开 false 收起
7
+ */
8
+ declare function setExpand(state?: boolean): void;
4
9
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
5
10
  /**
6
11
  * Alert类型
@@ -22,7 +27,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
22
27
  * 分隔符
23
28
  */
24
29
  separator: string;
25
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
30
+ /**
31
+ * 内容达到几行显示展开收起
32
+ */
33
+ rows: number;
34
+ }>, {
35
+ setExpand: typeof setExpand;
36
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
37
+ expand: (...args: any[]) => void;
26
38
  choose: (...args: any[]) => void;
27
39
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
28
40
  /**
@@ -45,13 +57,19 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
45
57
  * 分隔符
46
58
  */
47
59
  separator: string;
60
+ /**
61
+ * 内容达到几行显示展开收起
62
+ */
63
+ rows: number;
48
64
  }>>> & {
65
+ onExpand?: ((...args: any[]) => any) | undefined;
49
66
  onChoose?: ((...args: any[]) => any) | undefined;
50
67
  }, {
51
68
  type: "success" | "error" | "info" | "warning" | undefined;
52
69
  data: string | any[];
53
70
  prefix: string;
54
71
  separator: string;
72
+ rows: string | number;
55
73
  tipTitle: string;
56
74
  }, {}>, {
57
75
  default?(_: {}): any;
@@ -1,12 +1,12 @@
1
- import { defineComponent as H, ref as f, computed as v, watch as I, nextTick as L, openBlock as s, createElementBlock as i, normalizeClass as l, unref as e, createVNode as h, withCtx as d, createBlock as $, createElementVNode as c, toDisplayString as r, createCommentVNode as y, normalizeStyle as z, renderSlot as R, Fragment as g, renderList as S } from "vue";
2
- import { DownOutlined as V } from "@ant-design/icons-vue";
3
- import { Alert as D, Tooltip as M } from "ant-design-vue";
4
- import { ApActionItem as O } from "../../ap-action/index.mjs";
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";
5
5
  import "../../config-provider/index.mjs";
6
6
  import "./style.css";
7
- import { useNamespace as F } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useGlobalConfig as G } from "../../config-provider/hooks/use-global-config.mjs";
9
- const W = { key: 0 }, j = ["onClick"], _ = /* @__PURE__ */ H({
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({
10
10
  __name: "ApExpandAlert",
11
11
  props: {
12
12
  type: { default: "warning" },
@@ -14,32 +14,36 @@ const W = { key: 0 }, j = ["onClick"], _ = /* @__PURE__ */ H({
14
14
  prefix: { default: "" },
15
15
  tipTitle: { default: "查看详情" },
16
16
  mapLabel: {},
17
- separator: { default: "|" }
17
+ separator: { default: "|" },
18
+ rows: { default: 1 }
18
19
  },
19
- emits: ["choose"],
20
- setup(w) {
21
- const x = w, o = f(""), p = f(null), b = v(() => ({
20
+ emits: ["choose", "expand"],
21
+ setup(g, { expose: b, emit: C }) {
22
+ const B = C, k = g, a = f(""), p = f(null), E = v(() => ({
22
23
  fontWeight: "400",
23
24
  wordBreak: "break-all",
24
25
  overflow: "hidden",
25
26
  display: "-webkit-box",
26
- webkitLineClamp: o.value,
27
+ webkitLineClamp: a.value,
27
28
  webkitBoxOrient: "vertical",
28
29
  lineHeight: "22px"
29
30
  }));
30
- function C() {
31
- o.value === "1" ? o.value = "" : o.value = "1";
31
+ function N() {
32
+ a.value === "1" ? a.value = "" : a.value = "1", B("expand");
32
33
  }
33
- const B = v(() => o.value === "1" ? "展开" : "收起"), m = f(!0), k = v(() => o.value !== "1");
34
- I(
35
- () => x.data,
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";
37
+ }
38
+ R(
39
+ () => k.data,
36
40
  () => {
37
- o.value = "", L(() => {
41
+ a.value = "", S(() => {
38
42
  if (p.value) {
39
- const t = Number(p.value.clientHeight), u = Number(
43
+ const e = Number(p.value.clientHeight), u = Number(
40
44
  parseInt(p.value.style.lineHeight)
41
45
  );
42
- t <= u && k.value ? m.value = !1 : m.value = !0;
46
+ e < u * Number(k.rows) && y.value ? m.value = !1 : m.value = !0;
43
47
  }
44
48
  });
45
49
  },
@@ -47,58 +51,60 @@ const W = { key: 0 }, j = ["onClick"], _ = /* @__PURE__ */ H({
47
51
  immediate: !0
48
52
  }
49
53
  );
50
- const { b: A, e: a, m: N } = F("ap-expand-alert"), T = G("uiMode", "aplus");
51
- return (t, u) => (s(), i("div", {
52
- class: l([e(A)(), `${e(N)(e(T))}`])
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))}`])
53
59
  }, [
54
- h(e(D), {
55
- type: t.type,
60
+ h(t(G), {
61
+ type: e.type,
56
62
  "show-icon": "",
57
- class: l(e(a)("antAlert"))
63
+ class: s(t(l)("antAlert"))
58
64
  }, {
59
65
  action: d(() => [
60
- m.value ? (s(), $(e(O), {
66
+ m.value ? (n(), V(t(j), {
61
67
  key: 0,
62
68
  size: "small",
63
- onClick: u[0] || (u[0] = (n) => C()),
69
+ onClick: u[0] || (u[0] = (o) => N()),
64
70
  style: { "font-size": "12px", "padding-left": "16px" }
65
71
  }, {
66
72
  default: d(() => [
67
73
  c("span", {
68
- class: l(e(a)("expandText"))
69
- }, r(B.value), 3),
70
- h(e(V), {
71
- class: l(k.value ? e(a)("expandIcon") : e(a)("collapseIcon"))
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"))
72
78
  }, null, 8, ["class"])
73
79
  ]),
74
80
  _: 1
75
- })) : y("", !0)
81
+ })) : w("", !0)
76
82
  ]),
77
83
  message: d(() => [
78
84
  c("div", {
79
- style: z(b.value),
80
- class: l(e(a)("alertContent")),
85
+ style: D(E.value),
86
+ class: s(t(l)("alertContent")),
81
87
  ref_key: "ellipsisBoxRef",
82
88
  ref: p
83
89
  }, [
84
- R(t.$slots, "default", {}, () => [
90
+ M(e.$slots, "default", {}, () => [
85
91
  c("span", {
86
- class: l(e(a)("prefix"))
87
- }, r(t.prefix), 3),
88
- typeof t.data == "string" ? (s(), i("span", W, r(t.data), 1)) : (s(!0), i(g, { key: 1 }, S(t.data, (n, E) => (s(), i(g, { key: n }, [
89
- h(e(M), { title: t.tipTitle }, {
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 }, {
90
96
  default: d(() => [
91
97
  c("span", {
92
- class: l(e(a)("showItem")),
93
- onClick: (q) => t.$emit("choose", n)
94
- }, r(t.mapLabel ? n[t.mapLabel] : n), 11, j)
98
+ class: s(t(l)("showItem")),
99
+ onClick: (Q) => e.$emit("choose", o)
100
+ }, r(e.mapLabel ? o[e.mapLabel] : o), 11, P)
95
101
  ]),
96
102
  _: 2
97
103
  }, 1032, ["title"]),
98
- E !== t.data.length - 1 ? (s(), i("span", {
104
+ $ !== e.data.length - 1 ? (n(), i("span", {
99
105
  key: 0,
100
- class: l(e(a)("spliter"))
101
- }, r(t.separator), 3)) : y("", !0)
106
+ class: s(t(l)("spliter"))
107
+ }, r(e.separator), 3)) : w("", !0)
102
108
  ], 64))), 128))
103
109
  ])
104
110
  ], 6)
@@ -109,5 +115,5 @@ const W = { key: 0 }, j = ["onClick"], _ = /* @__PURE__ */ H({
109
115
  }
110
116
  });
111
117
  export {
112
- _ as default
118
+ le as default
113
119
  };
@@ -23,4 +23,8 @@ export interface ApExpandAlertProps {
23
23
  * 分隔符
24
24
  */
25
25
  separator: string;
26
+ /**
27
+ * 内容达到几行显示展开收起,默认是一行
28
+ */
29
+ rows: string | number;
26
30
  }
@@ -1,7 +1,7 @@
1
1
  import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties } from 'vue';
2
2
  import { LiteralUnion } from 'ant-design-vue/es/_util/type';
3
3
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
4
- import { ApStatusGroupItemProps } from './ap-status/interface';
4
+ import { ApStatusProps } from './ap-status/interface';
5
5
  export type { ApTitleProps } from './title/interface';
6
6
  export type { ApExpandAlertProps } from './expandAlert/interface';
7
7
  export type { ApLabelProps } from './ap-label/interface';
@@ -171,6 +171,11 @@ export declare const ApExpandAlert: {
171
171
  required: true;
172
172
  default: string;
173
173
  };
174
+ rows: {
175
+ type: PropType<string | number>;
176
+ required: true;
177
+ default: number;
178
+ };
174
179
  tipTitle: {
175
180
  type: PropType<string>;
176
181
  default: string;
@@ -179,8 +184,12 @@ export declare const ApExpandAlert: {
179
184
  type: PropType<string>;
180
185
  };
181
186
  }>> & {
187
+ onExpand?: ((...args: any[]) => any) | undefined;
182
188
  onChoose?: ((...args: any[]) => any) | undefined;
183
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
189
+ }, {
190
+ setExpand: (state?: boolean | undefined) => void;
191
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
192
+ expand: (...args: any[]) => void;
184
193
  choose: (...args: any[]) => void;
185
194
  }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
186
195
  type: {
@@ -202,6 +211,11 @@ export declare const ApExpandAlert: {
202
211
  required: true;
203
212
  default: string;
204
213
  };
214
+ rows: {
215
+ type: PropType<string | number>;
216
+ required: true;
217
+ default: number;
218
+ };
205
219
  tipTitle: {
206
220
  type: PropType<string>;
207
221
  default: string;
@@ -210,12 +224,14 @@ export declare const ApExpandAlert: {
210
224
  type: PropType<string>;
211
225
  };
212
226
  }>> & {
227
+ onExpand?: ((...args: any[]) => any) | undefined;
213
228
  onChoose?: ((...args: any[]) => any) | undefined;
214
229
  }, {
215
230
  type: "success" | "error" | "info" | "warning" | undefined;
216
231
  data: string | any[];
217
232
  prefix: string;
218
233
  separator: string;
234
+ rows: string | number;
219
235
  tipTitle: string;
220
236
  }, true, {}, {}, {
221
237
  P: {};
@@ -244,6 +260,11 @@ export declare const ApExpandAlert: {
244
260
  required: true;
245
261
  default: string;
246
262
  };
263
+ rows: {
264
+ type: PropType<string | number>;
265
+ required: true;
266
+ default: number;
267
+ };
247
268
  tipTitle: {
248
269
  type: PropType<string>;
249
270
  default: string;
@@ -252,12 +273,16 @@ export declare const ApExpandAlert: {
252
273
  type: PropType<string>;
253
274
  };
254
275
  }>> & {
276
+ onExpand?: ((...args: any[]) => any) | undefined;
255
277
  onChoose?: ((...args: any[]) => any) | undefined;
256
- }, {}, {}, {}, {}, {
278
+ }, {
279
+ setExpand: (state?: boolean | undefined) => void;
280
+ }, {}, {}, {}, {
257
281
  type: "success" | "error" | "info" | "warning" | undefined;
258
282
  data: string | any[];
259
283
  prefix: string;
260
284
  separator: string;
285
+ rows: string | number;
261
286
  tipTitle: string;
262
287
  }>;
263
288
  __isFragment?: undefined;
@@ -283,6 +308,11 @@ export declare const ApExpandAlert: {
283
308
  required: true;
284
309
  default: string;
285
310
  };
311
+ rows: {
312
+ type: PropType<string | number>;
313
+ required: true;
314
+ default: number;
315
+ };
286
316
  tipTitle: {
287
317
  type: PropType<string>;
288
318
  default: string;
@@ -291,23 +321,24 @@ export declare const ApExpandAlert: {
291
321
  type: PropType<string>;
292
322
  };
293
323
  }>> & {
324
+ onExpand?: ((...args: any[]) => any) | undefined;
294
325
  onChoose?: ((...args: any[]) => any) | undefined;
295
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
326
+ }, {
327
+ setExpand: (state?: boolean | undefined) => void;
328
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
329
+ expand: (...args: any[]) => void;
296
330
  choose: (...args: any[]) => void;
297
331
  }, string, {
298
332
  type: "success" | "error" | "info" | "warning" | undefined;
299
333
  data: string | any[];
300
334
  prefix: string;
301
335
  separator: string;
336
+ rows: string | number;
302
337
  tipTitle: string;
303
338
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
304
339
  $slots: {
305
340
  default?(_: {}): any;
306
341
  };
307
- }) & Plugin<any[]> & (new (...args: any[]) => {
308
- $props: {
309
- onClick?: (() => void) | undefined;
310
- };
311
342
  });
312
343
  export declare const ApLabel: {
313
344
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
@@ -680,13 +711,19 @@ export declare const ApStatusGroup: {
680
711
  required: true;
681
712
  default: number;
682
713
  };
714
+ show: {
715
+ type: PropType<boolean>;
716
+ default: boolean;
717
+ };
683
718
  currentValue: {
684
719
  type: PropType<string | number>;
685
720
  required: true;
686
721
  default: number;
687
722
  };
688
723
  statusList: {
689
- type: PropType< ApStatusGroupItemProps[] | null>;
724
+ type: PropType<Required<Pick< ApStatusProps, "text" | "color"> & {
725
+ value: string | number;
726
+ }>[] | null>;
690
727
  required: true;
691
728
  default: null;
692
729
  };
@@ -699,20 +736,29 @@ export declare const ApStatusGroup: {
699
736
  required: true;
700
737
  default: number;
701
738
  };
739
+ show: {
740
+ type: PropType<boolean>;
741
+ default: boolean;
742
+ };
702
743
  currentValue: {
703
744
  type: PropType<string | number>;
704
745
  required: true;
705
746
  default: number;
706
747
  };
707
748
  statusList: {
708
- type: PropType< ApStatusGroupItemProps[] | null>;
749
+ type: PropType<Required<Pick< ApStatusProps, "text" | "color"> & {
750
+ value: string | number;
751
+ }>[] | null>;
709
752
  required: true;
710
753
  default: null;
711
754
  };
712
755
  }>>, {
713
756
  padding: number;
757
+ show: boolean;
714
758
  currentValue: string | number;
715
- statusList: ApStatusGroupItemProps[] | null;
759
+ statusList: Required<Pick< ApStatusProps, "text" | "color"> & {
760
+ value: string | number;
761
+ }>[] | null;
716
762
  }, true, {}, {}, {
717
763
  P: {};
718
764
  B: {};
@@ -729,20 +775,29 @@ export declare const ApStatusGroup: {
729
775
  required: true;
730
776
  default: number;
731
777
  };
778
+ show: {
779
+ type: PropType<boolean>;
780
+ default: boolean;
781
+ };
732
782
  currentValue: {
733
783
  type: PropType<string | number>;
734
784
  required: true;
735
785
  default: number;
736
786
  };
737
787
  statusList: {
738
- type: PropType< ApStatusGroupItemProps[] | null>;
788
+ type: PropType<Required<Pick< ApStatusProps, "text" | "color"> & {
789
+ value: string | number;
790
+ }>[] | null>;
739
791
  required: true;
740
792
  default: null;
741
793
  };
742
794
  }>>, {}, {}, {}, {}, {
743
795
  padding: number;
796
+ show: boolean;
744
797
  currentValue: string | number;
745
- statusList: ApStatusGroupItemProps[] | null;
798
+ statusList: Required<Pick< ApStatusProps, "text" | "color"> & {
799
+ value: string | number;
800
+ }>[] | null;
746
801
  }>;
747
802
  __isFragment?: undefined;
748
803
  __isTeleport?: undefined;
@@ -756,20 +811,29 @@ export declare const ApStatusGroup: {
756
811
  required: true;
757
812
  default: number;
758
813
  };
814
+ show: {
815
+ type: PropType<boolean>;
816
+ default: boolean;
817
+ };
759
818
  currentValue: {
760
819
  type: PropType<string | number>;
761
820
  required: true;
762
821
  default: number;
763
822
  };
764
823
  statusList: {
765
- type: PropType< ApStatusGroupItemProps[] | null>;
824
+ type: PropType<Required<Pick< ApStatusProps, "text" | "color"> & {
825
+ value: string | number;
826
+ }>[] | null>;
766
827
  required: true;
767
828
  default: null;
768
829
  };
769
830
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
770
831
  padding: number;
832
+ show: boolean;
771
833
  currentValue: string | number;
772
- statusList: ApStatusGroupItemProps[] | null;
834
+ statusList: Required<Pick< ApStatusProps, "text" | "color"> & {
835
+ value: string | number;
836
+ }>[] | null;
773
837
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
774
838
  $props: {
775
839
  onClick?: (() => void) | undefined;
@@ -9,7 +9,7 @@ import m from "./expandAlert/ApExpandAlert.vue2.mjs";
9
9
  import r from "./ap-label/ApLabel.vue2.mjs";
10
10
  import p from "./ap-status/ApStatus.vue2.mjs";
11
11
  import i from "./ap-status/ApStatusGroup.vue2.mjs";
12
- const x = t(o), S = t(m), b = t(r), d = t(p), h = t(i);
12
+ const x = t(o), S = m, b = t(r), d = t(p), h = t(i);
13
13
  export {
14
14
  S as ApExpandAlert,
15
15
  b as ApLabel,
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
- import { ApiType, ScrollbarGlobalConfig, TableDefaultConfig } from './constants';
3
+ import { ApiType, ScrollbarGlobalConfig, TableDefaultConfig, ApUploadConfig } from './constants';
4
4
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
5
5
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
6
6
  import { CSPConfig, SizeType, ThemeConfig } from 'ant-design-vue/es/config-provider/context';
@@ -148,5 +148,9 @@ export declare const configProviderProps: () => {
148
148
  type: PropType<"aplus" | "admin">;
149
149
  default: string;
150
150
  };
151
+ apUpload: {
152
+ type: PropType<ApUploadConfig>;
153
+ default: () => {};
154
+ };
151
155
  };
152
156
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -25,6 +25,10 @@ const a = () => ({
25
25
  type: String,
26
26
  default: "aplus"
27
27
  },
28
+ apUpload: {
29
+ type: Object,
30
+ default: () => ({})
31
+ },
28
32
  ...e()
29
33
  });
30
34
  export {
@@ -8,7 +8,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
8
8
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
9
9
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
10
10
  import { LocaleType } from '..';
11
- import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig } from './constants';
11
+ import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from './constants';
12
12
  export declare const ConfigProvider: DefineComponent<{
13
13
  iconPrefixCls: StringConstructor;
14
14
  getTargetContainer: {
@@ -146,6 +146,10 @@ export declare const ConfigProvider: DefineComponent<{
146
146
  type: PropType<"aplus" | "admin">;
147
147
  default: string;
148
148
  };
149
+ apUpload: {
150
+ type: PropType<ApUploadConfig>;
151
+ default: () => {};
152
+ };
149
153
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
150
154
  iconPrefixCls: StringConstructor;
151
155
  getTargetContainer: {
@@ -283,6 +287,10 @@ export declare const ConfigProvider: DefineComponent<{
283
287
  type: PropType<"aplus" | "admin">;
284
288
  default: string;
285
289
  };
290
+ apUpload: {
291
+ type: PropType<ApUploadConfig>;
292
+ default: () => {};
293
+ };
286
294
  }>>, {
287
295
  theme: ThemeConfig;
288
296
  direction: "ltr" | "rtl";
@@ -319,5 +327,6 @@ export declare const ConfigProvider: DefineComponent<{
319
327
  api: ApiType;
320
328
  scrollbar: ScrollbarGlobalConfig;
321
329
  uiMode: "aplus" | "admin";
330
+ apUpload: ApUploadConfig;
322
331
  }, {}>;
323
332
  export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
@@ -1,13 +1,13 @@
1
- import { isVNode as n, defineComponent as a, computed as l, createVNode as f, renderSlot as c } from "vue";
2
- import { ConfigProvider as m } from "ant-design-vue";
3
- import { provideGlobalConfig as d } from "./hooks/use-global-config.mjs";
1
+ import { isVNode as a, defineComponent as n, computed as l, createVNode as f, renderSlot as c } from "vue";
2
+ import { ConfigProvider as d } from "ant-design-vue";
3
+ import { provideGlobalConfig as m } from "./hooks/use-global-config.mjs";
4
4
  import { configProviderProps as u } from "./config-provider-props.mjs";
5
5
  import { tableDefaultConfig as p } from "./constants.mjs";
6
6
  import { mergeAntdProvideConfig as g } from "../utils/config-provider-preset.mjs";
7
7
  function b(o) {
8
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !n(o);
8
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !a(o);
9
9
  }
10
- const y = /* @__PURE__ */ a({
10
+ const y = /* @__PURE__ */ n({
11
11
  name: "AplusConfigProvider",
12
12
  props: u(),
13
13
  setup(o, {
@@ -22,11 +22,12 @@ const y = /* @__PURE__ */ a({
22
22
  ...o.table || {}
23
23
  },
24
24
  scrollbar: o.scrollbar,
25
- uiMode: o.uiMode
26
- })), e = d(i);
25
+ uiMode: o.uiMode,
26
+ apUpload: o.apUpload
27
+ })), e = m(i);
27
28
  return () => {
28
29
  let t;
29
- return f(m, g(o), b(t = c(r, "default", {
30
+ return f(d, g(o), b(t = c(r, "default", {
30
31
  config: e == null ? void 0 : e.value
31
32
  })) ? t : {
32
33
  default: () => [t]
@@ -3,6 +3,7 @@ import { InjectionKey, Ref } from 'vue';
3
3
  import { SizeType, SorterResult } from '../pro-table/types/table';
4
4
  import { Fn } from '../type';
5
5
  import { CommonOptionItem, ApiSelectOption } from '../pro-form/components/interface';
6
+ import { client } from '@aplus-frontend/oss';
6
7
 
7
8
  export type ConfigProviderContext = Partial<ConfigProviderProps>;
8
9
  export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
@@ -29,4 +30,13 @@ export type ApiType = {
29
30
  radioGroup?: (args?: any) => Promise<CommonOptionItem[]>;
30
31
  select?: (args?: any) => Promise<ApiSelectOption[]>;
31
32
  };
33
+ export type ApUploadConfig = {
34
+ dirName?: string;
35
+ getOssAccess?: Parameters<typeof client.initOssClient>[0]['getOssAccess'];
36
+ needName?: boolean | {
37
+ pathKey?: string;
38
+ nameKey?: string;
39
+ };
40
+ accept?: string;
41
+ };
32
42
  export {};
@@ -1,6 +1,6 @@
1
1
  import { MaybeRef } from '@aplus-frontend/utils';
2
2
  import { App, Ref, ComputedRef, ExtractPropTypes, PropType } from 'vue';
3
- import { ConfigProviderContext, ApiType, TableDefaultConfig, ScrollbarGlobalConfig } from '../constants';
3
+ import { ConfigProviderContext, ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from '../constants';
4
4
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
5
5
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
6
6
  import { CSPConfig } from 'ant-design-vue/es/config-provider';
@@ -151,4 +151,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
151
151
  type: PropType<"aplus" | "admin">;
152
152
  default: string;
153
153
  };
154
+ apUpload: {
155
+ type: PropType<ApUploadConfig>;
156
+ default: () => {};
157
+ };
154
158
  }>>>> | undefined;