@aplus-frontend/ui 0.1.24 → 0.1.26
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 +58 -55
- package/es/src/ap-form/ap-form-item.vue.mjs +26 -26
- package/es/src/ap-form/search-form/index.vue.mjs +1 -0
- package/es/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/es/src/ap-layout/ApInfoLayout.vue.mjs +41 -0
- package/es/src/ap-layout/ApInfoLayout.vue2.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +4 -0
- package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +42 -0
- package/es/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +4 -0
- package/es/src/ap-layout/index.d.ts +2 -1
- package/es/src/ap-layout/index.mjs +2 -1
- package/es/src/ap-layout/interface.d.ts +8 -2
- package/es/src/ap-layout/interface.mjs +1 -0
- package/es/src/ap-layout/style/ap-info-layout.css +17 -0
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +91 -89
- package/es/src/ap-upload/components/Picture.vue2.mjs +114 -112
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +10 -7
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +37 -27
- package/es/src/business/ap-input-radio/interface.d.ts +4 -3
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/es/src/business/ap-ladder/ApLadder.vue.mjs +4 -0
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +176 -0
- package/es/src/business/ap-ladder/interface.d.ts +134 -0
- package/es/src/business/ap-ladder/interface.mjs +10 -0
- package/es/src/business/ap-ladder/style.css +56 -0
- package/es/src/business/hooks/index.d.ts +1 -0
- package/es/src/business/hooks/index.mjs +3 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +25 -3
- package/es/src/business/hooks/usePageListApTable.mjs +40 -29
- package/es/src/business/hooks/useTableRefresh.d.ts +17 -0
- package/es/src/business/hooks/useTableRefresh.mjs +16 -0
- package/es/src/business/index.d.ts +719 -9
- package/es/src/business/index.mjs +25 -22
- package/es/src/components.d.ts +1 -0
- package/es/src/index.mjs +206 -203
- package/es/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/es/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/es/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
- package/lib/src/ap-layout/ApInfoLayout.vue.js +1 -0
- package/lib/src/ap-layout/ApInfoLayout.vue2.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +1 -0
- package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -0
- package/lib/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
- package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue2.js → ap-info-layout-aplus/ap-info-layout.vue.js} +1 -1
- package/lib/src/ap-layout/index.d.ts +2 -1
- package/lib/src/ap-layout/index.js +1 -1
- package/lib/src/ap-layout/interface.d.ts +8 -2
- package/lib/src/ap-layout/interface.js +1 -0
- package/lib/src/ap-layout/style/ap-info-layout.css +17 -0
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/interface.d.ts +4 -3
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.js +1 -0
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -0
- package/lib/src/business/ap-ladder/interface.d.ts +134 -0
- package/lib/src/business/ap-ladder/interface.js +1 -0
- package/lib/src/business/ap-ladder/style.css +56 -0
- package/lib/src/business/hooks/index.d.ts +1 -0
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +25 -3
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +17 -0
- package/lib/src/business/hooks/useTableRefresh.js +1 -0
- package/lib/src/business/index.d.ts +719 -9
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +8 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
- package/lib/src/theme/ap-ladder/ap-ladder.css +56 -0
- package/lib/src/theme/ap-layout/ap-info-layout.css +17 -0
- package/package.json +1 -1
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +0 -4
- /package/es/src/ap-layout/{ap-info-layout/ap-info-layout.vue.mjs → ap-info-layout-aplus/ap-info-layout.vue2.mjs} +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.mjs +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/es/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
- /package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue.js → ap-info-layout-aplus/ap-info-layout.vue2.js} +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.js +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
- /package/lib/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
package/es/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import { configProviderProps as x } from "./src/config-provider/config-provider-
|
|
|
5
5
|
import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
|
|
6
6
|
import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
|
|
7
7
|
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { defaultNamespace as
|
|
9
|
-
import { ConfigProvider as B, globalConfigCached as
|
|
8
|
+
import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as B, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
@@ -22,10 +22,10 @@ import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-r
|
|
|
22
22
|
import { useForm as Ce } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
23
|
import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
|
|
24
24
|
import { Field as Pe } from "./src/pro-form/index.mjs";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
26
|
import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
27
|
import { default as ve } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
29
|
import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
31
|
import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
|
|
@@ -47,10 +47,10 @@ import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
|
|
|
47
47
|
import { default as bo } from "./src/pro-table/components/table-action.vue.mjs";
|
|
48
48
|
import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
49
49
|
import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
|
-
import { useTable as
|
|
50
|
+
import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
51
|
import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
|
|
52
52
|
import { default as vo } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
-
import { default as
|
|
53
|
+
import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
56
56
|
import { default as Ko } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
@@ -74,10 +74,10 @@ import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
|
|
|
74
74
|
import { default as br } from "./src/ap-field/text-area/index.vue.mjs";
|
|
75
75
|
import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
|
|
76
76
|
import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
|
|
77
|
-
import { default as
|
|
77
|
+
import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
|
|
78
78
|
import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
|
|
79
79
|
import { default as vr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
|
-
import { default as
|
|
80
|
+
import { default as Lr } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
81
|
import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
|
|
82
82
|
import { ApActionItem as Er } from "./src/ap-action/index.mjs";
|
|
83
83
|
import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
@@ -93,28 +93,29 @@ import { createWorkOrderModal as tt } from "./src/work-order-modal/createWorkOrd
|
|
|
93
93
|
import { default as pt } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
94
94
|
import { default as mt } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
95
95
|
import { default as st } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
96
|
-
import { default as xt } from "./src/ap-layout/
|
|
96
|
+
import { default as xt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
97
97
|
import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
98
|
import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
99
|
import { ApDownLoadNeedNameKeyDefault as Tt } from "./src/ap-download/interface.mjs";
|
|
100
100
|
import { default as Ct } from "./src/ap-download/ap-download.vue.mjs";
|
|
101
101
|
import { CheckCard as St } from "./src/check-card/index.mjs";
|
|
102
102
|
import { default as gt } from "./src/check-card/group.vue.mjs";
|
|
103
|
-
import { ApModal as
|
|
103
|
+
import { ApModal as ht } from "./src/ap-modal/index.mjs";
|
|
104
104
|
import { default as Mt } from "./src/ap-list/index.vue.mjs";
|
|
105
105
|
import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
106
|
+
import { useTableRefresh as Bt } from "./src/business/hooks/useTableRefresh.mjs";
|
|
107
|
+
import { default as wt } from "./src/business/ap-table-modal/index.mjs";
|
|
108
|
+
import { useTableModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
109
|
+
import { useTableSelectModal as Et } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
110
|
+
import { ApAttachment as Xt, ApBatchAction as Yt, ApBatchActionGroup as Ht, ApExpandAlert as Ot, ApExportGroup as Wt, ApImage as zt, ApInputRadio as Ut, ApLabel as Vt, ApLabelGroup as $t, ApLadder as jt, ApSelectLayout as qt, ApStatus as Jt, ApStatusGroup as Qt, ApTitle as Zt } from "./src/business/index.mjs";
|
|
111
|
+
import { ApTransformDataHelper as ea } from "./src/utils/ap-trans-data/index.mjs";
|
|
112
|
+
import { useTablePaging as ra } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
113
|
+
import { default as aa } from "./src/ap-table/ap-table.vue.mjs";
|
|
114
|
+
import { default as fa } from "./src/editable-table/index.vue.mjs";
|
|
115
|
+
import { default as la } from "./src/editable-table/form-item.vue.mjs";
|
|
116
|
+
import { default as da } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
117
|
+
import { useMessage as ia } from "./src/hooks/useMessage.mjs";
|
|
118
|
+
import { useControllableValue as na } from "./src/hooks/useControllableValue.mjs";
|
|
118
119
|
const p = {
|
|
119
120
|
install: (r) => {
|
|
120
121
|
for (const t in o) {
|
|
@@ -130,24 +131,24 @@ export {
|
|
|
130
131
|
Wr as ApActionItemDropdown,
|
|
131
132
|
Xr as ApActionItemModal,
|
|
132
133
|
Hr as ApActionItemPopconfirm,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
Xt as ApAttachment,
|
|
135
|
+
Yt as ApBatchAction,
|
|
136
|
+
Ht as ApBatchActionGroup,
|
|
136
137
|
Qr as ApCustomColumn,
|
|
137
138
|
_r as ApCustomSelect,
|
|
138
|
-
|
|
139
|
+
da as ApDescriptions,
|
|
139
140
|
Tt as ApDownLoadNeedNameKeyDefault,
|
|
140
141
|
Ct as ApDownload,
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
Ot as ApExpandAlert,
|
|
143
|
+
Wt as ApExportGroup,
|
|
143
144
|
fr as ApField,
|
|
144
145
|
dr as ApFieldCheckbox,
|
|
145
146
|
ir as ApFieldDate,
|
|
146
147
|
Ir as ApFieldDateRange,
|
|
147
148
|
nr as ApFieldNumber,
|
|
148
|
-
|
|
149
|
+
Dr as ApFieldPassword,
|
|
149
150
|
cr as ApFieldRadio,
|
|
150
|
-
|
|
151
|
+
Lr as ApFieldRate,
|
|
151
152
|
vr as ApFieldSegmented,
|
|
152
153
|
Pr as ApFieldSelect,
|
|
153
154
|
Rr as ApFieldSlider,
|
|
@@ -160,7 +161,7 @@ export {
|
|
|
160
161
|
ko as ApFormItemDate,
|
|
161
162
|
yo as ApFormItemDateRange,
|
|
162
163
|
Zo as ApFormItemGroup,
|
|
163
|
-
|
|
164
|
+
Lo as ApFormItemNumber,
|
|
164
165
|
Ko as ApFormItemRadio,
|
|
165
166
|
Yo as ApFormItemSelect,
|
|
166
167
|
Oo as ApFormItemSwitch,
|
|
@@ -170,27 +171,28 @@ export {
|
|
|
170
171
|
er as ApFormList,
|
|
171
172
|
ar as ApFormModalForm,
|
|
172
173
|
rr as ApFormSearchForm,
|
|
173
|
-
|
|
174
|
+
zt as ApImage,
|
|
174
175
|
xt as ApInfoLayout,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
Ut as ApInputRadio,
|
|
177
|
+
Vt as ApLabel,
|
|
178
|
+
$t as ApLabelGroup,
|
|
179
|
+
jt as ApLadder,
|
|
178
180
|
Mt as ApList,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
ht as ApModal,
|
|
182
|
+
qt as ApSelectLayout,
|
|
183
|
+
Jt as ApStatus,
|
|
184
|
+
Qt as ApStatusGroup,
|
|
185
|
+
aa as ApTable,
|
|
186
|
+
wt as ApTableModal,
|
|
185
187
|
mt as ApTag,
|
|
186
188
|
st as ApTagGroup,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
Zt as ApTitle,
|
|
190
|
+
ea as ApTransformDataHelper,
|
|
189
191
|
At as ApUpload,
|
|
190
|
-
|
|
192
|
+
De as ApiCascader,
|
|
191
193
|
Re as ApiRadioGroup,
|
|
192
194
|
ve as ApiSelect,
|
|
193
|
-
|
|
195
|
+
Le as ApiTransfer,
|
|
194
196
|
ke as ApiTree,
|
|
195
197
|
Ye as ApiTreeSelect,
|
|
196
198
|
Je as BaseButton,
|
|
@@ -211,8 +213,8 @@ export {
|
|
|
211
213
|
ot as DictCode,
|
|
212
214
|
co as Dropdown,
|
|
213
215
|
Io as EditTableHeaderIcon,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
fa as EditableTable,
|
|
217
|
+
la as EditableTableFormItem,
|
|
216
218
|
_ as ExpandTransition,
|
|
217
219
|
ee as ExpandXTransition,
|
|
218
220
|
oe as FadeTransition,
|
|
@@ -253,10 +255,10 @@ export {
|
|
|
253
255
|
no as createPrompt,
|
|
254
256
|
tt as createWorkOrderModal,
|
|
255
257
|
p as default,
|
|
256
|
-
|
|
258
|
+
D as defaultNamespace,
|
|
257
259
|
U as en,
|
|
258
260
|
$r as generateTableList,
|
|
259
|
-
|
|
261
|
+
L as globalConfigCached,
|
|
260
262
|
Se as isComponentFormSchema,
|
|
261
263
|
Ie as isSlotFormSchema,
|
|
262
264
|
c as keysOf,
|
|
@@ -267,21 +269,22 @@ export {
|
|
|
267
269
|
g as translate,
|
|
268
270
|
qr as useCacheColumnSetting,
|
|
269
271
|
Te as useComponentRegister,
|
|
270
|
-
|
|
272
|
+
na as useControllableValue,
|
|
271
273
|
ue as useDescription,
|
|
272
274
|
Ce as useForm,
|
|
273
275
|
R as useGetDerivedNamespace,
|
|
274
276
|
F as useGlobalConfig,
|
|
275
277
|
P as useLocale,
|
|
276
|
-
|
|
278
|
+
ia as useMessage,
|
|
277
279
|
ro as useModal,
|
|
278
280
|
eo as useModalContext,
|
|
279
281
|
to as useModalInner,
|
|
280
282
|
G as useNamespace,
|
|
281
283
|
Gt as usePageListApTable,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
Do as useTable,
|
|
285
|
+
Nt as useTableModal,
|
|
286
|
+
ra as useTablePaging,
|
|
287
|
+
Bt as useTableRefresh,
|
|
288
|
+
Et as useTableSelectModal,
|
|
286
289
|
W as zhCn
|
|
287
290
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as
|
|
1
|
+
import { defineComponent as $, useSlots as j, ref as f, onMounted as q, computed as B, unref as l, watch as E, cloneVNode as K, openBlock as g, createBlock as V, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as G, createCommentVNode as H, createElementVNode as C, normalizeClass as J, createVNode as k, normalizeStyle as M, toDisplayString as W, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as ee } from "vue";
|
|
2
2
|
import { Form as oe, Tooltip as le } from "ant-design-vue";
|
|
3
3
|
import { useToken as te } from "ant-design-vue/es/theme/internal";
|
|
4
|
-
import { isFunction as ae,
|
|
5
|
-
import { apFormItemColPropKeys as
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
4
|
+
import { isFunction as ae, cloneDeep as re, isArray as ne, omit as N } from "lodash-unified";
|
|
5
|
+
import { apFormItemColPropKeys as ie } from "./constant.mjs";
|
|
6
|
+
import { QuestionCircleOutlined as ue } from "@ant-design/icons-vue";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
8
|
+
import { useInjectForm as se } from "./context.mjs";
|
|
9
9
|
import "./style/ap-form-item.css";
|
|
10
|
-
import { isPromise as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
const
|
|
10
|
+
import { isPromise as de } from "@fruits-chain/utils";
|
|
11
|
+
import { useNamespace as me } from "../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
const fe = ["title"], ke = /* @__PURE__ */ $({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "ap-form-item",
|
|
15
15
|
props: {
|
|
@@ -54,15 +54,15 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
54
54
|
},
|
|
55
55
|
setup(P, { expose: S }) {
|
|
56
56
|
var b, F;
|
|
57
|
-
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } =
|
|
57
|
+
const o = P, t = j(), { model: u, updateModel: s, internalInstance: d } = se(), { m: p, b: w } = me("ap-form-item"), m = f(!1), a = f(), [, x] = te();
|
|
58
58
|
q(async () => {
|
|
59
59
|
let e = ae(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
60
|
-
|
|
60
|
+
de(e) && (e = await e), d == null || d.registerField({
|
|
61
61
|
name: o.name,
|
|
62
|
-
initialValue: e
|
|
62
|
+
initialValue: re(e)
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
-
const c = B(() => o.name ?
|
|
65
|
+
const c = B(() => o.name ? ne(o.name) ? o.name.reduce((e, r) => e == null ? void 0 : e[r], l(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((F = (b = t.default) == null ? void 0 : b.call(t)) == null ? void 0 : F[0]);
|
|
66
66
|
E(
|
|
67
67
|
() => {
|
|
68
68
|
var e;
|
|
@@ -98,15 +98,15 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
98
98
|
var e;
|
|
99
99
|
(e = a.value) == null || e.onFieldBlur();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function D() {
|
|
102
102
|
var e;
|
|
103
103
|
(e = a.value) == null || e.onFieldChange();
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function R() {
|
|
106
106
|
var e;
|
|
107
107
|
(e = a.value) == null || e.clearValidate();
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function T() {
|
|
110
110
|
var e;
|
|
111
111
|
(e = a.value) == null || e.resetField();
|
|
112
112
|
}
|
|
@@ -115,14 +115,14 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
115
115
|
}
|
|
116
116
|
return S({
|
|
117
117
|
onFieldBlur: A,
|
|
118
|
-
onFieldChange:
|
|
119
|
-
clearValidate:
|
|
120
|
-
resetField:
|
|
118
|
+
onFieldChange: D,
|
|
119
|
+
clearValidate: R,
|
|
120
|
+
resetField: T,
|
|
121
121
|
getFieldValue: L
|
|
122
|
-
}), (e, r) => (g(),
|
|
122
|
+
}), (e, r) => (g(), V(l(oe).Item, Q({
|
|
123
123
|
ref_key: "formItemRef",
|
|
124
124
|
ref: a
|
|
125
|
-
}, l(N)(o, [...l(
|
|
125
|
+
}, l(N)(o, [...l(ie), "tooltip", "label"]), {
|
|
126
126
|
class: {
|
|
127
127
|
[l(p)("bordered")]: e.bordered,
|
|
128
128
|
[l(p)("focused")]: e.bordered && m.value,
|
|
@@ -131,21 +131,21 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
131
131
|
colon: e.bordered ? !1 : o.colon
|
|
132
132
|
}), U({
|
|
133
133
|
default: i(() => [
|
|
134
|
-
y.value ? (g(),
|
|
134
|
+
y.value ? (g(), V(G(y.value), { key: 0 })) : H("", !0)
|
|
135
135
|
]),
|
|
136
136
|
_: 2
|
|
137
137
|
}, [
|
|
138
138
|
o.tooltip ? {
|
|
139
139
|
name: "tooltip",
|
|
140
140
|
fn: i(({ class: n }) => [
|
|
141
|
-
|
|
141
|
+
C("span", {
|
|
142
142
|
class: J(n)
|
|
143
143
|
}, [
|
|
144
144
|
k(l(le), {
|
|
145
145
|
title: o.tooltip
|
|
146
146
|
}, {
|
|
147
147
|
default: i(() => [
|
|
148
|
-
k(l(
|
|
148
|
+
k(l(ue), {
|
|
149
149
|
style: M({ color: l(x).colorPrimary })
|
|
150
150
|
}, null, 8, ["style"])
|
|
151
151
|
]),
|
|
@@ -158,14 +158,14 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
158
158
|
e.label ? {
|
|
159
159
|
name: "label",
|
|
160
160
|
fn: i(() => [
|
|
161
|
-
|
|
161
|
+
C("span", {
|
|
162
162
|
title: e.label,
|
|
163
163
|
style: {
|
|
164
164
|
whiteSpace: "nowrap",
|
|
165
165
|
overflow: "hidden",
|
|
166
166
|
textOverflow: "ellipsis"
|
|
167
167
|
}
|
|
168
|
-
}, W(e.label), 9,
|
|
168
|
+
}, W(e.label), 9, fe)
|
|
169
169
|
]),
|
|
170
170
|
key: "1"
|
|
171
171
|
} : void 0,
|
|
@@ -179,5 +179,5 @@ const me = ["title"], Ve = /* @__PURE__ */ $({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
export {
|
|
182
|
-
|
|
182
|
+
ke as default
|
|
183
183
|
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ApInfoLayoutPropsMixed } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
/**
|
|
7
|
+
* 默认插槽
|
|
8
|
+
*/
|
|
9
|
+
default(): any;
|
|
10
|
+
/**
|
|
11
|
+
* 整个 header 区域
|
|
12
|
+
*/
|
|
13
|
+
header(): any;
|
|
14
|
+
/**
|
|
15
|
+
* 仅Aplus- header标题,位于左侧
|
|
16
|
+
*/
|
|
17
|
+
title(): any;
|
|
18
|
+
/**
|
|
19
|
+
* 仅Aplus- 操作区域
|
|
20
|
+
*/
|
|
21
|
+
actions(): any;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* 仅Aplus- header下方的分割线
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
divider(): any;
|
|
28
|
+
/**
|
|
29
|
+
* content 内容区
|
|
30
|
+
*/
|
|
31
|
+
content(): any;
|
|
32
|
+
}> & {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
/**
|
|
35
|
+
* 默认插槽
|
|
36
|
+
*/
|
|
37
|
+
default(): any;
|
|
38
|
+
/**
|
|
39
|
+
* 整个 header 区域
|
|
40
|
+
*/
|
|
41
|
+
header(): any;
|
|
42
|
+
/**
|
|
43
|
+
* 仅Aplus- header标题,位于左侧
|
|
44
|
+
*/
|
|
45
|
+
title(): any;
|
|
46
|
+
/**
|
|
47
|
+
* 仅Aplus- 操作区域
|
|
48
|
+
*/
|
|
49
|
+
actions(): any;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* 仅Aplus- header下方的分割线
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
divider(): any;
|
|
56
|
+
/**
|
|
57
|
+
* content 内容区
|
|
58
|
+
*/
|
|
59
|
+
content(): any;
|
|
60
|
+
};
|
|
61
|
+
refs: {};
|
|
62
|
+
attrs: Partial<{}>;
|
|
63
|
+
};
|
|
64
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
65
|
+
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApInfoLayoutPropsMixed>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApInfoLayoutPropsMixed>>>, {}, {}>;
|
|
66
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
67
|
+
export default _default;
|
|
68
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
|
+
type __VLS_TypePropsToOption<T> = {
|
|
70
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
71
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
72
|
+
} : {
|
|
73
|
+
type: PropType<T[K]>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as a, computed as n, openBlock as p, createBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
|
|
2
|
+
import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
|
|
3
|
+
import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
|
|
4
|
+
import "../config-provider/index.mjs";
|
|
5
|
+
import { useGlobalConfig as _ } from "../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import y from "./ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs";
|
|
7
|
+
import b from "./ap-info-layout-aplus/ap-info-layout.vue2.mjs";
|
|
8
|
+
const D = /* @__PURE__ */ a({
|
|
9
|
+
__name: "ApInfoLayout",
|
|
10
|
+
props: {
|
|
11
|
+
headerStyle: {},
|
|
12
|
+
bordered: { type: Boolean },
|
|
13
|
+
toEl: {},
|
|
14
|
+
telDisabled: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup($) {
|
|
17
|
+
const r = _("uiMode", "aplus"), t = n(() => {
|
|
18
|
+
let e;
|
|
19
|
+
switch (r.value) {
|
|
20
|
+
case "aplus":
|
|
21
|
+
e = b;
|
|
22
|
+
break;
|
|
23
|
+
case "admin":
|
|
24
|
+
e = y;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
return e;
|
|
28
|
+
});
|
|
29
|
+
return (e, h) => (p(), s(i(t.value), l(m(e.$props)), c({ _: 2 }, [
|
|
30
|
+
u(e.$slots, (k, o) => ({
|
|
31
|
+
name: o,
|
|
32
|
+
fn: d(() => [
|
|
33
|
+
f(e.$slots, o)
|
|
34
|
+
])
|
|
35
|
+
}))
|
|
36
|
+
]), 1040));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
D as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ApInfoLayoutAdminProps } from '../interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
header?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
containerRef: HTMLDivElement;
|
|
10
|
+
headerRef: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAdminProps>, {
|
|
16
|
+
bordered: boolean;
|
|
17
|
+
headerStyle: () => CSSProperties;
|
|
18
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAdminProps>, {
|
|
19
|
+
bordered: boolean;
|
|
20
|
+
headerStyle: () => CSSProperties;
|
|
21
|
+
}>>>, {
|
|
22
|
+
bordered: boolean;
|
|
23
|
+
headerStyle: CSSProperties;
|
|
24
|
+
}, {}>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_PrettifyLocal<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as u, ref as t, openBlock as p, createElementBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import "../style/ap-info-layout.css";
|
|
4
|
+
import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
const $ = /* @__PURE__ */ u({
|
|
7
|
+
__name: "ApInfoLayoutAdmin",
|
|
8
|
+
props: {
|
|
9
|
+
headerStyle: { default: () => ({}) },
|
|
10
|
+
bordered: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
setup(b) {
|
|
13
|
+
const l = t(), a = t(), i = () => {
|
|
14
|
+
l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
|
|
15
|
+
}, { b: f, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
|
|
16
|
+
return (r, k) => (p(), y("div", {
|
|
17
|
+
class: s([e(f)(), `${e(c)(e(m))}`]),
|
|
18
|
+
onScroll: i,
|
|
19
|
+
ref_key: "containerRef",
|
|
20
|
+
ref: l
|
|
21
|
+
}, [
|
|
22
|
+
n("div", {
|
|
23
|
+
class: s([e(o)("sticky_box"), r.bordered ? e(o)("sticky_box-bordered") : ""]),
|
|
24
|
+
style: h({
|
|
25
|
+
...r.headerStyle
|
|
26
|
+
}),
|
|
27
|
+
ref_key: "headerRef",
|
|
28
|
+
ref: a
|
|
29
|
+
}, [
|
|
30
|
+
d(r.$slots, "header")
|
|
31
|
+
], 6),
|
|
32
|
+
n("div", {
|
|
33
|
+
class: s(e(o)("default_content"))
|
|
34
|
+
}, [
|
|
35
|
+
d(r.$slots, "default")
|
|
36
|
+
], 2)
|
|
37
|
+
], 34));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
$ as default
|
|
42
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApInfoLayoutAplusProps } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
slots: {
|
|
@@ -12,12 +12,12 @@ declare function __VLS_template(): {
|
|
|
12
12
|
attrs: Partial<{}>;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
15
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAplusProps>, {
|
|
16
16
|
toEl: string;
|
|
17
17
|
telDisabled: boolean;
|
|
18
18
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
19
|
"update:telDisabled": (...args: any[]) => void;
|
|
20
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
20
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAplusProps>, {
|
|
21
21
|
toEl: string;
|
|
22
22
|
telDisabled: boolean;
|
|
23
23
|
}>>> & {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./ApInfoLayout.vue2.mjs";
|
|
2
|
+
import "./interface.mjs";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
export type ApInfoLayoutAdminProps = {
|
|
3
|
+
headerStyle?: CSSProperties;
|
|
4
|
+
bordered?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type ApInfoLayoutAplusProps = {
|
|
2
7
|
toEl?: string | HTMLElement;
|
|
3
8
|
telDisabled?: boolean;
|
|
4
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export type ApInfoLayoutPropsMixed = ApInfoLayoutAdminProps & ApInfoLayoutAplusProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|