@aplus-frontend/ui 0.1.23 → 0.1.24

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 (69) hide show
  1. package/es/index.mjs +66 -63
  2. package/es/src/ap-download/ap-download.vue.d.ts +0 -3
  3. package/es/src/ap-download/ap-download.vue.mjs +10 -10
  4. package/es/src/ap-field/number/index.vue.mjs +20 -19
  5. package/es/src/ap-form/ap-form-item.vue.mjs +27 -25
  6. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  7. package/es/src/ap-form/ap-form.vue2.mjs +18 -18
  8. package/es/src/ap-form/interface.d.ts +2 -2
  9. package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
  10. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  11. package/es/src/ap-table/utils.mjs +1 -1
  12. package/es/src/business/ap-attachment/ApAttachment.d.ts +97 -0
  13. package/es/src/business/ap-attachment/ApAttachment.mjs +82 -0
  14. package/es/src/business/ap-attachment/constans.d.ts +44 -0
  15. package/es/src/business/ap-attachment/constans.mjs +42 -0
  16. package/es/src/business/ap-attachment/index.d.ts +3 -0
  17. package/es/src/business/ap-attachment/interface.d.ts +13 -0
  18. package/es/src/business/ap-attachment/style.css +62 -0
  19. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
  20. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +25 -22
  21. package/es/src/business/ap-input-radio/interface.d.ts +8 -2
  22. package/es/src/business/hooks/index.d.ts +1 -0
  23. package/es/src/business/hooks/index.mjs +4 -0
  24. package/es/src/business/hooks/usePageListApTable.d.ts +29 -0
  25. package/es/src/business/hooks/usePageListApTable.mjs +67 -0
  26. package/es/src/business/index.d.ts +123 -3
  27. package/es/src/business/index.mjs +29 -26
  28. package/es/src/editable-table/form-item.vue.mjs +80 -77
  29. package/es/src/editable-table/hooks/use-get-columns.mjs +30 -30
  30. package/es/src/editable-table/interface.d.ts +2 -2
  31. package/es/src/index.mjs +204 -201
  32. package/es/src/locale/lang/en.mjs +4 -0
  33. package/es/src/locale/lang/zh-cn.mjs +4 -0
  34. package/es/src/theme/ap-attachment/ap-attachment.css +62 -0
  35. package/lib/index.js +1 -1
  36. package/lib/src/ap-download/ap-download.vue.d.ts +0 -3
  37. package/lib/src/ap-download/ap-download.vue.js +1 -1
  38. package/lib/src/ap-field/number/index.vue.js +1 -1
  39. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  40. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  41. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  42. package/lib/src/ap-form/interface.d.ts +2 -2
  43. package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
  44. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  45. package/lib/src/ap-table/utils.js +1 -1
  46. package/lib/src/business/ap-attachment/ApAttachment.d.ts +97 -0
  47. package/lib/src/business/ap-attachment/ApAttachment.js +1 -0
  48. package/lib/src/business/ap-attachment/constans.d.ts +44 -0
  49. package/lib/src/business/ap-attachment/constans.js +1 -0
  50. package/lib/src/business/ap-attachment/index.d.ts +3 -0
  51. package/lib/src/business/ap-attachment/interface.d.ts +13 -0
  52. package/lib/src/business/ap-attachment/style.css +62 -0
  53. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +2 -0
  54. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  55. package/lib/src/business/ap-input-radio/interface.d.ts +8 -2
  56. package/lib/src/business/hooks/index.d.ts +1 -0
  57. package/lib/src/business/hooks/index.js +1 -0
  58. package/lib/src/business/hooks/usePageListApTable.d.ts +29 -0
  59. package/lib/src/business/hooks/usePageListApTable.js +1 -0
  60. package/lib/src/business/index.d.ts +123 -3
  61. package/lib/src/business/index.js +1 -1
  62. package/lib/src/editable-table/form-item.vue.js +1 -1
  63. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  64. package/lib/src/editable-table/interface.d.ts +2 -2
  65. package/lib/src/index.js +1 -1
  66. package/lib/src/locale/lang/en.js +1 -1
  67. package/lib/src/locale/lang/zh-cn.js +1 -1
  68. package/lib/src/theme/ap-attachment/ap-attachment.css +62 -0
  69. package/package.json +2 -2
package/es/index.mjs CHANGED
@@ -4,10 +4,10 @@ import { Icon as l, SvgIcon as s } from "./src/icon/index.mjs";
4
4
  import { configProviderProps as x } from "./src/config-provider/config-provider-props.mjs";
5
5
  import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
7
- import { buildLocaleContext as S, buildTranslator as b, localeContextKey as I, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
7
+ import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
8
  import { defaultNamespace as h, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
9
9
  import { ConfigProvider as B, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
10
- import { APConfigProvider as L } from "./src/config-provider/index.mjs";
10
+ import { APConfigProvider as k } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
12
12
  import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
13
13
  import { IconPicker as H } from "./src/icon-picker/index.mjs";
@@ -20,13 +20,13 @@ import { useDescription as ue } from "./src/description/use-description.mjs";
20
20
  import { Description as Ae } from "./src/description/index.mjs";
21
21
  import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-register.mjs";
22
22
  import { useForm as Ce } from "./src/pro-form/hooks/use-form.mjs";
23
- import { isComponentFormSchema as be, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
24
- import { Field as De } from "./src/pro-form/index.mjs";
23
+ import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
24
+ import { Field as Pe } from "./src/pro-form/index.mjs";
25
25
  import { default as he } from "./src/pro-form/components/api-cascader.vue.mjs";
26
26
  import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
27
  import { default as ve } from "./src/pro-form/components/api-select.vue.mjs";
28
28
  import { default as we } from "./src/pro-form/components/api-transfer.vue.mjs";
29
- import { default as Le } from "./src/pro-form/components/api-tree.vue.mjs";
29
+ import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
31
31
  import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
32
32
  import { default as Ye } from "./src/pro-form/components/api-tree-select.vue.mjs";
@@ -44,14 +44,14 @@ import { CountdownButton as xo, CountdownInput as io } from "./src/count-down/in
44
44
  import { createPrompt as no } from "./src/prompt/index.mjs";
45
45
  import { Dropdown as co } from "./src/dropdown/index.mjs";
46
46
  import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
47
- import { default as So } from "./src/pro-table/components/table-action.vue.mjs";
47
+ import { default as bo } from "./src/pro-table/components/table-action.vue.mjs";
48
48
  import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
49
- import { default as Do } from "./src/pro-table/components/table-image.vue.mjs";
49
+ import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
50
50
  import { useTable as ho } from "./src/pro-table/hooks/use-table.mjs";
51
51
  import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
52
52
  import { default as vo } from "./src/ap-form/items/text-area/index.vue.mjs";
53
53
  import { default as wo } from "./src/ap-form/items/number/index.vue.mjs";
54
- import { default as Lo } from "./src/ap-form/items/date/index.vue.mjs";
54
+ import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
56
56
  import { default as Ko } from "./src/ap-form/items/radio/index.vue.mjs";
57
57
  import { default as Yo } from "./src/ap-form/items/select/index.vue.mjs";
@@ -71,14 +71,14 @@ import { default as ir } from "./src/ap-field/date/index.vue.mjs";
71
71
  import { default as nr } from "./src/ap-field/number/index.vue.mjs";
72
72
  import { default as cr } from "./src/ap-field/radio/index.vue.mjs";
73
73
  import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
74
- import { default as Sr } from "./src/ap-field/text-area/index.vue.mjs";
74
+ import { default as br } from "./src/ap-field/text-area/index.vue.mjs";
75
75
  import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
76
- import { default as Dr } from "./src/ap-field/select/index.vue.mjs";
76
+ import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
77
77
  import { default as hr } from "./src/ap-field/text/password.vue.mjs";
78
78
  import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
79
79
  import { default as vr } from "./src/ap-field/segmented/index.vue.mjs";
80
80
  import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
81
- import { adminToken as Lr, aplusToken as Nr } from "./src/design-token/index.mjs";
81
+ import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
82
82
  import { ApActionItem as Er } from "./src/ap-action/index.mjs";
83
83
  import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
84
84
  import { default as Hr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
@@ -98,22 +98,23 @@ import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
98
98
  import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
99
99
  import { ApDownLoadNeedNameKeyDefault as Tt } from "./src/ap-download/interface.mjs";
100
100
  import { default as Ct } from "./src/ap-download/ap-download.vue.mjs";
101
- import { CheckCard as bt } from "./src/check-card/index.mjs";
101
+ import { CheckCard as St } from "./src/check-card/index.mjs";
102
102
  import { default as gt } from "./src/check-card/group.vue.mjs";
103
- import { ApModal as Pt } from "./src/ap-modal/index.mjs";
103
+ import { ApModal as Dt } from "./src/ap-modal/index.mjs";
104
104
  import { default as Mt } from "./src/ap-list/index.vue.mjs";
105
- import { default as Gt } from "./src/business/ap-table-modal/index.mjs";
106
- import { useTableModal as Bt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
107
- import { useTableSelectModal as kt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
108
- import { ApBatchAction as Nt, ApBatchActionGroup as yt, ApExpandAlert as Et, ApExportGroup as Kt, ApImage as Xt, ApInputRadio as Yt, ApLabel as Ht, ApLabelGroup as Ot, ApSelectLayout as Wt, ApStatus as zt, ApStatusGroup as Ut, ApTitle as Vt } from "./src/business/index.mjs";
109
- import { ApTransformDataHelper as jt } from "./src/utils/ap-trans-data/index.mjs";
110
- import { useTablePaging as Jt } from "./src/ap-table/hooks/use-table-paging.mjs";
111
- import { default as Zt } from "./src/ap-table/ap-table.vue.mjs";
112
- import { default as ea } from "./src/editable-table/index.vue.mjs";
113
- import { default as ra } from "./src/editable-table/form-item.vue.mjs";
114
- import { default as aa } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
115
- import { useMessage as fa } from "./src/hooks/useMessage.mjs";
116
- import { useControllableValue as la } from "./src/hooks/useControllableValue.mjs";
105
+ import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
106
+ import { default as Bt } from "./src/business/ap-table-modal/index.mjs";
107
+ import { useTableModal as Lt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
108
+ import { useTableSelectModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
109
+ import { ApAttachment as Et, ApBatchAction as Kt, ApBatchActionGroup as Xt, ApExpandAlert as Yt, ApExportGroup as Ht, ApImage as Ot, ApInputRadio as Wt, ApLabel as zt, ApLabelGroup as Ut, ApSelectLayout as Vt, ApStatus as $t, ApStatusGroup as jt, ApTitle as qt } from "./src/business/index.mjs";
110
+ import { ApTransformDataHelper as Qt } from "./src/utils/ap-trans-data/index.mjs";
111
+ import { useTablePaging as _t } from "./src/ap-table/hooks/use-table-paging.mjs";
112
+ import { default as oa } from "./src/ap-table/ap-table.vue.mjs";
113
+ import { default as ta } from "./src/editable-table/index.vue.mjs";
114
+ import { default as pa } from "./src/editable-table/form-item.vue.mjs";
115
+ import { default as ma } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
116
+ import { useMessage as sa } from "./src/hooks/useMessage.mjs";
117
+ import { useControllableValue as xa } from "./src/hooks/useControllableValue.mjs";
117
118
  const p = {
118
119
  install: (r) => {
119
120
  for (const t in o) {
@@ -123,21 +124,22 @@ const p = {
123
124
  }
124
125
  };
125
126
  export {
126
- L as APConfigProvider,
127
+ k as APConfigProvider,
127
128
  Ur as ApActionGroup,
128
129
  Er as ApActionItem,
129
130
  Wr as ApActionItemDropdown,
130
131
  Xr as ApActionItemModal,
131
132
  Hr as ApActionItemPopconfirm,
132
- Nt as ApBatchAction,
133
- yt as ApBatchActionGroup,
133
+ Et as ApAttachment,
134
+ Kt as ApBatchAction,
135
+ Xt as ApBatchActionGroup,
134
136
  Qr as ApCustomColumn,
135
137
  _r as ApCustomSelect,
136
- aa as ApDescriptions,
138
+ ma as ApDescriptions,
137
139
  Tt as ApDownLoadNeedNameKeyDefault,
138
140
  Ct as ApDownload,
139
- Et as ApExpandAlert,
140
- Kt as ApExportGroup,
141
+ Yt as ApExpandAlert,
142
+ Ht as ApExportGroup,
141
143
  fr as ApField,
142
144
  dr as ApFieldCheckbox,
143
145
  ir as ApFieldDate,
@@ -147,15 +149,15 @@ export {
147
149
  cr as ApFieldRadio,
148
150
  wr as ApFieldRate,
149
151
  vr as ApFieldSegmented,
150
- Dr as ApFieldSelect,
152
+ Pr as ApFieldSelect,
151
153
  Rr as ApFieldSlider,
152
154
  Fr as ApFieldSwitch,
153
155
  lr as ApFieldText,
154
- Sr as ApFieldTextArea,
156
+ br as ApFieldTextArea,
155
157
  jo as ApForm,
156
158
  Jo as ApFormItem,
157
159
  zo as ApFormItemCheckbox,
158
- Lo as ApFormItemDate,
160
+ ko as ApFormItemDate,
159
161
  yo as ApFormItemDateRange,
160
162
  Zo as ApFormItemGroup,
161
163
  wo as ApFormItemNumber,
@@ -168,35 +170,35 @@ export {
168
170
  er as ApFormList,
169
171
  ar as ApFormModalForm,
170
172
  rr as ApFormSearchForm,
171
- Xt as ApImage,
173
+ Ot as ApImage,
172
174
  xt as ApInfoLayout,
173
- Yt as ApInputRadio,
174
- Ht as ApLabel,
175
- Ot as ApLabelGroup,
175
+ Wt as ApInputRadio,
176
+ zt as ApLabel,
177
+ Ut as ApLabelGroup,
176
178
  Mt as ApList,
177
- Pt as ApModal,
178
- Wt as ApSelectLayout,
179
- zt as ApStatus,
180
- Ut as ApStatusGroup,
181
- Zt as ApTable,
182
- Gt as ApTableModal,
179
+ Dt as ApModal,
180
+ Vt as ApSelectLayout,
181
+ $t as ApStatus,
182
+ jt as ApStatusGroup,
183
+ oa as ApTable,
184
+ Bt as ApTableModal,
183
185
  mt as ApTag,
184
186
  st as ApTagGroup,
185
- Vt as ApTitle,
186
- jt as ApTransformDataHelper,
187
+ qt as ApTitle,
188
+ Qt as ApTransformDataHelper,
187
189
  At as ApUpload,
188
190
  he as ApiCascader,
189
191
  Re as ApiRadioGroup,
190
192
  ve as ApiSelect,
191
193
  we as ApiTransfer,
192
- Le as ApiTree,
194
+ ke as ApiTree,
193
195
  Ye as ApiTreeSelect,
194
196
  Je as BaseButton,
195
197
  po as BaseModal,
196
198
  $ as BasicArrow,
197
199
  j as BasicHelp,
198
200
  q as BasicTitle,
199
- bt as CheckCard,
201
+ St as CheckCard,
200
202
  gt as CheckCardGroup,
201
203
  K as CollapseContainer,
202
204
  Q as CollapseTransition,
@@ -209,12 +211,12 @@ export {
209
211
  ot as DictCode,
210
212
  co as Dropdown,
211
213
  Io as EditTableHeaderIcon,
212
- ea as EditableTable,
213
- ra as EditableTableFormItem,
214
+ ta as EditableTable,
215
+ pa as EditableTableFormItem,
214
216
  _ as ExpandTransition,
215
217
  ee as ExpandXTransition,
216
218
  oe as FadeTransition,
217
- De as Field,
219
+ Pe as Field,
218
220
  l as Icon,
219
221
  H as IconPicker,
220
222
  Ve as ModalButton,
@@ -239,13 +241,13 @@ export {
239
241
  xe as SlideYTransition,
240
242
  Ze as StrengthMeter,
241
243
  s as SvgIcon,
242
- So as TableAction,
243
- Do as TableImg,
244
+ bo as TableAction,
245
+ Po as TableImg,
244
246
  pt as WorkOrderModal,
245
- Lr as adminToken,
247
+ kr as adminToken,
246
248
  Nr as aplusToken,
247
- S as buildLocaleContext,
248
- b as buildTranslator,
249
+ b as buildLocaleContext,
250
+ S as buildTranslator,
249
251
  u as configProviderContextKey,
250
252
  x as configProviderProps,
251
253
  no as createPrompt,
@@ -255,7 +257,7 @@ export {
255
257
  U as en,
256
258
  $r as generateTableList,
257
259
  w as globalConfigCached,
258
- be as isComponentFormSchema,
260
+ Se as isComponentFormSchema,
259
261
  Ie as isSlotFormSchema,
260
262
  c as keysOf,
261
263
  I as localeContextKey,
@@ -265,20 +267,21 @@ export {
265
267
  g as translate,
266
268
  qr as useCacheColumnSetting,
267
269
  Te as useComponentRegister,
268
- la as useControllableValue,
270
+ xa as useControllableValue,
269
271
  ue as useDescription,
270
272
  Ce as useForm,
271
273
  R as useGetDerivedNamespace,
272
274
  F as useGlobalConfig,
273
- D as useLocale,
274
- fa as useMessage,
275
+ P as useLocale,
276
+ sa as useMessage,
275
277
  ro as useModal,
276
278
  eo as useModalContext,
277
279
  to as useModalInner,
278
280
  G as useNamespace,
281
+ Gt as usePageListApTable,
279
282
  ho as useTable,
280
- Bt as useTableModal,
281
- Jt as useTablePaging,
282
- kt as useTableSelectModal,
283
+ Lt as useTableModal,
284
+ _t as useTablePaging,
285
+ Nt as useTableSelectModal,
283
286
  W as zhCn
284
287
  };
@@ -10,15 +10,12 @@ declare function __VLS_template(): {
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps<Record<string, string>>>, {
12
12
  size: string;
13
- color: string;
14
13
  disabled: boolean;
15
14
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApDownLoadProps<Record<string, string>>>, {
16
15
  size: string;
17
- color: string;
18
16
  disabled: boolean;
19
17
  }>>>, {
20
18
  size: "small" | "middle" | "large";
21
- color: string;
22
19
  disabled: boolean;
23
20
  }, {}>;
24
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, useSlots as b, computed as s, unref as t, openBlock as n, createElementBlock as a, normalizeStyle as O, normalizeClass as l, createElementVNode as r, renderSlot as h, createCommentVNode as A, toDisplayString as k } from "vue";
1
+ import { defineComponent as b, useSlots as F, computed as s, unref as t, openBlock as n, createElementBlock as a, normalizeStyle as O, normalizeClass as l, createElementVNode as r, renderSlot as h, createCommentVNode as A, toDisplayString as k } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import { useOssInit as v } from "./hooks/index.mjs";
4
4
  import "./style/ap-download.css";
@@ -9,12 +9,12 @@ import { useGlobalConfig as c } from "../config-provider/hooks/use-global-config
9
9
  const U = {
10
10
  key: 0,
11
11
  class: "icon"
12
- }, D = { class: "text" }, H = /* @__PURE__ */ S({
12
+ }, D = { class: "text" }, H = /* @__PURE__ */ b({
13
13
  name: "ApDownload",
14
14
  __name: "ap-download",
15
15
  props: {
16
16
  text: {},
17
- color: { default: "#0070FF" },
17
+ color: {},
18
18
  size: { default: "middle" },
19
19
  disabled: { type: Boolean, default: !1 },
20
20
  fileName: {},
@@ -22,26 +22,26 @@ const U = {
22
22
  getOssAccess: {}
23
23
  },
24
24
  setup(i) {
25
- const { lang: p } = I(), d = b(), m = s(() => p.value === "zh-cn" ? "zh_CN" : "en_US"), u = c("uiMode"), e = i, f = c("apUpload"), g = s(() => e.disabled), C = s(() => u.value === "aplus" ? "#0070FF" : "#1890FF"), _ = s(() => e.size), { wrapperStyle: y, getWrapperClass: F, getInnerWrapperClass: w } = x(
25
+ const { lang: p } = I(), d = F(), m = s(() => p.value === "zh-cn" ? "zh_CN" : "en_US"), u = c("uiMode"), e = i, f = c("apUpload"), g = s(() => e.disabled), C = s(() => e.color ? e.color : u.value === "aplus" ? "#0070FF" : "#1890FF"), _ = s(() => e.size), { wrapperStyle: y, getWrapperClass: w, getInnerWrapperClass: z } = x(
26
26
  C,
27
27
  _,
28
28
  g
29
- ), z = s(() => {
29
+ ), N = s(() => {
30
30
  var o;
31
31
  return e.getOssAccess || ((o = f.value) == null ? void 0 : o.getOssAccess);
32
- }), N = async () => {
32
+ }), S = async () => {
33
33
  e.disabled || await (await v(
34
- z.value,
34
+ N.value,
35
35
  t(m)
36
36
  )).downloadFile(B(e.needName, e.fileName));
37
37
  };
38
38
  return (o, E) => (n(), a("span", {
39
39
  style: O(t(y)),
40
- class: l(t(F)),
41
- onClick: N
40
+ class: l(t(w)),
41
+ onClick: S
42
42
  }, [
43
43
  r("span", {
44
- class: l(t(w))
44
+ class: l(t(z))
45
45
  }, [
46
46
  t(d).icon ? (n(), a("span", U, [
47
47
  h(o.$slots, "icon")
@@ -1,15 +1,15 @@
1
- import { defineComponent as C, ref as N, computed as x, unref as o, openBlock as r, createElementBlock as n, Fragment as D, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as P, toDisplayString as V, createBlock as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
1
+ import { defineComponent as C, ref as N, computed as x, unref as t, openBlock as r, createElementBlock as n, Fragment as D, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as P, toDisplayString as V, createBlock as $, mergeProps as R, createSlots as A, renderList as I, withCtx as U, normalizeProps as z, guardReactiveProps as E } from "vue";
2
2
  import { InputNumber as F } from "ant-design-vue";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, omit as T } from "lodash-unified";
5
- import { toDecimalMark as _ } from "@fruits-chain/utils";
6
- import { addZeroToDecimalPlaces as w } from "./helper.mjs";
5
+ import { roundWith as _, toDecimalMark as w } from "@fruits-chain/utils";
6
+ import { addZeroToDecimalPlaces as L } from "./helper.mjs";
7
7
  import "../../config-provider/index.mjs";
8
8
  import "./style.css";
9
- import { useDefaultPlaceholder as L } from "../hooks/use-default-placeholder.mjs";
9
+ import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
10
10
  import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
12
- const oe = /* @__PURE__ */ C({
12
+ const ae = /* @__PURE__ */ C({
13
13
  name: "ApFieldNumber",
14
14
  __name: "index",
15
15
  props: {
@@ -57,15 +57,16 @@ const oe = /* @__PURE__ */ C({
57
57
  },
58
58
  emits: ["update:value"],
59
59
  setup(f, { expose: c, emit: y }) {
60
- const v = y, { b: i } = Z("field-number"), t = f, l = N(), { value: u, updateValue: b } = j(
61
- t,
60
+ const v = y, { b: i } = Z("field-number"), o = f, l = N(), { value: u, updateValue: b } = j(
61
+ o,
62
62
  v
63
- ), B = L("Number", t), h = x(() => {
64
- let e = o(u);
63
+ ), B = W("Number", o), h = x(() => {
64
+ let e = t(u);
65
65
  if (M(e))
66
- return t.emptyText;
67
- let a = t.thousands ? _(e, t.precision) : String(e);
68
- return t.precision && t.limitDecimalsRetain && (a = w(a, t.precision)), a;
66
+ return o.emptyText;
67
+ o.precision && (e = _(e, o.precision));
68
+ let a = o.thousands ? w(e) : String(e);
69
+ return o.precision && o.limitDecimalsRetain && (a = L(a, o.precision)), a;
69
70
  });
70
71
  function k() {
71
72
  var e;
@@ -78,21 +79,21 @@ const oe = /* @__PURE__ */ C({
78
79
  return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(D, { key: 0 }, [
79
80
  e.$slots.prefix ? (r(), n("span", {
80
81
  key: 0,
81
- class: d(o(i)("label-left"))
82
+ class: d(t(i)("label-left"))
82
83
  }, [
83
84
  s(e.$slots, "prefix")
84
85
  ], 2)) : m("", !0),
85
86
  P("span", null, V(h.value), 1),
86
87
  e.$slots.addonAfter ? (r(), n("span", {
87
88
  key: 1,
88
- class: d(o(i)("label-right"))
89
+ class: d(t(i)("label-right"))
89
90
  }, [
90
91
  s(e.$slots, "addonAfter")
91
92
  ], 2)) : m("", !0)
92
- ], 64)) : (r(), $(o(F), R({ key: 1 }, o(T)(t, ["value", "onUpdate:value"]), {
93
- placeholder: o(B),
94
- value: o(u),
95
- "onUpdate:value": o(b),
93
+ ], 64)) : (r(), $(t(F), R({ key: 1 }, t(T)(o, ["value", "onUpdate:value"]), {
94
+ placeholder: t(B),
95
+ value: t(u),
96
+ "onUpdate:value": t(b),
96
97
  ref_key: "inputRef",
97
98
  ref: l
98
99
  }), A({ _: 2 }, [
@@ -106,5 +107,5 @@ const oe = /* @__PURE__ */ C({
106
107
  }
107
108
  });
108
109
  export {
109
- oe as default
110
+ ae as default
110
111
  };
@@ -1,14 +1,15 @@
1
- import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode as k, normalizeClass as J, createVNode as V, normalizeStyle as M, toDisplayString as W, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as ee } from "vue";
1
+ import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode as V, normalizeClass as J, createVNode as k, normalizeStyle as M, toDisplayString as W, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as ee } from "vue";
2
2
  import { Form as oe, Tooltip as le } from "ant-design-vue";
3
3
  import { useToken as te } from "ant-design-vue/es/theme/internal";
4
- import { isArray as ae, omit as N } from "lodash-unified";
5
- import { apFormItemColPropKeys as re } from "./constant.mjs";
6
- import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
4
+ import { isFunction as ae, isArray as re, omit as N } from "lodash-unified";
5
+ import { apFormItemColPropKeys as ne } from "./constant.mjs";
6
+ import { QuestionCircleOutlined as ie } from "@ant-design/icons-vue";
7
7
  import "../config-provider/index.mjs";
8
- import { useInjectForm as ie } from "./context.mjs";
8
+ import { useInjectForm as ue } from "./context.mjs";
9
9
  import "./style/ap-form-item.css";
10
- import { useNamespace as ue } from "../config-provider/hooks/use-namespace.mjs";
11
- const se = ["title"], Be = /* @__PURE__ */ $({
10
+ import { isPromise as se } from "@fruits-chain/utils";
11
+ import { useNamespace as de } from "../config-provider/hooks/use-namespace.mjs";
12
+ const me = ["title"], Ve = /* @__PURE__ */ $({
12
13
  name: "ApFormItem",
13
14
  __name: "ap-form-item",
14
15
  props: {
@@ -53,14 +54,15 @@ const se = ["title"], Be = /* @__PURE__ */ $({
53
54
  },
54
55
  setup(P, { expose: S }) {
55
56
  var b, F;
56
- const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } = ie(), { m: p, b: x } = ue("ap-form-item"), m = f(!1), a = f(), [, I] = te();
57
- q(() => {
58
- d == null || d.registerField({
57
+ const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } = ue(), { m: p, b: w } = de("ap-form-item"), m = f(!1), a = f(), [, x] = te();
58
+ q(async () => {
59
+ let e = ae(o.initialValue) ? o.initialValue() : o.initialValue;
60
+ se(e) && (e = await e), d == null || d.registerField({
59
61
  name: o.name,
60
- initialValue: o.initialValue
62
+ initialValue: e
61
63
  });
62
64
  });
63
- const c = B(() => o.name ? ae(o.name) ? o.name.reduce((e, r) => e == null ? void 0 : e[r], l(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((F = (b = t.default) == null ? void 0 : b.call(t)) == null ? void 0 : F[0]);
65
+ const c = B(() => o.name ? re(o.name) ? o.name.reduce((e, r) => e == null ? void 0 : e[r], l(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((F = (b = t.default) == null ? void 0 : b.call(t)) == null ? void 0 : F[0]);
64
66
  E(
65
67
  () => {
66
68
  var e;
@@ -70,10 +72,10 @@ const se = ["title"], Be = /* @__PURE__ */ $({
70
72
  v.value = e == null ? void 0 : e[0];
71
73
  }
72
74
  );
73
- function _(e) {
75
+ function I(e) {
74
76
  s == null || s(o.name, e);
75
77
  }
76
- function w() {
78
+ function _() {
77
79
  m.value = !0;
78
80
  }
79
81
  function z() {
@@ -86,9 +88,9 @@ const se = ["title"], Be = /* @__PURE__ */ $({
86
88
  const e = l(v);
87
89
  return e ? K(e, {
88
90
  [o.valuePropName]: l(c),
89
- [`onUpdate:${o.valuePropName}`]: _,
91
+ [`onUpdate:${o.valuePropName}`]: I,
90
92
  bordered: o.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
91
- onFocus: w,
93
+ onFocus: _,
92
94
  onBlur: z
93
95
  }) : null;
94
96
  });
@@ -120,11 +122,11 @@ const se = ["title"], Be = /* @__PURE__ */ $({
120
122
  }), (e, r) => (g(), C(l(oe).Item, Q({
121
123
  ref_key: "formItemRef",
122
124
  ref: a
123
- }, l(N)(o, [...l(re), "tooltip", "label"]), {
125
+ }, l(N)(o, [...l(ne), "tooltip", "label"]), {
124
126
  class: {
125
127
  [l(p)("bordered")]: e.bordered,
126
128
  [l(p)("focused")]: e.bordered && m.value,
127
- [l(x)()]: !0
129
+ [l(w)()]: !0
128
130
  },
129
131
  colon: e.bordered ? !1 : o.colon
130
132
  }), U({
@@ -136,15 +138,15 @@ const se = ["title"], Be = /* @__PURE__ */ $({
136
138
  o.tooltip ? {
137
139
  name: "tooltip",
138
140
  fn: i(({ class: n }) => [
139
- k("span", {
141
+ V("span", {
140
142
  class: J(n)
141
143
  }, [
142
- V(l(le), {
144
+ k(l(le), {
143
145
  title: o.tooltip
144
146
  }, {
145
147
  default: i(() => [
146
- V(l(ne), {
147
- style: M({ color: l(I).colorPrimary })
148
+ k(l(ie), {
149
+ style: M({ color: l(x).colorPrimary })
148
150
  }, null, 8, ["style"])
149
151
  ]),
150
152
  _: 1
@@ -156,14 +158,14 @@ const se = ["title"], Be = /* @__PURE__ */ $({
156
158
  e.label ? {
157
159
  name: "label",
158
160
  fn: i(() => [
159
- k("span", {
161
+ V("span", {
160
162
  title: e.label,
161
163
  style: {
162
164
  whiteSpace: "nowrap",
163
165
  overflow: "hidden",
164
166
  textOverflow: "ellipsis"
165
167
  }
166
- }, W(e.label), 9, se)
168
+ }, W(e.label), 9, me)
167
169
  ]),
168
170
  key: "1"
169
171
  } : void 0,
@@ -177,5 +179,5 @@ const se = ["title"], Be = /* @__PURE__ */ $({
177
179
  }
178
180
  });
179
181
  export {
180
- Be as default
182
+ Ve as default
181
183
  };
@@ -909,7 +909,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
909
909
  }> | undefined;
910
910
  scrollToField: (name: NamePath, options?: {}) => void;
911
911
  setFieldsValue: (values: Record<string, any>) => void;
912
- setFieldValue: (key: any, newValue: any) => void;
912
+ setFieldValue: (name: NamePath, newValue: any) => void;
913
913
  registerWatch: typeof registerWatch;
914
914
  getInternalInstance: typeof getInternalInstance;
915
915
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormProps>, {