@aplus-frontend/ui 0.0.13 → 0.0.15

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 (129) hide show
  1. package/es/index.mjs +53 -55
  2. package/es/src/ap-action/interface.d.ts +11 -0
  3. package/es/src/ap-action/item/index.vue.d.ts +2 -4
  4. package/es/src/ap-action/item/index.vue2.mjs +34 -28
  5. package/es/src/ap-action/item-modal/index.vue.d.ts +8 -3
  6. package/es/src/ap-action/item-modal/index.vue.mjs +20 -13
  7. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -3
  8. package/es/src/ap-action/item-popconfirm/index.vue.mjs +23 -16
  9. package/es/src/ap-field/checkbox/index.vue.mjs +2 -0
  10. package/es/src/ap-field/date/index.vue.mjs +2 -0
  11. package/es/src/ap-field/date-range/index.vue.mjs +2 -0
  12. package/es/src/ap-field/interface.d.ts +2 -0
  13. package/es/src/ap-field/number/index.vue.mjs +2 -0
  14. package/es/src/ap-field/radio/index.vue.mjs +9 -7
  15. package/es/src/ap-field/rate/index.vue.mjs +4 -2
  16. package/es/src/ap-field/segmented/index.vue.mjs +15 -13
  17. package/es/src/ap-field/select/index.vue.mjs +18 -16
  18. package/es/src/ap-field/slider/index.vue.mjs +11 -9
  19. package/es/src/ap-field/switch/index.vue.mjs +10 -8
  20. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  21. package/es/src/ap-field/text/index.vue2.mjs +12 -10
  22. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  23. package/es/src/ap-field/text/password.vue.mjs +16 -14
  24. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  25. package/es/src/ap-field/text-area/index.vue.mjs +2 -0
  26. package/es/src/ap-form/ap-form-item.vue.mjs +45 -42
  27. package/es/src/ap-form/modal-form/index.vue.mjs +68 -66
  28. package/es/src/ap-table/ap-table.vue.mjs +90 -92
  29. package/es/src/ap-table/constants.d.ts +715 -487
  30. package/es/src/ap-table/style/ap-table.css +6 -0
  31. package/es/src/ap-table/utils.d.ts +3 -3
  32. package/es/src/business/index.d.ts +2 -5
  33. package/es/src/business/index.mjs +4 -5
  34. package/es/src/business/title/ApTitle.vue.mjs +2 -48
  35. package/es/src/business/title/ApTitle.vue2.mjs +48 -2
  36. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  37. package/es/src/config-provider/config-provider-props.mjs +5 -6
  38. package/es/src/config-provider/config-provider.d.ts +11 -11
  39. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  40. package/es/src/config-provider/index.d.ts +31 -31
  41. package/es/src/description/description.vue.d.ts +1 -1
  42. package/es/src/description/index.d.ts +3 -3
  43. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  44. package/es/src/editable-table/style/index.css +7 -8
  45. package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
  46. package/es/src/icon-picker/index.d.ts +26 -26
  47. package/es/src/index.mjs +50 -52
  48. package/es/src/modal/basic.vue.d.ts +1 -1
  49. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  50. package/es/src/modal/index.d.ts +2 -2
  51. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  52. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  53. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  54. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  55. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  56. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  57. package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
  58. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  59. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  60. package/es/src/pro-table/pro-table.vue.d.ts +1 -1
  61. package/es/src/scroll-bar/index.d.ts +12 -12
  62. package/es/src/theme/ap-table/ap-table.css +6 -0
  63. package/es/src/theme/editable-table/index.css +7 -8
  64. package/es/src/utils/config-provider-preset.d.ts +12 -12
  65. package/lib/index.js +1 -1
  66. package/lib/src/ap-action/interface.d.ts +11 -0
  67. package/lib/src/ap-action/item/index.vue.d.ts +2 -4
  68. package/lib/src/ap-action/item/index.vue2.js +1 -1
  69. package/lib/src/ap-action/item-modal/index.vue.d.ts +8 -3
  70. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  71. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -3
  72. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  73. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  74. package/lib/src/ap-field/date/index.vue.js +1 -1
  75. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  76. package/lib/src/ap-field/interface.d.ts +2 -0
  77. package/lib/src/ap-field/number/index.vue.js +1 -1
  78. package/lib/src/ap-field/radio/index.vue.js +1 -1
  79. package/lib/src/ap-field/rate/index.vue.js +1 -1
  80. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  81. package/lib/src/ap-field/select/index.vue.js +1 -1
  82. package/lib/src/ap-field/slider/index.vue.js +1 -1
  83. package/lib/src/ap-field/switch/index.vue.js +1 -1
  84. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  85. package/lib/src/ap-field/text/index.vue2.js +1 -1
  86. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  87. package/lib/src/ap-field/text/password.vue.js +1 -1
  88. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  89. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  90. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  91. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  92. package/lib/src/ap-table/ap-table.vue.js +1 -1
  93. package/lib/src/ap-table/constants.d.ts +715 -487
  94. package/lib/src/ap-table/style/ap-table.css +6 -0
  95. package/lib/src/ap-table/utils.d.ts +3 -3
  96. package/lib/src/business/index.d.ts +2 -5
  97. package/lib/src/business/index.js +1 -1
  98. package/lib/src/business/title/ApTitle.vue.js +1 -1
  99. package/lib/src/business/title/ApTitle.vue2.js +1 -1
  100. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  101. package/lib/src/config-provider/config-provider-props.js +1 -1
  102. package/lib/src/config-provider/config-provider.d.ts +11 -11
  103. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  104. package/lib/src/config-provider/index.d.ts +31 -31
  105. package/lib/src/description/description.vue.d.ts +1 -1
  106. package/lib/src/description/index.d.ts +3 -3
  107. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  108. package/lib/src/editable-table/style/index.css +7 -8
  109. package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
  110. package/lib/src/icon-picker/index.d.ts +26 -26
  111. package/lib/src/index.js +1 -1
  112. package/lib/src/modal/basic.vue.d.ts +1 -1
  113. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  114. package/lib/src/modal/index.d.ts +2 -2
  115. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  116. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  117. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  118. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  119. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  120. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  121. package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
  122. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  123. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  124. package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
  125. package/lib/src/scroll-bar/index.d.ts +12 -12
  126. package/lib/src/theme/ap-table/ap-table.css +6 -0
  127. package/lib/src/theme/editable-table/index.css +7 -8
  128. package/lib/src/utils/config-provider-preset.d.ts +12 -12
  129. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -3,7 +3,7 @@ import "./src/hooks/index.mjs";
3
3
  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
- import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
6
+ import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as T } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as S, buildTranslator as I, localeContextKey as b, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
8
  import { defaultNamespace as R, namespaceContextKey as v, useGetDerivedNamespace as M, useNamespace as h } from "./src/config-provider/hooks/use-namespace.mjs";
9
9
  import { ConfigProvider as B } from "./src/config-provider/config-provider.mjs";
@@ -13,13 +13,13 @@ import { CollapseContainer as L, ScrollContainer as X } from "./src/container/in
13
13
  import { IconPicker as Y } from "./src/icon-picker/index.mjs";
14
14
  import { default as H } from "./src/locale/lang/zh-cn.mjs";
15
15
  import { default as z } from "./src/locale/lang/en.mjs";
16
- import { BasicArrow as V, BasicHelp as _, BasicTitle as $ } from "./src/basic/index.mjs";
17
- import { default as q } from "./src/transition/collapse-transition.vue.mjs";
18
- import { ExpandTransition as Q, ExpandXTransition as Z, FadeTransition as ee, ScaleRotateTransition as oe, ScaleTransition as re, ScrollXReverseTransition as te, ScrollXTransition as ae, ScrollYReverseTransition as pe, ScrollYTransition as fe, SlideXReverseTransition as me, SlideXTransition as le, SlideYReverseTransition as se, SlideYTransition as de } from "./src/transition/index.mjs";
16
+ import { BasicArrow as V, BasicHelp as $, BasicTitle as j } from "./src/basic/index.mjs";
17
+ import { default as J } from "./src/transition/collapse-transition.vue.mjs";
18
+ import { ExpandTransition as Z, ExpandXTransition as _, FadeTransition as ee, ScaleRotateTransition as oe, ScaleTransition as re, ScrollXReverseTransition as te, ScrollXTransition as ae, ScrollYReverseTransition as pe, ScrollYTransition as fe, SlideXReverseTransition as me, SlideXTransition as le, SlideYReverseTransition as se, SlideYTransition as de } from "./src/transition/index.mjs";
19
19
  import { useDescription as ie } from "./src/description/use-description.mjs";
20
20
  import { Description as ue } from "./src/description/index.mjs";
21
21
  import { useComponentRegister as ce } from "./src/pro-form/hooks/use-component-register.mjs";
22
- import { useForm as Fe } from "./src/pro-form/hooks/use-form.mjs";
22
+ import { useForm as Te } from "./src/pro-form/hooks/use-form.mjs";
23
23
  import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
24
24
  import { Field as ge } from "./src/pro-form/index.mjs";
25
25
  import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
@@ -33,17 +33,17 @@ import { default as Ke } from "./src/pro-form/components/api-tree-select.vue.mjs
33
33
  import { default as Oe } from "./src/pro-form/table-form.vue.mjs";
34
34
  import { default as We } from "./src/pro-form/table-form-inner.vue.mjs";
35
35
  import { default as Ue } from "./src/base-button/modal-button.vue.mjs";
36
- import { default as _e } from "./src/base-button/pop-confirm-button.vue.mjs";
37
- import { BaseButton as je } from "./src/base-button/index.mjs";
38
- import { StrengthMeter as Je } from "./src/strength-meter/index.mjs";
39
- import { useModalContext as Ze } from "./src/modal/hooks/use-modal-context.mjs";
36
+ import { default as $e } from "./src/base-button/pop-confirm-button.vue.mjs";
37
+ import { BaseButton as qe } from "./src/base-button/index.mjs";
38
+ import { StrengthMeter as Qe } from "./src/strength-meter/index.mjs";
39
+ import { useModalContext as _e } from "./src/modal/hooks/use-modal-context.mjs";
40
40
  import { useModal as oo, useModalInner as ro } from "./src/modal/hooks/use-modal.mjs";
41
41
  import { BaseModal as ao } from "./src/modal/index.mjs";
42
42
  import { CropperAvatar as fo, CropperImage as mo } from "./src/cropper/index.mjs";
43
43
  import { CountdownButton as so, CountdownInput as xo } from "./src/count-down/index.mjs";
44
44
  import { createPrompt as no } from "./src/prompt/index.mjs";
45
45
  import { Dropdown as Ao } from "./src/dropdown/index.mjs";
46
- import { default as To } from "./src/pro-table/pro-table.vue.mjs";
46
+ import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
47
47
  import { default as Co } 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
49
  import { default as go } from "./src/pro-table/components/table-image.vue.mjs";
@@ -58,10 +58,10 @@ import { default as Ko } from "./src/ap-form/items/select/index.vue.mjs";
58
58
  import { default as Oo } from "./src/ap-form/items/switch/index.vue.mjs";
59
59
  import { default as Wo } from "./src/ap-form/items/checkbox/index.vue.mjs";
60
60
  import { default as Uo } from "./src/ap-form/items/text/password.vue.mjs";
61
- import { ApForm as _o } from "./src/ap-form/index.mjs";
62
- import { default as jo } from "./src/ap-form/ap-form-item.vue.mjs";
63
- import { default as Jo } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
64
- import { default as Zo } from "./src/ap-form/ap-form-list.vue.mjs";
61
+ import { ApForm as $o } from "./src/ap-form/index.mjs";
62
+ import { default as qo } from "./src/ap-form/ap-form-item.vue.mjs";
63
+ import { default as Qo } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
64
+ import { default as _o } from "./src/ap-form/ap-form-list.vue.mjs";
65
65
  import { default as or } from "./src/ap-form/search-form/index.vue.mjs";
66
66
  import { default as tr } from "./src/ap-form/modal-form/index.vue.mjs";
67
67
  import { ApField as pr } from "./src/ap-field/index.mjs";
@@ -70,7 +70,7 @@ import { default as sr } from "./src/ap-field/checkbox/index.vue.mjs";
70
70
  import { default as xr } 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 Ar } from "./src/ap-field/radio/index.vue.mjs";
73
- import { default as Tr } from "./src/ap-field/switch/index.vue.mjs";
73
+ import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
74
74
  import { default as Cr } 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
76
  import { default as gr } from "./src/ap-field/select/index.vue.mjs";
@@ -85,9 +85,9 @@ import { default as Yr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
85
85
  import { default as Hr } from "./src/ap-action/item-dropdown/index.vue.mjs";
86
86
  import { default as zr } from "./src/ap-action/group/index.vue.mjs";
87
87
  import { generateTableList as Vr } from "./src/ap-custom-column/utils.mjs";
88
- import { useCacheColumnSetting as $r } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
89
- import { default as qr } from "./src/ap-custom-column/custom-column.vue.mjs";
90
- import { default as Qr } from "./src/ap-custom-column/column-select.vue.mjs";
88
+ import { useCacheColumnSetting as jr } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
89
+ import { default as Jr } from "./src/ap-custom-column/custom-column.vue.mjs";
90
+ import { default as Zr } from "./src/ap-custom-column/column-select.vue.mjs";
91
91
  import { DictCode as et } from "./src/work-order-modal/interfaces.mjs";
92
92
  import { createWorkOrderModal as rt } from "./src/work-order-modal/createWorkOrder.mjs";
93
93
  import { default as at } from "./src/work-order-modal/work-order-modal.vue.mjs";
@@ -97,14 +97,13 @@ import { default as dt } from "./src/ap-layout/ap-info-layout/ap-info-layout.vue
97
97
  import { NeedNameKeyDefault as it } from "./src/ap-upload/apUploadTypes.mjs";
98
98
  import { default as ut } from "./src/ap-upload/apUpload.vue.mjs";
99
99
  import { default as ct } from "./src/ap-download/ap-download.vue.mjs";
100
- import { _ApTitle as Ft } from "./src/business/index.mjs";
101
- import { default as St } from "./src/business/title/ApTitle.vue.mjs";
102
- import { useTablePaging as bt } from "./src/ap-table/hooks/use-table-paging.mjs";
103
- import { default as Pt } from "./src/ap-table/ap-table.vue.mjs";
104
- import { default as Rt } from "./src/editable-table/index.vue.mjs";
105
- import { default as Mt } from "./src/editable-table/form-item.vue.mjs";
106
- import { useMessage as wt } from "./src/hooks/useMessage.mjs";
107
- import { useControllableValue as kt } from "./src/hooks/useControllableValue.mjs";
100
+ import { ApTitle as Tt } from "./src/business/index.mjs";
101
+ import { useTablePaging as St } from "./src/ap-table/hooks/use-table-paging.mjs";
102
+ import { default as bt } from "./src/ap-table/ap-table.vue.mjs";
103
+ import { default as Pt } from "./src/editable-table/index.vue.mjs";
104
+ import { default as Rt } from "./src/editable-table/form-item.vue.mjs";
105
+ import { useMessage as Mt } from "./src/hooks/useMessage.mjs";
106
+ import { useControllableValue as wt } from "./src/hooks/useControllableValue.mjs";
108
107
  const p = {
109
108
  install: (r) => {
110
109
  for (const t in o) {
@@ -120,8 +119,8 @@ export {
120
119
  Hr as ApActionItemDropdown,
121
120
  Xr as ApActionItemModal,
122
121
  Yr as ApActionItemPopconfirm,
123
- qr as ApCustomColumn,
124
- Qr as ApCustomSelect,
122
+ Jr as ApCustomColumn,
123
+ Zr as ApCustomSelect,
125
124
  ct as ApDownload,
126
125
  pr as ApField,
127
126
  sr as ApFieldCheckbox,
@@ -134,15 +133,15 @@ export {
134
133
  hr as ApFieldSegmented,
135
134
  gr as ApFieldSelect,
136
135
  vr as ApFieldSlider,
137
- Tr as ApFieldSwitch,
136
+ Fr as ApFieldSwitch,
138
137
  mr as ApFieldText,
139
138
  Cr as ApFieldTextArea,
140
- _o as ApForm,
141
- jo as ApFormItem,
139
+ $o as ApForm,
140
+ qo as ApFormItem,
142
141
  Wo as ApFormItemCheckbox,
143
142
  Go as ApFormItemDate,
144
143
  yo as ApFormItemDateRange,
145
- Jo as ApFormItemGroup,
144
+ Qo as ApFormItemGroup,
146
145
  Bo as ApFormItemNumber,
147
146
  Lo as ApFormItemRadio,
148
147
  Ko as ApFormItemSelect,
@@ -150,14 +149,14 @@ export {
150
149
  vo as ApFormItemText,
151
150
  ho as ApFormItemTextArea,
152
151
  Uo as ApFormItemTextPassword,
153
- Zo as ApFormList,
152
+ _o as ApFormList,
154
153
  tr as ApFormModalForm,
155
154
  or as ApFormSearchForm,
156
155
  dt as ApInfoLayout,
157
- Pt as ApTable,
156
+ bt as ApTable,
158
157
  ft as ApTag,
159
158
  lt as ApTagGroup,
160
- St as ApTitle,
159
+ Tt as ApTitle,
161
160
  ut as ApUpload,
162
161
  De as ApiCascader,
163
162
  ve as ApiRadioGroup,
@@ -165,13 +164,13 @@ export {
165
164
  Be as ApiTransfer,
166
165
  Ge as ApiTree,
167
166
  Ke as ApiTreeSelect,
168
- je as BaseButton,
167
+ qe as BaseButton,
169
168
  ao as BaseModal,
170
169
  V as BasicArrow,
171
- _ as BasicHelp,
172
- $ as BasicTitle,
170
+ $ as BasicHelp,
171
+ j as BasicTitle,
173
172
  L as CollapseContainer,
174
- q as CollapseTransition,
173
+ J as CollapseTransition,
175
174
  B as ConfigProvider,
176
175
  so as CountdownButton,
177
176
  xo as CountdownInput,
@@ -181,19 +180,19 @@ export {
181
180
  et as DictCode,
182
181
  Ao as Dropdown,
183
182
  Io as EditTableHeaderIcon,
184
- Rt as EditableTable,
185
- Mt as EditableTableFormItem,
186
- Q as ExpandTransition,
187
- Z as ExpandXTransition,
183
+ Pt as EditableTable,
184
+ Rt as EditableTableFormItem,
185
+ Z as ExpandTransition,
186
+ _ as ExpandXTransition,
188
187
  ee as FadeTransition,
189
188
  ge as Field,
190
189
  l as Icon,
191
190
  Y as IconPicker,
192
191
  Ue as ModalButton,
193
192
  it as NeedNameKeyDefault,
194
- _e as PopConfirmButton,
193
+ $e as PopConfirmButton,
195
194
  Le as ProForm,
196
- To as ProTable,
195
+ Fo as ProTable,
197
196
  Oe as ProTableForm,
198
197
  We as ProTableFormInner,
199
198
  ye as RadioButtonGroup,
@@ -209,12 +208,11 @@ export {
209
208
  le as SlideXTransition,
210
209
  se as SlideYReverseTransition,
211
210
  de as SlideYTransition,
212
- Je as StrengthMeter,
211
+ Qe as StrengthMeter,
213
212
  s as SvgIcon,
214
213
  Co as TableAction,
215
214
  go as TableImg,
216
215
  at as WorkOrderModal,
217
- Ft as _ApTitle,
218
216
  Gr as adminToken,
219
217
  Nr as aplusToken,
220
218
  S as buildLocaleContext,
@@ -232,23 +230,23 @@ export {
232
230
  c as keysOf,
233
231
  b as localeContextKey,
234
232
  v as namespaceContextKey,
235
- T as provideGlobalConfig,
233
+ F as provideGlobalConfig,
236
234
  u as tableDefaultConfig,
237
235
  g as translate,
238
- $r as useCacheColumnSetting,
236
+ jr as useCacheColumnSetting,
239
237
  ce as useComponentRegister,
240
- kt as useControllableValue,
238
+ wt as useControllableValue,
241
239
  ie as useDescription,
242
- Fe as useForm,
240
+ Te as useForm,
243
241
  M as useGetDerivedNamespace,
244
- F as useGlobalConfig,
242
+ T as useGlobalConfig,
245
243
  P as useLocale,
246
- wt as useMessage,
244
+ Mt as useMessage,
247
245
  oo as useModal,
248
- Ze as useModalContext,
246
+ _e as useModalContext,
249
247
  ro as useModalInner,
250
248
  h as useNamespace,
251
249
  Do as useTable,
252
- bt as useTablePaging,
250
+ St as useTablePaging,
253
251
  H as zhCn
254
252
  };
@@ -80,3 +80,14 @@ export type ApActionItemModalProps = ApActionItemProps & {
80
80
  export type ApActionItemPopconfirmProps = ApActionItemProps & {
81
81
  popconfirmProps?: PopconfirmProps;
82
82
  };
83
+ /**
84
+ * ApActionItem支持的插槽
85
+ */
86
+ export type ApActionItemSlots = {
87
+ default?: any;
88
+ trigger?: (options: {
89
+ loading: boolean;
90
+ disabled: boolean;
91
+ onClick: (e: MouseEvent) => void;
92
+ }) => any;
93
+ };
@@ -1,4 +1,4 @@
1
- import { ApActionItemProps, ActionColor } from '../interface';
1
+ import { ApActionItemProps, ApActionItemSlots, ActionColor } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
 
4
4
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemProps>, {
@@ -16,9 +16,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
16
16
  disabled: boolean;
17
17
  visible: boolean;
18
18
  loading: boolean;
19
- }, {}>, {
20
- default?(_: {}): any;
21
- }>;
19
+ }, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
22
20
  export default _default;
23
21
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
22
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,10 @@
1
- import { defineComponent as C, ref as b, unref as n, computed as r, openBlock as t, createElementBlock as c, normalizeClass as v, createBlock as d, createCommentVNode as u, renderSlot as B, isVNode as A, resolveDynamicComponent as x, toDisplayString as h } from "vue";
1
+ import { defineComponent as y, ref as v, unref as l, computed as d, renderSlot as u, openBlock as t, createElementBlock as c, normalizeClass as B, createBlock as m, createCommentVNode as f, isVNode as A, resolveDynamicComponent as h, toDisplayString as I } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import I from "ant-design-vue/es/button/LoadingIcon";
3
+ import L from "ant-design-vue/es/button/LoadingIcon";
4
4
  import "../style/item.css";
5
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
6
- import { useGlobalConfig as N } from "../../config-provider/hooks/use-global-config.mjs";
7
- const _ = { key: 1 }, G = /* @__PURE__ */ C({
5
+ import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
6
+ import { useGlobalConfig as x } from "../../config-provider/hooks/use-global-config.mjs";
7
+ const D = { key: 1 }, G = /* @__PURE__ */ y({
8
8
  name: "ApActionItem",
9
9
  __name: "index",
10
10
  props: {
@@ -16,33 +16,39 @@ const _ = { key: 1 }, G = /* @__PURE__ */ C({
16
16
  onClick: {},
17
17
  loading: { type: Boolean, default: !1 }
18
18
  },
19
- setup(m) {
20
- const e = m, { b: f, m: s, bm: p } = L("action-item"), g = N("uiMode", "aplus"), l = b(!1);
21
- function k(o) {
19
+ setup(p) {
20
+ const o = p, { b: g, m: s, bm: b } = N("action-item"), k = x("uiMode", "aplus"), a = v(!1);
21
+ function r(e) {
22
22
  var i;
23
- n(a) || e.disabled || ((i = e.onClick) == null || i.call(e, o), e.onAction && (l.value = !0, e.onAction(o).finally(() => l.value = !1)));
23
+ l(n) || o.disabled || ((i = o.onClick) == null || i.call(o, e), o.onAction && (a.value = !0, o.onAction(e).finally(() => a.value = !1)));
24
24
  }
25
- const a = r(() => e.loading || n(l)), y = r(() => [
26
- f(),
27
- p(n(g), e.color),
28
- e.disabled ? s("disabled") : null,
29
- a.value ? s("loading") : null
25
+ const n = d(() => o.loading || l(a)), C = d(() => [
26
+ g(),
27
+ b(l(k), o.color),
28
+ o.disabled ? s("disabled") : null,
29
+ n.value ? s("loading") : null
30
30
  ].filter(Boolean));
31
- return (o, i) => o.visible ? (t(), c("span", {
32
- key: 0,
33
- onClick: k,
34
- class: v(y.value)
35
- }, [
36
- a.value ? (t(), d(n(I), {
31
+ return (e, i) => u(e.$slots, "trigger", {
32
+ loading: n.value,
33
+ disabled: e.disabled,
34
+ onClick: r
35
+ }, () => [
36
+ e.visible ? (t(), c("span", {
37
37
  key: 0,
38
- prefixCls: "btn",
39
- existIcon: !1,
40
- loading: ""
41
- })) : u("", !0),
42
- B(o.$slots, "default", {}, () => [
43
- A(o.text) ? (t(), d(x(o.text), { key: 0 })) : (t(), c("span", _, h(o.text || ""), 1))
44
- ])
45
- ], 2)) : u("", !0);
38
+ onClick: r,
39
+ class: B(C.value)
40
+ }, [
41
+ n.value ? (t(), m(l(L), {
42
+ key: 0,
43
+ prefixCls: "btn",
44
+ existIcon: !1,
45
+ loading: ""
46
+ })) : f("", !0),
47
+ u(e.$slots, "default", {}, () => [
48
+ A(e.text) ? (t(), m(h(e.text), { key: 0 })) : (t(), c("span", D, I(e.text || ""), 1))
49
+ ])
50
+ ], 2)) : f("", !0)
51
+ ]);
46
52
  }
47
53
  });
48
54
  export {
@@ -1,8 +1,8 @@
1
- import { ApActionItemModalProps, ActionColor } from '../interface';
1
+ import { ApActionItemModalProps, ApActionItemSlots, ActionColor } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { ModalFuncProps } from 'ant-design-vue';
4
4
 
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemModalProps>, {
6
6
  color: string;
7
7
  disabled: boolean;
8
8
  visible: boolean;
@@ -20,7 +20,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
20
20
  visible: boolean;
21
21
  loading: boolean;
22
22
  modalProps: Omit< ModalFuncProps, "type">;
23
- }, {}>;
23
+ }, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
24
24
  export default _default;
25
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
26
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -39,3 +39,8 @@ type __VLS_WithDefaults<P, D> = {
39
39
  type __VLS_Prettify<T> = {
40
40
  [K in keyof T]: T[K];
41
41
  } & {};
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as i, openBlock as m, createBlock as c, mergeProps as p, unref as d } from "vue";
2
- import { Modal as f } from "ant-design-vue";
1
+ import { defineComponent as c, useSlots as m, openBlock as d, createBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as B } from "vue";
2
+ import { Modal as x } from "ant-design-vue";
3
3
  import "../item/index.vue.mjs";
4
- import { omit as s } from "lodash-unified";
5
- import u from "../item/index.vue2.mjs";
6
- const P = /* @__PURE__ */ i({
4
+ import { omit as g } from "lodash-unified";
5
+ import h from "../item/index.vue2.mjs";
6
+ const M = /* @__PURE__ */ c({
7
7
  name: "ApActionItemModal",
8
8
  __name: "index",
9
9
  props: {
@@ -16,20 +16,27 @@ const P = /* @__PURE__ */ i({
16
16
  loading: { type: Boolean, default: !1 },
17
17
  modalProps: { default: () => ({}) }
18
18
  },
19
- setup(l) {
20
- const o = l;
21
- async function r(e) {
22
- f.confirm({
19
+ setup(a) {
20
+ const l = m(), o = a;
21
+ async function i(t) {
22
+ x.confirm({
23
23
  ...o.modalProps,
24
24
  onOk: async () => {
25
- var n, t, a;
26
- (t = (n = o.modalProps).onOk) == null || t.call(n), await ((a = o.onAction) == null ? void 0 : a.call(o, e));
25
+ var n, r, e;
26
+ (r = (n = o.modalProps).onOk) == null || r.call(n), await ((e = o.onAction) == null ? void 0 : e.call(o, t));
27
27
  }
28
28
  });
29
29
  }
30
- return (e, n) => (m(), c(u, p(d(s)(o, ["modalProps", "onAction"]), { onAction: r }), null, 16));
30
+ return (t, n) => (d(), p(h, f(u(g)(o, ["modalProps", "onAction"]), { onAction: i }), _({ _: 2 }, [
31
+ A(l, (r, e) => ({
32
+ name: e,
33
+ fn: P((s) => [
34
+ y(t.$slots, e, k(B(s || {})))
35
+ ])
36
+ }))
37
+ ]), 1040));
31
38
  }
32
39
  });
33
40
  export {
34
- P as default
41
+ M as default
35
42
  };
@@ -1,4 +1,4 @@
1
- import { ApActionItemPopconfirmProps, ActionColor } from '../interface';
1
+ import { ApActionItemPopconfirmProps, ApActionItemSlots, ActionColor } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
3
3
  import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
4
4
  import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
@@ -10,7 +10,7 @@ import { LiteralUnion } from 'ant-design-vue/es/_util/type';
10
10
  import { PresetColorType } from 'ant-design-vue/es/_util/colors';
11
11
  import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
12
12
 
13
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
13
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApActionItemPopconfirmProps>, {
14
14
  color: string;
15
15
  disabled: boolean;
16
16
  visible: boolean;
@@ -322,7 +322,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
322
322
  onOpenChange: PropType<(vis: boolean) => void>;
323
323
  'onUpdate:open': PropType<(vis: boolean) => void>;
324
324
  }>>;
325
- }, {}>;
325
+ }, {}>, Readonly<ApActionItemSlots> & ApActionItemSlots>;
326
326
  export default _default;
327
327
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
328
328
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -341,3 +341,8 @@ type __VLS_WithDefaults<P, D> = {
341
341
  type __VLS_Prettify<T> = {
342
342
  [K in keyof T]: T[K];
343
343
  } & {};
344
+ type __VLS_WithTemplateSlots<T, S> = T & {
345
+ new (): {
346
+ $slots: S;
347
+ };
348
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, openBlock as f, createBlock as c, unref as i, mergeProps as l, withCtx as s, createVNode as d, normalizeProps as u, guardReactiveProps as P } from "vue";
2
- import { Popconfirm as _ } from "ant-design-vue";
1
+ import { defineComponent as d, useSlots as u, openBlock as P, createBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
2
+ import { Popconfirm as b } from "ant-design-vue";
3
3
  import "../item/index.vue.mjs";
4
- import { omit as y } from "lodash-unified";
5
- import x from "../item/index.vue2.mjs";
6
- const h = /* @__PURE__ */ m({
4
+ import { omit as g } from "lodash-unified";
5
+ import h from "../item/index.vue2.mjs";
6
+ const I = /* @__PURE__ */ d({
7
7
  name: "ApActionItemPopconfirm",
8
8
  __name: "index",
9
9
  props: {
@@ -16,24 +16,31 @@ const h = /* @__PURE__ */ m({
16
16
  loading: { type: Boolean, default: !1 },
17
17
  popconfirmProps: { default: () => ({}) }
18
18
  },
19
- setup(p) {
20
- const o = p;
21
- async function a(e) {
22
- var n, r, t;
23
- (r = (n = o.popconfirmProps).onConfirm) == null || r.call(n, e), await ((t = o.onAction) == null ? void 0 : t.call(o, e));
19
+ setup(l) {
20
+ const f = u(), o = l;
21
+ async function m(n) {
22
+ var r, t, e;
23
+ (t = (r = o.popconfirmProps).onConfirm) == null || t.call(r, n), await ((e = o.onAction) == null ? void 0 : e.call(o, n));
24
24
  }
25
- return (e, n) => (f(), c(i(_), l(o.popconfirmProps, {
26
- onConfirm: a,
25
+ return (n, r) => (P(), _(i(b), y(o.popconfirmProps, {
26
+ onConfirm: m,
27
27
  disabled: !o.popconfirmProps,
28
28
  "overlay-style": { zIndex: 1060 }
29
29
  }), {
30
- default: s(() => [
31
- d(x, u(P(i(y)(o, ["popconfirmProps", "onAction"]))), null, 16)
30
+ default: a(() => [
31
+ C(h, p(s(i(g)(o, ["popconfirmProps", "onAction"]))), x({ _: 2 }, [
32
+ A(f, (t, e) => ({
33
+ name: e,
34
+ fn: a((c) => [
35
+ B(n.$slots, e, p(s(c || {})))
36
+ ])
37
+ }))
38
+ ]), 1040)
32
39
  ]),
33
- _: 1
40
+ _: 3
34
41
  }, 16, ["disabled"]));
35
42
  }
36
43
  });
37
44
  export {
38
- h as default
45
+ I as default
39
46
  };
@@ -10,6 +10,8 @@ const E = /* @__PURE__ */ g({
10
10
  __name: "index",
11
11
  props: {
12
12
  mode: { default: "edit" },
13
+ class: {},
14
+ style: {},
13
15
  defaultValue: {},
14
16
  value: {},
15
17
  onChange: {},
@@ -11,6 +11,8 @@ const Z = /* @__PURE__ */ b({
11
11
  __name: "index",
12
12
  props: {
13
13
  mode: { default: "edit" },
14
+ class: {},
15
+ style: {},
14
16
  dropdownClassName: {},
15
17
  dropdownAlign: {},
16
18
  popupStyle: {},
@@ -12,6 +12,8 @@ const de = /* @__PURE__ */ x({
12
12
  __name: "index",
13
13
  props: {
14
14
  mode: { default: "edit" },
15
+ class: {},
16
+ style: {},
15
17
  id: {},
16
18
  defaultPickerValue: {},
17
19
  placeholder: {},
@@ -9,6 +9,8 @@ import { InputPasswordProps } from './text/input-password-props';
9
9
  export type FieldMode = 'read' | 'edit';
10
10
  export type BasicApFieldProps<FieldPropsType = any> = {
11
11
  mode?: FieldMode;
12
+ class?: unknown;
13
+ style?: unknown;
12
14
  } & FieldPropsType;
13
15
  export type ApFieldTextProps = BasicApFieldProps<InputProps> & {
14
16
  emptyText?: string;
@@ -13,6 +13,8 @@ const Y = /* @__PURE__ */ h({
13
13
  __name: "index",
14
14
  props: {
15
15
  mode: {},
16
+ class: {},
17
+ style: {},
16
18
  size: {},
17
19
  bordered: { type: Boolean, default: !0 },
18
20
  placeholder: {},
@@ -9,6 +9,8 @@ const j = /* @__PURE__ */ V({
9
9
  __name: "index",
10
10
  props: {
11
11
  mode: { default: "edit" },
12
+ class: {},
13
+ style: {},
12
14
  prefixCls: {},
13
15
  value: {},
14
16
  size: {},
@@ -25,10 +27,10 @@ const j = /* @__PURE__ */ V({
25
27
  },
26
28
  emits: ["update:value"],
27
29
  setup(c, { expose: v, emit: y }) {
28
- const t = c, g = y, u = i(), l = i((t == null ? void 0 : t.options) || []), { value: s, updateValue: x } = O(t, g), r = i(!1);
30
+ const t = c, g = y, l = i(), u = i((t == null ? void 0 : t.options) || []), { value: s, updateValue: x } = O(t, g), r = i(!1);
29
31
  q(() => {
30
32
  var e;
31
- t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => l.value = a).finally(() => {
33
+ t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => u.value = a).finally(() => {
32
34
  r.value = !1;
33
35
  }));
34
36
  });
@@ -37,18 +39,18 @@ const j = /* @__PURE__ */ V({
37
39
  const e = o(s);
38
40
  if (S(e))
39
41
  return t.emptyText;
40
- const a = (p = l.value) == null ? void 0 : p.find(
42
+ const a = (p = u.value) == null ? void 0 : p.find(
41
43
  (_) => e === F(_)
42
44
  );
43
45
  return N(a) || t.emptyText;
44
46
  });
45
47
  function b() {
46
48
  var e;
47
- (e = u.value) == null || e.focus();
49
+ (e = l.value) == null || e.focus();
48
50
  }
49
51
  function T() {
50
52
  var e;
51
- (e = u.value) == null || e.blur();
53
+ (e = l.value) == null || e.blur();
52
54
  }
53
55
  return v({
54
56
  focus: b,
@@ -62,9 +64,9 @@ const j = /* @__PURE__ */ V({
62
64
  })) : (n(), f(o(G), U({ key: 1 }, o(z)(t, ["value", "onUpdate:value", "options", "request"]), {
63
65
  value: o(s),
64
66
  "onUpdate:value": o(x),
65
- options: l.value,
67
+ options: u.value,
66
68
  ref_key: "radioGroupRef",
67
- ref: u
69
+ ref: l
68
70
  }), null, 16, ["value", "onUpdate:value", "options"]))
69
71
  ], 64));
70
72
  }