@aplus-frontend/ui 7.1.0 → 7.2.0
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 +143 -147
- package/es/src/ag-grid/hooks/use-columns-def.mjs +20 -19
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +18 -13
- package/es/src/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +45 -42
- package/es/src/business/ap-image/interface.d.ts +2 -0
- package/es/src/business/ap-title/ApTitle.vue2.mjs +24 -21
- package/es/src/business/ap-title/interface.d.ts +2 -0
- package/es/src/business/ap-title/style/index.mjs +11 -11
- package/es/src/business/hooks/index.d.ts +0 -2
- package/es/src/business/hooks/index.mjs +5 -9
- package/es/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +35 -44
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/es/src/business/hooks/usePageListApTable.mjs +46 -48
- package/es/src/config-provider/config-provider-props.d.ts +20 -3
- package/es/src/config-provider/config-provider-props.mjs +12 -0
- package/es/src/config-provider/config-provider.d.ts +33 -3
- package/es/src/config-provider/config-provider.mjs +35 -35
- package/es/src/config-provider/constants.d.ts +1 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/es/src/config-provider/index.d.ts +49 -4
- package/es/src/index.mjs +147 -151
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
- package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +2 -0
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-title/interface.d.ts +2 -0
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/hooks/index.d.ts +0 -2
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +20 -3
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +33 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/lib/src/config-provider/index.d.ts +49 -4
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/es/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/es/src/business/hooks/useGridRefresh.mjs +0 -16
- package/es/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/es/src/business/hooks/useTableRefresh.mjs +0 -57
- package/lib/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/lib/src/business/hooks/useGridRefresh.js +0 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/lib/src/business/hooks/useTableRefresh.js +0 -1
package/es/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import "./src/hooks/index.mjs";
|
|
|
4
4
|
import { configProviderProps as s } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as i, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as F, provideGlobalConfig as I, useGlobalConfig as g } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as
|
|
7
|
+
import { buildLocaleContext as T, buildTranslator as b, localeContextKey as C, translate as G, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as E, namespaceContextKey as h, useGetDerivedNamespace as L, useNamespace as R } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as v, globalConfigCached as M } 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";
|
|
@@ -27,11 +27,11 @@ import { default as Ae } from "./src/ap-form/search-form/index.vue.mjs";
|
|
|
27
27
|
import { default as ne } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
28
28
|
import { default as Fe } from "./src/ap-form/dependency/index.vue.mjs";
|
|
29
29
|
import { default as ge } from "./src/ap-form/set/index.vue.mjs";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as Te } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
31
31
|
import { default as Ce } from "./src/ap-form/render/control.vue.mjs";
|
|
32
32
|
import { default as De } from "./src/ap-form/render/item.vue.mjs";
|
|
33
|
-
import { default as
|
|
34
|
-
import { ApField as
|
|
33
|
+
import { default as Ee } from "./src/ap-form/provider/index.vue.mjs";
|
|
34
|
+
import { ApField as Le, ApFieldRead as Re } from "./src/ap-field/index.mjs";
|
|
35
35
|
import { ApFieldText as ve } from "./src/ap-field/text/index.mjs";
|
|
36
36
|
import { default as ye } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
37
37
|
import { default as Be } from "./src/ap-field/date/index.vue.mjs";
|
|
@@ -52,12 +52,12 @@ import { default as uo } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
|
52
52
|
import { default as io } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
53
53
|
import { default as co } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
54
54
|
import { default as Io } from "./src/ap-action/group/index.vue.mjs";
|
|
55
|
-
import { default as
|
|
55
|
+
import { default as So } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
56
56
|
import { default as bo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
57
57
|
import { NeedNameKeyDefault as Go } from "./src/ap-upload/apUploadTypes.mjs";
|
|
58
|
-
import { default as
|
|
59
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
60
|
-
import { default as
|
|
58
|
+
import { default as Po } from "./src/ap-upload/apUpload.vue.mjs";
|
|
59
|
+
import { ApDownLoadNeedNameKeyDefault as ho } from "./src/ap-download/interface.mjs";
|
|
60
|
+
import { default as Ro } from "./src/ap-download/ap-download.vue.mjs";
|
|
61
61
|
import { CheckCard as vo } from "./src/check-card/index.mjs";
|
|
62
62
|
import { default as yo } from "./src/check-card/group.vue.mjs";
|
|
63
63
|
import { ApModal as Bo } from "./src/ap-modal/index.mjs";
|
|
@@ -79,74 +79,72 @@ import { ApCard as Ar } from "./src/business/ap-card/index.mjs";
|
|
|
79
79
|
import { ApExpandAlert as nr } from "./src/business/ap-expand-alert/index.mjs";
|
|
80
80
|
import { ApExportGroupActionType as Fr } from "./src/business/ap-export-group/interface.mjs";
|
|
81
81
|
import { ApExportGroup as gr } from "./src/business/ap-export-group/index.mjs";
|
|
82
|
-
import { handleExportDownload as
|
|
82
|
+
import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
83
83
|
import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
84
84
|
import { ApImage as Dr } from "./src/business/ap-image/index.mjs";
|
|
85
|
-
import { ApInputRadio as
|
|
86
|
-
import { ApLabel as
|
|
85
|
+
import { ApInputRadio as Er } from "./src/business/ap-input-radio/index.mjs";
|
|
86
|
+
import { ApLabel as Lr, ApLabelGroup as Rr } from "./src/business/ap-label/index.mjs";
|
|
87
87
|
import { locales as vr } from "./src/business/ap-ladder/interface.mjs";
|
|
88
88
|
import { ApLadder as yr } from "./src/business/ap-ladder/index.mjs";
|
|
89
89
|
import { ApSelectLayout as Br } from "./src/business/ap-select-layout/index.mjs";
|
|
90
90
|
import { ApStatus as kr, ApStatusGroup as Ur } from "./src/business/ap-status/index.mjs";
|
|
91
91
|
import { ApTitle as Vr } from "./src/business/ap-title/index.mjs";
|
|
92
92
|
import { usePageListApTable as _r } from "./src/business/hooks/usePageListApTable.mjs";
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import { default as dt } from "./src/business/
|
|
102
|
-
import {
|
|
103
|
-
import { default as it } from "./src/business/
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import { default as Zt } from "./src/
|
|
123
|
-
import {
|
|
124
|
-
import { default as tp } from "./src/
|
|
125
|
-
import {
|
|
126
|
-
import { default as mp } from "./src/scroll-
|
|
127
|
-
import { default as xp } from "./src/
|
|
128
|
-
import { default as sp } from "./src/
|
|
129
|
-
import { default as Ap } from "./src/
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import { default as Cp } from "./src/ap-grid/
|
|
135
|
-
import { default as Dp } from "./src/
|
|
136
|
-
import { default as
|
|
137
|
-
import { default as
|
|
138
|
-
import {
|
|
139
|
-
import { default as Mp } from "./src/
|
|
140
|
-
import {
|
|
141
|
-
import { default as Kp } from "./src/ag-grid/
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import { useFullScreen as Xp } from "./src/hooks/useFullScreen.mjs";
|
|
149
|
-
import { useResize as Zp } from "./src/hooks/useResize.mjs";
|
|
93
|
+
import { usePageListApGrid as jr } from "./src/business/hooks/usePageListApGrid.mjs";
|
|
94
|
+
import { usePageListAgGrid as Wr } from "./src/business/hooks/usePageListAgGrid.mjs";
|
|
95
|
+
import { computedRecords as Jr, flattenColumns as Qr, formatDataIndex as Xr, formatNumber as Yr } from "./src/business/ap-summary/utils.mjs";
|
|
96
|
+
import { ApSummary as et } from "./src/business/ap-summary/index.mjs";
|
|
97
|
+
import { ApNeedNameKeyDefault as rt } from "./src/business/ap-appendix/interface.mjs";
|
|
98
|
+
import { ApAppendix as pt } from "./src/business/ap-appendix/index.mjs";
|
|
99
|
+
import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
100
|
+
import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
101
|
+
import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
102
|
+
import { ApSizeInput as ut } from "./src/business/ap-size-input/index.mjs";
|
|
103
|
+
import { default as it } from "./src/business/ap-size-input/form-item.vue.mjs";
|
|
104
|
+
import { ApProductInfo as ct } from "./src/business/ap-product-info/index.mjs";
|
|
105
|
+
import { ApCopy as It } from "./src/business/ap-copy/index.mjs";
|
|
106
|
+
import { ApView as St } from "./src/business/ap-view/index.mjs";
|
|
107
|
+
import { ApRadioGroup as bt } from "./src/business/ap-radio-group/index.mjs";
|
|
108
|
+
import { ApKeepAliveProps as Gt, forceStopTags as Dt } from "./src/business/ap-keep-alive/interface.mjs";
|
|
109
|
+
import { ApKeepAlive as Et } from "./src/business/ap-keep-alive/index.mjs";
|
|
110
|
+
import { LruCacher as Lt } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
|
|
111
|
+
import { useApKeepAliveInject as Nt } from "./src/business/ap-keep-alive/hook.mjs";
|
|
112
|
+
import { matches as Mt } from "./src/business/ap-keep-alive/utils.mjs";
|
|
113
|
+
import { ApDraggableGrid as wt } from "./src/business/ap-draggable-grid/index.mjs";
|
|
114
|
+
import { ApValueSelectCard as Kt } from "./src/business/ap-value-select-card/index.mjs";
|
|
115
|
+
import { useAgGridModal as Ut } from "./src/business/ag-grid-modal/hooks/use-ag-grid-modal.mjs";
|
|
116
|
+
import { useAgGridSelectModal as Vt } from "./src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs";
|
|
117
|
+
import { ApSelectedItems as _t } from "./src/business/ag-grid-modal/selected-items/index.mjs";
|
|
118
|
+
import { useTablePaging as jt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
119
|
+
import { ApTable as Wt } from "./src/ap-table/index.mjs";
|
|
120
|
+
import { default as Jt } from "./src/editable-table/index.vue.mjs";
|
|
121
|
+
import { default as Xt } from "./src/editable-table/form-item.vue.mjs";
|
|
122
|
+
import { default as Zt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
123
|
+
import { ensureRangeValue as op } from "./src/scroll-bar/utils/index.mjs";
|
|
124
|
+
import { default as tp } from "./src/scroll-bar/index.vue.mjs";
|
|
125
|
+
import { default as ap } from "./src/scroll-bar/internal.vue.mjs";
|
|
126
|
+
import { default as mp } from "./src/scroll-view/index.vue.mjs";
|
|
127
|
+
import { default as xp } from "./src/portal/index.vue.mjs";
|
|
128
|
+
import { default as sp } from "./src/full-screen/index.vue.mjs";
|
|
129
|
+
import { default as Ap } from "./src/resize-observer/index.vue.mjs";
|
|
130
|
+
import { ROW_SELECTION_FIELD as np } from "./src/ap-grid/constants.mjs";
|
|
131
|
+
import { toTreeArray as Fp } from "./src/ap-grid/utils/to-tree-array.mjs";
|
|
132
|
+
import { default as gp } from "./src/ap-grid/index.vue.mjs";
|
|
133
|
+
import { default as Tp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
134
|
+
import { default as Cp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
135
|
+
import { default as Dp } from "./src/text/index.vue.mjs";
|
|
136
|
+
import { default as Ep } from "./src/text/group.vue.mjs";
|
|
137
|
+
import { default as Lp } from "./src/mask/index.vue.mjs";
|
|
138
|
+
import { Splitter as Np } from "./src/splitter/index.mjs";
|
|
139
|
+
import { default as Mp } from "./src/ag-grid/index.vue.mjs";
|
|
140
|
+
import { default as wp } from "./src/ag-grid/editable/index.vue.mjs";
|
|
141
|
+
import { default as Kp } from "./src/ag-grid/editable/form-item.vue.mjs";
|
|
142
|
+
import { useMessage as Up } from "./src/hooks/useMessage.mjs";
|
|
143
|
+
import { useControllableValue as Vp } from "./src/hooks/useControllableValue.mjs";
|
|
144
|
+
import { useManualRef as _p } from "./src/hooks/useManualRef.mjs";
|
|
145
|
+
import { useThrottleRef as jp } from "./src/hooks/useThrottleRef.mjs";
|
|
146
|
+
import { useFullScreen as Wp } from "./src/hooks/useFullScreen.mjs";
|
|
147
|
+
import { useResize as Jp } from "./src/hooks/useResize.mjs";
|
|
150
148
|
const a = console.log;
|
|
151
149
|
a(`APlus-UI version ${p}`);
|
|
152
150
|
const l = {
|
|
@@ -159,14 +157,14 @@ const l = {
|
|
|
159
157
|
};
|
|
160
158
|
export {
|
|
161
159
|
w as APConfigProvider,
|
|
162
|
-
|
|
160
|
+
Mp as AgGrid,
|
|
163
161
|
zo as ApActionButton,
|
|
164
162
|
Io as ApActionGroup,
|
|
165
163
|
xo as ApActionItem,
|
|
166
164
|
co as ApActionItemDropdown,
|
|
167
165
|
uo as ApActionItemModal,
|
|
168
166
|
io as ApActionItemPopconfirm,
|
|
169
|
-
|
|
167
|
+
pt as ApAppendix,
|
|
170
168
|
ar as ApAttachment,
|
|
171
169
|
mr as ApBatchAction,
|
|
172
170
|
xr as ApBatchActionGroup,
|
|
@@ -174,16 +172,16 @@ export {
|
|
|
174
172
|
sr as ApButtonGroup,
|
|
175
173
|
Ar as ApCard,
|
|
176
174
|
$o as ApConfirmButton,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
It as ApCopy,
|
|
176
|
+
Zt as ApDescriptions,
|
|
177
|
+
ho as ApDownLoadNeedNameKeyDefault,
|
|
178
|
+
Ro as ApDownload,
|
|
179
|
+
wt as ApDraggableGrid,
|
|
182
180
|
Ho as ApDrawer,
|
|
183
181
|
nr as ApExpandAlert,
|
|
184
182
|
gr as ApExportGroup,
|
|
185
183
|
Fr as ApExportGroupActionType,
|
|
186
|
-
|
|
184
|
+
Le as ApField,
|
|
187
185
|
ye as ApFieldCheckbox,
|
|
188
186
|
Be as ApFieldDate,
|
|
189
187
|
He as ApFieldDateRange,
|
|
@@ -191,7 +189,7 @@ export {
|
|
|
191
189
|
Qe as ApFieldPassword,
|
|
192
190
|
Oe as ApFieldRadio,
|
|
193
191
|
ro as ApFieldRate,
|
|
194
|
-
|
|
192
|
+
Re as ApFieldRead,
|
|
195
193
|
eo as ApFieldSegmented,
|
|
196
194
|
qe as ApFieldSelect,
|
|
197
195
|
Ye as ApFieldSlider,
|
|
@@ -202,9 +200,9 @@ export {
|
|
|
202
200
|
ae as ApForm,
|
|
203
201
|
Ce as ApFormControlRender,
|
|
204
202
|
Fe as ApFormDependency,
|
|
205
|
-
|
|
203
|
+
Te as ApFormDrawerForm,
|
|
206
204
|
me as ApFormItem,
|
|
207
|
-
|
|
205
|
+
dt as ApFormItemBatchInput,
|
|
208
206
|
Z as ApFormItemCheckbox,
|
|
209
207
|
_ as ApFormItemDate,
|
|
210
208
|
j as ApFormItemDateRange,
|
|
@@ -213,7 +211,7 @@ export {
|
|
|
213
211
|
W as ApFormItemRadio,
|
|
214
212
|
De as ApFormItemRender,
|
|
215
213
|
J as ApFormItemSelect,
|
|
216
|
-
|
|
214
|
+
it as ApFormItemSizeInput,
|
|
217
215
|
X as ApFormItemSwitch,
|
|
218
216
|
K as ApFormItemText,
|
|
219
217
|
U as ApFormItemTextArea,
|
|
@@ -221,109 +219,107 @@ export {
|
|
|
221
219
|
te as ApFormItemTreeSelect,
|
|
222
220
|
se as ApFormList,
|
|
223
221
|
ne as ApFormModalForm,
|
|
224
|
-
|
|
222
|
+
Ee as ApFormProvider,
|
|
225
223
|
Ae as ApFormSearchForm,
|
|
226
224
|
ge as ApFormSet,
|
|
227
|
-
|
|
225
|
+
gp as ApGrid,
|
|
228
226
|
Dr as ApImage,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
227
|
+
Er as ApInputRadio,
|
|
228
|
+
Et as ApKeepAlive,
|
|
229
|
+
Gt as ApKeepAliveProps,
|
|
230
|
+
Lr as ApLabel,
|
|
231
|
+
Rr as ApLabelGroup,
|
|
234
232
|
yr as ApLadder,
|
|
235
233
|
ko as ApList,
|
|
236
234
|
Bo as ApModal,
|
|
237
|
-
|
|
235
|
+
rt as ApNeedNameKeyDefault,
|
|
238
236
|
qo as ApProCard,
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
ct as ApProductInfo,
|
|
238
|
+
bt as ApRadioGroup,
|
|
241
239
|
Br as ApSelectLayout,
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
_t as ApSelectedItems,
|
|
241
|
+
ut as ApSizeInput,
|
|
244
242
|
Jo as ApStatisticCard,
|
|
245
243
|
kr as ApStatus,
|
|
246
244
|
Ur as ApStatusGroup,
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
et as ApSummary,
|
|
246
|
+
Wt as ApTable,
|
|
249
247
|
Zo as ApTableModal,
|
|
250
|
-
|
|
248
|
+
So as ApTag,
|
|
251
249
|
bo as ApTagGroup,
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
Dp as ApText,
|
|
251
|
+
Ep as ApTextGroup,
|
|
254
252
|
Vr as ApTitle,
|
|
255
253
|
Xo as ApTransformDataHelper,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
254
|
+
Po as ApUpload,
|
|
255
|
+
ft as ApUploadSingle,
|
|
256
|
+
Kt as ApValueSelectCard,
|
|
257
|
+
St as ApView,
|
|
258
|
+
lt as BatchInputGroup,
|
|
261
259
|
vo as CheckCard,
|
|
262
260
|
yo as CheckCardGroup,
|
|
263
261
|
v as ConfigProvider,
|
|
264
262
|
A as DEFAULT_NAMESPACE,
|
|
265
263
|
i as DEFAULT_UIMODE,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
264
|
+
wp as EditableAgGrid,
|
|
265
|
+
Kp as EditableAgGridFormItem,
|
|
266
|
+
Tp as EditableGrid,
|
|
267
|
+
Cp as EditableGridFormItem,
|
|
268
|
+
Jt as EditableTable,
|
|
269
|
+
Xt as EditableTableFormItem,
|
|
270
|
+
sp as FullScreen,
|
|
271
|
+
ap as InternalScrollBar,
|
|
272
|
+
Lt as LruCacher,
|
|
273
|
+
Lp as Mask,
|
|
276
274
|
Go as NeedNameKeyDefault,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
xp as Portal,
|
|
276
|
+
np as ROW_SELECTION_FIELD,
|
|
277
|
+
Ap as ResizeObserver,
|
|
278
|
+
tp as ScrollBar,
|
|
279
|
+
mp as ScrollView,
|
|
280
|
+
Np as Splitter,
|
|
283
281
|
fo as adminToken,
|
|
284
282
|
mo as aplusToken,
|
|
285
|
-
|
|
283
|
+
T as buildLocaleContext,
|
|
286
284
|
b as buildTranslator,
|
|
287
|
-
|
|
285
|
+
Jr as computedRecords,
|
|
288
286
|
n as configProviderContextKey,
|
|
289
287
|
s as configProviderProps,
|
|
290
288
|
Cr as convertExportField,
|
|
291
289
|
l as default,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
290
|
+
E as defaultNamespace,
|
|
291
|
+
op as ensureRangeValue,
|
|
292
|
+
Qr as flattenColumns,
|
|
293
|
+
Dt as forceStopTags,
|
|
294
|
+
Xr as formatDataIndex,
|
|
295
|
+
Yr as formatNumber,
|
|
298
296
|
M as globalConfigCached,
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
Tr as handleExportDownload,
|
|
298
|
+
Mt as isNameMatches,
|
|
301
299
|
F as keysOf,
|
|
302
300
|
C as localeContextKey,
|
|
303
301
|
vr as locales,
|
|
304
|
-
|
|
302
|
+
h as namespaceContextKey,
|
|
305
303
|
I as provideGlobalConfig,
|
|
306
|
-
|
|
304
|
+
Fp as toTreeArray,
|
|
307
305
|
G as translate,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
306
|
+
Ut as useAgGridModal,
|
|
307
|
+
Vt as useAgGridSelectModal,
|
|
308
|
+
Nt as useApKeepAliveInject,
|
|
309
|
+
Vp as useControllableValue,
|
|
310
|
+
Wp as useFullScreen,
|
|
311
|
+
L as useGetDerivedNamespace,
|
|
314
312
|
g as useGlobalConfig,
|
|
315
|
-
Jr as useGridRefresh,
|
|
316
313
|
D as useLocale,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
314
|
+
_p as useManualRef,
|
|
315
|
+
Up as useMessage,
|
|
316
|
+
R as useNamespace,
|
|
317
|
+
Wr as usePageListAgGrid,
|
|
318
|
+
jr as usePageListApGrid,
|
|
322
319
|
_r as usePageListApTable,
|
|
323
|
-
|
|
320
|
+
Jp as useResize,
|
|
324
321
|
or as useTableModal,
|
|
325
|
-
|
|
326
|
-
jr as useTableRefresh,
|
|
322
|
+
jt as useTablePaging,
|
|
327
323
|
tr as useTableSelectModal,
|
|
328
|
-
|
|
324
|
+
jp as useThrottleRef
|
|
329
325
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getTableRenderProps as c, objectToString as
|
|
1
|
+
import { getTableRenderProps as c, objectToString as S } from "../../ap-table/utils.mjs";
|
|
2
2
|
import { rendererMap as x } from "../renderer/index.mjs";
|
|
3
|
-
import { isNumber as u, isFunction as
|
|
4
|
-
import { ref as
|
|
3
|
+
import { isNumber as u, isFunction as b } from "lodash-unified";
|
|
4
|
+
import { ref as D, unref as v, computed as y } from "vue";
|
|
5
5
|
import "../components/body-cell/index.vue.mjs";
|
|
6
6
|
import "../components/header-cell/index.vue.mjs";
|
|
7
7
|
import "../components/tooltip/index.vue.mjs";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { dataIndexToField as
|
|
9
|
+
import { dataIndexToField as P } from "../../ap-grid/utils/col.mjs";
|
|
10
10
|
import { isDef as I } from "../../utils/index.mjs";
|
|
11
11
|
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
12
|
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -18,7 +18,7 @@ function F(t) {
|
|
|
18
18
|
}
|
|
19
19
|
function M(t, a) {
|
|
20
20
|
if (a.bodyCellTooltip)
|
|
21
|
-
return
|
|
21
|
+
return b(a.bodyCellTooltip) ? a.bodyCellTooltip(t.value, t.data) : a.bodyCellTooltip;
|
|
22
22
|
if (a.renderText)
|
|
23
23
|
return a.renderText({
|
|
24
24
|
value: t.value,
|
|
@@ -41,10 +41,10 @@ function M(t, a) {
|
|
|
41
41
|
);
|
|
42
42
|
return p(f);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return S(t.value);
|
|
45
45
|
}
|
|
46
46
|
const X = (t, a, d) => {
|
|
47
|
-
const p = _("valueTypeMap"), C =
|
|
47
|
+
const p = _("valueTypeMap"), C = D(), { em: f } = G("ag-grid"), m = (r) => {
|
|
48
48
|
const i = {
|
|
49
49
|
cellRenderer: W,
|
|
50
50
|
cellRendererParams: {
|
|
@@ -64,11 +64,11 @@ const X = (t, a, d) => {
|
|
|
64
64
|
text: o.value
|
|
65
65
|
})
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const l = r.valueType || "text", e = x[l];
|
|
68
68
|
return e ? {
|
|
69
69
|
valueFormatter: (o) => {
|
|
70
|
-
const
|
|
71
|
-
{ ...r, valueType:
|
|
70
|
+
const s = c(
|
|
71
|
+
{ ...r, valueType: l },
|
|
72
72
|
{
|
|
73
73
|
value: o.value,
|
|
74
74
|
text: o.value,
|
|
@@ -78,12 +78,12 @@ const X = (t, a, d) => {
|
|
|
78
78
|
pinned: o.node?.rowPinned
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
return e(
|
|
81
|
+
return e(s);
|
|
82
82
|
}
|
|
83
83
|
} : i;
|
|
84
84
|
}, w = (r) => {
|
|
85
|
-
const i = r.valueType || "text",
|
|
86
|
-
return e.tooltipValueGetter = o ? (T) => M(T, r) : void 0, e.wrapText = !r.ellipsis ||
|
|
85
|
+
const i = r.valueType || "text", l = x[i], e = {}, o = r.bodyCellTooltip || !r.customRender && l && (r.ellipsis === !0 || r.ellipsis === "tooltip" || u(r.ellipsis)), s = u(r.ellipsis) && r.ellipsis > 1, n = u(r.ellipsis) ? r.ellipsis : 1;
|
|
86
|
+
return e.tooltipValueGetter = o ? (T) => M(T, r) : void 0, e.wrapText = !r.ellipsis || s, e.cellStyle = {
|
|
87
87
|
"--ag-grid-line-clamp": n
|
|
88
88
|
}, e.tooltipComponent = z, e.tooltipComponentParams = {
|
|
89
89
|
lineClamp: n,
|
|
@@ -91,10 +91,10 @@ const X = (t, a, d) => {
|
|
|
91
91
|
}, e;
|
|
92
92
|
}, g = y(() => {
|
|
93
93
|
const r = v(t);
|
|
94
|
-
function i(
|
|
95
|
-
return
|
|
94
|
+
function i(l) {
|
|
95
|
+
return l.map((e) => {
|
|
96
96
|
const o = {
|
|
97
|
-
field:
|
|
97
|
+
field: P(e.dataIndex),
|
|
98
98
|
colId: I(e.key) ? String(e.key) : void 0,
|
|
99
99
|
sortable: !!e.sorter,
|
|
100
100
|
comparator: e.sorter === !0 ? () => 0 : e.sorter,
|
|
@@ -111,20 +111,21 @@ const X = (t, a, d) => {
|
|
|
111
111
|
// undefined to null
|
|
112
112
|
colSpan: e.colSpan,
|
|
113
113
|
spanRows: e.spanRows,
|
|
114
|
-
cellClass: d((
|
|
115
|
-
const n = e.cellClass || "", T =
|
|
114
|
+
cellClass: d((s) => {
|
|
115
|
+
const n = e.cellClass || "", T = b(n) ? n(s.data, s.node) : n;
|
|
116
116
|
return [
|
|
117
117
|
`${f("cell", e.align || "left")}`,
|
|
118
118
|
F(e.ellipsis) ? f("cell", "multiline") : null,
|
|
119
119
|
T
|
|
120
120
|
].flat().filter(Boolean);
|
|
121
121
|
}),
|
|
122
|
+
cellStyle: e.cellStyle,
|
|
122
123
|
headerStyle: e.headerStyle,
|
|
123
124
|
headerClass: e.headerClass,
|
|
124
125
|
autoHeight: !0,
|
|
125
126
|
// 设置自动计算高度以自适应多行换行的场景
|
|
126
127
|
...w(e),
|
|
127
|
-
...
|
|
128
|
+
...m(e)
|
|
128
129
|
};
|
|
129
130
|
return e.children?.length ? {
|
|
130
131
|
...o,
|
|
@@ -96,6 +96,10 @@ export type AgGridColumnType<RecordType = any, ExtraValueType = 'text', ValueTyp
|
|
|
96
96
|
* @returns
|
|
97
97
|
*/
|
|
98
98
|
cellClass?: string | string[] | ((data: RecordType, node: IRowNode<RecordType>) => string | string[] | undefined) | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* 自定义单元格样式
|
|
101
|
+
*/
|
|
102
|
+
cellStyle?: ColDef<RecordType>['cellStyle'];
|
|
99
103
|
/**
|
|
100
104
|
* 仅用于和接口交互的字段,如果不设置将会尝试使用`dataIndex`和`key`
|
|
101
105
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { UiModeType } from '../../../config-provider';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
type?: 'default';
|
|
5
|
+
uiMode?: UiModeType;
|
|
4
6
|
};
|
|
5
7
|
declare function __VLS_template(): {
|
|
6
8
|
attrs: Partial<{}>;
|
|
@@ -13,6 +15,7 @@ declare function __VLS_template(): {
|
|
|
13
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
16
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
17
|
type: "default";
|
|
18
|
+
uiMode: UiModeType;
|
|
16
19
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
21
|
export default _default;
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, computed as r, createElementBlock as i, openBlock as p, normalizeClass as m, renderSlot as c } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { mergeClass as
|
|
4
|
-
import
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
import { useGlobalConfig as
|
|
7
|
-
const
|
|
3
|
+
import { mergeClass as f } from "../../../editable-table/utils.mjs";
|
|
4
|
+
import C from "../../style/title.mjs";
|
|
5
|
+
import { useNamespace as $ } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useGlobalConfig as v } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
const P = /* @__PURE__ */ u({
|
|
8
8
|
name: "ApProCardTitle",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
type: {
|
|
12
12
|
default: "default"
|
|
13
|
+
},
|
|
14
|
+
uiMode: {
|
|
15
|
+
default: void 0
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
|
-
setup(
|
|
18
|
+
setup(a) {
|
|
16
19
|
const {
|
|
17
20
|
b: l
|
|
18
|
-
} =
|
|
21
|
+
} = $("pro-card-title"), n = C("pro-card-title"), d = v("apProCard", {
|
|
22
|
+
uiMode: "aplus"
|
|
23
|
+
}), o = a, t = r(() => o.uiMode || d.value?.uiMode), s = r(() => {
|
|
19
24
|
const e = l();
|
|
20
|
-
return
|
|
25
|
+
return f(`${e}`, [o.type ? `${e}-${o.type}` : void 0, t.value ? `${e}-${o.type ?? "default"}-${t.value}` : void 0, n.value].filter(Boolean));
|
|
21
26
|
});
|
|
22
|
-
return (e,
|
|
23
|
-
class:
|
|
24
|
-
}, [
|
|
27
|
+
return (e, y) => (p(), i("div", {
|
|
28
|
+
class: m(s.value)
|
|
29
|
+
}, [c(e.$slots, "default")], 2));
|
|
25
30
|
}
|
|
26
31
|
});
|
|
27
32
|
export {
|
|
28
|
-
|
|
33
|
+
P as default
|
|
29
34
|
};
|
|
@@ -172,8 +172,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
172
172
|
onChange: Function;
|
|
173
173
|
value: string | unknown[] | Record<string, any>;
|
|
174
174
|
maxCount: number;
|
|
175
|
-
needName: boolean | Record<string, any>;
|
|
176
175
|
getOssAccess: GetOssAccess;
|
|
176
|
+
needName: boolean | Record<string, any>;
|
|
177
177
|
accept: string;
|
|
178
178
|
beforeUpload: BeforeUpload;
|
|
179
179
|
onRemove: Function;
|