@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/src/index.mjs
CHANGED
|
@@ -1,243 +1,248 @@
|
|
|
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
|
|
20
|
+
import "./scroll-bar/index.mjs";
|
|
21
|
+
import { configProviderProps as M } from "./config-provider/config-provider-props.mjs";
|
|
22
|
+
import { DEFAULT_NAMESPACE as w, 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 V, useLocale as j } from "./config-provider/hooks/use-locale.mjs";
|
|
25
|
+
import { defaultNamespace as J, namespaceContextKey as Q, 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
31
|
import { default as uo } from "./ap-form/items/date-range/index.vue.mjs";
|
|
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
|
|
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
42
|
import { default as Ro } from "./ap-form/dependency/index.vue.mjs";
|
|
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
|
|
57
|
-
import { default as
|
|
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 Vo } from "./ap-field/text/index.mjs";
|
|
49
|
+
import { default as qo } from "./ap-field/checkbox/index.vue.mjs";
|
|
50
|
+
import { default as Qo } 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
|
+
import { default as xe } from "./ap-field/text/password.vue.mjs";
|
|
58
58
|
import { default as ue } from "./ap-field/slider/index.vue.mjs";
|
|
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
|
|
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 we } 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 je } from "./check-card/group.vue.mjs";
|
|
76
|
+
import { default as Je } 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 dr } from "./business/ap-batch-action/index.mjs";
|
|
85
|
+
import { ApBatchActionGroup as Ar } 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 Rr } 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 jr } from "./business/hooks/usePageListApTable.mjs";
|
|
102
|
+
import { useTableRefresh as Jr } 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 xt } from "./business/ap-group-search/index.mjs";
|
|
108
108
|
import { default as ut } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
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
|
|
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 { ensureRangeValue as Pt } from "./scroll-bar/utils/index.mjs";
|
|
117
|
+
import { default as Lt } from "./scroll-bar/index.vue.mjs";
|
|
118
|
+
import { default as yt } from "./scroll-bar/internal.vue.mjs";
|
|
116
119
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
s as APConfigProvider,
|
|
121
|
+
Ze as ApActionButton,
|
|
122
|
+
Se as ApActionGroup,
|
|
123
|
+
C as ApActionItem,
|
|
124
|
+
De as ApActionItemDropdown,
|
|
125
|
+
Fe as ApActionItemModal,
|
|
126
|
+
Te as ApActionItemPopconfirm,
|
|
127
|
+
at as ApAppendix,
|
|
128
|
+
lr as ApAttachment,
|
|
129
|
+
dr as ApBatchAction,
|
|
130
|
+
Ar as ApBatchActionGroup,
|
|
131
|
+
Xe as ApButton,
|
|
132
|
+
ir as ApButtonGroup,
|
|
133
|
+
cr as ApCard,
|
|
134
|
+
ht as ApDescriptions,
|
|
135
|
+
_e as ApDownLoadNeedNameKeyDefault,
|
|
136
|
+
He as ApDownload,
|
|
137
|
+
E as ApDrawer,
|
|
138
|
+
Ir as ApExpandAlert,
|
|
139
|
+
Cr as ApExportGroup,
|
|
140
|
+
br as ApExportGroupActionType,
|
|
141
|
+
ft as ApExtensionSelect,
|
|
142
|
+
F as ApField,
|
|
143
|
+
qo as ApFieldCheckbox,
|
|
144
|
+
Qo as ApFieldDate,
|
|
145
|
+
ae as ApFieldDateRange,
|
|
146
|
+
Yo as ApFieldNumber,
|
|
147
|
+
xe as ApFieldPassword,
|
|
148
|
+
$o as ApFieldRadio,
|
|
149
|
+
ne as ApFieldRate,
|
|
150
|
+
se as ApFieldSegmented,
|
|
151
|
+
fe as ApFieldSelect,
|
|
149
152
|
ue as ApFieldSlider,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
ee as ApFieldSwitch,
|
|
154
|
+
Vo as ApFieldText,
|
|
155
|
+
te as ApFieldTextArea,
|
|
156
|
+
n as ApForm,
|
|
157
|
+
Uo as ApFormControlRender,
|
|
155
158
|
Ro as ApFormDependency,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
Bo as ApFormDrawerForm,
|
|
160
|
+
So as ApFormItem,
|
|
161
|
+
nt as ApFormItemBatchInput,
|
|
162
|
+
To as ApFormItemCheckbox,
|
|
163
|
+
lo as ApFormItemDate,
|
|
161
164
|
uo as ApFormItemDateRange,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
165
|
+
ho as ApFormItemGroup,
|
|
166
|
+
mo as ApFormItemNumber,
|
|
167
|
+
so as ApFormItemRadio,
|
|
168
|
+
Wo as ApFormItemRender,
|
|
169
|
+
no as ApFormItemSelect,
|
|
170
|
+
Fo as ApFormItemSwitch,
|
|
171
|
+
ro as ApFormItemText,
|
|
172
|
+
po as ApFormItemTextArea,
|
|
173
|
+
Do as ApFormItemTextPassword,
|
|
174
|
+
Po as ApFormList,
|
|
175
|
+
yo as ApFormModalForm,
|
|
176
|
+
zo as ApFormProvider,
|
|
177
|
+
Lo as ApFormSearchForm,
|
|
178
|
+
ko as ApFormSet,
|
|
179
|
+
lt as ApGroupSearch,
|
|
180
|
+
Er as ApImage,
|
|
181
|
+
ve as ApInfoLayout,
|
|
182
|
+
Nr as ApInputRadio,
|
|
183
|
+
Mr as ApLabel,
|
|
181
184
|
Rr as ApLabelGroup,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
_r as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
we as
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
We as ApUpload,
|
|
185
|
+
Br as ApLadder,
|
|
186
|
+
Je as ApList,
|
|
187
|
+
G as ApModal,
|
|
188
|
+
tt as ApNeedNameKeyDefault,
|
|
189
|
+
xt as ApPopoverSelect,
|
|
190
|
+
Ur as ApSelectLayout,
|
|
191
|
+
Ft as ApSizeInput,
|
|
192
|
+
Wr as ApStatus,
|
|
193
|
+
_r as ApStatusGroup,
|
|
194
|
+
et as ApSummary,
|
|
195
|
+
N as ApTable,
|
|
196
|
+
rr as ApTableModal,
|
|
197
|
+
Me as ApTag,
|
|
198
|
+
we as ApTagGroup,
|
|
199
|
+
Hr as ApTitle,
|
|
200
|
+
or as ApTransformDataHelper,
|
|
201
|
+
Oe as ApUpload,
|
|
200
202
|
ut as ApUploadSingle,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
203
|
+
st as BatchInputGroup,
|
|
204
|
+
g as CheckCard,
|
|
205
|
+
je as CheckCardGroup,
|
|
206
|
+
$ as ConfigProvider,
|
|
207
|
+
w as DEFAULT_NAMESPACE,
|
|
208
|
+
k as DEFAULT_UIMODE,
|
|
209
|
+
he as DictCode,
|
|
210
|
+
Dt as EditableTable,
|
|
211
|
+
St as EditableTableFormItem,
|
|
212
|
+
yt as InternalScrollBar,
|
|
213
|
+
Ke as NeedNameKeyDefault,
|
|
214
|
+
Lt as ScrollBar,
|
|
215
|
+
Ne as WorkOrderModal,
|
|
216
|
+
T as adminToken,
|
|
217
|
+
b as aplusToken,
|
|
218
|
+
_ as buildLocaleContext,
|
|
219
|
+
z as buildTranslator,
|
|
220
|
+
Xr as computedRecords,
|
|
221
|
+
v as configProviderContextKey,
|
|
222
|
+
M as configProviderProps,
|
|
223
|
+
Gr as convertExportField,
|
|
224
|
+
Ee as createWorkOrderModal,
|
|
225
|
+
J as defaultNamespace,
|
|
226
|
+
Pt as ensureRangeValue,
|
|
227
|
+
Yr as flattenColumns,
|
|
228
|
+
Zr as formatDataIndex,
|
|
229
|
+
$r as formatNumber,
|
|
230
|
+
oo as globalConfigCached,
|
|
231
|
+
gr as handleExportDownload,
|
|
232
|
+
K as keysOf,
|
|
233
|
+
Ge as langMap,
|
|
234
|
+
H as localeContextKey,
|
|
235
|
+
kr as locales,
|
|
236
|
+
Q as namespaceContextKey,
|
|
237
|
+
U as provideGlobalConfig,
|
|
238
|
+
V as translate,
|
|
239
|
+
X as useGetDerivedNamespace,
|
|
240
|
+
O as useGlobalConfig,
|
|
241
|
+
j as useLocale,
|
|
242
|
+
Y as useNamespace,
|
|
243
|
+
jr as usePageListApTable,
|
|
244
|
+
pr as useTableModal,
|
|
245
|
+
Tt as useTablePaging,
|
|
246
|
+
Jr as useTableRefresh,
|
|
247
|
+
mr as useTableSelectModal
|
|
243
248
|
};
|
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
|
+
};
|