@aplus-frontend/ui 0.0.13 → 0.0.14

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 (101) hide show
  1. package/es/index.mjs +53 -55
  2. package/es/src/ap-field/checkbox/index.vue.mjs +2 -0
  3. package/es/src/ap-field/date/index.vue.mjs +2 -0
  4. package/es/src/ap-field/date-range/index.vue.mjs +2 -0
  5. package/es/src/ap-field/interface.d.ts +2 -0
  6. package/es/src/ap-field/number/index.vue.mjs +2 -0
  7. package/es/src/ap-field/radio/index.vue.mjs +9 -7
  8. package/es/src/ap-field/rate/index.vue.mjs +4 -2
  9. package/es/src/ap-field/segmented/index.vue.mjs +15 -13
  10. package/es/src/ap-field/select/index.vue.mjs +18 -16
  11. package/es/src/ap-field/slider/index.vue.mjs +11 -9
  12. package/es/src/ap-field/switch/index.vue.mjs +10 -8
  13. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  14. package/es/src/ap-field/text/index.vue2.mjs +12 -10
  15. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  16. package/es/src/ap-field/text/password.vue.mjs +16 -14
  17. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  18. package/es/src/ap-field/text-area/index.vue.mjs +2 -0
  19. package/es/src/ap-table/constants.d.ts +715 -487
  20. package/es/src/ap-table/utils.d.ts +3 -3
  21. package/es/src/business/index.d.ts +2 -5
  22. package/es/src/business/index.mjs +4 -5
  23. package/es/src/business/title/ApTitle.vue.mjs +2 -48
  24. package/es/src/business/title/ApTitle.vue2.mjs +48 -2
  25. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  26. package/es/src/config-provider/config-provider-props.mjs +5 -6
  27. package/es/src/config-provider/config-provider.d.ts +11 -11
  28. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  29. package/es/src/config-provider/index.d.ts +31 -31
  30. package/es/src/description/description.vue.d.ts +1 -1
  31. package/es/src/description/index.d.ts +3 -3
  32. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  33. package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
  34. package/es/src/icon-picker/index.d.ts +26 -26
  35. package/es/src/index.mjs +50 -52
  36. package/es/src/modal/basic.vue.d.ts +1 -1
  37. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  38. package/es/src/modal/index.d.ts +2 -2
  39. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  40. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  41. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  42. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  43. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  44. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  45. package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
  46. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  47. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  48. package/es/src/pro-table/pro-table.vue.d.ts +1 -1
  49. package/es/src/scroll-bar/index.d.ts +12 -12
  50. package/es/src/utils/config-provider-preset.d.ts +12 -12
  51. package/lib/index.js +1 -1
  52. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  53. package/lib/src/ap-field/date/index.vue.js +1 -1
  54. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  55. package/lib/src/ap-field/interface.d.ts +2 -0
  56. package/lib/src/ap-field/number/index.vue.js +1 -1
  57. package/lib/src/ap-field/radio/index.vue.js +1 -1
  58. package/lib/src/ap-field/rate/index.vue.js +1 -1
  59. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  60. package/lib/src/ap-field/select/index.vue.js +1 -1
  61. package/lib/src/ap-field/slider/index.vue.js +1 -1
  62. package/lib/src/ap-field/switch/index.vue.js +1 -1
  63. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  64. package/lib/src/ap-field/text/index.vue2.js +1 -1
  65. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  66. package/lib/src/ap-field/text/password.vue.js +1 -1
  67. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  68. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  69. package/lib/src/ap-table/constants.d.ts +715 -487
  70. package/lib/src/ap-table/utils.d.ts +3 -3
  71. package/lib/src/business/index.d.ts +2 -5
  72. package/lib/src/business/index.js +1 -1
  73. package/lib/src/business/title/ApTitle.vue.js +1 -1
  74. package/lib/src/business/title/ApTitle.vue2.js +1 -1
  75. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  76. package/lib/src/config-provider/config-provider-props.js +1 -1
  77. package/lib/src/config-provider/config-provider.d.ts +11 -11
  78. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  79. package/lib/src/config-provider/index.d.ts +31 -31
  80. package/lib/src/description/description.vue.d.ts +1 -1
  81. package/lib/src/description/index.d.ts +3 -3
  82. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  83. package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
  84. package/lib/src/icon-picker/index.d.ts +26 -26
  85. package/lib/src/index.js +1 -1
  86. package/lib/src/modal/basic.vue.d.ts +1 -1
  87. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  88. package/lib/src/modal/index.d.ts +2 -2
  89. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  90. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  91. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  92. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  93. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  94. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  95. package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
  96. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  97. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  98. package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
  99. package/lib/src/scroll-bar/index.d.ts +12 -12
  100. package/lib/src/utils/config-provider-preset.d.ts +12 -12
  101. 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
  };
@@ -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
  }
@@ -8,6 +8,8 @@ const D = /* @__PURE__ */ v({
8
8
  __name: "index",
9
9
  props: {
10
10
  mode: { default: "edit" },
11
+ class: {},
12
+ style: {},
11
13
  prefixCls: {},
12
14
  count: { default: 5 },
13
15
  value: {},
@@ -30,7 +32,7 @@ const D = /* @__PURE__ */ v({
30
32
  },
31
33
  emits: ["update:value"],
32
34
  setup(r, { expose: u, emit: n }) {
33
- const a = r, l = b(), d = n, s = h(), { value: f, updateValue: c } = V(a, d), i = y(() => a.mode === "read" ? !0 : a.disabled);
35
+ const a = r, l = b(), s = n, d = h(), { value: f, updateValue: c } = V(a, s), i = y(() => a.mode === "read" ? !0 : a.disabled);
34
36
  function p() {
35
37
  var e, t;
36
38
  (t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
@@ -49,7 +51,7 @@ const D = /* @__PURE__ */ v({
49
51
  ref_key: "rateRef",
50
52
  ref: l
51
53
  }), x({ _: 2 }, [
52
- s.character ? {
54
+ d.character ? {
53
55
  name: "character",
54
56
  fn: g(() => [
55
57
  k(e.$slots, "character")
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as c, useSlots as B, onMounted as U, computed as V, unref as o, createVNode as s, Fragment as a, openBlock as r, createBlock as m, createElementBlock as _, resolveDynamicComponent as h, mergeProps as N, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
1
+ import { defineComponent as S, ref as c, useSlots as B, onMounted as U, computed as V, unref as a, createVNode as s, Fragment as o, openBlock as r, createBlock as m, createElementBlock as _, resolveDynamicComponent as h, mergeProps as N, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
2
2
  import { Spin as T, Segmented as R } from "ant-design-vue";
3
3
  import { isFunction as v, isUndefined as w, isString as A, isNumber as D, omit as E } from "lodash-unified";
4
4
  import "../../hooks/index.mjs";
@@ -10,6 +10,8 @@ const J = /* @__PURE__ */ S({
10
10
  mode: {
11
11
  default: "edit"
12
12
  },
13
+ class: {},
14
+ style: {},
13
15
  prefixCls: {},
14
16
  options: {},
15
17
  block: {
@@ -46,29 +48,29 @@ const J = /* @__PURE__ */ S({
46
48
  });
47
49
  const C = V(() => {
48
50
  var f;
49
- const t = o(p);
51
+ const t = a(p);
50
52
  if (w(t))
51
- return s(a, null, [e.emptyText]);
52
- const l = (f = o(i)) == null ? void 0 : f.find((u) => u === t || (u == null ? void 0 : u.value) === t);
53
+ return s(o, null, [e.emptyText]);
54
+ const l = (f = a(i)) == null ? void 0 : f.find((u) => u === t || (u == null ? void 0 : u.value) === t);
53
55
  if (A(l) || D(l))
54
- return s(a, null, [l]);
56
+ return s(o, null, [l]);
55
57
  const n = (l == null ? void 0 : l.label) || x.label;
56
- return v(n) ? s(a, null, [n == null ? void 0 : n({
58
+ return v(n) ? s(o, null, [n == null ? void 0 : n({
57
59
  ...l
58
- })]) : s(a, null, [n || e.emptyText]);
60
+ })]) : s(o, null, [n || e.emptyText]);
59
61
  });
60
- return (t, l) => d.value ? (r(), m(o(T), {
62
+ return (t, l) => d.value ? (r(), m(a(T), {
61
63
  key: 0,
62
64
  size: "small"
63
- })) : (r(), _(a, {
65
+ })) : (r(), _(o, {
64
66
  key: 1
65
67
  }, [t.mode === "read" ? (r(), m(h(C.value), {
66
68
  key: 0
67
- })) : (r(), m(o(R), N({
69
+ })) : (r(), m(a(R), N({
68
70
  key: 1
69
- }, o(E)(e, ["onUpdate:value", "value", "defaultValue", "options"]), {
70
- value: o(p),
71
- "onUpdate:value": o(b),
71
+ }, a(E)(e, ["onUpdate:value", "value", "defaultValue", "options"]), {
72
+ value: a(p),
73
+ "onUpdate:value": a(b),
72
74
  options: i.value
73
75
  }), {
74
76
  label: q((n) => [z(t.$slots, "label", F(P(n)))]),
@@ -9,6 +9,8 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
9
9
  __name: "index",
10
10
  props: {
11
11
  mode: { default: "edit" },
12
+ class: {},
13
+ style: {},
12
14
  defaultValue: {},
13
15
  notFoundContent: {},
14
16
  suffixIcon: {},
@@ -95,20 +97,20 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
95
97
  return;
96
98
  r += 1;
97
99
  const t = r;
98
- i.value = [], l.value = !0, e.request(o).then((n) => {
99
- r === t && (i.value = n);
100
+ i.value = [], n.value = !0, e.request(o).then((l) => {
101
+ r === t && (i.value = l);
100
102
  }).finally(() => {
101
- l.value = !1;
103
+ n.value = !1;
102
104
  });
103
- }, 300), e = y, i = c((e == null ? void 0 : e.options) || []), d = c(), l = c((e == null ? void 0 : e.loading) || !1), C = g;
105
+ }, 300), e = y, i = c((e == null ? void 0 : e.options) || []), d = c(), n = c((e == null ? void 0 : e.loading) || !1), C = g;
104
106
  k(() => {
105
107
  if (h(e.request)) {
106
- l.value = !0, r += 1;
108
+ n.value = !0, r += 1;
107
109
  const o = r;
108
110
  e.request().then((t) => {
109
111
  o === r && (i.value = t);
110
112
  }).finally(() => {
111
- l.value = !1;
113
+ n.value = !1;
112
114
  });
113
115
  }
114
116
  });
@@ -118,21 +120,21 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
118
120
  return e.emptyText;
119
121
  if (z(o))
120
122
  return o.map(
121
- (n) => {
123
+ (l) => {
122
124
  var u;
123
- return (u = a(i).find((s) => s.value === n)) == null ? void 0 : u.label;
125
+ return (u = a(i).find((s) => s.value === l)) == null ? void 0 : u.label;
124
126
  }
125
127
  ).filter(Boolean).join("、") || e.emptyText;
126
- const t = a(i).find((n) => n.value === o);
128
+ const t = a(i).find((l) => l.value === o);
127
129
  return (t == null ? void 0 : t.label) || e.emptyText;
128
130
  }), F = p(() => {
129
131
  const o = !!(e != null && e.showSearch), t = e.searchMode;
130
- let n = {};
131
- return o && (n = t === "request" ? {
132
+ let l = {};
133
+ return o && (l = t === "request" ? {
132
134
  showArrow: !1,
133
135
  defaultActiveFirstOption: !1,
134
136
  onSearch: B,
135
- notFoundContent: l.value ? void 0 : null
137
+ notFoundContent: n.value ? void 0 : null
136
138
  } : {
137
139
  showArrow: !0,
138
140
  filterOption: K(e == null ? void 0 : e.filterOption) ? S : e == null ? void 0 : e.filterOption
@@ -147,7 +149,7 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
147
149
  "searchMode"
148
150
  ])
149
151
  ),
150
- ...n
152
+ ...l
151
153
  };
152
154
  });
153
155
  function I() {
@@ -171,15 +173,15 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
171
173
  value: a(f),
172
174
  "onUpdate:value": a(b),
173
175
  options: i.value,
174
- loading: l.value
176
+ loading: n.value
175
177
  }), q({ _: 2 }, [
176
- N(o.$slots, (n, u) => ({
178
+ N(o.$slots, (l, u) => ({
177
179
  name: u,
178
180
  fn: v((s) => [
179
181
  _(o.$slots, u, R(U(s || {})))
180
182
  ])
181
183
  })),
182
- l.value ? {
184
+ n.value ? {
183
185
  name: "notFoundContent",
184
186
  fn: v(() => [
185
187
  D(a(j), { size: "small" })
@@ -8,6 +8,8 @@ const I = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  props: {
10
10
  mode: {},
11
+ class: {},
12
+ style: {},
11
13
  id: {},
12
14
  prefixCls: {},
13
15
  tooltipPrefixCls: {},
@@ -39,30 +41,30 @@ const I = /* @__PURE__ */ x({
39
41
  emptyText: { default: "--" }
40
42
  },
41
43
  emits: ["update:value"],
42
- setup(p, { expose: i, emit: s }) {
43
- const d = g(), a = k(), l = p, f = s, { value: r, updateValue: m } = E(
44
- l,
44
+ setup(p, { expose: s, emit: i }) {
45
+ const d = g(), l = k(), a = p, f = i, { value: r, updateValue: m } = E(
46
+ a,
45
47
  f
46
48
  ), c = C(() => {
47
49
  const e = o(r);
48
- return w(e) ? l.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
50
+ return w(e) ? a.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
49
51
  });
50
52
  function v() {
51
53
  var e, t;
52
- (t = (e = a.value) == null ? void 0 : e.focus) == null || t.call(e);
54
+ (t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
53
55
  }
54
56
  function y() {
55
57
  var e, t;
56
- (t = (e = a.value) == null ? void 0 : e.blur) == null || t.call(e);
58
+ (t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
57
59
  }
58
- return i({
60
+ return s({
59
61
  focus: v,
60
62
  blur: y
61
63
  }), (e, t) => e.mode === "read" ? (u(), S(_, { key: 0 }, [
62
64
  P(T(c.value), 1)
63
65
  ], 64)) : (u(), V(o(N), b(
64
66
  { key: 1 },
65
- o(D)(l, [
67
+ o(D)(a, [
66
68
  "value",
67
69
  "onUpdate:value",
68
70
  "mode",
@@ -73,7 +75,7 @@ const I = /* @__PURE__ */ x({
73
75
  value: o(r),
74
76
  "onUpdate:value": o(m),
75
77
  ref_key: "sliderRef",
76
- ref: a
78
+ ref: l
77
79
  }
78
80
  ), h({ _: 2 }, [
79
81
  F(d, (L, n) => ({
@@ -9,6 +9,8 @@ const J = /* @__PURE__ */ F({
9
9
  __name: "index",
10
10
  props: {
11
11
  mode: {},
12
+ class: {},
13
+ style: {},
12
14
  id: {},
13
15
  prefixCls: {},
14
16
  size: {
@@ -79,9 +81,9 @@ const J = /* @__PURE__ */ F({
79
81
  await n.onAction(e) && a(e);
80
82
  }
81
83
  const $ = D(() => {
82
- var t, d;
84
+ var d, t;
83
85
  const e = o(l);
84
- return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((t = c.checkedChildren) == null ? void 0 : t.call(c)) || `${n.checkedValue}`]) : u(s, null, [n.unCheckedChildren || ((d = c.unCheckedChildren) == null ? void 0 : d.call(c)) || `${n.unCheckedValue}`]);
86
+ return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((d = c.checkedChildren) == null ? void 0 : d.call(c)) || `${n.checkedValue}`]) : u(s, null, [n.unCheckedChildren || ((t = c.unCheckedChildren) == null ? void 0 : t.call(c)) || `${n.unCheckedValue}`]);
85
87
  });
86
88
  return (e, r) => e.mode === "read" ? (h(), k(T($.value), {
87
89
  key: 0
@@ -95,9 +97,9 @@ const J = /* @__PURE__ */ F({
95
97
  loading: e.loading ?? i.value
96
98
  }), g({
97
99
  _: 2
98
- }, [V(c, (t, d) => ({
99
- name: d,
100
- fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
100
+ }, [V(c, (d, t) => ({
101
+ name: t,
102
+ fn: C((m) => [v(e.$slots, t, B(w(m || {})))])
101
103
  }))]), 1040, ["checked", "loading"])) : (h(), k(o(K), p({
102
104
  key: 1
103
105
  }, e.confirm || {}, {
@@ -109,9 +111,9 @@ const J = /* @__PURE__ */ F({
109
111
  loading: e.loading ?? i.value
110
112
  }), g({
111
113
  _: 2
112
- }, [V(c, (t, d) => ({
113
- name: d,
114
- fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
114
+ }, [V(c, (d, t) => ({
115
+ name: t,
116
+ fn: C((m) => [v(e.$slots, t, B(w(m || {})))])
115
117
  }))]), 1040, ["checked", "loading"])]),
116
118
  _: 3
117
119
  }, 16))], 64));
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
34
34
  }>>> & {
35
35
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
36
36
  }, {
37
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
37
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
38
38
  mode: FieldMode;
39
39
  bordered: boolean;
40
40
  allowClear: boolean;