@aplus-frontend/ui 0.1.29 → 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 +154 -149
- package/es/src/ap-button/ap-button.vue.d.ts +48 -0
- 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.css +6 -0
- package/es/src/ap-button/index.d.ts +3 -0
- package/es/src/ap-button/index.mjs +2 -0
- package/es/src/ap-button/interface.d.ts +7 -0
- package/es/src/ap-button/interface.mjs +1 -0
- package/es/src/ap-form/ap-form.vue.d.ts +1 -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/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +84 -89
- package/es/src/ap-table/utils.mjs +42 -42
- 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/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +41 -41
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +29 -29
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +256 -250
- package/es/src/theme/ap-button/ap-button.css +6 -0
- package/es/src/work-order-modal/index.mjs +4 -3
- package/es/src/work-order-modal/interfaces.d.ts +3 -0
- package/es/src/work-order-modal/interfaces.mjs +6 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +48 -0
- 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.css +6 -0
- package/lib/src/ap-button/index.d.ts +3 -0
- package/lib/src/ap-button/index.js +1 -0
- package/lib/src/ap-button/interface.d.ts +7 -0
- package/lib/src/ap-button/interface.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -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/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- 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/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-button/ap-button.css +6 -0
- package/lib/src/work-order-modal/index.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +3 -0
- package/lib/src/work-order-modal/interfaces.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
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
|
|
9
|
-
import { ConfigProvider 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
|
+
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
|
-
import { default as
|
|
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
|
-
import { default as
|
|
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
|
|
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
|
|
95
|
-
import { default as
|
|
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,72 +128,74 @@ const p = {
|
|
|
126
128
|
};
|
|
127
129
|
export {
|
|
128
130
|
k as APConfigProvider,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
_r as
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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,
|
|
158
161
|
jo as ApForm,
|
|
162
|
+
fr as ApFormDependency,
|
|
159
163
|
Jo as ApFormItem,
|
|
160
164
|
zo as ApFormItemCheckbox,
|
|
161
165
|
ko as ApFormItemDate,
|
|
162
|
-
|
|
166
|
+
No as ApFormItemDateRange,
|
|
163
167
|
Zo as ApFormItemGroup,
|
|
164
168
|
Lo as ApFormItemNumber,
|
|
165
169
|
Ko as ApFormItemRadio,
|
|
166
170
|
Yo as ApFormItemSelect,
|
|
167
171
|
Oo as ApFormItemSwitch,
|
|
168
172
|
Ro as ApFormItemText,
|
|
169
|
-
|
|
173
|
+
Go as ApFormItemTextArea,
|
|
170
174
|
Vo as ApFormItemTextPassword,
|
|
171
175
|
er as ApFormList,
|
|
172
176
|
ar as ApFormModalForm,
|
|
173
177
|
rr as ApFormSearchForm,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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,
|
|
193
197
|
Re as ApiRadioGroup,
|
|
194
|
-
|
|
198
|
+
Ge as ApiSelect,
|
|
195
199
|
Le as ApiTransfer,
|
|
196
200
|
ke as ApiTree,
|
|
197
201
|
Ye as ApiTreeSelect,
|
|
@@ -200,35 +204,35 @@ export {
|
|
|
200
204
|
$ as BasicArrow,
|
|
201
205
|
j as BasicHelp,
|
|
202
206
|
q as BasicTitle,
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
Dt as CheckCard,
|
|
208
|
+
ht as CheckCardGroup,
|
|
205
209
|
K as CollapseContainer,
|
|
206
210
|
Q as CollapseTransition,
|
|
207
|
-
|
|
211
|
+
v as ConfigProvider,
|
|
208
212
|
xo as CountdownButton,
|
|
209
|
-
|
|
213
|
+
uo as CountdownInput,
|
|
210
214
|
mo as CropperAvatar,
|
|
211
215
|
lo as CropperImage,
|
|
212
216
|
Ae as Description,
|
|
213
|
-
|
|
217
|
+
tt as DictCode,
|
|
214
218
|
co as Dropdown,
|
|
215
219
|
Io as EditTableHeaderIcon,
|
|
216
|
-
|
|
217
|
-
|
|
220
|
+
xa as EditableTable,
|
|
221
|
+
ia as EditableTableFormItem,
|
|
218
222
|
_ as ExpandTransition,
|
|
219
223
|
ee as ExpandXTransition,
|
|
220
224
|
oe as FadeTransition,
|
|
221
|
-
|
|
225
|
+
De as Field,
|
|
222
226
|
l as Icon,
|
|
223
227
|
H as IconPicker,
|
|
224
228
|
Ve as ModalButton,
|
|
225
|
-
|
|
229
|
+
ct as NeedNameKeyDefault,
|
|
226
230
|
je as PopConfirmButton,
|
|
227
231
|
Ke as ProForm,
|
|
228
232
|
Fo as ProTable,
|
|
229
233
|
Oe as ProTableForm,
|
|
230
234
|
ze as ProTableFormInner,
|
|
231
|
-
|
|
235
|
+
Ne as RadioButtonGroup,
|
|
232
236
|
re as ScaleRotateTransition,
|
|
233
237
|
te as ScaleTransition,
|
|
234
238
|
X as ScrollContainer,
|
|
@@ -236,7 +240,7 @@ export {
|
|
|
236
240
|
pe as ScrollXTransition,
|
|
237
241
|
fe as ScrollYReverseTransition,
|
|
238
242
|
me as ScrollYTransition,
|
|
239
|
-
|
|
243
|
+
N as Scrollbar,
|
|
240
244
|
le as SlideXReverseTransition,
|
|
241
245
|
se as SlideXTransition,
|
|
242
246
|
de as SlideYReverseTransition,
|
|
@@ -244,47 +248,48 @@ export {
|
|
|
244
248
|
Ze as StrengthMeter,
|
|
245
249
|
s as SvgIcon,
|
|
246
250
|
bo as TableAction,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
Do as TableImg,
|
|
252
|
+
lt as WorkOrderModal,
|
|
253
|
+
Nr as adminToken,
|
|
254
|
+
Er as aplusToken,
|
|
251
255
|
b as buildLocaleContext,
|
|
252
256
|
S as buildTranslator,
|
|
253
|
-
|
|
257
|
+
i as configProviderContextKey,
|
|
254
258
|
x as configProviderProps,
|
|
255
259
|
no as createPrompt,
|
|
256
|
-
|
|
260
|
+
ft as createWorkOrderModal,
|
|
257
261
|
p as default,
|
|
258
|
-
|
|
262
|
+
h as defaultNamespace,
|
|
259
263
|
U as en,
|
|
260
|
-
|
|
264
|
+
qr as generateTableList,
|
|
261
265
|
L as globalConfigCached,
|
|
262
266
|
Se as isComponentFormSchema,
|
|
263
267
|
Ie as isSlotFormSchema,
|
|
264
268
|
c as keysOf,
|
|
269
|
+
at as langMap,
|
|
265
270
|
I as localeContextKey,
|
|
266
271
|
M as namespaceContextKey,
|
|
267
272
|
T as provideGlobalConfig,
|
|
268
273
|
n as tableDefaultConfig,
|
|
269
274
|
g as translate,
|
|
270
|
-
|
|
275
|
+
Qr as useCacheColumnSetting,
|
|
271
276
|
Te as useComponentRegister,
|
|
272
|
-
|
|
273
|
-
|
|
277
|
+
Ca as useControllableValue,
|
|
278
|
+
ie as useDescription,
|
|
274
279
|
Ce as useForm,
|
|
275
280
|
R as useGetDerivedNamespace,
|
|
276
281
|
F as useGlobalConfig,
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
D as useLocale,
|
|
283
|
+
Ta as useMessage,
|
|
279
284
|
ro as useModal,
|
|
280
285
|
eo as useModalContext,
|
|
281
286
|
to as useModalInner,
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
B as useNamespace,
|
|
288
|
+
kt as usePageListApTable,
|
|
289
|
+
ho as useTable,
|
|
290
|
+
Yt as useTableModal,
|
|
291
|
+
ma as useTablePaging,
|
|
292
|
+
Nt as useTableRefresh,
|
|
293
|
+
Ot as useTableSelectModal,
|
|
289
294
|
W as zhCn
|
|
290
295
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ApButtonProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ButtonType } from 'ant-design-vue/es/button';
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
|
|
11
|
+
type: string;
|
|
12
|
+
minWidth: boolean;
|
|
13
|
+
loading: undefined;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
|
|
15
|
+
type: string;
|
|
16
|
+
minWidth: boolean;
|
|
17
|
+
loading: undefined;
|
|
18
|
+
}>>>, {
|
|
19
|
+
type: ButtonType | "borderLink";
|
|
20
|
+
minWidth: boolean | number | string;
|
|
21
|
+
loading: boolean | {
|
|
22
|
+
delay?: number;
|
|
23
|
+
};
|
|
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,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
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.aplus-ap-action-button-border-link:not(:disabled):hover,
|
|
2
|
+
.aplus-ap-action-button-border-link:not(:disabled):active,
|
|
3
|
+
.aplus-ap-action-button-border-link:not(:disabled):focus {
|
|
4
|
+
border-color: var(--button-border-color);
|
|
5
|
+
color: var(--button-border-color) !important;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonProps } from 'ant-design-vue';
|
|
2
|
+
export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
|
|
3
|
+
type?: ButtonProps['type'] | 'borderLink';
|
|
4
|
+
borderLinkColor?: string;
|
|
5
|
+
minWidth?: boolean | number | string;
|
|
6
|
+
onClick?: () => any | Promise<any>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -897,7 +897,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
897
897
|
validateTrigger: string;
|
|
898
898
|
}>, {
|
|
899
899
|
resetFields: () => Promise<void>;
|
|
900
|
-
clearValidate: (name?: NamePath) => void;
|
|
900
|
+
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
901
901
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
902
902
|
[key: string]: any;
|
|
903
903
|
}> | undefined;
|