@aplus-frontend/ui 0.1.38 → 0.1.40
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 +136 -134
- package/es/src/ap-descriptions/formatter/index.mjs +24 -24
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +8 -4
- package/es/src/ap-form/interface.d.ts +30 -1
- package/es/src/ap-form/modal-form/drawer.vue.d.ts +830 -0
- package/es/src/ap-form/modal-form/drawer.vue.mjs +288 -0
- package/es/src/ap-form/modal-form/drawer.vue2.mjs +4 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +56 -47
- package/es/src/ap-form/style/drawer-form.css +10 -0
- package/es/src/ap-table/ap-table.vue.mjs +96 -95
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +2 -2
- package/es/src/ap-table/hooks/use-table-column-state.mjs +37 -37
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging.mjs +74 -74
- package/es/src/ap-table/style/ap-table.css +6 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +18 -20
- package/es/src/index.mjs +107 -105
- package/es/src/theme/ap-form/drawer-form.css +10 -0
- package/es/src/theme/ap-table/ap-table.css +6 -0
- package/es/src/theme/css-var/index.mjs +10 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +30 -1
- package/lib/src/ap-form/modal-form/drawer.vue.d.ts +830 -0
- package/lib/src/ap-form/modal-form/drawer.vue.js +1 -0
- package/lib/src/ap-form/modal-form/drawer.vue2.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/drawer-form.css +10 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +2 -2
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/style/ap-table.css +6 -0
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-form/drawer-form.css +10 -0
- package/lib/src/theme/ap-table/ap-table.css +6 -0
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { configProviderContextKey as n, tableDefaultConfig as i } from "./src/co
|
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
7
|
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as P, namespaceContextKey as M, useGetDerivedNamespace as B, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
-
import { ConfigProvider as
|
|
9
|
+
import { ConfigProvider as w, globalConfigCached as v } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as N } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
@@ -25,7 +25,7 @@ import { Field as De } from "./src/pro-form/index.mjs";
|
|
|
25
25
|
import { default as Pe } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
26
|
import { default as Be } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
27
|
import { default as Ge } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as ve } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
29
|
import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as Ne } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
31
|
import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
|
|
@@ -50,7 +50,7 @@ import { default as Do } from "./src/pro-table/components/table-image.vue.mjs";
|
|
|
50
50
|
import { useTable as Po } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
51
|
import { ApFormItemText as Bo } from "./src/ap-form/items/text/index.mjs";
|
|
52
52
|
import { default as Go } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
-
import { default as
|
|
53
|
+
import { default as vo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as No } 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";
|
|
@@ -66,61 +66,62 @@ import { default as rr } from "./src/ap-form/search-form/index.vue.mjs";
|
|
|
66
66
|
import { default as ar } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
67
67
|
import { default as fr } from "./src/ap-form/dependency/index.vue.mjs";
|
|
68
68
|
import { default as lr } from "./src/ap-form/set/index.vue.mjs";
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import { default as cr } from "./src/ap-field/
|
|
73
|
-
import { default as Fr } from "./src/ap-field/
|
|
74
|
-
import { default as br } from "./src/ap-field/
|
|
75
|
-
import { default as Ir } from "./src/ap-field/
|
|
76
|
-
import { default as Dr } from "./src/ap-field/
|
|
77
|
-
import { default as Pr } from "./src/ap-field/
|
|
78
|
-
import { default as Br } from "./src/ap-field/
|
|
79
|
-
import { default as Gr } from "./src/ap-field/
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as kr } from "./src/ap-field/
|
|
82
|
-
import { default as Nr } from "./src/ap-field/
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import { default as Ur } from "./src/ap-action/item-
|
|
87
|
-
import { default as $r } from "./src/ap-action/item-
|
|
88
|
-
import { default as qr } from "./src/ap-action/
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import { default as tt } from "./src/ap-custom-column/column
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import { default as ut } from "./src/
|
|
97
|
-
import { default as it } from "./src/ap-tag/ap-tag
|
|
98
|
-
import { default as ct } from "./src/ap-
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import { default as kt } from "./src/ap-
|
|
108
|
-
import { default as Nt } from "./src/ap-button/ap-
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import { default as Ca } from "./src/
|
|
120
|
-
import { default as Sa } from "./src/editable-table/
|
|
121
|
-
import { default as ga } from "./src/
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
69
|
+
import { default as dr } from "./src/ap-form/modal-form/drawer.vue.mjs";
|
|
70
|
+
import { ApField as ur } from "./src/ap-field/index.mjs";
|
|
71
|
+
import { ApFieldText as ir } from "./src/ap-field/text/index.mjs";
|
|
72
|
+
import { default as cr } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
73
|
+
import { default as Fr } from "./src/ap-field/date/index.vue.mjs";
|
|
74
|
+
import { default as br } from "./src/ap-field/number/index.vue.mjs";
|
|
75
|
+
import { default as Ir } from "./src/ap-field/radio/index.vue.mjs";
|
|
76
|
+
import { default as Dr } from "./src/ap-field/switch/index.vue.mjs";
|
|
77
|
+
import { default as Pr } from "./src/ap-field/text-area/index.vue.mjs";
|
|
78
|
+
import { default as Br } from "./src/ap-field/date-range/index.vue.mjs";
|
|
79
|
+
import { default as Gr } from "./src/ap-field/select/index.vue.mjs";
|
|
80
|
+
import { default as vr } from "./src/ap-field/text/password.vue.mjs";
|
|
81
|
+
import { default as kr } from "./src/ap-field/slider/index.vue.mjs";
|
|
82
|
+
import { default as Nr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
83
|
+
import { default as Kr } from "./src/ap-field/rate/index.vue.mjs";
|
|
84
|
+
import { adminToken as Yr, aplusToken as Hr } from "./src/design-token/index.mjs";
|
|
85
|
+
import { ApActionItem as Wr } from "./src/ap-action/index.mjs";
|
|
86
|
+
import { default as Ur } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
87
|
+
import { default as $r } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
88
|
+
import { default as qr } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
89
|
+
import { default as Qr } from "./src/ap-action/group/index.vue.mjs";
|
|
90
|
+
import { generateTableList as _r } from "./src/ap-custom-column/utils.mjs";
|
|
91
|
+
import { useCacheColumnSetting as ot } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
|
|
92
|
+
import { default as tt } from "./src/ap-custom-column/custom-column.vue.mjs";
|
|
93
|
+
import { default as pt } from "./src/ap-custom-column/column-select.vue.mjs";
|
|
94
|
+
import { DictCode as mt, langMap as lt } from "./src/work-order-modal/interfaces.mjs";
|
|
95
|
+
import { createWorkOrderModal as dt } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
96
|
+
import { default as ut } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
97
|
+
import { default as it } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
98
|
+
import { default as ct } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
99
|
+
import { default as Ft } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
100
|
+
import { NeedNameKeyDefault as bt } from "./src/ap-upload/apUploadTypes.mjs";
|
|
101
|
+
import { default as It } from "./src/ap-upload/apUpload.vue.mjs";
|
|
102
|
+
import { ApDownLoadNeedNameKeyDefault as Dt } from "./src/ap-download/interface.mjs";
|
|
103
|
+
import { default as Pt } from "./src/ap-download/ap-download.vue.mjs";
|
|
104
|
+
import { CheckCard as Bt } from "./src/check-card/index.mjs";
|
|
105
|
+
import { default as Gt } from "./src/check-card/group.vue.mjs";
|
|
106
|
+
import { ApModal as vt } from "./src/ap-modal/index.mjs";
|
|
107
|
+
import { default as kt } from "./src/ap-list/index.vue.mjs";
|
|
108
|
+
import { default as Nt } from "./src/ap-button/ap-button.vue.mjs";
|
|
109
|
+
import { default as Kt } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
110
|
+
import { usePageListApTable as Yt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
111
|
+
import { useTableRefresh as Ot } from "./src/business/hooks/useTableRefresh.mjs";
|
|
112
|
+
import { handleExportDownload as zt } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
113
|
+
import { default as Vt } from "./src/business/ap-table-modal/index.mjs";
|
|
114
|
+
import { useTableModal as jt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
115
|
+
import { useTableSelectModal as Jt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
116
|
+
import { ApAttachment as Zt, ApBatchAction as _t, ApBatchActionGroup as ea, ApButtonGroup as oa, ApCard as ra, ApExpandAlert as ta, ApExportGroup as aa, ApImage as pa, ApInputRadio as fa, ApLabel as ma, ApLabelGroup as la, ApLadder as sa, ApSelectLayout as da, ApStatus as xa, ApStatusGroup as ua, ApTitle as na } from "./src/business/index.mjs";
|
|
117
|
+
import { ApTransformDataHelper as Aa } from "./src/utils/ap-trans-data/index.mjs";
|
|
118
|
+
import { useTablePaging as Ta } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
119
|
+
import { default as Ca } from "./src/ap-table/ap-table.vue.mjs";
|
|
120
|
+
import { default as Sa } from "./src/editable-table/index.vue.mjs";
|
|
121
|
+
import { default as ga } from "./src/editable-table/form-item.vue.mjs";
|
|
122
|
+
import { default as ha } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
123
|
+
import { useMessage as Ma } from "./src/hooks/useMessage.mjs";
|
|
124
|
+
import { useControllableValue as Ra } from "./src/hooks/useControllableValue.mjs";
|
|
124
125
|
const p = {
|
|
125
126
|
install: (r) => {
|
|
126
127
|
for (const t in o) {
|
|
@@ -131,47 +132,48 @@ const p = {
|
|
|
131
132
|
};
|
|
132
133
|
export {
|
|
133
134
|
k as APConfigProvider,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
135
|
+
Kt as ApActionButton,
|
|
136
|
+
Qr as ApActionGroup,
|
|
137
|
+
Wr as ApActionItem,
|
|
138
|
+
qr as ApActionItemDropdown,
|
|
139
|
+
Ur as ApActionItemModal,
|
|
140
|
+
$r as ApActionItemPopconfirm,
|
|
141
|
+
Zt as ApAttachment,
|
|
142
|
+
_t as ApBatchAction,
|
|
143
|
+
ea as ApBatchActionGroup,
|
|
144
|
+
Nt as ApButton,
|
|
145
|
+
oa as ApButtonGroup,
|
|
146
|
+
ra as ApCard,
|
|
147
|
+
tt as ApCustomColumn,
|
|
148
|
+
pt as ApCustomSelect,
|
|
149
|
+
ha as ApDescriptions,
|
|
150
|
+
Dt as ApDownLoadNeedNameKeyDefault,
|
|
151
|
+
Pt as ApDownload,
|
|
152
|
+
ta as ApExpandAlert,
|
|
153
|
+
aa as ApExportGroup,
|
|
154
|
+
ur as ApField,
|
|
155
|
+
cr as ApFieldCheckbox,
|
|
156
|
+
Fr as ApFieldDate,
|
|
157
|
+
Br as ApFieldDateRange,
|
|
158
|
+
br as ApFieldNumber,
|
|
159
|
+
vr as ApFieldPassword,
|
|
160
|
+
Ir as ApFieldRadio,
|
|
161
|
+
Kr as ApFieldRate,
|
|
162
|
+
Nr as ApFieldSegmented,
|
|
163
|
+
Gr as ApFieldSelect,
|
|
164
|
+
kr as ApFieldSlider,
|
|
165
|
+
Dr as ApFieldSwitch,
|
|
166
|
+
ir as ApFieldText,
|
|
167
|
+
Pr as ApFieldTextArea,
|
|
167
168
|
jo as ApForm,
|
|
168
169
|
fr as ApFormDependency,
|
|
170
|
+
dr as ApFormDrawerForm,
|
|
169
171
|
Jo as ApFormItem,
|
|
170
172
|
zo as ApFormItemCheckbox,
|
|
171
173
|
ko as ApFormItemDate,
|
|
172
174
|
No as ApFormItemDateRange,
|
|
173
175
|
Zo as ApFormItemGroup,
|
|
174
|
-
|
|
176
|
+
vo as ApFormItemNumber,
|
|
175
177
|
Ko as ApFormItemRadio,
|
|
176
178
|
Yo as ApFormItemSelect,
|
|
177
179
|
Oo as ApFormItemSwitch,
|
|
@@ -182,28 +184,28 @@ export {
|
|
|
182
184
|
ar as ApFormModalForm,
|
|
183
185
|
rr as ApFormSearchForm,
|
|
184
186
|
lr as ApFormSet,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
187
|
+
pa as ApImage,
|
|
188
|
+
Ft as ApInfoLayout,
|
|
189
|
+
fa as ApInputRadio,
|
|
190
|
+
ma as ApLabel,
|
|
191
|
+
la as ApLabelGroup,
|
|
192
|
+
sa as ApLadder,
|
|
193
|
+
kt as ApList,
|
|
194
|
+
vt as ApModal,
|
|
195
|
+
da as ApSelectLayout,
|
|
196
|
+
xa as ApStatus,
|
|
197
|
+
ua as ApStatusGroup,
|
|
198
|
+
Ca as ApTable,
|
|
199
|
+
Vt as ApTableModal,
|
|
200
|
+
it as ApTag,
|
|
201
|
+
ct as ApTagGroup,
|
|
202
|
+
na as ApTitle,
|
|
203
|
+
Aa as ApTransformDataHelper,
|
|
204
|
+
It as ApUpload,
|
|
203
205
|
Pe as ApiCascader,
|
|
204
206
|
Be as ApiRadioGroup,
|
|
205
207
|
Ge as ApiSelect,
|
|
206
|
-
|
|
208
|
+
ve as ApiTransfer,
|
|
207
209
|
ke as ApiTree,
|
|
208
210
|
Ye as ApiTreeSelect,
|
|
209
211
|
Je as BaseButton,
|
|
@@ -211,21 +213,21 @@ export {
|
|
|
211
213
|
$ as BasicArrow,
|
|
212
214
|
j as BasicHelp,
|
|
213
215
|
q as BasicTitle,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
Bt as CheckCard,
|
|
217
|
+
Gt as CheckCardGroup,
|
|
216
218
|
K as CollapseContainer,
|
|
217
219
|
Q as CollapseTransition,
|
|
218
|
-
|
|
220
|
+
w as ConfigProvider,
|
|
219
221
|
xo as CountdownButton,
|
|
220
222
|
uo as CountdownInput,
|
|
221
223
|
mo as CropperAvatar,
|
|
222
224
|
lo as CropperImage,
|
|
223
225
|
Ae as Description,
|
|
224
|
-
|
|
226
|
+
mt as DictCode,
|
|
225
227
|
co as Dropdown,
|
|
226
228
|
Io as EditTableHeaderIcon,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
Sa as EditableTable,
|
|
230
|
+
ga as EditableTableFormItem,
|
|
229
231
|
_ as ExpandTransition,
|
|
230
232
|
ee as ExpandXTransition,
|
|
231
233
|
oe as FadeTransition,
|
|
@@ -233,7 +235,7 @@ export {
|
|
|
233
235
|
l as Icon,
|
|
234
236
|
H as IconPicker,
|
|
235
237
|
Ve as ModalButton,
|
|
236
|
-
|
|
238
|
+
bt as NeedNameKeyDefault,
|
|
237
239
|
je as PopConfirmButton,
|
|
238
240
|
Ke as ProForm,
|
|
239
241
|
Fo as ProTable,
|
|
@@ -256,48 +258,48 @@ export {
|
|
|
256
258
|
s as SvgIcon,
|
|
257
259
|
bo as TableAction,
|
|
258
260
|
Do as TableImg,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
ut as WorkOrderModal,
|
|
262
|
+
Yr as adminToken,
|
|
263
|
+
Hr as aplusToken,
|
|
262
264
|
b as buildLocaleContext,
|
|
263
265
|
S as buildTranslator,
|
|
264
266
|
n as configProviderContextKey,
|
|
265
267
|
x as configProviderProps,
|
|
266
268
|
io as createPrompt,
|
|
267
|
-
|
|
269
|
+
dt as createWorkOrderModal,
|
|
268
270
|
p as default,
|
|
269
271
|
P as defaultNamespace,
|
|
270
272
|
U as en,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
273
|
+
_r as generateTableList,
|
|
274
|
+
v as globalConfigCached,
|
|
275
|
+
zt as handleExportDownload,
|
|
274
276
|
Se as isComponentFormSchema,
|
|
275
277
|
Ie as isSlotFormSchema,
|
|
276
278
|
c as keysOf,
|
|
277
|
-
|
|
279
|
+
lt as langMap,
|
|
278
280
|
I as localeContextKey,
|
|
279
281
|
M as namespaceContextKey,
|
|
280
282
|
T as provideGlobalConfig,
|
|
281
283
|
i as tableDefaultConfig,
|
|
282
284
|
g as translate,
|
|
283
|
-
|
|
285
|
+
ot as useCacheColumnSetting,
|
|
284
286
|
Te as useComponentRegister,
|
|
285
|
-
|
|
287
|
+
Ra as useControllableValue,
|
|
286
288
|
ne as useDescription,
|
|
287
289
|
Ce as useForm,
|
|
288
290
|
B as useGetDerivedNamespace,
|
|
289
291
|
F as useGlobalConfig,
|
|
290
292
|
D as useLocale,
|
|
291
|
-
|
|
293
|
+
Ma as useMessage,
|
|
292
294
|
ro as useModal,
|
|
293
295
|
eo as useModalContext,
|
|
294
296
|
to as useModalInner,
|
|
295
297
|
R as useNamespace,
|
|
296
|
-
|
|
298
|
+
Yt as usePageListApTable,
|
|
297
299
|
Po as useTable,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
jt as useTableModal,
|
|
301
|
+
Ta as useTablePaging,
|
|
302
|
+
Ot as useTableRefresh,
|
|
303
|
+
Jt as useTableSelectModal,
|
|
302
304
|
W as zhCn
|
|
303
305
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createVNode as l } from "vue";
|
|
2
2
|
import { getTimeFormatToZone as g } from "@aplus-frontend/utils";
|
|
3
|
-
import { merge as p, get as f } from "lodash-unified";
|
|
3
|
+
import { merge as p, get as f, debounce as Y } from "lodash-unified";
|
|
4
4
|
import { formatString as h } from "./utils.mjs";
|
|
5
|
-
import { toDecimalMark as
|
|
6
|
-
function
|
|
5
|
+
import { toDecimalMark as A } from "@fruits-chain/utils";
|
|
6
|
+
function b(t) {
|
|
7
7
|
return t.value;
|
|
8
8
|
}
|
|
9
9
|
function M({
|
|
@@ -37,9 +37,9 @@ function y({
|
|
|
37
37
|
fieldList: n,
|
|
38
38
|
templateString: o = "{0}",
|
|
39
39
|
formatter: m
|
|
40
|
-
} = e, s = (n == null ? void 0 : n.map((a,
|
|
41
|
-
const
|
|
42
|
-
return m ? m(
|
|
40
|
+
} = e, s = (n == null ? void 0 : n.map((a, c) => {
|
|
41
|
+
const i = f(r, a);
|
|
42
|
+
return m ? m(i, c) : i;
|
|
43
43
|
})) || [];
|
|
44
44
|
return s.length === 0 && s.push(t), h(o, s);
|
|
45
45
|
}
|
|
@@ -59,18 +59,18 @@ function S({
|
|
|
59
59
|
}, {
|
|
60
60
|
fieldList: n,
|
|
61
61
|
templateString: `{0} ${m} {1}`,
|
|
62
|
-
formatter(
|
|
62
|
+
formatter(c, i) {
|
|
63
63
|
return u({
|
|
64
|
-
value:
|
|
64
|
+
value: c,
|
|
65
65
|
record: r
|
|
66
66
|
}, {
|
|
67
|
-
format: a[
|
|
67
|
+
format: a[i],
|
|
68
68
|
zoneAlias: s
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function D({
|
|
74
74
|
record: t
|
|
75
75
|
}, r) {
|
|
76
76
|
const {
|
|
@@ -79,16 +79,16 @@ function b({
|
|
|
79
79
|
style: o,
|
|
80
80
|
downloadFile: m,
|
|
81
81
|
className: s
|
|
82
|
-
} = r, a = f(t, n),
|
|
82
|
+
} = r, a = f(t, n), c = f(t, e), i = Y(() => {
|
|
83
|
+
m == null || m(c, a);
|
|
84
|
+
}, 500);
|
|
83
85
|
return l("span", {
|
|
84
86
|
style: o,
|
|
85
87
|
class: [s, "ap-descriptions-item-content__link "],
|
|
86
|
-
onClick:
|
|
87
|
-
m == null || m(i, a);
|
|
88
|
-
}
|
|
88
|
+
onClick: i
|
|
89
89
|
}, [a]);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function j({
|
|
92
92
|
value: t
|
|
93
93
|
}, r) {
|
|
94
94
|
const {
|
|
@@ -97,7 +97,7 @@ function k({
|
|
|
97
97
|
} = r;
|
|
98
98
|
let o = "";
|
|
99
99
|
try {
|
|
100
|
-
o =
|
|
100
|
+
o = A(t, n);
|
|
101
101
|
} catch {
|
|
102
102
|
o = t;
|
|
103
103
|
}
|
|
@@ -106,22 +106,22 @@ function k({
|
|
|
106
106
|
class: "ap-descriptions-item-content__number"
|
|
107
107
|
}, [o]);
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
text:
|
|
109
|
+
const L = {
|
|
110
|
+
text: b,
|
|
111
111
|
array: M,
|
|
112
112
|
date: u,
|
|
113
113
|
dateRange: S,
|
|
114
114
|
template: y,
|
|
115
|
-
number:
|
|
116
|
-
attachment:
|
|
115
|
+
number: j,
|
|
116
|
+
attachment: D
|
|
117
117
|
};
|
|
118
118
|
export {
|
|
119
119
|
M as array,
|
|
120
|
-
|
|
120
|
+
D as attachment,
|
|
121
121
|
u as date,
|
|
122
122
|
S as dateRange,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
L as formatterMap,
|
|
124
|
+
j as number,
|
|
125
125
|
y as template,
|
|
126
|
-
|
|
126
|
+
b as text
|
|
127
127
|
};
|
|
@@ -7,6 +7,7 @@ import { default as ApFormModalForm } from './modal-form/index.vue';
|
|
|
7
7
|
import { default as useWatch } from './hooks/use-watch';
|
|
8
8
|
import { default as ApFormDependency } from './dependency/index.vue';
|
|
9
9
|
import { default as ApFormSet } from './set/index.vue';
|
|
10
|
+
import { default as ApFormDrawerForm } from './modal-form/drawer.vue';
|
|
10
11
|
type ApFormMixedProps = typeof _ApForm & {
|
|
11
12
|
FormItem: typeof ApFormItem;
|
|
12
13
|
FormItemGroup: typeof ApFormItemGroup;
|
|
@@ -16,8 +17,9 @@ type ApFormMixedProps = typeof _ApForm & {
|
|
|
16
17
|
useWatch: typeof useWatch;
|
|
17
18
|
Dependency: typeof ApFormDependency;
|
|
18
19
|
Set: typeof ApFormSet;
|
|
20
|
+
DrawerForm: typeof ApFormDrawerForm;
|
|
19
21
|
};
|
|
20
22
|
declare const ApForm: ApFormMixedProps;
|
|
21
23
|
export * from './items';
|
|
22
24
|
export * from './interface';
|
|
23
|
-
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency, ApFormSet };
|
|
25
|
+
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency, ApFormSet, ApFormDrawerForm };
|
package/es/src/ap-form/index.mjs
CHANGED
|
@@ -4,12 +4,13 @@ import "./ap-form-item-group/index.vue2.mjs";
|
|
|
4
4
|
import "./ap-form-list.vue2.mjs";
|
|
5
5
|
import "./search-form/index.vue2.mjs";
|
|
6
6
|
import "./modal-form/index.vue2.mjs";
|
|
7
|
-
import
|
|
7
|
+
import r from "./hooks/use-watch.mjs";
|
|
8
8
|
import "./dependency/index.vue2.mjs";
|
|
9
9
|
import "./set/index.vue2.mjs";
|
|
10
|
+
import "./modal-form/drawer.vue2.mjs";
|
|
10
11
|
import "./items/index.mjs";
|
|
11
12
|
import "./interface.mjs";
|
|
12
|
-
import
|
|
13
|
+
import o from "./ap-form.vue2.mjs";
|
|
13
14
|
import p from "./ap-form-item.vue.mjs";
|
|
14
15
|
import t from "./ap-form-item-group/index.vue.mjs";
|
|
15
16
|
import i from "./ap-form-list.vue.mjs";
|
|
@@ -17,18 +18,21 @@ import a from "./search-form/index.vue.mjs";
|
|
|
17
18
|
import s from "./modal-form/index.vue.mjs";
|
|
18
19
|
import e from "./dependency/index.vue.mjs";
|
|
19
20
|
import f from "./set/index.vue.mjs";
|
|
20
|
-
|
|
21
|
+
import F from "./modal-form/drawer.vue.mjs";
|
|
22
|
+
const m = o;
|
|
21
23
|
m.FormItem = p;
|
|
22
24
|
m.FormItemGroup = t;
|
|
23
25
|
m.FormList = i;
|
|
24
26
|
m.SearchForm = a;
|
|
25
27
|
m.ModalForm = s;
|
|
26
|
-
m.useWatch =
|
|
28
|
+
m.useWatch = r;
|
|
27
29
|
m.Dependency = e;
|
|
28
30
|
m.Set = f;
|
|
31
|
+
m.DrawerForm = F;
|
|
29
32
|
export {
|
|
30
33
|
m as ApForm,
|
|
31
34
|
e as ApFormDependency,
|
|
35
|
+
F as ApFormDrawerForm,
|
|
32
36
|
p as ApFormItem,
|
|
33
37
|
t as ApFormItemGroup,
|
|
34
38
|
i as ApFormList,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps, ColProps, FormItemProps, FormProps, ModalProps, RowProps } from 'ant-design-vue';
|
|
1
|
+
import { ButtonProps, ColProps, DrawerProps, FormItemProps, FormProps, ModalProps, RowProps } from 'ant-design-vue';
|
|
2
2
|
import { FormItemExpose } from 'ant-design-vue/es/form/FormItem';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
|
|
4
4
|
import { Recordable } from '../type';
|
|
@@ -149,8 +149,37 @@ export type ApFormModalFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
|
149
149
|
onFinish?: (values: any) => Promise<boolean>;
|
|
150
150
|
submitter?: false | ApFormSubmitterConfig;
|
|
151
151
|
showCancel?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* 提交超时时间
|
|
154
|
+
*/
|
|
155
|
+
submitTimeout?: number;
|
|
156
|
+
};
|
|
157
|
+
export type CustomizeResizeType = {
|
|
158
|
+
onResize?: () => void;
|
|
159
|
+
maxWidth?: DrawerProps['width'];
|
|
160
|
+
minWidth?: DrawerProps['width'];
|
|
161
|
+
resizeOnOpen?: boolean;
|
|
162
|
+
};
|
|
163
|
+
export type ApFormDrawerFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
164
|
+
open?: boolean;
|
|
165
|
+
'onUpdate:open'?: (open: boolean) => void;
|
|
166
|
+
drawerProps?: Omit<DrawerProps, 'open' | 'onUpdate:open'>;
|
|
167
|
+
title?: DrawerProps['title'];
|
|
168
|
+
width?: DrawerProps['width'];
|
|
169
|
+
onFinish?: (values: any) => Promise<boolean>;
|
|
170
|
+
submitter?: false | ApFormSubmitterConfig;
|
|
171
|
+
showCancel?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* 提交超时时间
|
|
174
|
+
*/
|
|
175
|
+
submitTimeout?: number;
|
|
176
|
+
/**
|
|
177
|
+
* 可拖动改变drawer的尺寸
|
|
178
|
+
*/
|
|
179
|
+
resize?: CustomizeResizeType | boolean;
|
|
152
180
|
};
|
|
153
181
|
export type ApFormModalFormExpose = ApFormExpose;
|
|
182
|
+
export type ApFormDrawerFormExpose = ApFormExpose;
|
|
154
183
|
/**
|
|
155
184
|
* ApFormItem支持的插槽
|
|
156
185
|
*/
|