@aplus-frontend/ui 0.4.13 → 0.4.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.
- package/es/index.mjs +84 -80
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +17 -12
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +62 -62
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +79 -67
- package/es/src/hooks/index.d.ts +1 -0
- package/es/src/hooks/index.mjs +6 -4
- package/es/src/hooks/useResize.d.ts +8 -0
- package/es/src/hooks/useResize.mjs +23 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +212 -209
- package/es/src/path-map.mjs +2 -1
- package/es/src/resize-observer/index.d.ts +3 -0
- package/es/src/resize-observer/index.mjs +2 -0
- package/es/src/resize-observer/index.vue.d.ts +25 -0
- package/es/src/resize-observer/index.vue.mjs +45 -0
- package/es/src/resize-observer/index.vue2.mjs +4 -0
- package/es/src/resize-observer/interface.d.ts +27 -0
- package/es/src/resize-observer/interface.mjs +1 -0
- package/es/src/resize-observer/style/css.d.ts +1 -0
- package/es/src/resize-observer/style/css.js +1 -0
- package/es/src/resize-observer/style/index.d.ts +1 -0
- package/es/src/resize-observer/style/index.js +1 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/index.js +1 -1
- package/lib/src/hooks/useResize.d.ts +8 -0
- package/lib/src/hooks/useResize.js +1 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/resize-observer/index.d.ts +3 -0
- package/lib/src/resize-observer/index.js +1 -0
- package/lib/src/resize-observer/index.vue.d.ts +25 -0
- package/lib/src/resize-observer/index.vue.js +1 -0
- package/lib/src/resize-observer/index.vue2.js +1 -0
- package/lib/src/resize-observer/interface.d.ts +27 -0
- package/lib/src/resize-observer/interface.js +1 -0
- package/lib/src/resize-observer/style/css.cjs +1 -0
- package/lib/src/resize-observer/style/css.d.ts +1 -0
- package/lib/src/resize-observer/style/index.cjs +1 -0
- package/lib/src/resize-observer/style/index.d.ts +1 -0
- package/package.json +3 -3
- package/theme/ap-descriptions/ap-descriptions.css +3 -0
- package/theme/ap-descriptions/ap-descriptions.less +7 -0
- package/theme/ap-table/ap-table.css +1 -1
- package/theme/ap-table/ap-table.less +1 -1
- package/theme/ap-table-modal/index.css +1 -1
- package/theme/index.css +4 -1
package/es/index.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import "./src/hooks/index.mjs";
|
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as
|
|
9
|
-
import { ConfigProvider as
|
|
7
|
+
import { buildLocaleContext as T, buildTranslator as S, localeContextKey as C, translate as D, useLocale as g } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as R, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as L, globalConfigCached as N } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
|
-
import { ApFormItemText as
|
|
11
|
+
import { ApFormItemText as k } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
13
|
+
import { default as U } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
|
+
import { default as V } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
|
+
import { default as _ } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
16
16
|
import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
17
17
|
import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
18
18
|
import { default as Q } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
@@ -27,19 +27,19 @@ import { default as se } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
|
27
27
|
import { default as ne } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
28
|
import { default as ce } from "./src/ap-form/set/index.vue.mjs";
|
|
29
29
|
import { default as Ie } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as Te } from "./src/ap-form/render/control.vue.mjs";
|
|
31
31
|
import { default as Ce } from "./src/ap-form/render/item.vue.mjs";
|
|
32
32
|
import { default as ge } from "./src/ap-form/provider/index.vue.mjs";
|
|
33
33
|
import { ApField as Ge } from "./src/ap-field/index.mjs";
|
|
34
|
-
import { ApFieldText as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
34
|
+
import { ApFieldText as Re } from "./src/ap-field/text/index.mjs";
|
|
35
|
+
import { default as Ee } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
36
|
+
import { default as Ne } from "./src/ap-field/date/index.vue.mjs";
|
|
37
37
|
import { default as we } from "./src/ap-field/number/index.vue.mjs";
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as ke } from "./src/ap-field/radio/index.vue.mjs";
|
|
39
39
|
import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
40
|
+
import { default as Ue } from "./src/ap-field/text-area/index.vue.mjs";
|
|
41
|
+
import { default as Ve } from "./src/ap-field/date-range/index.vue.mjs";
|
|
42
|
+
import { default as _e } from "./src/ap-field/select/index.vue.mjs";
|
|
43
43
|
import { default as $e } from "./src/ap-field/text/password.vue.mjs";
|
|
44
44
|
import { default as qe } from "./src/ap-field/slider/index.vue.mjs";
|
|
45
45
|
import { default as Qe } from "./src/ap-field/segmented/index.vue.mjs";
|
|
@@ -52,19 +52,19 @@ import { default as xo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
|
52
52
|
import { default as so } from "./src/ap-action/group/index.vue.mjs";
|
|
53
53
|
import { DictCode as no, langMap as io } from "./src/work-order-modal/interfaces.mjs";
|
|
54
54
|
import { createWorkOrderModal as Fo } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
55
|
-
import { default as
|
|
55
|
+
import { default as bo } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
56
56
|
import { default as So } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
57
57
|
import { default as Do } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
58
58
|
import { default as ho } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
59
59
|
import { NeedNameKeyDefault as Po } from "./src/ap-upload/apUploadTypes.mjs";
|
|
60
|
-
import { default as
|
|
61
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
60
|
+
import { default as Mo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
61
|
+
import { ApDownLoadNeedNameKeyDefault as Lo } from "./src/ap-download/interface.mjs";
|
|
62
62
|
import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
|
|
63
|
-
import { CheckCard as
|
|
63
|
+
import { CheckCard as vo } from "./src/check-card/index.mjs";
|
|
64
64
|
import { default as Bo } from "./src/check-card/group.vue.mjs";
|
|
65
|
-
import { ApModal as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
65
|
+
import { ApModal as Oo } from "./src/ap-modal/index.mjs";
|
|
66
|
+
import { default as zo } from "./src/ap-list/index.vue.mjs";
|
|
67
|
+
import { default as Wo } from "./src/ap-button/ap-button.vue.mjs";
|
|
68
68
|
import { default as Ho } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
69
69
|
import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
|
|
70
70
|
import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
|
|
@@ -79,18 +79,18 @@ import { ApCard as ur } from "./src/business/ap-card/index.mjs";
|
|
|
79
79
|
import { ApExpandAlert as Ar } from "./src/business/ap-expand-alert/index.mjs";
|
|
80
80
|
import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
|
|
81
81
|
import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
|
|
82
|
-
import { handleExportDownload as
|
|
82
|
+
import { handleExportDownload as br } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
83
83
|
import { convertExportField as Sr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
84
84
|
import { ApImage as Dr } from "./src/business/ap-image/index.mjs";
|
|
85
85
|
import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
|
|
86
|
-
import { ApLabel as Pr, ApLabelGroup as
|
|
87
|
-
import { locales as
|
|
88
|
-
import { ApLadder as
|
|
86
|
+
import { ApLabel as Pr, ApLabelGroup as Rr } from "./src/business/ap-label/index.mjs";
|
|
87
|
+
import { locales as Er } from "./src/business/ap-ladder/interface.mjs";
|
|
88
|
+
import { ApLadder as Nr } from "./src/business/ap-ladder/index.mjs";
|
|
89
89
|
import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
|
|
90
|
-
import { ApStatus as
|
|
91
|
-
import { ApTitle as
|
|
92
|
-
import { usePageListApTable as
|
|
93
|
-
import { useTableRefresh as
|
|
90
|
+
import { ApStatus as kr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
|
|
91
|
+
import { ApTitle as Or } from "./src/business/ap-title/index.mjs";
|
|
92
|
+
import { usePageListApTable as zr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
93
|
+
import { useTableRefresh as Wr } from "./src/business/hooks/useTableRefresh.mjs";
|
|
94
94
|
import { computedRecords as Hr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
|
|
95
95
|
import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
|
|
96
96
|
import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
|
|
@@ -103,19 +103,21 @@ import { ApSizeInput as st } from "./src/business/ap-size-input/index.mjs";
|
|
|
103
103
|
import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
104
104
|
import { ApTable as ct } from "./src/ap-table/index.mjs";
|
|
105
105
|
import { default as It } from "./src/editable-table/index.vue.mjs";
|
|
106
|
-
import { default as
|
|
106
|
+
import { default as Tt } from "./src/editable-table/form-item.vue.mjs";
|
|
107
107
|
import { default as Ct } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
108
108
|
import { ensureRangeValue as gt } from "./src/scroll-bar/utils/index.mjs";
|
|
109
109
|
import { default as Gt } from "./src/scroll-bar/index.vue.mjs";
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { default as
|
|
110
|
+
import { default as Rt } from "./src/scroll-bar/internal.vue.mjs";
|
|
111
|
+
import { default as Et } from "./src/scroll-view/index.vue.mjs";
|
|
112
|
+
import { default as Nt } from "./src/portal/index.vue.mjs";
|
|
113
113
|
import { default as wt } from "./src/full-screen/index.vue.mjs";
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
114
|
+
import { default as kt } from "./src/resize-observer/index.vue.mjs";
|
|
115
|
+
import { useMessage as Kt } from "./src/hooks/useMessage.mjs";
|
|
116
|
+
import { useControllableValue as Ut } from "./src/hooks/useControllableValue.mjs";
|
|
117
|
+
import { useManualRef as Vt } from "./src/hooks/useManualRef.mjs";
|
|
118
|
+
import { useThrottleRef as _t } from "./src/hooks/useThrottleRef.mjs";
|
|
119
|
+
import { useFullScreen as $t } from "./src/hooks/useFullScreen.mjs";
|
|
120
|
+
import { useResize as qt } from "./src/hooks/useResize.mjs";
|
|
119
121
|
const a = {
|
|
120
122
|
install: (r) => {
|
|
121
123
|
for (const t in o) {
|
|
@@ -136,11 +138,11 @@ export {
|
|
|
136
138
|
tr as ApAttachment,
|
|
137
139
|
ar as ApBatchAction,
|
|
138
140
|
mr as ApBatchActionGroup,
|
|
139
|
-
|
|
141
|
+
Wo as ApButton,
|
|
140
142
|
xr as ApButtonGroup,
|
|
141
143
|
ur as ApCard,
|
|
142
144
|
Ct as ApDescriptions,
|
|
143
|
-
|
|
145
|
+
Lo as ApDownLoadNeedNameKeyDefault,
|
|
144
146
|
yo as ApDownload,
|
|
145
147
|
jo as ApDrawer,
|
|
146
148
|
Ar as ApExpandAlert,
|
|
@@ -148,35 +150,35 @@ export {
|
|
|
148
150
|
ir as ApExportGroupActionType,
|
|
149
151
|
rt as ApExtensionSelect,
|
|
150
152
|
Ge as ApField,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
Ee as ApFieldCheckbox,
|
|
154
|
+
Ne as ApFieldDate,
|
|
155
|
+
Ve as ApFieldDateRange,
|
|
154
156
|
we as ApFieldNumber,
|
|
155
157
|
$e as ApFieldPassword,
|
|
156
|
-
|
|
158
|
+
ke as ApFieldRadio,
|
|
157
159
|
Ye as ApFieldRate,
|
|
158
160
|
Qe as ApFieldSegmented,
|
|
159
|
-
|
|
161
|
+
_e as ApFieldSelect,
|
|
160
162
|
qe as ApFieldSlider,
|
|
161
163
|
Ke as ApFieldSwitch,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
Re as ApFieldText,
|
|
165
|
+
Ue as ApFieldTextArea,
|
|
164
166
|
re as ApForm,
|
|
165
|
-
|
|
167
|
+
Te as ApFormControlRender,
|
|
166
168
|
ne as ApFormDependency,
|
|
167
169
|
Ie as ApFormDrawerForm,
|
|
168
170
|
pe as ApFormItem,
|
|
169
171
|
dt as ApFormItemBatchInput,
|
|
170
172
|
Y as ApFormItemCheckbox,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
V as ApFormItemDate,
|
|
174
|
+
_ as ApFormItemDateRange,
|
|
173
175
|
fe as ApFormItemGroup,
|
|
174
|
-
|
|
176
|
+
U as ApFormItemNumber,
|
|
175
177
|
$ as ApFormItemRadio,
|
|
176
178
|
Ce as ApFormItemRender,
|
|
177
179
|
q as ApFormItemSelect,
|
|
178
180
|
Q as ApFormItemSwitch,
|
|
179
|
-
|
|
181
|
+
k as ApFormItemText,
|
|
180
182
|
K as ApFormItemTextArea,
|
|
181
183
|
ee as ApFormItemTextPassword,
|
|
182
184
|
le as ApFormList,
|
|
@@ -189,44 +191,45 @@ export {
|
|
|
189
191
|
ho as ApInfoLayout,
|
|
190
192
|
hr as ApInputRadio,
|
|
191
193
|
Pr as ApLabel,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
Rr as ApLabelGroup,
|
|
195
|
+
Nr as ApLadder,
|
|
196
|
+
zo as ApList,
|
|
197
|
+
Oo as ApModal,
|
|
196
198
|
Yr as ApNeedNameKeyDefault,
|
|
197
199
|
pt as ApPopoverSelect,
|
|
198
200
|
wr as ApSelectLayout,
|
|
199
201
|
st as ApSizeInput,
|
|
200
|
-
|
|
202
|
+
kr as ApStatus,
|
|
201
203
|
Br as ApStatusGroup,
|
|
202
204
|
Qr as ApSummary,
|
|
203
205
|
ct as ApTable,
|
|
204
206
|
Xo as ApTableModal,
|
|
205
207
|
So as ApTag,
|
|
206
208
|
Do as ApTagGroup,
|
|
207
|
-
|
|
209
|
+
Or as ApTitle,
|
|
208
210
|
Jo as ApTransformDataHelper,
|
|
209
|
-
|
|
211
|
+
Mo as ApUpload,
|
|
210
212
|
ft as ApUploadSingle,
|
|
211
213
|
lt as BatchInputGroup,
|
|
212
|
-
|
|
214
|
+
vo as CheckCard,
|
|
213
215
|
Bo as CheckCardGroup,
|
|
214
|
-
|
|
216
|
+
L as ConfigProvider,
|
|
215
217
|
s as DEFAULT_NAMESPACE,
|
|
216
218
|
A as DEFAULT_UIMODE,
|
|
217
219
|
no as DictCode,
|
|
218
220
|
It as EditableTable,
|
|
219
|
-
|
|
221
|
+
Tt as EditableTableFormItem,
|
|
220
222
|
wt as FullScreen,
|
|
221
|
-
|
|
223
|
+
Rt as InternalScrollBar,
|
|
222
224
|
Po as NeedNameKeyDefault,
|
|
223
|
-
|
|
225
|
+
Nt as Portal,
|
|
226
|
+
kt as ResizeObserver,
|
|
224
227
|
Gt as ScrollBar,
|
|
225
|
-
|
|
226
|
-
|
|
228
|
+
Et as ScrollView,
|
|
229
|
+
bo as WorkOrderModal,
|
|
227
230
|
eo as adminToken,
|
|
228
231
|
oo as aplusToken,
|
|
229
|
-
|
|
232
|
+
T as buildLocaleContext,
|
|
230
233
|
S as buildTranslator,
|
|
231
234
|
Hr as computedRecords,
|
|
232
235
|
n as configProviderContextKey,
|
|
@@ -239,28 +242,29 @@ export {
|
|
|
239
242
|
$r as flattenColumns,
|
|
240
243
|
jr as formatDataIndex,
|
|
241
244
|
qr as formatNumber,
|
|
242
|
-
|
|
243
|
-
|
|
245
|
+
N as globalConfigCached,
|
|
246
|
+
br as handleExportDownload,
|
|
244
247
|
c as keysOf,
|
|
245
248
|
io as langMap,
|
|
246
249
|
C as localeContextKey,
|
|
247
|
-
|
|
250
|
+
Er as locales,
|
|
248
251
|
P as namespaceContextKey,
|
|
249
252
|
l as pathMap,
|
|
250
253
|
F as provideGlobalConfig,
|
|
251
254
|
D as translate,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
+
Ut as useControllableValue,
|
|
256
|
+
$t as useFullScreen,
|
|
257
|
+
R as useGetDerivedNamespace,
|
|
255
258
|
I as useGlobalConfig,
|
|
256
259
|
g as useLocale,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
Vt as useManualRef,
|
|
261
|
+
Kt as useMessage,
|
|
262
|
+
M as useNamespace,
|
|
263
|
+
zr as usePageListApTable,
|
|
264
|
+
qt as useResize,
|
|
261
265
|
Zo as useTableModal,
|
|
262
266
|
nt as useTablePaging,
|
|
263
|
-
|
|
267
|
+
Wr as useTableRefresh,
|
|
264
268
|
or as useTableSelectModal,
|
|
265
|
-
|
|
269
|
+
_t as useThrottleRef
|
|
266
270
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as r, computed as m, createVNode as t, openBlock as o, createElementBlock as d, createBlock as l, resolveDynamicComponent as u, unref as s, withCtx as f, createCommentVNode as h } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import { QuestionCircleOutlined as b } from "@ant-design/icons-vue";
|
|
4
|
+
import { TypographyText as _, Tooltip as y } from "@aplus-frontend/antdv";
|
|
5
|
+
import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const C = {
|
|
5
7
|
style: {
|
|
6
8
|
display: "inline-flex"
|
|
7
9
|
}
|
|
8
|
-
},
|
|
10
|
+
}, B = /* @__PURE__ */ r({
|
|
9
11
|
__name: "index",
|
|
10
12
|
props: {
|
|
11
13
|
helpMessage: {},
|
|
12
14
|
label: {}
|
|
13
15
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
|
|
16
|
+
setup(i) {
|
|
17
|
+
const n = i, {
|
|
18
|
+
m: p
|
|
19
|
+
} = x("ap-descriptions"), a = m(() => {
|
|
20
|
+
const e = n.label;
|
|
17
21
|
return typeof e != "object" ? t("div", {
|
|
22
|
+
class: p("item-label"),
|
|
18
23
|
style: {
|
|
19
24
|
maxWidth: "calc(var(--ap-descriptions-item-label-width))"
|
|
20
25
|
}
|
|
@@ -25,18 +30,18 @@ const y = {
|
|
|
25
30
|
content: e
|
|
26
31
|
}, null)]) : e;
|
|
27
32
|
});
|
|
28
|
-
return (e,
|
|
33
|
+
return (e, c) => (o(), d("span", C, [(o(), l(u(a.value))), e.helpMessage ? (o(), l(s(y), {
|
|
29
34
|
key: 0,
|
|
30
35
|
placement: "topLeft",
|
|
31
36
|
title: e.helpMessage
|
|
32
37
|
}, {
|
|
33
|
-
default:
|
|
38
|
+
default: f(() => [t(s(b), {
|
|
34
39
|
class: "ap-descriptions-item-content__help"
|
|
35
40
|
})]),
|
|
36
41
|
_: 1
|
|
37
|
-
}, 8, ["title"])) :
|
|
42
|
+
}, 8, ["title"])) : h("", !0)]));
|
|
38
43
|
}
|
|
39
44
|
});
|
|
40
45
|
export {
|
|
41
|
-
|
|
46
|
+
B as default
|
|
42
47
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { getUtcTimestamp as m } from "@aplus-frontend/utils";
|
|
2
2
|
import n from "dayjs";
|
|
3
|
-
const i = (
|
|
4
|
-
if (!
|
|
3
|
+
const i = (r, e, o = !0) => {
|
|
4
|
+
if (!r)
|
|
5
5
|
return null;
|
|
6
|
-
let t =
|
|
7
|
-
return t = t.millisecond(0),
|
|
6
|
+
let t = r.clone();
|
|
7
|
+
return t = t.millisecond(o ? 0 : 999), e.indexOf("ss") === -1 && (t = t.second(o ? 0 : 59)), e.indexOf("mm") === -1 && (t = t.minute(o ? 0 : 59)), e.indexOf("HH") === -1 && (t = t.hour(o ? 0 : 23)), e.indexOf("DD") === -1 && (t = t.date(o ? 1 : 0), o || (t = t.month(t.month() + 1))), e.indexOf("MM") === -1 && (t = t.month(o ? 0 : 12)), t.valueOf();
|
|
8
8
|
};
|
|
9
|
-
function d(
|
|
10
|
-
return (
|
|
11
|
-
const f = o ? i(
|
|
12
|
-
return
|
|
9
|
+
function d(r) {
|
|
10
|
+
return (e, o, t = !0) => {
|
|
11
|
+
const f = o ? i(e, o, t) : e.valueOf();
|
|
12
|
+
return r ? m(n(f), r) : f;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const l = (
|
|
15
|
+
const l = (r) => r && r.valueOf();
|
|
16
16
|
export {
|
|
17
17
|
i as formatDay,
|
|
18
18
|
d as formatDayWithTimezone,
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { ref as ee, reactive as
|
|
1
|
+
import { ref as ee, reactive as I, unref as h, nextTick as te, onMounted as re, watch as oe, computed as A, createVNode as C } from "vue";
|
|
2
2
|
import { useTableSortedAndFiltered as ne } from "./use-sorted-filtered.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { parseFieldValue as ae, dataIndexToStr as se, isEqualCustom as ce } from "../utils.mjs";
|
|
5
|
-
import { isArray as
|
|
5
|
+
import { isArray as N, isEqualWith as ie } from "lodash-unified";
|
|
6
6
|
import { useLocale as le } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
7
|
import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
-
const
|
|
8
|
+
const S = 1, L = 100;
|
|
9
9
|
function fe(g) {
|
|
10
10
|
const l = {};
|
|
11
|
-
return g && (g === !0 ? (l.current =
|
|
11
|
+
return g && (g === !0 ? (l.current = S, l.pageSize = L) : (l.current = g.defaultCurrent || S, l.pageSize = g.defaultPageSize || L)), l;
|
|
12
12
|
}
|
|
13
13
|
const Te = ({
|
|
14
14
|
manual: g = !1,
|
|
15
15
|
request: l,
|
|
16
|
-
defaultParams:
|
|
17
|
-
defaultData:
|
|
18
|
-
formatParams:
|
|
19
|
-
paramsValueTypeMap:
|
|
20
|
-
resetFieldsIgnores:
|
|
16
|
+
defaultParams: v = {},
|
|
17
|
+
defaultData: y = [],
|
|
18
|
+
formatParams: D,
|
|
19
|
+
paramsValueTypeMap: R,
|
|
20
|
+
resetFieldsIgnores: V,
|
|
21
21
|
filterFields: U,
|
|
22
22
|
sortFields: B,
|
|
23
23
|
pagination: p = {
|
|
24
|
-
defaultCurrent:
|
|
25
|
-
defaultPageSize:
|
|
24
|
+
defaultCurrent: S,
|
|
25
|
+
defaultPageSize: L,
|
|
26
26
|
showLessItems: !1,
|
|
27
27
|
showTotal: !0
|
|
28
28
|
}
|
|
29
29
|
}) => {
|
|
30
30
|
let b = 0, s = {};
|
|
31
|
-
const K = p ?? {}, M = (e) =>
|
|
31
|
+
const K = p ?? {}, M = (e) => D ? D(e) : e, z = ee(), c = I(fe(p)), {
|
|
32
32
|
getColumnSFConfig: $,
|
|
33
33
|
setSF: G,
|
|
34
34
|
clearAll: J
|
|
35
35
|
} = ne(), {
|
|
36
|
-
t:
|
|
36
|
+
t: T
|
|
37
37
|
} = le(), {
|
|
38
|
-
b:
|
|
39
|
-
} = ue("ap-table"), o =
|
|
40
|
-
total:
|
|
41
|
-
records:
|
|
38
|
+
b: P
|
|
39
|
+
} = ue("ap-table"), o = I({
|
|
40
|
+
total: y.length,
|
|
41
|
+
records: y,
|
|
42
42
|
loading: !1
|
|
43
|
-
}),
|
|
43
|
+
}), F = () => {
|
|
44
44
|
var e, t;
|
|
45
|
-
return ((t = (e =
|
|
46
|
-
},
|
|
45
|
+
return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
46
|
+
}, O = async (e) => {
|
|
47
47
|
var n;
|
|
48
48
|
const t = M(e), r = Date.now();
|
|
49
49
|
b = r, o.loading = !0;
|
|
50
50
|
try {
|
|
51
51
|
const a = await l({
|
|
52
|
-
...h(
|
|
52
|
+
...h(v),
|
|
53
53
|
...t
|
|
54
54
|
});
|
|
55
55
|
b === r && (o.total = a.total || ((n = a.data) == null ? void 0 : n.length) || 0, o.records = [...a.data || []]);
|
|
@@ -58,47 +58,47 @@ const Te = ({
|
|
|
58
58
|
} finally {
|
|
59
59
|
o.loading = !1;
|
|
60
60
|
}
|
|
61
|
-
},
|
|
61
|
+
}, _ = (e) => {
|
|
62
62
|
const t = {};
|
|
63
63
|
return Object.entries(e).forEach(([r, n]) => {
|
|
64
|
-
if (t[r] = n,
|
|
65
|
-
const a =
|
|
64
|
+
if (t[r] = n, R && n) {
|
|
65
|
+
const a = R[r];
|
|
66
66
|
a && (t[r] = ae(a, n));
|
|
67
67
|
}
|
|
68
68
|
}), t;
|
|
69
69
|
}, Q = async (e) => {
|
|
70
70
|
var n, a, u, f, d;
|
|
71
|
-
const t =
|
|
72
|
-
Object.entries(t).forEach(([m,
|
|
73
|
-
|
|
74
|
-
}), await ((a = (n =
|
|
71
|
+
const t = F(), r = {};
|
|
72
|
+
Object.entries(t).forEach(([m, x]) => {
|
|
73
|
+
V && V.indexOf(m) > -1 && (r[m] = x);
|
|
74
|
+
}), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), te(() => {
|
|
75
75
|
e == null || e();
|
|
76
76
|
});
|
|
77
|
-
},
|
|
77
|
+
}, w = (e) => {
|
|
78
78
|
s = e;
|
|
79
|
-
const t =
|
|
80
|
-
|
|
79
|
+
const t = _(e);
|
|
80
|
+
O(t);
|
|
81
81
|
}, W = (e) => {
|
|
82
|
-
|
|
82
|
+
w({
|
|
83
83
|
...s,
|
|
84
84
|
...e
|
|
85
85
|
});
|
|
86
86
|
}, E = () => {
|
|
87
|
-
const e =
|
|
88
|
-
p && (c.current =
|
|
87
|
+
const e = F();
|
|
88
|
+
p && (c.current = S), w({
|
|
89
89
|
...e,
|
|
90
90
|
filter: s.filter,
|
|
91
91
|
sort: s.sort,
|
|
92
|
-
current: p ?
|
|
92
|
+
current: p ? S : void 0,
|
|
93
93
|
pageSize: p ? s.pageSize || c.pageSize : void 0
|
|
94
94
|
});
|
|
95
95
|
}, Z = () => {
|
|
96
96
|
J(), s.sort = {}, s.filter = {}, Q(E);
|
|
97
|
-
},
|
|
98
|
-
|
|
97
|
+
}, j = () => {
|
|
98
|
+
w(s);
|
|
99
99
|
}, H = (e) => {
|
|
100
100
|
if (!p)
|
|
101
|
-
|
|
101
|
+
j();
|
|
102
102
|
else {
|
|
103
103
|
const {
|
|
104
104
|
current: t,
|
|
@@ -108,16 +108,16 @@ const Te = ({
|
|
|
108
108
|
current: u > 0 ? u : 1
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
},
|
|
112
|
-
var m,
|
|
113
|
-
const n =
|
|
111
|
+
}, q = (e, t, r) => {
|
|
112
|
+
var m, x;
|
|
113
|
+
const n = F();
|
|
114
114
|
c.current = e.current, c.pageSize = e.pageSize, G(t, r);
|
|
115
|
-
const a =
|
|
115
|
+
const a = N(r) ? [...r] : [r], u = {};
|
|
116
116
|
for (const i of a)
|
|
117
117
|
(m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[se(i.columnKey || i.field)] = i.order);
|
|
118
118
|
const f = {};
|
|
119
119
|
for (const i of Object.keys(t))
|
|
120
|
-
(
|
|
120
|
+
(x = h(U)) != null && x.includes(i) && t[i] && (f[i] = t[i]);
|
|
121
121
|
const d = {
|
|
122
122
|
...n,
|
|
123
123
|
filter: f,
|
|
@@ -125,10 +125,10 @@ const Te = ({
|
|
|
125
125
|
current: e.current,
|
|
126
126
|
pageSize: e.pageSize
|
|
127
127
|
};
|
|
128
|
-
ie(s, d, ce) ||
|
|
128
|
+
ie(s, d, ce) || w(d);
|
|
129
129
|
};
|
|
130
130
|
re(() => {
|
|
131
|
-
const e =
|
|
131
|
+
const e = F(), {
|
|
132
132
|
current: t,
|
|
133
133
|
pageSize: r
|
|
134
134
|
} = c;
|
|
@@ -139,10 +139,10 @@ const Te = ({
|
|
|
139
139
|
sort: {},
|
|
140
140
|
...e
|
|
141
141
|
}, !g) {
|
|
142
|
-
const n =
|
|
143
|
-
|
|
142
|
+
const n = _(s);
|
|
143
|
+
O(n);
|
|
144
144
|
}
|
|
145
|
-
}), oe(() => h(
|
|
145
|
+
}), oe(() => h(v), () => {
|
|
146
146
|
E();
|
|
147
147
|
}, {
|
|
148
148
|
deep: !0
|
|
@@ -157,7 +157,7 @@ const Te = ({
|
|
|
157
157
|
return `${e}/${Math.ceil(o.total / t)}`;
|
|
158
158
|
});
|
|
159
159
|
function Y(e) {
|
|
160
|
-
|
|
160
|
+
N(e) && (o.records = e, o.total = e.length);
|
|
161
161
|
}
|
|
162
162
|
const k = A(() => {
|
|
163
163
|
const {
|
|
@@ -174,30 +174,30 @@ const Te = ({
|
|
|
174
174
|
showQuickJumper: !e,
|
|
175
175
|
showLessItems: e,
|
|
176
176
|
size: "default",
|
|
177
|
-
showTotal: t ? (r) =>
|
|
178
|
-
class:
|
|
179
|
-
}, [
|
|
180
|
-
class:
|
|
181
|
-
}, [r]), " ",
|
|
182
|
-
class:
|
|
183
|
-
}, [
|
|
184
|
-
class:
|
|
185
|
-
}, [h(X)]), " ",
|
|
177
|
+
showTotal: t ? (r) => C("span", {
|
|
178
|
+
class: P("pagination-total-wrapper")
|
|
179
|
+
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
|
|
180
|
+
class: P("pagination-count-text")
|
|
181
|
+
}, [r]), " ", T("ap.apTable.pagination.totalLeftSuffix"), C("span", {
|
|
182
|
+
class: P("pagination--total-right")
|
|
183
|
+
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
|
|
184
|
+
class: P("pagination-count-text")
|
|
185
|
+
}, [h(X)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
186
186
|
},
|
|
187
|
-
onChange:
|
|
187
|
+
onChange: q,
|
|
188
188
|
dataSource: o.records
|
|
189
189
|
};
|
|
190
190
|
});
|
|
191
191
|
return {
|
|
192
|
-
formRef:
|
|
192
|
+
formRef: z,
|
|
193
193
|
submit: E,
|
|
194
194
|
reset: Z,
|
|
195
|
-
refresh:
|
|
195
|
+
refresh: j,
|
|
196
196
|
refreshByDelete: H,
|
|
197
197
|
data: o,
|
|
198
198
|
current: c.current,
|
|
199
199
|
pageSize: c.pageSize,
|
|
200
|
-
handleTableChange:
|
|
200
|
+
handleTableChange: q,
|
|
201
201
|
tableProps: k,
|
|
202
202
|
dataSource: A(() => o.records),
|
|
203
203
|
setDataSource: Y,
|