@aplus-frontend/ui 0.4.4 → 0.4.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 (37) hide show
  1. package/es/index.mjs +51 -49
  2. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +52 -56
  3. package/es/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
  4. package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -35
  5. package/es/src/business/ap-summary/index.d.ts +0 -3
  6. package/es/src/business/batch-input-group/form-item.vue.d.ts +9 -1
  7. package/es/src/business/batch-input-group/form-item.vue.mjs +48 -44
  8. package/es/src/index.mjs +48 -46
  9. package/es/src/locale/lang/en.mjs +3 -0
  10. package/es/src/locale/lang/zh-cn.mjs +3 -0
  11. package/es/src/scroll-bar/index.d.ts +1 -0
  12. package/es/src/scroll-bar/index.mjs +4 -0
  13. package/es/src/scroll-bar/index.vue.d.ts +6 -5
  14. package/es/src/scroll-bar/index.vue.mjs +51 -38
  15. package/es/src/scroll-bar/interface.d.ts +1 -1
  16. package/es/src/scroll-bar/internal.vue.d.ts +1 -1
  17. package/es/src/scroll-bar/utils/index.d.ts +7 -0
  18. package/es/src/scroll-bar/utils/index.mjs +16 -11
  19. package/lib/index.js +1 -1
  20. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  21. package/lib/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
  22. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  23. package/lib/src/business/ap-summary/index.d.ts +0 -3
  24. package/lib/src/business/batch-input-group/form-item.vue.d.ts +9 -1
  25. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  26. package/lib/src/index.js +1 -1
  27. package/lib/src/locale/lang/en.js +1 -1
  28. package/lib/src/locale/lang/zh-cn.js +1 -1
  29. package/lib/src/scroll-bar/index.d.ts +1 -0
  30. package/lib/src/scroll-bar/index.js +1 -1
  31. package/lib/src/scroll-bar/index.vue.d.ts +6 -5
  32. package/lib/src/scroll-bar/index.vue.js +1 -1
  33. package/lib/src/scroll-bar/interface.d.ts +1 -1
  34. package/lib/src/scroll-bar/internal.vue.d.ts +1 -1
  35. package/lib/src/scroll-bar/utils/index.d.ts +7 -0
  36. package/lib/src/scroll-bar/utils/index.js +1 -1
  37. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -4,15 +4,15 @@ import "./src/hooks/index.mjs";
4
4
  import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
5
5
  import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
7
- import { buildLocaleContext as b, buildTranslator as C, localeContextKey as D, translate as S, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
7
+ import { buildLocaleContext as b, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
8
8
  import { defaultNamespace as G, namespaceContextKey as M, useGetDerivedNamespace as P, useNamespace as E } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as N, globalConfigCached as y } from "./src/config-provider/config-provider.mjs";
9
+ import { ConfigProvider as N, globalConfigCached as R } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as w } from "./src/config-provider/index.mjs";
11
11
  import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
12
12
  import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
13
13
  import { default as O } from "./src/ap-form/items/number/index.vue.mjs";
14
- import { default as _ } from "./src/ap-form/items/date/index.vue.mjs";
15
- import { default as H } from "./src/ap-form/items/date-range/index.vue.mjs";
14
+ import { default as W } from "./src/ap-form/items/date/index.vue.mjs";
15
+ import { default as z } from "./src/ap-form/items/date-range/index.vue.mjs";
16
16
  import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
17
17
  import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
18
18
  import { default as Q } from "./src/ap-form/items/switch/index.vue.mjs";
@@ -29,17 +29,17 @@ import { default as ce } from "./src/ap-form/set/index.vue.mjs";
29
29
  import { default as Ie } from "./src/ap-form/drawer-form/index.vue.mjs";
30
30
  import { default as be } from "./src/ap-form/render/control.vue.mjs";
31
31
  import { default as De } from "./src/ap-form/render/item.vue.mjs";
32
- import { default as ge } from "./src/ap-form/provider/index.vue.mjs";
32
+ import { default as Se } from "./src/ap-form/provider/index.vue.mjs";
33
33
  import { ApField as Ge } from "./src/ap-field/index.mjs";
34
34
  import { ApFieldText as Pe } from "./src/ap-field/text/index.mjs";
35
35
  import { default as Le } from "./src/ap-field/checkbox/index.vue.mjs";
36
- import { default as ye } from "./src/ap-field/date/index.vue.mjs";
36
+ import { default as Re } from "./src/ap-field/date/index.vue.mjs";
37
37
  import { default as we } from "./src/ap-field/number/index.vue.mjs";
38
38
  import { default as ve } from "./src/ap-field/radio/index.vue.mjs";
39
39
  import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
40
40
  import { default as Oe } from "./src/ap-field/text-area/index.vue.mjs";
41
- import { default as _e } from "./src/ap-field/date-range/index.vue.mjs";
42
- import { default as He } from "./src/ap-field/select/index.vue.mjs";
41
+ import { default as We } from "./src/ap-field/date-range/index.vue.mjs";
42
+ import { default as ze } from "./src/ap-field/select/index.vue.mjs";
43
43
  import { default as $e } from "./src/ap-field/text/password.vue.mjs";
44
44
  import { default as qe } from "./src/ap-field/slider/index.vue.mjs";
45
45
  import { default as Qe } from "./src/ap-field/segmented/index.vue.mjs";
@@ -54,18 +54,18 @@ import { DictCode as no, langMap as io } from "./src/work-order-modal/interfaces
54
54
  import { createWorkOrderModal as Fo } from "./src/work-order-modal/createWorkOrder.mjs";
55
55
  import { default as To } from "./src/work-order-modal/work-order-modal.vue.mjs";
56
56
  import { default as Co } from "./src/ap-tag/ap-tag.vue.mjs";
57
- import { default as So } from "./src/ap-tag/ap-tag-group.vue.mjs";
57
+ import { default as go } from "./src/ap-tag/ap-tag-group.vue.mjs";
58
58
  import { default as ho } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
59
59
  import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
60
60
  import { default as Eo } from "./src/ap-upload/apUpload.vue.mjs";
61
61
  import { ApDownLoadNeedNameKeyDefault as No } from "./src/ap-download/interface.mjs";
62
- import { default as Ro } from "./src/ap-download/ap-download.vue.mjs";
62
+ import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
63
63
  import { CheckCard as ko } from "./src/check-card/index.mjs";
64
64
  import { default as Bo } from "./src/check-card/group.vue.mjs";
65
65
  import { ApModal as Uo } from "./src/ap-modal/index.mjs";
66
- import { default as Wo } from "./src/ap-list/index.vue.mjs";
67
- import { default as zo } from "./src/ap-button/ap-button.vue.mjs";
68
- import { default as Vo } from "./src/ap-button/ap-action-button.vue.mjs";
66
+ import { default as Vo } from "./src/ap-list/index.vue.mjs";
67
+ import { default as _o } from "./src/ap-button/ap-button.vue.mjs";
68
+ import { default as Ho } from "./src/ap-button/ap-action-button.vue.mjs";
69
69
  import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
70
70
  import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
71
71
  import { default as Xo } from "./src/business/ap-table-modal/index.mjs";
@@ -81,17 +81,17 @@ import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/in
81
81
  import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
82
82
  import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
83
83
  import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
84
- import { ApImage as Sr } from "./src/business/ap-image/index.mjs";
84
+ import { ApImage as gr } from "./src/business/ap-image/index.mjs";
85
85
  import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
86
86
  import { ApLabel as Mr, ApLabelGroup as Pr } from "./src/business/ap-label/index.mjs";
87
87
  import { locales as Lr } from "./src/business/ap-ladder/interface.mjs";
88
- import { ApLadder as yr } from "./src/business/ap-ladder/index.mjs";
88
+ import { ApLadder as Rr } from "./src/business/ap-ladder/index.mjs";
89
89
  import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
90
90
  import { ApStatus as vr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
91
91
  import { ApTitle as Ur } from "./src/business/ap-title/index.mjs";
92
- import { usePageListApTable as Wr } from "./src/business/hooks/usePageListApTable.mjs";
93
- import { useTableRefresh as zr } from "./src/business/hooks/useTableRefresh.mjs";
94
- import { computedRecords as Vr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
92
+ import { usePageListApTable as Vr } from "./src/business/hooks/usePageListApTable.mjs";
93
+ import { useTableRefresh as _r } from "./src/business/hooks/useTableRefresh.mjs";
94
+ import { computedRecords as Hr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
95
95
  import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
96
96
  import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
97
97
  import { ApAppendix as et } from "./src/business/ap-appendix/index.mjs";
@@ -105,12 +105,13 @@ import { ApTable as ct } from "./src/ap-table/index.mjs";
105
105
  import { default as It } from "./src/editable-table/index.vue.mjs";
106
106
  import { default as bt } from "./src/editable-table/form-item.vue.mjs";
107
107
  import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
108
- import { default as gt } from "./src/scroll-bar/index.vue.mjs";
109
- import { default as Gt } from "./src/scroll-bar/internal.vue.mjs";
110
- import { useMessage as Pt } from "./src/hooks/useMessage.mjs";
111
- import { useControllableValue as Lt } from "./src/hooks/useControllableValue.mjs";
112
- import { useManualRef as yt } from "./src/hooks/useManualRef.mjs";
113
- import { useThrottleRef as wt } from "./src/hooks/useThrottleRef.mjs";
108
+ import { ensureRangeValue as St } from "./src/scroll-bar/utils/index.mjs";
109
+ import { default as Gt } from "./src/scroll-bar/index.vue.mjs";
110
+ import { default as Pt } from "./src/scroll-bar/internal.vue.mjs";
111
+ import { useMessage as Lt } from "./src/hooks/useMessage.mjs";
112
+ import { useControllableValue as Rt } from "./src/hooks/useControllableValue.mjs";
113
+ import { useManualRef as wt } from "./src/hooks/useManualRef.mjs";
114
+ import { useThrottleRef as vt } from "./src/hooks/useThrottleRef.mjs";
114
115
  const a = {
115
116
  install: (r) => {
116
117
  for (const t in o) {
@@ -121,7 +122,7 @@ const a = {
121
122
  };
122
123
  export {
123
124
  w as APConfigProvider,
124
- Vo as ApActionButton,
125
+ Ho as ApActionButton,
125
126
  so as ApActionGroup,
126
127
  to as ApActionItem,
127
128
  xo as ApActionItemDropdown,
@@ -131,12 +132,12 @@ export {
131
132
  tr as ApAttachment,
132
133
  ar as ApBatchAction,
133
134
  mr as ApBatchActionGroup,
134
- zo as ApButton,
135
+ _o as ApButton,
135
136
  xr as ApButtonGroup,
136
137
  ur as ApCard,
137
138
  Dt as ApDescriptions,
138
139
  No as ApDownLoadNeedNameKeyDefault,
139
- Ro as ApDownload,
140
+ yo as ApDownload,
140
141
  jo as ApDrawer,
141
142
  Ar as ApExpandAlert,
142
143
  Fr as ApExportGroup,
@@ -144,14 +145,14 @@ export {
144
145
  rt as ApExtensionSelect,
145
146
  Ge as ApField,
146
147
  Le as ApFieldCheckbox,
147
- ye as ApFieldDate,
148
- _e as ApFieldDateRange,
148
+ Re as ApFieldDate,
149
+ We as ApFieldDateRange,
149
150
  we as ApFieldNumber,
150
151
  $e as ApFieldPassword,
151
152
  ve as ApFieldRadio,
152
153
  Ye as ApFieldRate,
153
154
  Qe as ApFieldSegmented,
154
- He as ApFieldSelect,
155
+ ze as ApFieldSelect,
155
156
  qe as ApFieldSlider,
156
157
  Ke as ApFieldSwitch,
157
158
  Pe as ApFieldText,
@@ -163,8 +164,8 @@ export {
163
164
  pe as ApFormItem,
164
165
  dt as ApFormItemBatchInput,
165
166
  Y as ApFormItemCheckbox,
166
- _ as ApFormItemDate,
167
- H as ApFormItemDateRange,
167
+ W as ApFormItemDate,
168
+ z as ApFormItemDateRange,
168
169
  fe as ApFormItemGroup,
169
170
  O as ApFormItemNumber,
170
171
  $ as ApFormItemRadio,
@@ -176,17 +177,17 @@ export {
176
177
  ee as ApFormItemTextPassword,
177
178
  le as ApFormList,
178
179
  se as ApFormModalForm,
179
- ge as ApFormProvider,
180
+ Se as ApFormProvider,
180
181
  de as ApFormSearchForm,
181
182
  ce as ApFormSet,
182
183
  tt as ApGroupSearch,
183
- Sr as ApImage,
184
+ gr as ApImage,
184
185
  ho as ApInfoLayout,
185
186
  hr as ApInputRadio,
186
187
  Mr as ApLabel,
187
188
  Pr as ApLabelGroup,
188
- yr as ApLadder,
189
- Wo as ApList,
189
+ Rr as ApLadder,
190
+ Vo as ApList,
190
191
  Uo as ApModal,
191
192
  Yr as ApNeedNameKeyDefault,
192
193
  pt as ApPopoverSelect,
@@ -198,7 +199,7 @@ export {
198
199
  ct as ApTable,
199
200
  Xo as ApTableModal,
200
201
  Co as ApTag,
201
- So as ApTagGroup,
202
+ go as ApTagGroup,
202
203
  Ur as ApTitle,
203
204
  Jo as ApTransformDataHelper,
204
205
  Eo as ApUpload,
@@ -212,25 +213,26 @@ export {
212
213
  no as DictCode,
213
214
  It as EditableTable,
214
215
  bt as EditableTableFormItem,
215
- Gt as InternalScrollBar,
216
+ Pt as InternalScrollBar,
216
217
  Mo as NeedNameKeyDefault,
217
- gt as ScrollBar,
218
+ Gt as ScrollBar,
218
219
  To as WorkOrderModal,
219
220
  eo as adminToken,
220
221
  oo as aplusToken,
221
222
  b as buildLocaleContext,
222
223
  C as buildTranslator,
223
- Vr as computedRecords,
224
+ Hr as computedRecords,
224
225
  n as configProviderContextKey,
225
226
  d as configProviderProps,
226
227
  Cr as convertExportField,
227
228
  Fo as createWorkOrderModal,
228
229
  a as default,
229
230
  G as defaultNamespace,
231
+ St as ensureRangeValue,
230
232
  $r as flattenColumns,
231
233
  jr as formatDataIndex,
232
234
  qr as formatNumber,
233
- y as globalConfigCached,
235
+ R as globalConfigCached,
234
236
  Tr as handleExportDownload,
235
237
  c as keysOf,
236
238
  io as langMap,
@@ -239,18 +241,18 @@ export {
239
241
  M as namespaceContextKey,
240
242
  l as pathMap,
241
243
  F as provideGlobalConfig,
242
- S as translate,
243
- Lt as useControllableValue,
244
+ g as translate,
245
+ Rt as useControllableValue,
244
246
  P as useGetDerivedNamespace,
245
247
  I as useGlobalConfig,
246
- g as useLocale,
247
- yt as useManualRef,
248
- Pt as useMessage,
248
+ S as useLocale,
249
+ wt as useManualRef,
250
+ Lt as useMessage,
249
251
  E as useNamespace,
250
- Wr as usePageListApTable,
252
+ Vr as usePageListApTable,
251
253
  Zo as useTableModal,
252
254
  nt as useTablePaging,
253
- zr as useTableRefresh,
255
+ _r as useTableRefresh,
254
256
  or as useTableSelectModal,
255
- wt as useThrottleRef
257
+ vt as useThrottleRef
256
258
  };
@@ -1,12 +1,11 @@
1
- import { defineComponent as O, ref as u, computed as U, onMounted as W, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as d, Transition as z, withCtx as v, withDirectives as V, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as R, renderList as _, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
1
+ import { defineComponent as I, ref as d, computed as M, onMounted as O, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as u, Transition as W, withCtx as v, withDirectives as g, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as z, renderList as R, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
3
  import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
5
  import { Tooltip as w, TypographyText as J } from "@aplus-frontend/antdv";
6
- import { debounce as K } from "lodash-unified";
7
- import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
9
- const X = ["onClick"], re = /* @__PURE__ */ O({
6
+ import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { ApFieldText as P } from "../../ap-field/text/index.mjs";
8
+ const Q = ["onClick"], ae = /* @__PURE__ */ I({
10
9
  __name: "select-layout",
11
10
  props: {
12
11
  title: {},
@@ -17,45 +16,42 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
17
16
  },
18
17
  emits: ["onSelect", "afterEnter", "afterLeave"],
19
18
  setup(A, { emit: B }) {
20
- const { b: h, be: y, bem: i } = P("ap-select-layout"), o = A, C = B, g = u(), f = u(o.defaultFold), S = u(!o.defaultFold), T = u(), b = u(), k = u(), c = u(o.defaultValue), L = () => {
19
+ const { b: h, be: y, bem: i } = K("ap-select-layout"), o = A, C = B, S = d(), f = d(o.defaultFold), k = d(!o.defaultFold), T = d(), b = d(), F = d(), c = d(o.defaultValue), L = () => {
21
20
  f.value = !f.value, T.value = !1, b.value = !1;
22
- }, F = (l) => {
23
- k.value = l, C("onSelect", l);
24
- }, q = K((l) => {
25
- var e;
26
- c.value = (e = l.target) == null ? void 0 : e.value;
27
- }, 500), D = U(() => {
28
- var l;
29
- return (l = g.value) == null ? void 0 : l.filter((e) => {
30
- var r, n;
31
- return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (n = e == null ? void 0 : e.name) == null ? void 0 : n.includes(c.value);
21
+ }, V = (n) => {
22
+ F.value = n, C("onSelect", n);
23
+ }, U = M(() => {
24
+ var n;
25
+ return (n = S.value) == null ? void 0 : n.filter((e) => {
26
+ var r, l;
27
+ return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (l = e == null ? void 0 : e.name) == null ? void 0 : l.includes(c.value);
32
28
  });
33
- }), I = (l) => {
34
- S.value = !0, C("afterEnter", l);
35
- }, M = (l) => {
36
- S.value = !1, C("afterLeave", l);
29
+ }), q = (n) => {
30
+ k.value = !0, C("afterEnter", n);
31
+ }, D = (n) => {
32
+ k.value = !1, C("afterLeave", n);
37
33
  };
38
- return W(() => {
39
- o.request().then((l) => {
34
+ return O(() => {
35
+ o.request().then((n) => {
40
36
  var r;
41
- g.value = l;
42
- let e = (r = g.value) == null ? void 0 : r.filter(
43
- (n) => n.name.includes(c.value)
37
+ S.value = n;
38
+ let e = (r = S.value) == null ? void 0 : r.filter(
39
+ (l) => l.name.includes(c.value)
44
40
  );
45
- F(e == null ? void 0 : e[0]);
41
+ V(e == null ? void 0 : e[0]);
46
42
  });
47
- }), (l, e) => {
43
+ }), (n, e) => {
48
44
  var r;
49
45
  return p(), m("div", {
50
46
  class: a(t(h)())
51
47
  }, [
52
- d(z, {
48
+ u(W, {
53
49
  mode: "out-in",
54
- onAfterEnter: I,
55
- onAfterLeave: M
50
+ onAfterEnter: q,
51
+ onAfterLeave: D
56
52
  }, {
57
53
  default: v(() => [
58
- V(s("div", {
54
+ g(s("div", {
59
55
  class: a(t(h)("side"))
60
56
  }, [
61
57
  s("div", {
@@ -65,15 +61,15 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
65
61
  s("div", {
66
62
  class: a(t(i)("side", "header", "imgWrap"))
67
63
  }, [
68
- d(t(w), {
64
+ u(t(w), {
69
65
  open: T.value,
70
- "onUpdate:open": e[0] || (e[0] = (n) => T.value = n)
66
+ "onUpdate:open": e[0] || (e[0] = (l) => T.value = l)
71
67
  }, {
72
- title: v(() => e[2] || (e[2] = [
68
+ title: v(() => e[3] || (e[3] = [
73
69
  $("收起")
74
70
  ])),
75
71
  default: v(() => [
76
- d(t(G), { onClick: L })
72
+ u(t(G), { onClick: L })
77
73
  ]),
78
74
  _: 1
79
75
  }, 8, ["open"])
@@ -85,28 +81,28 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
85
81
  s("div", {
86
82
  class: a(t(i)("side", "body", "search"))
87
83
  }, [
88
- d(t(Q), {
89
- placeholder: "请输入",
84
+ u(t(P), {
90
85
  value: c.value,
91
- onChange: t(q)
92
- }, null, 8, ["value", "onChange"])
86
+ "onUpdate:value": e[1] || (e[1] = (l) => c.value = l),
87
+ placeholder: "请输入"
88
+ }, null, 8, ["value"])
93
89
  ], 2),
94
90
  s("div", {
95
91
  class: a(t(i)("side", "body", "scroll"))
96
92
  }, [
97
- (p(!0), m(R, null, _(D.value, (n) => V((p(), m("div", {
98
- key: n.value,
99
- class: a(`${t(i)("side", "body", "scroll-item")} ${k.value === n ? "active" : ""}`),
100
- onClick: (Y) => F(n)
93
+ (p(!0), m(z, null, R(U.value, (l) => g((p(), m("div", {
94
+ key: l.value,
95
+ class: a(`${t(i)("side", "body", "scroll-item")} ${F.value === l ? "active" : ""}`),
96
+ onClick: (X) => V(l)
101
97
  }, [
102
- x(l.$slots, "itemRender", { item: n }, () => [
103
- d(t(J), {
104
- ellipsis: { tooltip: n.name },
105
- content: `${n.name}`
98
+ x(n.$slots, "itemRender", { item: l }, () => [
99
+ u(t(J), {
100
+ ellipsis: { tooltip: l.name },
101
+ content: `${l.name}`
106
102
  }, null, 8, ["ellipsis", "content"])
107
103
  ])
108
- ], 10, X)), [
109
- [N, S.value]
104
+ ], 10, Q)), [
105
+ [N, k.value]
110
106
  ])), 128))
111
107
  ], 2)
112
108
  ], 2)
@@ -126,29 +122,29 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
126
122
  key: 0,
127
123
  class: a(t(i)("content", "header", "imgWrap"))
128
124
  }, [
129
- d(t(w), {
125
+ u(t(w), {
130
126
  open: b.value,
131
- "onUpdate:open": e[1] || (e[1] = (n) => b.value = n)
127
+ "onUpdate:open": e[2] || (e[2] = (l) => b.value = l)
132
128
  }, {
133
- title: v(() => e[3] || (e[3] = [
129
+ title: v(() => e[4] || (e[4] = [
134
130
  $("展开")
135
131
  ])),
136
132
  default: v(() => [
137
- d(t(H), { onClick: L })
133
+ u(t(H), { onClick: L })
138
134
  ]),
139
135
  _: 1
140
136
  }, 8, ["open"])
141
137
  ], 2)) : j("", !0),
142
138
  s("div", {
143
139
  class: a(t(i)("content", "header", "title"))
144
- }, E((r = k.value) == null ? void 0 : r.name), 3)
140
+ }, E((r = F.value) == null ? void 0 : r.name), 3)
145
141
  ], 2),
146
- x(l.$slots, "default")
142
+ x(n.$slots, "default")
147
143
  ], 2)
148
144
  ], 2);
149
145
  };
150
146
  }
151
147
  });
152
148
  export {
153
- re as default
149
+ ae as default
154
150
  };
@@ -2,7 +2,6 @@ import { ApSummaryProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApSummaryProps> & Readonly<{}>, {
4
4
  size: "middle" | "small";
5
- summaryTitle: string;
6
5
  hasSelect: boolean;
7
6
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
7
  export default _default;
@@ -1,19 +1,18 @@
1
- import { defineComponent as I, computed as L, createVNode as N, Fragment as y, openBlock as m, createBlock as i, unref as r, normalizeClass as f, withCtx as x, createElementBlock as w, renderList as z, normalizeStyle as B, resolveDynamicComponent as R } from "vue";
2
- import { isNil as A, get as c } from "lodash-unified";
3
- import { TableSummaryRow as D, TableSummaryCell as F } from "@aplus-frontend/antdv";
4
- import { flattenColumns as V, formatDataIndex as u } from "./utils.mjs";
1
+ import { defineComponent as w, computed as y, createVNode as z, Fragment as f, openBlock as m, createBlock as i, unref as r, normalizeClass as x, withCtx as k, createElementBlock as B, renderList as R, normalizeStyle as A, resolveDynamicComponent as D } from "vue";
2
+ import { isNil as F, get as c } from "lodash-unified";
3
+ import { TableSummaryRow as V, TableSummaryCell as E } from "@aplus-frontend/antdv";
4
+ import { flattenColumns as P, formatDataIndex as u } from "./utils.mjs";
5
5
  import "../../config-provider/index.mjs";
6
- import { isNumeric as E, toThousand as P, toFixed as $ } from "@aplus-frontend/utils";
7
- import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
8
- const Q = /* @__PURE__ */ I({
6
+ import { isNumeric as $, toThousand as j, toFixed as q } from "@aplus-frontend/utils";
7
+ import { useLocale as G } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
9
+ const Y = /* @__PURE__ */ w({
9
10
  name: "ApSummary",
10
11
  __name: "ap-summary",
11
12
  props: {
12
13
  data: {},
13
14
  columns: {},
14
- summaryTitle: {
15
- default: "合计"
16
- },
15
+ summaryTitle: {},
17
16
  hasSelect: {
18
17
  type: Boolean,
19
18
  default: !0
@@ -22,14 +21,16 @@ const Q = /* @__PURE__ */ I({
22
21
  default: "middle"
23
22
  }
24
23
  },
25
- setup(k) {
26
- const n = k, h = (a) => a === 0, T = (a, o) => {
24
+ setup(h) {
25
+ const n = h, {
26
+ t: T
27
+ } = G(), S = y(() => n.summaryTitle ?? T("ap.apSummary.total")), C = (a) => a === 0, _ = (a, o) => {
27
28
  var s;
28
- if (!E(a) || o.valueType !== "number")
29
+ if (!$(a) || o.valueType !== "number")
29
30
  return a;
30
31
  const e = (s = o.fieldProps) == null ? void 0 : s.field, t = (e == null ? void 0 : e.precision) || 0;
31
- return (A(e == null ? void 0 : e.thousands) ? !0 : e == null ? void 0 : e.thousands) ? P(a, t) : $(a, t);
32
- }, C = L(() => {
32
+ return (F(e == null ? void 0 : e.thousands) ? !0 : e == null ? void 0 : e.thousands) ? j(a, t) : q(a, t);
33
+ }, g = y(() => {
33
34
  let a = [];
34
35
  n.hasSelect && a.push({
35
36
  key: "select",
@@ -37,17 +38,17 @@ const Q = /* @__PURE__ */ I({
37
38
  align: "left",
38
39
  value: ""
39
40
  });
40
- const e = V(n.columns).map((t, d) => {
41
+ const e = P(n.columns).map((t, d) => {
41
42
  let s;
42
- const b = c(n.data, u(t.dataIndex || t.key));
43
- if (h(d))
44
- s = n.summaryTitle;
45
- else if (b && (t.customRender || t.renderText)) {
46
- const p = c(n.data, u(t.dataIndex || t.key)), v = u(t.dataIndex || t.key), l = t.customRender || t.renderText;
43
+ const L = c(n.data, u(t.dataIndex || t.key));
44
+ if (C(d))
45
+ s = S.value;
46
+ else if (L && (t.customRender || t.renderText)) {
47
+ const p = c(n.data, u(t.dataIndex || t.key)), N = u(t.dataIndex || t.key), l = t.customRender || t.renderText;
47
48
  s = l == null ? void 0 : l({
48
49
  value: p,
49
50
  record: {
50
- [v]: p
51
+ [N]: p
51
52
  },
52
53
  text: void 0,
53
54
  index: 0,
@@ -55,32 +56,32 @@ const Q = /* @__PURE__ */ I({
55
56
  column: {}
56
57
  });
57
58
  } else
58
- s = T(c(n.data, u(t.dataIndex || t.key)), t);
59
+ s = _(c(n.data, u(t.dataIndex || t.key)), t);
59
60
  return {
60
61
  key: t.key,
61
62
  rowSpan: 1,
62
63
  align: t.align,
63
- value: N(y, null, [s])
64
+ value: z(f, null, [s])
64
65
  };
65
66
  });
66
67
  return a.concat(e);
67
68
  }), {
68
- b: S,
69
- e: _,
70
- em: g
71
- } = j("ap-summary");
72
- return (a, o) => (m(), i(r(D), {
73
- class: f(r(S)())
69
+ b: v,
70
+ e: b,
71
+ em: I
72
+ } = H("ap-summary");
73
+ return (a, o) => (m(), i(r(V), {
74
+ class: x(r(v)())
74
75
  }, {
75
- default: x(() => [(m(!0), w(y, null, z(C.value, (e, t) => (m(), i(r(F), {
76
+ default: k(() => [(m(!0), B(f, null, R(g.value, (e, t) => (m(), i(r(E), {
76
77
  key: e.key,
77
- class: f(`${n.size === "small" ? r(g)("item", "small") : r(_)("item")}`),
78
+ class: x(`${n.size === "small" ? r(I)("item", "small") : r(b)("item")}`),
78
79
  index: t,
79
- style: B({
80
+ style: A({
80
81
  textAlign: e.align
81
82
  })
82
83
  }, {
83
- default: x(() => [(m(), i(R(e.value)))]),
84
+ default: k(() => [(m(), i(D(e.value)))]),
84
85
  _: 2
85
86
  }, 1032, ["class", "index", "style"]))), 128))]),
86
87
  _: 1
@@ -88,5 +89,5 @@ const Q = /* @__PURE__ */ I({
88
89
  }
89
90
  });
90
91
  export {
91
- Q as default
92
+ Y as default
92
93
  };
@@ -5,7 +5,6 @@ export * from './utils';
5
5
  declare const ApSummary: {
6
6
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApSummaryProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
7
7
  size: "middle" | "small";
8
- summaryTitle: string;
9
8
  hasSelect: boolean;
10
9
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
11
10
  P: {};
@@ -16,7 +15,6 @@ declare const ApSummary: {
16
15
  Defaults: {};
17
16
  }, Readonly< ApSummaryProps> & Readonly<{}>, {}, {}, {}, {}, {
18
17
  size: "middle" | "small";
19
- summaryTitle: string;
20
18
  hasSelect: boolean;
21
19
  }>;
22
20
  __isFragment?: never;
@@ -24,7 +22,6 @@ declare const ApSummary: {
24
22
  __isSuspense?: never;
25
23
  } & ComponentOptionsBase<Readonly< ApSummaryProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
26
24
  size: "middle" | "small";
27
- summaryTitle: string;
28
25
  hasSelect: boolean;
29
26
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
30
27
  $props: {
@@ -1,6 +1,14 @@
1
- import { ApFormItemBatchInputProps } from './interface';
1
+ import { ApFormItemBatchInputProps, BatchInputGroupProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
4
4
  trim: boolean;
5
+ disabled: boolean;
6
+ bordered: boolean;
7
+ field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
8
+ colon: boolean;
9
+ required: boolean;
10
+ hasFeedback: boolean;
11
+ autoLink: boolean;
12
+ validateFirst: boolean;
5
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
14
  export default _default;