@aplus-frontend/ui 0.1.29 → 0.1.30
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 +78 -76
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +84 -89
- package/es/src/ap-table/utils.mjs +42 -42
- package/es/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +4 -0
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +97 -0
- package/es/src/business/ap-action-button/index.css +6 -0
- package/es/src/business/ap-action-button/interface.d.ts +6 -0
- package/es/src/business/ap-action-button/interface.mjs +1 -0
- package/es/src/business/index.d.ts +265 -0
- package/es/src/business/index.mjs +25 -21
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +41 -41
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +29 -29
- package/es/src/index.mjs +209 -207
- package/es/src/theme/ap-action-button/ap-action-button.css +6 -0
- package/es/src/work-order-modal/index.mjs +4 -3
- package/es/src/work-order-modal/interfaces.d.ts +3 -0
- package/es/src/work-order-modal/interfaces.mjs +6 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
- package/lib/src/business/ap-action-button/ApActionButton.vue.js +1 -0
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +1 -0
- package/lib/src/business/ap-action-button/index.css +6 -0
- package/lib/src/business/ap-action-button/interface.d.ts +6 -0
- package/lib/src/business/ap-action-button/interface.js +1 -0
- package/lib/src/business/index.d.ts +265 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-action-button/ap-action-button.css +6 -0
- package/lib/src/work-order-modal/index.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +3 -0
- package/lib/src/work-order-modal/interfaces.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { configProviderProps as x } from "./src/config-provider/config-provider-
|
|
|
5
5
|
import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
7
|
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as
|
|
9
|
-
import { ConfigProvider as
|
|
8
|
+
import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as v, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
@@ -24,7 +24,7 @@ import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-f
|
|
|
24
24
|
import { Field as Pe } from "./src/pro-form/index.mjs";
|
|
25
25
|
import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
26
|
import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as Ge } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
28
|
import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
29
|
import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
@@ -49,7 +49,7 @@ import { default as Io } from "./src/pro-table/components/edit-table-header-icon
|
|
|
49
49
|
import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
50
|
import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
51
|
import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
|
|
52
|
-
import { default as
|
|
52
|
+
import { default as Go } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
53
|
import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
@@ -76,7 +76,7 @@ import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
|
|
|
76
76
|
import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
|
|
77
77
|
import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
|
|
78
78
|
import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
|
|
79
|
-
import { default as
|
|
79
|
+
import { default as Gr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
80
|
import { default as Lr } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
81
|
import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
|
|
82
82
|
import { ApActionItem as Er } from "./src/ap-action/index.mjs";
|
|
@@ -88,34 +88,34 @@ import { generateTableList as $r } from "./src/ap-custom-column/utils.mjs";
|
|
|
88
88
|
import { useCacheColumnSetting as qr } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
|
|
89
89
|
import { default as Qr } from "./src/ap-custom-column/custom-column.vue.mjs";
|
|
90
90
|
import { default as _r } from "./src/ap-custom-column/column-select.vue.mjs";
|
|
91
|
-
import { DictCode as ot } from "./src/work-order-modal/interfaces.mjs";
|
|
92
|
-
import { createWorkOrderModal as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { NeedNameKeyDefault as
|
|
98
|
-
import { default as
|
|
99
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
100
|
-
import { default as
|
|
101
|
-
import { CheckCard as
|
|
102
|
-
import { default as
|
|
103
|
-
import { ApModal as
|
|
104
|
-
import { default as
|
|
91
|
+
import { DictCode as ot, langMap as rt } from "./src/work-order-modal/interfaces.mjs";
|
|
92
|
+
import { createWorkOrderModal as at } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
93
|
+
import { default as ft } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
94
|
+
import { default as lt } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
95
|
+
import { default as dt } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
96
|
+
import { default as it } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
97
|
+
import { NeedNameKeyDefault as nt } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
|
+
import { default as ct } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
|
+
import { ApDownLoadNeedNameKeyDefault as Ft } from "./src/ap-download/interface.mjs";
|
|
100
|
+
import { default as bt } from "./src/ap-download/ap-download.vue.mjs";
|
|
101
|
+
import { CheckCard as It } from "./src/check-card/index.mjs";
|
|
102
|
+
import { default as Pt } from "./src/check-card/group.vue.mjs";
|
|
103
|
+
import { ApModal as Dt } from "./src/ap-modal/index.mjs";
|
|
104
|
+
import { default as Rt } from "./src/ap-list/index.vue.mjs";
|
|
105
105
|
import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
106
|
-
import { useTableRefresh as
|
|
107
|
-
import { default as
|
|
108
|
-
import { useTableModal as
|
|
109
|
-
import { useTableSelectModal as
|
|
110
|
-
import { ApAttachment as
|
|
111
|
-
import { ApTransformDataHelper as
|
|
112
|
-
import { useTablePaging as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import { useMessage as
|
|
118
|
-
import { useControllableValue as
|
|
106
|
+
import { useTableRefresh as Lt } from "./src/business/hooks/useTableRefresh.mjs";
|
|
107
|
+
import { default as kt } from "./src/business/ap-table-modal/index.mjs";
|
|
108
|
+
import { useTableModal as yt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
109
|
+
import { useTableSelectModal as Kt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
110
|
+
import { ApActionButton as Yt, ApAttachment as Ht, ApBatchAction as Ot, ApBatchActionGroup as Wt, ApExpandAlert as zt, ApExportGroup as Ut, ApImage as Vt, ApInputRadio as $t, ApLabel as jt, ApLabelGroup as qt, ApLadder as Jt, ApSelectLayout as Qt, ApStatus as Zt, ApStatusGroup as _t, ApTitle as ea } from "./src/business/index.mjs";
|
|
111
|
+
import { ApTransformDataHelper as ra } from "./src/utils/ap-trans-data/index.mjs";
|
|
112
|
+
import { useTablePaging as aa } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
113
|
+
import { default as fa } from "./src/ap-table/ap-table.vue.mjs";
|
|
114
|
+
import { default as la } from "./src/editable-table/index.vue.mjs";
|
|
115
|
+
import { default as da } from "./src/editable-table/form-item.vue.mjs";
|
|
116
|
+
import { default as ia } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
117
|
+
import { useMessage as na } from "./src/hooks/useMessage.mjs";
|
|
118
|
+
import { useControllableValue as ca } from "./src/hooks/useControllableValue.mjs";
|
|
119
119
|
const p = {
|
|
120
120
|
install: (r) => {
|
|
121
121
|
for (const t in o) {
|
|
@@ -126,21 +126,22 @@ const p = {
|
|
|
126
126
|
};
|
|
127
127
|
export {
|
|
128
128
|
k as APConfigProvider,
|
|
129
|
+
Yt as ApActionButton,
|
|
129
130
|
Ur as ApActionGroup,
|
|
130
131
|
Er as ApActionItem,
|
|
131
132
|
Wr as ApActionItemDropdown,
|
|
132
133
|
Xr as ApActionItemModal,
|
|
133
134
|
Hr as ApActionItemPopconfirm,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Ht as ApAttachment,
|
|
136
|
+
Ot as ApBatchAction,
|
|
137
|
+
Wt as ApBatchActionGroup,
|
|
137
138
|
Qr as ApCustomColumn,
|
|
138
139
|
_r as ApCustomSelect,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
ia as ApDescriptions,
|
|
141
|
+
Ft as ApDownLoadNeedNameKeyDefault,
|
|
142
|
+
bt as ApDownload,
|
|
143
|
+
zt as ApExpandAlert,
|
|
144
|
+
Ut as ApExportGroup,
|
|
144
145
|
fr as ApField,
|
|
145
146
|
dr as ApFieldCheckbox,
|
|
146
147
|
ir as ApFieldDate,
|
|
@@ -149,7 +150,7 @@ export {
|
|
|
149
150
|
Dr as ApFieldPassword,
|
|
150
151
|
cr as ApFieldRadio,
|
|
151
152
|
Lr as ApFieldRate,
|
|
152
|
-
|
|
153
|
+
Gr as ApFieldSegmented,
|
|
153
154
|
Pr as ApFieldSelect,
|
|
154
155
|
Rr as ApFieldSlider,
|
|
155
156
|
Fr as ApFieldSwitch,
|
|
@@ -166,32 +167,32 @@ export {
|
|
|
166
167
|
Yo as ApFormItemSelect,
|
|
167
168
|
Oo as ApFormItemSwitch,
|
|
168
169
|
Ro as ApFormItemText,
|
|
169
|
-
|
|
170
|
+
Go as ApFormItemTextArea,
|
|
170
171
|
Vo as ApFormItemTextPassword,
|
|
171
172
|
er as ApFormList,
|
|
172
173
|
ar as ApFormModalForm,
|
|
173
174
|
rr as ApFormSearchForm,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
175
|
+
Vt as ApImage,
|
|
176
|
+
it as ApInfoLayout,
|
|
177
|
+
$t as ApInputRadio,
|
|
178
|
+
jt as ApLabel,
|
|
179
|
+
qt as ApLabelGroup,
|
|
180
|
+
Jt as ApLadder,
|
|
181
|
+
Rt as ApList,
|
|
182
|
+
Dt as ApModal,
|
|
183
|
+
Qt as ApSelectLayout,
|
|
184
|
+
Zt as ApStatus,
|
|
185
|
+
_t as ApStatusGroup,
|
|
186
|
+
fa as ApTable,
|
|
187
|
+
kt as ApTableModal,
|
|
188
|
+
lt as ApTag,
|
|
189
|
+
dt as ApTagGroup,
|
|
190
|
+
ea as ApTitle,
|
|
191
|
+
ra as ApTransformDataHelper,
|
|
192
|
+
ct as ApUpload,
|
|
192
193
|
De as ApiCascader,
|
|
193
194
|
Re as ApiRadioGroup,
|
|
194
|
-
|
|
195
|
+
Ge as ApiSelect,
|
|
195
196
|
Le as ApiTransfer,
|
|
196
197
|
ke as ApiTree,
|
|
197
198
|
Ye as ApiTreeSelect,
|
|
@@ -200,11 +201,11 @@ export {
|
|
|
200
201
|
$ as BasicArrow,
|
|
201
202
|
j as BasicHelp,
|
|
202
203
|
q as BasicTitle,
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
It as CheckCard,
|
|
205
|
+
Pt as CheckCardGroup,
|
|
205
206
|
K as CollapseContainer,
|
|
206
207
|
Q as CollapseTransition,
|
|
207
|
-
|
|
208
|
+
v as ConfigProvider,
|
|
208
209
|
xo as CountdownButton,
|
|
209
210
|
io as CountdownInput,
|
|
210
211
|
mo as CropperAvatar,
|
|
@@ -213,8 +214,8 @@ export {
|
|
|
213
214
|
ot as DictCode,
|
|
214
215
|
co as Dropdown,
|
|
215
216
|
Io as EditTableHeaderIcon,
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
la as EditableTable,
|
|
218
|
+
da as EditableTableFormItem,
|
|
218
219
|
_ as ExpandTransition,
|
|
219
220
|
ee as ExpandXTransition,
|
|
220
221
|
oe as FadeTransition,
|
|
@@ -222,7 +223,7 @@ export {
|
|
|
222
223
|
l as Icon,
|
|
223
224
|
H as IconPicker,
|
|
224
225
|
Ve as ModalButton,
|
|
225
|
-
|
|
226
|
+
nt as NeedNameKeyDefault,
|
|
226
227
|
je as PopConfirmButton,
|
|
227
228
|
Ke as ProForm,
|
|
228
229
|
Fo as ProTable,
|
|
@@ -245,7 +246,7 @@ export {
|
|
|
245
246
|
s as SvgIcon,
|
|
246
247
|
bo as TableAction,
|
|
247
248
|
Po as TableImg,
|
|
248
|
-
|
|
249
|
+
ft as WorkOrderModal,
|
|
249
250
|
kr as adminToken,
|
|
250
251
|
Nr as aplusToken,
|
|
251
252
|
b as buildLocaleContext,
|
|
@@ -253,7 +254,7 @@ export {
|
|
|
253
254
|
u as configProviderContextKey,
|
|
254
255
|
x as configProviderProps,
|
|
255
256
|
no as createPrompt,
|
|
256
|
-
|
|
257
|
+
at as createWorkOrderModal,
|
|
257
258
|
p as default,
|
|
258
259
|
D as defaultNamespace,
|
|
259
260
|
U as en,
|
|
@@ -262,6 +263,7 @@ export {
|
|
|
262
263
|
Se as isComponentFormSchema,
|
|
263
264
|
Ie as isSlotFormSchema,
|
|
264
265
|
c as keysOf,
|
|
266
|
+
rt as langMap,
|
|
265
267
|
I as localeContextKey,
|
|
266
268
|
M as namespaceContextKey,
|
|
267
269
|
T as provideGlobalConfig,
|
|
@@ -269,22 +271,22 @@ export {
|
|
|
269
271
|
g as translate,
|
|
270
272
|
qr as useCacheColumnSetting,
|
|
271
273
|
Te as useComponentRegister,
|
|
272
|
-
|
|
274
|
+
ca as useControllableValue,
|
|
273
275
|
ue as useDescription,
|
|
274
276
|
Ce as useForm,
|
|
275
277
|
R as useGetDerivedNamespace,
|
|
276
278
|
F as useGlobalConfig,
|
|
277
279
|
P as useLocale,
|
|
278
|
-
|
|
280
|
+
na as useMessage,
|
|
279
281
|
ro as useModal,
|
|
280
282
|
eo as useModalContext,
|
|
281
283
|
to as useModalInner,
|
|
282
|
-
|
|
284
|
+
B as useNamespace,
|
|
283
285
|
Gt as usePageListApTable,
|
|
284
286
|
Do as useTable,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
yt as useTableModal,
|
|
288
|
+
aa as useTablePaging,
|
|
289
|
+
Lt as useTableRefresh,
|
|
290
|
+
Kt as useTableSelectModal,
|
|
289
291
|
W as zhCn
|
|
290
292
|
};
|
|
@@ -897,7 +897,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
897
897
|
validateTrigger: string;
|
|
898
898
|
}>, {
|
|
899
899
|
resetFields: () => Promise<void>;
|
|
900
|
-
clearValidate: (name?: NamePath) => void;
|
|
900
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
901
901
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
902
902
|
[key: string]: any;
|
|
903
903
|
}> | undefined;
|
|
@@ -428,7 +428,7 @@ declare function __VLS_template(): {
|
|
|
428
428
|
};
|
|
429
429
|
}>>, {
|
|
430
430
|
resetFields: () => Promise<void>;
|
|
431
|
-
clearValidate: (name?: NamePath) => void;
|
|
431
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
432
432
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
433
433
|
[key: string]: any;
|
|
434
434
|
}> | undefined;
|
|
@@ -620,7 +620,7 @@ declare function __VLS_template(): {
|
|
|
620
620
|
};
|
|
621
621
|
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
|
|
622
622
|
resetFields: () => Promise<void>;
|
|
623
|
-
clearValidate: (name?: NamePath) => void;
|
|
623
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
624
624
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
625
625
|
[key: string]: any;
|
|
626
626
|
}> | undefined;
|
|
@@ -423,7 +423,7 @@ declare function __VLS_template(): {
|
|
|
423
423
|
};
|
|
424
424
|
}>>, {
|
|
425
425
|
resetFields: () => Promise<void>;
|
|
426
|
-
clearValidate: (name?: NamePath) => void;
|
|
426
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
427
427
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
428
428
|
[key: string]: any;
|
|
429
429
|
}> | undefined;
|
|
@@ -615,7 +615,7 @@ declare function __VLS_template(): {
|
|
|
615
615
|
};
|
|
616
616
|
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
|
|
617
617
|
resetFields: () => Promise<void>;
|
|
618
|
-
clearValidate: (name?: NamePath) => void;
|
|
618
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
619
619
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
620
620
|
[key: string]: any;
|
|
621
621
|
}> | undefined;
|
|
@@ -415,7 +415,7 @@ const Ca = /* @__PURE__ */ Re({
|
|
|
415
415
|
records: W.value.dataSource
|
|
416
416
|
})]),
|
|
417
417
|
_: 2
|
|
418
|
-
}, [Q(l(_)(S, ["title", "searchFormExtra", "headerCell"]), (t, r) => ({
|
|
418
|
+
}, [Q(l(_)(S, ["title", "searchFormExtra", "headerCell", "summary"]), (t, r) => ({
|
|
419
419
|
name: r,
|
|
420
420
|
fn: b((d) => [w(e.$slots, r, Be(xe(d || {})))])
|
|
421
421
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Flex as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
|
|
2
|
+
import { Flex as G, Button as H, Divider as J } from "ant-design-vue";
|
|
3
|
+
import N from "vuedraggable";
|
|
4
4
|
import "../sortable/index.vue.mjs";
|
|
5
5
|
import "../../../../config-provider/index.mjs";
|
|
6
6
|
import "../../style/setting/sorter.css";
|
|
7
|
-
import { useProvideSorterMethods as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
import { useLocale as
|
|
7
|
+
import { useProvideSorterMethods as K } from "./context.mjs";
|
|
8
|
+
import { useNamespace as P } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { useLocale as Q } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import R from "../sortable/index.vue2.mjs";
|
|
11
|
-
const
|
|
11
|
+
const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, ce = /* @__PURE__ */ A({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
14
|
value: {},
|
|
@@ -16,11 +16,11 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:value"],
|
|
18
18
|
setup(V, { emit: B }) {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const i = L([]), s = L([]), r = L([]), { b: u } = P("column-setting-sorter"), { t: h } = Q(), x = V, S = B;
|
|
20
|
+
K({
|
|
21
21
|
fixedToLeft: I,
|
|
22
|
-
fixedToRight:
|
|
23
|
-
unFixed:
|
|
22
|
+
fixedToRight: M,
|
|
23
|
+
unFixed: U
|
|
24
24
|
});
|
|
25
25
|
function F(e, t) {
|
|
26
26
|
const o = t[0].findIndex(
|
|
@@ -35,8 +35,8 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
|
|
|
35
35
|
t[1].splice(a, 1);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const o = [...n(
|
|
38
|
+
function _(e, t) {
|
|
39
|
+
const o = [...n(i.value)], a = [...n(r.value)], l = [...n(s.value)], w = {
|
|
40
40
|
left: {
|
|
41
41
|
target: o,
|
|
42
42
|
search: [l, a]
|
|
@@ -50,154 +50,149 @@ const Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, fe = /* @__PURE__ */ O({
|
|
|
50
50
|
search: [o, a]
|
|
51
51
|
}
|
|
52
52
|
}[t];
|
|
53
|
-
return t === "right" ?
|
|
53
|
+
return t === "right" ? w.target.unshift(e) : w.target.push(e), F(
|
|
54
54
|
e,
|
|
55
|
-
|
|
55
|
+
w.search
|
|
56
56
|
), [...o, ...l, ...a];
|
|
57
57
|
}
|
|
58
58
|
function I(e) {
|
|
59
|
-
const t =
|
|
60
|
-
|
|
59
|
+
const t = _(e, "left");
|
|
60
|
+
f(t);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const t =
|
|
64
|
-
|
|
62
|
+
function M(e) {
|
|
63
|
+
const t = _(e, "right");
|
|
64
|
+
f(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const t =
|
|
68
|
-
|
|
66
|
+
function U(e) {
|
|
67
|
+
const t = _(e, "normal");
|
|
68
|
+
f(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function C(e) {
|
|
71
71
|
var t;
|
|
72
72
|
return (t = e.children) != null && t.length ? e.children.some((o) => o.show) : e.show;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function T(e, t) {
|
|
75
75
|
e.value ? e.value.push(t) : e.value = [t];
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const z = O(() => {
|
|
78
78
|
let e = 0;
|
|
79
79
|
function t(o) {
|
|
80
80
|
var a;
|
|
81
81
|
for (const l of o)
|
|
82
82
|
(a = l.children) != null && a.length ? t(l.children) : l.show && (e += 1);
|
|
83
83
|
}
|
|
84
|
-
return t(
|
|
84
|
+
return t(x.value), e;
|
|
85
85
|
});
|
|
86
|
+
function D(e) {
|
|
87
|
+
f([...e, ...n(s), ...n(r)]);
|
|
88
|
+
}
|
|
86
89
|
function E(e) {
|
|
87
|
-
|
|
90
|
+
f([...n(i), ...e, ...n(r)]);
|
|
88
91
|
}
|
|
89
92
|
function j(e) {
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
function A(e) {
|
|
93
|
-
m([...n(u), ...n(r), ...e]);
|
|
93
|
+
f([...n(i), ...n(s), ...e]);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function f(e) {
|
|
96
96
|
S("update:value", e);
|
|
97
97
|
}
|
|
98
|
-
return
|
|
99
|
-
() =>
|
|
98
|
+
return $(
|
|
99
|
+
() => x.value,
|
|
100
100
|
(e) => {
|
|
101
101
|
if (e) {
|
|
102
|
-
|
|
102
|
+
i.value = [], s.value = [], r.value = [];
|
|
103
103
|
for (const t of e)
|
|
104
|
-
t.fixed === "left" ?
|
|
104
|
+
t.fixed === "left" ? T(i, t) : t.fixed === "right" ? T(r, t) : T(s, t);
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
{ immediate: !0 }
|
|
108
|
-
),
|
|
109
|
-
|
|
110
|
-
}), (e, t) => (i(), _("div", {
|
|
111
|
-
class: f(n(d)())
|
|
108
|
+
), (e, t) => (c(), y("div", {
|
|
109
|
+
class: d(n(u)())
|
|
112
110
|
}, [
|
|
113
|
-
|
|
114
|
-
class:
|
|
111
|
+
m(n(G), {
|
|
112
|
+
class: d(n(u)("header")),
|
|
115
113
|
align: "center",
|
|
116
114
|
justify: "space-between"
|
|
117
115
|
}, {
|
|
118
|
-
default:
|
|
116
|
+
default: v(() => [
|
|
119
117
|
g("span", {
|
|
120
|
-
class:
|
|
121
|
-
}, k(n(
|
|
122
|
-
|
|
118
|
+
class: d(n(u)("header-title"))
|
|
119
|
+
}, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
|
|
120
|
+
m(n(H), {
|
|
123
121
|
type: "link",
|
|
124
122
|
size: "small",
|
|
125
123
|
style: { padding: "0" },
|
|
126
|
-
onClick:
|
|
124
|
+
onClick: x.onReset
|
|
127
125
|
}, {
|
|
128
|
-
default:
|
|
129
|
-
|
|
126
|
+
default: v(() => [
|
|
127
|
+
q(k(n(h)("ap.apTable.setting.reset")), 1)
|
|
130
128
|
]),
|
|
131
129
|
_: 1
|
|
132
130
|
}, 8, ["onClick"])
|
|
133
131
|
]),
|
|
134
132
|
_: 1
|
|
135
133
|
}, 8, ["class"]),
|
|
136
|
-
|
|
134
|
+
m(n(J), { style: { margin: "0px" } }),
|
|
137
135
|
g("div", {
|
|
138
|
-
class:
|
|
136
|
+
class: d(n(u)("content"))
|
|
139
137
|
}, [
|
|
140
|
-
|
|
138
|
+
i.value.length ? (c(), y("div", W, [
|
|
141
139
|
g("span", {
|
|
142
|
-
class:
|
|
143
|
-
}, k(n(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
"onUpdate:modelValue": E,
|
|
140
|
+
class: d(n(u)("section-title"))
|
|
141
|
+
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
142
|
+
m(n(N), {
|
|
143
|
+
"model-value": i.value,
|
|
144
|
+
"onUpdate:modelValue": D,
|
|
148
145
|
"item-key": "key"
|
|
149
146
|
}, {
|
|
150
|
-
item:
|
|
151
|
-
|
|
147
|
+
item: v(({ element: o }) => [
|
|
148
|
+
C(o) ? (c(), b(R, {
|
|
152
149
|
key: 0,
|
|
153
150
|
value: o
|
|
154
|
-
}, null, 8, ["value"])) :
|
|
151
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
155
152
|
]),
|
|
156
153
|
_: 1
|
|
157
|
-
}, 8, ["model-value"])
|
|
158
|
-
])) :
|
|
159
|
-
|
|
154
|
+
}, 8, ["model-value"])
|
|
155
|
+
])) : p("", !0),
|
|
156
|
+
s.value.length ? (c(), y("div", X, [
|
|
160
157
|
g("span", {
|
|
161
|
-
class:
|
|
162
|
-
}, k(n(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
"onUpdate:modelValue": j,
|
|
158
|
+
class: d(n(u)("section-title"))
|
|
159
|
+
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
160
|
+
m(n(N), {
|
|
161
|
+
"model-value": s.value,
|
|
162
|
+
"onUpdate:modelValue": E,
|
|
167
163
|
"item-key": "key"
|
|
168
164
|
}, {
|
|
169
|
-
item:
|
|
170
|
-
|
|
165
|
+
item: v(({ element: o }) => [
|
|
166
|
+
C(o) ? (c(), b(R, {
|
|
171
167
|
key: 0,
|
|
172
168
|
value: o
|
|
173
|
-
}, null, 8, ["value"])) :
|
|
169
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
174
170
|
]),
|
|
175
171
|
_: 1
|
|
176
|
-
}, 8, ["model-value"])
|
|
177
|
-
])) :
|
|
178
|
-
|
|
172
|
+
}, 8, ["model-value"])
|
|
173
|
+
])) : p("", !0),
|
|
174
|
+
r.value.length ? (c(), y("div", Y, [
|
|
179
175
|
g("span", {
|
|
180
|
-
class:
|
|
181
|
-
}, k(n(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
"onUpdate:modelValue": A,
|
|
176
|
+
class: d(n(u)("section-title"))
|
|
177
|
+
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
178
|
+
m(n(N), {
|
|
179
|
+
"model-value": r.value,
|
|
180
|
+
"onUpdate:modelValue": j,
|
|
186
181
|
"item-key": "key"
|
|
187
182
|
}, {
|
|
188
|
-
item:
|
|
189
|
-
|
|
183
|
+
item: v(({ element: o }) => [
|
|
184
|
+
C(o) ? (c(), b(R, {
|
|
190
185
|
key: 0,
|
|
191
186
|
value: o
|
|
192
|
-
}, null, 8, ["value"])) :
|
|
187
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
193
188
|
]),
|
|
194
189
|
_: 1
|
|
195
|
-
}, 8, ["model-value"])
|
|
196
|
-
])) :
|
|
190
|
+
}, 8, ["model-value"])
|
|
191
|
+
])) : p("", !0)
|
|
197
192
|
], 2)
|
|
198
193
|
], 2));
|
|
199
194
|
}
|
|
200
195
|
});
|
|
201
196
|
export {
|
|
202
|
-
|
|
197
|
+
ce as default
|
|
203
198
|
};
|