@aplus-frontend/ui 0.1.16 → 0.1.18
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 +60 -58
- package/es/src/ap-download/ap-download.vue.mjs +26 -26
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +26 -24
- package/es/src/ap-modal/index.d.ts +2 -2
- package/es/src/ap-modal/index.mjs +1 -1
- package/es/src/ap-modal/{type.d.ts → interface.d.ts} +3 -3
- package/es/src/ap-modal/utils/createModal.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.mjs +40 -40
- package/es/src/ap-table/interface.d.ts +2 -3
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/ap-table/utils.mjs +20 -20
- package/es/src/business/ap-batch-action/index.css +2 -0
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +13 -0
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.mjs +4 -0
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +110 -0
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +17 -0
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.mjs +4 -0
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +50 -0
- package/es/src/business/ap-batch-action-group/interface.d.ts +41 -0
- package/es/src/business/ap-batch-action-group/interface.mjs +1 -0
- package/es/src/business/ap-image/ApImage.vue.d.ts +65 -0
- package/es/src/business/ap-image/ApImage.vue.mjs +4 -0
- package/es/src/business/ap-image/ApImage.vue2.mjs +56 -0
- package/es/src/business/ap-image/hooks/useOss.d.ts +11 -0
- package/es/src/business/ap-image/hooks/useOss.mjs +37 -0
- package/es/src/business/ap-image/imgs/admin-fallback.jpg.mjs +4 -0
- package/es/src/business/ap-image/imgs/aplus-fallback.jpg.mjs +4 -0
- package/es/src/business/ap-label/ApLabel.d.ts +141 -0
- package/es/src/business/ap-label/ApLabel.mjs +49 -0
- package/es/src/business/ap-label/ApLabelGroup.mjs +11 -12
- package/es/src/business/ap-label/constans.d.ts +65 -1
- package/es/src/business/ap-label/constans.mjs +33 -2
- package/es/src/business/ap-label/index.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -1
- package/es/src/business/index.d.ts +815 -164
- package/es/src/business/index.mjs +26 -20
- package/es/src/config-provider/constants.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +47 -46
- package/es/src/editable-table/hooks/use-get-columns.d.ts +3 -2
- package/es/src/editable-table/hooks/use-get-columns.mjs +32 -32
- package/es/src/editable-table/index.vue.mjs +81 -80
- package/es/src/editable-table/interface.d.ts +7 -13
- package/es/src/editable-table/utils.d.ts +14 -2
- package/es/src/editable-table/utils.mjs +67 -58
- package/es/src/index.mjs +202 -200
- package/es/src/locale/lang/en.mjs +10 -7
- package/es/src/locale/lang/zh-cn.mjs +3 -0
- package/es/src/theme/ap-batch-action/ap-batch-action.css +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-modal/index.d.ts +2 -2
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/{type.d.ts → interface.d.ts} +3 -3
- package/lib/src/ap-modal/utils/createModal.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/interface.d.ts +2 -3
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-batch-action/index.css +2 -0
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +13 -0
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.js +1 -0
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -0
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +17 -0
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.js +1 -0
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -0
- package/lib/src/business/ap-batch-action-group/interface.d.ts +41 -0
- package/lib/src/business/ap-batch-action-group/interface.js +1 -0
- package/lib/src/business/ap-image/ApImage.vue.d.ts +65 -0
- package/lib/src/business/{ap-label/ApLabel.vue.js → ap-image/ApImage.vue.js} +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -0
- package/lib/src/business/ap-image/hooks/useOss.d.ts +11 -0
- package/lib/src/business/ap-image/hooks/useOss.js +1 -0
- package/lib/src/business/ap-image/imgs/admin-fallback.jpg.js +1 -0
- package/lib/src/business/ap-image/imgs/aplus-fallback.jpg.js +1 -0
- package/lib/src/business/ap-label/ApLabel.d.ts +141 -0
- package/lib/src/business/ap-label/ApLabel.js +1 -0
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +65 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -1
- package/lib/src/business/index.d.ts +815 -164
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +3 -2
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -13
- package/lib/src/editable-table/utils.d.ts +14 -2
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-batch-action/ap-batch-action.css +2 -0
- package/package.json +3 -3
- package/es/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/es/src/business/ap-label/ApLabel.vue.mjs +0 -4
- package/es/src/business/ap-label/ApLabel.vue2.mjs +0 -85
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/lib/src/business/ap-label/ApLabel.vue2.js +0 -1
- /package/es/src/ap-modal/{type.mjs → interface.mjs} +0 -0
- /package/lib/src/ap-modal/{type.js → interface.js} +0 -0
package/es/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import { Icon as l, SvgIcon as s } from "./src/icon/index.mjs";
|
|
|
4
4
|
import { configProviderProps as x } from "./src/config-provider/config-provider-props.mjs";
|
|
5
5
|
import { configProviderContextKey as n, tableDefaultConfig as u } 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
|
-
import { buildLocaleContext as S, buildTranslator as
|
|
8
|
-
import { defaultNamespace as h, namespaceContextKey as R, useGetDerivedNamespace as
|
|
9
|
-
import { ConfigProvider as
|
|
7
|
+
import { buildLocaleContext as S, buildTranslator as I, localeContextKey as b, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as h, namespaceContextKey as R, useGetDerivedNamespace as G, useNamespace as v } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
import { ConfigProvider as M, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as L } 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";
|
|
@@ -20,11 +20,11 @@ import { useDescription as uo } from "./src/description/use-description.mjs";
|
|
|
20
20
|
import { Description as co } from "./src/description/index.mjs";
|
|
21
21
|
import { useComponentRegister as Fo } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
22
22
|
import { useForm as So } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
|
-
import { isComponentFormSchema as
|
|
23
|
+
import { isComponentFormSchema as bo, isSlotFormSchema as go } from "./src/pro-form/types/form.mjs";
|
|
24
24
|
import { Field as Po } from "./src/pro-form/index.mjs";
|
|
25
25
|
import { default as Ro } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
26
|
+
import { default as vo } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
|
+
import { default as Mo } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
28
|
import { default as ko } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
29
|
import { default as No } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
30
|
import { default as Eo } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
@@ -45,12 +45,12 @@ import { createPrompt as ue } from "./src/prompt/index.mjs";
|
|
|
45
45
|
import { Dropdown as ce } from "./src/dropdown/index.mjs";
|
|
46
46
|
import { default as Fe } from "./src/pro-table/pro-table.vue.mjs";
|
|
47
47
|
import { default as Se } from "./src/pro-table/components/table-action.vue.mjs";
|
|
48
|
-
import { default as
|
|
48
|
+
import { default as be } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
49
49
|
import { default as De } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
50
|
import { useTable as he } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
|
-
import { ApFormItemText as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
51
|
+
import { ApFormItemText as Ge } from "./src/ap-form/items/text/index.mjs";
|
|
52
|
+
import { default as Be } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
+
import { default as we } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
54
|
import { default as Le } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
55
|
import { default as ye } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
56
56
|
import { default as Ke } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
@@ -72,12 +72,12 @@ import { default as ur } from "./src/ap-field/number/index.vue.mjs";
|
|
|
72
72
|
import { default as cr } from "./src/ap-field/radio/index.vue.mjs";
|
|
73
73
|
import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
|
|
74
74
|
import { default as Sr } from "./src/ap-field/text-area/index.vue.mjs";
|
|
75
|
-
import { default as
|
|
75
|
+
import { default as br } from "./src/ap-field/date-range/index.vue.mjs";
|
|
76
76
|
import { default as Dr } from "./src/ap-field/select/index.vue.mjs";
|
|
77
77
|
import { default as hr } from "./src/ap-field/text/password.vue.mjs";
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
78
|
+
import { default as Gr } from "./src/ap-field/slider/index.vue.mjs";
|
|
79
|
+
import { default as Br } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
|
+
import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
81
|
import { adminToken as Lr, 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";
|
|
@@ -98,19 +98,19 @@ import { NeedNameKeyDefault as nt } 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
|
-
import { CheckCard as
|
|
101
|
+
import { CheckCard as It } from "./src/check-card/index.mjs";
|
|
102
102
|
import { default as gt } from "./src/check-card/group.vue.mjs";
|
|
103
103
|
import { ApModal as Pt } from "./src/ap-modal/index.mjs";
|
|
104
104
|
import { default as Rt } from "./src/ap-list/index.vue.mjs";
|
|
105
|
-
import { ApBatchAction as
|
|
106
|
-
import { ApTransformDataHelper as
|
|
107
|
-
import { useTablePaging as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { default as
|
|
112
|
-
import { useMessage as
|
|
113
|
-
import { useControllableValue as
|
|
105
|
+
import { ApBatchAction as vt, ApBatchActionGroup as Bt, ApExpandAlert as Mt, ApExportGroup as wt, ApImage as kt, ApInputRadio as Lt, ApLabel as Nt, ApLabelGroup as yt, ApSelectLayout as Et, ApStatus as Kt, ApStatusGroup as Xt, ApTitle as Yt } from "./src/business/index.mjs";
|
|
106
|
+
import { ApTransformDataHelper as Ot } from "./src/utils/ap-trans-data/index.mjs";
|
|
107
|
+
import { useTablePaging as zt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
108
|
+
import { default as Vt } from "./src/ap-table/ap-table.vue.mjs";
|
|
109
|
+
import { default as jt } from "./src/editable-table/index.vue.mjs";
|
|
110
|
+
import { default as Jt } from "./src/editable-table/form-item.vue.mjs";
|
|
111
|
+
import { default as Zt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
112
|
+
import { useMessage as oa } from "./src/hooks/useMessage.mjs";
|
|
113
|
+
import { useControllableValue as ra } from "./src/hooks/useControllableValue.mjs";
|
|
114
114
|
const p = {
|
|
115
115
|
install: (r) => {
|
|
116
116
|
for (const t in e) {
|
|
@@ -126,10 +126,11 @@ export {
|
|
|
126
126
|
Wr as ApActionItemDropdown,
|
|
127
127
|
Xr as ApActionItemModal,
|
|
128
128
|
Hr as ApActionItemPopconfirm,
|
|
129
|
-
|
|
129
|
+
vt as ApBatchAction,
|
|
130
|
+
Bt as ApBatchActionGroup,
|
|
130
131
|
Qr as ApCustomColumn,
|
|
131
132
|
_r as ApCustomSelect,
|
|
132
|
-
|
|
133
|
+
Zt as ApDescriptions,
|
|
133
134
|
Tt as ApDownLoadNeedNameKeyDefault,
|
|
134
135
|
Ct as ApDownload,
|
|
135
136
|
Mt as ApExpandAlert,
|
|
@@ -137,14 +138,14 @@ export {
|
|
|
137
138
|
fr as ApField,
|
|
138
139
|
dr as ApFieldCheckbox,
|
|
139
140
|
ir as ApFieldDate,
|
|
140
|
-
|
|
141
|
+
br as ApFieldDateRange,
|
|
141
142
|
ur as ApFieldNumber,
|
|
142
143
|
hr as ApFieldPassword,
|
|
143
144
|
cr as ApFieldRadio,
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
wr as ApFieldRate,
|
|
146
|
+
Br as ApFieldSegmented,
|
|
146
147
|
Dr as ApFieldSelect,
|
|
147
|
-
|
|
148
|
+
Gr as ApFieldSlider,
|
|
148
149
|
Fr as ApFieldSwitch,
|
|
149
150
|
lr as ApFieldText,
|
|
150
151
|
Sr as ApFieldTextArea,
|
|
@@ -154,34 +155,35 @@ export {
|
|
|
154
155
|
Le as ApFormItemDate,
|
|
155
156
|
ye as ApFormItemDateRange,
|
|
156
157
|
Ze as ApFormItemGroup,
|
|
157
|
-
|
|
158
|
+
we as ApFormItemNumber,
|
|
158
159
|
Ke as ApFormItemRadio,
|
|
159
160
|
Ye as ApFormItemSelect,
|
|
160
161
|
Oe as ApFormItemSwitch,
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
Ge as ApFormItemText,
|
|
163
|
+
Be as ApFormItemTextArea,
|
|
163
164
|
Ve as ApFormItemTextPassword,
|
|
164
165
|
or as ApFormList,
|
|
165
166
|
ar as ApFormModalForm,
|
|
166
167
|
rr as ApFormSearchForm,
|
|
168
|
+
kt as ApImage,
|
|
167
169
|
xt as ApInfoLayout,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
Lt as ApInputRadio,
|
|
171
|
+
Nt as ApLabel,
|
|
172
|
+
yt as ApLabelGroup,
|
|
171
173
|
Rt as ApList,
|
|
172
174
|
Pt as ApModal,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
Et as ApSelectLayout,
|
|
176
|
+
Kt as ApStatus,
|
|
177
|
+
Xt as ApStatusGroup,
|
|
178
|
+
Vt as ApTable,
|
|
177
179
|
mt as ApTag,
|
|
178
180
|
st as ApTagGroup,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
+
Yt as ApTitle,
|
|
182
|
+
Ot as ApTransformDataHelper,
|
|
181
183
|
At as ApUpload,
|
|
182
184
|
Ro as ApiCascader,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
vo as ApiRadioGroup,
|
|
186
|
+
Mo as ApiSelect,
|
|
185
187
|
ko as ApiTransfer,
|
|
186
188
|
No as ApiTree,
|
|
187
189
|
Ho as ApiTreeSelect,
|
|
@@ -190,11 +192,11 @@ export {
|
|
|
190
192
|
$ as BasicArrow,
|
|
191
193
|
j as BasicHelp,
|
|
192
194
|
q as BasicTitle,
|
|
193
|
-
|
|
195
|
+
It as CheckCard,
|
|
194
196
|
gt as CheckCardGroup,
|
|
195
197
|
K as CollapseContainer,
|
|
196
198
|
Q as CollapseTransition,
|
|
197
|
-
|
|
199
|
+
M as ConfigProvider,
|
|
198
200
|
xe as CountdownButton,
|
|
199
201
|
ie as CountdownInput,
|
|
200
202
|
le as CropperAvatar,
|
|
@@ -202,9 +204,9 @@ export {
|
|
|
202
204
|
co as Description,
|
|
203
205
|
et as DictCode,
|
|
204
206
|
ce as Dropdown,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
be as EditTableHeaderIcon,
|
|
208
|
+
jt as EditableTable,
|
|
209
|
+
Jt as EditableTableFormItem,
|
|
208
210
|
_ as ExpandTransition,
|
|
209
211
|
oo as ExpandXTransition,
|
|
210
212
|
eo as FadeTransition,
|
|
@@ -239,7 +241,7 @@ export {
|
|
|
239
241
|
Lr as adminToken,
|
|
240
242
|
Nr as aplusToken,
|
|
241
243
|
S as buildLocaleContext,
|
|
242
|
-
|
|
244
|
+
I as buildTranslator,
|
|
243
245
|
n as configProviderContextKey,
|
|
244
246
|
x as configProviderProps,
|
|
245
247
|
ue as createPrompt,
|
|
@@ -248,29 +250,29 @@ export {
|
|
|
248
250
|
h as defaultNamespace,
|
|
249
251
|
U as en,
|
|
250
252
|
$r as generateTableList,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
w as globalConfigCached,
|
|
254
|
+
bo as isComponentFormSchema,
|
|
253
255
|
go as isSlotFormSchema,
|
|
254
256
|
c as keysOf,
|
|
255
|
-
|
|
257
|
+
b as localeContextKey,
|
|
256
258
|
R as namespaceContextKey,
|
|
257
259
|
T as provideGlobalConfig,
|
|
258
260
|
u as tableDefaultConfig,
|
|
259
261
|
g as translate,
|
|
260
262
|
qr as useCacheColumnSetting,
|
|
261
263
|
Fo as useComponentRegister,
|
|
262
|
-
|
|
264
|
+
ra as useControllableValue,
|
|
263
265
|
uo as useDescription,
|
|
264
266
|
So as useForm,
|
|
265
|
-
|
|
267
|
+
G as useGetDerivedNamespace,
|
|
266
268
|
F as useGlobalConfig,
|
|
267
269
|
D as useLocale,
|
|
268
|
-
|
|
270
|
+
oa as useMessage,
|
|
269
271
|
te as useModal,
|
|
270
272
|
ee as useModalContext,
|
|
271
273
|
ae as useModalInner,
|
|
272
|
-
|
|
274
|
+
v as useNamespace,
|
|
273
275
|
he as useTable,
|
|
274
|
-
|
|
276
|
+
zt as useTablePaging,
|
|
275
277
|
W as zhCn
|
|
276
278
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, computed as o, unref as t, openBlock as z, createElementBlock as b, normalizeStyle as N, normalizeClass as n, createElementVNode as a, renderSlot as O, toDisplayString as S } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
|
-
import { useOssInit as
|
|
3
|
+
import { useOssInit as h } from "./hooks/index.mjs";
|
|
4
4
|
import "./style/ap-download.css";
|
|
5
|
-
import { getFileInfo as
|
|
6
|
-
import { useStyle as
|
|
5
|
+
import { getFileInfo as A } from "./utils/getFileInfo.mjs";
|
|
6
|
+
import { useStyle as v } from "./hooks/useStyle.mjs";
|
|
7
7
|
import { useLocale as B } from "../config-provider/hooks/use-locale.mjs";
|
|
8
|
-
import { useGlobalConfig as
|
|
9
|
-
const k = { class: "icon" },
|
|
8
|
+
import { useGlobalConfig as l } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
const k = { class: "icon" }, x = { class: "text" }, V = /* @__PURE__ */ w({
|
|
10
10
|
name: "ApDownload",
|
|
11
11
|
__name: "ap-download",
|
|
12
12
|
props: {
|
|
@@ -18,32 +18,32 @@ const k = { class: "icon" }, v = { class: "text" }, V = /* @__PURE__ */ y({
|
|
|
18
18
|
needName: { type: [Boolean, Object] },
|
|
19
19
|
getOssAccess: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const { lang:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
),
|
|
27
|
-
var
|
|
28
|
-
return e.getOssAccess || ((
|
|
29
|
-
}),
|
|
30
|
-
e.disabled || await (await
|
|
31
|
-
|
|
32
|
-
t(
|
|
33
|
-
)).downloadFile(
|
|
21
|
+
setup(r) {
|
|
22
|
+
const { lang: c } = B(), i = o(() => c.value === "zh-cn" ? "zh_CN" : "en_US"), p = l("uiMode"), e = r, d = l("apUpload"), m = o(() => e.disabled), u = o(() => p.value === "aplus" ? "#0070FF" : "#1890FF"), f = o(() => e.size), { wrapperStyle: g, getWrapperClass: _, getInnerWrapperClass: C } = v(
|
|
23
|
+
u,
|
|
24
|
+
f,
|
|
25
|
+
m
|
|
26
|
+
), y = o(() => {
|
|
27
|
+
var s;
|
|
28
|
+
return e.getOssAccess || ((s = d.value) == null ? void 0 : s.getOssAccess);
|
|
29
|
+
}), F = async () => {
|
|
30
|
+
e.disabled || await (await h(
|
|
31
|
+
y.value,
|
|
32
|
+
t(i)
|
|
33
|
+
)).downloadFile(A(e.needName, e.fileName));
|
|
34
34
|
};
|
|
35
|
-
return (
|
|
36
|
-
style:
|
|
37
|
-
class: n(t(
|
|
38
|
-
onClick:
|
|
35
|
+
return (s, I) => (z(), b("span", {
|
|
36
|
+
style: N(t(g)),
|
|
37
|
+
class: n(t(_)),
|
|
38
|
+
onClick: F
|
|
39
39
|
}, [
|
|
40
40
|
a("span", {
|
|
41
|
-
class: n(t(
|
|
41
|
+
class: n(t(C))
|
|
42
42
|
}, [
|
|
43
43
|
a("span", k, [
|
|
44
|
-
|
|
44
|
+
O(s.$slots, "icon")
|
|
45
45
|
]),
|
|
46
|
-
a("span",
|
|
46
|
+
a("span", x, S(s.text), 1)
|
|
47
47
|
], 2)
|
|
48
48
|
], 6));
|
|
49
49
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { isVNode as C, defineComponent as h, useSlots as w,
|
|
2
|
-
import { Col as
|
|
3
|
-
import { pick as
|
|
4
|
-
import { apFormItemColPropKeys as
|
|
5
|
-
import { genRealChildren as
|
|
1
|
+
import { isVNode as C, defineComponent as h, useSlots as w, onBeforeUpdate as k, watch as _, shallowRef as B, computed as P, unref as n, createVNode as R, mergeProps as u, openBlock as s, createBlock as d, withCtx as S, createElementBlock as b, Fragment as x, renderList as N, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { Col as v, Row as F } from "ant-design-vue";
|
|
3
|
+
import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
|
|
4
|
+
import { apFormItemColPropKeys as V } from "../constant.mjs";
|
|
5
|
+
import { genRealChildren as l, buildColSpan as $, getStringName as A } from "./helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import "../style/ap-form-item-group.css";
|
|
8
|
-
import { isDef as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
function
|
|
8
|
+
import { isDef as E } from "../../utils/index.mjs";
|
|
9
|
+
import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
function H(t) {
|
|
11
11
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !C(t);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const W = /* @__PURE__ */ h({
|
|
14
14
|
name: "ApFormItemGroup",
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
@@ -30,26 +30,28 @@ const U = /* @__PURE__ */ h({
|
|
|
30
30
|
},
|
|
31
31
|
setup(t) {
|
|
32
32
|
const {
|
|
33
|
-
b:
|
|
34
|
-
} =
|
|
35
|
-
k(() =>
|
|
36
|
-
|
|
33
|
+
b: i
|
|
34
|
+
} = G("ap-form-item-group"), m = t, a = w();
|
|
35
|
+
k(() => {
|
|
36
|
+
p.value = l(a.default());
|
|
37
|
+
}), _(() => a.default(), (o) => {
|
|
38
|
+
p.value = l(o);
|
|
37
39
|
});
|
|
38
|
-
const
|
|
39
|
-
const e = o.props, r =
|
|
40
|
+
const p = B(l(a.default())), f = P(() => n(p).map((o, c) => {
|
|
41
|
+
const e = o.props, r = D(e, V), g = r != null && r.span ? {} : $(m.countPerRow), y = I(e.hidden) ? !!e.hidden : E(e.hidden);
|
|
40
42
|
return {
|
|
41
|
-
key: `${
|
|
42
|
-
node: R(
|
|
43
|
-
class: y ?
|
|
44
|
-
}),
|
|
43
|
+
key: `${c}-${A(e.name)}`,
|
|
44
|
+
node: R(v, u(g, r, {
|
|
45
|
+
class: y ? i("col-hidden") : ""
|
|
46
|
+
}), H(o) ? o : {
|
|
45
47
|
default: () => [o]
|
|
46
48
|
})
|
|
47
49
|
};
|
|
48
50
|
}));
|
|
49
|
-
return (o,
|
|
50
|
-
class: n(
|
|
51
|
-
}, n(
|
|
52
|
-
default: S(() => [(
|
|
51
|
+
return (o, c) => (s(), d(n(F), u({
|
|
52
|
+
class: n(i)()
|
|
53
|
+
}, n(O)(m, ["countPerRow"])), {
|
|
54
|
+
default: S(() => [(s(!0), b(x, null, N(f.value, (e) => (s(), d(j(e.node), {
|
|
53
55
|
key: e.key
|
|
54
56
|
}))), 128))]),
|
|
55
57
|
_: 1
|
|
@@ -57,5 +59,5 @@ const U = /* @__PURE__ */ h({
|
|
|
57
59
|
}
|
|
58
60
|
});
|
|
59
61
|
export {
|
|
60
|
-
|
|
62
|
+
W as default
|
|
61
63
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Modal as _Modal } from 'ant-design-vue';
|
|
2
|
-
import { CreateModalFunc } from './
|
|
3
|
-
export * from './
|
|
2
|
+
import { CreateModalFunc } from './interface';
|
|
3
|
+
export * from './interface';
|
|
4
4
|
type ApModalMixedProps = typeof _Modal & {
|
|
5
5
|
createModal: CreateModalFunc;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModalProps } from 'ant-design-vue';
|
|
2
|
-
export type CreateModalFuncProps = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
|
|
3
|
-
onCancel: (params:
|
|
4
|
-
onOk: (params:
|
|
2
|
+
export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
|
|
3
|
+
onCancel: (params: ContentRecord) => void | Promise<unknown>;
|
|
4
|
+
onOk: (params: ContentRecord) => void | Promise<unknown>;
|
|
5
5
|
getContainer: HTMLElement;
|
|
6
6
|
content: any;
|
|
7
7
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CreateModalFunc } from '../
|
|
1
|
+
import { CreateModalFunc } from '../interface';
|
|
2
2
|
export declare const createModal: CreateModalFunc;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as ce, useSlots as pe, computed as s, unref as l, createVNode as u, Fragment as D, watch as fe, openBlock as c, createElementBlock as y, normalizeClass as x, normalizeStyle as F, mergeProps as S, createSlots as j, withCtx as p, renderList as
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { defineComponent as ce, useSlots as pe, computed as s, unref as l, createVNode as u, Fragment as D, watch as fe, openBlock as c, createElementBlock as y, normalizeClass as x, normalizeStyle as F, mergeProps as S, createSlots as j, withCtx as p, renderList as A, createBlock as me, resolveDynamicComponent as ge, renderSlot as v, createCommentVNode as W, createElementVNode as _, toDisplayString as ye, normalizeProps as Se, guardReactiveProps as he } from "vue";
|
|
2
|
+
import { Typography as be, Table as we, Tooltip as Ce } from "ant-design-vue";
|
|
3
3
|
import { useToken as Re } from "ant-design-vue/es/theme/internal";
|
|
4
4
|
import { ApForm as Te } from "../ap-form/index.mjs";
|
|
5
|
-
import { noRenderAsFormItemValueList as
|
|
5
|
+
import { noRenderAsFormItemValueList as H } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as xe } from "./hooks/use-table-paging.mjs";
|
|
8
|
-
import { omit as
|
|
8
|
+
import { omit as q, isUndefined as i, isBoolean as Fe } from "lodash-unified";
|
|
9
9
|
import "./style/ap-table.css";
|
|
10
10
|
import { QuestionCircleOutlined as ve } from "@ant-design/icons-vue";
|
|
11
|
-
import { apColumnToColumn as Be, getTableRenderType as Pe, getTableRenderProps as ke, getTableCellRenderNode as Ie, getColumnOrder as
|
|
11
|
+
import { apColumnToColumn as Be, getTableRenderType as Pe, getTableRenderProps as ke, getTableCellRenderNode as Ie, getColumnOrder as U, updateFormProps as Ne, getFieldProps as Le, getPlaceholder as Ee, getSearchFormItemRenderNode as Oe, objectToString as Ve } from "./utils.mjs";
|
|
12
12
|
import Ke from "./hooks/use-table-content-height.mjs";
|
|
13
13
|
import { getRawDisplayValue as ze } from "../editable-table/utils.mjs";
|
|
14
14
|
import De from "./hooks/use-table-row-selection.mjs";
|
|
15
15
|
import { useLocale as je } from "../config-provider/hooks/use-locale.mjs";
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useGlobalConfig as
|
|
18
|
-
const
|
|
16
|
+
import { useNamespace as Ae } from "../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useGlobalConfig as We } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
|
+
const _e = {
|
|
19
19
|
key: 0
|
|
20
20
|
}, na = /* @__PURE__ */ ce({
|
|
21
21
|
name: "ApTable",
|
|
@@ -133,24 +133,24 @@ const Ae = {
|
|
|
133
133
|
default: !1
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
-
setup(
|
|
137
|
-
expose:
|
|
136
|
+
setup($, {
|
|
137
|
+
expose: G
|
|
138
138
|
}) {
|
|
139
|
-
const o =
|
|
139
|
+
const o = $;
|
|
140
140
|
let B = 0;
|
|
141
|
-
const P = pe(), [,
|
|
142
|
-
t:
|
|
141
|
+
const P = pe(), [, M] = Re(), {
|
|
142
|
+
t: Q
|
|
143
143
|
} = je(), {
|
|
144
|
-
e:
|
|
144
|
+
e: h,
|
|
145
145
|
b: f
|
|
146
|
-
} =
|
|
146
|
+
} = Ae("ap-table"), k = We("valueTypeMap"), {
|
|
147
147
|
height: J,
|
|
148
148
|
contentRef: X
|
|
149
|
-
} = Ke(),
|
|
149
|
+
} = Ke(), b = s(() => {
|
|
150
150
|
var r;
|
|
151
151
|
let e = ((r = o.columns) == null ? void 0 : r.filter((a) => !a.hideInTable)) || [];
|
|
152
152
|
return e = e.map((a) => ({
|
|
153
|
-
...
|
|
153
|
+
...q(Be(a), ["ellipsis"]),
|
|
154
154
|
customRender({
|
|
155
155
|
value: t,
|
|
156
156
|
...n
|
|
@@ -162,7 +162,7 @@ const Ae = {
|
|
|
162
162
|
}, {
|
|
163
163
|
value: t,
|
|
164
164
|
...n
|
|
165
|
-
}), ue = Ie(d, O, l(k)), V = ((K = a.renderText) == null ? void 0 : K.call(a, {
|
|
165
|
+
}), ue = Ie(d, O, n.record, l(k)), V = ((K = a.renderText) == null ? void 0 : K.call(a, {
|
|
166
166
|
value: t,
|
|
167
167
|
...n
|
|
168
168
|
})) || t, ie = a.renderText ? u(D, null, [(z = a.renderText) == null ? void 0 : z.call(a, {
|
|
@@ -181,9 +181,9 @@ const Ae = {
|
|
|
181
181
|
})), e;
|
|
182
182
|
}), I = s(() => {
|
|
183
183
|
var e, r, a;
|
|
184
|
-
return B++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !
|
|
185
|
-
let d =
|
|
186
|
-
return
|
|
184
|
+
return B++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !H.includes(t.valueType))) == null ? void 0 : r.sort((t, n) => {
|
|
185
|
+
let d = U(t.order);
|
|
186
|
+
return U(n.order) - d;
|
|
187
187
|
})) == null ? void 0 : a.map((t) => {
|
|
188
188
|
const n = Ne(t, Le(t.fieldProps, {})), d = {
|
|
189
189
|
...t,
|
|
@@ -192,14 +192,14 @@ const Ae = {
|
|
|
192
192
|
name: t.dataIndex,
|
|
193
193
|
...n || {},
|
|
194
194
|
// 格式化placeholder
|
|
195
|
-
placeholder: Ee(
|
|
195
|
+
placeholder: Ee(Q, t.valueType, n == null ? void 0 : n.placeholder),
|
|
196
196
|
_signal: B
|
|
197
197
|
},
|
|
198
198
|
renderNode: void 0
|
|
199
199
|
};
|
|
200
200
|
return d.renderNode = Oe(d, l(k)), d;
|
|
201
201
|
})) || [];
|
|
202
|
-
}), Y = s(() => l(
|
|
202
|
+
}), Y = s(() => l(b).filter((e) => e.sorter === !0).map((e) => e.dataIndex).filter(Boolean)), Z = s(() => l(b).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex).filter(Boolean)), ee = s(() => i(o.dataSource) ? g.value.records : o.dataSource), {
|
|
203
203
|
rowSelection: w,
|
|
204
204
|
selectedRows: N,
|
|
205
205
|
...C
|
|
@@ -233,11 +233,11 @@ const Ae = {
|
|
|
233
233
|
defaultPageSize: o.pagination ? o.pagination.defaultPageSize : void 0,
|
|
234
234
|
formatParams: o.beforeSearchSubmit
|
|
235
235
|
}), oe = s(() => {
|
|
236
|
-
var
|
|
237
|
-
return o.
|
|
236
|
+
var r, a;
|
|
237
|
+
return o.adaptive && (g.value.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)) ? {
|
|
238
238
|
y: l(J),
|
|
239
|
-
x: "100%"
|
|
240
|
-
} : {
|
|
239
|
+
x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
|
|
240
|
+
} : o.scroll ? o.scroll : {
|
|
241
241
|
x: !0
|
|
242
242
|
};
|
|
243
243
|
}), te = s(() => {
|
|
@@ -267,10 +267,10 @@ const Ae = {
|
|
|
267
267
|
};
|
|
268
268
|
}), le = s(() => [f(), o.card ? null : f("wrapper"), o.adaptive ? f("adaptive") : null].filter(Boolean));
|
|
269
269
|
function ne(e, r, a) {
|
|
270
|
-
if (
|
|
270
|
+
if (H.includes(e.valueType))
|
|
271
271
|
return a;
|
|
272
272
|
const t = Ve(r);
|
|
273
|
-
return e.copyable || e.ellipsis ? u(
|
|
273
|
+
return e.copyable || e.ellipsis ? u(be.Paragraph, {
|
|
274
274
|
copyable: e.copyable ? {
|
|
275
275
|
text: t,
|
|
276
276
|
tooltip: !1
|
|
@@ -296,7 +296,7 @@ const Ae = {
|
|
|
296
296
|
var e, r, a;
|
|
297
297
|
return (a = (r = (e = R.value) == null ? void 0 : e.apForm) == null ? void 0 : r.getFieldsValue) == null ? void 0 : a.call(r, !0);
|
|
298
298
|
}
|
|
299
|
-
return
|
|
299
|
+
return G({
|
|
300
300
|
submit: () => L(),
|
|
301
301
|
reset: () => E(),
|
|
302
302
|
setSearchFormValues: se,
|
|
@@ -310,7 +310,7 @@ const Ae = {
|
|
|
310
310
|
class: x(le.value)
|
|
311
311
|
}, [l(i)(e.dataSource) && e.searchForm !== !1 && I.value.length > 0 ? (c(), y("div", {
|
|
312
312
|
key: 0,
|
|
313
|
-
class: x(e.card ? l(
|
|
313
|
+
class: x(e.card ? l(h)("search-wrapper") : null),
|
|
314
314
|
style: F(e.searchFormWrapperStyle)
|
|
315
315
|
}, [u(l(Te).SearchForm, S(e.searchForm || {}, {
|
|
316
316
|
ref_key: "formRef",
|
|
@@ -320,7 +320,7 @@ const Ae = {
|
|
|
320
320
|
onReset: l(E),
|
|
321
321
|
"submit-loading": l(m).loading
|
|
322
322
|
}), j({
|
|
323
|
-
default: p(() => [(c(!0), y(D, null,
|
|
323
|
+
default: p(() => [(c(!0), y(D, null, A(I.value, (a) => (c(), me(ge(a.renderNode), S({
|
|
324
324
|
key: a.dataIndex,
|
|
325
325
|
ref_for: !0
|
|
326
326
|
}, a.fieldProps || {}, {
|
|
@@ -331,10 +331,10 @@ const Ae = {
|
|
|
331
331
|
name: "extra",
|
|
332
332
|
fn: p(() => [v(e.$slots, "searchFormExtra")]),
|
|
333
333
|
key: "0"
|
|
334
|
-
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
334
|
+
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : W("", !0), _("div", {
|
|
335
335
|
ref_key: "contentRef",
|
|
336
336
|
ref: X,
|
|
337
|
-
class: x([l(
|
|
337
|
+
class: x([l(h)("table-wrapper"), e.card ? l(h)("table-wrapper-card") : null]),
|
|
338
338
|
style: F(e.tableWrapperStyle)
|
|
339
339
|
}, [v(e.$slots, "title", S({
|
|
340
340
|
selectedRows: l(N),
|
|
@@ -344,27 +344,27 @@ const Ae = {
|
|
|
344
344
|
}, re.value, {
|
|
345
345
|
"table-layout": te.value,
|
|
346
346
|
onChange: l(ae),
|
|
347
|
-
columns:
|
|
347
|
+
columns: b.value
|
|
348
348
|
}), j({
|
|
349
349
|
headerCell: p(({
|
|
350
350
|
column: a,
|
|
351
351
|
title: t
|
|
352
|
-
}) => [a.tooltip ? (c(), y("span",
|
|
352
|
+
}) => [a.tooltip ? (c(), y("span", _e, [_("span", null, ye(t), 1), u(l(Ce), {
|
|
353
353
|
title: a.tooltip,
|
|
354
354
|
placement: "bottom"
|
|
355
355
|
}, {
|
|
356
356
|
default: p(() => [u(l(ve), {
|
|
357
357
|
style: F({
|
|
358
358
|
paddingLeft: "4px",
|
|
359
|
-
color: l(
|
|
359
|
+
color: l(M).colorPrimary
|
|
360
360
|
})
|
|
361
361
|
}, null, 8, ["style"])]),
|
|
362
362
|
_: 2
|
|
363
|
-
}, 1032, ["title"])])) :
|
|
363
|
+
}, 1032, ["title"])])) : W("", !0)]),
|
|
364
364
|
_: 2
|
|
365
|
-
}, [
|
|
365
|
+
}, [A(l(q)(P, ["title", "searchFormExtra"]), (a, t) => ({
|
|
366
366
|
name: t,
|
|
367
|
-
fn: p((n) => [v(e.$slots, t, Se(
|
|
367
|
+
fn: p((n) => [v(e.$slots, t, Se(he(n || {})))])
|
|
368
368
|
}))]), 1040, ["class", "table-layout", "onChange", "columns"])], 6)], 2));
|
|
369
369
|
}
|
|
370
370
|
});
|