@aplus-frontend/ui 0.0.7 → 0.0.9
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.
- package/es/index.mjs +102 -98
- package/es/src/ap-field/date/index.vue.d.ts +2 -2
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/index.d.ts +3 -1
- package/es/src/ap-field/index.mjs +7 -3
- package/es/src/ap-field/interface.d.ts +12 -1
- package/es/src/ap-field/rate/index.vue.d.ts +64 -0
- package/es/src/ap-field/rate/index.vue.mjs +64 -0
- package/es/src/ap-field/rate/index.vue2.mjs +4 -0
- package/es/src/ap-field/segmented/index.vue.d.ts +27 -4
- package/es/src/ap-field/segmented/index.vue.mjs +29 -25
- package/es/src/ap-field/select/index.vue.d.ts +5 -2
- package/es/src/ap-field/select/index.vue.mjs +46 -37
- package/es/src/ap-field/text/index.vue.d.ts +2 -2
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/items/index.d.ts +2 -2
- package/es/src/ap-form/items/index.mjs +4 -1
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/text/index.d.ts +8 -0
- package/es/src/ap-form/items/text/index.mjs +10 -0
- package/es/src/ap-form/items/text/index.vue.mjs +2 -93
- package/es/src/ap-form/items/text/index.vue2.mjs +93 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/es/src/ap-form/items/text/password.vue.mjs +83 -0
- package/es/src/ap-form/items/text/password.vue2.mjs +4 -0
- package/es/src/ap-form/search-form/index.vue.mjs +53 -53
- package/es/src/ap-table/ap-table.vue.d.ts +2 -1
- package/es/src/ap-table/ap-table.vue.mjs +71 -70
- package/es/src/ap-table/constants.d.ts +3264 -903
- package/es/src/ap-table/constants.mjs +33 -30
- package/es/src/ap-table/interface.d.ts +11 -3
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/index.mjs +94 -90
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +12 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +64 -0
- package/lib/src/ap-field/rate/index.vue.js +1 -0
- package/lib/src/ap-field/rate/index.vue2.js +1 -0
- package/lib/src/ap-field/segmented/index.vue.d.ts +27 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +5 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/index.d.ts +2 -2
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/text/index.d.ts +8 -0
- package/lib/src/ap-form/items/text/index.js +1 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/lib/src/ap-form/items/text/password.vue.js +1 -0
- package/lib/src/ap-form/items/text/password.vue2.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +3264 -903
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/interface.d.ts +11 -3
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { configProviderProps as x } from "./src/config-provider/config-provider-
|
|
|
5
5
|
import { configProviderContextKey as n, tableDefaultConfig as u } from "./src/config-provider/constants.mjs";
|
|
6
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 g, translate as b, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { defaultNamespace as
|
|
9
|
-
import { ConfigProvider as
|
|
8
|
+
import { defaultNamespace as R, namespaceContextKey as v, useGetDerivedNamespace as M, useNamespace as h } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as B } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as G } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as X, ScrollContainer as K } from "./src/container/index.mjs";
|
|
@@ -22,9 +22,9 @@ import { useComponentRegister as Fo } from "./src/pro-form/hooks/use-component-r
|
|
|
22
22
|
import { useForm as Co } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
23
|
import { isComponentFormSchema as Io, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
|
|
24
24
|
import { Field as Po } from "./src/pro-form/index.mjs";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as Ro } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
26
|
import { default as Mo } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as wo } 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 Lo } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
@@ -48,57 +48,59 @@ import { default as Ce } from "./src/pro-table/components/table-action.vue.mjs";
|
|
|
48
48
|
import { default as Ie } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
49
49
|
import { default as be } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
50
|
import { useTable as De } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
|
-
import {
|
|
51
|
+
import { ApFormItemText as ve } from "./src/ap-form/items/text/index.mjs";
|
|
52
52
|
import { default as he } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
-
import { default as
|
|
53
|
+
import { default as Be } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as Ge } 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 Xe } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
57
57
|
import { default as Ye } from "./src/ap-form/items/select/index.vue.mjs";
|
|
58
58
|
import { default as Oe } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
59
59
|
import { default as We } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { default as qe } from "./src/ap-form/ap-form-item
|
|
63
|
-
import { default as Qe } from "./src/ap-form/ap-form-
|
|
64
|
-
import { default as _e } from "./src/ap-form/
|
|
65
|
-
import { default as er } from "./src/ap-form/
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import { default as sr } from "./src/ap-field/
|
|
70
|
-
import { default as xr } from "./src/ap-field/
|
|
71
|
-
import { default as nr } from "./src/ap-field/
|
|
72
|
-
import { default as Ar } from "./src/ap-field/
|
|
73
|
-
import { default as Fr } from "./src/ap-field/
|
|
74
|
-
import { default as Cr } from "./src/ap-field/
|
|
75
|
-
import { default as Ir } from "./src/ap-field/
|
|
76
|
-
import { default as br } from "./src/ap-field/
|
|
77
|
-
import { default as Dr } from "./src/ap-field/
|
|
78
|
-
import { default as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import { default as Kr } from "./src/ap-action/item-
|
|
84
|
-
import { default as Er } from "./src/ap-action/
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import { default as at } from "./src/
|
|
94
|
-
import { default as ft } from "./src/ap-
|
|
95
|
-
import {
|
|
96
|
-
import { default as dt } from "./src/ap-
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import { default as ct } from "./src/ap-
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
60
|
+
import { default as Ue } from "./src/ap-form/items/text/password.vue.mjs";
|
|
61
|
+
import { ApForm as $e } from "./src/ap-form/index.mjs";
|
|
62
|
+
import { default as qe } from "./src/ap-form/ap-form-item.vue.mjs";
|
|
63
|
+
import { default as Qe } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
|
|
64
|
+
import { default as _e } from "./src/ap-form/ap-form-list.vue.mjs";
|
|
65
|
+
import { default as er } from "./src/ap-form/search-form/index.vue.mjs";
|
|
66
|
+
import { default as tr } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
67
|
+
import { ApField as pr } from "./src/ap-field/index.mjs";
|
|
68
|
+
import { ApFieldText as mr } from "./src/ap-field/text/index.mjs";
|
|
69
|
+
import { default as sr } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
70
|
+
import { default as xr } from "./src/ap-field/date/index.vue.mjs";
|
|
71
|
+
import { default as nr } from "./src/ap-field/number/index.vue.mjs";
|
|
72
|
+
import { default as Ar } from "./src/ap-field/radio/index.vue.mjs";
|
|
73
|
+
import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
|
|
74
|
+
import { default as Cr } from "./src/ap-field/text-area/index.vue.mjs";
|
|
75
|
+
import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
|
|
76
|
+
import { default as br } from "./src/ap-field/select/index.vue.mjs";
|
|
77
|
+
import { default as Dr } 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 hr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
|
+
import { default as Br } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
|
+
import { adminToken as Gr, aplusToken as Nr } from "./src/design-token/index.mjs";
|
|
82
|
+
import { ApActionItem as Lr } from "./src/ap-action/index.mjs";
|
|
83
|
+
import { default as Kr } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
84
|
+
import { default as Er } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
85
|
+
import { default as Hr } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
86
|
+
import { default as zr } from "./src/ap-action/group/index.vue.mjs";
|
|
87
|
+
import { generateTableList as Vr } from "./src/ap-custom-column/utils.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
|
+
import { DictCode as ot } from "./src/work-order-modal/interfaces.mjs";
|
|
92
|
+
import { createWorkOrderModal as rt } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
93
|
+
import { default as at } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
94
|
+
import { default as ft } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
95
|
+
import { default as lt } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
96
|
+
import { default as dt } from "./src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs";
|
|
97
|
+
import { NeedNameKeyDefault as it } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
|
+
import { default as ut } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
|
+
import { default as ct } from "./src/ap-download/ap-download.vue.mjs";
|
|
100
|
+
import { useTablePaging as Tt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
101
|
+
import { default as St } from "./src/ap-table/ap-table.vue.mjs";
|
|
102
|
+
import { useMessage as gt } from "./src/hooks/useMessage.mjs";
|
|
103
|
+
import { useControllableValue as Pt } from "./src/hooks/useControllableValue.mjs";
|
|
102
104
|
const p = {
|
|
103
105
|
install: (r) => {
|
|
104
106
|
for (const t in e) {
|
|
@@ -109,50 +111,52 @@ const p = {
|
|
|
109
111
|
};
|
|
110
112
|
export {
|
|
111
113
|
G as APConfigProvider,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
$e as
|
|
114
|
+
zr as ApActionGroup,
|
|
115
|
+
Lr as ApActionItem,
|
|
116
|
+
Hr as ApActionItemDropdown,
|
|
117
|
+
Kr as ApActionItemModal,
|
|
118
|
+
Er as ApActionItemPopconfirm,
|
|
119
|
+
Jr as ApCustomColumn,
|
|
120
|
+
Zr as ApCustomSelect,
|
|
121
|
+
ct as ApDownload,
|
|
122
|
+
pr as ApField,
|
|
123
|
+
sr as ApFieldCheckbox,
|
|
124
|
+
xr as ApFieldDate,
|
|
125
|
+
Ir as ApFieldDateRange,
|
|
126
|
+
nr as ApFieldNumber,
|
|
127
|
+
Dr as ApFieldPassword,
|
|
128
|
+
Ar as ApFieldRadio,
|
|
129
|
+
Br as ApFieldRate,
|
|
130
|
+
hr as ApFieldSegmented,
|
|
131
|
+
br as ApFieldSelect,
|
|
132
|
+
vr as ApFieldSlider,
|
|
133
|
+
Fr as ApFieldSwitch,
|
|
134
|
+
mr as ApFieldText,
|
|
135
|
+
Cr as ApFieldTextArea,
|
|
136
|
+
$e as ApForm,
|
|
137
|
+
qe as ApFormItem,
|
|
135
138
|
We as ApFormItemCheckbox,
|
|
136
139
|
Ge as ApFormItemDate,
|
|
137
140
|
ye as ApFormItemDateRange,
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
Qe as ApFormItemGroup,
|
|
142
|
+
Be as ApFormItemNumber,
|
|
140
143
|
Xe as ApFormItemRadio,
|
|
141
144
|
Ye as ApFormItemSelect,
|
|
142
145
|
Oe as ApFormItemSwitch,
|
|
143
|
-
|
|
146
|
+
ve as ApFormItemText,
|
|
144
147
|
he as ApFormItemTextArea,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
148
|
+
Ue as ApFormItemTextPassword,
|
|
149
|
+
_e as ApFormList,
|
|
150
|
+
tr as ApFormModalForm,
|
|
151
|
+
er as ApFormSearchForm,
|
|
152
|
+
dt as ApInfoLayout,
|
|
153
|
+
St as ApTable,
|
|
154
|
+
ft as ApTag,
|
|
155
|
+
lt as ApTagGroup,
|
|
156
|
+
ut as ApUpload,
|
|
157
|
+
Ro as ApiCascader,
|
|
154
158
|
Mo as ApiRadioGroup,
|
|
155
|
-
|
|
159
|
+
wo as ApiSelect,
|
|
156
160
|
ko as ApiTransfer,
|
|
157
161
|
No as ApiTree,
|
|
158
162
|
Eo as ApiTreeSelect,
|
|
@@ -163,13 +167,13 @@ export {
|
|
|
163
167
|
j as BasicTitle,
|
|
164
168
|
X as CollapseContainer,
|
|
165
169
|
J as CollapseTransition,
|
|
166
|
-
|
|
170
|
+
B as ConfigProvider,
|
|
167
171
|
de as CountdownButton,
|
|
168
172
|
xe as CountdownInput,
|
|
169
173
|
me as CropperAvatar,
|
|
170
174
|
le as CropperImage,
|
|
171
175
|
Ao as Description,
|
|
172
|
-
|
|
176
|
+
ot as DictCode,
|
|
173
177
|
Ae as Dropdown,
|
|
174
178
|
Ie as EditTableHeaderIcon,
|
|
175
179
|
Z as ExpandTransition,
|
|
@@ -179,7 +183,7 @@ export {
|
|
|
179
183
|
l as Icon,
|
|
180
184
|
E as IconPicker,
|
|
181
185
|
Vo as ModalButton,
|
|
182
|
-
|
|
186
|
+
it as NeedNameKeyDefault,
|
|
183
187
|
jo as PopConfirmButton,
|
|
184
188
|
Ko as ProForm,
|
|
185
189
|
Fe as ProTable,
|
|
@@ -202,41 +206,41 @@ export {
|
|
|
202
206
|
s as SvgIcon,
|
|
203
207
|
Ce as TableAction,
|
|
204
208
|
be as TableImg,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
at as WorkOrderModal,
|
|
210
|
+
Gr as adminToken,
|
|
211
|
+
Nr as aplusToken,
|
|
208
212
|
S as buildLocaleContext,
|
|
209
213
|
I as buildTranslator,
|
|
210
214
|
n as configProviderContextKey,
|
|
211
215
|
x as configProviderProps,
|
|
212
216
|
ne as createPrompt,
|
|
213
|
-
|
|
217
|
+
rt as createWorkOrderModal,
|
|
214
218
|
p as default,
|
|
215
|
-
|
|
219
|
+
R as defaultNamespace,
|
|
216
220
|
z as en,
|
|
217
|
-
|
|
221
|
+
Vr as generateTableList,
|
|
218
222
|
Io as isComponentFormSchema,
|
|
219
223
|
go as isSlotFormSchema,
|
|
220
224
|
c as keysOf,
|
|
221
225
|
g as localeContextKey,
|
|
222
|
-
|
|
226
|
+
v as namespaceContextKey,
|
|
223
227
|
F as provideGlobalConfig,
|
|
224
228
|
u as tableDefaultConfig,
|
|
225
229
|
b as translate,
|
|
226
|
-
|
|
230
|
+
jr as useCacheColumnSetting,
|
|
227
231
|
Fo as useComponentRegister,
|
|
228
|
-
|
|
232
|
+
Pt as useControllableValue,
|
|
229
233
|
no as useDescription,
|
|
230
234
|
Co as useForm,
|
|
231
235
|
M as useGetDerivedNamespace,
|
|
232
236
|
T as useGlobalConfig,
|
|
233
237
|
P as useLocale,
|
|
234
|
-
|
|
238
|
+
gt as useMessage,
|
|
235
239
|
re as useModal,
|
|
236
240
|
oe as useModalContext,
|
|
237
241
|
te as useModalInner,
|
|
238
242
|
h as useNamespace,
|
|
239
243
|
De as useTable,
|
|
240
|
-
|
|
244
|
+
Tt as useTablePaging,
|
|
241
245
|
H as zhCn
|
|
242
246
|
};
|
|
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
20
20
|
format: string;
|
|
21
21
|
mode: string;
|
|
22
22
|
emptyText: string;
|
|
23
|
-
allowClear:
|
|
23
|
+
allowClear: boolean;
|
|
24
24
|
autofocus: undefined;
|
|
25
25
|
bordered: undefined;
|
|
26
26
|
clearIcon: undefined;
|
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
43
43
|
format: string;
|
|
44
44
|
mode: string;
|
|
45
45
|
emptyText: string;
|
|
46
|
-
allowClear:
|
|
46
|
+
allowClear: boolean;
|
|
47
47
|
autofocus: undefined;
|
|
48
48
|
bordered: undefined;
|
|
49
49
|
clearIcon: undefined;
|
|
@@ -16,7 +16,7 @@ const Z = /* @__PURE__ */ b({
|
|
|
16
16
|
popupStyle: {},
|
|
17
17
|
transitionName: {},
|
|
18
18
|
placeholder: {},
|
|
19
|
-
allowClear: { type: Boolean, default:
|
|
19
|
+
allowClear: { type: Boolean, default: !0 },
|
|
20
20
|
autofocus: { type: Boolean, default: void 0 },
|
|
21
21
|
disabled: { type: Boolean, default: void 0 },
|
|
22
22
|
tabindex: {},
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
23
23
|
emptyText: string;
|
|
24
24
|
mode: string;
|
|
25
25
|
format: string;
|
|
26
|
-
allowClear:
|
|
26
|
+
allowClear: boolean;
|
|
27
27
|
autofocus: undefined;
|
|
28
28
|
clearIcon: undefined;
|
|
29
29
|
defaultOpen: undefined;
|
|
@@ -47,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
47
|
emptyText: string;
|
|
48
48
|
mode: string;
|
|
49
49
|
format: string;
|
|
50
|
-
allowClear:
|
|
50
|
+
allowClear: boolean;
|
|
51
51
|
autofocus: undefined;
|
|
52
52
|
clearIcon: undefined;
|
|
53
53
|
defaultOpen: undefined;
|
|
@@ -38,7 +38,7 @@ const de = /* @__PURE__ */ x({
|
|
|
38
38
|
dropdownAlign: {},
|
|
39
39
|
popupStyle: {},
|
|
40
40
|
transitionName: {},
|
|
41
|
-
allowClear: { type: Boolean, default:
|
|
41
|
+
allowClear: { type: Boolean, default: !0 },
|
|
42
42
|
autofocus: { type: Boolean, default: void 0 },
|
|
43
43
|
tabindex: {},
|
|
44
44
|
open: { type: Boolean, default: void 0 },
|
|
@@ -9,6 +9,7 @@ import { default as ApFieldDateRange } from './date-range/index.vue';
|
|
|
9
9
|
import { default as ApFieldSelect } from './select/index.vue';
|
|
10
10
|
import { default as ApFieldSlider } from './slider/index.vue';
|
|
11
11
|
import { default as ApFieldSegmented } from './segmented/index.vue';
|
|
12
|
+
import { default as ApFieldRate } from './rate/index.vue';
|
|
12
13
|
|
|
13
14
|
export type FieldType = {
|
|
14
15
|
Text: typeof ApFieldText;
|
|
@@ -22,7 +23,8 @@ export type FieldType = {
|
|
|
22
23
|
Switch: typeof ApFieldSwitch;
|
|
23
24
|
Slider: typeof ApFieldSlider;
|
|
24
25
|
Segmented: typeof ApFieldSegmented;
|
|
26
|
+
Rate: typeof ApFieldRate;
|
|
25
27
|
};
|
|
26
28
|
export declare const ApField: FieldType;
|
|
27
29
|
export * from './interface';
|
|
28
|
-
export { ApFieldText, ApFieldCheckbox, ApFieldDate, ApFieldNumber, ApFieldRadio, ApFieldSwitch, ApFieldTextArea, ApFieldDateRange, ApFieldSelect, ApFieldPassword, ApFieldSlider, ApFieldSegmented };
|
|
30
|
+
export { ApFieldText, ApFieldCheckbox, ApFieldDate, ApFieldNumber, ApFieldRadio, ApFieldSwitch, ApFieldTextArea, ApFieldDateRange, ApFieldSelect, ApFieldPassword, ApFieldSlider, ApFieldSegmented, ApFieldRate };
|
|
@@ -9,6 +9,7 @@ import "./date-range/index.vue2.mjs";
|
|
|
9
9
|
import "./select/index.vue2.mjs";
|
|
10
10
|
import "./slider/index.vue2.mjs";
|
|
11
11
|
import "./segmented/index.vue2.mjs";
|
|
12
|
+
import "./rate/index.vue2.mjs";
|
|
12
13
|
import "./interface.mjs";
|
|
13
14
|
import m from "./text-area/index.vue.mjs";
|
|
14
15
|
import e from "./number/index.vue.mjs";
|
|
@@ -20,7 +21,8 @@ import a from "./select/index.vue.mjs";
|
|
|
20
21
|
import f from "./switch/index.vue.mjs";
|
|
21
22
|
import s from "./slider/index.vue.mjs";
|
|
22
23
|
import _ from "./segmented/index.vue.mjs";
|
|
23
|
-
|
|
24
|
+
import d from "./rate/index.vue.mjs";
|
|
25
|
+
const B = {
|
|
24
26
|
Text: i,
|
|
25
27
|
TextArea: m,
|
|
26
28
|
Number: e,
|
|
@@ -31,15 +33,17 @@ const v = {
|
|
|
31
33
|
Select: a,
|
|
32
34
|
Switch: f,
|
|
33
35
|
Slider: s,
|
|
34
|
-
Segmented: _
|
|
36
|
+
Segmented: _,
|
|
37
|
+
Rate: d
|
|
35
38
|
};
|
|
36
39
|
export {
|
|
37
|
-
|
|
40
|
+
B as ApField,
|
|
38
41
|
p as ApFieldCheckbox,
|
|
39
42
|
r as ApFieldDate,
|
|
40
43
|
o as ApFieldDateRange,
|
|
41
44
|
e as ApFieldNumber,
|
|
42
45
|
t as ApFieldRadio,
|
|
46
|
+
d as ApFieldRate,
|
|
43
47
|
_ as ApFieldSegmented,
|
|
44
48
|
a as ApFieldSelect,
|
|
45
49
|
s as ApFieldSlider,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps, SliderProps, SegmentedProps } from 'ant-design-vue';
|
|
1
|
+
import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps, SliderProps, SegmentedProps, RateProps } from 'ant-design-vue';
|
|
2
2
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
3
3
|
import { ApFormatPresetType } from './date/interface';
|
|
4
4
|
import { RangeValue } from 'ant-design-vue/es/vc-picker/interface';
|
|
@@ -89,6 +89,10 @@ export type ApFieldSelectProps = BasicApFieldProps<Omit<SelectProps, 'mode' | 'v
|
|
|
89
89
|
multiple?: boolean;
|
|
90
90
|
value?: SelectProps['value'];
|
|
91
91
|
'onUpdate:value'?: SelectProps['onUpdate:value'];
|
|
92
|
+
/**
|
|
93
|
+
* 如果设置showSearch=true,此时设置searchMode=filter将进行前端筛选,设置searchMode=request将会走后端筛选
|
|
94
|
+
*/
|
|
95
|
+
searchMode?: 'filter' | 'request';
|
|
92
96
|
};
|
|
93
97
|
export type ApFieldSelectSlots = {
|
|
94
98
|
focus: () => void;
|
|
@@ -107,3 +111,10 @@ export type ApFieldSegmentedProps = BasicApFieldProps<SegmentedProps> & {
|
|
|
107
111
|
defaultValue?: string | number;
|
|
108
112
|
request?: () => Promise<SegmentedProps['options']>;
|
|
109
113
|
};
|
|
114
|
+
export type ApFieldRateProps = BasicApFieldProps<RateProps> & {
|
|
115
|
+
defaultValue?: number;
|
|
116
|
+
};
|
|
117
|
+
export type ApFieldRateSlots = {
|
|
118
|
+
focus: () => void;
|
|
119
|
+
blur: () => void;
|
|
120
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ApFieldRateProps, FieldMode } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare function focus(): void;
|
|
5
|
+
declare function blur(): void;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldRateProps>, {
|
|
7
|
+
mode: string;
|
|
8
|
+
allowClear: boolean;
|
|
9
|
+
allowHalf: boolean;
|
|
10
|
+
autofocus: boolean;
|
|
11
|
+
count: number;
|
|
12
|
+
character: undefined;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}>, {
|
|
15
|
+
focus: typeof focus;
|
|
16
|
+
blur: typeof blur;
|
|
17
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
+
"update:value": (...args: any[]) => void;
|
|
19
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldRateProps>, {
|
|
20
|
+
mode: string;
|
|
21
|
+
allowClear: boolean;
|
|
22
|
+
allowHalf: boolean;
|
|
23
|
+
autofocus: boolean;
|
|
24
|
+
count: number;
|
|
25
|
+
character: undefined;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
}>>> & {
|
|
28
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
autofocus: boolean;
|
|
32
|
+
mode: FieldMode;
|
|
33
|
+
allowClear: boolean;
|
|
34
|
+
count: number;
|
|
35
|
+
allowHalf: boolean;
|
|
36
|
+
character: any;
|
|
37
|
+
}, {}>, Readonly<{
|
|
38
|
+
character: any;
|
|
39
|
+
}> & {
|
|
40
|
+
character: any;
|
|
41
|
+
}>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as v, ref as b, useSlots as h, computed as y, openBlock as B, createBlock as C, unref as o, mergeProps as _, createSlots as x, withCtx as g, renderSlot as k } from "vue";
|
|
2
|
+
import { omit as w } from "lodash-unified";
|
|
3
|
+
import "../../hooks/index.mjs";
|
|
4
|
+
import { Rate as R } from "ant-design-vue";
|
|
5
|
+
import { useControllableValue as V } from "../../hooks/useControllableValue.mjs";
|
|
6
|
+
const D = /* @__PURE__ */ v({
|
|
7
|
+
name: "ApFieldRate",
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
mode: { default: "edit" },
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
count: { default: 5 },
|
|
13
|
+
value: {},
|
|
14
|
+
allowHalf: { type: Boolean, default: !1 },
|
|
15
|
+
allowClear: { type: Boolean, default: !0 },
|
|
16
|
+
tooltips: {},
|
|
17
|
+
disabled: { type: Boolean, default: !1 },
|
|
18
|
+
character: { default: void 0 },
|
|
19
|
+
autofocus: { type: Boolean, default: !1 },
|
|
20
|
+
tabindex: {},
|
|
21
|
+
direction: {},
|
|
22
|
+
id: {},
|
|
23
|
+
onChange: {},
|
|
24
|
+
onHoverChange: {},
|
|
25
|
+
"onUpdate:value": {},
|
|
26
|
+
onFocus: {},
|
|
27
|
+
onBlur: {},
|
|
28
|
+
onKeydown: {},
|
|
29
|
+
defaultValue: {}
|
|
30
|
+
},
|
|
31
|
+
emits: ["update:value"],
|
|
32
|
+
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);
|
|
34
|
+
function p() {
|
|
35
|
+
var e, t;
|
|
36
|
+
(t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
37
|
+
}
|
|
38
|
+
function m() {
|
|
39
|
+
var e, t;
|
|
40
|
+
(t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
41
|
+
}
|
|
42
|
+
return u({
|
|
43
|
+
focus: p,
|
|
44
|
+
blur: m
|
|
45
|
+
}), (e, t) => (B(), C(o(R), _(o(w)(a, ["mode", "defaultValue"]), {
|
|
46
|
+
value: o(f),
|
|
47
|
+
"onUpdate:value": o(c),
|
|
48
|
+
disabled: i.value,
|
|
49
|
+
ref_key: "rateRef",
|
|
50
|
+
ref: l
|
|
51
|
+
}), x({ _: 2 }, [
|
|
52
|
+
s.character ? {
|
|
53
|
+
name: "character",
|
|
54
|
+
fn: g(() => [
|
|
55
|
+
k(e.$slots, "character")
|
|
56
|
+
]),
|
|
57
|
+
key: "0"
|
|
58
|
+
} : void 0
|
|
59
|
+
]), 1040, ["value", "onUpdate:value", "disabled"]));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
D as default
|
|
64
|
+
};
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { ApFieldSegmentedProps } from '../interface';
|
|
1
|
+
import { ApFieldSegmentedProps, FieldMode } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<ApFieldSegmentedProps>, {
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSegmentedProps>, {
|
|
5
|
+
mode: string;
|
|
6
|
+
emptyText: string;
|
|
7
|
+
block: undefined;
|
|
8
|
+
disabled: undefined;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
10
|
"update:value": (...args: any[]) => void;
|
|
6
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ApFieldSegmentedProps
|
|
11
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSegmentedProps>, {
|
|
12
|
+
mode: string;
|
|
13
|
+
emptyText: string;
|
|
14
|
+
block: undefined;
|
|
15
|
+
disabled: undefined;
|
|
16
|
+
}>>> & {
|
|
7
17
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}, {
|
|
18
|
+
}, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
mode: FieldMode;
|
|
21
|
+
block: boolean;
|
|
22
|
+
emptyText: string;
|
|
23
|
+
}, {}>, {
|
|
9
24
|
label?(_: {
|
|
10
25
|
value: string | number;
|
|
11
26
|
disabled?: boolean | undefined;
|
|
@@ -24,6 +39,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
24
39
|
required: true;
|
|
25
40
|
};
|
|
26
41
|
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
27
50
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
51
|
new (): {
|
|
29
52
|
$slots: S;
|