@aplus-frontend/ui 0.0.12 → 0.0.13
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 +166 -158
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-form/ap-form.vue2.mjs +22 -22
- package/es/src/ap-table/ap-table.vue.d.ts +5 -1
- package/es/src/business/index.d.ts +126 -0
- package/es/src/business/index.mjs +8 -0
- package/es/src/business/title/ApTitle.vue.d.ts +45 -0
- package/es/src/business/title/ApTitle.vue.mjs +50 -0
- package/es/src/business/title/ApTitle.vue2.mjs +4 -0
- package/es/src/business/title/interface.d.ts +21 -0
- package/es/src/business/title/style.css +39 -0
- package/es/src/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.d.ts +304 -0
- package/es/src/editable-table/form-item.vue.mjs +189 -0
- package/es/src/editable-table/form-item.vue2.mjs +4 -0
- package/es/src/editable-table/hooks/use-get-columns.d.ts +5 -0
- package/es/src/editable-table/hooks/use-get-columns.mjs +76 -0
- package/es/src/editable-table/index.d.ts +5 -0
- package/es/src/editable-table/index.mjs +3 -0
- package/es/src/editable-table/index.vue.d.ts +196 -0
- package/es/src/editable-table/index.vue.mjs +209 -0
- package/es/src/editable-table/index.vue2.mjs +4 -0
- package/es/src/editable-table/interface.d.ts +71 -6
- package/es/src/editable-table/interface.mjs +1 -0
- package/es/src/editable-table/style/index.css +35 -0
- package/es/src/editable-table/utils.mjs +10 -0
- package/es/src/index.d.ts +2 -0
- package/es/src/index.mjs +229 -220
- package/es/src/theme/antd-global-overwrite/admin/index.css +8 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +8 -0
- package/es/src/theme/ap-title/ap-title.css +39 -0
- package/es/src/theme/editable-table/index.css +35 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -1
- package/lib/src/business/index.d.ts +126 -0
- package/lib/src/business/index.js +1 -0
- package/lib/src/business/title/ApTitle.vue.d.ts +45 -0
- package/lib/src/business/title/ApTitle.vue.js +1 -0
- package/lib/src/business/title/ApTitle.vue2.js +1 -0
- package/lib/src/business/title/interface.d.ts +21 -0
- package/lib/src/business/title/style.css +39 -0
- package/lib/src/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.d.ts +304 -0
- package/lib/src/editable-table/form-item.vue.js +1 -0
- package/lib/src/editable-table/form-item.vue2.js +1 -0
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +5 -0
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -0
- package/lib/src/editable-table/index.d.ts +5 -0
- package/lib/src/editable-table/index.js +1 -0
- package/lib/src/editable-table/index.vue.d.ts +196 -0
- package/lib/src/editable-table/index.vue.js +1 -0
- package/lib/src/editable-table/index.vue2.js +1 -0
- package/lib/src/editable-table/interface.d.ts +71 -6
- package/lib/src/editable-table/interface.js +1 -0
- package/lib/src/editable-table/style/index.css +35 -0
- package/lib/src/editable-table/utils.js +1 -0
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +8 -0
- package/lib/src/theme/ap-title/ap-title.css +39 -0
- package/lib/src/theme/editable-table/index.css +35 -0
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
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
5
|
import { configProviderContextKey as n, tableDefaultConfig as u } from "./src/config-provider/constants.mjs";
|
|
6
|
-
import { keysOf as c, provideGlobalConfig as
|
|
7
|
-
import { buildLocaleContext as S, buildTranslator as I, localeContextKey as
|
|
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 I, localeContextKey as b, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { defaultNamespace as R, namespaceContextKey as v, useGetDerivedNamespace as M, useNamespace as h } from "./src/config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { ConfigProvider as B } from "./src/config-provider/config-provider.mjs";
|
|
10
10
|
import { APConfigProvider as G } from "./src/config-provider/index.mjs";
|
|
11
11
|
import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
|
|
12
|
-
import { CollapseContainer as
|
|
13
|
-
import { IconPicker as
|
|
12
|
+
import { CollapseContainer as L, ScrollContainer as X } from "./src/container/index.mjs";
|
|
13
|
+
import { IconPicker as Y } from "./src/icon-picker/index.mjs";
|
|
14
14
|
import { default as H } from "./src/locale/lang/zh-cn.mjs";
|
|
15
15
|
import { default as z } from "./src/locale/lang/en.mjs";
|
|
16
|
-
import { BasicArrow as V, BasicHelp as
|
|
17
|
-
import { default as
|
|
18
|
-
import { ExpandTransition as
|
|
19
|
-
import { useDescription as
|
|
20
|
-
import { Description as
|
|
21
|
-
import { useComponentRegister as
|
|
22
|
-
import { useForm as
|
|
23
|
-
import { isComponentFormSchema as
|
|
24
|
-
import { Field as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { BaseButton as
|
|
38
|
-
import { StrengthMeter as
|
|
39
|
-
import { useModalContext as
|
|
40
|
-
import { useModal as
|
|
41
|
-
import { BaseModal as
|
|
42
|
-
import { CropperAvatar as
|
|
43
|
-
import { CountdownButton as
|
|
44
|
-
import { createPrompt as
|
|
45
|
-
import { Dropdown as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { useTable as
|
|
51
|
-
import { ApFormItemText as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { ApForm as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
16
|
+
import { BasicArrow as V, BasicHelp as _, BasicTitle as $ } from "./src/basic/index.mjs";
|
|
17
|
+
import { default as q } from "./src/transition/collapse-transition.vue.mjs";
|
|
18
|
+
import { ExpandTransition as Q, ExpandXTransition as Z, FadeTransition as ee, ScaleRotateTransition as oe, ScaleTransition as re, ScrollXReverseTransition as te, ScrollXTransition as ae, ScrollYReverseTransition as pe, ScrollYTransition as fe, SlideXReverseTransition as me, SlideXTransition as le, SlideYReverseTransition as se, SlideYTransition as de } from "./src/transition/index.mjs";
|
|
19
|
+
import { useDescription as ie } from "./src/description/use-description.mjs";
|
|
20
|
+
import { Description as ue } from "./src/description/index.mjs";
|
|
21
|
+
import { useComponentRegister as ce } from "./src/pro-form/hooks/use-component-register.mjs";
|
|
22
|
+
import { useForm as Fe } from "./src/pro-form/hooks/use-form.mjs";
|
|
23
|
+
import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
|
|
24
|
+
import { Field as ge } from "./src/pro-form/index.mjs";
|
|
25
|
+
import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
|
|
26
|
+
import { default as ve } from "./src/pro-form/components/api-radio-group.vue.mjs";
|
|
27
|
+
import { default as he } from "./src/pro-form/components/api-select.vue.mjs";
|
|
28
|
+
import { default as Be } from "./src/pro-form/components/api-transfer.vue.mjs";
|
|
29
|
+
import { default as Ge } from "./src/pro-form/components/api-tree.vue.mjs";
|
|
30
|
+
import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
|
|
31
|
+
import { default as Le } from "./src/pro-form/pro-form.vue.mjs";
|
|
32
|
+
import { default as Ke } from "./src/pro-form/components/api-tree-select.vue.mjs";
|
|
33
|
+
import { default as Oe } from "./src/pro-form/table-form.vue.mjs";
|
|
34
|
+
import { default as We } from "./src/pro-form/table-form-inner.vue.mjs";
|
|
35
|
+
import { default as Ue } from "./src/base-button/modal-button.vue.mjs";
|
|
36
|
+
import { default as _e } from "./src/base-button/pop-confirm-button.vue.mjs";
|
|
37
|
+
import { BaseButton as je } from "./src/base-button/index.mjs";
|
|
38
|
+
import { StrengthMeter as Je } from "./src/strength-meter/index.mjs";
|
|
39
|
+
import { useModalContext as Ze } from "./src/modal/hooks/use-modal-context.mjs";
|
|
40
|
+
import { useModal as oo, useModalInner as ro } from "./src/modal/hooks/use-modal.mjs";
|
|
41
|
+
import { BaseModal as ao } from "./src/modal/index.mjs";
|
|
42
|
+
import { CropperAvatar as fo, CropperImage as mo } from "./src/cropper/index.mjs";
|
|
43
|
+
import { CountdownButton as so, CountdownInput as xo } from "./src/count-down/index.mjs";
|
|
44
|
+
import { createPrompt as no } from "./src/prompt/index.mjs";
|
|
45
|
+
import { Dropdown as Ao } from "./src/dropdown/index.mjs";
|
|
46
|
+
import { default as To } from "./src/pro-table/pro-table.vue.mjs";
|
|
47
|
+
import { default as Co } from "./src/pro-table/components/table-action.vue.mjs";
|
|
48
|
+
import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
|
|
49
|
+
import { default as go } from "./src/pro-table/components/table-image.vue.mjs";
|
|
50
|
+
import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
|
|
51
|
+
import { ApFormItemText as vo } from "./src/ap-form/items/text/index.mjs";
|
|
52
|
+
import { default as ho } from "./src/ap-form/items/text-area/index.vue.mjs";
|
|
53
|
+
import { default as Bo } from "./src/ap-form/items/number/index.vue.mjs";
|
|
54
|
+
import { default as Go } from "./src/ap-form/items/date/index.vue.mjs";
|
|
55
|
+
import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
|
|
56
|
+
import { default as Lo } from "./src/ap-form/items/radio/index.vue.mjs";
|
|
57
|
+
import { default as Ko } from "./src/ap-form/items/select/index.vue.mjs";
|
|
58
|
+
import { default as Oo } from "./src/ap-form/items/switch/index.vue.mjs";
|
|
59
|
+
import { default as Wo } from "./src/ap-form/items/checkbox/index.vue.mjs";
|
|
60
|
+
import { default as Uo } from "./src/ap-form/items/text/password.vue.mjs";
|
|
61
|
+
import { ApForm as _o } from "./src/ap-form/index.mjs";
|
|
62
|
+
import { default as jo } from "./src/ap-form/ap-form-item.vue.mjs";
|
|
63
|
+
import { default as Jo } from "./src/ap-form/ap-form-item-group/index.vue.mjs";
|
|
64
|
+
import { default as Zo } from "./src/ap-form/ap-form-list.vue.mjs";
|
|
65
|
+
import { default as or } from "./src/ap-form/search-form/index.vue.mjs";
|
|
66
66
|
import { default as tr } from "./src/ap-form/modal-form/index.vue.mjs";
|
|
67
67
|
import { ApField as pr } from "./src/ap-field/index.mjs";
|
|
68
68
|
import { ApFieldText as mr } from "./src/ap-field/text/index.mjs";
|
|
@@ -70,25 +70,25 @@ import { default as sr } from "./src/ap-field/checkbox/index.vue.mjs";
|
|
|
70
70
|
import { default as xr } from "./src/ap-field/date/index.vue.mjs";
|
|
71
71
|
import { default as nr } from "./src/ap-field/number/index.vue.mjs";
|
|
72
72
|
import { default as Ar } from "./src/ap-field/radio/index.vue.mjs";
|
|
73
|
-
import { default as
|
|
73
|
+
import { default as Tr } from "./src/ap-field/switch/index.vue.mjs";
|
|
74
74
|
import { default as Cr } from "./src/ap-field/text-area/index.vue.mjs";
|
|
75
75
|
import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
|
|
76
|
-
import { default as
|
|
76
|
+
import { default as gr } from "./src/ap-field/select/index.vue.mjs";
|
|
77
77
|
import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
|
|
78
78
|
import { default as vr } from "./src/ap-field/slider/index.vue.mjs";
|
|
79
79
|
import { default as hr } from "./src/ap-field/segmented/index.vue.mjs";
|
|
80
80
|
import { default as Br } from "./src/ap-field/rate/index.vue.mjs";
|
|
81
81
|
import { adminToken as Gr, aplusToken as Nr } from "./src/design-token/index.mjs";
|
|
82
|
-
import { ApActionItem as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
82
|
+
import { ApActionItem as Er } from "./src/ap-action/index.mjs";
|
|
83
|
+
import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
|
|
84
|
+
import { default as Yr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
|
|
85
85
|
import { default as Hr } from "./src/ap-action/item-dropdown/index.vue.mjs";
|
|
86
86
|
import { default as zr } from "./src/ap-action/group/index.vue.mjs";
|
|
87
87
|
import { generateTableList as Vr } from "./src/ap-custom-column/utils.mjs";
|
|
88
|
-
import { useCacheColumnSetting as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { DictCode as
|
|
88
|
+
import { useCacheColumnSetting as $r } from "./src/ap-custom-column/useCacheColumnSetting.mjs";
|
|
89
|
+
import { default as qr } from "./src/ap-custom-column/custom-column.vue.mjs";
|
|
90
|
+
import { default as Qr } from "./src/ap-custom-column/column-select.vue.mjs";
|
|
91
|
+
import { DictCode as et } from "./src/work-order-modal/interfaces.mjs";
|
|
92
92
|
import { createWorkOrderModal as rt } from "./src/work-order-modal/createWorkOrder.mjs";
|
|
93
93
|
import { default as at } from "./src/work-order-modal/work-order-modal.vue.mjs";
|
|
94
94
|
import { default as ft } from "./src/ap-tag/ap-tag.vue.mjs";
|
|
@@ -97,27 +97,31 @@ import { default as dt } from "./src/ap-layout/ap-info-layout/ap-info-layout.vue
|
|
|
97
97
|
import { NeedNameKeyDefault as it } from "./src/ap-upload/apUploadTypes.mjs";
|
|
98
98
|
import { default as ut } from "./src/ap-upload/apUpload.vue.mjs";
|
|
99
99
|
import { default as ct } from "./src/ap-download/ap-download.vue.mjs";
|
|
100
|
-
import {
|
|
101
|
-
import { default as St } from "./src/
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
100
|
+
import { _ApTitle as Ft } from "./src/business/index.mjs";
|
|
101
|
+
import { default as St } from "./src/business/title/ApTitle.vue.mjs";
|
|
102
|
+
import { useTablePaging as bt } from "./src/ap-table/hooks/use-table-paging.mjs";
|
|
103
|
+
import { default as Pt } from "./src/ap-table/ap-table.vue.mjs";
|
|
104
|
+
import { default as Rt } from "./src/editable-table/index.vue.mjs";
|
|
105
|
+
import { default as Mt } from "./src/editable-table/form-item.vue.mjs";
|
|
106
|
+
import { useMessage as wt } from "./src/hooks/useMessage.mjs";
|
|
107
|
+
import { useControllableValue as kt } from "./src/hooks/useControllableValue.mjs";
|
|
104
108
|
const p = {
|
|
105
109
|
install: (r) => {
|
|
106
|
-
for (const t in
|
|
107
|
-
const
|
|
108
|
-
|
|
110
|
+
for (const t in o) {
|
|
111
|
+
const e = o[t];
|
|
112
|
+
e.install && r.use(e);
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
};
|
|
112
116
|
export {
|
|
113
117
|
G as APConfigProvider,
|
|
114
118
|
zr as ApActionGroup,
|
|
115
|
-
|
|
119
|
+
Er as ApActionItem,
|
|
116
120
|
Hr as ApActionItemDropdown,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
Xr as ApActionItemModal,
|
|
122
|
+
Yr as ApActionItemPopconfirm,
|
|
123
|
+
qr as ApCustomColumn,
|
|
124
|
+
Qr as ApCustomSelect,
|
|
121
125
|
ct as ApDownload,
|
|
122
126
|
pr as ApField,
|
|
123
127
|
sr as ApFieldCheckbox,
|
|
@@ -128,119 +132,123 @@ export {
|
|
|
128
132
|
Ar as ApFieldRadio,
|
|
129
133
|
Br as ApFieldRate,
|
|
130
134
|
hr as ApFieldSegmented,
|
|
131
|
-
|
|
135
|
+
gr as ApFieldSelect,
|
|
132
136
|
vr as ApFieldSlider,
|
|
133
|
-
|
|
137
|
+
Tr as ApFieldSwitch,
|
|
134
138
|
mr as ApFieldText,
|
|
135
139
|
Cr as ApFieldTextArea,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
_o as ApForm,
|
|
141
|
+
jo as ApFormItem,
|
|
142
|
+
Wo as ApFormItemCheckbox,
|
|
143
|
+
Go as ApFormItemDate,
|
|
144
|
+
yo as ApFormItemDateRange,
|
|
145
|
+
Jo as ApFormItemGroup,
|
|
146
|
+
Bo as ApFormItemNumber,
|
|
147
|
+
Lo as ApFormItemRadio,
|
|
148
|
+
Ko as ApFormItemSelect,
|
|
149
|
+
Oo as ApFormItemSwitch,
|
|
150
|
+
vo as ApFormItemText,
|
|
151
|
+
ho as ApFormItemTextArea,
|
|
152
|
+
Uo as ApFormItemTextPassword,
|
|
153
|
+
Zo as ApFormList,
|
|
150
154
|
tr as ApFormModalForm,
|
|
151
|
-
|
|
155
|
+
or as ApFormSearchForm,
|
|
152
156
|
dt as ApInfoLayout,
|
|
153
|
-
|
|
157
|
+
Pt as ApTable,
|
|
154
158
|
ft as ApTag,
|
|
155
159
|
lt as ApTagGroup,
|
|
160
|
+
St as ApTitle,
|
|
156
161
|
ut as ApUpload,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
De as ApiCascader,
|
|
163
|
+
ve as ApiRadioGroup,
|
|
164
|
+
he as ApiSelect,
|
|
165
|
+
Be as ApiTransfer,
|
|
166
|
+
Ge as ApiTree,
|
|
167
|
+
Ke as ApiTreeSelect,
|
|
168
|
+
je as BaseButton,
|
|
169
|
+
ao as BaseModal,
|
|
165
170
|
V as BasicArrow,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
_ as BasicHelp,
|
|
172
|
+
$ as BasicTitle,
|
|
173
|
+
L as CollapseContainer,
|
|
174
|
+
q as CollapseTransition,
|
|
170
175
|
B as ConfigProvider,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
so as CountdownButton,
|
|
177
|
+
xo as CountdownInput,
|
|
178
|
+
fo as CropperAvatar,
|
|
179
|
+
mo as CropperImage,
|
|
180
|
+
ue as Description,
|
|
181
|
+
et as DictCode,
|
|
182
|
+
Ao as Dropdown,
|
|
183
|
+
Io as EditTableHeaderIcon,
|
|
184
|
+
Rt as EditableTable,
|
|
185
|
+
Mt as EditableTableFormItem,
|
|
186
|
+
Q as ExpandTransition,
|
|
187
|
+
Z as ExpandXTransition,
|
|
188
|
+
ee as FadeTransition,
|
|
189
|
+
ge as Field,
|
|
183
190
|
l as Icon,
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
Y as IconPicker,
|
|
192
|
+
Ue as ModalButton,
|
|
186
193
|
it as NeedNameKeyDefault,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
_e as PopConfirmButton,
|
|
195
|
+
Le as ProForm,
|
|
196
|
+
To as ProTable,
|
|
197
|
+
Oe as ProTableForm,
|
|
198
|
+
We as ProTableFormInner,
|
|
199
|
+
ye as RadioButtonGroup,
|
|
200
|
+
oe as ScaleRotateTransition,
|
|
201
|
+
re as ScaleTransition,
|
|
202
|
+
X as ScrollContainer,
|
|
203
|
+
te as ScrollXReverseTransition,
|
|
204
|
+
ae as ScrollXTransition,
|
|
205
|
+
pe as ScrollYReverseTransition,
|
|
206
|
+
fe as ScrollYTransition,
|
|
200
207
|
y as Scrollbar,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
208
|
+
me as SlideXReverseTransition,
|
|
209
|
+
le as SlideXTransition,
|
|
210
|
+
se as SlideYReverseTransition,
|
|
211
|
+
de as SlideYTransition,
|
|
212
|
+
Je as StrengthMeter,
|
|
206
213
|
s as SvgIcon,
|
|
207
|
-
|
|
208
|
-
|
|
214
|
+
Co as TableAction,
|
|
215
|
+
go as TableImg,
|
|
209
216
|
at as WorkOrderModal,
|
|
217
|
+
Ft as _ApTitle,
|
|
210
218
|
Gr as adminToken,
|
|
211
219
|
Nr as aplusToken,
|
|
212
220
|
S as buildLocaleContext,
|
|
213
221
|
I as buildTranslator,
|
|
214
222
|
n as configProviderContextKey,
|
|
215
223
|
x as configProviderProps,
|
|
216
|
-
|
|
224
|
+
no as createPrompt,
|
|
217
225
|
rt as createWorkOrderModal,
|
|
218
226
|
p as default,
|
|
219
227
|
R as defaultNamespace,
|
|
220
228
|
z as en,
|
|
221
229
|
Vr as generateTableList,
|
|
222
|
-
|
|
223
|
-
|
|
230
|
+
Se as isComponentFormSchema,
|
|
231
|
+
Ie as isSlotFormSchema,
|
|
224
232
|
c as keysOf,
|
|
225
|
-
|
|
233
|
+
b as localeContextKey,
|
|
226
234
|
v as namespaceContextKey,
|
|
227
|
-
|
|
235
|
+
T as provideGlobalConfig,
|
|
228
236
|
u as tableDefaultConfig,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
237
|
+
g as translate,
|
|
238
|
+
$r as useCacheColumnSetting,
|
|
239
|
+
ce as useComponentRegister,
|
|
240
|
+
kt as useControllableValue,
|
|
241
|
+
ie as useDescription,
|
|
242
|
+
Fe as useForm,
|
|
235
243
|
M as useGetDerivedNamespace,
|
|
236
|
-
|
|
244
|
+
F as useGlobalConfig,
|
|
237
245
|
P as useLocale,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
246
|
+
wt as useMessage,
|
|
247
|
+
oo as useModal,
|
|
248
|
+
Ze as useModalContext,
|
|
249
|
+
ro as useModalInner,
|
|
242
250
|
h as useNamespace,
|
|
243
|
-
|
|
244
|
-
|
|
251
|
+
Do as useTable,
|
|
252
|
+
bt as useTablePaging,
|
|
245
253
|
H as zhCn
|
|
246
254
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as b, unref as n, computed as
|
|
1
|
+
import { defineComponent as C, ref as b, unref as n, computed as r, openBlock as t, createElementBlock as c, normalizeClass as v, createBlock as d, createCommentVNode as u, renderSlot as B, isVNode as A, resolveDynamicComponent as x, toDisplayString as h } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import I from "ant-design-vue/es/button/LoadingIcon";
|
|
4
4
|
import "../style/item.css";
|
|
@@ -17,16 +17,16 @@ const _ = { key: 1 }, G = /* @__PURE__ */ C({
|
|
|
17
17
|
loading: { type: Boolean, default: !1 }
|
|
18
18
|
},
|
|
19
19
|
setup(m) {
|
|
20
|
-
const e = m, { b: f, m:
|
|
20
|
+
const e = m, { b: f, m: s, bm: p } = L("action-item"), g = N("uiMode", "aplus"), l = b(!1);
|
|
21
21
|
function k(o) {
|
|
22
22
|
var i;
|
|
23
23
|
n(a) || e.disabled || ((i = e.onClick) == null || i.call(e, o), e.onAction && (l.value = !0, e.onAction(o).finally(() => l.value = !1)));
|
|
24
24
|
}
|
|
25
|
-
const a =
|
|
25
|
+
const a = r(() => e.loading || n(l)), y = r(() => [
|
|
26
26
|
f(),
|
|
27
27
|
p(n(g), e.color),
|
|
28
|
-
e.disabled ?
|
|
29
|
-
a.value ?
|
|
28
|
+
e.disabled ? s("disabled") : null,
|
|
29
|
+
a.value ? s("loading") : null
|
|
30
30
|
].filter(Boolean));
|
|
31
31
|
return (o, i) => o.visible ? (t(), c("span", {
|
|
32
32
|
key: 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as R, ref as k, reactive as x, toRaw as M, computed as T, openBlock as w, createBlock as W, unref as y, mergeProps as q, withCtx as z, renderSlot as A } from "vue";
|
|
2
2
|
import { Form as E } from "ant-design-vue";
|
|
3
3
|
import { useProvideForm as O } from "./context.mjs";
|
|
4
|
-
import { isArray as
|
|
5
|
-
const
|
|
4
|
+
import { isArray as C, omit as P } from "lodash-unified";
|
|
5
|
+
const N = /* @__PURE__ */ R({
|
|
6
6
|
__name: "ap-form",
|
|
7
7
|
props: {
|
|
8
8
|
layout: { default: "horizontal" },
|
|
@@ -30,21 +30,21 @@ const L = /* @__PURE__ */ b({
|
|
|
30
30
|
onValidate: {},
|
|
31
31
|
initialValues: {}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const r =
|
|
35
|
-
function
|
|
33
|
+
setup(B, { expose: _ }) {
|
|
34
|
+
const r = B;
|
|
35
|
+
function b(e, t) {
|
|
36
36
|
var V;
|
|
37
|
-
if (
|
|
37
|
+
if (C(e)) {
|
|
38
38
|
let n = o;
|
|
39
39
|
for (let u = 0; u < e.length - 1; u++)
|
|
40
40
|
n = n[e[u]];
|
|
41
41
|
n[e[e.length - 1]] = t;
|
|
42
42
|
} else
|
|
43
43
|
o[e] = t;
|
|
44
|
-
let l =
|
|
44
|
+
let l = C(e) ? e[0] : e;
|
|
45
45
|
(V = r.onValuesChange) == null || V.call(r, { [l]: o[l] }, o), s();
|
|
46
46
|
}
|
|
47
|
-
const a =
|
|
47
|
+
const a = k(), o = x(r.initialValues || {});
|
|
48
48
|
let i = [];
|
|
49
49
|
const d = (e) => {
|
|
50
50
|
var t;
|
|
@@ -64,9 +64,9 @@ const L = /* @__PURE__ */ b({
|
|
|
64
64
|
}, g = (e, t = {}) => {
|
|
65
65
|
var l;
|
|
66
66
|
(l = a.value) == null || l.scrollToField(e, t);
|
|
67
|
-
},
|
|
67
|
+
}, m = (e) => {
|
|
68
68
|
Object.assign(o, e), s();
|
|
69
|
-
},
|
|
69
|
+
}, F = (e, t) => {
|
|
70
70
|
o[e] = t, s();
|
|
71
71
|
};
|
|
72
72
|
function v(e) {
|
|
@@ -76,15 +76,15 @@ const L = /* @__PURE__ */ b({
|
|
|
76
76
|
}
|
|
77
77
|
function s() {
|
|
78
78
|
if (i.length) {
|
|
79
|
-
const e =
|
|
79
|
+
const e = M(o);
|
|
80
80
|
i.forEach((t) => {
|
|
81
81
|
t(e);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return O({
|
|
86
|
-
model:
|
|
87
|
-
updateModel:
|
|
86
|
+
model: T(() => o),
|
|
87
|
+
updateModel: b,
|
|
88
88
|
formInstance: {
|
|
89
89
|
resetFields: d,
|
|
90
90
|
clearValidate: f,
|
|
@@ -92,24 +92,24 @@ const L = /* @__PURE__ */ b({
|
|
|
92
92
|
getFieldsValue: p,
|
|
93
93
|
validate: h,
|
|
94
94
|
scrollToField: g,
|
|
95
|
-
setFieldsValue:
|
|
96
|
-
setFieldValue:
|
|
95
|
+
setFieldsValue: m,
|
|
96
|
+
setFieldValue: F,
|
|
97
97
|
registerWatch: v
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
99
|
+
}), _({
|
|
100
100
|
resetFields: d,
|
|
101
101
|
clearValidate: f,
|
|
102
102
|
validateFields: c,
|
|
103
103
|
getFieldsValue: p,
|
|
104
104
|
validate: h,
|
|
105
105
|
scrollToField: g,
|
|
106
|
-
setFieldsValue:
|
|
107
|
-
setFieldValue:
|
|
106
|
+
setFieldsValue: m,
|
|
107
|
+
setFieldValue: F,
|
|
108
108
|
registerWatch: v
|
|
109
|
-
}), (e, t) => (
|
|
109
|
+
}), (e, t) => (w(), W(y(E), q({
|
|
110
110
|
ref_key: "formRef",
|
|
111
111
|
ref: a
|
|
112
|
-
}, r, { model: o }), {
|
|
112
|
+
}, y(P)(r, ["initialValues"]), { model: o }), {
|
|
113
113
|
default: z(() => [
|
|
114
114
|
A(e.$slots, "default")
|
|
115
115
|
]),
|
|
@@ -118,5 +118,5 @@ const L = /* @__PURE__ */ b({
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
N as default
|
|
122
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApTableProps } from './interface';
|
|
1
|
+
import { ApColumnType, ApTableProps } from './interface';
|
|
2
2
|
import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
3
3
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
4
4
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -23,6 +23,10 @@ type ApTableSlots = {
|
|
|
23
23
|
customFilterIcon?: any;
|
|
24
24
|
customFilterDropdown?: any;
|
|
25
25
|
searchFormExtra?: any;
|
|
26
|
+
headerCell?: (props: {
|
|
27
|
+
title: any;
|
|
28
|
+
column: ApColumnType;
|
|
29
|
+
}) => void;
|
|
26
30
|
};
|
|
27
31
|
/**
|
|
28
32
|
* 设置查询表单值
|