@aplus-frontend/ui 0.6.0-beta.21 → 0.6.0-beta.22
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 +76 -74
- package/es/src/ap-drawer/ApDrawer.vue.d.ts +1 -4
- package/es/src/ap-drawer/ApDrawer.vue.mjs +24 -37
- package/es/src/ap-drawer/interface.d.ts +0 -1
- package/es/src/ap-form/item/index.vue.mjs +75 -83
- package/es/src/ap-form/item-group/index.vue.mjs +34 -35
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +18 -20
- package/es/src/ap-grid/index.vue.mjs +46 -46
- package/es/src/ap-grid/interface.d.ts +3 -3
- package/es/src/ap-list/index.vue.mjs +34 -34
- package/es/src/ap-list/interface.d.ts +4 -3
- package/es/src/ap-table/ap-table.vue2.mjs +57 -57
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +15 -15
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/business/ap-keep-alive/index.d.ts +2 -1
- package/es/src/business/ap-keep-alive/index.mjs +11 -9
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +7 -7
- package/es/src/business/ap-keep-alive/utils.d.ts +1 -0
- package/es/src/business/ap-keep-alive/utils.mjs +10 -9
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +36 -30
- package/es/src/business/ap-radio-group/index.d.ts +6 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +1 -1
- package/es/src/index.mjs +65 -63
- 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 +1 -4
- package/lib/src/ap-drawer/ApDrawer.vue.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +0 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +3 -3
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -3
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -3
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/business/ap-keep-alive/index.d.ts +2 -1
- package/lib/src/business/ap-keep-alive/index.js +1 -1
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
- package/lib/src/business/ap-keep-alive/utils.d.ts +1 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +6 -0
- package/lib/src/business/hooks/usePageListApGrid.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 +5 -5
- package/theme/antd-global-overwrite/admin/alert.css +1 -1
- package/theme/antd-global-overwrite/admin/field.css +3 -0
- package/theme/antd-global-overwrite/admin/field.less +4 -0
- package/theme/antd-global-overwrite/admin/index.css +10 -1
- package/theme/antd-global-overwrite/admin/modal.css +6 -0
- package/theme/antd-global-overwrite/admin/modal.less +8 -0
- package/theme/antd-global-overwrite/aplus/alert.css +1 -1
- package/theme/antd-global-overwrite/aplus/field.css +3 -0
- package/theme/antd-global-overwrite/aplus/field.less +4 -0
- package/theme/antd-global-overwrite/aplus/index.css +11 -2
- package/theme/antd-global-overwrite/aplus/modal.css +7 -1
- package/theme/antd-global-overwrite/aplus/modal.less +9 -1
- package/theme/ap-action/item-dropdown.css +1 -1
- package/theme/ap-action/item.css +2 -2
- package/theme/ap-appendix/ap-appendix.css +2 -2
- package/theme/ap-attachment/ap-attachment.css +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +1 -1
- package/theme/ap-button/ap-button.css +1 -1
- package/theme/ap-card/ap-card.css +1 -1
- package/theme/ap-copy/ap-copy.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-download/ap-download.css +4 -4
- package/theme/ap-drawer/ap-drawer.css +5 -6
- package/theme/ap-drawer/ap-drawer.less +4 -7
- package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
- package/theme/ap-field/checkbox.css +1 -1
- package/theme/ap-field/index.css +1 -1
- package/theme/ap-field/number.css +1 -1
- package/theme/ap-field/radio.css +1 -1
- package/theme/ap-field/text-area.css +1 -1
- package/theme/ap-form/ap-form-item-group.css +1 -1
- package/theme/ap-form/ap-form-item.css +4 -1
- package/theme/ap-form/ap-form-item.less +3 -0
- package/theme/ap-form/drawer-form.css +1 -1
- package/theme/ap-form/index.css +8 -5
- package/theme/ap-form/item-text-group.css +1 -1
- package/theme/ap-form/item-text.css +1 -1
- package/theme/ap-form/modal-form.css +1 -1
- package/theme/ap-form/search-form-sorter.css +5 -5
- package/theme/ap-form/search-form.css +8 -5
- package/theme/ap-grid/editable.css +1 -1
- package/theme/ap-grid/index.css +16 -11
- package/theme/ap-grid/index.less +2 -2
- package/theme/ap-group-search/ap-extension-select.css +1 -1
- package/theme/ap-group-search/ap-group-search.css +1 -1
- package/theme/ap-group-search/ap-popover-select.css +1 -1
- package/theme/ap-image/ap-image.css +1 -1
- package/theme/ap-input-radio/ap-input-radio.css +1 -1
- package/theme/ap-label/ap-label.css +1 -1
- package/theme/ap-ladder/ap-ladder.css +4 -4
- package/theme/ap-layout/ap-info-layout.css +1 -1
- package/theme/ap-list/index.css +1 -1
- package/theme/ap-product-info/ap-product-info.css +1 -1
- package/theme/ap-radio-group/ap-radio-group.css +2 -1
- package/theme/ap-radio-group/ap-radio-group.less +1 -0
- package/theme/ap-select-layout/ap-select-layout.css +3 -3
- package/theme/ap-size-input/ap-size-input.css +1 -1
- package/theme/ap-status/ap-status.css +1 -1
- package/theme/ap-summary/index.css +1 -1
- package/theme/ap-table/ap-table-index.css +1 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +1 -1
- package/theme/ap-table/ap-table.css +12 -9
- package/theme/ap-table/setting/index.css +3 -3
- package/theme/ap-table/setting/modal.css +2 -2
- package/theme/ap-table/setting/select-group.css +1 -1
- package/theme/ap-table/setting/sortable-item-meta.css +1 -1
- package/theme/ap-table/setting/sortable-item.css +1 -1
- package/theme/ap-table/setting/sorter.css +2 -2
- package/theme/ap-table-modal/index.css +12 -9
- package/theme/ap-tag/ap-tag-group.css +1 -1
- package/theme/ap-tag/ap-tag.css +4 -4
- package/theme/ap-title/ap-title.css +1 -1
- package/theme/ap-upload/index.css +2 -2
- package/theme/ap-upload/multiple-file.css +1 -1
- package/theme/ap-upload/picture.css +1 -1
- package/theme/ap-upload/single-file.css +2 -2
- package/theme/ap-upload/upload.css +1 -1
- package/theme/ap-upload-single/index.css +1 -1
- package/theme/ap-view/ap-view.css +1 -1
- package/theme/batch-input-group/index.css +1 -1
- package/theme/batch-input-group/popover-input.css +1 -1
- package/theme/check-card/index.css +4 -4
- package/theme/editable-table/index.css +9 -6
- package/theme/full-screen/index.css +1 -1
- package/theme/index.css +46 -39
- package/theme/mask/index.css +1 -1
- package/theme/mixins/config.less +3 -3
- package/theme/mixins/mixins.css +1 -1
- package/theme/scroll-bar/index.css +1 -1
- package/theme/scroll-view/index.css +1 -1
- package/theme/splitter/index.css +2 -2
- package/theme/text/group.css +1 -1
- package/theme/text/index.css +2 -2
- package/theme/ui-mode.css +2 -0
- package/theme/ui-mode.less +2 -0
- package/theme/work-order-modal/index.css +1 -1
package/es/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import "./src/hooks/index.mjs";
|
|
|
5
5
|
import { configProviderProps as A } from "./src/config-provider/config-provider-props.mjs";
|
|
6
6
|
import { DEFAULT_NAMESPACE as n, DEFAULT_UIMODE as c, configProviderContextKey as F } from "./src/config-provider/constants.mjs";
|
|
7
7
|
import { keysOf as T, provideGlobalConfig as S, useGlobalConfig as b } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
8
|
-
import { buildLocaleContext as g, buildTranslator as D, localeContextKey as
|
|
9
|
-
import { defaultNamespace as R, namespaceContextKey as L, useGetDerivedNamespace as
|
|
8
|
+
import { buildLocaleContext as g, buildTranslator as D, localeContextKey as h, translate as G, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { defaultNamespace as R, namespaceContextKey as L, useGetDerivedNamespace as M, useNamespace as v } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
10
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";
|
|
@@ -29,10 +29,10 @@ import { default as Fe } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
|
29
29
|
import { default as Te } from "./src/ap-form/dependency/index.vue.mjs";
|
|
30
30
|
import { default as be } from "./src/ap-form/set/index.vue.mjs";
|
|
31
31
|
import { default as ge } from "./src/ap-form/drawer-form/index.vue.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as he } from "./src/ap-form/render/control.vue.mjs";
|
|
33
33
|
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
|
-
import { ApField as
|
|
35
|
+
import { ApField as Me } from "./src/ap-field/index.mjs";
|
|
36
36
|
import { ApFieldText as Ne } from "./src/ap-field/text/index.mjs";
|
|
37
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";
|
|
@@ -55,10 +55,10 @@ import { default as Fo } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
|
55
55
|
import { default as To } from "./src/ap-action/group/index.vue.mjs";
|
|
56
56
|
import { DictCode as bo, langMap as Co } from "./src/work-order-modal/interfaces.mjs";
|
|
57
57
|
import { createWorkOrderModal as Do } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
58
|
-
import { default as
|
|
58
|
+
import { default as Go } 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
|
-
import { default as
|
|
61
|
+
import { default as vo } from "./src/ap-info-layout/ApInfoLayout.vue.mjs";
|
|
62
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";
|
|
@@ -82,10 +82,10 @@ import { ApBatchActionGroup as Ir } from "./src/business/ap-batch-action-group/i
|
|
|
82
82
|
import { ApButtonGroup as Sr } from "./src/business/ap-button-group/index.mjs";
|
|
83
83
|
import { ApCard as Cr } from "./src/business/ap-card/index.mjs";
|
|
84
84
|
import { ApExpandAlert as Dr } from "./src/business/ap-expand-alert/index.mjs";
|
|
85
|
-
import { ApExportGroupActionType as
|
|
85
|
+
import { ApExportGroupActionType as Gr } from "./src/business/ap-export-group/interface.mjs";
|
|
86
86
|
import { ApExportGroup as Er } from "./src/business/ap-export-group/index.mjs";
|
|
87
87
|
import { handleExportDownload as Lr } from "./src/business/ap-export-group/handleExportDownload.mjs";
|
|
88
|
-
import { convertExportField as
|
|
88
|
+
import { convertExportField as vr } from "./src/business/ap-export-group/convertExportField.mjs";
|
|
89
89
|
import { ApImage as wr } from "./src/business/ap-image/index.mjs";
|
|
90
90
|
import { ApInputRadio as kr } from "./src/business/ap-input-radio/index.mjs";
|
|
91
91
|
import { ApLabel as Kr, ApLabelGroup as Or } from "./src/business/ap-label/index.mjs";
|
|
@@ -105,42 +105,43 @@ import { ApAppendix as nt } from "./src/business/ap-appendix/index.mjs";
|
|
|
105
105
|
import { ApExtensionSelect as Ft, ApGroupSearch as It, ApPopoverSelect as Tt } from "./src/business/ap-group-search/index.mjs";
|
|
106
106
|
import { default as bt } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
107
107
|
import { default as gt } from "./src/business/batch-input-group/index.vue.mjs";
|
|
108
|
-
import { default as
|
|
108
|
+
import { default as ht } from "./src/business/batch-input-group/form-item.vue.mjs";
|
|
109
109
|
import { ApSizeInput as Pt } from "./src/business/ap-size-input/index.mjs";
|
|
110
110
|
import { ApProductInfo as Rt } from "./src/business/ap-product-info/index.mjs";
|
|
111
|
-
import { ApCopy as
|
|
111
|
+
import { ApCopy as Mt } from "./src/business/ap-copy/index.mjs";
|
|
112
112
|
import { ApView as Nt } from "./src/business/ap-view/index.mjs";
|
|
113
113
|
import { ApRadioGroup as yt } from "./src/business/ap-radio-group/index.mjs";
|
|
114
114
|
import { ApKeepAliveProps as Bt, forceStopTags as Kt } from "./src/business/ap-keep-alive/interface.mjs";
|
|
115
115
|
import { ApKeepAlive as Ut } from "./src/business/ap-keep-alive/index.mjs";
|
|
116
116
|
import { LruCacher as _t } from "./src/business/ap-keep-alive/cacher/lru-cacher.mjs";
|
|
117
117
|
import { useApKeepAliveInject as Wt } from "./src/business/ap-keep-alive/hook.mjs";
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import { default as Yt } from "./src/editable-table/
|
|
122
|
-
import { default as ep } from "./src/
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import { default as fp } from "./src/scroll-bar/
|
|
126
|
-
import { default as lp } from "./src/scroll-
|
|
127
|
-
import { default as dp } from "./src/
|
|
128
|
-
import { default as up } from "./src/
|
|
129
|
-
import { default as ip } from "./src/
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import { default as Sp } from "./src/ap-grid/
|
|
133
|
-
import { default as Cp } from "./src/ap-grid/editable/
|
|
134
|
-
import { default as Dp } from "./src/
|
|
135
|
-
import { default as
|
|
136
|
-
import { default as Ep } from "./src/
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
118
|
+
import { matches as jt } from "./src/business/ap-keep-alive/utils.mjs";
|
|
119
|
+
import { useTablePaging as qt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
120
|
+
import { ApTable as Qt } from "./src/ap-table/index.mjs";
|
|
121
|
+
import { default as Yt } from "./src/editable-table/index.vue.mjs";
|
|
122
|
+
import { default as ep } from "./src/editable-table/form-item.vue.mjs";
|
|
123
|
+
import { default as rp } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
124
|
+
import { ensureRangeValue as pp } from "./src/scroll-bar/utils/index.mjs";
|
|
125
|
+
import { default as fp } from "./src/scroll-bar/index.vue.mjs";
|
|
126
|
+
import { default as lp } from "./src/scroll-bar/internal.vue.mjs";
|
|
127
|
+
import { default as dp } from "./src/scroll-view/index.vue.mjs";
|
|
128
|
+
import { default as up } from "./src/portal/index.vue.mjs";
|
|
129
|
+
import { default as ip } from "./src/full-screen/index.vue.mjs";
|
|
130
|
+
import { default as cp } from "./src/resize-observer/index.vue.mjs";
|
|
131
|
+
import { ROW_SELECTION_FIELD as Ip } from "./src/ap-grid/constants.mjs";
|
|
132
|
+
import { default as Sp } from "./src/ap-grid/index.vue.mjs";
|
|
133
|
+
import { default as Cp } from "./src/ap-grid/editable/index.vue.mjs";
|
|
134
|
+
import { default as Dp } from "./src/ap-grid/editable/form-item.vue.mjs";
|
|
135
|
+
import { default as Gp } from "./src/text/index.vue.mjs";
|
|
136
|
+
import { default as Ep } from "./src/text/group.vue.mjs";
|
|
137
|
+
import { default as Lp } from "./src/mask/index.vue.mjs";
|
|
138
|
+
import { Splitter as vp } from "./src/splitter/index.mjs";
|
|
139
|
+
import { useMessage as wp } from "./src/hooks/useMessage.mjs";
|
|
140
|
+
import { useControllableValue as kp } from "./src/hooks/useControllableValue.mjs";
|
|
141
|
+
import { useManualRef as Kp } from "./src/hooks/useManualRef.mjs";
|
|
142
|
+
import { useThrottleRef as Up } from "./src/hooks/useThrottleRef.mjs";
|
|
143
|
+
import { useFullScreen as _p } from "./src/hooks/useFullScreen.mjs";
|
|
144
|
+
import { useResize as Wp } from "./src/hooks/useResize.mjs";
|
|
144
145
|
const a = console.log;
|
|
145
146
|
a(`APlus-UI version ${p}`);
|
|
146
147
|
const l = {
|
|
@@ -167,17 +168,17 @@ export {
|
|
|
167
168
|
Sr as ApButtonGroup,
|
|
168
169
|
Cr as ApCard,
|
|
169
170
|
er as ApConfirmButton,
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
Mt as ApCopy,
|
|
172
|
+
rp as ApDescriptions,
|
|
172
173
|
Ko as ApDownLoadNeedNameKeyDefault,
|
|
173
174
|
Uo as ApDownload,
|
|
174
175
|
rr as ApDrawer,
|
|
175
176
|
pr as ApDrawerClose,
|
|
176
177
|
Dr as ApExpandAlert,
|
|
177
178
|
Er as ApExportGroup,
|
|
178
|
-
|
|
179
|
+
Gr as ApExportGroupActionType,
|
|
179
180
|
Ft as ApExtensionSelect,
|
|
180
|
-
|
|
181
|
+
Me as ApField,
|
|
181
182
|
ye as ApFieldCheckbox,
|
|
182
183
|
Be as ApFieldDate,
|
|
183
184
|
He as ApFieldDateRange,
|
|
@@ -193,11 +194,11 @@ export {
|
|
|
193
194
|
$e as ApFieldTextArea,
|
|
194
195
|
ao as ApFieldTreeSelect,
|
|
195
196
|
me as ApForm,
|
|
196
|
-
|
|
197
|
+
he as ApFormControlRender,
|
|
197
198
|
Te as ApFormDependency,
|
|
198
199
|
ge as ApFormDrawerForm,
|
|
199
200
|
xe as ApFormItem,
|
|
200
|
-
|
|
201
|
+
ht as ApFormItemBatchInput,
|
|
201
202
|
oe as ApFormItemCheckbox,
|
|
202
203
|
$ as ApFormItemDate,
|
|
203
204
|
H as ApFormItemDateRange,
|
|
@@ -216,10 +217,10 @@ export {
|
|
|
216
217
|
Re as ApFormProvider,
|
|
217
218
|
ne as ApFormSearchForm,
|
|
218
219
|
be as ApFormSet,
|
|
219
|
-
|
|
220
|
+
Sp as ApGrid,
|
|
220
221
|
It as ApGroupSearch,
|
|
221
222
|
wr as ApImage,
|
|
222
|
-
|
|
223
|
+
vo as ApInfoLayout,
|
|
223
224
|
kr as ApInputRadio,
|
|
224
225
|
Ut as ApKeepAlive,
|
|
225
226
|
Bt as ApKeepAliveProps,
|
|
@@ -237,12 +238,12 @@ export {
|
|
|
237
238
|
Hr as ApStatus,
|
|
238
239
|
qr as ApStatusGroup,
|
|
239
240
|
st as ApSummary,
|
|
240
|
-
|
|
241
|
+
Qt as ApTable,
|
|
241
242
|
lr as ApTableModal,
|
|
242
243
|
Eo as ApTag,
|
|
243
244
|
Lo as ApTagGroup,
|
|
244
|
-
|
|
245
|
-
|
|
245
|
+
Gp as ApText,
|
|
246
|
+
Ep as ApTextGroup,
|
|
246
247
|
Qr as ApTitle,
|
|
247
248
|
fr as ApTransformDataHelper,
|
|
248
249
|
ko as ApUpload,
|
|
@@ -255,22 +256,22 @@ export {
|
|
|
255
256
|
n as DEFAULT_NAMESPACE,
|
|
256
257
|
c as DEFAULT_UIMODE,
|
|
257
258
|
bo as DictCode,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
259
|
+
Cp as EditableGrid,
|
|
260
|
+
Dp as EditableGridFormItem,
|
|
261
|
+
Yt as EditableTable,
|
|
262
|
+
ep as EditableTableFormItem,
|
|
263
|
+
ip as FullScreen,
|
|
264
|
+
lp as InternalScrollBar,
|
|
264
265
|
_t as LruCacher,
|
|
265
|
-
|
|
266
|
+
Lp as Mask,
|
|
266
267
|
wo as NeedNameKeyDefault,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
268
|
+
up as Portal,
|
|
269
|
+
Ip as ROW_SELECTION_FIELD,
|
|
270
|
+
cp as ResizeObserver,
|
|
271
|
+
fp as ScrollBar,
|
|
272
|
+
dp as ScrollView,
|
|
273
|
+
vp as Splitter,
|
|
274
|
+
Go as WorkOrderModal,
|
|
274
275
|
mo as adminToken,
|
|
275
276
|
lo as aplusToken,
|
|
276
277
|
g as buildLocaleContext,
|
|
@@ -278,41 +279,42 @@ export {
|
|
|
278
279
|
ft as computedRecords,
|
|
279
280
|
F as configProviderContextKey,
|
|
280
281
|
A as configProviderProps,
|
|
281
|
-
|
|
282
|
+
vr as convertExportField,
|
|
282
283
|
Do as createWorkOrderModal,
|
|
283
284
|
l as default,
|
|
284
285
|
R as defaultNamespace,
|
|
285
|
-
|
|
286
|
+
pp as ensureRangeValue,
|
|
286
287
|
mt as flattenColumns,
|
|
287
288
|
Kt as forceStopTags,
|
|
288
289
|
lt as formatDataIndex,
|
|
289
290
|
xt as formatNumber,
|
|
290
291
|
y as globalConfigCached,
|
|
291
292
|
Lr as handleExportDownload,
|
|
293
|
+
jt as isNameMatches,
|
|
292
294
|
T as keysOf,
|
|
293
295
|
Co as langMap,
|
|
294
|
-
|
|
296
|
+
h as localeContextKey,
|
|
295
297
|
Vr as locales,
|
|
296
298
|
L as namespaceContextKey,
|
|
297
299
|
s as pathMap,
|
|
298
300
|
S as provideGlobalConfig,
|
|
299
|
-
|
|
301
|
+
G as translate,
|
|
300
302
|
Wt as useApKeepAliveInject,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
kp as useControllableValue,
|
|
304
|
+
_p as useFullScreen,
|
|
305
|
+
M as useGetDerivedNamespace,
|
|
304
306
|
b as useGlobalConfig,
|
|
305
307
|
pt as useGridRefresh,
|
|
306
308
|
P as useLocale,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
Kp as useManualRef,
|
|
310
|
+
wp as useMessage,
|
|
311
|
+
v as useNamespace,
|
|
310
312
|
rt as usePageListApGrid,
|
|
311
313
|
Yr as usePageListApTable,
|
|
312
|
-
|
|
314
|
+
Wp as useResize,
|
|
313
315
|
dr as useTableModal,
|
|
314
|
-
|
|
316
|
+
qt as useTablePaging,
|
|
315
317
|
et as useTableRefresh,
|
|
316
318
|
ur as useTableSelectModal,
|
|
317
|
-
|
|
319
|
+
Up as useThrottleRef
|
|
318
320
|
};
|
|
@@ -2,9 +2,7 @@ import { ApDrawerMixedProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
|
-
slots:
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
5
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
8
6
|
refs: {};
|
|
9
7
|
rootEl: any;
|
|
10
8
|
};
|
|
@@ -18,7 +16,6 @@ declare const __VLS_component: DefineComponent<ApDrawerMixedProps, {}, {}, {}, {
|
|
|
18
16
|
closable: boolean;
|
|
19
17
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
|
20
18
|
rootStyle: CSSProperties;
|
|
21
|
-
outSideClick: boolean;
|
|
22
19
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
23
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
21
|
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as d, h as
|
|
2
|
-
import { Drawer as
|
|
1
|
+
import { defineComponent as m, useSlots as d, h as f, createBlock as u, openBlock as y, unref as e, mergeProps as C, createSlots as h, renderList as B, withCtx as S, renderSlot as x, normalizeProps as b, guardReactiveProps as _ } from "vue";
|
|
2
|
+
import { Drawer as g } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "./components/ApDrawerClose.vue2.mjs";
|
|
5
|
-
import { omit as
|
|
6
|
-
import {
|
|
7
|
-
import { useNamespace as x } from "../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
import { omit as w } from "lodash-unified";
|
|
6
|
+
import { useNamespace as k } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
7
|
import v from "./components/ApDrawerClose.vue.mjs";
|
|
9
|
-
const
|
|
8
|
+
const V = /* @__PURE__ */ m({
|
|
10
9
|
name: "ApDrawer",
|
|
11
10
|
__name: "ApDrawer",
|
|
12
11
|
props: {
|
|
@@ -50,42 +49,30 @@ const U = /* @__PURE__ */ d({
|
|
|
50
49
|
"onUpdate:visible": {},
|
|
51
50
|
"onUpdate:open": {},
|
|
52
51
|
onClose: {},
|
|
53
|
-
createDrawer: {}
|
|
54
|
-
outSideClick: { type: Boolean, default: !0 }
|
|
52
|
+
createDrawer: {}
|
|
55
53
|
},
|
|
56
54
|
emits: ["update:open"],
|
|
57
|
-
setup(
|
|
58
|
-
const
|
|
55
|
+
setup(a, { emit: r }) {
|
|
56
|
+
const n = d(), l = r, { b: s } = k("ap-drawer"), p = f(v, {
|
|
59
57
|
onClose: () => {
|
|
60
|
-
|
|
58
|
+
l("update:open", !1);
|
|
61
59
|
}
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
() =>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
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"]));
|
|
60
|
+
}), o = a;
|
|
61
|
+
return (i, A) => (y(), u(e(g), C({
|
|
62
|
+
...e(w)(o, ["class", "extra", "outSideClick"])
|
|
63
|
+
}, {
|
|
64
|
+
class: e(s)(),
|
|
65
|
+
extra: o.extra ? o.extra : e(p)
|
|
66
|
+
}), h({ _: 2 }, [
|
|
67
|
+
B(n, (D, t) => ({
|
|
68
|
+
name: t,
|
|
69
|
+
fn: S((c) => [
|
|
70
|
+
x(i.$slots, t, b(_(c || {})))
|
|
71
|
+
])
|
|
72
|
+
}))
|
|
73
|
+
]), 1040, ["class", "extra"]));
|
|
87
74
|
}
|
|
88
75
|
});
|
|
89
76
|
export {
|
|
90
|
-
|
|
77
|
+
V as default
|
|
91
78
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as D, useSlots as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { isFunction as
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
1
|
+
import { defineComponent as D, useSlots as L, ref as b, onMounted as _, computed as $, unref as l, cloneVNode as j, createBlock as v, openBlock as F, mergeProps as q, createSlots as E, withCtx as i, resolveDynamicComponent as K, renderList as O, createElementVNode as Q, normalizeClass as U, createVNode as p, normalizeStyle as Y, renderSlot as G, normalizeProps as H, guardReactiveProps as J } from "vue";
|
|
2
|
+
import { Form as M, Tooltip as W, TypographyText as X } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as Z } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { isFunction as V, cloneDeep as ee, isArray as oe, omit as g } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as le } from "../constant.mjs";
|
|
6
|
+
import { QuestionCircleOutlined as te } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
9
|
-
import { isPromise as
|
|
10
|
-
import {
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
const
|
|
8
|
+
import { useInjectForm as re } from "../context.mjs";
|
|
9
|
+
import { isPromise as ae } from "@fruits-chain/utils";
|
|
10
|
+
import { getValidVNodeList as ne } from "../../utils/slot.mjs";
|
|
11
|
+
import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
const Ve = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -54,110 +54,102 @@ const Ce = /* @__PURE__ */ D({
|
|
|
54
54
|
transform: {},
|
|
55
55
|
description: {}
|
|
56
56
|
},
|
|
57
|
-
setup(
|
|
58
|
-
const o =
|
|
59
|
-
|
|
60
|
-
let e =
|
|
61
|
-
|
|
57
|
+
setup(B, { expose: h }) {
|
|
58
|
+
const o = B, s = L(), { model: u, updateModel: f, internalInstance: m } = re(), { m: c, b: x } = ie("ap-form-item"), d = b(!1), a = b(), [, C] = Z();
|
|
59
|
+
_(async () => {
|
|
60
|
+
let e = V(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
61
|
+
ae(e) && (e = await e), m == null || m.registerField({
|
|
62
62
|
name: o.name,
|
|
63
|
-
initialValue:
|
|
63
|
+
initialValue: ee(e),
|
|
64
64
|
transform: o.transform
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
const y =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
(e)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
const y = $(() => o.name ? oe(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(u)) : u == null ? void 0 : u.value[o.name] : null);
|
|
68
|
+
function k() {
|
|
69
|
+
var r, n;
|
|
70
|
+
const e = ((r = s.default) == null ? void 0 : r.call(s)) || [];
|
|
71
|
+
if (!o.name)
|
|
72
|
+
return e[0];
|
|
73
|
+
const t = ne(e)[0];
|
|
74
|
+
return t ? j(t, {
|
|
75
|
+
[o.valuePropName]: l(y),
|
|
76
|
+
[`onUpdate:${o.valuePropName}`]: N,
|
|
77
|
+
bordered: o.bordered ? !1 : (n = t == null ? void 0 : t.props) == null ? void 0 : n.bordered,
|
|
78
|
+
onFocus: P,
|
|
79
|
+
onBlur: S
|
|
80
|
+
}) : null;
|
|
79
81
|
}
|
|
80
|
-
function
|
|
81
|
-
f.
|
|
82
|
+
function N(e) {
|
|
83
|
+
f == null || f(o.name, e);
|
|
82
84
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
+
function P() {
|
|
86
|
+
d.value = !0;
|
|
85
87
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const e = t(v);
|
|
91
|
-
return e ? E(e, {
|
|
92
|
-
[o.valuePropName]: t(y),
|
|
93
|
-
[`onUpdate:${o.valuePropName}`]: S,
|
|
94
|
-
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
95
|
-
onFocus: w,
|
|
96
|
-
onBlur: T
|
|
97
|
-
}) : null;
|
|
98
|
-
});
|
|
99
|
-
function I() {
|
|
88
|
+
function S() {
|
|
89
|
+
d.value = !1;
|
|
90
|
+
}
|
|
91
|
+
function T() {
|
|
100
92
|
var e;
|
|
101
|
-
(e =
|
|
93
|
+
(e = a.value) == null || e.onFieldBlur();
|
|
102
94
|
}
|
|
103
|
-
function
|
|
95
|
+
function w() {
|
|
104
96
|
var e;
|
|
105
|
-
(e =
|
|
97
|
+
(e = a.value) == null || e.onFieldChange();
|
|
106
98
|
}
|
|
107
|
-
function
|
|
99
|
+
function I() {
|
|
108
100
|
var e;
|
|
109
|
-
(e =
|
|
101
|
+
(e = a.value) == null || e.clearValidate();
|
|
110
102
|
}
|
|
111
|
-
function
|
|
103
|
+
function z() {
|
|
112
104
|
var e;
|
|
113
|
-
(e =
|
|
105
|
+
(e = a.value) == null || e.resetField();
|
|
114
106
|
}
|
|
115
107
|
function R(e = !1) {
|
|
116
|
-
const
|
|
108
|
+
const t = l(y);
|
|
117
109
|
if (!e || !o.transform)
|
|
118
|
-
return
|
|
119
|
-
const r =
|
|
120
|
-
return o.transform ? r(
|
|
110
|
+
return t;
|
|
111
|
+
const r = V(o.transform) ? o.transform : o.transform.transformer;
|
|
112
|
+
return o.transform ? r(t) : t;
|
|
121
113
|
}
|
|
122
|
-
return
|
|
123
|
-
onFieldBlur:
|
|
124
|
-
onFieldChange:
|
|
125
|
-
clearValidate:
|
|
126
|
-
resetField:
|
|
114
|
+
return h({
|
|
115
|
+
onFieldBlur: T,
|
|
116
|
+
onFieldChange: w,
|
|
117
|
+
clearValidate: I,
|
|
118
|
+
resetField: z,
|
|
127
119
|
getFieldValue: R
|
|
128
|
-
}), (e,
|
|
120
|
+
}), (e, t) => (F(), v(l(M).Item, q(
|
|
129
121
|
{
|
|
130
122
|
ref_key: "formItemRef",
|
|
131
|
-
ref:
|
|
123
|
+
ref: a
|
|
132
124
|
},
|
|
133
|
-
|
|
125
|
+
l(g)(o, [...l(le), "tooltip", "label", "description"]),
|
|
134
126
|
{
|
|
135
127
|
class: {
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
128
|
+
[l(c)("bordered")]: e.bordered,
|
|
129
|
+
[l(c)("focused")]: e.bordered && d.value,
|
|
130
|
+
[l(x)()]: !0
|
|
139
131
|
},
|
|
140
132
|
colon: e.bordered ? !1 : o.colon
|
|
141
133
|
}
|
|
142
|
-
),
|
|
134
|
+
), E({
|
|
143
135
|
default: i(() => [
|
|
144
|
-
|
|
136
|
+
(F(), v(K(k())))
|
|
145
137
|
]),
|
|
146
138
|
_: 2
|
|
147
139
|
}, [
|
|
148
140
|
o.tooltip ? {
|
|
149
141
|
name: "tooltip",
|
|
150
142
|
fn: i(({ class: r }) => [
|
|
151
|
-
|
|
152
|
-
class:
|
|
143
|
+
Q("span", {
|
|
144
|
+
class: U(r)
|
|
153
145
|
}, [
|
|
154
|
-
p(
|
|
146
|
+
p(l(W), {
|
|
155
147
|
title: o.tooltip
|
|
156
148
|
}, {
|
|
157
149
|
default: i(() => [
|
|
158
|
-
p(
|
|
159
|
-
style:
|
|
160
|
-
color:
|
|
150
|
+
p(l(te), {
|
|
151
|
+
style: Y({
|
|
152
|
+
color: l(C).colorTextTertiary,
|
|
161
153
|
fontSize: "14px",
|
|
162
154
|
transform: "translateY(1px)"
|
|
163
155
|
})
|
|
@@ -172,7 +164,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
172
164
|
e.label ? {
|
|
173
165
|
name: "label",
|
|
174
166
|
fn: i(() => [
|
|
175
|
-
p(
|
|
167
|
+
p(l(X), {
|
|
176
168
|
content: e.label,
|
|
177
169
|
ellipsis: { tooltip: e.label },
|
|
178
170
|
style: { "min-width": "0px", flex: "1" }
|
|
@@ -180,15 +172,15 @@ const Ce = /* @__PURE__ */ D({
|
|
|
180
172
|
]),
|
|
181
173
|
key: "1"
|
|
182
174
|
} : void 0,
|
|
183
|
-
|
|
184
|
-
name:
|
|
185
|
-
fn: i((
|
|
186
|
-
|
|
175
|
+
O(l(g)(s, "default"), (r, n) => ({
|
|
176
|
+
name: n,
|
|
177
|
+
fn: i((A) => [
|
|
178
|
+
G(e.$slots, n, H(J(A || {})))
|
|
187
179
|
])
|
|
188
180
|
}))
|
|
189
181
|
]), 1040, ["class", "colon"]));
|
|
190
182
|
}
|
|
191
183
|
});
|
|
192
184
|
export {
|
|
193
|
-
|
|
185
|
+
Ve as default
|
|
194
186
|
};
|