@aplus-frontend/ui 0.6.0-beta.20 → 0.6.0-beta.21
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 +156 -154
- package/es/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
- package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
- package/es/src/ap-drawer/index.d.ts +3 -7
- package/es/src/ap-drawer/index.mjs +10 -5
- package/es/src/ap-drawer/interface.d.ts +4 -0
- package/es/src/ap-drawer/style/css.d.ts +0 -1
- package/es/src/ap-drawer/style/css.js +1 -1
- package/es/src/ap-drawer/style/index.d.ts +0 -1
- package/es/src/ap-drawer/style/index.js +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
- package/es/src/index.mjs +285 -282
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-drawer/ApDrawer.vue.d.ts +29 -0
- package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
- package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
- package/lib/src/ap-drawer/index.d.ts +3 -7
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +4 -0
- package/lib/src/ap-drawer/style/css.cjs +1 -1
- package/lib/src/ap-drawer/style/css.d.ts +0 -1
- package/lib/src/ap-drawer/style/index.cjs +1 -1
- package/lib/src/ap-drawer/style/index.d.ts +0 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +7 -4
- package/theme/ap-drawer/ap-drawer.css +75 -0
- package/theme/ap-drawer/ap-drawer.less +42 -0
- package/theme/ap-grid/index.css +4 -4
- package/theme/ap-grid/index.less +4 -4
- package/theme/index.css +33 -4
- package/theme/index.less +1 -0
package/es/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey a
|
|
|
7
7
|
import { keysOf as T, provideGlobalConfig as S, useGlobalConfig as b } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
8
8
|
import { buildLocaleContext as g, buildTranslator as D, localeContextKey as G, translate as h, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
9
9
|
import { defaultNamespace as R, namespaceContextKey as L, useGetDerivedNamespace as v, useNamespace as M } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
import { ConfigProvider as
|
|
10
|
+
import { ConfigProvider as w, globalConfigCached as y } from "./src/config-provider/config-provider.mjs";
|
|
11
11
|
import { APConfigProvider as B } from "./src/config-provider/index.mjs";
|
|
12
12
|
import { ApFormItemText as O } from "./src/ap-form/items/text/index.mjs";
|
|
13
13
|
import { default as V } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
@@ -34,7 +34,7 @@ import { default as Pe } from "./src/ap-form/render/item.vue.mjs";
|
|
|
34
34
|
import { default as Re } from "./src/ap-form/provider/index.vue.mjs";
|
|
35
35
|
import { ApField as ve } from "./src/ap-field/index.mjs";
|
|
36
36
|
import { ApFieldText as Ne } from "./src/ap-field/text/index.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as ye } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
38
38
|
import { default as Be } from "./src/ap-field/date/index.vue.mjs";
|
|
39
39
|
import { default as Oe } from "./src/ap-field/number/index.vue.mjs";
|
|
40
40
|
import { default as Ve } from "./src/ap-field/radio/index.vue.mjs";
|
|
@@ -59,7 +59,7 @@ import { default as ho } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
|
59
59
|
import { default as Eo } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
60
60
|
import { default as Lo } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
61
61
|
import { default as Mo } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
62
|
-
import { NeedNameKeyDefault as
|
|
62
|
+
import { NeedNameKeyDefault as wo } from "./src/ap-upload/apUploadTypes.mjs";
|
|
63
63
|
import { default as ko } from "./src/ap-upload/apUpload.vue.mjs";
|
|
64
64
|
import { ApDownLoadNeedNameKeyDefault as Ko } from "./src/ap-download/interface.mjs";
|
|
65
65
|
import { default as Uo } from "./src/ap-download/ap-download.vue.mjs";
|
|
@@ -70,76 +70,77 @@ import { default as qo } from "./src/ap-list/index.vue.mjs";
|
|
|
70
70
|
import { default as Qo } from "./src/ap-button/ap-button.vue.mjs";
|
|
71
71
|
import { default as Yo } from "./src/ap-button/ap-action-button.vue.mjs";
|
|
72
72
|
import { default as er } from "./src/ap-button/ap-confirm-button.vue.mjs";
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import { default as bt } from "./src/business/
|
|
107
|
-
import { default as gt } from "./src/business/batch-input-group/
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import { default as Qt } from "./src/editable-table/
|
|
121
|
-
import { default as Yt } from "./src/
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import { default as pp } from "./src/scroll-bar/
|
|
125
|
-
import { default as fp } from "./src/scroll-
|
|
126
|
-
import { default as lp } from "./src/
|
|
127
|
-
import { default as dp } from "./src/
|
|
128
|
-
import { default as up } from "./src/
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import { default as Ip } from "./src/ap-grid/
|
|
132
|
-
import { default as Sp } from "./src/ap-grid/editable/
|
|
133
|
-
import { default as Cp } from "./src/
|
|
134
|
-
import { default as Dp } from "./src/text/
|
|
135
|
-
import { default as hp } from "./src/
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
73
|
+
import { default as rr } from "./src/ap-drawer/ApDrawer.vue.mjs";
|
|
74
|
+
import { default as pr } from "./src/ap-drawer/components/ApDrawerClose.vue.mjs";
|
|
75
|
+
import { ApTransformDataHelper as fr } from "./src/utils/ap-trans-data/index.mjs";
|
|
76
|
+
import { default as lr } from "./src/business/ap-table-modal/index.mjs";
|
|
77
|
+
import { useTableModal as dr } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
78
|
+
import { useTableSelectModal as ur } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
79
|
+
import { ApAttachment as ir } from "./src/business/ap-attachment/index.mjs";
|
|
80
|
+
import { ApBatchAction as cr } from "./src/business/ap-batch-action/index.mjs";
|
|
81
|
+
import { ApBatchActionGroup as Ir } from "./src/business/ap-batch-action-group/index.mjs";
|
|
82
|
+
import { ApButtonGroup as Sr } from "./src/business/ap-button-group/index.mjs";
|
|
83
|
+
import { ApCard as Cr } from "./src/business/ap-card/index.mjs";
|
|
84
|
+
import { ApExpandAlert as Dr } from "./src/business/ap-expand-alert/index.mjs";
|
|
85
|
+
import { ApExportGroupActionType as hr } from "./src/business/ap-export-group/interface.mjs";
|
|
86
|
+
import { ApExportGroup as Er } from "./src/business/ap-export-group/index.mjs";
|
|
87
|
+
import { handleExportDownload as Lr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
88
|
+
import { convertExportField as Mr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
89
|
+
import { ApImage as wr } from "./src/business/ap-image/index.mjs";
|
|
90
|
+
import { ApInputRadio as kr } from "./src/business/ap-input-radio/index.mjs";
|
|
91
|
+
import { ApLabel as Kr, ApLabelGroup as Or } from "./src/business/ap-label/index.mjs";
|
|
92
|
+
import { locales as Vr } from "./src/business/ap-ladder/interface.mjs";
|
|
93
|
+
import { ApLadder as zr } from "./src/business/ap-ladder/index.mjs";
|
|
94
|
+
import { ApSelectLayout as $r } from "./src/business/ap-select-layout/index.mjs";
|
|
95
|
+
import { ApStatus as Hr, ApStatusGroup as qr } from "./src/business/ap-status/index.mjs";
|
|
96
|
+
import { ApTitle as Qr } from "./src/business/ap-title/index.mjs";
|
|
97
|
+
import { usePageListApTable as Yr } from "./src/business/hooks/usePageListApTable.mjs";
|
|
98
|
+
import { useTableRefresh as et } from "./src/business/hooks/useTableRefresh.mjs";
|
|
99
|
+
import { usePageListApGrid as rt } from "./src/business/hooks/usePageListApGrid.mjs";
|
|
100
|
+
import { useGridRefresh as pt } from "./src/business/hooks/useGridRefresh.mjs";
|
|
101
|
+
import { computedRecords as ft, flattenColumns as mt, formatDataIndex as lt, formatNumber as xt } from "./src/business/ap-summary/utils.mjs";
|
|
102
|
+
import { ApSummary as st } from "./src/business/ap-summary/index.mjs";
|
|
103
|
+
import { ApNeedNameKeyDefault as At } from "./src/business/ap-appendix/interface.mjs";
|
|
104
|
+
import { ApAppendix as nt } from "./src/business/ap-appendix/index.mjs";
|
|
105
|
+
import { ApExtensionSelect as Ft, ApGroupSearch as It, ApPopoverSelect as Tt } from "./src/business/ap-group-search/index.mjs";
|
|
106
|
+
import { default as bt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
107
|
+
import { default as gt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
108
|
+
import { default as Gt } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
109
|
+
import { ApSizeInput as Pt } from "./src/business/ap-size-input/index.mjs";
|
|
110
|
+
import { ApProductInfo as Rt } from "./src/business/ap-product-info/index.mjs";
|
|
111
|
+
import { ApCopy as vt } from "./src/business/ap-copy/index.mjs";
|
|
112
|
+
import { ApView as Nt } from "./src/business/ap-view/index.mjs";
|
|
113
|
+
import { ApRadioGroup as yt } from "./src/business/ap-radio-group/index.mjs";
|
|
114
|
+
import { ApKeepAliveProps as Bt, forceStopTags as Kt } from "./src/business/ap-keep-alive/interface.mjs";
|
|
115
|
+
import { ApKeepAlive as Ut } from "./src/business/ap-keep-alive/index.mjs";
|
|
116
|
+
import { LruCacher as _t } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
|
|
117
|
+
import { useApKeepAliveInject as Wt } from "./src/business/ap-keep-alive/hook.mjs";
|
|
118
|
+
import { useTablePaging as jt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
119
|
+
import { ApTable as qt } from "./src/ap-table/index.mjs";
|
|
120
|
+
import { default as Qt } from "./src/editable-table/index.vue.mjs";
|
|
121
|
+
import { default as Yt } from "./src/editable-table/form-item.vue.mjs";
|
|
122
|
+
import { default as ep } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
123
|
+
import { ensureRangeValue as rp } from "./src/scroll-bar/utils/index.mjs";
|
|
124
|
+
import { default as pp } from "./src/scroll-bar/index.vue.mjs";
|
|
125
|
+
import { default as fp } from "./src/scroll-bar/internal.vue.mjs";
|
|
126
|
+
import { default as lp } from "./src/scroll-view/index.vue.mjs";
|
|
127
|
+
import { default as dp } from "./src/portal/index.vue.mjs";
|
|
128
|
+
import { default as up } from "./src/full-screen/index.vue.mjs";
|
|
129
|
+
import { default as ip } from "./src/resize-observer/index.vue.mjs";
|
|
130
|
+
import { ROW_SELECTION_FIELD as cp } from "./src/ap-grid/constants.mjs";
|
|
131
|
+
import { default as Ip } from "./src/ap-grid/index.vue.mjs";
|
|
132
|
+
import { default as Sp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
133
|
+
import { default as Cp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
134
|
+
import { default as Dp } from "./src/text/index.vue.mjs";
|
|
135
|
+
import { default as hp } from "./src/text/group.vue.mjs";
|
|
136
|
+
import { default as Ep } from "./src/mask/index.vue.mjs";
|
|
137
|
+
import { Splitter as Lp } from "./src/splitter/index.mjs";
|
|
138
|
+
import { useMessage as Mp } from "./src/hooks/useMessage.mjs";
|
|
139
|
+
import { useControllableValue as wp } from "./src/hooks/useControllableValue.mjs";
|
|
140
|
+
import { useManualRef as kp } from "./src/hooks/useManualRef.mjs";
|
|
141
|
+
import { useThrottleRef as Kp } from "./src/hooks/useThrottleRef.mjs";
|
|
142
|
+
import { useFullScreen as Up } from "./src/hooks/useFullScreen.mjs";
|
|
143
|
+
import { useResize as _p } from "./src/hooks/useResize.mjs";
|
|
143
144
|
const a = console.log;
|
|
144
145
|
a(`APlus-UI version ${p}`);
|
|
145
146
|
const l = {
|
|
@@ -158,25 +159,26 @@ export {
|
|
|
158
159
|
Fo as ApActionItemDropdown,
|
|
159
160
|
Ao as ApActionItemModal,
|
|
160
161
|
no as ApActionItemPopconfirm,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
nt as ApAppendix,
|
|
163
|
+
ir as ApAttachment,
|
|
164
|
+
cr as ApBatchAction,
|
|
165
|
+
Ir as ApBatchActionGroup,
|
|
165
166
|
Qo as ApButton,
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
Sr as ApButtonGroup,
|
|
168
|
+
Cr as ApCard,
|
|
168
169
|
er as ApConfirmButton,
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
vt as ApCopy,
|
|
171
|
+
ep as ApDescriptions,
|
|
171
172
|
Ko as ApDownLoadNeedNameKeyDefault,
|
|
172
173
|
Uo as ApDownload,
|
|
173
174
|
rr as ApDrawer,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
pr as ApDrawerClose,
|
|
176
|
+
Dr as ApExpandAlert,
|
|
177
|
+
Er as ApExportGroup,
|
|
178
|
+
hr as ApExportGroupActionType,
|
|
179
|
+
Ft as ApExtensionSelect,
|
|
178
180
|
ve as ApField,
|
|
179
|
-
|
|
181
|
+
ye as ApFieldCheckbox,
|
|
180
182
|
Be as ApFieldDate,
|
|
181
183
|
He as ApFieldDateRange,
|
|
182
184
|
Oe as ApFieldNumber,
|
|
@@ -195,7 +197,7 @@ export {
|
|
|
195
197
|
Te as ApFormDependency,
|
|
196
198
|
ge as ApFormDrawerForm,
|
|
197
199
|
xe as ApFormItem,
|
|
198
|
-
|
|
200
|
+
Gt as ApFormItemBatchInput,
|
|
199
201
|
oe as ApFormItemCheckbox,
|
|
200
202
|
$ as ApFormItemDate,
|
|
201
203
|
H as ApFormItemDateRange,
|
|
@@ -214,103 +216,103 @@ export {
|
|
|
214
216
|
Re as ApFormProvider,
|
|
215
217
|
ne as ApFormSearchForm,
|
|
216
218
|
be as ApFormSet,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
Ip as ApGrid,
|
|
220
|
+
It as ApGroupSearch,
|
|
221
|
+
wr as ApImage,
|
|
220
222
|
Mo as ApInfoLayout,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
kr as ApInputRadio,
|
|
224
|
+
Ut as ApKeepAlive,
|
|
225
|
+
Bt as ApKeepAliveProps,
|
|
226
|
+
Kr as ApLabel,
|
|
227
|
+
Or as ApLabelGroup,
|
|
228
|
+
zr as ApLadder,
|
|
227
229
|
qo as ApList,
|
|
228
230
|
jo as ApModal,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
231
|
+
At as ApNeedNameKeyDefault,
|
|
232
|
+
Tt as ApPopoverSelect,
|
|
233
|
+
Rt as ApProductInfo,
|
|
234
|
+
yt as ApRadioGroup,
|
|
235
|
+
$r as ApSelectLayout,
|
|
236
|
+
Pt as ApSizeInput,
|
|
237
|
+
Hr as ApStatus,
|
|
238
|
+
qr as ApStatusGroup,
|
|
239
|
+
st as ApSummary,
|
|
240
|
+
qt as ApTable,
|
|
241
|
+
lr as ApTableModal,
|
|
240
242
|
Eo as ApTag,
|
|
241
243
|
Lo as ApTagGroup,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
Dp as ApText,
|
|
245
|
+
hp as ApTextGroup,
|
|
246
|
+
Qr as ApTitle,
|
|
247
|
+
fr as ApTransformDataHelper,
|
|
246
248
|
ko as ApUpload,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
bt as ApUploadSingle,
|
|
250
|
+
Nt as ApView,
|
|
251
|
+
gt as BatchInputGroup,
|
|
250
252
|
_o as CheckCard,
|
|
251
253
|
Wo as CheckCardGroup,
|
|
252
|
-
|
|
254
|
+
w as ConfigProvider,
|
|
253
255
|
n as DEFAULT_NAMESPACE,
|
|
254
256
|
c as DEFAULT_UIMODE,
|
|
255
257
|
bo as DictCode,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
258
|
+
Sp as EditableGrid,
|
|
259
|
+
Cp as EditableGridFormItem,
|
|
260
|
+
Qt as EditableTable,
|
|
261
|
+
Yt as EditableTableFormItem,
|
|
262
|
+
up as FullScreen,
|
|
263
|
+
fp as InternalScrollBar,
|
|
264
|
+
_t as LruCacher,
|
|
265
|
+
Ep as Mask,
|
|
266
|
+
wo as NeedNameKeyDefault,
|
|
267
|
+
dp as Portal,
|
|
268
|
+
cp as ROW_SELECTION_FIELD,
|
|
269
|
+
ip as ResizeObserver,
|
|
270
|
+
pp as ScrollBar,
|
|
271
|
+
lp as ScrollView,
|
|
272
|
+
Lp as Splitter,
|
|
271
273
|
ho as WorkOrderModal,
|
|
272
274
|
mo as adminToken,
|
|
273
275
|
lo as aplusToken,
|
|
274
276
|
g as buildLocaleContext,
|
|
275
277
|
D as buildTranslator,
|
|
276
|
-
|
|
278
|
+
ft as computedRecords,
|
|
277
279
|
F as configProviderContextKey,
|
|
278
280
|
A as configProviderProps,
|
|
279
|
-
|
|
281
|
+
Mr as convertExportField,
|
|
280
282
|
Do as createWorkOrderModal,
|
|
281
283
|
l as default,
|
|
282
284
|
R as defaultNamespace,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
rp as ensureRangeValue,
|
|
286
|
+
mt as flattenColumns,
|
|
287
|
+
Kt as forceStopTags,
|
|
288
|
+
lt as formatDataIndex,
|
|
289
|
+
xt as formatNumber,
|
|
290
|
+
y as globalConfigCached,
|
|
291
|
+
Lr as handleExportDownload,
|
|
290
292
|
T as keysOf,
|
|
291
293
|
Co as langMap,
|
|
292
294
|
G as localeContextKey,
|
|
293
|
-
|
|
295
|
+
Vr as locales,
|
|
294
296
|
L as namespaceContextKey,
|
|
295
297
|
s as pathMap,
|
|
296
298
|
S as provideGlobalConfig,
|
|
297
299
|
h as translate,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
300
|
+
Wt as useApKeepAliveInject,
|
|
301
|
+
wp as useControllableValue,
|
|
302
|
+
Up as useFullScreen,
|
|
301
303
|
v as useGetDerivedNamespace,
|
|
302
304
|
b as useGlobalConfig,
|
|
303
|
-
|
|
305
|
+
pt as useGridRefresh,
|
|
304
306
|
P as useLocale,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
+
kp as useManualRef,
|
|
308
|
+
Mp as useMessage,
|
|
307
309
|
M as useNamespace,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
310
|
+
rt as usePageListApGrid,
|
|
311
|
+
Yr as usePageListApTable,
|
|
312
|
+
_p as useResize,
|
|
313
|
+
dr as useTableModal,
|
|
314
|
+
jt as useTablePaging,
|
|
315
|
+
et as useTableRefresh,
|
|
316
|
+
ur as useTableSelectModal,
|
|
317
|
+
Kp as useThrottleRef
|
|
316
318
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ApDrawerMixedProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ApDrawerMixedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:open": (value: boolean) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<ApDrawerMixedProps> & Readonly<{
|
|
15
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
mask: boolean;
|
|
18
|
+
closable: boolean;
|
|
19
|
+
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
20
|
+
rootStyle: CSSProperties;
|
|
21
|
+
outSideClick: boolean;
|
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent as d, h as m, watch as u, onBeforeUnmount as f, createBlock as y, openBlock as C, unref as t, mergeProps as k, withCtx as h, renderSlot as B } from "vue";
|
|
2
|
+
import { Drawer as S } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../config-provider/index.mjs";
|
|
4
|
+
import "./components/ApDrawerClose.vue2.mjs";
|
|
5
|
+
import { omit as b } from "lodash-unified";
|
|
6
|
+
import { useGlobalConfig as w } from "../config-provider/hooks/use-global-config.mjs";
|
|
7
|
+
import { useNamespace as x } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import v from "./components/ApDrawerClose.vue.mjs";
|
|
9
|
+
const U = /* @__PURE__ */ d({
|
|
10
|
+
name: "ApDrawer",
|
|
11
|
+
__name: "ApDrawer",
|
|
12
|
+
props: {
|
|
13
|
+
autofocus: { type: Boolean },
|
|
14
|
+
closable: { type: Boolean, default: !1 },
|
|
15
|
+
closeIcon: {},
|
|
16
|
+
destroyOnClose: { type: Boolean },
|
|
17
|
+
forceRender: { type: Boolean },
|
|
18
|
+
getContainer: { type: [String, Boolean, Function], default: () => document.body },
|
|
19
|
+
maskClosable: { type: Boolean },
|
|
20
|
+
mask: { type: Boolean, default: !1 },
|
|
21
|
+
maskStyle: {},
|
|
22
|
+
rootClassName: {},
|
|
23
|
+
rootStyle: { default: () => ({
|
|
24
|
+
top: "0px"
|
|
25
|
+
}) },
|
|
26
|
+
size: {},
|
|
27
|
+
drawerStyle: {},
|
|
28
|
+
headerStyle: {},
|
|
29
|
+
bodyStyle: {},
|
|
30
|
+
contentWrapperStyle: {},
|
|
31
|
+
title: {},
|
|
32
|
+
visible: { type: Boolean },
|
|
33
|
+
open: { type: Boolean },
|
|
34
|
+
width: {},
|
|
35
|
+
height: {},
|
|
36
|
+
zIndex: {},
|
|
37
|
+
prefixCls: {},
|
|
38
|
+
push: {},
|
|
39
|
+
placement: {},
|
|
40
|
+
keyboard: { type: Boolean },
|
|
41
|
+
extra: {},
|
|
42
|
+
footer: {},
|
|
43
|
+
footerStyle: {},
|
|
44
|
+
level: {},
|
|
45
|
+
levelMove: {},
|
|
46
|
+
handle: {},
|
|
47
|
+
afterVisibleChange: {},
|
|
48
|
+
onAfterVisibleChange: {},
|
|
49
|
+
onAfterOpenChange: {},
|
|
50
|
+
"onUpdate:visible": {},
|
|
51
|
+
"onUpdate:open": {},
|
|
52
|
+
onClose: {},
|
|
53
|
+
createDrawer: {},
|
|
54
|
+
outSideClick: { type: Boolean, default: !0 }
|
|
55
|
+
},
|
|
56
|
+
emits: ["update:open"],
|
|
57
|
+
setup(l, { emit: s }) {
|
|
58
|
+
const r = s, i = w("uiMode"), { b: c } = x("ap-drawer"), p = m(v, {
|
|
59
|
+
onClose: () => {
|
|
60
|
+
r("update:open", !1);
|
|
61
|
+
}
|
|
62
|
+
}), e = l, n = (o) => {
|
|
63
|
+
if (!e.open || !e.outSideClick) return;
|
|
64
|
+
const a = document.querySelector(".ant-drawer-open");
|
|
65
|
+
if (!a) return;
|
|
66
|
+
!a.contains(o.target) && (e.onClose ? e.onClose(o) : r("update:open", !1));
|
|
67
|
+
};
|
|
68
|
+
return u(
|
|
69
|
+
() => e.open,
|
|
70
|
+
(o) => {
|
|
71
|
+
o && e.outSideClick ? setTimeout(() => {
|
|
72
|
+
document.addEventListener("click", n);
|
|
73
|
+
}, 0) : document.removeEventListener("click", n);
|
|
74
|
+
},
|
|
75
|
+
{ immediate: !0 }
|
|
76
|
+
), f(() => {
|
|
77
|
+
document.removeEventListener("click", n);
|
|
78
|
+
}), (o, a) => (C(), y(t(S), k(t(b)(e, ["class", "extra", "outSideClick"]), {
|
|
79
|
+
class: t(c)(t(i)),
|
|
80
|
+
extra: e.extra ? e.extra : t(p)
|
|
81
|
+
}), {
|
|
82
|
+
default: h(() => [
|
|
83
|
+
B(o.$slots, "default")
|
|
84
|
+
]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 16, ["class", "extra"]));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
U as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as p, createElementBlock as a, openBlock as l, normalizeClass as m, unref as r, createVNode as c } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import { IconApAdLineCloseDrawer as i } from "@aplus-frontend/icon";
|
|
4
|
+
import { useNamespace as C } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const _ = /* @__PURE__ */ p({
|
|
6
|
+
name: "ApDrawerClose",
|
|
7
|
+
__name: "ApDrawerClose",
|
|
8
|
+
props: {
|
|
9
|
+
onClose: { type: Function, default: () => {
|
|
10
|
+
} }
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
const { b: s } = C("ap-drawer"), e = n;
|
|
14
|
+
return (f, o) => (l(), a("div", {
|
|
15
|
+
class: m([r(s)("close")]),
|
|
16
|
+
onClick: o[0] || (o[0] = //@ts-ignore
|
|
17
|
+
(...t) => e.onClose && e.onClose(...t))
|
|
18
|
+
}, [
|
|
19
|
+
c(r(i))
|
|
20
|
+
], 2));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
_ as default
|
|
25
|
+
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { default as ApDrawer } from './ApDrawer.vue';
|
|
2
|
+
import { default as ApDrawerClose } from './components/ApDrawerClose.vue';
|
|
3
3
|
export * from './interface';
|
|
4
|
-
|
|
5
|
-
createDrawer: CreateDrawerFunc;
|
|
6
|
-
};
|
|
7
|
-
declare const ApDrawer: ApDrawerMixedProps;
|
|
8
|
-
export { ApDrawer };
|
|
4
|
+
export { ApDrawer, ApDrawerClose };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { Drawer as e } from "@aplus-frontend/antdv";
|
|
2
1
|
import "./utils/index.mjs";
|
|
2
|
+
import "./ApDrawer.vue2.mjs";
|
|
3
|
+
import "./components/ApDrawerClose.vue2.mjs";
|
|
3
4
|
import "./interface.mjs";
|
|
4
|
-
import { createDrawer as
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { createDrawer as e } from "./utils/createDrawer.mjs";
|
|
6
|
+
import r from "./ApDrawer.vue.mjs";
|
|
7
|
+
import o from "./components/ApDrawerClose.vue.mjs";
|
|
8
|
+
r.createDrawer = e;
|
|
7
9
|
r.name = "ApDrawer";
|
|
10
|
+
r.Close = o;
|
|
11
|
+
r.Close.name = "ApDrawerClose";
|
|
8
12
|
export {
|
|
9
|
-
r as ApDrawer
|
|
13
|
+
r as ApDrawer,
|
|
14
|
+
o as ApDrawerClose
|
|
10
15
|
};
|
|
@@ -14,3 +14,7 @@ export type CreateDrawerFuncReturn = {
|
|
|
14
14
|
close: () => void;
|
|
15
15
|
};
|
|
16
16
|
export type CreateDrawerFunc = (props: CreateDrawerFuncProps) => CreateDrawerFuncReturn;
|
|
17
|
+
export type ApDrawerMixedProps = DrawerProps & {
|
|
18
|
+
createDrawer?: CreateDrawerFunc;
|
|
19
|
+
outSideClick?: boolean;
|
|
20
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-drawer/ap-drawer.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-drawer/ap-drawer.less';
|