@aplus-frontend/ui 0.3.1 → 0.3.3
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 +177 -175
- package/es/src/ap-form/ap-form.vue.d.ts +5 -6
- package/es/src/ap-form/ap-form.vue2.mjs +3 -3
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/interface.d.ts +12 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +71 -52
- package/es/src/business/ap-export-group/convertExportField.d.ts +4 -0
- package/es/src/business/ap-export-group/convertExportField.mjs +13 -0
- package/es/src/business/ap-export-group/index.d.ts +20 -1
- package/es/src/business/ap-export-group/index.mjs +8 -6
- package/es/src/business/ap-export-group/interface.d.ts +9 -0
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +11 -10
- package/es/src/config-provider/constants.d.ts +6 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +16 -1
- package/es/src/index.mjs +59 -57
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +5 -6
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/interface.d.ts +12 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +6 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/convertExportField.d.ts +4 -0
- package/lib/src/business/ap-export-group/convertExportField.js +1 -0
- package/lib/src/business/ap-export-group/index.d.ts +20 -1
- package/lib/src/business/ap-export-group/index.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +9 -0
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +6 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +16 -1
- package/lib/src/index.js +1 -1
- package/package.json +3 -3
package/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as e from "./src/index.mjs";
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
@@ -9,7 +9,7 @@ import { defaultNamespace as S, namespaceContextKey as h, useGetDerivedNamespace
|
|
|
9
9
|
import { ConfigProvider as P, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as k } from "./src/ap-form/items/text/index.mjs";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as E } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as K } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
14
|
import { default as U } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
15
|
import { default as z } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
@@ -18,60 +18,60 @@ import { default as j } from "./src/ap-form/items/select/index.vue.mjs";
|
|
|
18
18
|
import { default as J } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
19
19
|
import { default as X } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
20
20
|
import { default as Z } from "./src/ap-form/items/text/password.vue.mjs";
|
|
21
|
-
import { ApForm as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { ApField as
|
|
33
|
-
import { ApFieldText as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { adminToken as
|
|
47
|
-
import { ApActionItem as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { DictCode as
|
|
53
|
-
import { createWorkOrderModal as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { NeedNameKeyDefault as
|
|
59
|
-
import { default as
|
|
60
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
61
|
-
import { default as
|
|
62
|
-
import { CheckCard as
|
|
63
|
-
import { default as
|
|
64
|
-
import { ApModal as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { ApDrawer as
|
|
69
|
-
import { ApTransformDataHelper as $
|
|
70
|
-
import { default as
|
|
71
|
-
import { useTableModal as
|
|
72
|
-
import { useTableSelectModal as
|
|
73
|
-
import { ApAttachment as
|
|
74
|
-
import { ApBatchAction as
|
|
21
|
+
import { ApForm as oo } from "./src/ap-form/index.mjs";
|
|
22
|
+
import { default as ro } from "./src/ap-form/item/index.vue.mjs";
|
|
23
|
+
import { default as po } from "./src/ap-form/item-group/index.vue.mjs";
|
|
24
|
+
import { default as fo } from "./src/ap-form/list/index.vue.mjs";
|
|
25
|
+
import { default as lo } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
|
+
import { default as uo } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
+
import { default as Ao } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
|
+
import { default as io } from "./src/ap-form/set/index.vue.mjs";
|
|
29
|
+
import { default as Fo } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
+
import { default as Io } from "./src/ap-form/render/control.vue.mjs";
|
|
31
|
+
import { default as Co } from "./src/ap-form/render/item.vue.mjs";
|
|
32
|
+
import { ApField as Do } from "./src/ap-field/index.mjs";
|
|
33
|
+
import { ApFieldText as ho } from "./src/ap-field/text/index.mjs";
|
|
34
|
+
import { default as yo } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
35
|
+
import { default as Po } from "./src/ap-field/date/index.vue.mjs";
|
|
36
|
+
import { default as Mo } from "./src/ap-field/number/index.vue.mjs";
|
|
37
|
+
import { default as Ro } from "./src/ap-field/radio/index.vue.mjs";
|
|
38
|
+
import { default as vo } from "./src/ap-field/switch/index.vue.mjs";
|
|
39
|
+
import { default as Bo } from "./src/ap-field/text-area/index.vue.mjs";
|
|
40
|
+
import { default as Oo } from "./src/ap-field/date-range/index.vue.mjs";
|
|
41
|
+
import { default as Wo } from "./src/ap-field/select/index.vue.mjs";
|
|
42
|
+
import { default as Ho } from "./src/ap-field/text/password.vue.mjs";
|
|
43
|
+
import { default as $o } from "./src/ap-field/slider/index.vue.mjs";
|
|
44
|
+
import { default as qo } from "./src/ap-field/segmented/index.vue.mjs";
|
|
45
|
+
import { default as Qo } from "./src/ap-field/rate/index.vue.mjs";
|
|
46
|
+
import { adminToken as Yo, aplusToken as Zo } from "./src/design-token/index.mjs";
|
|
47
|
+
import { ApActionItem as oe } from "./src/ap-action/index.mjs";
|
|
48
|
+
import { default as re } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
49
|
+
import { default as pe } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
50
|
+
import { default as fe } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
51
|
+
import { default as le } from "./src/ap-action/group/index.vue.mjs";
|
|
52
|
+
import { DictCode as de, langMap as ue } from "./src/work-order-modal/interfaces.mjs";
|
|
53
|
+
import { createWorkOrderModal as Ae } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
54
|
+
import { default as ie } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
55
|
+
import { default as Fe } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
56
|
+
import { default as Ie } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
57
|
+
import { default as Ce } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
58
|
+
import { NeedNameKeyDefault as De } from "./src/ap-upload/apUploadTypes.mjs";
|
|
59
|
+
import { default as he } from "./src/ap-upload/apUpload.vue.mjs";
|
|
60
|
+
import { ApDownLoadNeedNameKeyDefault as ye } from "./src/ap-download/interface.mjs";
|
|
61
|
+
import { default as Pe } from "./src/ap-download/ap-download.vue.mjs";
|
|
62
|
+
import { CheckCard as Me } from "./src/check-card/index.mjs";
|
|
63
|
+
import { default as Re } from "./src/check-card/group.vue.mjs";
|
|
64
|
+
import { ApModal as ve } from "./src/ap-modal/index.mjs";
|
|
65
|
+
import { default as Be } from "./src/ap-list/index.vue.mjs";
|
|
66
|
+
import { default as Oe } from "./src/ap-button/ap-button.vue.mjs";
|
|
67
|
+
import { default as We } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
68
|
+
import { ApDrawer as He } from "./src/ap-drawer/index.mjs";
|
|
69
|
+
import { ApTransformDataHelper as $e } from "./src/utils/ap-trans-data/index.mjs";
|
|
70
|
+
import { default as qe } from "./src/business/ap-table-modal/index.mjs";
|
|
71
|
+
import { useTableModal as Qe } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
72
|
+
import { useTableSelectModal as Ye } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
73
|
+
import { ApAttachment as _e } from "./src/business/ap-attachment/index.mjs";
|
|
74
|
+
import { ApBatchAction as er } from "./src/business/ap-batch-action/index.mjs";
|
|
75
75
|
import { ApBatchActionGroup as tr } from "./src/business/ap-batch-action-group/index.mjs";
|
|
76
76
|
import { ApButtonGroup as ar } from "./src/business/ap-button-group/index.mjs";
|
|
77
77
|
import { ApCard as mr } from "./src/business/ap-card/index.mjs";
|
|
@@ -79,164 +79,166 @@ import { ApExpandAlert as xr } from "./src/business/ap-expand-alert/index.mjs";
|
|
|
79
79
|
import { ApExportGroupActionType as ur } from "./src/business/ap-export-group/interface.mjs";
|
|
80
80
|
import { ApExportGroup as Ar } from "./src/business/ap-export-group/index.mjs";
|
|
81
81
|
import { handleExportDownload as ir } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import { default as rt } from "./src/business/
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import { default as st } from "./src/editable-table/
|
|
104
|
-
import { default as nt } from "./src/
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
82
|
+
import { convertExportField as Fr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
83
|
+
import { ApImage as Ir } from "./src/business/ap-image/index.mjs";
|
|
84
|
+
import { ApInputRadio as Cr } from "./src/business/ap-input-radio/index.mjs";
|
|
85
|
+
import { ApLabel as Dr, ApLabelGroup as Sr } from "./src/business/ap-label/index.mjs";
|
|
86
|
+
import { locales as Gr } from "./src/business/ap-ladder/interface.mjs";
|
|
87
|
+
import { ApLadder as Nr } from "./src/business/ap-ladder/index.mjs";
|
|
88
|
+
import { ApSelectLayout as Lr } from "./src/business/ap-select-layout/index.mjs";
|
|
89
|
+
import { ApStatus as wr, ApStatusGroup as Rr } from "./src/business/ap-status/index.mjs";
|
|
90
|
+
import { ApTitle as vr } from "./src/business/ap-title/index.mjs";
|
|
91
|
+
import { usePageListApTable as Br } from "./src/business/hooks/usePageListApTable.mjs";
|
|
92
|
+
import { useTableRefresh as Or } from "./src/business/hooks/useTableRefresh.mjs";
|
|
93
|
+
import { computedRecords as Wr, flattenColumns as zr, formatDataIndex as Hr, formatNumber as Vr } from "./src/business/ap-summary/utils.mjs";
|
|
94
|
+
import { ApSummary as jr } from "./src/business/ap-summary/index.mjs";
|
|
95
|
+
import { ApNeedNameKeyDefault as Jr } from "./src/business/ap-appendix/interface.mjs";
|
|
96
|
+
import { ApAppendix as Xr } from "./src/business/ap-appendix/index.mjs";
|
|
97
|
+
import { ApExtensionSelect as Zr, ApGroupSearch as _r, ApPopoverSelect as ot } from "./src/business/ap-group-search/index.mjs";
|
|
98
|
+
import { default as rt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
99
|
+
import { default as pt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
100
|
+
import { ApSizeInput as ft } from "./src/business/ap-size-input/index.mjs";
|
|
101
|
+
import { useTablePaging as lt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
102
|
+
import { ApTable as dt } from "./src/ap-table/index.mjs";
|
|
103
|
+
import { default as st } from "./src/editable-table/index.vue.mjs";
|
|
104
|
+
import { default as nt } from "./src/editable-table/form-item.vue.mjs";
|
|
105
|
+
import { default as ct } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
106
|
+
import { ApScrollBar as bt } from "./src/ap-scroll-bar/index.mjs";
|
|
107
|
+
import { useMessage as Tt } from "./src/hooks/useMessage.mjs";
|
|
108
|
+
import { useControllableValue as gt } from "./src/hooks/useControllableValue.mjs";
|
|
108
109
|
const a = {
|
|
109
110
|
install: (r) => {
|
|
110
|
-
for (const t in
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
for (const t in e) {
|
|
112
|
+
const o = e[t];
|
|
113
|
+
o.install && r.use(o);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
export {
|
|
117
118
|
w as APConfigProvider,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
We as ApActionButton,
|
|
120
|
+
le as ApActionGroup,
|
|
121
|
+
oe as ApActionItem,
|
|
122
|
+
fe as ApActionItemDropdown,
|
|
123
|
+
re as ApActionItemModal,
|
|
124
|
+
pe as ApActionItemPopconfirm,
|
|
125
|
+
Xr as ApAppendix,
|
|
126
|
+
_e as ApAttachment,
|
|
127
|
+
er as ApBatchAction,
|
|
127
128
|
tr as ApBatchActionGroup,
|
|
128
|
-
|
|
129
|
+
Oe as ApButton,
|
|
129
130
|
ar as ApButtonGroup,
|
|
130
131
|
mr as ApCard,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
ct as ApDescriptions,
|
|
133
|
+
ye as ApDownLoadNeedNameKeyDefault,
|
|
134
|
+
Pe as ApDownload,
|
|
135
|
+
He as ApDrawer,
|
|
135
136
|
xr as ApExpandAlert,
|
|
136
137
|
Ar as ApExportGroup,
|
|
137
138
|
ur as ApExportGroupActionType,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
139
|
+
Zr as ApExtensionSelect,
|
|
140
|
+
Do as ApField,
|
|
141
|
+
yo as ApFieldCheckbox,
|
|
142
|
+
Po as ApFieldDate,
|
|
143
|
+
Oo as ApFieldDateRange,
|
|
144
|
+
Mo as ApFieldNumber,
|
|
145
|
+
Ho as ApFieldPassword,
|
|
146
|
+
Ro as ApFieldRadio,
|
|
147
|
+
Qo as ApFieldRate,
|
|
148
|
+
qo as ApFieldSegmented,
|
|
149
|
+
Wo as ApFieldSelect,
|
|
150
|
+
$o as ApFieldSlider,
|
|
151
|
+
vo as ApFieldSwitch,
|
|
152
|
+
ho as ApFieldText,
|
|
153
|
+
Bo as ApFieldTextArea,
|
|
154
|
+
oo as ApForm,
|
|
155
|
+
Io as ApFormControlRender,
|
|
156
|
+
Ao as ApFormDependency,
|
|
157
|
+
Fo as ApFormDrawerForm,
|
|
158
|
+
ro as ApFormItem,
|
|
158
159
|
X as ApFormItemCheckbox,
|
|
159
160
|
U as ApFormItemDate,
|
|
160
161
|
z as ApFormItemDateRange,
|
|
161
|
-
|
|
162
|
+
po as ApFormItemGroup,
|
|
162
163
|
K as ApFormItemNumber,
|
|
163
164
|
V as ApFormItemRadio,
|
|
164
|
-
|
|
165
|
+
Co as ApFormItemRender,
|
|
165
166
|
j as ApFormItemSelect,
|
|
166
167
|
J as ApFormItemSwitch,
|
|
167
168
|
k as ApFormItemText,
|
|
168
|
-
|
|
169
|
+
E as ApFormItemTextArea,
|
|
169
170
|
Z as ApFormItemTextPassword,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
$
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
171
|
+
fo as ApFormList,
|
|
172
|
+
uo as ApFormModalForm,
|
|
173
|
+
lo as ApFormSearchForm,
|
|
174
|
+
io as ApFormSet,
|
|
175
|
+
_r as ApGroupSearch,
|
|
176
|
+
Ir as ApImage,
|
|
177
|
+
Ce as ApInfoLayout,
|
|
178
|
+
Cr as ApInputRadio,
|
|
179
|
+
Dr as ApLabel,
|
|
180
|
+
Sr as ApLabelGroup,
|
|
181
|
+
Nr as ApLadder,
|
|
182
|
+
Be as ApList,
|
|
183
|
+
ve as ApModal,
|
|
184
|
+
Jr as ApNeedNameKeyDefault,
|
|
185
|
+
ot as ApPopoverSelect,
|
|
186
|
+
bt as ApScrollBar,
|
|
187
|
+
Lr as ApSelectLayout,
|
|
188
|
+
ft as ApSizeInput,
|
|
189
|
+
wr as ApStatus,
|
|
190
|
+
Rr as ApStatusGroup,
|
|
191
|
+
jr as ApSummary,
|
|
192
|
+
dt as ApTable,
|
|
193
|
+
qe as ApTableModal,
|
|
194
|
+
Fe as ApTag,
|
|
195
|
+
Ie as ApTagGroup,
|
|
196
|
+
vr as ApTitle,
|
|
197
|
+
$e as ApTransformDataHelper,
|
|
198
|
+
he as ApUpload,
|
|
199
|
+
rt as ApUploadSingle,
|
|
200
|
+
pt as BatchInputGroup,
|
|
201
|
+
Me as CheckCard,
|
|
202
|
+
Re as CheckCardGroup,
|
|
202
203
|
P as ConfigProvider,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
de as DictCode,
|
|
205
|
+
st as EditableTable,
|
|
206
|
+
nt as EditableTableFormItem,
|
|
207
|
+
De as NeedNameKeyDefault,
|
|
208
|
+
ie as WorkOrderModal,
|
|
209
|
+
Yo as adminToken,
|
|
210
|
+
Zo as aplusToken,
|
|
210
211
|
b as buildLocaleContext,
|
|
211
212
|
I as buildTranslator,
|
|
212
|
-
|
|
213
|
+
Wr as computedRecords,
|
|
213
214
|
s as configProviderContextKey,
|
|
214
215
|
d as configProviderProps,
|
|
215
|
-
|
|
216
|
+
Fr as convertExportField,
|
|
217
|
+
Ae as createWorkOrderModal,
|
|
216
218
|
a as default,
|
|
217
219
|
S as defaultNamespace,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
zr as flattenColumns,
|
|
221
|
+
Hr as formatDataIndex,
|
|
222
|
+
Vr as formatNumber,
|
|
221
223
|
L as globalConfigCached,
|
|
222
224
|
ir as handleExportDownload,
|
|
223
225
|
n as keysOf,
|
|
224
|
-
|
|
226
|
+
ue as langMap,
|
|
225
227
|
T as localeContextKey,
|
|
226
|
-
|
|
228
|
+
Gr as locales,
|
|
227
229
|
h as namespaceContextKey,
|
|
228
230
|
l as pathMap,
|
|
229
231
|
i as provideGlobalConfig,
|
|
230
232
|
C as translate,
|
|
231
|
-
|
|
233
|
+
gt as useControllableValue,
|
|
232
234
|
G as useGetDerivedNamespace,
|
|
233
235
|
c as useGlobalConfig,
|
|
234
236
|
g as useLocale,
|
|
235
|
-
|
|
237
|
+
Tt as useMessage,
|
|
236
238
|
y as useNamespace,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
Br as usePageListApTable,
|
|
240
|
+
Qe as useTableModal,
|
|
241
|
+
lt as useTablePaging,
|
|
242
|
+
Or as useTableRefresh,
|
|
243
|
+
Ye as useTableSelectModal
|
|
242
244
|
};
|
|
@@ -288,14 +288,13 @@ declare function __VLS_template(): {
|
|
|
288
288
|
};
|
|
289
289
|
xxl: {
|
|
290
290
|
type: PropType<string | number | ColSize>;
|
|
291
|
-
default: string | number |
|
|
291
|
+
default: string | number | **
|
|
292
|
+
* 订阅事件
|
|
293
|
+
*/).ColSize;
|
|
292
294
|
};
|
|
293
295
|
prefixCls: StringConstructor;
|
|
294
296
|
flex: (StringConstructor | NumberConstructor)[];
|
|
295
|
-
}>> &
|
|
296
|
-
* 注册表单项
|
|
297
|
-
* @param field
|
|
298
|
-
*/).HTMLAttributes;
|
|
297
|
+
}>> & HTMLAttributes;
|
|
299
298
|
labelAlign: FormLabelAlign;
|
|
300
299
|
labelWrap: boolean;
|
|
301
300
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
@@ -683,7 +682,7 @@ declare const __VLS_component: DefineComponent<ApFormProps, {
|
|
|
683
682
|
}> | undefined;
|
|
684
683
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
685
684
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
686
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
685
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
687
686
|
registerWatch: typeof registerWatch;
|
|
688
687
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
689
688
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -49,7 +49,7 @@ const ye = /* @__PURE__ */ $({
|
|
|
49
49
|
} else
|
|
50
50
|
n[e] = t;
|
|
51
51
|
let o = f(e) ? e[0] : e;
|
|
52
|
-
l && ((i = s.onValuesChange) == null || i.call(s, { [o]: n[o] }, n)), g();
|
|
52
|
+
l && ((i = s.onValuesChange) == null || i.call(s, { [o]: n[o] }, n, e)), g();
|
|
53
53
|
}
|
|
54
54
|
const a = M(), v = se(ne()), B = M(
|
|
55
55
|
s.syncToUrl ? _(s.syncToUrl, v, "get") : {}
|
|
@@ -112,8 +112,8 @@ const ye = /* @__PURE__ */ $({
|
|
|
112
112
|
(l = a.value) == null || l.scrollToField(e, t);
|
|
113
113
|
}, L = (e) => {
|
|
114
114
|
Object.assign(n, e), g();
|
|
115
|
-
}, P = (e, t) => {
|
|
116
|
-
y(e, t), g();
|
|
115
|
+
}, P = (e, t, l = !0) => {
|
|
116
|
+
y(e, t, l), g();
|
|
117
117
|
};
|
|
118
118
|
function T(e, t) {
|
|
119
119
|
return t || e(O(n)), F.push(e), () => {
|
|
@@ -110,7 +110,7 @@ declare function __VLS_template(): {
|
|
|
110
110
|
readonly hideRequiredMark?: boolean | undefined;
|
|
111
111
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
112
112
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
113
|
-
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable) => void)) | undefined;
|
|
113
|
+
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void)) | undefined;
|
|
114
114
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
115
115
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
116
116
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -147,7 +147,7 @@ declare function __VLS_template(): {
|
|
|
147
147
|
}> | undefined;
|
|
148
148
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
149
149
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
150
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
150
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
151
151
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
152
152
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
153
153
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -191,7 +191,7 @@ declare function __VLS_template(): {
|
|
|
191
191
|
hideRequiredMark: boolean;
|
|
192
192
|
validateOnRuleChange: boolean;
|
|
193
193
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
194
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
194
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "registerWatch" | "setFieldValue" | "setFieldsValue" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "getInternalInstance" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
195
195
|
resetFields: () => Promise<void>;
|
|
196
196
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
197
197
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
@@ -205,7 +205,7 @@ declare function __VLS_template(): {
|
|
|
205
205
|
}> | undefined;
|
|
206
206
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
207
207
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
208
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
208
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
209
209
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
210
210
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
211
211
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -43,9 +43,10 @@ export type ApFormProps = Omit<FormProps, 'model'> & {
|
|
|
43
43
|
* 字段值更新时触发
|
|
44
44
|
* @param changedValues 更改的字段值
|
|
45
45
|
* @param allValues 更改后的字段值
|
|
46
|
+
* @param fieldName 触发change的表单项
|
|
46
47
|
* @returns
|
|
47
48
|
*/
|
|
48
|
-
onValuesChange?: (changedValues: Recordable, allValues: Recordable) => void;
|
|
49
|
+
onValuesChange?: (changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void;
|
|
49
50
|
/**
|
|
50
51
|
* 同步表单数据到url中
|
|
51
52
|
*/
|
|
@@ -58,7 +59,7 @@ export type ApFormProps = Omit<FormProps, 'model'> & {
|
|
|
58
59
|
export type WatchFunc = (values?: Recordable) => void;
|
|
59
60
|
export type ApFormExpose<ModelType = any> = {
|
|
60
61
|
setFieldsValue: (fields: Partial<ModelType>) => void;
|
|
61
|
-
setFieldValue: (name: NamePath, value: any) => void;
|
|
62
|
+
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean) => void;
|
|
62
63
|
resetFields: () => Promise<void>;
|
|
63
64
|
clearValidate: (name?: NamePath) => void;
|
|
64
65
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<Partial<ModelType>> | undefined;
|
|
@@ -107,7 +108,15 @@ export type ApFormInternalInstance = {
|
|
|
107
108
|
* @returns
|
|
108
109
|
*/
|
|
109
110
|
registerField: (field: RegistedFieldType) => void;
|
|
110
|
-
|
|
111
|
+
/**
|
|
112
|
+
* 设置表单值
|
|
113
|
+
* @param name
|
|
114
|
+
* @param value
|
|
115
|
+
* @param triggerChange
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
setFieldValue: (name: NamePath, value: any, triggerChange?: boolean) => void;
|
|
119
|
+
};
|
|
111
120
|
export type ApFormItemExpose = FormItemExpose & {
|
|
112
121
|
/**
|
|
113
122
|
* 是否需要格式化(默认为false)
|
|
@@ -111,7 +111,7 @@ declare function __VLS_template(): {
|
|
|
111
111
|
readonly hideRequiredMark?: boolean | undefined;
|
|
112
112
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
113
113
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
114
|
-
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable) => void)) | undefined;
|
|
114
|
+
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void)) | undefined;
|
|
115
115
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
116
116
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
117
117
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -148,7 +148,7 @@ declare function __VLS_template(): {
|
|
|
148
148
|
}> | undefined;
|
|
149
149
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
150
150
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
151
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
151
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
152
152
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
153
153
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
154
154
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -192,7 +192,7 @@ declare function __VLS_template(): {
|
|
|
192
192
|
hideRequiredMark: boolean;
|
|
193
193
|
validateOnRuleChange: boolean;
|
|
194
194
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
195
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
195
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "registerWatch" | "setFieldValue" | "setFieldsValue" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "getInternalInstance" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
196
196
|
resetFields: () => Promise<void>;
|
|
197
197
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
198
198
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
@@ -206,7 +206,7 @@ declare function __VLS_template(): {
|
|
|
206
206
|
}> | undefined;
|
|
207
207
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
208
208
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
209
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
209
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
210
210
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
211
211
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
212
212
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|