@aplus-frontend/ui 0.4.3 → 0.4.5
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 +170 -162
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +52 -56
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -35
- package/es/src/business/ap-summary/index.d.ts +0 -3
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -4
- package/es/src/business/batch-input-group/form-item.vue.d.ts +9 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +48 -44
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +3 -3
- package/es/src/hooks/index.d.ts +2 -0
- package/es/src/hooks/index.mjs +7 -3
- package/es/src/hooks/useManualRef.d.ts +6 -0
- package/es/src/hooks/useManualRef.mjs +27 -0
- package/es/src/hooks/useThrottleRef.d.ts +2 -0
- package/es/src/hooks/useThrottleRef.mjs +31 -0
- package/es/src/index.d.ts +1 -1
- package/es/src/index.mjs +227 -222
- package/es/src/locale/lang/en.mjs +3 -0
- package/es/src/locale/lang/zh-cn.mjs +3 -0
- package/es/src/path-map.mjs +1 -1
- package/es/src/scroll-bar/hooks/use-track.d.ts +30 -0
- package/es/src/scroll-bar/hooks/use-track.mjs +76 -0
- package/es/src/scroll-bar/index.d.ts +5 -0
- package/es/src/scroll-bar/index.mjs +7 -0
- package/es/src/scroll-bar/index.vue.d.ts +53 -0
- package/es/src/scroll-bar/index.vue.mjs +90 -0
- package/es/src/scroll-bar/index.vue2.mjs +4 -0
- package/es/src/scroll-bar/interface.d.ts +66 -0
- package/es/src/scroll-bar/internal.vue.d.ts +22 -0
- package/es/src/scroll-bar/internal.vue.mjs +132 -0
- package/es/src/scroll-bar/internal.vue2.mjs +4 -0
- package/es/src/scroll-bar/style/css.js +1 -0
- package/es/src/scroll-bar/style/index.js +1 -0
- package/es/src/scroll-bar/utils/index.d.ts +29 -0
- package/es/src/scroll-bar/utils/index.mjs +22 -0
- package/lib/index.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +0 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/index.d.ts +0 -3
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +9 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-namespace.js +1 -1
- package/lib/src/hooks/index.d.ts +2 -0
- package/lib/src/hooks/index.js +1 -1
- package/lib/src/hooks/useManualRef.d.ts +6 -0
- package/lib/src/hooks/useManualRef.js +1 -0
- package/lib/src/hooks/useThrottleRef.d.ts +2 -0
- package/lib/src/hooks/useThrottleRef.js +1 -0
- package/lib/src/index.d.ts +1 -1
- 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/lib/src/scroll-bar/hooks/use-track.d.ts +30 -0
- package/lib/src/scroll-bar/hooks/use-track.js +1 -0
- package/lib/src/scroll-bar/index.d.ts +5 -0
- package/lib/src/scroll-bar/index.js +1 -0
- package/lib/src/scroll-bar/index.vue.d.ts +53 -0
- package/lib/src/scroll-bar/index.vue.js +1 -0
- package/lib/src/scroll-bar/index.vue2.js +1 -0
- package/lib/src/scroll-bar/interface.d.ts +66 -0
- package/lib/src/scroll-bar/internal.vue.d.ts +22 -0
- package/lib/src/scroll-bar/internal.vue.js +1 -0
- package/lib/src/scroll-bar/internal.vue2.js +1 -0
- package/lib/src/scroll-bar/style/css.cjs +1 -0
- package/lib/src/scroll-bar/style/index.cjs +1 -0
- package/lib/src/scroll-bar/utils/index.d.ts +29 -0
- package/lib/src/scroll-bar/utils/index.js +1 -0
- package/package.json +1 -1
- package/theme/index.css +36 -21
- package/theme/index.less +1 -1
- package/theme/scroll-bar/index.css +46 -0
- package/theme/scroll-bar/index.less +62 -0
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +0 -4
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +0 -116
- package/es/src/ap-scroll-bar/index.d.ts +0 -29
- package/es/src/ap-scroll-bar/index.mjs +0 -8
- package/es/src/ap-scroll-bar/interface.d.ts +0 -4
- package/es/src/ap-scroll-bar/style/css.js +0 -1
- package/es/src/ap-scroll-bar/style/index.js +0 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +0 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +0 -1
- package/lib/src/ap-scroll-bar/index.d.ts +0 -29
- package/lib/src/ap-scroll-bar/index.js +0 -1
- package/lib/src/ap-scroll-bar/interface.d.ts +0 -4
- package/lib/src/ap-scroll-bar/style/css.cjs +0 -1
- package/lib/src/ap-scroll-bar/style/index.cjs +0 -1
- /package/es/src/{ap-scroll-bar → scroll-bar}/interface.mjs +0 -0
- /package/es/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
- /package/es/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/interface.js +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
- /package/lib/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
package/es/index.mjs
CHANGED
|
@@ -1,250 +1,258 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as o from "./src/index.mjs";
|
|
2
2
|
import { default as l } from "./src/path-map.mjs";
|
|
3
3
|
import "./src/hooks/index.mjs";
|
|
4
4
|
import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
|
|
5
|
-
import { DEFAULT_NAMESPACE as
|
|
5
|
+
import { DEFAULT_NAMESPACE as s, DEFAULT_UIMODE as A, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as G, namespaceContextKey as
|
|
9
|
-
import { ConfigProvider as N, globalConfigCached as
|
|
10
|
-
import { APConfigProvider as
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as G, namespaceContextKey as M, useGetDerivedNamespace as P, useNamespace as E } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as N, globalConfigCached as R } from "./src/config-provider/config-provider.mjs";
|
|
10
|
+
import { APConfigProvider as w } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { ApFormItemText as v } from "./src/ap-form/items/text/index.mjs";
|
|
12
12
|
import { default as K } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
13
13
|
import { default as O } from "./src/ap-form/items/number/index.vue.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
14
|
+
import { default as W } from "./src/ap-form/items/date/index.vue.mjs";
|
|
15
|
+
import { default as z } 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 Q } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
19
19
|
import { default as Y } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
20
|
-
import { default as
|
|
21
|
-
import { ApForm as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { ApField as
|
|
34
|
-
import { ApFieldText as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { adminToken as
|
|
48
|
-
import { ApActionItem as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { DictCode as
|
|
54
|
-
import { createWorkOrderModal as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { NeedNameKeyDefault as
|
|
60
|
-
import { default as
|
|
61
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
62
|
-
import { default as
|
|
63
|
-
import { CheckCard as
|
|
64
|
-
import { default as
|
|
65
|
-
import { ApModal as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { ApDrawer as
|
|
70
|
-
import { ApTransformDataHelper as
|
|
71
|
-
import { default as
|
|
72
|
-
import { useTableModal as
|
|
73
|
-
import { useTableSelectModal as
|
|
20
|
+
import { default as ee } from "./src/ap-form/items/text/password.vue.mjs";
|
|
21
|
+
import { ApForm as re } from "./src/ap-form/index.mjs";
|
|
22
|
+
import { default as pe } from "./src/ap-form/item/index.vue.mjs";
|
|
23
|
+
import { default as fe } from "./src/ap-form/item-group/index.vue.mjs";
|
|
24
|
+
import { default as le } from "./src/ap-form/list/index.vue.mjs";
|
|
25
|
+
import { default as de } from "./src/ap-form/search-form/index.vue.mjs";
|
|
26
|
+
import { default as se } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
27
|
+
import { default as ne } from "./src/ap-form/dependency/index.vue.mjs";
|
|
28
|
+
import { default as ce } from "./src/ap-form/set/index.vue.mjs";
|
|
29
|
+
import { default as Ie } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
30
|
+
import { default as be } from "./src/ap-form/render/control.vue.mjs";
|
|
31
|
+
import { default as De } from "./src/ap-form/render/item.vue.mjs";
|
|
32
|
+
import { default as Se } from "./src/ap-form/provider/index.vue.mjs";
|
|
33
|
+
import { ApField as Ge } from "./src/ap-field/index.mjs";
|
|
34
|
+
import { ApFieldText as Pe } from "./src/ap-field/text/index.mjs";
|
|
35
|
+
import { default as Le } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
36
|
+
import { default as Re } from "./src/ap-field/date/index.vue.mjs";
|
|
37
|
+
import { default as we } from "./src/ap-field/number/index.vue.mjs";
|
|
38
|
+
import { default as ve } from "./src/ap-field/radio/index.vue.mjs";
|
|
39
|
+
import { default as Ke } from "./src/ap-field/switch/index.vue.mjs";
|
|
40
|
+
import { default as Oe } from "./src/ap-field/text-area/index.vue.mjs";
|
|
41
|
+
import { default as We } from "./src/ap-field/date-range/index.vue.mjs";
|
|
42
|
+
import { default as ze } from "./src/ap-field/select/index.vue.mjs";
|
|
43
|
+
import { default as $e } from "./src/ap-field/text/password.vue.mjs";
|
|
44
|
+
import { default as qe } from "./src/ap-field/slider/index.vue.mjs";
|
|
45
|
+
import { default as Qe } from "./src/ap-field/segmented/index.vue.mjs";
|
|
46
|
+
import { default as Ye } from "./src/ap-field/rate/index.vue.mjs";
|
|
47
|
+
import { adminToken as eo, aplusToken as oo } from "./src/design-token/index.mjs";
|
|
48
|
+
import { ApActionItem as to } from "./src/ap-action/index.mjs";
|
|
49
|
+
import { default as ao } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
50
|
+
import { default as mo } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
51
|
+
import { default as xo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
52
|
+
import { default as so } from "./src/ap-action/group/index.vue.mjs";
|
|
53
|
+
import { DictCode as no, langMap as io } from "./src/work-order-modal/interfaces.mjs";
|
|
54
|
+
import { createWorkOrderModal as Fo } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
55
|
+
import { default as To } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
56
|
+
import { default as Co } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
57
|
+
import { default as go } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
58
|
+
import { default as ho } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
59
|
+
import { NeedNameKeyDefault as Mo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
60
|
+
import { default as Eo } from "./src/ap-upload/apUpload.vue.mjs";
|
|
61
|
+
import { ApDownLoadNeedNameKeyDefault as No } from "./src/ap-download/interface.mjs";
|
|
62
|
+
import { default as yo } from "./src/ap-download/ap-download.vue.mjs";
|
|
63
|
+
import { CheckCard as ko } from "./src/check-card/index.mjs";
|
|
64
|
+
import { default as Bo } from "./src/check-card/group.vue.mjs";
|
|
65
|
+
import { ApModal as Uo } from "./src/ap-modal/index.mjs";
|
|
66
|
+
import { default as Vo } from "./src/ap-list/index.vue.mjs";
|
|
67
|
+
import { default as _o } from "./src/ap-button/ap-button.vue.mjs";
|
|
68
|
+
import { default as Ho } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
69
|
+
import { ApDrawer as jo } from "./src/ap-drawer/index.mjs";
|
|
70
|
+
import { ApTransformDataHelper as Jo } from "./src/utils/ap-trans-data/index.mjs";
|
|
71
|
+
import { default as Xo } from "./src/business/ap-table-modal/index.mjs";
|
|
72
|
+
import { useTableModal as Zo } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
73
|
+
import { useTableSelectModal as or } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
74
74
|
import { ApAttachment as tr } from "./src/business/ap-attachment/index.mjs";
|
|
75
75
|
import { ApBatchAction as ar } from "./src/business/ap-batch-action/index.mjs";
|
|
76
76
|
import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/index.mjs";
|
|
77
77
|
import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
|
|
78
78
|
import { ApCard as ur } from "./src/business/ap-card/index.mjs";
|
|
79
|
-
import { ApExpandAlert as
|
|
79
|
+
import { ApExpandAlert as Ar } from "./src/business/ap-expand-alert/index.mjs";
|
|
80
80
|
import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
|
|
81
81
|
import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
|
|
82
|
-
import { handleExportDownload as
|
|
82
|
+
import { handleExportDownload as Tr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
83
83
|
import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
84
84
|
import { ApImage as gr } from "./src/business/ap-image/index.mjs";
|
|
85
85
|
import { ApInputRadio as hr } from "./src/business/ap-input-radio/index.mjs";
|
|
86
|
-
import { ApLabel as
|
|
87
|
-
import { locales as
|
|
88
|
-
import { ApLadder as
|
|
89
|
-
import { ApSelectLayout as
|
|
86
|
+
import { ApLabel as Mr, ApLabelGroup as Pr } from "./src/business/ap-label/index.mjs";
|
|
87
|
+
import { locales as Lr } from "./src/business/ap-ladder/interface.mjs";
|
|
88
|
+
import { ApLadder as Rr } from "./src/business/ap-ladder/index.mjs";
|
|
89
|
+
import { ApSelectLayout as wr } from "./src/business/ap-select-layout/index.mjs";
|
|
90
90
|
import { ApStatus as vr, ApStatusGroup as Br } from "./src/business/ap-status/index.mjs";
|
|
91
91
|
import { ApTitle as Ur } from "./src/business/ap-title/index.mjs";
|
|
92
|
-
import { usePageListApTable as
|
|
93
|
-
import { useTableRefresh as
|
|
94
|
-
import { computedRecords as
|
|
92
|
+
import { usePageListApTable as Vr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
93
|
+
import { useTableRefresh as _r } from "./src/business/hooks/useTableRefresh.mjs";
|
|
94
|
+
import { computedRecords as Hr, flattenColumns as $r, formatDataIndex as jr, formatNumber as qr } from "./src/business/ap-summary/utils.mjs";
|
|
95
95
|
import { ApSummary as Qr } from "./src/business/ap-summary/index.mjs";
|
|
96
96
|
import { ApNeedNameKeyDefault as Yr } from "./src/business/ap-appendix/interface.mjs";
|
|
97
|
-
import { ApAppendix as
|
|
97
|
+
import { ApAppendix as et } from "./src/business/ap-appendix/index.mjs";
|
|
98
98
|
import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
|
|
99
99
|
import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
100
100
|
import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
101
101
|
import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
102
|
-
import { ApSizeInput as
|
|
102
|
+
import { ApSizeInput as st } from "./src/business/ap-size-input/index.mjs";
|
|
103
103
|
import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
104
104
|
import { ApTable as ct } from "./src/ap-table/index.mjs";
|
|
105
105
|
import { default as It } from "./src/editable-table/index.vue.mjs";
|
|
106
|
-
import { default as
|
|
106
|
+
import { default as bt } from "./src/editable-table/form-item.vue.mjs";
|
|
107
107
|
import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
108
|
+
import { ensureRangeValue as St } from "./src/scroll-bar/utils/index.mjs";
|
|
109
|
+
import { default as Gt } from "./src/scroll-bar/index.vue.mjs";
|
|
110
|
+
import { default as Pt } from "./src/scroll-bar/internal.vue.mjs";
|
|
111
|
+
import { useMessage as Lt } from "./src/hooks/useMessage.mjs";
|
|
112
|
+
import { useControllableValue as Rt } from "./src/hooks/useControllableValue.mjs";
|
|
113
|
+
import { useManualRef as wt } from "./src/hooks/useManualRef.mjs";
|
|
114
|
+
import { useThrottleRef as vt } from "./src/hooks/useThrottleRef.mjs";
|
|
111
115
|
const a = {
|
|
112
116
|
install: (r) => {
|
|
113
|
-
for (const t in
|
|
114
|
-
const
|
|
115
|
-
|
|
117
|
+
for (const t in o) {
|
|
118
|
+
const e = o[t];
|
|
119
|
+
e.install && r.use(e);
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
};
|
|
119
123
|
export {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
w as APConfigProvider,
|
|
125
|
+
Ho as ApActionButton,
|
|
126
|
+
so as ApActionGroup,
|
|
127
|
+
to as ApActionItem,
|
|
128
|
+
xo as ApActionItemDropdown,
|
|
129
|
+
ao as ApActionItemModal,
|
|
130
|
+
mo as ApActionItemPopconfirm,
|
|
131
|
+
et as ApAppendix,
|
|
128
132
|
tr as ApAttachment,
|
|
129
133
|
ar as ApBatchAction,
|
|
130
134
|
mr as ApBatchActionGroup,
|
|
131
|
-
|
|
135
|
+
_o as ApButton,
|
|
132
136
|
xr as ApButtonGroup,
|
|
133
137
|
ur as ApCard,
|
|
134
138
|
Dt as ApDescriptions,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
No as ApDownLoadNeedNameKeyDefault,
|
|
140
|
+
yo as ApDownload,
|
|
141
|
+
jo as ApDrawer,
|
|
142
|
+
Ar as ApExpandAlert,
|
|
139
143
|
Fr as ApExportGroup,
|
|
140
144
|
ir as ApExportGroupActionType,
|
|
141
145
|
rt as ApExtensionSelect,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
146
|
+
Ge as ApField,
|
|
147
|
+
Le as ApFieldCheckbox,
|
|
148
|
+
Re as ApFieldDate,
|
|
149
|
+
We as ApFieldDateRange,
|
|
150
|
+
we as ApFieldNumber,
|
|
151
|
+
$e as ApFieldPassword,
|
|
152
|
+
ve as ApFieldRadio,
|
|
153
|
+
Ye as ApFieldRate,
|
|
154
|
+
Qe as ApFieldSegmented,
|
|
155
|
+
ze as ApFieldSelect,
|
|
156
|
+
qe as ApFieldSlider,
|
|
157
|
+
Ke as ApFieldSwitch,
|
|
158
|
+
Pe as ApFieldText,
|
|
159
|
+
Oe as ApFieldTextArea,
|
|
160
|
+
re as ApForm,
|
|
161
|
+
be as ApFormControlRender,
|
|
162
|
+
ne as ApFormDependency,
|
|
163
|
+
Ie as ApFormDrawerForm,
|
|
164
|
+
pe as ApFormItem,
|
|
161
165
|
dt as ApFormItemBatchInput,
|
|
162
166
|
Y as ApFormItemCheckbox,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
W as ApFormItemDate,
|
|
168
|
+
z as ApFormItemDateRange,
|
|
169
|
+
fe as ApFormItemGroup,
|
|
166
170
|
O as ApFormItemNumber,
|
|
167
171
|
$ as ApFormItemRadio,
|
|
168
|
-
|
|
172
|
+
De as ApFormItemRender,
|
|
169
173
|
q as ApFormItemSelect,
|
|
170
174
|
Q as ApFormItemSwitch,
|
|
171
175
|
v as ApFormItemText,
|
|
172
176
|
K as ApFormItemTextArea,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
ee as ApFormItemTextPassword,
|
|
178
|
+
le as ApFormList,
|
|
179
|
+
se as ApFormModalForm,
|
|
180
|
+
Se as ApFormProvider,
|
|
181
|
+
de as ApFormSearchForm,
|
|
182
|
+
ce as ApFormSet,
|
|
179
183
|
tt as ApGroupSearch,
|
|
180
184
|
gr as ApImage,
|
|
181
|
-
|
|
185
|
+
ho as ApInfoLayout,
|
|
182
186
|
hr as ApInputRadio,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
Mr as ApLabel,
|
|
188
|
+
Pr as ApLabelGroup,
|
|
189
|
+
Rr as ApLadder,
|
|
190
|
+
Vo as ApList,
|
|
191
|
+
Uo as ApModal,
|
|
188
192
|
Yr as ApNeedNameKeyDefault,
|
|
189
193
|
pt as ApPopoverSelect,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
At as ApSizeInput,
|
|
194
|
+
wr as ApSelectLayout,
|
|
195
|
+
st as ApSizeInput,
|
|
193
196
|
vr as ApStatus,
|
|
194
197
|
Br as ApStatusGroup,
|
|
195
198
|
Qr as ApSummary,
|
|
196
199
|
ct as ApTable,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
Xo as ApTableModal,
|
|
201
|
+
Co as ApTag,
|
|
202
|
+
go as ApTagGroup,
|
|
200
203
|
Ur as ApTitle,
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
Jo as ApTransformDataHelper,
|
|
205
|
+
Eo as ApUpload,
|
|
203
206
|
ft as ApUploadSingle,
|
|
204
207
|
lt as BatchInputGroup,
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
ko as CheckCard,
|
|
209
|
+
Bo as CheckCardGroup,
|
|
207
210
|
N as ConfigProvider,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
s as DEFAULT_NAMESPACE,
|
|
212
|
+
A as DEFAULT_UIMODE,
|
|
213
|
+
no as DictCode,
|
|
211
214
|
It as EditableTable,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
bt as EditableTableFormItem,
|
|
216
|
+
Pt as InternalScrollBar,
|
|
217
|
+
Mo as NeedNameKeyDefault,
|
|
218
|
+
Gt as ScrollBar,
|
|
219
|
+
To as WorkOrderModal,
|
|
220
|
+
eo as adminToken,
|
|
221
|
+
oo as aplusToken,
|
|
222
|
+
b as buildLocaleContext,
|
|
218
223
|
C as buildTranslator,
|
|
219
|
-
|
|
224
|
+
Hr as computedRecords,
|
|
220
225
|
n as configProviderContextKey,
|
|
221
226
|
d as configProviderProps,
|
|
222
227
|
Cr as convertExportField,
|
|
223
|
-
|
|
228
|
+
Fo as createWorkOrderModal,
|
|
224
229
|
a as default,
|
|
225
230
|
G as defaultNamespace,
|
|
231
|
+
St as ensureRangeValue,
|
|
226
232
|
$r as flattenColumns,
|
|
227
233
|
jr as formatDataIndex,
|
|
228
234
|
qr as formatNumber,
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
R as globalConfigCached,
|
|
236
|
+
Tr as handleExportDownload,
|
|
231
237
|
c as keysOf,
|
|
232
|
-
|
|
238
|
+
io as langMap,
|
|
233
239
|
D as localeContextKey,
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
Lr as locales,
|
|
241
|
+
M as namespaceContextKey,
|
|
236
242
|
l as pathMap,
|
|
237
243
|
F as provideGlobalConfig,
|
|
238
244
|
g as translate,
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
Rt as useControllableValue,
|
|
246
|
+
P as useGetDerivedNamespace,
|
|
241
247
|
I as useGlobalConfig,
|
|
242
248
|
S as useLocale,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
249
|
+
wt as useManualRef,
|
|
250
|
+
Lt as useMessage,
|
|
251
|
+
E as useNamespace,
|
|
252
|
+
Vr as usePageListApTable,
|
|
253
|
+
Zo as useTableModal,
|
|
247
254
|
nt as useTablePaging,
|
|
248
|
-
|
|
249
|
-
|
|
255
|
+
_r as useTableRefresh,
|
|
256
|
+
or as useTableSelectModal,
|
|
257
|
+
vt as useThrottleRef
|
|
250
258
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as I, ref as d, computed as M, onMounted as O, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as u, Transition as W, withCtx as v, withDirectives as g, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as z, renderList as R, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
3
|
import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { Tooltip as w, TypographyText as J } from "@aplus-frontend/antdv";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const X = ["onClick"], re = /* @__PURE__ */ O({
|
|
6
|
+
import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { ApFieldText as P } from "../../ap-field/text/index.mjs";
|
|
8
|
+
const Q = ["onClick"], ae = /* @__PURE__ */ I({
|
|
10
9
|
__name: "select-layout",
|
|
11
10
|
props: {
|
|
12
11
|
title: {},
|
|
@@ -17,45 +16,42 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
|
|
|
17
16
|
},
|
|
18
17
|
emits: ["onSelect", "afterEnter", "afterLeave"],
|
|
19
18
|
setup(A, { emit: B }) {
|
|
20
|
-
const { b: h, be: y, bem: i } =
|
|
19
|
+
const { b: h, be: y, bem: i } = K("ap-select-layout"), o = A, C = B, S = d(), f = d(o.defaultFold), k = d(!o.defaultFold), T = d(), b = d(), F = d(), c = d(o.defaultValue), L = () => {
|
|
21
20
|
f.value = !f.value, T.value = !1, b.value = !1;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return (l = g.value) == null ? void 0 : l.filter((e) => {
|
|
30
|
-
var r, n;
|
|
31
|
-
return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (n = e == null ? void 0 : e.name) == null ? void 0 : n.includes(c.value);
|
|
21
|
+
}, V = (n) => {
|
|
22
|
+
F.value = n, C("onSelect", n);
|
|
23
|
+
}, U = M(() => {
|
|
24
|
+
var n;
|
|
25
|
+
return (n = S.value) == null ? void 0 : n.filter((e) => {
|
|
26
|
+
var r, l;
|
|
27
|
+
return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (l = e == null ? void 0 : e.name) == null ? void 0 : l.includes(c.value);
|
|
32
28
|
});
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
29
|
+
}), q = (n) => {
|
|
30
|
+
k.value = !0, C("afterEnter", n);
|
|
31
|
+
}, D = (n) => {
|
|
32
|
+
k.value = !1, C("afterLeave", n);
|
|
37
33
|
};
|
|
38
|
-
return
|
|
39
|
-
o.request().then((
|
|
34
|
+
return O(() => {
|
|
35
|
+
o.request().then((n) => {
|
|
40
36
|
var r;
|
|
41
|
-
|
|
42
|
-
let e = (r =
|
|
43
|
-
(
|
|
37
|
+
S.value = n;
|
|
38
|
+
let e = (r = S.value) == null ? void 0 : r.filter(
|
|
39
|
+
(l) => l.name.includes(c.value)
|
|
44
40
|
);
|
|
45
|
-
|
|
41
|
+
V(e == null ? void 0 : e[0]);
|
|
46
42
|
});
|
|
47
|
-
}), (
|
|
43
|
+
}), (n, e) => {
|
|
48
44
|
var r;
|
|
49
45
|
return p(), m("div", {
|
|
50
46
|
class: a(t(h)())
|
|
51
47
|
}, [
|
|
52
|
-
|
|
48
|
+
u(W, {
|
|
53
49
|
mode: "out-in",
|
|
54
|
-
onAfterEnter:
|
|
55
|
-
onAfterLeave:
|
|
50
|
+
onAfterEnter: q,
|
|
51
|
+
onAfterLeave: D
|
|
56
52
|
}, {
|
|
57
53
|
default: v(() => [
|
|
58
|
-
|
|
54
|
+
g(s("div", {
|
|
59
55
|
class: a(t(h)("side"))
|
|
60
56
|
}, [
|
|
61
57
|
s("div", {
|
|
@@ -65,15 +61,15 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
|
|
|
65
61
|
s("div", {
|
|
66
62
|
class: a(t(i)("side", "header", "imgWrap"))
|
|
67
63
|
}, [
|
|
68
|
-
|
|
64
|
+
u(t(w), {
|
|
69
65
|
open: T.value,
|
|
70
|
-
"onUpdate:open": e[0] || (e[0] = (
|
|
66
|
+
"onUpdate:open": e[0] || (e[0] = (l) => T.value = l)
|
|
71
67
|
}, {
|
|
72
|
-
title: v(() => e[
|
|
68
|
+
title: v(() => e[3] || (e[3] = [
|
|
73
69
|
$("收起")
|
|
74
70
|
])),
|
|
75
71
|
default: v(() => [
|
|
76
|
-
|
|
72
|
+
u(t(G), { onClick: L })
|
|
77
73
|
]),
|
|
78
74
|
_: 1
|
|
79
75
|
}, 8, ["open"])
|
|
@@ -85,28 +81,28 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
|
|
|
85
81
|
s("div", {
|
|
86
82
|
class: a(t(i)("side", "body", "search"))
|
|
87
83
|
}, [
|
|
88
|
-
|
|
89
|
-
placeholder: "请输入",
|
|
84
|
+
u(t(P), {
|
|
90
85
|
value: c.value,
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
"onUpdate:value": e[1] || (e[1] = (l) => c.value = l),
|
|
87
|
+
placeholder: "请输入"
|
|
88
|
+
}, null, 8, ["value"])
|
|
93
89
|
], 2),
|
|
94
90
|
s("div", {
|
|
95
91
|
class: a(t(i)("side", "body", "scroll"))
|
|
96
92
|
}, [
|
|
97
|
-
(p(!0), m(
|
|
98
|
-
key:
|
|
99
|
-
class: a(`${t(i)("side", "body", "scroll-item")} ${
|
|
100
|
-
onClick: (
|
|
93
|
+
(p(!0), m(z, null, R(U.value, (l) => g((p(), m("div", {
|
|
94
|
+
key: l.value,
|
|
95
|
+
class: a(`${t(i)("side", "body", "scroll-item")} ${F.value === l ? "active" : ""}`),
|
|
96
|
+
onClick: (X) => V(l)
|
|
101
97
|
}, [
|
|
102
|
-
x(
|
|
103
|
-
|
|
104
|
-
ellipsis: { tooltip:
|
|
105
|
-
content: `${
|
|
98
|
+
x(n.$slots, "itemRender", { item: l }, () => [
|
|
99
|
+
u(t(J), {
|
|
100
|
+
ellipsis: { tooltip: l.name },
|
|
101
|
+
content: `${l.name}`
|
|
106
102
|
}, null, 8, ["ellipsis", "content"])
|
|
107
103
|
])
|
|
108
|
-
], 10,
|
|
109
|
-
[N,
|
|
104
|
+
], 10, Q)), [
|
|
105
|
+
[N, k.value]
|
|
110
106
|
])), 128))
|
|
111
107
|
], 2)
|
|
112
108
|
], 2)
|
|
@@ -126,29 +122,29 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
|
|
|
126
122
|
key: 0,
|
|
127
123
|
class: a(t(i)("content", "header", "imgWrap"))
|
|
128
124
|
}, [
|
|
129
|
-
|
|
125
|
+
u(t(w), {
|
|
130
126
|
open: b.value,
|
|
131
|
-
"onUpdate:open": e[
|
|
127
|
+
"onUpdate:open": e[2] || (e[2] = (l) => b.value = l)
|
|
132
128
|
}, {
|
|
133
|
-
title: v(() => e[
|
|
129
|
+
title: v(() => e[4] || (e[4] = [
|
|
134
130
|
$("展开")
|
|
135
131
|
])),
|
|
136
132
|
default: v(() => [
|
|
137
|
-
|
|
133
|
+
u(t(H), { onClick: L })
|
|
138
134
|
]),
|
|
139
135
|
_: 1
|
|
140
136
|
}, 8, ["open"])
|
|
141
137
|
], 2)) : j("", !0),
|
|
142
138
|
s("div", {
|
|
143
139
|
class: a(t(i)("content", "header", "title"))
|
|
144
|
-
}, E((r =
|
|
140
|
+
}, E((r = F.value) == null ? void 0 : r.name), 3)
|
|
145
141
|
], 2),
|
|
146
|
-
x(
|
|
142
|
+
x(n.$slots, "default")
|
|
147
143
|
], 2)
|
|
148
144
|
], 2);
|
|
149
145
|
};
|
|
150
146
|
}
|
|
151
147
|
});
|
|
152
148
|
export {
|
|
153
|
-
|
|
149
|
+
ae as default
|
|
154
150
|
};
|
|
@@ -2,7 +2,6 @@ import { ApSummaryProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApSummaryProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApSummaryProps> & Readonly<{}>, {
|
|
4
4
|
size: "middle" | "small";
|
|
5
|
-
summaryTitle: string;
|
|
6
5
|
hasSelect: boolean;
|
|
7
6
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
8
7
|
export default _default;
|