@aplus-frontend/ui 6.16.0 → 6.17.1
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 +83 -81
- package/es/src/ap-grid/utils/table.mjs +59 -41
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +124 -0
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.mjs +4 -0
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +194 -0
- package/es/src/business/ap-draggable-grid/constans.d.ts +40 -0
- package/es/src/business/ap-draggable-grid/constans.mjs +41 -0
- package/es/src/business/ap-draggable-grid/index.d.ts +197 -0
- package/es/src/business/ap-draggable-grid/index.mjs +8 -0
- package/es/src/business/ap-draggable-grid/interface.d.ts +14 -0
- package/es/src/business/ap-draggable-grid/interface.mjs +1 -0
- package/es/src/business/ap-draggable-grid/style/css.d.ts +0 -0
- package/es/src/business/ap-draggable-grid/style/css.js +1 -0
- package/es/src/business/ap-draggable-grid/style/index.d.ts +0 -0
- package/es/src/business/ap-draggable-grid/style/index.js +1 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/index.mjs +59 -57
- package/es/src/path-map.mjs +2 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +124 -0
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.js +1 -0
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -0
- package/lib/src/business/ap-draggable-grid/constans.d.ts +40 -0
- package/lib/src/business/ap-draggable-grid/constans.js +1 -0
- package/lib/src/business/ap-draggable-grid/index.d.ts +197 -0
- package/lib/src/business/ap-draggable-grid/index.js +1 -0
- package/lib/src/business/ap-draggable-grid/interface.d.ts +14 -0
- package/lib/src/business/ap-draggable-grid/interface.js +1 -0
- package/lib/src/business/ap-draggable-grid/style/css.cjs +1 -0
- package/lib/src/business/ap-draggable-grid/style/css.d.ts +0 -0
- package/lib/src/business/ap-draggable-grid/style/index.cjs +1 -0
- package/lib/src/business/ap-draggable-grid/style/index.d.ts +0 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +2 -28
- package/theme/ap-draggable-grid/ap-draggable-grid.css +82 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.less +38 -0
- package/theme/index.css +36 -0
- package/theme/index.less +1 -0
package/es/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import p from "./src/version.mjs";
|
|
|
4
4
|
import "./src/hooks/index.mjs";
|
|
5
5
|
import { configProviderProps as A } from "./src/config-provider/config-provider-props.mjs";
|
|
6
6
|
import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey as F } from "./src/config-provider/constants.mjs";
|
|
7
|
-
import { keysOf as T, provideGlobalConfig as b, useGlobalConfig as
|
|
8
|
-
import { buildLocaleContext as
|
|
7
|
+
import { keysOf as T, provideGlobalConfig as b, useGlobalConfig as g } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
import { buildLocaleContext as S, buildTranslator as D, localeContextKey as G, translate as h, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
9
9
|
import { defaultNamespace as E, namespaceContextKey as L, useGetDerivedNamespace as M, useNamespace as N } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { ConfigProvider as y, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
|
|
11
11
|
import { APConfigProvider as B } from "./src/config-provider/index.mjs";
|
|
@@ -27,9 +27,9 @@ import { default as Ae } from "./src/ap-form/list/index.vue.mjs";
|
|
|
27
27
|
import { default as ne } from "./src/ap-form/search-form/index.vue.mjs";
|
|
28
28
|
import { default as Fe } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
29
29
|
import { default as Te } from "./src/ap-form/dependency/index.vue.mjs";
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
30
|
+
import { default as ge } from "./src/ap-form/set/index.vue.mjs";
|
|
31
|
+
import { default as Se } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
32
|
+
import { default as Ge } from "./src/ap-form/render/control.vue.mjs";
|
|
33
33
|
import { default as Pe } from "./src/ap-form/render/item.vue.mjs";
|
|
34
34
|
import { default as Ee } from "./src/ap-form/provider/index.vue.mjs";
|
|
35
35
|
import { ApField as Me } from "./src/ap-field/index.mjs";
|
|
@@ -53,9 +53,9 @@ import { default as Ao } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
|
53
53
|
import { default as no } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
54
54
|
import { default as Fo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
55
55
|
import { default as To } from "./src/ap-action/group/index.vue.mjs";
|
|
56
|
-
import { DictCode as
|
|
56
|
+
import { DictCode as go, langMap as Co } from "./src/work-order-modal/interfaces.mjs";
|
|
57
57
|
import { createWorkOrderModal as Do } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
58
|
-
import { default as
|
|
58
|
+
import { default as ho } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
59
59
|
import { default as Ro } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
60
60
|
import { default as Lo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
61
61
|
import { NeedNameKeyDefault as No } from "./src/ap-upload/apUploadTypes.mjs";
|
|
@@ -80,9 +80,9 @@ import { ApBatchActionGroup as ir } from "./src/business/ap-batch-action-group/i
|
|
|
80
80
|
import { ApButtonGroup as cr } from "./src/business/ap-button-group/index.mjs";
|
|
81
81
|
import { ApCard as Ir } from "./src/business/ap-card/index.mjs";
|
|
82
82
|
import { ApExpandAlert as br } from "./src/business/ap-expand-alert/index.mjs";
|
|
83
|
-
import { ApExportGroupActionType as
|
|
83
|
+
import { ApExportGroupActionType as Cr } from "./src/business/ap-export-group/interface.mjs";
|
|
84
84
|
import { ApExportGroup as Dr } from "./src/business/ap-export-group/index.mjs";
|
|
85
|
-
import { handleExportDownload as
|
|
85
|
+
import { handleExportDownload as hr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
86
86
|
import { convertExportField as Rr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
87
87
|
import { ApImage as Lr } from "./src/business/ap-image/index.mjs";
|
|
88
88
|
import { ApInputRadio as Nr } from "./src/business/ap-input-radio/index.mjs";
|
|
@@ -104,42 +104,43 @@ import { default as At } from "./src/business/ap-upload-file/ap-upload-single/ap
|
|
|
104
104
|
import { default as nt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
105
105
|
import { default as Ft } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
106
106
|
import { ApSizeInput as Tt } from "./src/business/ap-size-input/index.mjs";
|
|
107
|
-
import { ApProductInfo as
|
|
108
|
-
import { ApCopy as
|
|
109
|
-
import { ApView as
|
|
107
|
+
import { ApProductInfo as gt } from "./src/business/ap-product-info/index.mjs";
|
|
108
|
+
import { ApCopy as St } from "./src/business/ap-copy/index.mjs";
|
|
109
|
+
import { ApView as Gt } from "./src/business/ap-view/index.mjs";
|
|
110
110
|
import { ApRadioGroup as Pt } from "./src/business/ap-radio-group/index.mjs";
|
|
111
111
|
import { ApKeepAliveProps as Et, forceStopTags as Lt } from "./src/business/ap-keep-alive/interface.mjs";
|
|
112
112
|
import { ApKeepAlive as Nt } from "./src/business/ap-keep-alive/index.mjs";
|
|
113
113
|
import { LruCacher as yt } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
|
|
114
114
|
import { useApKeepAliveInject as kt } from "./src/business/ap-keep-alive/hook.mjs";
|
|
115
115
|
import { matches as Kt } from "./src/business/ap-keep-alive/utils.mjs";
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import { default as jt } from "./src/editable-table/
|
|
120
|
-
import { default as qt } from "./src/
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import { default as ep } from "./src/scroll-bar/
|
|
124
|
-
import { default as rp } from "./src/scroll-
|
|
125
|
-
import { default as pp } from "./src/
|
|
126
|
-
import { default as fp } from "./src/
|
|
127
|
-
import { default as lp } from "./src/
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import { default as cp } from "./src/ap-grid/
|
|
132
|
-
import { default as Ip } from "./src/ap-grid/editable/
|
|
133
|
-
import { default as bp } from "./src/
|
|
134
|
-
import { default as
|
|
135
|
-
import { default as Dp } from "./src/
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
116
|
+
import { ApDraggableGrid as Ut } from "./src/business/ap-draggable-grid/index.mjs";
|
|
117
|
+
import { useTablePaging as _t } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
118
|
+
import { ApTable as Wt } from "./src/ap-table/index.mjs";
|
|
119
|
+
import { default as jt } from "./src/editable-table/index.vue.mjs";
|
|
120
|
+
import { default as qt } from "./src/editable-table/form-item.vue.mjs";
|
|
121
|
+
import { default as Qt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
122
|
+
import { ensureRangeValue as Yt } from "./src/scroll-bar/utils/index.mjs";
|
|
123
|
+
import { default as ep } from "./src/scroll-bar/index.vue.mjs";
|
|
124
|
+
import { default as rp } from "./src/scroll-bar/internal.vue.mjs";
|
|
125
|
+
import { default as pp } from "./src/scroll-view/index.vue.mjs";
|
|
126
|
+
import { default as fp } from "./src/portal/index.vue.mjs";
|
|
127
|
+
import { default as lp } from "./src/full-screen/index.vue.mjs";
|
|
128
|
+
import { default as dp } from "./src/resize-observer/index.vue.mjs";
|
|
129
|
+
import { ROW_SELECTION_FIELD as up } from "./src/ap-grid/constants.mjs";
|
|
130
|
+
import { toTreeArray as ip } from "./src/ap-grid/utils/to-tree-array.mjs";
|
|
131
|
+
import { default as cp } from "./src/ap-grid/index.vue.mjs";
|
|
132
|
+
import { default as Ip } from "./src/ap-grid/editable/index.vue.mjs";
|
|
133
|
+
import { default as bp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
134
|
+
import { default as Cp } from "./src/text/index.vue.mjs";
|
|
135
|
+
import { default as Dp } from "./src/text/group.vue.mjs";
|
|
136
|
+
import { default as hp } from "./src/mask/index.vue.mjs";
|
|
137
|
+
import { Splitter as Rp } from "./src/splitter/index.mjs";
|
|
138
|
+
import { useMessage as Lp } from "./src/hooks/useMessage.mjs";
|
|
139
|
+
import { useControllableValue as Np } from "./src/hooks/useControllableValue.mjs";
|
|
140
|
+
import { useManualRef as yp } from "./src/hooks/useManualRef.mjs";
|
|
141
|
+
import { useThrottleRef as kp } from "./src/hooks/useThrottleRef.mjs";
|
|
142
|
+
import { useFullScreen as Kp } from "./src/hooks/useFullScreen.mjs";
|
|
143
|
+
import { useResize as Up } from "./src/hooks/useResize.mjs";
|
|
143
144
|
const a = console.log;
|
|
144
145
|
a(`APlus-UI version ${p}`);
|
|
145
146
|
const l = {
|
|
@@ -166,14 +167,15 @@ export {
|
|
|
166
167
|
cr as ApButtonGroup,
|
|
167
168
|
Ir as ApCard,
|
|
168
169
|
Yo as ApConfirmButton,
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
St as ApCopy,
|
|
171
|
+
Qt as ApDescriptions,
|
|
171
172
|
ko as ApDownLoadNeedNameKeyDefault,
|
|
172
173
|
Ko as ApDownload,
|
|
174
|
+
Ut as ApDraggableGrid,
|
|
173
175
|
er as ApDrawer,
|
|
174
176
|
br as ApExpandAlert,
|
|
175
177
|
Dr as ApExportGroup,
|
|
176
|
-
|
|
178
|
+
Cr as ApExportGroupActionType,
|
|
177
179
|
Me as ApField,
|
|
178
180
|
we as ApFieldCheckbox,
|
|
179
181
|
Be as ApFieldDate,
|
|
@@ -190,9 +192,9 @@ export {
|
|
|
190
192
|
$e as ApFieldTextArea,
|
|
191
193
|
ao as ApFieldTreeSelect,
|
|
192
194
|
me as ApForm,
|
|
193
|
-
|
|
195
|
+
Ge as ApFormControlRender,
|
|
194
196
|
Te as ApFormDependency,
|
|
195
|
-
|
|
197
|
+
Se as ApFormDrawerForm,
|
|
196
198
|
xe as ApFormItem,
|
|
197
199
|
Ft as ApFormItemBatchInput,
|
|
198
200
|
oe as ApFormItemCheckbox,
|
|
@@ -212,8 +214,8 @@ export {
|
|
|
212
214
|
Fe as ApFormModalForm,
|
|
213
215
|
Ee as ApFormProvider,
|
|
214
216
|
ne as ApFormSearchForm,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
+
ge as ApFormSet,
|
|
218
|
+
cp as ApGrid,
|
|
217
219
|
Lr as ApImage,
|
|
218
220
|
Nr as ApInputRadio,
|
|
219
221
|
Nt as ApKeepAlive,
|
|
@@ -224,50 +226,50 @@ export {
|
|
|
224
226
|
jo as ApList,
|
|
225
227
|
Wo as ApModal,
|
|
226
228
|
xt as ApNeedNameKeyDefault,
|
|
227
|
-
|
|
229
|
+
gt as ApProductInfo,
|
|
228
230
|
Pt as ApRadioGroup,
|
|
229
231
|
Vr as ApSelectLayout,
|
|
230
232
|
Tt as ApSizeInput,
|
|
231
233
|
zr as ApStatus,
|
|
232
234
|
Wr as ApStatusGroup,
|
|
233
235
|
mt as ApSummary,
|
|
234
|
-
|
|
236
|
+
Wt as ApTable,
|
|
235
237
|
pr as ApTableModal,
|
|
236
238
|
Ro as ApTag,
|
|
237
239
|
Lo as ApTagGroup,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
Cp as ApText,
|
|
241
|
+
Dp as ApTextGroup,
|
|
240
242
|
jr as ApTitle,
|
|
241
243
|
rr as ApTransformDataHelper,
|
|
242
244
|
yo as ApUpload,
|
|
243
245
|
At as ApUploadSingle,
|
|
244
|
-
|
|
246
|
+
Gt as ApView,
|
|
245
247
|
nt as BatchInputGroup,
|
|
246
248
|
Uo as CheckCard,
|
|
247
249
|
_o as CheckCardGroup,
|
|
248
250
|
y as ConfigProvider,
|
|
249
251
|
n as DEFAULT_NAMESPACE,
|
|
250
252
|
c as DEFAULT_UIMODE,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
253
|
+
go as DictCode,
|
|
254
|
+
Ip as EditableGrid,
|
|
255
|
+
bp as EditableGridFormItem,
|
|
256
|
+
jt as EditableTable,
|
|
257
|
+
qt as EditableTableFormItem,
|
|
258
|
+
lp as FullScreen,
|
|
259
|
+
rp as InternalScrollBar,
|
|
258
260
|
yt as LruCacher,
|
|
259
|
-
|
|
261
|
+
hp as Mask,
|
|
260
262
|
No as NeedNameKeyDefault,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
fp as Portal,
|
|
264
|
+
up as ROW_SELECTION_FIELD,
|
|
265
|
+
dp as ResizeObserver,
|
|
266
|
+
ep as ScrollBar,
|
|
267
|
+
pp as ScrollView,
|
|
268
|
+
Rp as Splitter,
|
|
269
|
+
ho as WorkOrderModal,
|
|
268
270
|
mo as adminToken,
|
|
269
271
|
lo as aplusToken,
|
|
270
|
-
|
|
272
|
+
S as buildLocaleContext,
|
|
271
273
|
D as buildTranslator,
|
|
272
274
|
rt as computedRecords,
|
|
273
275
|
F as configProviderContextKey,
|
|
@@ -276,39 +278,39 @@ export {
|
|
|
276
278
|
Do as createWorkOrderModal,
|
|
277
279
|
l as default,
|
|
278
280
|
E as defaultNamespace,
|
|
279
|
-
|
|
281
|
+
Yt as ensureRangeValue,
|
|
280
282
|
tt as flattenColumns,
|
|
281
283
|
Lt as forceStopTags,
|
|
282
284
|
pt as formatDataIndex,
|
|
283
285
|
at as formatNumber,
|
|
284
286
|
w as globalConfigCached,
|
|
285
|
-
|
|
287
|
+
hr as handleExportDownload,
|
|
286
288
|
Kt as isNameMatches,
|
|
287
289
|
T as keysOf,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
Co as langMap,
|
|
291
|
+
G as localeContextKey,
|
|
290
292
|
Br as locales,
|
|
291
293
|
L as namespaceContextKey,
|
|
292
294
|
s as pathMap,
|
|
293
295
|
b as provideGlobalConfig,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
+
ip as toTreeArray,
|
|
297
|
+
h as translate,
|
|
296
298
|
kt as useApKeepAliveInject,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
+
Np as useControllableValue,
|
|
300
|
+
Kp as useFullScreen,
|
|
299
301
|
M as useGetDerivedNamespace,
|
|
300
|
-
|
|
302
|
+
g as useGlobalConfig,
|
|
301
303
|
et as useGridRefresh,
|
|
302
304
|
P as useLocale,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
+
yp as useManualRef,
|
|
306
|
+
Lp as useMessage,
|
|
305
307
|
N as useNamespace,
|
|
306
308
|
Yr as usePageListApGrid,
|
|
307
309
|
qr as usePageListApTable,
|
|
308
|
-
|
|
310
|
+
Up as useResize,
|
|
309
311
|
fr as useTableModal,
|
|
310
|
-
|
|
312
|
+
_t as useTablePaging,
|
|
311
313
|
Qr as useTableRefresh,
|
|
312
314
|
lr as useTableSelectModal,
|
|
313
|
-
|
|
315
|
+
kp as useThrottleRef
|
|
314
316
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { omit as
|
|
2
|
-
import { isDef as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
var
|
|
1
|
+
import { omit as s, isUndefined as d, isFunction as m, isNumber as C } from "lodash-unified";
|
|
2
|
+
import { isDef as g } from "../../utils/index.mjs";
|
|
3
|
+
const y = 20, b = 50, w = (e) => e.some((t) => !!t.html);
|
|
4
|
+
function K(e) {
|
|
5
|
+
var o;
|
|
6
6
|
const t = {
|
|
7
|
-
...
|
|
7
|
+
...s(e, [
|
|
8
8
|
"columns",
|
|
9
9
|
"request",
|
|
10
10
|
"searchForm",
|
|
@@ -18,39 +18,39 @@ function v(e) {
|
|
|
18
18
|
isHover: !0,
|
|
19
19
|
keyField: e.rowKey,
|
|
20
20
|
isCurrent: !!e.rowHighlightable
|
|
21
|
-
}, t.columnConfig = {},
|
|
22
|
-
const
|
|
23
|
-
|
|
21
|
+
}, t.columnConfig = {}, w(e.columns || []) && (t.rowConfig.useKey = !0, t.columnConfig.useKey = !0), e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig.resizable = !0), e.rowSelection) {
|
|
22
|
+
const r = e.rowSelection === !0 ? {} : e.rowSelection;
|
|
23
|
+
r.type === "radio" ? t.radioConfig = {
|
|
24
24
|
highlight: !0,
|
|
25
|
-
checkMethod({ row:
|
|
26
|
-
return
|
|
25
|
+
checkMethod({ row: i }) {
|
|
26
|
+
return r.disabled ? !r.disabled(i) : !0;
|
|
27
27
|
},
|
|
28
|
-
visibleMethod({ row:
|
|
29
|
-
return
|
|
28
|
+
visibleMethod({ row: i }) {
|
|
29
|
+
return r.shown ? r.shown(i) : !0;
|
|
30
30
|
},
|
|
31
|
-
checkRowKey: (
|
|
32
|
-
reserve:
|
|
31
|
+
checkRowKey: (o = r.defaultSelectedRowKeys) == null ? void 0 : o[0],
|
|
32
|
+
reserve: d(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys
|
|
33
33
|
} : t.checkboxConfig = {
|
|
34
34
|
highlight: !0,
|
|
35
|
-
checkMethod({ row:
|
|
36
|
-
return
|
|
35
|
+
checkMethod({ row: i }) {
|
|
36
|
+
return r.disabled ? !r.disabled(i) : !0;
|
|
37
37
|
},
|
|
38
|
-
visibleMethod({ row:
|
|
39
|
-
return
|
|
38
|
+
visibleMethod({ row: i }) {
|
|
39
|
+
return r.shown ? r.shown(i) : !0;
|
|
40
40
|
},
|
|
41
|
-
reserve:
|
|
42
|
-
range:
|
|
41
|
+
reserve: d(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys,
|
|
42
|
+
range: r.range || !1
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
return t.border = e.bordered === !1 ? "inner" : !0, e.expandable && (t.expandConfig =
|
|
45
|
+
return t.border = e.bordered === !1 ? "inner" : !0, e.expandable && (t.expandConfig = s(e.expandable, [
|
|
46
46
|
"renderContent",
|
|
47
47
|
"width",
|
|
48
48
|
"title"
|
|
49
|
-
])), e.footer && (t.showFooter = !0,
|
|
49
|
+
])), e.footer && (t.showFooter = !0, m(e.footer) ? t.footerMethod = e.footer : t.footerData = e.footer), e.virtual === !1 ? (t.virtualXConfig = {
|
|
50
50
|
enabled: !1
|
|
51
51
|
}, t.virtualYConfig = {
|
|
52
52
|
enabled: !1
|
|
53
|
-
}) : (f(t, "X", e.virtual), f(t, "Y", e.virtual)), t.round =
|
|
53
|
+
}) : (f(t, "X", e.virtual), f(t, "Y", e.virtual)), t.round = g(e.round) ? e.round : !e.card, t.headerCellConfig = {
|
|
54
54
|
height: 36,
|
|
55
55
|
...t.headerCellConfig || {}
|
|
56
56
|
}, t.treeConfig && (t.treeConfig = {
|
|
@@ -59,28 +59,32 @@ function v(e) {
|
|
|
59
59
|
* 使用非树层级列表,配合transform
|
|
60
60
|
*/
|
|
61
61
|
transform: !0
|
|
62
|
-
}), t
|
|
62
|
+
}), t.resizableConfig = {
|
|
63
|
+
minWidth({ cell: r }) {
|
|
64
|
+
return R(r, e.size);
|
|
65
|
+
}
|
|
66
|
+
}, t;
|
|
63
67
|
}
|
|
64
|
-
function f(e, t,
|
|
65
|
-
const
|
|
66
|
-
e[
|
|
67
|
-
enabled:
|
|
68
|
+
function f(e, t, n) {
|
|
69
|
+
const o = t === "X", r = o ? "x" : "y", i = o ? "virtualXConfig" : "virtualYConfig", u = n == null ? void 0 : n[r], c = u !== !1, l = o ? y : b, h = C(u) && u >= 0 ? u : l;
|
|
70
|
+
e[i] = {
|
|
71
|
+
enabled: c,
|
|
68
72
|
gt: h,
|
|
69
|
-
oSize: (
|
|
73
|
+
oSize: (n == null ? void 0 : n.oSize) || 0
|
|
70
74
|
};
|
|
71
75
|
}
|
|
72
|
-
function
|
|
76
|
+
function x(e) {
|
|
73
77
|
return e === !0 ? "left" : e;
|
|
74
78
|
}
|
|
75
|
-
function
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
return
|
|
79
|
-
(
|
|
79
|
+
function M(e, t) {
|
|
80
|
+
const n = e === !0 || !e.type ? "checkbox" : e.type, o = e === !0 ? 60 : e.columnWidth || 60;
|
|
81
|
+
let r = e === !0 ? void 0 : x(e.fixed);
|
|
82
|
+
return r || (r === !1 ? r = void 0 : r = t.some(
|
|
83
|
+
(i) => i.fixed === "left" || i.fixed === !0
|
|
80
84
|
) ? "left" : void 0), {
|
|
81
|
-
type:
|
|
82
|
-
width:
|
|
83
|
-
fixed:
|
|
85
|
+
type: n,
|
|
86
|
+
width: o,
|
|
87
|
+
fixed: r
|
|
84
88
|
};
|
|
85
89
|
}
|
|
86
90
|
function k(e) {
|
|
@@ -91,8 +95,22 @@ function k(e) {
|
|
|
91
95
|
width: t
|
|
92
96
|
};
|
|
93
97
|
}
|
|
98
|
+
function a(e) {
|
|
99
|
+
if (!e)
|
|
100
|
+
return 0;
|
|
101
|
+
const t = getComputedStyle(e);
|
|
102
|
+
return e.offsetWidth + (Number.parseFloat(t.marginLeft) || 0) + Number.parseFloat(t.marginRight) || 0;
|
|
103
|
+
}
|
|
104
|
+
function R(e, t) {
|
|
105
|
+
if (!e)
|
|
106
|
+
return "auto";
|
|
107
|
+
const n = getComputedStyle(e);
|
|
108
|
+
let o = t === "medium" ? 12 * 2 : 9 * 2;
|
|
109
|
+
const r = (Number.parseFloat(n.fontSize) || 14) * 1.6;
|
|
110
|
+
return o += r, e.querySelector("span.anticon-question-circle") && (o += 20), o += a(e.querySelector(".vxe-cell--sort")) + a(e.querySelector(".vxe-cell--filter")), Math.ceil(o);
|
|
111
|
+
}
|
|
94
112
|
export {
|
|
95
113
|
k as getRowExpandProps,
|
|
96
|
-
|
|
97
|
-
|
|
114
|
+
M as getRowSelectionProps,
|
|
115
|
+
K as toVxeProps
|
|
98
116
|
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ApDraggableGridItemBase } from './interface';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
item?(_: {
|
|
7
|
+
item: {
|
|
8
|
+
isDragging: boolean;
|
|
9
|
+
isOverlay: boolean;
|
|
10
|
+
span: number;
|
|
11
|
+
row: number;
|
|
12
|
+
col: number;
|
|
13
|
+
height?: number | string | undefined;
|
|
14
|
+
};
|
|
15
|
+
index: number;
|
|
16
|
+
}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
gridContainer: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
rootEl: any;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
25
|
+
gridList: {
|
|
26
|
+
type: PropType<Array<ApDraggableGridItemBase>>;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
request: {
|
|
30
|
+
type: PropType<() => Promise<ApDraggableGridItemBase[]>>;
|
|
31
|
+
default: null;
|
|
32
|
+
};
|
|
33
|
+
gridWidth: {
|
|
34
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
gridItemHeight: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
gridItemShadow: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
gapWidth: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
dragOverlayColor: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
dragOverlayBorderColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
disableDrag: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>, {
|
|
62
|
+
setGridItems: (items: ApDraggableGridItemBase[]) => void;
|
|
63
|
+
refreshGrid: () => void;
|
|
64
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
65
|
+
onGridListChange: (args_0: ApDraggableGridItemBase[]) => any;
|
|
66
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
67
|
+
gridList: {
|
|
68
|
+
type: PropType<Array<ApDraggableGridItemBase>>;
|
|
69
|
+
default: () => never[];
|
|
70
|
+
};
|
|
71
|
+
request: {
|
|
72
|
+
type: PropType<() => Promise<ApDraggableGridItemBase[]>>;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
gridWidth: {
|
|
76
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
gridItemHeight: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
gridItemShadow: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
gapWidth: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
dragOverlayColor: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
dragOverlayBorderColor: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
disableDrag: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
request: () => Promise<ApDraggableGridItemBase[]>;
|
|
107
|
+
gridList: ApDraggableGridItemBase[];
|
|
108
|
+
gridWidth: string | number;
|
|
109
|
+
gridItemHeight: number;
|
|
110
|
+
gridItemShadow: string;
|
|
111
|
+
gapWidth: number;
|
|
112
|
+
dragOverlayColor: string;
|
|
113
|
+
dragOverlayBorderColor: string;
|
|
114
|
+
disableDrag: boolean;
|
|
115
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
116
|
+
gridContainer: HTMLDivElement;
|
|
117
|
+
}, any>;
|
|
118
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
119
|
+
export default _default;
|
|
120
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|