@aplus-frontend/ui 0.1.30 → 0.1.31
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 +147 -144
- package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
- package/es/src/ap-button/ap-button.vue.mjs +116 -0
- package/es/src/ap-button/ap-button.vue2.mjs +4 -0
- package/es/src/ap-button/index.d.ts +3 -0
- package/es/src/ap-button/index.mjs +2 -0
- package/es/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
- package/es/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/es/src/ap-form/dependency/index.vue.mjs +37 -0
- package/es/src/ap-form/dependency/index.vue2.mjs +4 -0
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +10 -6
- package/es/src/ap-form/interface.d.ts +3 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +52 -50
- package/es/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/es/src/business/hooks/useTableRefresh.mjs +1 -1
- package/es/src/business/index.d.ts +0 -265
- package/es/src/business/index.mjs +21 -25
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +169 -165
- package/lib/index.js +1 -1
- package/lib/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts} +8 -3
- package/lib/src/ap-button/ap-button.vue.js +1 -0
- package/lib/src/ap-button/ap-button.vue2.js +1 -0
- package/lib/src/ap-button/index.d.ts +3 -0
- package/lib/src/ap-button/index.js +1 -0
- package/lib/src/{business/ap-action-button → ap-button}/interface.d.ts +2 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +28 -0
- package/lib/src/ap-form/dependency/index.vue.js +1 -0
- package/lib/src/ap-form/dependency/index.vue2.js +1 -0
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +1 -1
- package/lib/src/business/hooks/useTableRefresh.js +1 -1
- package/lib/src/business/index.d.ts +0 -265
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/package.json +1 -1
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +0 -4
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +0 -97
- package/lib/src/business/ap-action-button/ApActionButton.vue.js +0 -1
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +0 -1
- /package/es/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/es/src/{business/ap-action-button → ap-button}/interface.mjs +0 -0
- /package/es/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/index.css +0 -0
- /package/lib/src/{business/ap-action-button → ap-button}/interface.js +0 -0
- /package/lib/src/theme/{ap-action-button/ap-action-button.css → ap-button/ap-button.css} +0 -0
package/es/index.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import * as o from "./src/index.mjs";
|
|
|
2
2
|
import "./src/hooks/index.mjs";
|
|
3
3
|
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
|
-
import { configProviderContextKey as
|
|
5
|
+
import { configProviderContextKey as i, 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
|
-
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as
|
|
8
|
-
import { defaultNamespace as
|
|
7
|
+
import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as D } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { defaultNamespace as h, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as B } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as v, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as k } from "./src/config-provider/index.mjs";
|
|
11
|
-
import { Scrollbar as
|
|
11
|
+
import { Scrollbar as N } from "./src/scroll-bar/index.mjs";
|
|
12
12
|
import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
|
|
13
13
|
import { IconPicker as H } from "./src/icon-picker/index.mjs";
|
|
14
14
|
import { default as W } from "./src/locale/lang/zh-cn.mjs";
|
|
@@ -16,18 +16,18 @@ import { default as U } from "./src/locale/lang/en.mjs";
|
|
|
16
16
|
import { BasicArrow as $, BasicHelp as j, BasicTitle as q } from "./src/basic/index.mjs";
|
|
17
17
|
import { default as Q } from "./src/transition/collapse-transition.vue.mjs";
|
|
18
18
|
import { ExpandTransition as _, ExpandXTransition as ee, FadeTransition as oe, ScaleRotateTransition as re, ScaleTransition as te, ScrollXReverseTransition as ae, ScrollXTransition as pe, ScrollYReverseTransition as fe, ScrollYTransition as me, SlideXReverseTransition as le, SlideXTransition as se, SlideYReverseTransition as de, SlideYTransition as xe } from "./src/transition/index.mjs";
|
|
19
|
-
import { useDescription as
|
|
19
|
+
import { useDescription as ie } from "./src/description/use-description.mjs";
|
|
20
20
|
import { Description as Ae } from "./src/description/index.mjs";
|
|
21
21
|
import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
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
|
-
import { Field as
|
|
25
|
-
import { default as
|
|
24
|
+
import { Field as De } from "./src/pro-form/index.mjs";
|
|
25
|
+
import { default as he } 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 Ge } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
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
|
-
import { default as
|
|
30
|
+
import { default as Ne } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
31
|
import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
|
|
32
32
|
import { default as Ye } from "./src/pro-form/components/api-tree-select.vue.mjs";
|
|
33
33
|
import { default as Oe } from "./src/pro-form/table-form.vue.mjs";
|
|
@@ -40,19 +40,19 @@ import { useModalContext as eo } from "./src/modal/hooks/use-modal-context.mjs";
|
|
|
40
40
|
import { useModal as ro, useModalInner as to } from "./src/modal/hooks/use-modal.mjs";
|
|
41
41
|
import { BaseModal as po } from "./src/modal/index.mjs";
|
|
42
42
|
import { CropperAvatar as mo, CropperImage as lo } from "./src/cropper/index.mjs";
|
|
43
|
-
import { CountdownButton as xo, CountdownInput as
|
|
43
|
+
import { CountdownButton as xo, CountdownInput as uo } from "./src/count-down/index.mjs";
|
|
44
44
|
import { createPrompt as no } from "./src/prompt/index.mjs";
|
|
45
45
|
import { Dropdown as co } from "./src/dropdown/index.mjs";
|
|
46
46
|
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
|
-
import { default as
|
|
50
|
-
import { useTable as
|
|
49
|
+
import { default as Do } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
|
+
import { useTable as ho } 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 Go } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
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
|
-
import { default as
|
|
55
|
+
import { default as No } 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";
|
|
57
57
|
import { default as Yo } from "./src/ap-form/items/select/index.vue.mjs";
|
|
58
58
|
import { default as Oo } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
@@ -64,58 +64,60 @@ import { default as Zo } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
|
|
|
64
64
|
import { default as er } from "./src/ap-form/ap-form-list.vue.mjs";
|
|
65
65
|
import { default as rr } from "./src/ap-form/search-form/index.vue.mjs";
|
|
66
66
|
import { default as ar } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as nr } from "./src/ap-field/
|
|
72
|
-
import { default as cr } from "./src/ap-field/
|
|
73
|
-
import { default as Fr } from "./src/ap-field/
|
|
74
|
-
import { default as br } from "./src/ap-field/
|
|
75
|
-
import { default as Ir } from "./src/ap-field/
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as Rr } from "./src/ap-field/
|
|
79
|
-
import { default as Gr } from "./src/ap-field/
|
|
80
|
-
import { default as Lr } from "./src/ap-field/
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import { default as Hr } from "./src/ap-action/item-
|
|
85
|
-
import { default as Wr } from "./src/ap-action/item-
|
|
86
|
-
import { default as Ur } from "./src/ap-action/
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import { default as _r } from "./src/ap-custom-column/column
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import { default as lt } from "./src/
|
|
95
|
-
import { default as dt } from "./src/ap-tag/ap-tag
|
|
96
|
-
import { default as
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import { default as
|
|
116
|
-
import { default as
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
67
|
+
import { default as fr } from "./src/ap-form/dependency/index.vue.mjs";
|
|
68
|
+
import { ApField as lr } from "./src/ap-field/index.mjs";
|
|
69
|
+
import { ApFieldText as dr } from "./src/ap-field/text/index.mjs";
|
|
70
|
+
import { default as ur } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
71
|
+
import { default as nr } from "./src/ap-field/date/index.vue.mjs";
|
|
72
|
+
import { default as cr } from "./src/ap-field/number/index.vue.mjs";
|
|
73
|
+
import { default as Fr } from "./src/ap-field/radio/index.vue.mjs";
|
|
74
|
+
import { default as br } from "./src/ap-field/switch/index.vue.mjs";
|
|
75
|
+
import { default as Ir } from "./src/ap-field/text-area/index.vue.mjs";
|
|
76
|
+
import { default as Dr } from "./src/ap-field/date-range/index.vue.mjs";
|
|
77
|
+
import { default as hr } from "./src/ap-field/select/index.vue.mjs";
|
|
78
|
+
import { default as Rr } from "./src/ap-field/text/password.vue.mjs";
|
|
79
|
+
import { default as Gr } from "./src/ap-field/slider/index.vue.mjs";
|
|
80
|
+
import { default as Lr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
81
|
+
import { default as kr } from "./src/ap-field/rate/index.vue.mjs";
|
|
82
|
+
import { adminToken as Nr, aplusToken as Er } from "./src/design-token/index.mjs";
|
|
83
|
+
import { ApActionItem as Xr } from "./src/ap-action/index.mjs";
|
|
84
|
+
import { default as Hr } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
85
|
+
import { default as Wr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
86
|
+
import { default as Ur } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
87
|
+
import { default as $r } from "./src/ap-action/group/index.vue.mjs";
|
|
88
|
+
import { generateTableList as qr } from "./src/ap-custom-column/utils.mjs";
|
|
89
|
+
import { useCacheColumnSetting as Qr } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
|
|
90
|
+
import { default as _r } from "./src/ap-custom-column/custom-column.vue.mjs";
|
|
91
|
+
import { default as ot } from "./src/ap-custom-column/column-select.vue.mjs";
|
|
92
|
+
import { DictCode as tt, langMap as at } from "./src/work-order-modal/interfaces.mjs";
|
|
93
|
+
import { createWorkOrderModal as ft } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
94
|
+
import { default as lt } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
95
|
+
import { default as dt } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
96
|
+
import { default as ut } from "./src/ap-tag/ap-tag-group.vue.mjs";
|
|
97
|
+
import { default as nt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
|
|
98
|
+
import { NeedNameKeyDefault as ct } from "./src/ap-upload/apUploadTypes.mjs";
|
|
99
|
+
import { default as Ft } from "./src/ap-upload/apUpload.vue.mjs";
|
|
100
|
+
import { ApDownLoadNeedNameKeyDefault as bt } from "./src/ap-download/interface.mjs";
|
|
101
|
+
import { default as It } from "./src/ap-download/ap-download.vue.mjs";
|
|
102
|
+
import { CheckCard as Dt } from "./src/check-card/index.mjs";
|
|
103
|
+
import { default as ht } from "./src/check-card/group.vue.mjs";
|
|
104
|
+
import { ApModal as Rt } from "./src/ap-modal/index.mjs";
|
|
105
|
+
import { default as Gt } from "./src/ap-list/index.vue.mjs";
|
|
106
|
+
import { default as Lt } from "./src/ap-button/ap-button.vue.mjs";
|
|
107
|
+
import { usePageListApTable as kt } from "./src/business/hooks/usePageListApTable.mjs";
|
|
108
|
+
import { useTableRefresh as Nt } from "./src/business/hooks/useTableRefresh.mjs";
|
|
109
|
+
import { default as Kt } from "./src/business/ap-table-modal/index.mjs";
|
|
110
|
+
import { useTableModal as Yt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
111
|
+
import { useTableSelectModal as Ot } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
112
|
+
import { ApAttachment as zt, ApBatchAction as Ut, ApBatchActionGroup as Vt, ApExpandAlert as $t, ApExportGroup as jt, ApImage as qt, ApInputRadio as Jt, ApLabel as Qt, ApLabelGroup as Zt, ApLadder as _t, ApSelectLayout as ea, ApStatus as oa, ApStatusGroup as ra, ApTitle as ta } from "./src/business/index.mjs";
|
|
113
|
+
import { ApTransformDataHelper as pa } from "./src/utils/ap-trans-data/index.mjs";
|
|
114
|
+
import { useTablePaging as ma } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
115
|
+
import { default as sa } from "./src/ap-table/ap-table.vue.mjs";
|
|
116
|
+
import { default as xa } from "./src/editable-table/index.vue.mjs";
|
|
117
|
+
import { default as ia } from "./src/editable-table/form-item.vue.mjs";
|
|
118
|
+
import { default as Aa } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
|
|
119
|
+
import { useMessage as Ta } from "./src/hooks/useMessage.mjs";
|
|
120
|
+
import { useControllableValue as Ca } from "./src/hooks/useControllableValue.mjs";
|
|
119
121
|
const p = {
|
|
120
122
|
install: (r) => {
|
|
121
123
|
for (const t in o) {
|
|
@@ -126,41 +128,42 @@ const p = {
|
|
|
126
128
|
};
|
|
127
129
|
export {
|
|
128
130
|
k as APConfigProvider,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
131
|
+
$r as ApActionGroup,
|
|
132
|
+
Xr as ApActionItem,
|
|
133
|
+
Ur as ApActionItemDropdown,
|
|
134
|
+
Hr as ApActionItemModal,
|
|
135
|
+
Wr as ApActionItemPopconfirm,
|
|
136
|
+
zt as ApAttachment,
|
|
137
|
+
Ut as ApBatchAction,
|
|
138
|
+
Vt as ApBatchActionGroup,
|
|
139
|
+
Lt as ApButton,
|
|
140
|
+
_r as ApCustomColumn,
|
|
141
|
+
ot as ApCustomSelect,
|
|
142
|
+
Aa as ApDescriptions,
|
|
143
|
+
bt as ApDownLoadNeedNameKeyDefault,
|
|
144
|
+
It as ApDownload,
|
|
145
|
+
$t as ApExpandAlert,
|
|
146
|
+
jt as ApExportGroup,
|
|
147
|
+
lr as ApField,
|
|
148
|
+
ur as ApFieldCheckbox,
|
|
149
|
+
nr as ApFieldDate,
|
|
150
|
+
Dr as ApFieldDateRange,
|
|
151
|
+
cr as ApFieldNumber,
|
|
152
|
+
Rr as ApFieldPassword,
|
|
153
|
+
Fr as ApFieldRadio,
|
|
154
|
+
kr as ApFieldRate,
|
|
155
|
+
Lr as ApFieldSegmented,
|
|
156
|
+
hr as ApFieldSelect,
|
|
157
|
+
Gr as ApFieldSlider,
|
|
158
|
+
br as ApFieldSwitch,
|
|
159
|
+
dr as ApFieldText,
|
|
160
|
+
Ir as ApFieldTextArea,
|
|
159
161
|
jo as ApForm,
|
|
162
|
+
fr as ApFormDependency,
|
|
160
163
|
Jo as ApFormItem,
|
|
161
164
|
zo as ApFormItemCheckbox,
|
|
162
165
|
ko as ApFormItemDate,
|
|
163
|
-
|
|
166
|
+
No as ApFormItemDateRange,
|
|
164
167
|
Zo as ApFormItemGroup,
|
|
165
168
|
Lo as ApFormItemNumber,
|
|
166
169
|
Ko as ApFormItemRadio,
|
|
@@ -172,25 +175,25 @@ export {
|
|
|
172
175
|
er as ApFormList,
|
|
173
176
|
ar as ApFormModalForm,
|
|
174
177
|
rr as ApFormSearchForm,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
178
|
+
qt as ApImage,
|
|
179
|
+
nt as ApInfoLayout,
|
|
180
|
+
Jt as ApInputRadio,
|
|
181
|
+
Qt as ApLabel,
|
|
182
|
+
Zt as ApLabelGroup,
|
|
183
|
+
_t as ApLadder,
|
|
184
|
+
Gt as ApList,
|
|
185
|
+
Rt as ApModal,
|
|
186
|
+
ea as ApSelectLayout,
|
|
187
|
+
oa as ApStatus,
|
|
188
|
+
ra as ApStatusGroup,
|
|
189
|
+
sa as ApTable,
|
|
190
|
+
Kt as ApTableModal,
|
|
191
|
+
dt as ApTag,
|
|
192
|
+
ut as ApTagGroup,
|
|
193
|
+
ta as ApTitle,
|
|
194
|
+
pa as ApTransformDataHelper,
|
|
195
|
+
Ft as ApUpload,
|
|
196
|
+
he as ApiCascader,
|
|
194
197
|
Re as ApiRadioGroup,
|
|
195
198
|
Ge as ApiSelect,
|
|
196
199
|
Le as ApiTransfer,
|
|
@@ -201,35 +204,35 @@ export {
|
|
|
201
204
|
$ as BasicArrow,
|
|
202
205
|
j as BasicHelp,
|
|
203
206
|
q as BasicTitle,
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
Dt as CheckCard,
|
|
208
|
+
ht as CheckCardGroup,
|
|
206
209
|
K as CollapseContainer,
|
|
207
210
|
Q as CollapseTransition,
|
|
208
211
|
v as ConfigProvider,
|
|
209
212
|
xo as CountdownButton,
|
|
210
|
-
|
|
213
|
+
uo as CountdownInput,
|
|
211
214
|
mo as CropperAvatar,
|
|
212
215
|
lo as CropperImage,
|
|
213
216
|
Ae as Description,
|
|
214
|
-
|
|
217
|
+
tt as DictCode,
|
|
215
218
|
co as Dropdown,
|
|
216
219
|
Io as EditTableHeaderIcon,
|
|
217
|
-
|
|
218
|
-
|
|
220
|
+
xa as EditableTable,
|
|
221
|
+
ia as EditableTableFormItem,
|
|
219
222
|
_ as ExpandTransition,
|
|
220
223
|
ee as ExpandXTransition,
|
|
221
224
|
oe as FadeTransition,
|
|
222
|
-
|
|
225
|
+
De as Field,
|
|
223
226
|
l as Icon,
|
|
224
227
|
H as IconPicker,
|
|
225
228
|
Ve as ModalButton,
|
|
226
|
-
|
|
229
|
+
ct as NeedNameKeyDefault,
|
|
227
230
|
je as PopConfirmButton,
|
|
228
231
|
Ke as ProForm,
|
|
229
232
|
Fo as ProTable,
|
|
230
233
|
Oe as ProTableForm,
|
|
231
234
|
ze as ProTableFormInner,
|
|
232
|
-
|
|
235
|
+
Ne as RadioButtonGroup,
|
|
233
236
|
re as ScaleRotateTransition,
|
|
234
237
|
te as ScaleTransition,
|
|
235
238
|
X as ScrollContainer,
|
|
@@ -237,7 +240,7 @@ export {
|
|
|
237
240
|
pe as ScrollXTransition,
|
|
238
241
|
fe as ScrollYReverseTransition,
|
|
239
242
|
me as ScrollYTransition,
|
|
240
|
-
|
|
243
|
+
N as Scrollbar,
|
|
241
244
|
le as SlideXReverseTransition,
|
|
242
245
|
se as SlideXTransition,
|
|
243
246
|
de as SlideYReverseTransition,
|
|
@@ -245,48 +248,48 @@ export {
|
|
|
245
248
|
Ze as StrengthMeter,
|
|
246
249
|
s as SvgIcon,
|
|
247
250
|
bo as TableAction,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
Do as TableImg,
|
|
252
|
+
lt as WorkOrderModal,
|
|
253
|
+
Nr as adminToken,
|
|
254
|
+
Er as aplusToken,
|
|
252
255
|
b as buildLocaleContext,
|
|
253
256
|
S as buildTranslator,
|
|
254
|
-
|
|
257
|
+
i as configProviderContextKey,
|
|
255
258
|
x as configProviderProps,
|
|
256
259
|
no as createPrompt,
|
|
257
|
-
|
|
260
|
+
ft as createWorkOrderModal,
|
|
258
261
|
p as default,
|
|
259
|
-
|
|
262
|
+
h as defaultNamespace,
|
|
260
263
|
U as en,
|
|
261
|
-
|
|
264
|
+
qr as generateTableList,
|
|
262
265
|
L as globalConfigCached,
|
|
263
266
|
Se as isComponentFormSchema,
|
|
264
267
|
Ie as isSlotFormSchema,
|
|
265
268
|
c as keysOf,
|
|
266
|
-
|
|
269
|
+
at as langMap,
|
|
267
270
|
I as localeContextKey,
|
|
268
271
|
M as namespaceContextKey,
|
|
269
272
|
T as provideGlobalConfig,
|
|
270
273
|
n as tableDefaultConfig,
|
|
271
274
|
g as translate,
|
|
272
|
-
|
|
275
|
+
Qr as useCacheColumnSetting,
|
|
273
276
|
Te as useComponentRegister,
|
|
274
|
-
|
|
275
|
-
|
|
277
|
+
Ca as useControllableValue,
|
|
278
|
+
ie as useDescription,
|
|
276
279
|
Ce as useForm,
|
|
277
280
|
R as useGetDerivedNamespace,
|
|
278
281
|
F as useGlobalConfig,
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
D as useLocale,
|
|
283
|
+
Ta as useMessage,
|
|
281
284
|
ro as useModal,
|
|
282
285
|
eo as useModalContext,
|
|
283
286
|
to as useModalInner,
|
|
284
287
|
B as useNamespace,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
kt as usePageListApTable,
|
|
289
|
+
ho as useTable,
|
|
290
|
+
Yt as useTableModal,
|
|
291
|
+
ma as useTablePaging,
|
|
292
|
+
Nt as useTableRefresh,
|
|
293
|
+
Ot as useTableSelectModal,
|
|
291
294
|
W as zhCn
|
|
292
295
|
};
|
package/es/src/{business/ap-action-button/ApActionButton.vue.d.ts → ap-button/ap-button.vue.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApButtonProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import { ButtonType } from 'ant-design-vue/es/button';
|
|
4
4
|
declare function __VLS_template(): {
|
|
@@ -7,15 +7,20 @@ declare function __VLS_template(): {
|
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
|
|
11
11
|
type: string;
|
|
12
12
|
minWidth: boolean;
|
|
13
|
-
|
|
13
|
+
loading: undefined;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
|
|
14
15
|
type: string;
|
|
15
16
|
minWidth: boolean;
|
|
17
|
+
loading: undefined;
|
|
16
18
|
}>>>, {
|
|
17
19
|
type: ButtonType | "borderLink";
|
|
18
20
|
minWidth: boolean | number | string;
|
|
21
|
+
loading: boolean | {
|
|
22
|
+
delay?: number;
|
|
23
|
+
};
|
|
19
24
|
}, {}>;
|
|
20
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
26
|
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { defineComponent as x, ref as _, computed as r, openBlock as w, createBlock as z, unref as c, mergeProps as A, createSlots as F, renderList as O, withCtx as S, renderSlot as T, normalizeProps as j, guardReactiveProps as G } from "vue";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { Button as I } from "ant-design-vue";
|
|
4
|
+
import "../config-provider/index.mjs";
|
|
5
|
+
import { omit as N } from "lodash-unified";
|
|
6
|
+
import { useNamespace as R } from "../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useGlobalConfig as q } from "../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
const D = 88, X = /* @__PURE__ */ x({
|
|
9
|
+
__name: "ap-button",
|
|
10
|
+
props: {
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
htmlType: {},
|
|
13
|
+
shape: {},
|
|
14
|
+
size: {},
|
|
15
|
+
loading: { type: [Boolean, Object], default: void 0 },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
ghost: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
danger: { type: Boolean },
|
|
20
|
+
icon: {},
|
|
21
|
+
href: {},
|
|
22
|
+
target: {},
|
|
23
|
+
title: {},
|
|
24
|
+
onMousedown: {},
|
|
25
|
+
type: { default: "default" },
|
|
26
|
+
borderLinkColor: {},
|
|
27
|
+
minWidth: { type: [Boolean, Number, String], default: !1 },
|
|
28
|
+
onClick: {}
|
|
29
|
+
},
|
|
30
|
+
setup(k) {
|
|
31
|
+
const e = k, d = {
|
|
32
|
+
aplus: "#0070FF",
|
|
33
|
+
admin: "#34b77c"
|
|
34
|
+
}, { b: p } = R("ap-action-button"), B = q("uiMode"), l = _(!1), W = r(
|
|
35
|
+
() => e.borderLinkColor || d[B.value] || d.aplus
|
|
36
|
+
), f = r(
|
|
37
|
+
() => e.type === "borderLink" ? W.value : void 0
|
|
38
|
+
), m = r(() => P(f.value)), L = r(() => e.minWidth === !0 ? `${D}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), $ = r(
|
|
39
|
+
() => (e.type === "borderLink" ? "default" : e.type) || "default"
|
|
40
|
+
), b = r(() => e.loading ?? l.value ?? !1);
|
|
41
|
+
function h() {
|
|
42
|
+
const n = N(e, [
|
|
43
|
+
"type",
|
|
44
|
+
"borderLinkColor",
|
|
45
|
+
"minWidth",
|
|
46
|
+
"onClick",
|
|
47
|
+
"loading"
|
|
48
|
+
]);
|
|
49
|
+
return n ? {
|
|
50
|
+
...n,
|
|
51
|
+
type: $.value,
|
|
52
|
+
onclick: M
|
|
53
|
+
} : {};
|
|
54
|
+
}
|
|
55
|
+
async function M() {
|
|
56
|
+
var n;
|
|
57
|
+
if (!b.value) {
|
|
58
|
+
l.value = !0;
|
|
59
|
+
try {
|
|
60
|
+
await ((n = e.onClick) == null ? void 0 : n.call(e));
|
|
61
|
+
} finally {
|
|
62
|
+
l.value = !1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function P(n, u = "0.7") {
|
|
67
|
+
var g;
|
|
68
|
+
try {
|
|
69
|
+
var t = n == null ? void 0 : n.toLowerCase(), s = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
70
|
+
if (t && s.test(t)) {
|
|
71
|
+
if (t.length === 4) {
|
|
72
|
+
for (var v = "#", o = 1; o < 4; o += 1)
|
|
73
|
+
v += t.slice(o, o + 1).concat(t.slice(o, o + 1));
|
|
74
|
+
t = v;
|
|
75
|
+
}
|
|
76
|
+
for (var y = [], i = 1; i < 7; i += 2)
|
|
77
|
+
y.push(parseInt("0x" + t.slice(i, i + 2)));
|
|
78
|
+
return "rgba(" + y.join(",") + "," + u + ")";
|
|
79
|
+
}
|
|
80
|
+
if (t && t.startsWith("rgb")) {
|
|
81
|
+
let a = t.match(/(\d(\.\d+)?)+/g);
|
|
82
|
+
return a = (g = a == null ? void 0 : a.slice(0, 3)) == null ? void 0 : g.concat(u), "rgba(" + a.join(",") + ")";
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
} catch {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return (n, u) => (w(), z(c(I), A({
|
|
90
|
+
class: {
|
|
91
|
+
[c(p)()]: !0,
|
|
92
|
+
[`${c(p)()}-border-link`]: m.value
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
...n.$attrs,
|
|
96
|
+
...h()
|
|
97
|
+
}, {
|
|
98
|
+
style: {
|
|
99
|
+
color: f.value,
|
|
100
|
+
minWidth: L.value,
|
|
101
|
+
"--button-border-color": m.value
|
|
102
|
+
},
|
|
103
|
+
loading: b.value
|
|
104
|
+
}), F({ _: 2 }, [
|
|
105
|
+
O(Object.keys(n.$slots), (t) => ({
|
|
106
|
+
name: t,
|
|
107
|
+
fn: S((s) => [
|
|
108
|
+
T(n.$slots, t, j(G(s || {})))
|
|
109
|
+
])
|
|
110
|
+
}))
|
|
111
|
+
]), 1040, ["class", "style", "loading"]));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
X as default
|
|
116
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from 'ant-design-vue';
|
|
2
|
-
export type
|
|
2
|
+
export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
|
|
3
3
|
type?: ButtonProps['type'] | 'borderLink';
|
|
4
4
|
borderLinkColor?: string;
|
|
5
5
|
minWidth?: boolean | number | string;
|
|
6
|
+
onClick?: () => any | Promise<any>;
|
|
6
7
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApFormDependencyProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
type ApFormDependencySlots = {
|
|
4
|
+
default(values: Record<string, any>): any;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: Readonly<ApFormDependencySlots> & ApFormDependencySlots;
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApFormDependencyProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApFormDependencyProps>>>, {}, {}>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToOption<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|