@aplus-frontend/ui 6.31.0 → 6.32.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 +39 -37
- package/es/src/ag-grid/components/body-cell/index.vue2.mjs +14 -12
- package/es/src/ag-grid/editable/index.vue.d.ts +18 -0
- package/es/src/ag-grid/editable/index.vue.mjs +233 -0
- package/es/src/ag-grid/editable/index.vue2.mjs +4 -0
- package/es/src/ag-grid/editable/interface.d.ts +96 -0
- package/es/src/ag-grid/editable/interface.mjs +1 -0
- package/es/src/ag-grid/editable/style/css.d.ts +0 -0
- package/es/src/ag-grid/editable/style/css.js +1 -0
- package/es/src/ag-grid/editable/style/index.d.ts +0 -0
- package/es/src/ag-grid/editable/style/index.js +1 -0
- package/es/src/ag-grid/editable/utils.d.ts +5 -0
- package/es/src/ag-grid/editable/utils.mjs +23 -0
- package/es/src/ag-grid/hooks/use-editable-api.d.ts +15 -0
- package/es/src/ag-grid/hooks/use-editable-api.mjs +150 -0
- package/es/src/ag-grid/hooks/use-editable-columns.d.ts +6 -0
- package/es/src/ag-grid/hooks/use-editable-columns.mjs +96 -0
- package/es/src/ag-grid/hooks/use-editable-form-item-api.d.ts +14 -0
- package/es/src/ag-grid/index.d.ts +3 -1
- package/es/src/ag-grid/index.mjs +2 -0
- package/es/src/ag-grid/index.vue.mjs +70 -66
- package/es/src/ag-grid/interface.d.ts +20 -1
- package/es/src/ag-grid/utils.d.ts +2 -0
- package/es/src/ag-grid/utils.mjs +12 -7
- package/es/src/ap-field/date/index.vue.mjs +29 -28
- package/es/src/ap-field/radio/index.vue.d.ts +4 -0
- package/es/src/ap-field/radio/index.vue.mjs +9 -8
- package/es/src/ap-field/radio/read.vue2.mjs +5 -4
- package/es/src/ap-field/rate/index.vue.d.ts +20 -0
- package/es/src/ap-field/rate/index.vue.mjs +12 -11
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.mjs +41 -39
- package/es/src/ap-form/items/checkbox/index.vue.mjs +5 -5
- package/es/src/ap-form/items/date/index.vue.mjs +9 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +8 -8
- package/es/src/ap-form/items/number/index.vue.mjs +11 -11
- package/es/src/ap-form/items/radio/index.vue.d.ts +8 -0
- package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +3 -3
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +12 -12
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -6
- package/es/src/ap-form/render/item.vue.mjs +6 -5
- package/es/src/ap-grid/utils/editable.d.ts +2 -1
- package/es/src/ap-table/constants.d.ts +4 -0
- package/es/src/ap-table/interface.d.ts +5 -0
- package/es/src/ap-table/utils.mjs +76 -71
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +10 -0
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +67 -68
- package/es/src/business/ap-copy/ApCopy.d.ts +28 -1
- package/es/src/business/ap-copy/ApCopy.mjs +42 -38
- package/es/src/business/ap-copy/constans.d.ts +12 -0
- package/es/src/business/ap-copy/constans.mjs +13 -0
- package/es/src/business/ap-copy/index.d.ts +48 -3
- package/es/src/business/ap-copy/interface.d.ts +4 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -1
- package/es/src/editable-table/utils.d.ts +3 -2
- package/es/src/index.mjs +42 -40
- 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/components/body-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +18 -0
- package/lib/src/ag-grid/editable/index.vue.js +1 -0
- package/lib/src/ag-grid/editable/index.vue2.js +1 -0
- package/lib/src/ag-grid/editable/interface.d.ts +96 -0
- package/lib/src/ag-grid/editable/interface.js +1 -0
- package/lib/src/ag-grid/editable/style/css.cjs +1 -0
- package/lib/src/ag-grid/editable/style/css.d.ts +0 -0
- package/lib/src/ag-grid/editable/style/index.cjs +1 -0
- package/lib/src/ag-grid/editable/style/index.d.ts +0 -0
- package/lib/src/ag-grid/editable/utils.d.ts +5 -0
- package/lib/src/ag-grid/editable/utils.js +1 -0
- package/lib/src/ag-grid/hooks/use-editable-api.d.ts +15 -0
- package/lib/src/ag-grid/hooks/use-editable-api.js +1 -0
- package/lib/src/ag-grid/hooks/use-editable-columns.d.ts +6 -0
- package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -0
- package/lib/src/ag-grid/hooks/use-editable-form-item-api.d.ts +14 -0
- package/lib/src/ag-grid/index.d.ts +3 -1
- package/lib/src/ag-grid/index.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +20 -1
- package/lib/src/ag-grid/utils.d.ts +2 -0
- package/lib/src/ag-grid/utils.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +4 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +20 -0
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +8 -0
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-grid/utils/editable.d.ts +2 -1
- package/lib/src/ap-table/constants.d.ts +4 -0
- package/lib/src/ap-table/interface.d.ts +5 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +10 -0
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.d.ts +28 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-copy/constans.d.ts +12 -0
- package/lib/src/business/ap-copy/constans.js +1 -1
- package/lib/src/business/ap-copy/index.d.ts +48 -3
- package/lib/src/business/ap-copy/interface.d.ts +4 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/editable-table/utils.d.ts +3 -2
- 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 +3 -3
- package/theme/ag-grid/editable.css +52 -0
- package/theme/ag-grid/editable.less +11 -0
- package/theme/ag-grid/index.css +18 -0
- package/theme/ag-grid/index.less +1 -0
- package/theme/ap-appendix/ap-appendix.css +4 -13
- package/theme/ap-appendix/ap-appendix.less +5 -12
- package/theme/ap-form/ap-form-item.css +12 -0
- package/theme/ap-form/ap-form-item.less +12 -0
- package/theme/ap-form/index.css +12 -0
- package/theme/ap-form/search-form.css +12 -0
- package/theme/ap-grid/editable.css +1 -0
- package/theme/ap-grid/editable.less +1 -0
- package/theme/ap-grid/index.css +13 -0
- package/theme/ap-grid/index.less +1 -0
- package/theme/ap-table/ap-table.css +12 -0
- package/theme/ap-table-modal/index.css +12 -0
- package/theme/editable-table/index.css +13 -0
- package/theme/editable-table/index.less +1 -0
- package/theme/index.css +25 -13
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +0 -3
- package/es/src/business/ap-appendix/icons/empty-admin-icon.vue.mjs +0 -20
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +0 -3
- package/es/src/business/ap-appendix/icons/empty-aplus-icon.vue.mjs +0 -20
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.d.ts +0 -3
- package/lib/src/business/ap-appendix/icons/empty-admin-icon.vue.js +0 -1
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.d.ts +0 -3
- package/lib/src/business/ap-appendix/icons/empty-aplus-icon.vue.js +0 -1
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 g, useGlobalConfig as
|
|
8
|
-
import { buildLocaleContext as S, buildTranslator as
|
|
7
|
+
import { keysOf as T, provideGlobalConfig as g, useGlobalConfig as b } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
import { buildLocaleContext as S, buildTranslator as G, localeContextKey as D, 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
|
|
30
|
+
import { default as be } from "./src/ap-form/set/index.vue.mjs";
|
|
31
31
|
import { default as Se } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as De } 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, ApFieldRead as Ne } from "./src/ap-field/index.mjs";
|
|
@@ -53,8 +53,8 @@ import { default as io } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
|
53
53
|
import { default as co } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
54
54
|
import { default as Io } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
55
55
|
import { default as go } from "./src/ap-action/group/index.vue.mjs";
|
|
56
|
-
import { DictCode as
|
|
57
|
-
import { createWorkOrderModal as
|
|
56
|
+
import { DictCode as Co, langMap as So } from "./src/work-order-modal/interfaces.mjs";
|
|
57
|
+
import { createWorkOrderModal as Do } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
58
58
|
import { default as Po } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
59
59
|
import { default as Eo } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
60
60
|
import { default as Mo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
@@ -79,8 +79,8 @@ import { ApAttachment as ir } from "./src/business/ap-attachment/index.mjs";
|
|
|
79
79
|
import { ApBatchAction as cr } from "./src/business/ap-batch-action/index.mjs";
|
|
80
80
|
import { ApBatchActionGroup as Ir } from "./src/business/ap-batch-action-group/index.mjs";
|
|
81
81
|
import { ApButtonGroup as gr } from "./src/business/ap-button-group/index.mjs";
|
|
82
|
-
import { ApCard as
|
|
83
|
-
import { ApExpandAlert as
|
|
82
|
+
import { ApCard as Cr } from "./src/business/ap-card/index.mjs";
|
|
83
|
+
import { ApExpandAlert as Gr } from "./src/business/ap-expand-alert/index.mjs";
|
|
84
84
|
import { ApExportGroupActionType as hr } from "./src/business/ap-export-group/interface.mjs";
|
|
85
85
|
import { ApExportGroup as Rr } from "./src/business/ap-export-group/index.mjs";
|
|
86
86
|
import { handleExportDownload as Lr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
@@ -103,9 +103,9 @@ import { ApSummary as At } from "./src/business/ap-summary/index.mjs";
|
|
|
103
103
|
import { ApNeedNameKeyDefault as nt } from "./src/business/ap-appendix/interface.mjs";
|
|
104
104
|
import { ApAppendix as Ft } from "./src/business/ap-appendix/index.mjs";
|
|
105
105
|
import { default as Tt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
106
|
-
import { default as
|
|
106
|
+
import { default as bt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
107
107
|
import { default as St } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
108
|
-
import { ApSizeInput as
|
|
108
|
+
import { ApSizeInput as Dt } from "./src/business/ap-size-input/index.mjs";
|
|
109
109
|
import { ApProductInfo as Pt } from "./src/business/ap-product-info/index.mjs";
|
|
110
110
|
import { ApCopy as Et } from "./src/business/ap-copy/index.mjs";
|
|
111
111
|
import { ApView as Mt } from "./src/business/ap-view/index.mjs";
|
|
@@ -130,8 +130,8 @@ import { default as ip } from "./src/portal/index.vue.mjs";
|
|
|
130
130
|
import { default as cp } from "./src/full-screen/index.vue.mjs";
|
|
131
131
|
import { default as Ip } from "./src/resize-observer/index.vue.mjs";
|
|
132
132
|
import { ROW_SELECTION_FIELD as gp } from "./src/ap-grid/constants.mjs";
|
|
133
|
-
import { toTreeArray as
|
|
134
|
-
import { default as
|
|
133
|
+
import { toTreeArray as Cp } from "./src/ap-grid/utils/to-tree-array.mjs";
|
|
134
|
+
import { default as Gp } from "./src/ap-grid/index.vue.mjs";
|
|
135
135
|
import { default as hp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
136
136
|
import { default as Rp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
137
137
|
import { default as Lp } from "./src/text/index.vue.mjs";
|
|
@@ -139,12 +139,13 @@ import { default as Np } from "./src/text/group.vue.mjs";
|
|
|
139
139
|
import { default as yp } from "./src/mask/index.vue.mjs";
|
|
140
140
|
import { Splitter as kp } from "./src/splitter/index.mjs";
|
|
141
141
|
import { default as Kp } from "./src/ag-grid/index.vue.mjs";
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
142
|
+
import { default as Up } from "./src/ag-grid/editable/index.vue.mjs";
|
|
143
|
+
import { useMessage as _p } from "./src/hooks/useMessage.mjs";
|
|
144
|
+
import { useControllableValue as Wp } from "./src/hooks/useControllableValue.mjs";
|
|
145
|
+
import { useManualRef as jp } from "./src/hooks/useManualRef.mjs";
|
|
146
|
+
import { useThrottleRef as qp } from "./src/hooks/useThrottleRef.mjs";
|
|
147
|
+
import { useFullScreen as Qp } from "./src/hooks/useFullScreen.mjs";
|
|
148
|
+
import { useResize as Yp } from "./src/hooks/useResize.mjs";
|
|
148
149
|
const a = console.log;
|
|
149
150
|
a(`APlus-UI version ${p}`);
|
|
150
151
|
const l = {
|
|
@@ -170,7 +171,7 @@ export {
|
|
|
170
171
|
Ir as ApBatchActionGroup,
|
|
171
172
|
Jo as ApButton,
|
|
172
173
|
gr as ApButtonGroup,
|
|
173
|
-
|
|
174
|
+
Cr as ApCard,
|
|
174
175
|
Zo as ApConfirmButton,
|
|
175
176
|
Et as ApCopy,
|
|
176
177
|
pp as ApDescriptions,
|
|
@@ -178,7 +179,7 @@ export {
|
|
|
178
179
|
Oo as ApDownload,
|
|
179
180
|
jt as ApDraggableGrid,
|
|
180
181
|
or as ApDrawer,
|
|
181
|
-
|
|
182
|
+
Gr as ApExpandAlert,
|
|
182
183
|
Rr as ApExportGroup,
|
|
183
184
|
hr as ApExportGroupActionType,
|
|
184
185
|
Me as ApField,
|
|
@@ -198,7 +199,7 @@ export {
|
|
|
198
199
|
je as ApFieldTextArea,
|
|
199
200
|
fo as ApFieldTreeSelect,
|
|
200
201
|
me as ApForm,
|
|
201
|
-
|
|
202
|
+
De as ApFormControlRender,
|
|
202
203
|
Te as ApFormDependency,
|
|
203
204
|
Se as ApFormDrawerForm,
|
|
204
205
|
xe as ApFormItem,
|
|
@@ -220,8 +221,8 @@ export {
|
|
|
220
221
|
Fe as ApFormModalForm,
|
|
221
222
|
Ee as ApFormProvider,
|
|
222
223
|
ne as ApFormSearchForm,
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
be as ApFormSet,
|
|
225
|
+
Gp as ApGrid,
|
|
225
226
|
yr as ApImage,
|
|
226
227
|
kr as ApInputRadio,
|
|
227
228
|
Kt as ApKeepAlive,
|
|
@@ -236,7 +237,7 @@ export {
|
|
|
236
237
|
Pt as ApProductInfo,
|
|
237
238
|
vt as ApRadioGroup,
|
|
238
239
|
$r as ApSelectLayout,
|
|
239
|
-
|
|
240
|
+
Dt as ApSizeInput,
|
|
240
241
|
pr as ApStatisticCard,
|
|
241
242
|
Hr as ApStatus,
|
|
242
243
|
qr as ApStatusGroup,
|
|
@@ -253,13 +254,14 @@ export {
|
|
|
253
254
|
Tt as ApUploadSingle,
|
|
254
255
|
qt as ApValueSelectCard,
|
|
255
256
|
Mt as ApView,
|
|
256
|
-
|
|
257
|
+
bt as BatchInputGroup,
|
|
257
258
|
Vo as CheckCard,
|
|
258
259
|
zo as CheckCardGroup,
|
|
259
260
|
y as ConfigProvider,
|
|
260
261
|
n as DEFAULT_NAMESPACE,
|
|
261
262
|
c as DEFAULT_UIMODE,
|
|
262
|
-
|
|
263
|
+
Co as DictCode,
|
|
264
|
+
Up as EditableAgGrid,
|
|
263
265
|
hp as EditableGrid,
|
|
264
266
|
Rp as EditableGridFormItem,
|
|
265
267
|
ep as EditableTable,
|
|
@@ -279,12 +281,12 @@ export {
|
|
|
279
281
|
lo as adminToken,
|
|
280
282
|
xo as aplusToken,
|
|
281
283
|
S as buildLocaleContext,
|
|
282
|
-
|
|
284
|
+
G as buildTranslator,
|
|
283
285
|
lt as computedRecords,
|
|
284
286
|
F as configProviderContextKey,
|
|
285
287
|
A as configProviderProps,
|
|
286
288
|
Nr as convertExportField,
|
|
287
|
-
|
|
289
|
+
Do as createWorkOrderModal,
|
|
288
290
|
l as default,
|
|
289
291
|
E as defaultNamespace,
|
|
290
292
|
fp as ensureRangeValue,
|
|
@@ -297,30 +299,30 @@ export {
|
|
|
297
299
|
Wt as isNameMatches,
|
|
298
300
|
T as keysOf,
|
|
299
301
|
So as langMap,
|
|
300
|
-
|
|
302
|
+
D as localeContextKey,
|
|
301
303
|
Vr as locales,
|
|
302
304
|
L as namespaceContextKey,
|
|
303
305
|
s as pathMap,
|
|
304
306
|
g as provideGlobalConfig,
|
|
305
|
-
|
|
307
|
+
Cp as toTreeArray,
|
|
306
308
|
h as translate,
|
|
307
309
|
_t as useApKeepAliveInject,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
+
Wp as useControllableValue,
|
|
311
|
+
Qp as useFullScreen,
|
|
310
312
|
M as useGetDerivedNamespace,
|
|
311
|
-
|
|
313
|
+
b as useGlobalConfig,
|
|
312
314
|
pt as useGridRefresh,
|
|
313
315
|
P as useLocale,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
+
jp as useManualRef,
|
|
317
|
+
_p as useMessage,
|
|
316
318
|
N as useNamespace,
|
|
317
319
|
ft as usePageListAgGrid,
|
|
318
320
|
rt as usePageListApGrid,
|
|
319
321
|
Yr as usePageListApTable,
|
|
320
|
-
|
|
322
|
+
Yp as useResize,
|
|
321
323
|
dr as useTableModal,
|
|
322
324
|
Qt as useTablePaging,
|
|
323
325
|
et as useTableRefresh,
|
|
324
326
|
ur as useTableSelectModal,
|
|
325
|
-
|
|
327
|
+
qp as useThrottleRef
|
|
326
328
|
};
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, createBlock as r, openBlock as n, resolveDynamicComponent as o, unref as m } from "vue";
|
|
2
2
|
import { contentCustom as p } from "../../../ap-grid/utils/col.mjs";
|
|
3
|
-
const
|
|
3
|
+
const i = /* @__PURE__ */ e({
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
6
6
|
params: {}
|
|
7
7
|
},
|
|
8
8
|
setup(s) {
|
|
9
|
-
return (
|
|
9
|
+
return (a, d) => (n(), r(o(
|
|
10
10
|
m(p)(
|
|
11
11
|
{
|
|
12
|
-
value:
|
|
13
|
-
text:
|
|
14
|
-
record:
|
|
15
|
-
column:
|
|
16
|
-
rowIndex:
|
|
17
|
-
|
|
12
|
+
value: a.params.value,
|
|
13
|
+
text: a.params.value,
|
|
14
|
+
record: a.params.data,
|
|
15
|
+
column: a.params.column,
|
|
16
|
+
rowIndex: a.params.node.rowIndex,
|
|
17
|
+
index: a.params.node.rowIndex,
|
|
18
|
+
pinned: a.params.node.rowPinned,
|
|
19
|
+
params: a.params
|
|
18
20
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
a.params.column,
|
|
22
|
+
a.params.extraValueType,
|
|
21
23
|
!1
|
|
22
24
|
)
|
|
23
25
|
)));
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
i as default
|
|
28
30
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EditableAgGridExpose, EditableAgGridProps } from './interface';
|
|
2
|
+
import { Recordable } from '../../type';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
|
+
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
|
+
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableAgGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
8
|
+
expose(exposed: ShallowUnwrapRef<EditableAgGridExpose>): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
+
}>) => VNode & {
|
|
13
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} & {};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { defineComponent as G, useSlots as H, ref as f, watch as O, unref as n, createBlock as U, openBlock as W, withCtx as d, createVNode as y, mergeProps as M, createSlots as $, renderList as q, renderSlot as J, normalizeProps as Q, guardReactiveProps as X } from "vue";
|
|
2
|
+
import { ApForm as u } from "../../ap-form/index.mjs";
|
|
3
|
+
import { isEqual as Y, isArray as w, omit as Z } from "lodash-unified";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import "../../hooks/index.mjs";
|
|
6
|
+
import { useGetEditableColumns as ee } from "../hooks/use-editable-columns.mjs";
|
|
7
|
+
import "../index.vue2.mjs";
|
|
8
|
+
import { useEditableApi as oe } from "../hooks/use-editable-api.mjs";
|
|
9
|
+
import { arrayToObject as p } from "./utils.mjs";
|
|
10
|
+
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useControllableValue as te } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import le from "../index.vue.mjs";
|
|
14
|
+
const be = /* @__PURE__ */ G({
|
|
15
|
+
name: "EditableGrid",
|
|
16
|
+
__name: "index",
|
|
17
|
+
props: {
|
|
18
|
+
dropdownPrefixCls: {},
|
|
19
|
+
bordered: {
|
|
20
|
+
type: Boolean
|
|
21
|
+
},
|
|
22
|
+
locale: {},
|
|
23
|
+
onResizeColumn: {},
|
|
24
|
+
getPopupContainer: {},
|
|
25
|
+
scroll: {},
|
|
26
|
+
sortDirections: {},
|
|
27
|
+
showSorterTooltip: {
|
|
28
|
+
type: [Boolean, Object]
|
|
29
|
+
},
|
|
30
|
+
prefixCls: {},
|
|
31
|
+
rowKey: {
|
|
32
|
+
type: [String, Function],
|
|
33
|
+
default: "key"
|
|
34
|
+
},
|
|
35
|
+
tableLayout: {},
|
|
36
|
+
title: {},
|
|
37
|
+
id: {},
|
|
38
|
+
showHeader: {
|
|
39
|
+
type: Boolean
|
|
40
|
+
},
|
|
41
|
+
components: {},
|
|
42
|
+
customRow: {},
|
|
43
|
+
customHeaderRow: {},
|
|
44
|
+
direction: {},
|
|
45
|
+
expandFixed: {
|
|
46
|
+
type: [String, Boolean]
|
|
47
|
+
},
|
|
48
|
+
expandColumnWidth: {},
|
|
49
|
+
expandedRowKeys: {},
|
|
50
|
+
defaultExpandedRowKeys: {},
|
|
51
|
+
expandedRowRender: {},
|
|
52
|
+
expandRowByClick: {
|
|
53
|
+
type: Boolean
|
|
54
|
+
},
|
|
55
|
+
expandIcon: {},
|
|
56
|
+
onExpand: {},
|
|
57
|
+
onExpandedRowsChange: {},
|
|
58
|
+
defaultExpandAllRows: {
|
|
59
|
+
type: Boolean
|
|
60
|
+
},
|
|
61
|
+
indentSize: {},
|
|
62
|
+
expandIconColumnIndex: {},
|
|
63
|
+
showExpandColumn: {
|
|
64
|
+
type: Boolean
|
|
65
|
+
},
|
|
66
|
+
expandedRowClassName: {},
|
|
67
|
+
childrenColumnName: {},
|
|
68
|
+
rowExpandable: {},
|
|
69
|
+
transformCellText: {},
|
|
70
|
+
rowSelection: {
|
|
71
|
+
type: Boolean
|
|
72
|
+
},
|
|
73
|
+
onLoadingChange: {},
|
|
74
|
+
onShownColumnsChange: {},
|
|
75
|
+
pagination: {
|
|
76
|
+
type: [Boolean, Object],
|
|
77
|
+
default: !1
|
|
78
|
+
},
|
|
79
|
+
searchFormWrapperStyle: {},
|
|
80
|
+
tableWrapperStyle: {},
|
|
81
|
+
wrapperStyle: {},
|
|
82
|
+
tableStyle: {},
|
|
83
|
+
adaptive: {
|
|
84
|
+
type: Boolean
|
|
85
|
+
},
|
|
86
|
+
columnResizable: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
loading: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: void 0
|
|
93
|
+
},
|
|
94
|
+
summary: {},
|
|
95
|
+
rowHeight: {
|
|
96
|
+
default: 66
|
|
97
|
+
},
|
|
98
|
+
advanceRenderer: {
|
|
99
|
+
type: Boolean
|
|
100
|
+
},
|
|
101
|
+
browserTooltips: {
|
|
102
|
+
type: Boolean
|
|
103
|
+
},
|
|
104
|
+
virtual: {
|
|
105
|
+
type: [Boolean, Object],
|
|
106
|
+
default: void 0
|
|
107
|
+
},
|
|
108
|
+
onRowClicked: {},
|
|
109
|
+
onScrollEnd: {},
|
|
110
|
+
rowClassName: {},
|
|
111
|
+
rowClassRules: {},
|
|
112
|
+
autoHeight: {
|
|
113
|
+
type: Boolean
|
|
114
|
+
},
|
|
115
|
+
onUpdate: {},
|
|
116
|
+
columns: {},
|
|
117
|
+
value: {},
|
|
118
|
+
defaultValue: {},
|
|
119
|
+
"onUpdate:value": {},
|
|
120
|
+
onChange: {},
|
|
121
|
+
maxLength: {},
|
|
122
|
+
name: {
|
|
123
|
+
default: "ap-editable-table-inner-name"
|
|
124
|
+
},
|
|
125
|
+
onFieldChange: {}
|
|
126
|
+
},
|
|
127
|
+
emits: ["update:value"],
|
|
128
|
+
setup(g, {
|
|
129
|
+
expose: h,
|
|
130
|
+
emit: b
|
|
131
|
+
}) {
|
|
132
|
+
const v = H(), o = g, {
|
|
133
|
+
b: C
|
|
134
|
+
} = ae("editable-aggrid"), R = b, s = f(), {
|
|
135
|
+
value: r,
|
|
136
|
+
updateValue: m
|
|
137
|
+
} = te(o, R), l = f(), x = u.useWatch(o.name, l);
|
|
138
|
+
O(r, (e) => {
|
|
139
|
+
const a = p(e, o.rowKey);
|
|
140
|
+
Y(a, n(x)) || l.value?.setFieldValue(o.name, a);
|
|
141
|
+
}, {
|
|
142
|
+
deep: !0
|
|
143
|
+
});
|
|
144
|
+
const B = ne("valueTypeMap"), S = ee(o, B), {
|
|
145
|
+
add: _,
|
|
146
|
+
addMultiple: F,
|
|
147
|
+
remove: E,
|
|
148
|
+
removeByKey: T,
|
|
149
|
+
getRowData: N,
|
|
150
|
+
getRowsData: A,
|
|
151
|
+
setRowData: V,
|
|
152
|
+
clear: k,
|
|
153
|
+
refreshRowIds: i
|
|
154
|
+
} = oe(o, l, r, m);
|
|
155
|
+
function D() {
|
|
156
|
+
const e = s.value?._internalGridApi;
|
|
157
|
+
if (!i.value?.length || !e)
|
|
158
|
+
return;
|
|
159
|
+
const a = i.value.map((t) => e.getRowNode(t)).filter((t) => !!t);
|
|
160
|
+
e.refreshCells({
|
|
161
|
+
rowNodes: a,
|
|
162
|
+
force: !0
|
|
163
|
+
}), i.value = [];
|
|
164
|
+
}
|
|
165
|
+
function K() {
|
|
166
|
+
l.value?.resetFields();
|
|
167
|
+
}
|
|
168
|
+
function j(e) {
|
|
169
|
+
return e ? (w(e) ? e : [e]).map((t) => w(t) ? [o.name, ...t] : [o.name, t]) : void 0;
|
|
170
|
+
}
|
|
171
|
+
async function z(e, a) {
|
|
172
|
+
return (await l.value?.validateFields(j(e), a))?.[o.name];
|
|
173
|
+
}
|
|
174
|
+
function I(e) {
|
|
175
|
+
m(e);
|
|
176
|
+
const a = p(e, o.rowKey);
|
|
177
|
+
l.value?.setFieldValue(o.name, a);
|
|
178
|
+
}
|
|
179
|
+
function L(e) {
|
|
180
|
+
const a = e === "end" ? r.value.length - 1 : e;
|
|
181
|
+
s.value?.scrollToRow(a);
|
|
182
|
+
}
|
|
183
|
+
return h({
|
|
184
|
+
resetFields: K,
|
|
185
|
+
validateFields: z,
|
|
186
|
+
add: _,
|
|
187
|
+
addMultiple: F,
|
|
188
|
+
remove: E,
|
|
189
|
+
removeByKey: T,
|
|
190
|
+
getRowData: N,
|
|
191
|
+
getRowsData: A,
|
|
192
|
+
setRowData: V,
|
|
193
|
+
clear: k,
|
|
194
|
+
setTableData: I,
|
|
195
|
+
scrollTo: L
|
|
196
|
+
}), (e, a) => (W(), U(n(u), {
|
|
197
|
+
ref_key: "formRef",
|
|
198
|
+
ref: l,
|
|
199
|
+
"initial-values": {
|
|
200
|
+
[o.name]: n(p)(n(r), o.rowKey)
|
|
201
|
+
},
|
|
202
|
+
style: {
|
|
203
|
+
height: "100%"
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
default: d(() => [y(n(u).FormItem, {
|
|
207
|
+
name: e.name,
|
|
208
|
+
"no-style": ""
|
|
209
|
+
}, {
|
|
210
|
+
default: d(() => [y(le, M(n(Z)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
211
|
+
ref_key: "tableRef",
|
|
212
|
+
ref: s,
|
|
213
|
+
class: n(C)(),
|
|
214
|
+
size: "mini",
|
|
215
|
+
columns: n(S),
|
|
216
|
+
"data-source": n(r),
|
|
217
|
+
"search-form": !1,
|
|
218
|
+
onUpdate: D
|
|
219
|
+
}), $({
|
|
220
|
+
_: 2
|
|
221
|
+
}, [q(v, (t, c) => ({
|
|
222
|
+
name: c,
|
|
223
|
+
fn: d((P) => [J(e.$slots, c, Q(X(P || {})))])
|
|
224
|
+
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
225
|
+
_: 3
|
|
226
|
+
}, 8, ["name"])]),
|
|
227
|
+
_: 3
|
|
228
|
+
}, 8, ["initial-values"]));
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
export {
|
|
232
|
+
be as default
|
|
233
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Recordable } from '../../type';
|
|
2
|
+
import { ApTableValueFields, ApTableValueTypes, CommonFieldReturnType, FieldPropsType } from '../../ap-table/interface';
|
|
3
|
+
import { AgGridColumnType, AgGridProps } from '../interface';
|
|
4
|
+
import { VNode } from 'vue';
|
|
5
|
+
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
6
|
+
import { EditableTableExpose } from '../../editable-table';
|
|
7
|
+
import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
8
|
+
import { ApFormItemProps } from '../../ap-form';
|
|
9
|
+
export type EditableAgGridColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<AgGridColumnType<RecordType, ExtraValueType, ValueType>, 'children' | 'customRender' | 'hideInSearch' | 'customRenderFormItem' | 'fieldProps'> & {
|
|
10
|
+
children?: EditableAgGridColumnType<RecordType, ExtraValueType, ValueType>[];
|
|
11
|
+
/**
|
|
12
|
+
* 是否可编辑
|
|
13
|
+
*/
|
|
14
|
+
editable?: boolean | ((text: any, record: RecordType, index: number) => boolean);
|
|
15
|
+
/**
|
|
16
|
+
* 自定义表单,适用于内置`valueType`不满足的情况下使用
|
|
17
|
+
*/
|
|
18
|
+
customRenderFormItem?: (config: EditableAgGridColumnType<RecordType>, fieldProps: Recordable, editable: boolean, record: RecordType) => any;
|
|
19
|
+
/**
|
|
20
|
+
* 指定值类型(将会用于普通列和可编辑表格的渲染)
|
|
21
|
+
*/
|
|
22
|
+
valueType?: MergedValueType;
|
|
23
|
+
/**
|
|
24
|
+
* 值类型额外配置的参数(支持函数)
|
|
25
|
+
*/
|
|
26
|
+
fieldProps?: FieldPropsType<Extract<MergedValueType, ValueType> extends never ? CommonFieldReturnType : ApTableValueFields[Extract<MergedValueType, ValueType>], RecordType, ExtraValueType, ValueType, MergedValueType>;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义渲染,添加了`editable`以及`originalNode`
|
|
29
|
+
* @param opt
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
customRender?: (opt: {
|
|
33
|
+
value: any;
|
|
34
|
+
text: any;
|
|
35
|
+
record: RecordType;
|
|
36
|
+
index: number;
|
|
37
|
+
renderIndex: number;
|
|
38
|
+
column: AgGridColumnType<RecordType>;
|
|
39
|
+
editable?: boolean;
|
|
40
|
+
originalNode?: VNode;
|
|
41
|
+
}) => any;
|
|
42
|
+
/**
|
|
43
|
+
* 是否渲染必填标记(只渲染标记不生成校验规则)
|
|
44
|
+
*/
|
|
45
|
+
markRequired?: boolean;
|
|
46
|
+
} : never;
|
|
47
|
+
export type EditableAgGridProps<RecordType = any> = Omit<AgGridProps<RecordType>, 'columns' | 'dataSource' | 'onChange' | 'card' | 'request' | 'params' | 'defaultData' | 'searchForm' | 'beforeSearchSubmit' | 'manual' | 'size'> & {
|
|
48
|
+
/**
|
|
49
|
+
* 列配置
|
|
50
|
+
*/
|
|
51
|
+
columns?: EditableAgGridColumnType<RecordType, any>[];
|
|
52
|
+
/**
|
|
53
|
+
* 表格数据v-model
|
|
54
|
+
*/
|
|
55
|
+
value?: RecordType[];
|
|
56
|
+
/**
|
|
57
|
+
* 表格数据默认值(只生效一次,如果是异步数据,请使用`v-model`)
|
|
58
|
+
*/
|
|
59
|
+
defaultValue?: RecordType[];
|
|
60
|
+
'onUpdate:value'?: (value: RecordType[]) => void;
|
|
61
|
+
/**
|
|
62
|
+
* 数据修改时触发onChange(也包含数据的删除)
|
|
63
|
+
* @param value
|
|
64
|
+
* @returns
|
|
65
|
+
*/
|
|
66
|
+
onChange?: (value: RecordType[]) => void;
|
|
67
|
+
/**
|
|
68
|
+
* 表格最大行数,超过行后将无法调用相关API新增
|
|
69
|
+
*/
|
|
70
|
+
maxLength?: number;
|
|
71
|
+
/**
|
|
72
|
+
* 设置可编辑表格的名字,如果不传,将会使用默认值
|
|
73
|
+
*/
|
|
74
|
+
name?: any;
|
|
75
|
+
/**
|
|
76
|
+
* 当字段值变更的时候触发(注意,向表单设置值并不会触发)
|
|
77
|
+
* @returns
|
|
78
|
+
*/
|
|
79
|
+
onFieldChange?: (rowIndex: number, fieldName: DataIndex, newValue: any) => void;
|
|
80
|
+
};
|
|
81
|
+
export type EditableAgGridExpose<RecordType = any, ModelType = RecordType[]> = Omit<EditableTableExpose<ModelType, RecordType>, 'scrollTo' | 'remove'> & {
|
|
82
|
+
scrollTo: (index: number | 'end') => void;
|
|
83
|
+
remove: (data: RecordType | RecordType[]) => void;
|
|
84
|
+
};
|
|
85
|
+
export type EditableAgGridFormItemExpose<RecordType = any, ModelType = RecordType[]> = Omit<EditableAgGridExpose<RecordType, ModelType>, 'resetFields' | 'validateFields'>;
|
|
86
|
+
export type EditableAgGridFormItemProps<RecordType = any> = Omit<EditableAgGridProps<RecordType>, 'name' | 'value' | 'onUpdate:value'> & {
|
|
87
|
+
label?: string;
|
|
88
|
+
/**
|
|
89
|
+
* FormItem的name
|
|
90
|
+
*/
|
|
91
|
+
name: NamePath;
|
|
92
|
+
/**
|
|
93
|
+
* 额外的表单项配置属性
|
|
94
|
+
*/
|
|
95
|
+
formItem?: Partial<Omit<ApFormItemProps, 'name' | 'label'>>;
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ag-grid/editable.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ag-grid/editable.less';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Recordable } from '../../type';
|
|
2
|
+
import { AgGridProps } from '../interface';
|
|
3
|
+
export declare function getRowKey(record: any, index: number | undefined, rowKey: AgGridProps['rowKey']): any;
|
|
4
|
+
export declare function arrayToObject(array: any[], rowKey: AgGridProps['rowKey']): Recordable;
|
|
5
|
+
export declare function updateArrItem(arr: any[], rowKey: AgGridProps['rowKey'], obj: Recordable): any[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isString as a } from "lodash-unified";
|
|
2
|
+
function c(r, n, t) {
|
|
3
|
+
if (t)
|
|
4
|
+
return a(t) ? r[t] : t(r, n);
|
|
5
|
+
}
|
|
6
|
+
function s(r, n) {
|
|
7
|
+
const t = {};
|
|
8
|
+
return r.forEach((e, u) => {
|
|
9
|
+
const o = c(e, u, n);
|
|
10
|
+
t[o] = e;
|
|
11
|
+
}), t;
|
|
12
|
+
}
|
|
13
|
+
function g(r, n, t) {
|
|
14
|
+
return r.map((e, u) => {
|
|
15
|
+
const o = c(e, u, n);
|
|
16
|
+
return t[o] ?? e;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
s as arrayToObject,
|
|
21
|
+
c as getRowKey,
|
|
22
|
+
g as updateArrItem
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref, ShallowRef } from 'vue';
|
|
2
|
+
import { ApFormInternalInstance, ApFormExpose } from '../../ap-form';
|
|
3
|
+
import { EditableAgGridProps } from '../editable/interface';
|
|
4
|
+
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
5
|
+
export declare const useEditableApi: <RecordType>(props: EditableAgGridProps<RecordType>, formApi: Ref<ApFormExpose | undefined> | ApFormInternalInstance | undefined, tableData: Ref<RecordType[]>, updateTableData?: (newData: RecordType[]) => void) => {
|
|
6
|
+
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
7
|
+
addMultiple: (list: number | Partial<RecordType>[], insetIn?: "prefix" | "suffix") => void;
|
|
8
|
+
remove: (data: RecordType | RecordType[]) => void;
|
|
9
|
+
removeByKey: (key: Key | Key[]) => void;
|
|
10
|
+
getRowData: (index: number) => RecordType;
|
|
11
|
+
getRowsData: () => RecordType[];
|
|
12
|
+
setRowData: (index: string | number, payload: any, merge?: boolean) => void;
|
|
13
|
+
clear: () => void;
|
|
14
|
+
refreshRowIds: ShallowRef<string[], string[]>;
|
|
15
|
+
};
|