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