@aplus-frontend/ui 7.12.4 → 7.12.5

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 (77) hide show
  1. package/es/src/ag-grid/editable/form-item.vue.d.ts +4 -2
  2. package/es/src/ag-grid/editable/index.vue.d.ts +4 -2
  3. package/es/src/ag-grid/index.vue.d.ts +4 -2
  4. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  5. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  6. package/es/src/ap-form/ap-form.vue.d.ts +2 -1
  7. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  8. package/es/src/ap-form/items/number/index.vue.d.ts +3 -2
  9. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  10. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  11. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  12. package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  13. package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
  14. package/es/src/ap-grid/index.vue.d.ts +4 -2
  15. package/es/src/ap-list/index.vue.d.ts +4 -2
  16. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  17. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  18. package/es/src/ap-table/constants.d.ts +6 -6
  19. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  20. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  21. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  22. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  23. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  24. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  25. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  26. package/es/src/business/ap-table-modal/index.d.ts +5 -17
  27. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  28. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +61 -61
  29. package/es/src/business/ap-value-select-card/index.vue.d.ts +4 -2
  30. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
  31. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
  32. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  33. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  34. package/es/src/editable-table/index.vue.d.ts +4 -2
  35. package/es/src/scroll-view/index.vue.d.ts +5 -5
  36. package/es/src/tests/wrapper.d.ts +4 -4
  37. package/es/src/version.d.ts +1 -1
  38. package/es/src/version.mjs +1 -1
  39. package/lib/src/ag-grid/editable/form-item.vue.d.ts +4 -2
  40. package/lib/src/ag-grid/editable/index.vue.d.ts +4 -2
  41. package/lib/src/ag-grid/index.vue.d.ts +4 -2
  42. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  43. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  44. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  45. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  46. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -2
  47. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  48. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  49. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  50. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  51. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  52. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  53. package/lib/src/ap-list/index.vue.d.ts +4 -2
  54. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  55. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  56. package/lib/src/ap-table/constants.d.ts +6 -6
  57. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  58. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  59. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  60. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  61. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  62. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  63. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  64. package/lib/src/business/ap-table-modal/index.d.ts +5 -17
  65. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  66. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  67. package/lib/src/business/ap-value-select-card/index.vue.d.ts +4 -2
  68. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
  69. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
  70. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  71. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  72. package/lib/src/editable-table/index.vue.d.ts +4 -2
  73. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  74. package/lib/src/tests/wrapper.d.ts +4 -4
  75. package/lib/src/version.d.ts +1 -1
  76. package/lib/src/version.js +1 -1
  77. package/package.json +1 -1
@@ -4,9 +4,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
4
4
  import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
5
5
  import { Recordable } from '../../type';
6
6
  import { TableColumnsType } from '@aplus-frontend/antdv';
7
+ import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
7
8
  import { ApFormSearchFormPopoverSorterItem } from '../..';
8
9
  import { MaskType } from '@aplus-frontend/antdv/es/_util/hooks/useMergedMask';
9
- import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
10
10
  /**
11
11
  *
12
12
  */
@@ -44,14 +44,8 @@ declare const ApTableModal: {
44
44
  };
45
45
  y: undefined;
46
46
  };
47
- getPaging: () => Partial<{
48
- current: number;
49
- pageSize: number;
50
- }>;
51
- setPaging: (nextPaging: Partial<{
52
- current: number;
53
- pageSize: number;
54
- }>, refreshImmediately?: boolean) => void;
47
+ getPaging: () => InternalPagingType;
48
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
55
49
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
56
50
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
57
51
  resetSearchFormSorterItems: () => void;
@@ -156,14 +150,8 @@ declare const ApTableModal: {
156
150
  };
157
151
  y: undefined;
158
152
  };
159
- getPaging: () => Partial<{
160
- current: number;
161
- pageSize: number;
162
- }>;
163
- setPaging: (nextPaging: Partial<{
164
- current: number;
165
- pageSize: number;
166
- }>, refreshImmediately?: boolean) => void;
153
+ getPaging: () => InternalPagingType;
154
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
167
155
  getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
168
156
  setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
169
157
  resetSearchFormSorterItems: () => void;
@@ -1,6 +1,6 @@
1
1
  import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
3
+ import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
4
4
  import { AcceptConfig, UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
5
5
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
6
6
  declare function setValue(val: (string | Record<string, any>)[]): void;
@@ -1,42 +1,42 @@
1
- import { defineComponent as oe, inject as a, ref as te, watch as ae, nextTick as se, createElementBlock as C, openBlock as x, normalizeClass as ne, unref as s, createVNode as y, withCtx as N, createElementVNode as M, createTextVNode as re, toDisplayString as D, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
1
+ import { defineComponent as oe, inject as s, ref as te, watch as se, nextTick as ae, createElementBlock as N, openBlock as y, normalizeClass as ne, unref as a, createVNode as k, withCtx as U, createElementVNode as D, createTextVNode as re, toDisplayString as L, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
2
2
  import { UploadOutlined as pe } from "@ant-design/icons-vue";
3
3
  import { message as p, Upload as de, Button as me } from "@aplus-frontend/antdv";
4
4
  import { IconApAdLineDownload as fe } from "@aplus-frontend/icon";
5
5
  import { ApFilePreview as ge } from "../../ap-file-preview/index.mjs";
6
6
  import "../../../config-provider/index.mjs";
7
- import { useOss as we, getOssInstance as L } from "../hooks/useOss.mjs";
7
+ import { useOss as we, getOssInstance as S } from "../hooks/useOss.mjs";
8
8
  import he from "../style/index.mjs";
9
9
  import { fileMatchesAccept as ve, getAcceptText as xe } from "../utils/accept.mjs";
10
- import { getPath as ye, getName as ke, getReturnData as S } from "../utils/returnData.mjs";
10
+ import { getPath as ye, getName as ke, getReturnData as z } from "../utils/returnData.mjs";
11
11
  import { useGlobalConfig as be } from "../../../config-provider/hooks/use-global-config.mjs";
12
12
  import { useLocale as Ce } from "../../../config-provider/hooks/use-locale.mjs";
13
13
  import { useNamespace as Ne } from "../../../config-provider/hooks/use-namespace.mjs";
14
- const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 }, qe = /* @__PURE__ */ oe({
14
+ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, _e = { key: 1 }, qe = /* @__PURE__ */ oe({
15
15
  __name: "MultipleFile",
16
- setup(Ae, { expose: z }) {
17
- const U = be(
16
+ setup(Fe, { expose: B }) {
17
+ const E = be(
18
18
  "downloadCenterTriggerConfig"
19
- ), { t: i } = Ce(), { b: B } = Ne("ap-upload-multiple-file"), O = he("ap-upload"), { put: V } = we(), q = a("dirName"), j = a("baseDirName"), k = a("accept") || "*", E = a("maxSize") ?? 500, $ = a("title") || i("ap.apUpload.uploadFile"), f = a("subTitle"), l = a("maxCount") ?? 10, d = a("uploadingCount"), F = a("beforeUpload"), A = a("customRequest"), g = a("getOssAccess"), G = a("maxSizeErrorMsg"), W = a("maxCountErrorMsg"), H = a("acceptErrorMsg"), _ = a("onRemove"), b = a("showUploadErrorMsg"), P = a("bucket"), J = a("showDownload") ?? !0, K = a("showPreview") ?? !0, r = a("value"), c = [], w = a("needName"), m = te(null);
20
- ae(
19
+ ), { t: i } = Ce(), { b: O } = Ne("ap-upload-multiple-file"), V = he("ap-upload"), { put: q } = we(), j = s("dirName"), $ = s("baseDirName"), b = s("accept") || "*", _ = s("maxSize") ?? 500, G = s("title") || i("ap.apUpload.uploadFile"), f = s("subTitle"), l = s("maxCount") ?? 10, d = s("uploadingCount"), F = s("beforeUpload"), A = s("customRequest"), g = s("getOssAccess"), W = s("maxSizeErrorMsg"), H = s("maxCountErrorMsg"), J = s("acceptErrorMsg"), P = s("onRemove"), C = s("showUploadErrorMsg"), T = s("bucket"), K = s("showDownload") ?? !0, w = s("showPreview") ?? !0, r = s("value"), c = [], h = s("needName"), m = te(null);
20
+ se(
21
21
  () => r?.value,
22
22
  function(e) {
23
- !m?.value?.fileList?.length && e && T(e);
23
+ !m?.value?.fileList?.length && e && I(e);
24
24
  },
25
25
  { immediate: !0 }
26
26
  );
27
- function T(e) {
27
+ function I(e) {
28
28
  if (!e) {
29
29
  u = [], m.value.fileList = [], r.value = void 0, c.splice(0, c.length);
30
30
  return;
31
31
  }
32
- se(() => {
32
+ ae(() => {
33
33
  const o = e.map((t) => {
34
- const n = ye(w, t), R = ke(w, t), v = new File(
34
+ const n = ye(h, t), M = ke(h, t), x = new File(
35
35
  [t],
36
- R,
36
+ M,
37
37
  {}
38
38
  );
39
- return v.response = n, v.uid = n, v.status = "done", v;
39
+ return x.response = n, x.uid = n, x.status = "done", x;
40
40
  });
41
41
  if (l && o.length > l) {
42
42
  p.warning(
@@ -54,9 +54,9 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
54
54
  }), m.value.fileList = o, r.value = e;
55
55
  });
56
56
  }
57
- z({ setValue: T });
58
- let u = [], I;
59
- function h(e) {
57
+ B({ setValue: I });
58
+ let u = [], R;
59
+ function v(e) {
60
60
  setTimeout(() => {
61
61
  const o = m.value.fileList.findIndex(
62
62
  (t) => t.uid === e.uid
@@ -66,25 +66,25 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
66
66
  }
67
67
  async function Q(e) {
68
68
  if (l && l > 1 && u.length >= l)
69
- return clearTimeout(I), I = setTimeout(() => {
69
+ return clearTimeout(R), R = setTimeout(() => {
70
70
  p.warning(
71
- W || i("ap.apUpload.maxUploadFiles", {
71
+ H || i("ap.apUpload.maxUploadFiles", {
72
72
  maxCount: l
73
73
  })
74
74
  );
75
- }), h(e), !1;
76
- if (e.size > E * 1024 * 1024)
75
+ }), v(e), !1;
76
+ if (e.size > _ * 1024 * 1024)
77
77
  return p.warning(
78
- G || i("ap.apUpload.maxUploadFileSize", {
79
- maxSize: E
78
+ W || i("ap.apUpload.maxUploadFileSize", {
79
+ maxSize: _
80
80
  })
81
- ), h(e), !1;
82
- if (!ve(e, k))
81
+ ), v(e), !1;
82
+ if (!ve(e, b))
83
83
  return p.warning(
84
- H || i("ap.apUpload.fileFormatNotSupported")
85
- ), h(e), !1;
84
+ J || i("ap.apUpload.fileFormatNotSupported")
85
+ ), v(e), !1;
86
86
  if (typeof F == "function" && await F(e) === !1)
87
- return h(e), !1;
87
+ return v(e), !1;
88
88
  l && l === 1 && (u = [], r.value = void 0), u.push(e);
89
89
  }
90
90
  async function X(e) {
@@ -98,7 +98,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
98
98
  });
99
99
  },
100
100
  onError: (o) => {
101
- b && p.warning(o || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
101
+ C && p.warning(o || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
102
102
  e.onError({
103
103
  name: o,
104
104
  message: o
@@ -110,7 +110,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
110
110
  e.onSuccess(o);
111
111
  }), r.value = [
112
112
  ...r.value || [],
113
- S(w, o, e.file.name)
113
+ z(h, o, e.file.name)
114
114
  ], c.push({
115
115
  uid: e.file.uid,
116
116
  path: o
@@ -121,22 +121,22 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
121
121
  return;
122
122
  }
123
123
  try {
124
- const o = await (P ? g(P) : g()), t = await L(async () => o);
125
- e.file.oss = t, V({
124
+ const o = await (T ? g(T) : g()), t = await S(async () => o);
125
+ e.file.oss = t, q({
126
126
  file: e.file,
127
- dirName: q,
127
+ dirName: j,
128
128
  oss: t,
129
129
  successCallBack(n) {
130
130
  e.onSuccess(n), r.value = [
131
131
  ...r.value || [],
132
- S(w, n, e.file.name)
132
+ z(h, n, e.file.name)
133
133
  ], c.push({
134
134
  uid: e.file.uid,
135
135
  path: n
136
136
  }), d.value--;
137
137
  },
138
138
  errorCallBack(n) {
139
- b && p.warning(n || i("ap.apUpload.networkAnomaly")), e.onError({
139
+ C && p.warning(n || i("ap.apUpload.networkAnomaly")), e.onError({
140
140
  name: n,
141
141
  message: n
142
142
  }), d.value--;
@@ -146,11 +146,11 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
146
146
  percent: n
147
147
  });
148
148
  },
149
- baseDirName: j,
149
+ baseDirName: $,
150
150
  bucket: o?.bucket
151
151
  });
152
152
  } catch (o) {
153
- b && p.warning(
153
+ C && p.warning(
154
154
  typeof o?.message == "string" ? o.message : i("ap.apUpload.networkAnomaly")
155
155
  ), e.onError({
156
156
  name: o?.message || i("ap.apUpload.networkAnomaly"),
@@ -159,7 +159,7 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
159
159
  }
160
160
  }
161
161
  function Y(e) {
162
- if (_ && _?.(e), e.response) {
162
+ if (P && P?.(e), e.response) {
163
163
  if (Array.isArray(r.value)) {
164
164
  const t = c.findIndex((n) => n.uid === e.uid);
165
165
  t >= 0 && (r?.value.splice(t, 1), c.splice(t, 1)), r.value.length === 0 && (r.value = void 0);
@@ -172,15 +172,15 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
172
172
  return u.splice(o, 1), Promise.resolve(!0);
173
173
  }
174
174
  const Z = async (e) => {
175
- if (U.value?.trigger) {
175
+ if (E.value?.trigger) {
176
176
  let o = [e].map((t) => ({
177
177
  objectName: t.response,
178
178
  fileName: t.name
179
179
  }));
180
- U.value?.trigger?.(o);
180
+ E.value?.trigger?.(o);
181
181
  } else {
182
182
  const o = e.response?.match(/^([^:]+):(.*)$/), t = o?.[1], n = o?.[2] ?? e.response;
183
- (await L(
183
+ (await S(
184
184
  () => t ? g?.(t) : g?.()
185
185
  )).downloadFile([
186
186
  {
@@ -190,23 +190,23 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
190
190
  ]);
191
191
  }
192
192
  }, ee = (e) => {
193
- ge.createFilePreviewModal({
193
+ (typeof w == "function" ? w(e) : w) && ge.createFilePreviewModal({
194
194
  src: e.response,
195
195
  fileName: e.name
196
196
  });
197
197
  };
198
- return (e, o) => (x(), C("div", {
198
+ return (e, o) => (y(), N("div", {
199
199
  class: ne({
200
- [s(B)()]: !0,
201
- [s(O) ?? ""]: !0
200
+ [a(O)()]: !0,
201
+ [a(V) ?? ""]: !0
202
202
  })
203
203
  }, [
204
- y(s(de), {
204
+ k(a(de), {
205
205
  ref_key: "uploadRef",
206
206
  ref: m,
207
- accept: s(k),
207
+ accept: a(b),
208
208
  multiple: "",
209
- "max-count": s(l),
209
+ "max-count": a(l),
210
210
  progress: {
211
211
  strokeWidth: 3,
212
212
  showInfo: !1,
@@ -215,33 +215,33 @@ const Ue = { class: "multiple-file-context" }, Ee = { key: 0 }, Fe = { key: 1 },
215
215
  "before-upload": Q,
216
216
  "custom-request": X,
217
217
  "show-upload-list": {
218
- showDownloadIcon: s(J),
218
+ showDownloadIcon: a(K),
219
219
  showRemoveIcon: !0,
220
- showPreviewIcon: s(K)
220
+ showPreviewIcon: a(w)
221
221
  },
222
222
  onPreview: ee,
223
223
  onRemove: Y,
224
224
  onDownload: Z
225
225
  }, {
226
- downloadIcon: N(() => [
227
- y(s(fe), { class: "anticon anticon-vertical-align-bottom" })
226
+ downloadIcon: U(() => [
227
+ k(a(fe), { class: "anticon anticon-vertical-align-bottom" })
228
228
  ]),
229
- default: N(() => [
230
- M("div", Ue, [
231
- y(s(me), { class: "file-btn" }, {
232
- default: N(() => [
233
- y(s(pe)),
234
- re(" " + D(s($)), 1)
229
+ default: U(() => [
230
+ D("div", Ue, [
231
+ k(a(me), { class: "file-btn" }, {
232
+ default: U(() => [
233
+ k(a(pe)),
234
+ re(" " + L(a(G)), 1)
235
235
  ]),
236
236
  _: 1
237
237
  }),
238
- M("div", {
238
+ D("div", {
239
239
  class: "sub-title",
240
240
  onClick: o[0] || (o[0] = ie(() => {
241
241
  }, ["stop"]))
242
242
  }, [
243
- typeof s(f) == "string" ? (x(), C("div", Ee, D(s(f) || `${s(i)("ap.apUpload.supportExtension")}:${s(xe)(s(k))}`), 1)) : s(f) ? (x(), C("div", Fe, [
244
- (x(), ce(ue(s(f))))
243
+ typeof a(f) == "string" ? (y(), N("div", Ee, L(a(f) || `${a(i)("ap.apUpload.supportExtension")}:${a(xe)(a(b))}`), 1)) : a(f) ? (y(), N("div", _e, [
244
+ (y(), ce(ue(a(f))))
245
245
  ])) : le("", !0)
246
246
  ])
247
247
  ])
@@ -1,5 +1,5 @@
1
1
  import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
3
3
  declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
@@ -45,7 +45,9 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
45
45
  (e: "remove", key: string | number): void;
46
46
  (e: "highlight", keys: (string | number)[]): void;
47
47
  };
48
- }>) => VNode & {
48
+ }>) => VNode<RendererNode, RendererElement, {
49
+ [key: string]: any;
50
+ }> & {
49
51
  __ctx?: Awaited<typeof __VLS_setup>;
50
52
  };
51
53
  export default _default;
@@ -1,12 +1,13 @@
1
1
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
4
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
10
+ import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
10
11
  import { SizeType } from '@aplus-frontend/antdv/es/button';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  import { OnCleanup } from '@vue/reactivity';
@@ -109,7 +110,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
109
110
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
110
111
  readonly initialValues?: Recordable | undefined;
111
112
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
112
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
113
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
113
114
  readonly syncToUrlPriority?: boolean | undefined;
114
115
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
115
116
  $attrs: {
@@ -242,7 +243,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
242
243
  };
243
244
  lg: {
244
245
  type: PropType<string | number | ColSize>;
245
- default: string | number | ** @type { [typeof __VLS_components.Popover, typeof __VLS_components.Popover, ] } */).ColSize;
246
+ default: string | number | ColSize;
246
247
  };
247
248
  xl: {
248
249
  type: PropType<string | number | ColSize>;
@@ -1,12 +1,13 @@
1
1
  import { ViewListModel } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
4
- import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
7
  import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
8
8
  import { Recordable } from '../../../type';
9
9
  import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
10
+ import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
10
11
  import { SizeType } from '@aplus-frontend/antdv/es/button';
11
12
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
13
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
@@ -110,7 +111,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
110
111
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
111
112
  readonly initialValues?: Recordable | undefined;
112
113
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
113
- readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
114
+ readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
114
115
  readonly syncToUrlPriority?: boolean | undefined;
115
116
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
116
117
  $attrs: {
@@ -2,11 +2,7 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
2
2
  export declare const defaultNamespace = "aplus";
3
3
  export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
4
4
  export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
5
- export declare const useNamespace: (
6
- /**
7
- * 块 一般是指组件名
8
- */
9
- block: string, namespaceOverrides?: Ref<string | undefined>) => {
5
+ export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string | undefined>) => {
10
6
  namespace: ComputedRef<string>;
11
7
  b: (blockSuffix?: string) => string;
12
8
  e: (element?: string) => string;
@@ -1,5 +1,5 @@
1
1
  import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
3
3
  declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
5
5
  expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
@@ -36,7 +36,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
36
36
  }) => void;
37
37
  };
38
38
  emit: {};
39
- }>) => VNode & {
39
+ }>) => VNode<RendererNode, RendererElement, {
40
+ [key: string]: any;
41
+ }> & {
40
42
  __ctx?: Awaited<typeof __VLS_setup>;
41
43
  };
42
44
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { Recordable } from '../type';
2
2
  import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -39,7 +39,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
39
39
  }) => void;
40
40
  };
41
41
  emit: (event: "update:value", ...args: any[]) => void;
42
- }>) => VNode & {
42
+ }>) => VNode<RendererNode, RendererElement, {
43
+ [key: string]: any;
44
+ }> & {
43
45
  __ctx?: Awaited<typeof __VLS_setup>;
44
46
  };
45
47
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
1
+ import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
2
2
  import { ScrollOptions, ScrollViewProps } from './interface';
3
3
  import { CreateComponentPublicInstanceWithMixins, Ref, ShallowRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
4
4
  declare function scroll(x?: number, y?: number): void;
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
106
106
  onScroll?: ((percent: number) => void) | undefined;
107
107
  disabled?: boolean | undefined;
108
108
  trackSpeed?: number | undefined;
109
- barColor?: import("csstype").Property.BackgroundColor | undefined;
110
- trackColor?: import("csstype").Property.BackgroundColor | undefined;
109
+ barColor?: ColorType;
110
+ trackColor?: ColorType;
111
111
  trackWidth?: number | undefined;
112
112
  showTrack?: boolean | undefined;
113
113
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
118
118
  onScroll?: ((percent: number) => void) | undefined;
119
119
  disabled?: boolean | undefined;
120
120
  trackSpeed?: number | undefined;
121
- barColor?: import("csstype").Property.BackgroundColor | undefined;
122
- trackColor?: import("csstype").Property.BackgroundColor | undefined;
121
+ barColor?: ColorType;
122
+ trackColor?: ColorType;
123
123
  trackWidth?: number | undefined;
124
124
  showTrack?: boolean | undefined;
125
125
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -1,8 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  export declare const Wrapper: DefineComponent<{
3
- uiMode?: "admin" | "aplus" | undefined;
4
- lang?: "en" | "zh-cn" | undefined;
3
+ uiMode?: ("admin" | "aplus") | undefined;
4
+ lang?: ("en" | "zh-cn") | undefined;
5
5
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
6
- uiMode?: "admin" | "aplus" | undefined;
7
- lang?: "en" | "zh-cn" | undefined;
6
+ uiMode?: ("admin" | "aplus") | undefined;
7
+ lang?: ("en" | "zh-cn") | undefined;
8
8
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.12.4";
1
+ declare const _default: "7.12.5";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.12.4";
1
+ const e = "7.12.5";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1,13 +1,15 @@
1
1
  import { Recordable } from '../../type';
2
2
  import { EditableAgGridFormItemExpose, EditableAgGridFormItemProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableAgGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
6
6
  expose(exposed: ShallowUnwrapRef<EditableAgGridFormItemExpose<RecordType>>): void;
7
7
  attrs: any;
8
8
  slots: Readonly<Record<string, any>> & Record<string, any>;
9
9
  emit: {};
10
- }>) => VNode & {
10
+ }>) => VNode<RendererNode, RendererElement, {
11
+ [key: string]: any;
12
+ }> & {
11
13
  __ctx?: Awaited<typeof __VLS_setup>;
12
14
  };
13
15
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { Recordable } from '../../type';
2
2
  import { EditableAgGridExpose, EditableAgGridProps } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
6
  readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9,7 +9,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
9
9
  attrs: any;
10
10
  slots: Readonly<Record<string, any>> & Record<string, any>;
11
11
  emit: (event: "update:value", ...args: any[]) => void;
12
- }>) => VNode & {
12
+ }>) => VNode<RendererNode, RendererElement, {
13
+ [key: string]: any;
14
+ }> & {
13
15
  __ctx?: Awaited<typeof __VLS_setup>;
14
16
  };
15
17
  export default _default;
@@ -1,13 +1,15 @@
1
1
  import { Recordable } from '../type';
2
2
  import { AgGridExpose, AgGridProps, AgGridSlots } from './interface';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
4
4
  declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
6
6
  expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
7
7
  attrs: any;
8
8
  slots: Readonly<AgGridSlots<RecordType>> & AgGridSlots<RecordType>;
9
9
  emit: {};
10
- }>) => VNode & {
10
+ }>) => VNode<RendererNode, RendererElement, {
11
+ [key: string]: any;
12
+ }> & {
11
13
  __ctx?: Awaited<typeof __VLS_setup>;
12
14
  };
13
15
  export default _default;
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
6
6
  options: Ref<{
7
7
  [x: string]: any;
8
8
  label?: any;
9
- value?: string | number | null | undefined;
9
+ value?: (string | number | null) | undefined;
10
10
  children?: Omit<DefaultOptionType, "children">[] | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  }[], DefaultOptionType[] | {
13
13
  [x: string]: any;
14
14
  label?: any;
15
- value?: string | number | null | undefined;
15
+ value?: (string | number | null) | undefined;
16
16
  children?: Omit<DefaultOptionType, "children">[] | undefined;
17
17
  disabled?: boolean | undefined;
18
18
  }[]>;
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
8
8
  disabled?: boolean | undefined;
9
9
  checkable?: boolean | undefined;
10
10
  disableCheckbox?: boolean | undefined;
11
- children?: /*elided*/ any[] | undefined;
11
+ children?: any[] | undefined;
12
12
  } | {
13
13
  [x: string]: any;
14
14
  value?: RawValueType | undefined;
15
15
  title?: any;
16
16
  label?: any;
17
17
  key?: Key | undefined;
18
- children?: /*elided*/ any[] | undefined;
18
+ children?: any[] | undefined;
19
19
  disabled?: boolean | undefined;
20
20
  checkable?: boolean | undefined;
21
21
  disableCheckbox?: boolean | undefined;
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
24
24
  disabled?: boolean | undefined;
25
25
  checkable?: boolean | undefined;
26
26
  disableCheckbox?: boolean | undefined;
27
- children?: /*elided*/ any[] | undefined;
27
+ children?: any[] | undefined;
28
28
  } | {
29
29
  [x: string]: any;
30
30
  value?: RawValueType | undefined;
31
31
  title?: any;
32
32
  label?: any;
33
33
  key?: Key | undefined;
34
- children?: /*elided*/ any[] | undefined;
34
+ children?: any[] | undefined;
35
35
  disabled?: boolean | undefined;
36
36
  checkable?: boolean | undefined;
37
37
  disableCheckbox?: boolean | undefined;