@aplus-frontend/ui 0.2.11 → 0.2.13
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 +41 -39
- package/es/src/ap-list/index.vue.d.ts +1 -0
- package/es/src/ap-list/index.vue.mjs +85 -79
- package/es/src/ap-list/interface.d.ts +7 -0
- package/es/src/ap-table/ap-table.vue2.mjs +64 -65
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +20 -0
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.mjs +4 -0
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +82 -0
- package/es/src/ap-table/hooks/use-table-column-state.mjs +84 -75
- package/es/src/business/ap-image/ApImage.vue.d.ts +39 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +89 -39
- package/es/src/business/ap-image/hooks/useOss.mjs +35 -26
- package/es/src/business/ap-image/index.d.ts +41 -1
- package/es/src/business/ap-image/interface.d.ts +1 -0
- package/es/src/business/ap-image/style/css.d.ts +0 -1
- package/es/src/business/ap-image/style/css.js +1 -1
- package/es/src/business/ap-image/style/index.d.ts +0 -1
- package/es/src/business/ap-image/style/index.js +1 -1
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +30 -30
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +50 -0
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +227 -0
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue2.mjs +4 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/css.d.ts +0 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +0 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
- package/es/src/business/ap-upload-file/hook/useInjectContext.d.ts +4 -0
- package/es/src/business/ap-upload-file/hook/useInjectContext.mjs +9 -0
- package/es/src/business/ap-upload-file/hook/useOss.d.ts +8 -0
- package/es/src/business/ap-upload-file/hook/useOss.mjs +30 -0
- package/es/src/business/ap-upload-file/hook/useProps.d.ts +12 -0
- package/es/src/business/ap-upload-file/hook/useProps.mjs +28 -0
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +3 -0
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +27 -0
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +3 -0
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +18 -0
- package/es/src/business/ap-upload-file/index.d.ts +3 -0
- package/es/src/business/ap-upload-file/index.mjs +2 -0
- package/es/src/business/ap-upload-file/interface.d.ts +29 -0
- package/es/src/business/ap-upload-file/interface.mjs +1 -0
- package/es/src/business/ap-upload-file/utils/accept.d.ts +16 -0
- package/es/src/business/ap-upload-file/utils/accept.mjs +55 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +5 -0
- package/es/src/business/ap-upload-file/utils/fileList.mjs +16 -0
- package/es/src/business/ap-upload-file/utils/upload.d.ts +10 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +62 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +43 -42
- package/es/src/config-provider/config-provider.d.ts +8 -0
- package/es/src/config-provider/css-var.d.ts +8 -0
- package/es/src/config-provider/css-var.mjs +25 -9
- package/es/src/config-provider/index.d.ts +48 -0
- package/es/src/index.mjs +33 -31
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/path-map.mjs +2 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +7 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +20 -0
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.js +1 -0
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -0
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue.d.ts +39 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/hooks/useOss.js +1 -1
- package/lib/src/business/ap-image/index.d.ts +41 -1
- package/lib/src/business/ap-image/interface.d.ts +1 -0
- package/lib/src/business/ap-image/style/css.d.ts +0 -1
- package/lib/src/business/ap-image/style/css.js +1 -1
- package/lib/src/business/ap-image/style/index.d.ts +0 -1
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +50 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue2.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/css.d.ts +0 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +0 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useInjectContext.d.ts +4 -0
- package/lib/src/business/ap-upload-file/hook/useInjectContext.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useOss.d.ts +8 -0
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useProps.d.ts +12 -0
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -0
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -0
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -0
- package/lib/src/business/ap-upload-file/index.d.ts +3 -0
- package/lib/src/business/ap-upload-file/index.js +1 -0
- package/lib/src/business/ap-upload-file/interface.d.ts +29 -0
- package/lib/src/business/ap-upload-file/interface.js +1 -0
- package/lib/src/business/ap-upload-file/utils/accept.d.ts +16 -0
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +5 -0
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -0
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +10 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +8 -0
- package/lib/src/config-provider/css-var.d.ts +8 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +48 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +2 -2
package/es/index.mjs
CHANGED
|
@@ -4,15 +4,15 @@ import "./src/hooks/index.mjs";
|
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { configProviderContextKey as u } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as i, provideGlobalConfig as n, useGlobalConfig as c } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as b, buildTranslator as T, localeContextKey as I, translate as
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as T, localeContextKey as I, translate as g, useLocale as C } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as S, namespaceContextKey as h, useGetDerivedNamespace as G, useNamespace as y } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as P, 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 { ApFormItemText as R } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as E } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as K } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
14
|
+
import { default as U } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
|
+
import { default as H } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
16
16
|
import { default as $ } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
17
17
|
import { default as q } from "./src/ap-form/items/select/index.vue.mjs";
|
|
18
18
|
import { default as J } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
@@ -29,7 +29,7 @@ import { default as ie } from "./src/ap-form/set/index.vue.mjs";
|
|
|
29
29
|
import { default as ce } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
30
|
import { ApField as be } from "./src/ap-field/index.mjs";
|
|
31
31
|
import { ApFieldText as Ie } from "./src/ap-field/text/index.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as Ce } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
33
33
|
import { default as Se } from "./src/ap-field/date/index.vue.mjs";
|
|
34
34
|
import { default as Ge } from "./src/ap-field/number/index.vue.mjs";
|
|
35
35
|
import { default as Ne } from "./src/ap-field/radio/index.vue.mjs";
|
|
@@ -38,8 +38,8 @@ import { default as ke } from "./src/ap-field/text-area/index.vue.mjs";
|
|
|
38
38
|
import { default as Re } from "./src/ap-field/date-range/index.vue.mjs";
|
|
39
39
|
import { default as Ee } from "./src/ap-field/select/index.vue.mjs";
|
|
40
40
|
import { default as Ke } from "./src/ap-field/text/password.vue.mjs";
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
41
|
+
import { default as Ue } from "./src/ap-field/slider/index.vue.mjs";
|
|
42
|
+
import { default as He } from "./src/ap-field/segmented/index.vue.mjs";
|
|
43
43
|
import { default as $e } from "./src/ap-field/rate/index.vue.mjs";
|
|
44
44
|
import { adminToken as qe, aplusToken as ze } from "./src/design-token/index.mjs";
|
|
45
45
|
import { ApActionItem as Qe } from "./src/ap-action/index.mjs";
|
|
@@ -54,7 +54,7 @@ import { default as Ao } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
|
54
54
|
import { default as no } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
55
55
|
import { default as Fo } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
56
56
|
import { NeedNameKeyDefault as To } from "./src/ap-upload/apUploadTypes.mjs";
|
|
57
|
-
import { default as
|
|
57
|
+
import { default as go } from "./src/ap-upload/apUpload.vue.mjs";
|
|
58
58
|
import { ApDownLoadNeedNameKeyDefault as Do } from "./src/ap-download/interface.mjs";
|
|
59
59
|
import { default as ho } from "./src/ap-download/ap-download.vue.mjs";
|
|
60
60
|
import { CheckCard as yo } from "./src/check-card/index.mjs";
|
|
@@ -64,7 +64,7 @@ import { default as wo } from "./src/ap-list/index.vue.mjs";
|
|
|
64
64
|
import { default as vo } from "./src/ap-button/ap-button.vue.mjs";
|
|
65
65
|
import { default as Bo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
66
66
|
import { ApTransformDataHelper as Oo } from "./src/utils/ap-trans-data/index.mjs";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as Wo } from "./src/business/ap-table-modal/index.mjs";
|
|
68
68
|
import { useTableModal as Vo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
69
69
|
import { useTableSelectModal as jo } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
70
70
|
import { ApAttachment as zo } from "./src/business/ap-attachment/index.mjs";
|
|
@@ -81,24 +81,25 @@ import { ApInputRadio as Ar } from "./src/business/ap-input-radio/index.mjs";
|
|
|
81
81
|
import { ApLabel as nr, ApLabelGroup as cr } from "./src/business/ap-label/index.mjs";
|
|
82
82
|
import { locales as br } from "./src/business/ap-ladder/interface.mjs";
|
|
83
83
|
import { ApLadder as Ir } from "./src/business/ap-ladder/index.mjs";
|
|
84
|
-
import { ApSelectLayout as
|
|
84
|
+
import { ApSelectLayout as Cr } from "./src/business/ap-select-layout/index.mjs";
|
|
85
85
|
import { ApStatus as Sr, ApStatusGroup as hr } from "./src/business/ap-status/index.mjs";
|
|
86
86
|
import { ApTitle as yr } from "./src/business/ap-title/index.mjs";
|
|
87
87
|
import { usePageListApTable as Pr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
88
88
|
import { useTableRefresh as Mr } from "./src/business/hooks/useTableRefresh.mjs";
|
|
89
89
|
import { computedRecords as wr, flattenColumns as Rr, formatDataIndex as vr, formatNumber as Er } from "./src/business/ap-summary/utils.mjs";
|
|
90
90
|
import { ApSummary as Kr } from "./src/business/ap-summary/index.mjs";
|
|
91
|
-
import { ApNeedNameKeyDefault as
|
|
92
|
-
import { ApAppendix as
|
|
91
|
+
import { ApNeedNameKeyDefault as Ur } from "./src/business/ap-appendix/interface.mjs";
|
|
92
|
+
import { ApAppendix as Hr } from "./src/business/ap-appendix/index.mjs";
|
|
93
93
|
import { ApExtensionSelect as $r, ApGroupSearch as jr, ApPopoverSelect as qr } from "./src/business/ap-group-search/index.mjs";
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import { default as et } from "./src/editable-table/
|
|
98
|
-
import { default as rt } from "./src/
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
94
|
+
import { default as Jr } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
95
|
+
import { useTablePaging as Xr } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
96
|
+
import { ApTable as Zr } from "./src/ap-table/index.mjs";
|
|
97
|
+
import { default as et } from "./src/editable-table/index.vue.mjs";
|
|
98
|
+
import { default as rt } from "./src/editable-table/form-item.vue.mjs";
|
|
99
|
+
import { default as pt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
100
|
+
import { ApScrollBar as ft } from "./src/ap-scroll-bar/index.mjs";
|
|
101
|
+
import { useMessage as lt } from "./src/hooks/useMessage.mjs";
|
|
102
|
+
import { useControllableValue as dt } from "./src/hooks/useControllableValue.mjs";
|
|
102
103
|
const a = {
|
|
103
104
|
install: (r) => {
|
|
104
105
|
for (const t in o) {
|
|
@@ -115,14 +116,14 @@ export {
|
|
|
115
116
|
oo as ApActionItemDropdown,
|
|
116
117
|
Ye as ApActionItemModal,
|
|
117
118
|
_e as ApActionItemPopconfirm,
|
|
118
|
-
|
|
119
|
+
Hr as ApAppendix,
|
|
119
120
|
zo as ApAttachment,
|
|
120
121
|
Qo as ApBatchAction,
|
|
121
122
|
Yo as ApBatchActionGroup,
|
|
122
123
|
vo as ApButton,
|
|
123
124
|
_o as ApButtonGroup,
|
|
124
125
|
or as ApCard,
|
|
125
|
-
|
|
126
|
+
pt as ApDescriptions,
|
|
126
127
|
Do as ApDownLoadNeedNameKeyDefault,
|
|
127
128
|
ho as ApDownload,
|
|
128
129
|
tr as ApExpandAlert,
|
|
@@ -130,16 +131,16 @@ export {
|
|
|
130
131
|
ar as ApExportGroupActionType,
|
|
131
132
|
$r as ApExtensionSelect,
|
|
132
133
|
be as ApField,
|
|
133
|
-
|
|
134
|
+
Ce as ApFieldCheckbox,
|
|
134
135
|
Se as ApFieldDate,
|
|
135
136
|
Re as ApFieldDateRange,
|
|
136
137
|
Ge as ApFieldNumber,
|
|
137
138
|
Ke as ApFieldPassword,
|
|
138
139
|
Ne as ApFieldRadio,
|
|
139
140
|
$e as ApFieldRate,
|
|
140
|
-
|
|
141
|
+
He as ApFieldSegmented,
|
|
141
142
|
Ee as ApFieldSelect,
|
|
142
|
-
|
|
143
|
+
Ue as ApFieldSlider,
|
|
143
144
|
Le as ApFieldSwitch,
|
|
144
145
|
Ie as ApFieldText,
|
|
145
146
|
ke as ApFieldTextArea,
|
|
@@ -148,8 +149,8 @@ export {
|
|
|
148
149
|
ce as ApFormDrawerForm,
|
|
149
150
|
re as ApFormItem,
|
|
150
151
|
X as ApFormItemCheckbox,
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
U as ApFormItemDate,
|
|
153
|
+
H as ApFormItemDateRange,
|
|
153
154
|
pe as ApFormItemGroup,
|
|
154
155
|
K as ApFormItemNumber,
|
|
155
156
|
$ as ApFormItemRadio,
|
|
@@ -171,26 +172,27 @@ export {
|
|
|
171
172
|
Ir as ApLadder,
|
|
172
173
|
wo as ApList,
|
|
173
174
|
Mo as ApModal,
|
|
174
|
-
|
|
175
|
+
Ur as ApNeedNameKeyDefault,
|
|
175
176
|
qr as ApPopoverSelect,
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
ft as ApScrollBar,
|
|
178
|
+
Cr as ApSelectLayout,
|
|
178
179
|
Sr as ApStatus,
|
|
179
180
|
hr as ApStatusGroup,
|
|
180
181
|
Kr as ApSummary,
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
Zr as ApTable,
|
|
183
|
+
Wo as ApTableModal,
|
|
183
184
|
Ao as ApTag,
|
|
184
185
|
no as ApTagGroup,
|
|
185
186
|
yr as ApTitle,
|
|
186
187
|
Oo as ApTransformDataHelper,
|
|
187
|
-
|
|
188
|
+
go as ApUpload,
|
|
189
|
+
Jr as ApUploadSingle,
|
|
188
190
|
yo as CheckCard,
|
|
189
191
|
Po as CheckCardGroup,
|
|
190
192
|
P as ConfigProvider,
|
|
191
193
|
ao as DictCode,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
+
et as EditableTable,
|
|
195
|
+
rt as EditableTableFormItem,
|
|
194
196
|
To as NeedNameKeyDefault,
|
|
195
197
|
so as WorkOrderModal,
|
|
196
198
|
qe as adminToken,
|
|
@@ -215,16 +217,16 @@ export {
|
|
|
215
217
|
h as namespaceContextKey,
|
|
216
218
|
l as pathMap,
|
|
217
219
|
n as provideGlobalConfig,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
g as translate,
|
|
221
|
+
dt as useControllableValue,
|
|
220
222
|
G as useGetDerivedNamespace,
|
|
221
223
|
c as useGlobalConfig,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
+
C as useLocale,
|
|
225
|
+
lt as useMessage,
|
|
224
226
|
y as useNamespace,
|
|
225
227
|
Pr as usePageListApTable,
|
|
226
228
|
Vo as useTableModal,
|
|
227
|
-
|
|
229
|
+
Xr as useTablePaging,
|
|
228
230
|
Mr as useTableRefresh,
|
|
229
231
|
jo as useTableSelectModal
|
|
230
232
|
};
|
|
@@ -10,6 +10,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
10
10
|
refresh: () => void;
|
|
11
11
|
refreshByDelete: (n: number) => void;
|
|
12
12
|
scrollToFirstRow: (selector?: string) => void;
|
|
13
|
+
getSearchFormValuesIfSetted: (transform?: boolean) => Partial<any>;
|
|
13
14
|
}>): void;
|
|
14
15
|
attrs: any;
|
|
15
16
|
slots: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Empty as
|
|
1
|
+
import { defineComponent as M, ref as W, unref as t, computed as l, watch as j, openBlock as s, createBlock as A, normalizeClass as u, withCtx as G, createElementVNode as U, normalizeStyle as D, renderSlot as f, createVNode as k, createElementBlock as g, Fragment as H, renderList as J, mergeProps as K, createCommentVNode as Q } from "vue";
|
|
2
|
+
import { Empty as B, Spin as X, Pagination as Y } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-table/index.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { isUndefined as
|
|
6
|
-
import { useOfflineList as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import { useTablePaging as
|
|
9
|
-
const
|
|
5
|
+
import { isUndefined as E, omit as Z } from "lodash-unified";
|
|
6
|
+
import { useOfflineList as x } from "./hooks/use-offline-list.mjs";
|
|
7
|
+
import { useNamespace as ee } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import { useTablePaging as te } from "../ap-table/hooks/use-table-paging.mjs";
|
|
9
|
+
const fe = /* @__PURE__ */ M({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
dataSource: {},
|
|
@@ -22,111 +22,117 @@ const ue = /* @__PURE__ */ F({
|
|
|
22
22
|
containerStyle: {},
|
|
23
23
|
footerWarpperStyle: {}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
formRef:
|
|
28
|
-
submit:
|
|
29
|
-
reset:
|
|
25
|
+
setup(w, { expose: V }) {
|
|
26
|
+
const F = B.PRESENTED_IMAGE_SIMPLE, n = w, { b: p, e: S } = ee("ap-list"), h = W(), {
|
|
27
|
+
formRef: y,
|
|
28
|
+
submit: v,
|
|
29
|
+
reset: b,
|
|
30
30
|
handleTableChange: L,
|
|
31
|
-
data:
|
|
32
|
-
refresh:
|
|
33
|
-
refreshByDelete:
|
|
34
|
-
tableProps:
|
|
35
|
-
} =
|
|
31
|
+
data: c,
|
|
32
|
+
refresh: T,
|
|
33
|
+
refreshByDelete: z,
|
|
34
|
+
tableProps: C
|
|
35
|
+
} = te({
|
|
36
36
|
async request(a) {
|
|
37
37
|
var o;
|
|
38
|
-
const
|
|
38
|
+
const e = await ((o = n.request) == null ? void 0 : o.call(n, a));
|
|
39
39
|
return {
|
|
40
|
-
data: (
|
|
41
|
-
total: (
|
|
40
|
+
data: (e == null ? void 0 : e.data) || [],
|
|
41
|
+
total: (e == null ? void 0 : e.total) || 0
|
|
42
42
|
};
|
|
43
43
|
},
|
|
44
|
-
defaultParams:
|
|
45
|
-
defaultData:
|
|
46
|
-
manual:
|
|
47
|
-
defaultCurrent:
|
|
48
|
-
defaultPageSize:
|
|
49
|
-
formatParams:
|
|
50
|
-
}),
|
|
51
|
-
pagination:
|
|
52
|
-
dataSource:
|
|
53
|
-
onChange:
|
|
54
|
-
} =
|
|
55
|
-
function
|
|
56
|
-
if (
|
|
57
|
-
|
|
44
|
+
defaultParams: n.params,
|
|
45
|
+
defaultData: n.defaultData,
|
|
46
|
+
manual: n.manual,
|
|
47
|
+
defaultCurrent: n.pagination ? n.pagination.defaultCurrent : void 0,
|
|
48
|
+
defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
|
|
49
|
+
formatParams: n.beforeSearchSubmit
|
|
50
|
+
}), I = { form: y }, {
|
|
51
|
+
pagination: P,
|
|
52
|
+
dataSource: N,
|
|
53
|
+
onChange: R
|
|
54
|
+
} = x(n);
|
|
55
|
+
function q(a, e) {
|
|
56
|
+
if (t(r)) {
|
|
57
|
+
R(a, e);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
L(
|
|
61
|
-
{ current: a, pageSize:
|
|
61
|
+
{ current: a, pageSize: e },
|
|
62
62
|
{},
|
|
63
63
|
{},
|
|
64
64
|
{ currentDataSource: [], action: "paginate" }
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
var a,
|
|
69
|
-
return
|
|
70
|
-
}), r =
|
|
71
|
-
|
|
72
|
-
() =>
|
|
67
|
+
const d = l(() => t(r) ? t(N) : t(c).records), m = l(() => E(n.loading) ? t(c).loading : n.loading), O = l(() => {
|
|
68
|
+
var a, e;
|
|
69
|
+
return n.pagination === !1 ? !1 : ((a = n.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : t(r) ? (((e = n.dataSource) == null ? void 0 : e.length) || 0) > t(P).pageSize : t(c).total > t(C).pagination.pageSize;
|
|
70
|
+
}), r = l(() => !E(n.dataSource));
|
|
71
|
+
j(
|
|
72
|
+
() => t(m),
|
|
73
73
|
(a) => {
|
|
74
|
-
var
|
|
75
|
-
(
|
|
74
|
+
var e;
|
|
75
|
+
(e = n.onLoadingChange) == null || e.call(n, a);
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
function _(a) {
|
|
79
|
-
var
|
|
80
|
-
(o = (
|
|
79
|
+
var e, o;
|
|
80
|
+
(o = (e = h.value) == null ? void 0 : e.querySelector(a || ":first-child")) == null || o.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
function $(a = !1) {
|
|
83
|
+
var i;
|
|
84
|
+
const e = (i = y.value) == null ? void 0 : i.apForm, o = a ? e == null ? void 0 : e.getFieldsValueTransformed : e == null ? void 0 : e.getFieldsValue;
|
|
85
|
+
return (o == null ? void 0 : o()) || {};
|
|
86
|
+
}
|
|
87
|
+
return V({
|
|
88
|
+
submit: () => v(),
|
|
89
|
+
reset: () => b(),
|
|
90
|
+
refresh: () => T(),
|
|
91
|
+
refreshByDelete: (a) => z(a),
|
|
92
|
+
scrollToFirstRow: _,
|
|
93
|
+
getSearchFormValuesIfSetted: $
|
|
94
|
+
}), (a, e) => (s(), A(t(X), {
|
|
95
|
+
spinning: m.value,
|
|
96
|
+
class: u(t(p)("spin"))
|
|
91
97
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
class:
|
|
95
|
-
style:
|
|
98
|
+
default: G(() => [
|
|
99
|
+
U("div", {
|
|
100
|
+
class: u(t(p)()),
|
|
101
|
+
style: D(a.containerStyle)
|
|
96
102
|
}, [
|
|
97
|
-
|
|
98
|
-
formIns:
|
|
99
|
-
submit:
|
|
100
|
-
reset:
|
|
103
|
+
f(a.$slots, "header", {
|
|
104
|
+
formIns: I,
|
|
105
|
+
submit: t(v),
|
|
106
|
+
reset: t(b)
|
|
101
107
|
}),
|
|
102
|
-
|
|
108
|
+
d.value.length === 0 ? f(a.$slots, "empty", {
|
|
103
109
|
key: 0,
|
|
104
|
-
loading:
|
|
110
|
+
loading: m.value
|
|
105
111
|
}, () => [
|
|
106
|
-
|
|
107
|
-
]) : (
|
|
112
|
+
k(t(B), { image: t(F) }, null, 8, ["image"])
|
|
113
|
+
]) : (s(), g("div", {
|
|
108
114
|
key: 1,
|
|
109
115
|
ref_key: "contentRef",
|
|
110
|
-
ref:
|
|
111
|
-
class:
|
|
116
|
+
ref: h,
|
|
117
|
+
class: u(t(S)("content"))
|
|
112
118
|
}, [
|
|
113
|
-
|
|
114
|
-
(
|
|
119
|
+
f(a.$slots, "renderContent", { dataSource: d.value }, () => [
|
|
120
|
+
(s(!0), g(H, null, J(d.value, (o, i) => f(a.$slots, "renderItem", {
|
|
115
121
|
item: o,
|
|
116
|
-
index:
|
|
122
|
+
index: i
|
|
117
123
|
})), 256))
|
|
118
124
|
])
|
|
119
125
|
], 2)),
|
|
120
|
-
|
|
126
|
+
O.value ? (s(), g("div", {
|
|
121
127
|
key: 2,
|
|
122
|
-
class:
|
|
123
|
-
style:
|
|
128
|
+
class: u(t(S)("footer")),
|
|
129
|
+
style: D(a.footerWarpperStyle)
|
|
124
130
|
}, [
|
|
125
|
-
|
|
126
|
-
r.value ?
|
|
127
|
-
{ onChange:
|
|
131
|
+
k(t(Y), K(
|
|
132
|
+
r.value ? t(P) : t(Z)(t(C).pagination, ["showTotal"]),
|
|
133
|
+
{ onChange: q }
|
|
128
134
|
), null, 16)
|
|
129
|
-
], 6)) :
|
|
135
|
+
], 6)) : Q("", !0)
|
|
130
136
|
], 6)
|
|
131
137
|
]),
|
|
132
138
|
_: 3
|
|
@@ -134,5 +140,5 @@ const ue = /* @__PURE__ */ F({
|
|
|
134
140
|
}
|
|
135
141
|
});
|
|
136
142
|
export {
|
|
137
|
-
|
|
143
|
+
fe as default
|
|
138
144
|
};
|
|
@@ -96,4 +96,11 @@ export type ApListExpose = {
|
|
|
96
96
|
* @returns
|
|
97
97
|
*/
|
|
98
98
|
scrollToFirstRow: (selector?: string) => void;
|
|
99
|
+
/**
|
|
100
|
+
* 获取查询表单的值
|
|
101
|
+
* @description 只有在自定义查询表单并且绑定了formRef才能获取到查询表单的值
|
|
102
|
+
* @param transform 是否获取转换后的值,默认为`false`
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
getSearchFormValuesIfSetted: (transform?: boolean) => Recordable;
|
|
99
106
|
};
|