@aplus-frontend/ui 0.4.3 → 0.4.4
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 +158 -152
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -4
- 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 +231 -228
- 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 +4 -0
- package/es/src/scroll-bar/index.mjs +3 -0
- package/es/src/scroll-bar/index.vue.d.ts +52 -0
- package/es/src/scroll-bar/index.vue.mjs +77 -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 +22 -0
- package/es/src/scroll-bar/utils/index.mjs +17 -0
- package/lib/index.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.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/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 +4 -0
- package/lib/src/scroll-bar/index.js +1 -0
- package/lib/src/scroll-bar/index.vue.d.ts +52 -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 +22 -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/src/index.mjs
CHANGED
|
@@ -1,243 +1,246 @@
|
|
|
1
|
-
import { APConfigProvider as
|
|
2
|
-
import { ApForm as
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { adminToken as
|
|
5
|
-
import { ApActionItem as
|
|
1
|
+
import { APConfigProvider as s } from "./config-provider/index.mjs";
|
|
2
|
+
import { ApForm as n } from "./ap-form/index.mjs";
|
|
3
|
+
import { ApField as F } from "./ap-field/index.mjs";
|
|
4
|
+
import { adminToken as T, aplusToken as b } from "./design-token/index.mjs";
|
|
5
|
+
import { ApActionItem as C } from "./ap-action/index.mjs";
|
|
6
6
|
import "./work-order-modal/index.mjs";
|
|
7
7
|
import "./ap-tag/index.mjs";
|
|
8
8
|
import "./ap-info-layout/index.mjs";
|
|
9
9
|
import "./ap-upload/index.mjs";
|
|
10
10
|
import "./ap-download/index.mjs";
|
|
11
|
-
import { CheckCard as
|
|
12
|
-
import { ApModal as
|
|
11
|
+
import { CheckCard as g } from "./check-card/index.mjs";
|
|
12
|
+
import { ApModal as G } from "./ap-modal/index.mjs";
|
|
13
13
|
import "./ap-list/index.mjs";
|
|
14
14
|
import "./ap-button/index.mjs";
|
|
15
|
-
import { ApDrawer as
|
|
15
|
+
import { ApDrawer as E } from "./ap-drawer/index.mjs";
|
|
16
16
|
import "./business/index.mjs";
|
|
17
|
-
import { ApTable as
|
|
17
|
+
import { ApTable as N } from "./ap-table/index.mjs";
|
|
18
18
|
import "./editable-table/index.mjs";
|
|
19
19
|
import "./ap-descriptions/index.mjs";
|
|
20
|
-
import
|
|
21
|
-
import { configProviderProps as
|
|
22
|
-
import { DEFAULT_NAMESPACE as
|
|
23
|
-
import { keysOf as
|
|
24
|
-
import { buildLocaleContext as
|
|
25
|
-
import { defaultNamespace as
|
|
26
|
-
import { ConfigProvider as
|
|
27
|
-
import { ApFormItemText as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default 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 { default as
|
|
48
|
-
import { ApFieldText as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
20
|
+
import "./scroll-bar/index.mjs";
|
|
21
|
+
import { configProviderProps as M } from "./config-provider/config-provider-props.mjs";
|
|
22
|
+
import { DEFAULT_NAMESPACE as R, DEFAULT_UIMODE as k, configProviderContextKey as v } from "./config-provider/constants.mjs";
|
|
23
|
+
import { keysOf as K, provideGlobalConfig as U, useGlobalConfig as O } from "./config-provider/hooks/use-global-config.mjs";
|
|
24
|
+
import { buildLocaleContext as _, buildTranslator as z, localeContextKey as H, translate as j, useLocale as q } from "./config-provider/hooks/use-locale.mjs";
|
|
25
|
+
import { defaultNamespace as Q, namespaceContextKey as V, useGetDerivedNamespace as X, useNamespace as Y } from "./config-provider/hooks/use-namespace.mjs";
|
|
26
|
+
import { ConfigProvider as $, globalConfigCached as oo } from "./config-provider/config-provider.mjs";
|
|
27
|
+
import { ApFormItemText as ro } from "./ap-form/items/text/index.mjs";
|
|
28
|
+
import { default as po } from "./ap-form/items/text-area/index.vue.mjs";
|
|
29
|
+
import { default as mo } from "./ap-form/items/number/index.vue.mjs";
|
|
30
|
+
import { default as lo } from "./ap-form/items/date/index.vue.mjs";
|
|
31
|
+
import { default as Ao } from "./ap-form/items/date-range/index.vue.mjs";
|
|
32
|
+
import { default as so } from "./ap-form/items/radio/index.vue.mjs";
|
|
33
|
+
import { default as no } from "./ap-form/items/select/index.vue.mjs";
|
|
34
|
+
import { default as Fo } from "./ap-form/items/switch/index.vue.mjs";
|
|
35
|
+
import { default as To } from "./ap-form/items/checkbox/index.vue.mjs";
|
|
36
|
+
import { default as Do } from "./ap-form/items/text/password.vue.mjs";
|
|
37
|
+
import { default as So } from "./ap-form/item/index.vue.mjs";
|
|
38
|
+
import { default as ho } from "./ap-form/item-group/index.vue.mjs";
|
|
39
|
+
import { default as Po } from "./ap-form/list/index.vue.mjs";
|
|
40
|
+
import { default as Lo } from "./ap-form/search-form/index.vue.mjs";
|
|
41
|
+
import { default as yo } from "./ap-form/modal-form/index.vue.mjs";
|
|
42
|
+
import { default as wo } from "./ap-form/dependency/index.vue.mjs";
|
|
43
|
+
import { default as ko } from "./ap-form/set/index.vue.mjs";
|
|
44
|
+
import { default as Bo } from "./ap-form/drawer-form/index.vue.mjs";
|
|
45
|
+
import { default as Uo } from "./ap-form/render/control.vue.mjs";
|
|
46
|
+
import { default as Wo } from "./ap-form/render/item.vue.mjs";
|
|
47
|
+
import { default as zo } from "./ap-form/provider/index.vue.mjs";
|
|
48
|
+
import { ApFieldText as jo } from "./ap-field/text/index.mjs";
|
|
49
|
+
import { default as Jo } from "./ap-field/checkbox/index.vue.mjs";
|
|
50
|
+
import { default as Vo } from "./ap-field/date/index.vue.mjs";
|
|
51
|
+
import { default as Yo } from "./ap-field/number/index.vue.mjs";
|
|
52
|
+
import { default as $o } from "./ap-field/radio/index.vue.mjs";
|
|
53
|
+
import { default as ee } from "./ap-field/switch/index.vue.mjs";
|
|
54
|
+
import { default as te } from "./ap-field/text-area/index.vue.mjs";
|
|
55
|
+
import { default as ae } from "./ap-field/date-range/index.vue.mjs";
|
|
56
|
+
import { default as fe } from "./ap-field/select/index.vue.mjs";
|
|
57
57
|
import { default as de } from "./ap-field/text/password.vue.mjs";
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { DictCode as
|
|
66
|
-
import { createWorkOrderModal as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { NeedNameKeyDefault as
|
|
72
|
-
import { default as
|
|
73
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { ApTransformDataHelper as
|
|
80
|
-
import { default as
|
|
81
|
-
import { useTableModal as
|
|
82
|
-
import { useTableSelectModal as
|
|
83
|
-
import { ApAttachment as
|
|
84
|
-
import { ApBatchAction as
|
|
85
|
-
import { ApBatchActionGroup as
|
|
86
|
-
import { ApButtonGroup as
|
|
87
|
-
import { ApCard as
|
|
88
|
-
import { ApExpandAlert as
|
|
89
|
-
import { ApExportGroupActionType as
|
|
90
|
-
import { ApExportGroup as
|
|
91
|
-
import { handleExportDownload as
|
|
92
|
-
import { convertExportField as
|
|
93
|
-
import { ApImage as
|
|
94
|
-
import { ApInputRadio as
|
|
95
|
-
import { ApLabel as
|
|
96
|
-
import { locales as
|
|
97
|
-
import { ApLadder as
|
|
98
|
-
import { ApSelectLayout as
|
|
99
|
-
import { ApStatus as
|
|
100
|
-
import { ApTitle as
|
|
101
|
-
import { usePageListApTable as
|
|
102
|
-
import { useTableRefresh as
|
|
103
|
-
import { computedRecords as
|
|
104
|
-
import { ApSummary as
|
|
105
|
-
import { ApNeedNameKeyDefault as
|
|
106
|
-
import { ApAppendix as
|
|
107
|
-
import { ApExtensionSelect as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { ApSizeInput as
|
|
112
|
-
import { useTablePaging as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
58
|
+
import { default as Ae } from "./ap-field/slider/index.vue.mjs";
|
|
59
|
+
import { default as se } from "./ap-field/segmented/index.vue.mjs";
|
|
60
|
+
import { default as ne } from "./ap-field/rate/index.vue.mjs";
|
|
61
|
+
import { default as Fe } from "./ap-action/item-modal/index.vue.mjs";
|
|
62
|
+
import { default as Te } from "./ap-action/item-popconfirm/index.vue.mjs";
|
|
63
|
+
import { default as De } from "./ap-action/item-dropdown/index.vue.mjs";
|
|
64
|
+
import { default as Se } from "./ap-action/group/index.vue.mjs";
|
|
65
|
+
import { DictCode as he, langMap as Ge } from "./work-order-modal/interfaces.mjs";
|
|
66
|
+
import { createWorkOrderModal as Ee } from "./work-order-modal/createWorkOrder.mjs";
|
|
67
|
+
import { default as Ne } from "./work-order-modal/work-order-modal.vue.mjs";
|
|
68
|
+
import { default as Me } from "./ap-tag/ap-tag.vue.mjs";
|
|
69
|
+
import { default as Re } from "./ap-tag/ap-tag-group.vue.mjs";
|
|
70
|
+
import { default as ve } from "./ap-info-layout/ApInfoLayout.vue.mjs";
|
|
71
|
+
import { NeedNameKeyDefault as Ke } from "./ap-upload/apUploadTypes.mjs";
|
|
72
|
+
import { default as Oe } from "./ap-upload/apUpload.vue.mjs";
|
|
73
|
+
import { ApDownLoadNeedNameKeyDefault as _e } from "./ap-download/interface.mjs";
|
|
74
|
+
import { default as He } from "./ap-download/ap-download.vue.mjs";
|
|
75
|
+
import { default as qe } from "./check-card/group.vue.mjs";
|
|
76
|
+
import { default as Qe } from "./ap-list/index.vue.mjs";
|
|
77
|
+
import { default as Xe } from "./ap-button/ap-button.vue.mjs";
|
|
78
|
+
import { default as Ze } from "./ap-button/ap-action-button.vue.mjs";
|
|
79
|
+
import { ApTransformDataHelper as or } from "./utils/ap-trans-data/index.mjs";
|
|
80
|
+
import { default as rr } from "./business/ap-table-modal/index.mjs";
|
|
81
|
+
import { useTableModal as pr } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
82
|
+
import { useTableSelectModal as mr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
83
|
+
import { ApAttachment as lr } from "./business/ap-attachment/index.mjs";
|
|
84
|
+
import { ApBatchAction as xr } from "./business/ap-batch-action/index.mjs";
|
|
85
|
+
import { ApBatchActionGroup as ur } from "./business/ap-batch-action-group/index.mjs";
|
|
86
|
+
import { ApButtonGroup as ir } from "./business/ap-button-group/index.mjs";
|
|
87
|
+
import { ApCard as cr } from "./business/ap-card/index.mjs";
|
|
88
|
+
import { ApExpandAlert as Ir } from "./business/ap-expand-alert/index.mjs";
|
|
89
|
+
import { ApExportGroupActionType as br } from "./business/ap-export-group/interface.mjs";
|
|
90
|
+
import { ApExportGroup as Cr } from "./business/ap-export-group/index.mjs";
|
|
91
|
+
import { handleExportDownload as gr } from "./business/ap-export-group/handleExportDownload.mjs";
|
|
92
|
+
import { convertExportField as Gr } from "./business/ap-export-group/convertExportField.mjs";
|
|
93
|
+
import { ApImage as Er } from "./business/ap-image/index.mjs";
|
|
94
|
+
import { ApInputRadio as Nr } from "./business/ap-input-radio/index.mjs";
|
|
95
|
+
import { ApLabel as Mr, ApLabelGroup as wr } from "./business/ap-label/index.mjs";
|
|
96
|
+
import { locales as kr } from "./business/ap-ladder/interface.mjs";
|
|
97
|
+
import { ApLadder as Br } from "./business/ap-ladder/index.mjs";
|
|
98
|
+
import { ApSelectLayout as Ur } from "./business/ap-select-layout/index.mjs";
|
|
99
|
+
import { ApStatus as Wr, ApStatusGroup as _r } from "./business/ap-status/index.mjs";
|
|
100
|
+
import { ApTitle as Hr } from "./business/ap-title/index.mjs";
|
|
101
|
+
import { usePageListApTable as qr } from "./business/hooks/usePageListApTable.mjs";
|
|
102
|
+
import { useTableRefresh as Qr } from "./business/hooks/useTableRefresh.mjs";
|
|
103
|
+
import { computedRecords as Xr, flattenColumns as Yr, formatDataIndex as Zr, formatNumber as $r } from "./business/ap-summary/utils.mjs";
|
|
104
|
+
import { ApSummary as et } from "./business/ap-summary/index.mjs";
|
|
105
|
+
import { ApNeedNameKeyDefault as tt } from "./business/ap-appendix/interface.mjs";
|
|
106
|
+
import { ApAppendix as at } from "./business/ap-appendix/index.mjs";
|
|
107
|
+
import { ApExtensionSelect as ft, ApGroupSearch as lt, ApPopoverSelect as dt } from "./business/ap-group-search/index.mjs";
|
|
108
|
+
import { default as At } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
109
|
+
import { default as st } from "./business/batch-input-group/index.vue.mjs";
|
|
110
|
+
import { default as nt } from "./business/batch-input-group/form-item.vue.mjs";
|
|
111
|
+
import { ApSizeInput as Ft } from "./business/ap-size-input/index.mjs";
|
|
112
|
+
import { useTablePaging as Tt } from "./ap-table/hooks/use-table-paging.mjs";
|
|
113
|
+
import { default as Dt } from "./editable-table/index.vue.mjs";
|
|
114
|
+
import { default as St } from "./editable-table/form-item.vue.mjs";
|
|
115
|
+
import { default as ht } from "./ap-descriptions/ap-descriptions.vue.mjs";
|
|
116
|
+
import { default as Pt } from "./scroll-bar/index.vue.mjs";
|
|
117
|
+
import { default as Lt } from "./scroll-bar/internal.vue.mjs";
|
|
116
118
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
119
|
+
s as APConfigProvider,
|
|
120
|
+
Ze as ApActionButton,
|
|
121
|
+
Se as ApActionGroup,
|
|
122
|
+
C as ApActionItem,
|
|
123
|
+
De as ApActionItemDropdown,
|
|
124
|
+
Fe as ApActionItemModal,
|
|
125
|
+
Te as ApActionItemPopconfirm,
|
|
126
|
+
at as ApAppendix,
|
|
127
|
+
lr as ApAttachment,
|
|
128
|
+
xr as ApBatchAction,
|
|
129
|
+
ur as ApBatchActionGroup,
|
|
130
|
+
Xe as ApButton,
|
|
131
|
+
ir as ApButtonGroup,
|
|
132
|
+
cr as ApCard,
|
|
133
|
+
ht as ApDescriptions,
|
|
134
|
+
_e as ApDownLoadNeedNameKeyDefault,
|
|
135
|
+
He as ApDownload,
|
|
136
|
+
E as ApDrawer,
|
|
137
|
+
Ir as ApExpandAlert,
|
|
138
|
+
Cr as ApExportGroup,
|
|
139
|
+
br as ApExportGroupActionType,
|
|
140
|
+
ft as ApExtensionSelect,
|
|
141
|
+
F as ApField,
|
|
142
|
+
Jo as ApFieldCheckbox,
|
|
143
|
+
Vo as ApFieldDate,
|
|
144
|
+
ae as ApFieldDateRange,
|
|
145
|
+
Yo as ApFieldNumber,
|
|
144
146
|
de as ApFieldPassword,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
147
|
+
$o as ApFieldRadio,
|
|
148
|
+
ne as ApFieldRate,
|
|
149
|
+
se as ApFieldSegmented,
|
|
150
|
+
fe as ApFieldSelect,
|
|
151
|
+
Ae as ApFieldSlider,
|
|
152
|
+
ee as ApFieldSwitch,
|
|
153
|
+
jo as ApFieldText,
|
|
154
|
+
te as ApFieldTextArea,
|
|
155
|
+
n as ApForm,
|
|
156
|
+
Uo as ApFormControlRender,
|
|
157
|
+
wo as ApFormDependency,
|
|
158
|
+
Bo as ApFormDrawerForm,
|
|
159
|
+
So as ApFormItem,
|
|
160
|
+
nt as ApFormItemBatchInput,
|
|
161
|
+
To as ApFormItemCheckbox,
|
|
162
|
+
lo as ApFormItemDate,
|
|
163
|
+
Ao as ApFormItemDateRange,
|
|
164
|
+
ho as ApFormItemGroup,
|
|
165
|
+
mo as ApFormItemNumber,
|
|
166
|
+
so as ApFormItemRadio,
|
|
167
|
+
Wo as ApFormItemRender,
|
|
168
|
+
no as ApFormItemSelect,
|
|
169
|
+
Fo as ApFormItemSwitch,
|
|
170
|
+
ro as ApFormItemText,
|
|
171
|
+
po as ApFormItemTextArea,
|
|
172
|
+
Do as ApFormItemTextPassword,
|
|
173
|
+
Po as ApFormList,
|
|
174
|
+
yo as ApFormModalForm,
|
|
175
|
+
zo as ApFormProvider,
|
|
176
|
+
Lo as ApFormSearchForm,
|
|
177
|
+
ko as ApFormSet,
|
|
178
|
+
lt as ApGroupSearch,
|
|
179
|
+
Er as ApImage,
|
|
180
|
+
ve as ApInfoLayout,
|
|
181
|
+
Nr as ApInputRadio,
|
|
182
|
+
Mr as ApLabel,
|
|
183
|
+
wr as ApLabelGroup,
|
|
184
|
+
Br as ApLadder,
|
|
185
|
+
Qe as ApList,
|
|
186
|
+
G as ApModal,
|
|
187
|
+
tt as ApNeedNameKeyDefault,
|
|
186
188
|
dt as ApPopoverSelect,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
_r as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
k as
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
T as
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
189
|
+
Ur as ApSelectLayout,
|
|
190
|
+
Ft as ApSizeInput,
|
|
191
|
+
Wr as ApStatus,
|
|
192
|
+
_r as ApStatusGroup,
|
|
193
|
+
et as ApSummary,
|
|
194
|
+
N as ApTable,
|
|
195
|
+
rr as ApTableModal,
|
|
196
|
+
Me as ApTag,
|
|
197
|
+
Re as ApTagGroup,
|
|
198
|
+
Hr as ApTitle,
|
|
199
|
+
or as ApTransformDataHelper,
|
|
200
|
+
Oe as ApUpload,
|
|
201
|
+
At as ApUploadSingle,
|
|
202
|
+
st as BatchInputGroup,
|
|
203
|
+
g as CheckCard,
|
|
204
|
+
qe as CheckCardGroup,
|
|
205
|
+
$ as ConfigProvider,
|
|
206
|
+
R as DEFAULT_NAMESPACE,
|
|
207
|
+
k as DEFAULT_UIMODE,
|
|
208
|
+
he as DictCode,
|
|
209
|
+
Dt as EditableTable,
|
|
210
|
+
St as EditableTableFormItem,
|
|
211
|
+
Lt as InternalScrollBar,
|
|
212
|
+
Ke as NeedNameKeyDefault,
|
|
213
|
+
Pt as ScrollBar,
|
|
214
|
+
Ne as WorkOrderModal,
|
|
215
|
+
T as adminToken,
|
|
216
|
+
b as aplusToken,
|
|
217
|
+
_ as buildLocaleContext,
|
|
218
|
+
z as buildTranslator,
|
|
219
|
+
Xr as computedRecords,
|
|
220
|
+
v as configProviderContextKey,
|
|
221
|
+
M as configProviderProps,
|
|
222
|
+
Gr as convertExportField,
|
|
223
|
+
Ee as createWorkOrderModal,
|
|
224
|
+
Q as defaultNamespace,
|
|
225
|
+
Yr as flattenColumns,
|
|
226
|
+
Zr as formatDataIndex,
|
|
227
|
+
$r as formatNumber,
|
|
228
|
+
oo as globalConfigCached,
|
|
229
|
+
gr as handleExportDownload,
|
|
230
|
+
K as keysOf,
|
|
231
|
+
Ge as langMap,
|
|
232
|
+
H as localeContextKey,
|
|
233
|
+
kr as locales,
|
|
234
|
+
V as namespaceContextKey,
|
|
235
|
+
U as provideGlobalConfig,
|
|
236
|
+
j as translate,
|
|
237
|
+
X as useGetDerivedNamespace,
|
|
238
|
+
O as useGlobalConfig,
|
|
239
|
+
q as useLocale,
|
|
240
|
+
Y as useNamespace,
|
|
241
|
+
qr as usePageListApTable,
|
|
242
|
+
pr as useTableModal,
|
|
243
|
+
Tt as useTablePaging,
|
|
244
|
+
Qr as useTableRefresh,
|
|
245
|
+
mr as useTableSelectModal
|
|
243
246
|
};
|
package/es/src/path-map.mjs
CHANGED
|
@@ -77,7 +77,7 @@ const e = {
|
|
|
77
77
|
useTableSelectModal: ["business", "ap-table-modal"],
|
|
78
78
|
ApTitle: ["business", "ap-title"],
|
|
79
79
|
ApSummary: ["business", "ap-summary"],
|
|
80
|
-
|
|
80
|
+
ScrollBar: ["scroll-bar"],
|
|
81
81
|
ApAppendix: ["business", "ap-appendix"],
|
|
82
82
|
ApGroupSearch: ["business", "ap-group-search"],
|
|
83
83
|
ApPopoverSelect: ["business", "ap-group-search", "popover-select"],
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 处理点击滑轨滚动
|
|
4
|
+
* @param param0
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function useTrack({ currentScroll, trackSpeed, track, bar, tracking, type, barLength, disabled, onDown, onMove, onUp, onScroll }: {
|
|
8
|
+
currentScroll: Ref<number>;
|
|
9
|
+
type: Ref<'vertical' | 'horizontal'>;
|
|
10
|
+
trackSpeed?: Ref<number>;
|
|
11
|
+
track?: Ref<HTMLElement | null | undefined>;
|
|
12
|
+
bar?: Ref<HTMLElement | null | undefined>;
|
|
13
|
+
tracking?: Ref<boolean>;
|
|
14
|
+
barLength?: Ref<number>;
|
|
15
|
+
disabled?: Ref<boolean>;
|
|
16
|
+
onDown?: (scroll: number) => void;
|
|
17
|
+
onMove?: (scroll: number) => void;
|
|
18
|
+
onUp?: (scroll: number) => void;
|
|
19
|
+
onScroll?: (scroll: number) => void;
|
|
20
|
+
}): {
|
|
21
|
+
currentScroll: Ref<number, number>;
|
|
22
|
+
trackSpeed: Ref<number, number>;
|
|
23
|
+
track: Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
24
|
+
bar: Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
25
|
+
tracking: Ref<boolean, boolean>;
|
|
26
|
+
type: Ref<"horizontal" | "vertical", "horizontal" | "vertical">;
|
|
27
|
+
barLength: Ref<number, number>;
|
|
28
|
+
disabled: Ref<boolean, boolean>;
|
|
29
|
+
handleMouseDown: (event: PointerEvent) => false | undefined;
|
|
30
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ref as n } from "vue";
|
|
2
|
+
import { ensureRangeValue as w } from "../utils/index.mjs";
|
|
3
|
+
const h = () => {
|
|
4
|
+
};
|
|
5
|
+
function U({
|
|
6
|
+
currentScroll: e = n(0),
|
|
7
|
+
trackSpeed: f = n(2),
|
|
8
|
+
track: p = n(null),
|
|
9
|
+
bar: o = n(null),
|
|
10
|
+
tracking: m = n(!1),
|
|
11
|
+
type: r = n("vertical"),
|
|
12
|
+
barLength: i = n(35),
|
|
13
|
+
disabled: D = n(!1),
|
|
14
|
+
onDown: A = h,
|
|
15
|
+
onMove: B = h,
|
|
16
|
+
onUp: C = h,
|
|
17
|
+
onScroll: P = h
|
|
18
|
+
}) {
|
|
19
|
+
let d, s, v, u, M = !0, c = !1;
|
|
20
|
+
function x() {
|
|
21
|
+
if (!m.value) return;
|
|
22
|
+
c = !0;
|
|
23
|
+
const t = q(u, e.value);
|
|
24
|
+
let a = !1;
|
|
25
|
+
if (M) {
|
|
26
|
+
if (e.value < u) {
|
|
27
|
+
const l = e.value + t * f.value;
|
|
28
|
+
e.value = Math.min(l, u), a = !0;
|
|
29
|
+
}
|
|
30
|
+
} else if (e.value > u) {
|
|
31
|
+
const l = e.value - t * f.value;
|
|
32
|
+
e.value = Math.max(l, u), a = !0;
|
|
33
|
+
}
|
|
34
|
+
a && P(e.value), (m.value && M ? e.value < u : e.value > u) ? requestAnimationFrame(x) : c = !1;
|
|
35
|
+
}
|
|
36
|
+
function X(t) {
|
|
37
|
+
if (D.value || t.button !== 0 || (t.stopPropagation(), t.preventDefault(), !p.value || !o.value)) return !1;
|
|
38
|
+
document.addEventListener("pointermove", E), document.addEventListener("pointerup", g);
|
|
39
|
+
const a = p.value.getBoundingClientRect(), l = o.value.getBoundingClientRect();
|
|
40
|
+
let R;
|
|
41
|
+
r.value === "vertical" ? (d = a.height, s = l.top - a.top, v = l.top, R = s + t.clientY - v) : (d = a.width, s = l.left - a.left, v = l.left, R = s + t.clientX - v), M = R / d * 100 > i.value;
|
|
42
|
+
const Y = (R / d * 100 - (M ? i.value : 0)) / (100 - i.value);
|
|
43
|
+
u = w(Y * 100), m.value = !0, A(e.value), x();
|
|
44
|
+
}
|
|
45
|
+
function E(t) {
|
|
46
|
+
t.stopPropagation(), t.preventDefault(), B(e.value);
|
|
47
|
+
let a;
|
|
48
|
+
r.value === "vertical" ? a = s + t.clientY - v : a = s + t.clientX - v;
|
|
49
|
+
const l = (a / d * 100 - (M ? i.value : 0)) / (100 - i.value);
|
|
50
|
+
u = w(l * 100), !c && x();
|
|
51
|
+
}
|
|
52
|
+
function g(t) {
|
|
53
|
+
t.preventDefault(), document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", g), m.value = !1, C(e.value);
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
currentScroll: e,
|
|
57
|
+
trackSpeed: f,
|
|
58
|
+
track: p,
|
|
59
|
+
bar: o,
|
|
60
|
+
tracking: m,
|
|
61
|
+
type: r,
|
|
62
|
+
barLength: i,
|
|
63
|
+
disabled: D,
|
|
64
|
+
handleMouseDown: X
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function q(e, f) {
|
|
68
|
+
const p = Math.abs(e - f);
|
|
69
|
+
for (let o = 0; o < 5; ++o)
|
|
70
|
+
if (p < (o + 1) * 20)
|
|
71
|
+
return 1 + 0.25 * o;
|
|
72
|
+
return 2;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
U as useTrack
|
|
76
|
+
};
|