@aplus-frontend/ui 0.1.16 → 0.1.17

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 (85) hide show
  1. package/es/index.mjs +60 -58
  2. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +26 -24
  3. package/es/src/ap-modal/index.d.ts +2 -2
  4. package/es/src/ap-modal/index.mjs +1 -1
  5. package/es/src/ap-modal/{type.d.ts → interface.d.ts} +3 -3
  6. package/es/src/ap-modal/utils/createModal.d.ts +1 -1
  7. package/es/src/ap-table/ap-table.vue.mjs +21 -21
  8. package/es/src/ap-table/interface.d.ts +2 -3
  9. package/es/src/ap-table/utils.d.ts +1 -1
  10. package/es/src/ap-table/utils.mjs +20 -20
  11. package/es/src/business/ap-batch-action/index.css +2 -0
  12. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +13 -0
  13. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.mjs +4 -0
  14. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +110 -0
  15. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +17 -0
  16. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.mjs +4 -0
  17. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +50 -0
  18. package/es/src/business/ap-batch-action-group/interface.d.ts +41 -0
  19. package/es/src/business/ap-batch-action-group/interface.mjs +1 -0
  20. package/es/src/business/ap-image/ApImage.vue.d.ts +65 -0
  21. package/es/src/business/ap-image/ApImage.vue.mjs +4 -0
  22. package/es/src/business/ap-image/ApImage.vue2.mjs +56 -0
  23. package/es/src/business/ap-image/hooks/useOss.d.ts +11 -0
  24. package/es/src/business/ap-image/hooks/useOss.mjs +37 -0
  25. package/es/src/business/ap-image/imgs/admin-fallback.jpg.mjs +4 -0
  26. package/es/src/business/ap-image/imgs/aplus-fallback.jpg.mjs +4 -0
  27. package/es/src/business/index.d.ts +660 -1
  28. package/es/src/business/index.mjs +24 -17
  29. package/es/src/config-provider/constants.d.ts +1 -1
  30. package/es/src/editable-table/form-item.vue.mjs +47 -46
  31. package/es/src/editable-table/hooks/use-get-columns.d.ts +3 -2
  32. package/es/src/editable-table/hooks/use-get-columns.mjs +32 -32
  33. package/es/src/editable-table/index.vue.mjs +81 -80
  34. package/es/src/editable-table/interface.d.ts +7 -13
  35. package/es/src/editable-table/utils.d.ts +14 -2
  36. package/es/src/editable-table/utils.mjs +67 -58
  37. package/es/src/index.mjs +202 -200
  38. package/es/src/locale/lang/en.mjs +10 -7
  39. package/es/src/locale/lang/zh-cn.mjs +3 -0
  40. package/es/src/pro-form/hooks/use-label-width.d.ts +1 -1
  41. package/es/src/theme/ap-batch-action/ap-batch-action.css +2 -0
  42. package/lib/index.js +1 -1
  43. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  44. package/lib/src/ap-modal/index.d.ts +2 -2
  45. package/lib/src/ap-modal/index.js +1 -1
  46. package/lib/src/ap-modal/{type.d.ts → interface.d.ts} +3 -3
  47. package/lib/src/ap-modal/utils/createModal.d.ts +1 -1
  48. package/lib/src/ap-table/ap-table.vue.js +1 -1
  49. package/lib/src/ap-table/interface.d.ts +2 -3
  50. package/lib/src/ap-table/utils.d.ts +1 -1
  51. package/lib/src/ap-table/utils.js +1 -1
  52. package/lib/src/business/ap-batch-action/index.css +2 -0
  53. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +13 -0
  54. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.js +1 -0
  55. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -0
  56. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +17 -0
  57. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.js +1 -0
  58. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -0
  59. package/lib/src/business/ap-batch-action-group/interface.d.ts +41 -0
  60. package/lib/src/business/ap-batch-action-group/interface.js +1 -0
  61. package/lib/src/business/ap-image/ApImage.vue.d.ts +65 -0
  62. package/lib/src/business/ap-image/ApImage.vue.js +1 -0
  63. package/lib/src/business/ap-image/ApImage.vue2.js +1 -0
  64. package/lib/src/business/ap-image/hooks/useOss.d.ts +11 -0
  65. package/lib/src/business/ap-image/hooks/useOss.js +1 -0
  66. package/lib/src/business/ap-image/imgs/admin-fallback.jpg.js +1 -0
  67. package/lib/src/business/ap-image/imgs/aplus-fallback.jpg.js +1 -0
  68. package/lib/src/business/index.d.ts +660 -1
  69. package/lib/src/business/index.js +1 -1
  70. package/lib/src/config-provider/constants.d.ts +1 -1
  71. package/lib/src/editable-table/form-item.vue.js +1 -1
  72. package/lib/src/editable-table/hooks/use-get-columns.d.ts +3 -2
  73. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  74. package/lib/src/editable-table/index.vue.js +1 -1
  75. package/lib/src/editable-table/interface.d.ts +7 -13
  76. package/lib/src/editable-table/utils.d.ts +14 -2
  77. package/lib/src/editable-table/utils.js +1 -1
  78. package/lib/src/index.js +1 -1
  79. package/lib/src/locale/lang/en.js +1 -1
  80. package/lib/src/locale/lang/zh-cn.js +1 -1
  81. package/lib/src/pro-form/hooks/use-label-width.d.ts +1 -1
  82. package/lib/src/theme/ap-batch-action/ap-batch-action.css +2 -0
  83. package/package.json +2 -2
  84. /package/es/src/ap-modal/{type.mjs → interface.mjs} +0 -0
  85. /package/lib/src/ap-modal/{type.js → interface.js} +0 -0
package/es/index.mjs CHANGED
@@ -4,9 +4,9 @@ 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 n, tableDefaultConfig as u } 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";
8
- import { defaultNamespace as h, namespaceContextKey as R, useGetDerivedNamespace as v, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as w, globalConfigCached as B } from "./src/config-provider/config-provider.mjs";
7
+ import { buildLocaleContext as S, buildTranslator as I, localeContextKey as b, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
8
+ import { defaultNamespace as h, namespaceContextKey as R, useGetDerivedNamespace as G, useNamespace as v } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as M, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as L } 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";
@@ -20,11 +20,11 @@ import { useDescription as uo } from "./src/description/use-description.mjs";
20
20
  import { Description as co } from "./src/description/index.mjs";
21
21
  import { useComponentRegister as Fo } from "./src/pro-form/hooks/use-component-register.mjs";
22
22
  import { useForm as So } from "./src/pro-form/hooks/use-form.mjs";
23
- import { isComponentFormSchema as Io, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
23
+ import { isComponentFormSchema as bo, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
24
24
  import { Field as Po } from "./src/pro-form/index.mjs";
25
25
  import { default as Ro } from "./src/pro-form/components/api-cascader.vue.mjs";
26
- import { default as Go } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
- import { default as wo } from "./src/pro-form/components/api-select.vue.mjs";
26
+ import { default as vo } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
+ import { default as Mo } from "./src/pro-form/components/api-select.vue.mjs";
28
28
  import { default as ko } from "./src/pro-form/components/api-transfer.vue.mjs";
29
29
  import { default as No } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as Eo } from "./src/pro-form/components/radio-button-group.vue.mjs";
@@ -45,12 +45,12 @@ import { createPrompt as ue } from "./src/prompt/index.mjs";
45
45
  import { Dropdown as ce } from "./src/dropdown/index.mjs";
46
46
  import { default as Fe } from "./src/pro-table/pro-table.vue.mjs";
47
47
  import { default as Se } from "./src/pro-table/components/table-action.vue.mjs";
48
- import { default as Ie } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
48
+ import { default as be } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
49
49
  import { default as De } from "./src/pro-table/components/table-image.vue.mjs";
50
50
  import { useTable as he } from "./src/pro-table/hooks/use-table.mjs";
51
- import { ApFormItemText as ve } from "./src/ap-form/items/text/index.mjs";
52
- import { default as Me } from "./src/ap-form/items/text-area/index.vue.mjs";
53
- import { default as Be } from "./src/ap-form/items/number/index.vue.mjs";
51
+ import { ApFormItemText as Ge } from "./src/ap-form/items/text/index.mjs";
52
+ import { default as Be } from "./src/ap-form/items/text-area/index.vue.mjs";
53
+ import { default as we } from "./src/ap-form/items/number/index.vue.mjs";
54
54
  import { default as Le } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as ye } from "./src/ap-form/items/date-range/index.vue.mjs";
56
56
  import { default as Ke } from "./src/ap-form/items/radio/index.vue.mjs";
@@ -72,12 +72,12 @@ import { default as ur } 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
74
  import { default as Sr } from "./src/ap-field/text-area/index.vue.mjs";
75
- import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
75
+ import { default as br } from "./src/ap-field/date-range/index.vue.mjs";
76
76
  import { default as Dr } from "./src/ap-field/select/index.vue.mjs";
77
77
  import { default as hr } from "./src/ap-field/text/password.vue.mjs";
78
- import { default as vr } from "./src/ap-field/slider/index.vue.mjs";
79
- import { default as Mr } from "./src/ap-field/segmented/index.vue.mjs";
80
- import { default as Br } from "./src/ap-field/rate/index.vue.mjs";
78
+ import { default as Gr } from "./src/ap-field/slider/index.vue.mjs";
79
+ import { default as Br } from "./src/ap-field/segmented/index.vue.mjs";
80
+ import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
81
81
  import { adminToken as Lr, 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";
@@ -98,19 +98,19 @@ import { NeedNameKeyDefault as nt } 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 It } from "./src/check-card/index.mjs";
102
102
  import { default as gt } from "./src/check-card/group.vue.mjs";
103
103
  import { ApModal as Pt } from "./src/ap-modal/index.mjs";
104
104
  import { default as Rt } from "./src/ap-list/index.vue.mjs";
105
- import { ApBatchAction as Gt, ApExpandAlert as Mt, ApExportGroup as wt, ApInputRadio as Bt, ApLabel as kt, ApLabelGroup as Lt, ApSelectLayout as Nt, ApStatus as yt, ApStatusGroup as Et, ApTitle as Kt } from "./src/business/index.mjs";
106
- import { ApTransformDataHelper as Yt } from "./src/utils/ap-trans-data/index.mjs";
107
- import { useTablePaging as Ot } from "./src/ap-table/hooks/use-table-paging.mjs";
108
- import { default as zt } from "./src/ap-table/ap-table.vue.mjs";
109
- import { default as Vt } from "./src/editable-table/index.vue.mjs";
110
- import { default as jt } from "./src/editable-table/form-item.vue.mjs";
111
- import { default as Jt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
112
- import { useMessage as Zt } from "./src/hooks/useMessage.mjs";
113
- import { useControllableValue as oa } from "./src/hooks/useControllableValue.mjs";
105
+ import { ApBatchAction as vt, ApBatchActionGroup as Bt, ApExpandAlert as Mt, ApExportGroup as wt, ApImage as kt, ApInputRadio as Lt, ApLabel as Nt, ApLabelGroup as yt, ApSelectLayout as Et, ApStatus as Kt, ApStatusGroup as Xt, ApTitle as Yt } from "./src/business/index.mjs";
106
+ import { ApTransformDataHelper as Ot } from "./src/utils/ap-trans-data/index.mjs";
107
+ import { useTablePaging as zt } from "./src/ap-table/hooks/use-table-paging.mjs";
108
+ import { default as Vt } from "./src/ap-table/ap-table.vue.mjs";
109
+ import { default as jt } from "./src/editable-table/index.vue.mjs";
110
+ import { default as Jt } from "./src/editable-table/form-item.vue.mjs";
111
+ import { default as Zt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
112
+ import { useMessage as oa } from "./src/hooks/useMessage.mjs";
113
+ import { useControllableValue as ra } from "./src/hooks/useControllableValue.mjs";
114
114
  const p = {
115
115
  install: (r) => {
116
116
  for (const t in e) {
@@ -126,10 +126,11 @@ export {
126
126
  Wr as ApActionItemDropdown,
127
127
  Xr as ApActionItemModal,
128
128
  Hr as ApActionItemPopconfirm,
129
- Gt as ApBatchAction,
129
+ vt as ApBatchAction,
130
+ Bt as ApBatchActionGroup,
130
131
  Qr as ApCustomColumn,
131
132
  _r as ApCustomSelect,
132
- Jt as ApDescriptions,
133
+ Zt as ApDescriptions,
133
134
  Tt as ApDownLoadNeedNameKeyDefault,
134
135
  Ct as ApDownload,
135
136
  Mt as ApExpandAlert,
@@ -137,14 +138,14 @@ export {
137
138
  fr as ApField,
138
139
  dr as ApFieldCheckbox,
139
140
  ir as ApFieldDate,
140
- Ir as ApFieldDateRange,
141
+ br as ApFieldDateRange,
141
142
  ur as ApFieldNumber,
142
143
  hr as ApFieldPassword,
143
144
  cr as ApFieldRadio,
144
- Br as ApFieldRate,
145
- Mr as ApFieldSegmented,
145
+ wr as ApFieldRate,
146
+ Br as ApFieldSegmented,
146
147
  Dr as ApFieldSelect,
147
- vr as ApFieldSlider,
148
+ Gr as ApFieldSlider,
148
149
  Fr as ApFieldSwitch,
149
150
  lr as ApFieldText,
150
151
  Sr as ApFieldTextArea,
@@ -154,34 +155,35 @@ export {
154
155
  Le as ApFormItemDate,
155
156
  ye as ApFormItemDateRange,
156
157
  Ze as ApFormItemGroup,
157
- Be as ApFormItemNumber,
158
+ we as ApFormItemNumber,
158
159
  Ke as ApFormItemRadio,
159
160
  Ye as ApFormItemSelect,
160
161
  Oe as ApFormItemSwitch,
161
- ve as ApFormItemText,
162
- Me as ApFormItemTextArea,
162
+ Ge as ApFormItemText,
163
+ Be as ApFormItemTextArea,
163
164
  Ve as ApFormItemTextPassword,
164
165
  or as ApFormList,
165
166
  ar as ApFormModalForm,
166
167
  rr as ApFormSearchForm,
168
+ kt as ApImage,
167
169
  xt as ApInfoLayout,
168
- Bt as ApInputRadio,
169
- kt as ApLabel,
170
- Lt as ApLabelGroup,
170
+ Lt as ApInputRadio,
171
+ Nt as ApLabel,
172
+ yt as ApLabelGroup,
171
173
  Rt as ApList,
172
174
  Pt as ApModal,
173
- Nt as ApSelectLayout,
174
- yt as ApStatus,
175
- Et as ApStatusGroup,
176
- zt as ApTable,
175
+ Et as ApSelectLayout,
176
+ Kt as ApStatus,
177
+ Xt as ApStatusGroup,
178
+ Vt as ApTable,
177
179
  mt as ApTag,
178
180
  st as ApTagGroup,
179
- Kt as ApTitle,
180
- Yt as ApTransformDataHelper,
181
+ Yt as ApTitle,
182
+ Ot as ApTransformDataHelper,
181
183
  At as ApUpload,
182
184
  Ro as ApiCascader,
183
- Go as ApiRadioGroup,
184
- wo as ApiSelect,
185
+ vo as ApiRadioGroup,
186
+ Mo as ApiSelect,
185
187
  ko as ApiTransfer,
186
188
  No as ApiTree,
187
189
  Ho as ApiTreeSelect,
@@ -190,11 +192,11 @@ export {
190
192
  $ as BasicArrow,
191
193
  j as BasicHelp,
192
194
  q as BasicTitle,
193
- bt as CheckCard,
195
+ It as CheckCard,
194
196
  gt as CheckCardGroup,
195
197
  K as CollapseContainer,
196
198
  Q as CollapseTransition,
197
- w as ConfigProvider,
199
+ M as ConfigProvider,
198
200
  xe as CountdownButton,
199
201
  ie as CountdownInput,
200
202
  le as CropperAvatar,
@@ -202,9 +204,9 @@ export {
202
204
  co as Description,
203
205
  et as DictCode,
204
206
  ce as Dropdown,
205
- Ie as EditTableHeaderIcon,
206
- Vt as EditableTable,
207
- jt as EditableTableFormItem,
207
+ be as EditTableHeaderIcon,
208
+ jt as EditableTable,
209
+ Jt as EditableTableFormItem,
208
210
  _ as ExpandTransition,
209
211
  oo as ExpandXTransition,
210
212
  eo as FadeTransition,
@@ -239,7 +241,7 @@ export {
239
241
  Lr as adminToken,
240
242
  Nr as aplusToken,
241
243
  S as buildLocaleContext,
242
- b as buildTranslator,
244
+ I as buildTranslator,
243
245
  n as configProviderContextKey,
244
246
  x as configProviderProps,
245
247
  ue as createPrompt,
@@ -248,29 +250,29 @@ export {
248
250
  h as defaultNamespace,
249
251
  U as en,
250
252
  $r as generateTableList,
251
- B as globalConfigCached,
252
- Io as isComponentFormSchema,
253
+ w as globalConfigCached,
254
+ bo as isComponentFormSchema,
253
255
  go as isSlotFormSchema,
254
256
  c as keysOf,
255
- I as localeContextKey,
257
+ b as localeContextKey,
256
258
  R as namespaceContextKey,
257
259
  T as provideGlobalConfig,
258
260
  u as tableDefaultConfig,
259
261
  g as translate,
260
262
  qr as useCacheColumnSetting,
261
263
  Fo as useComponentRegister,
262
- oa as useControllableValue,
264
+ ra as useControllableValue,
263
265
  uo as useDescription,
264
266
  So as useForm,
265
- v as useGetDerivedNamespace,
267
+ G as useGetDerivedNamespace,
266
268
  F as useGlobalConfig,
267
269
  D as useLocale,
268
- Zt as useMessage,
270
+ oa as useMessage,
269
271
  te as useModal,
270
272
  ee as useModalContext,
271
273
  ae as useModalInner,
272
- G as useNamespace,
274
+ v as useNamespace,
273
275
  he as useTable,
274
- Ot as useTablePaging,
276
+ zt as useTablePaging,
275
277
  W as zhCn
276
278
  };
@@ -1,16 +1,16 @@
1
- import { isVNode as C, defineComponent as h, useSlots as w, watch as k, shallowRef as _, computed as P, unref as n, createVNode as R, mergeProps as c, openBlock as a, createBlock as u, withCtx as S, createElementBlock as b, Fragment as x, renderList as B, resolveDynamicComponent as N } from "vue";
2
- import { Col as j, Row as v } from "ant-design-vue";
3
- import { pick as F, isBoolean as D, omit as I } from "lodash-unified";
4
- import { apFormItemColPropKeys as O } from "../constant.mjs";
5
- import { genRealChildren as d, buildColSpan as V, getStringName as $ } from "./helper.mjs";
1
+ import { isVNode as C, defineComponent as h, useSlots as w, onBeforeUpdate as k, watch as _, shallowRef as B, computed as P, unref as n, createVNode as R, mergeProps as u, openBlock as s, createBlock as d, withCtx as S, createElementBlock as b, Fragment as x, renderList as N, resolveDynamicComponent as j } from "vue";
2
+ import { Col as v, Row as F } from "ant-design-vue";
3
+ import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
4
+ import { apFormItemColPropKeys as V } from "../constant.mjs";
5
+ import { genRealChildren as l, buildColSpan as $, getStringName as A } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import "../style/ap-form-item-group.css";
8
- import { isDef as A } from "../../utils/index.mjs";
9
- import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
- function G(t) {
8
+ import { isDef as E } from "../../utils/index.mjs";
9
+ import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
10
+ function H(t) {
11
11
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !C(t);
12
12
  }
13
- const U = /* @__PURE__ */ h({
13
+ const W = /* @__PURE__ */ h({
14
14
  name: "ApFormItemGroup",
15
15
  __name: "index",
16
16
  props: {
@@ -30,26 +30,28 @@ const U = /* @__PURE__ */ h({
30
30
  },
31
31
  setup(t) {
32
32
  const {
33
- b: p
34
- } = E("ap-form-item-group"), s = t, i = w();
35
- k(() => i.default(), (o) => {
36
- l.value = d(o);
33
+ b: i
34
+ } = G("ap-form-item-group"), m = t, a = w();
35
+ k(() => {
36
+ p.value = l(a.default());
37
+ }), _(() => a.default(), (o) => {
38
+ p.value = l(o);
37
39
  });
38
- const l = _(d(i.default())), f = P(() => n(l).map((o, m) => {
39
- const e = o.props, r = F(e, O), g = r != null && r.span ? {} : V(s.countPerRow), y = D(e.hidden) ? !!e.hidden : A(e.hidden);
40
+ const p = B(l(a.default())), f = P(() => n(p).map((o, c) => {
41
+ const e = o.props, r = D(e, V), g = r != null && r.span ? {} : $(m.countPerRow), y = I(e.hidden) ? !!e.hidden : E(e.hidden);
40
42
  return {
41
- key: `${m}-${$(e.name)}`,
42
- node: R(j, c(g, r, {
43
- class: y ? p("col-hidden") : ""
44
- }), G(o) ? o : {
43
+ key: `${c}-${A(e.name)}`,
44
+ node: R(v, u(g, r, {
45
+ class: y ? i("col-hidden") : ""
46
+ }), H(o) ? o : {
45
47
  default: () => [o]
46
48
  })
47
49
  };
48
50
  }));
49
- return (o, m) => (a(), u(n(v), c({
50
- class: n(p)()
51
- }, n(I)(s, ["countPerRow"])), {
52
- default: S(() => [(a(!0), b(x, null, B(f.value, (e) => (a(), u(N(e.node), {
51
+ return (o, c) => (s(), d(n(F), u({
52
+ class: n(i)()
53
+ }, n(O)(m, ["countPerRow"])), {
54
+ default: S(() => [(s(!0), b(x, null, N(f.value, (e) => (s(), d(j(e.node), {
53
55
  key: e.key
54
56
  }))), 128))]),
55
57
  _: 1
@@ -57,5 +59,5 @@ const U = /* @__PURE__ */ h({
57
59
  }
58
60
  });
59
61
  export {
60
- U as default
62
+ W as default
61
63
  };
@@ -1,6 +1,6 @@
1
1
  import { Modal as _Modal } from 'ant-design-vue';
2
- import { CreateModalFunc } from './type';
3
- export * from './type';
2
+ import { CreateModalFunc } from './interface';
3
+ export * from './interface';
4
4
  type ApModalMixedProps = typeof _Modal & {
5
5
  createModal: CreateModalFunc;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { Modal as r } from "ant-design-vue";
2
2
  import "./utils/index.mjs";
3
- import "./type.mjs";
3
+ import "./interface.mjs";
4
4
  import { createModal as a } from "./utils/createModal.mjs";
5
5
  const o = r;
6
6
  o.createModal = a;
@@ -1,7 +1,7 @@
1
1
  import { ModalProps } from 'ant-design-vue';
2
- export type CreateModalFuncProps = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
3
- onCancel: (params: any) => void | Promise<unknown>;
4
- onOk: (params: any) => void | Promise<unknown>;
2
+ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
3
+ onCancel: (params: ContentRecord) => void | Promise<unknown>;
4
+ onOk: (params: ContentRecord) => void | Promise<unknown>;
5
5
  getContainer: HTMLElement;
6
6
  content: any;
7
7
  }>;
@@ -1,2 +1,2 @@
1
- import { CreateModalFunc } from '../type';
1
+ import { CreateModalFunc } from '../interface';
2
2
  export declare const createModal: CreateModalFunc;
@@ -1,4 +1,4 @@
1
- import { defineComponent as ce, useSlots as pe, computed as s, unref as l, createVNode as u, Fragment as D, watch as fe, openBlock as c, createElementBlock as y, normalizeClass as x, normalizeStyle as F, mergeProps as S, createSlots as j, withCtx as p, renderList as W, createBlock as me, resolveDynamicComponent as ge, renderSlot as v, createCommentVNode as _, createElementVNode as A, toDisplayString as ye, normalizeProps as Se, guardReactiveProps as be } from "vue";
1
+ import { defineComponent as ce, useSlots as pe, computed as d, unref as l, createVNode as u, Fragment as D, watch as fe, openBlock as c, createElementBlock as y, normalizeClass as x, normalizeStyle as F, mergeProps as S, createSlots as j, withCtx as p, renderList as W, createBlock as me, resolveDynamicComponent as ge, renderSlot as v, createCommentVNode as _, createElementVNode as A, toDisplayString as ye, normalizeProps as Se, guardReactiveProps as be } from "vue";
2
2
  import { Typography as he, Table as we, Tooltip as Ce } from "ant-design-vue";
3
3
  import { useToken as Re } from "ant-design-vue/es/theme/internal";
4
4
  import { ApForm as Te } from "../ap-form/index.mjs";
@@ -146,7 +146,7 @@ const Ae = {
146
146
  } = We("ap-table"), k = _e("valueTypeMap"), {
147
147
  height: J,
148
148
  contentRef: X
149
- } = Ke(), h = s(() => {
149
+ } = Ke(), h = d(() => {
150
150
  var r;
151
151
  let e = ((r = o.columns) == null ? void 0 : r.filter((a) => !a.hideInTable)) || [];
152
152
  return e = e.map((a) => ({
@@ -156,13 +156,13 @@ const Ae = {
156
156
  ...n
157
157
  }) {
158
158
  var K, z;
159
- const d = Pe(a), O = ke({
159
+ const s = Pe(a), O = ke({
160
160
  ...a,
161
- valueType: d
161
+ valueType: s
162
162
  }, {
163
163
  value: t,
164
164
  ...n
165
- }), ue = Ie(d, O, l(k)), V = ((K = a.renderText) == null ? void 0 : K.call(a, {
165
+ }), ue = Ie(s, O, n.record, l(k)), V = ((K = a.renderText) == null ? void 0 : K.call(a, {
166
166
  value: t,
167
167
  ...n
168
168
  })) || t, ie = a.renderText ? u(D, null, [(z = a.renderText) == null ? void 0 : z.call(a, {
@@ -179,13 +179,13 @@ const Ae = {
179
179
  })), T;
180
180
  }
181
181
  })), e;
182
- }), I = s(() => {
182
+ }), I = d(() => {
183
183
  var e, r, a;
184
184
  return B++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !q.includes(t.valueType))) == null ? void 0 : r.sort((t, n) => {
185
- let d = $(t.order);
186
- return $(n.order) - d;
185
+ let s = $(t.order);
186
+ return $(n.order) - s;
187
187
  })) == null ? void 0 : a.map((t) => {
188
- const n = Ne(t, Le(t.fieldProps, {})), d = {
188
+ const n = Ne(t, Le(t.fieldProps, {})), s = {
189
189
  ...t,
190
190
  fieldProps: {
191
191
  label: t.title,
@@ -197,9 +197,9 @@ const Ae = {
197
197
  },
198
198
  renderNode: void 0
199
199
  };
200
- return d.renderNode = Oe(d, l(k)), d;
200
+ return s.renderNode = Oe(s, l(k)), s;
201
201
  })) || [];
202
- }), Y = s(() => l(h).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), Z = s(() => l(h).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ee = s(() => i(o.dataSource) ? g.value.records : o.dataSource), {
202
+ }), Y = d(() => l(h).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), Z = d(() => l(h).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ee = d(() => i(o.dataSource) ? g.value.records : o.dataSource), {
203
203
  rowSelection: w,
204
204
  selectedRows: N,
205
205
  ...C
@@ -232,7 +232,7 @@ const Ae = {
232
232
  defaultCurrent: o.pagination ? o.pagination.defaultCurrent : void 0,
233
233
  defaultPageSize: o.pagination ? o.pagination.defaultPageSize : void 0,
234
234
  formatParams: o.beforeSearchSubmit
235
- }), oe = s(() => {
235
+ }), oe = d(() => {
236
236
  var e;
237
237
  return o.scroll ? o.scroll : o.adaptive && (g.value.total > 0 || (e = o.dataSource) != null && e.length) ? {
238
238
  y: l(J),
@@ -240,13 +240,13 @@ const Ae = {
240
240
  } : {
241
241
  x: !0
242
242
  };
243
- }), te = s(() => {
243
+ }), te = d(() => {
244
244
  var e;
245
245
  if (o.tableLayout)
246
246
  return o.tableLayout;
247
247
  if ((e = o.columns) != null && e.some((r) => r.ellipsis))
248
248
  return "fixed";
249
- }), re = s(() => {
249
+ }), re = d(() => {
250
250
  var t;
251
251
  const e = l(m), r = i(o.dataSource) ? e : {
252
252
  ...e,
@@ -265,7 +265,7 @@ const Ae = {
265
265
  pagination: o.pagination === !1 ? !1 : l(m).pagination,
266
266
  scroll: l(oe)
267
267
  };
268
- }), le = s(() => [f(), o.card ? null : f("wrapper"), o.adaptive ? f("adaptive") : null].filter(Boolean));
268
+ }), le = d(() => [f(), o.card ? null : f("wrapper"), o.adaptive ? f("adaptive") : null].filter(Boolean));
269
269
  function ne(e, r, a) {
270
270
  if (q.includes(e.valueType))
271
271
  return a;
@@ -288,22 +288,22 @@ const Ae = {
288
288
  var r;
289
289
  (r = o.onLoadingChange) == null || r.call(o, e);
290
290
  });
291
- function se(e) {
291
+ function de(e) {
292
292
  var r, a, t;
293
293
  (t = (a = (r = R.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || t.call(a, e);
294
294
  }
295
- function de() {
295
+ function se() {
296
296
  var e, r, a;
297
297
  return (a = (r = (e = R.value) == null ? void 0 : e.apForm) == null ? void 0 : r.getFieldsValue) == null ? void 0 : a.call(r, !0);
298
298
  }
299
299
  return M({
300
300
  submit: () => L(),
301
301
  reset: () => E(),
302
- setSearchFormValues: se,
303
- getSearchFormValues: de,
304
- dataSource: s(() => l(g).records),
302
+ setSearchFormValues: de,
303
+ getSearchFormValues: se,
304
+ dataSource: d(() => l(g).records),
305
305
  rowSelection: {
306
- selectedRows: s(() => l(N)),
306
+ selectedRows: d(() => l(N)),
307
307
  ...C
308
308
  }
309
309
  }), (e, r) => (c(), y("div", {
@@ -67,12 +67,12 @@ export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children' | 'filters' |
67
67
  export type ApTableRowSelection<RecordType = any> = Omit<TableRowSelection<RecordType>, 'selectedRowKeys' | 'onChange' | 'onSelect' | 'onSelectAll' | 'onSelectInvert' | 'onSelectNone'> & {
68
68
  mode: 'internal';
69
69
  };
70
- type CommonFieldReturnType = ApFormItemProps & {
70
+ export type CommonFieldReturnType = ApFormItemProps & {
71
71
  field: Recordable;
72
72
  placeholder?: string;
73
73
  disabled?: boolean;
74
74
  };
75
- type FieldPropsType<ReturnType, RecordType, ExtraValueType, ValueType extends ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType> = ReturnType | ((opt: Partial<{
75
+ export type FieldPropsType<ReturnType, RecordType, ExtraValueType, ValueType extends ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType> = ReturnType | ((opt: Partial<{
76
76
  value: any;
77
77
  text: any;
78
78
  record: RecordType;
@@ -286,4 +286,3 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
286
286
  selectedRows: ComputedRef<RecordType[]>;
287
287
  };
288
288
  };
289
- export {};
@@ -71,7 +71,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
71
71
  * @returns
72
72
  */
73
73
  export declare function getTableRenderType(item: ApColumnType<any, any>): "number" | "select" | "date" | "text" | "index" | "switch" | "status" | "checkbox" | "radio" | "password" | "action" | "dateRange" | "textArea";
74
- export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
74
+ export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
75
75
  /**
76
76
  * 获取查询表单最终渲染的节点
77
77
  * @param item
@@ -1,5 +1,5 @@
1
- import { isVNode as m, createVNode as c, mergeProps as i, cloneVNode as p } from "vue";
2
- import { isObject as s, isArray as l, isUndefined as d, isFunction as b, omit as T, isBoolean as y } from "lodash-unified";
1
+ import { isVNode as m, createVNode as i, mergeProps as l, cloneVNode as p } from "vue";
2
+ import { isObject as c, isArray as f, isUndefined as d, isFunction as b, omit as T, isBoolean as y } from "lodash-unified";
3
3
  import { apTableRenderItemMap as j, apTableFormItemMap as h } from "./constants.mjs";
4
4
  import { isType as g } from "@fruits-chain/utils";
5
5
  import "../ap-form/index.mjs";
@@ -9,8 +9,8 @@ function F(t) {
9
9
  }
10
10
  const O = (t, e, n) => {
11
11
  let r = {};
12
- return s(t) ? Object.keys(t).forEach((o) => {
13
- s(t[o]) ? r[o] = O(t[o], e[o], n) : r[o] = n(t[o], e);
12
+ return c(t) ? Object.keys(t).forEach((o) => {
13
+ c(t[o]) ? r[o] = O(t[o], e[o], n) : r[o] = n(t[o], e);
14
14
  }) : r = n(t, e), r;
15
15
  }, _ = (t, e) => {
16
16
  switch (t) {
@@ -24,7 +24,7 @@ const O = (t, e, n) => {
24
24
  }
25
25
  case "multiple":
26
26
  case "multipleNumber":
27
- return l(e) ? e : [e];
27
+ return f(e) ? e : [e];
28
28
  case "boolean":
29
29
  return e;
30
30
  case "object":
@@ -34,13 +34,13 @@ const O = (t, e, n) => {
34
34
  }
35
35
  };
36
36
  function C(t) {
37
- return l(t) ? t.join(".") : t;
37
+ return f(t) ? t.join(".") : t;
38
38
  }
39
39
  function N(t) {
40
40
  const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
41
41
  return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
42
42
  }
43
- const S = (t) => N(t) === "map" ? t : new Map(Object.entries(t || {})), f = (t) => {
43
+ const S = (t) => N(t) === "map" ? t : new Map(Object.entries(t || {})), a = (t) => {
44
44
  const e = [], n = S(t);
45
45
  return n.forEach((r, o) => {
46
46
  const u = n.get(o) || n.get(`${o}`);
@@ -79,15 +79,15 @@ function q(t) {
79
79
  let e = t.valueType || "text";
80
80
  return t.valueEnum && (e = "status"), e;
81
81
  }
82
- function B(t, e, n) {
83
- var u;
84
- const r = j[t];
85
- if (r)
86
- return c(r, i(e, {
82
+ function B(t, e, n, r) {
83
+ var s;
84
+ const o = j[t];
85
+ if (o)
86
+ return i(o, l(e, {
87
87
  mode: "read"
88
88
  }), null);
89
- const o = n == null ? void 0 : n[t];
90
- return ((u = o == null ? void 0 : o.render) == null ? void 0 : u.call(o, e.value, e)) || e.value;
89
+ const u = r == null ? void 0 : r[t];
90
+ return ((s = u == null ? void 0 : u.render) == null ? void 0 : s.call(u, e.value, n, e)) || e.value;
91
91
  }
92
92
  function D(t, e) {
93
93
  if (t.customRenderFormItem)
@@ -106,7 +106,7 @@ function D(t, e) {
106
106
  return () => {
107
107
  var u;
108
108
  const o = (u = r == null ? void 0 : r.renderFormItem) == null ? void 0 : u.call(r, t.fieldProps.field);
109
- return o ? c(E, i(t.fieldProps, {
109
+ return o ? i(E, l(t.fieldProps, {
110
110
  span: t.span
111
111
  }), F(o) ? o : {
112
112
  default: () => [o]
@@ -114,28 +114,28 @@ function D(t, e) {
114
114
  };
115
115
  }
116
116
  function J(t, e) {
117
- const n = x(t.fieldProps, e), r = (n == null ? void 0 : n.field) || n || {}, o = t.valueType === "switch", u = t.valueType === "index", a = o ? {
117
+ const n = x(t.fieldProps, e), r = (n == null ? void 0 : n.field) || n || {}, o = t.valueType === "switch", u = t.valueType === "index", s = o ? {
118
118
  checked: e.value
119
119
  } : {
120
120
  value: u ? e.index + 1 : e.value
121
121
  };
122
122
  return t.valueEnum && (r.valueEnum = t.valueEnum), {
123
123
  ...T(r, ["request"]),
124
- ...a
124
+ ...s
125
125
  };
126
126
  }
127
127
  function L(t) {
128
128
  const e = {
129
129
  ...t
130
130
  };
131
- return y(t.filters) && t.filters && t.valueEnum && (e.filters = f(t.valueEnum)), e;
131
+ return y(t.filters) && t.filters && t.valueEnum && (e.filters = a(t.valueEnum)), e;
132
132
  }
133
133
  function U(t, e) {
134
134
  var r;
135
135
  const n = e || {};
136
136
  return t.valueEnum && !((r = n.field) != null && r.options) && (n.field = {
137
137
  ...n.field,
138
- options: f(t.valueEnum)
138
+ options: a(t.valueEnum)
139
139
  }), n;
140
140
  }
141
141
  function z(t) {
@@ -162,5 +162,5 @@ export {
162
162
  z as objectToString,
163
163
  _ as parseFieldValue,
164
164
  U as updateFormProps,
165
- f as valueEnumToArray
165
+ a as valueEnumToArray
166
166
  };
@@ -15,6 +15,8 @@
15
15
  .aplus-ap-batch-action .selected-desc-conut span {
16
16
  color: var(--ap-batch-action-color-active, #0070ff);
17
17
  font-weight: bold;
18
+ min-width: 10px;
19
+ display: inline-block;
18
20
  }
19
21
  .aplus-ap-batch-action .selected-desc-clean {
20
22
  margin-left: 8px;