@aplus-frontend/ui 0.0.1-beta.4 → 0.0.1-beta.6
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 +86 -65
- package/es/src/ap-field/checkbox/helper.mjs +5 -0
- package/es/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +56 -0
- package/es/src/ap-field/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/constant.d.ts +11 -1
- package/es/src/ap-field/date/constant.mjs +50 -0
- package/es/src/ap-field/date/helper.d.ts +5 -0
- package/es/src/ap-field/date/helper.mjs +10 -0
- package/es/src/ap-field/date/index.vue.d.ts +57 -0
- package/es/src/ap-field/date/index.vue.mjs +75 -0
- package/es/src/ap-field/date/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/interface.d.ts +1 -0
- package/es/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/es/src/ap-field/date-range/index.vue.mjs +87 -0
- package/es/src/ap-field/date-range/index.vue2.mjs +4 -0
- package/es/src/ap-field/index.d.ts +9 -2
- package/es/src/ap-field/interface.d.ts +66 -7
- package/es/src/ap-field/number/helper.d.ts +1 -0
- package/es/src/ap-field/number/helper.mjs +14 -0
- package/es/src/ap-field/number/index.vue.d.ts +72 -0
- package/es/src/ap-field/number/index.vue.mjs +108 -0
- package/es/src/ap-field/number/index.vue2.mjs +4 -0
- package/es/src/ap-field/number/style.css +6 -0
- package/es/src/ap-field/radio/helper.d.ts +4 -0
- package/es/src/ap-field/radio/helper.mjs +5 -0
- package/es/src/ap-field/radio/index.vue.d.ts +40 -0
- package/es/src/ap-field/radio/index.vue.mjs +68 -0
- package/es/src/ap-field/radio/index.vue2.mjs +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-field/select/index.vue.mjs +114 -0
- package/es/src/ap-field/select/index.vue2.mjs +4 -0
- package/es/src/ap-field/switch/index.vue.d.ts +54 -0
- package/es/src/ap-field/switch/index.vue.mjs +93 -0
- package/es/src/ap-field/switch/index.vue2.mjs +4 -0
- package/es/src/ap-field/text/index.vue.d.ts +63 -0
- package/es/src/ap-field/text/index.vue.mjs +132 -0
- package/es/src/ap-field/text/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/es/src/ap-field/text-area/index.vue.mjs +86 -0
- package/es/src/ap-field/text-area/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/style.css +5 -0
- package/es/src/ap-form/index.d.ts +12 -12
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/config-provider/config-provider.d.ts +2 -2
- package/es/src/config-provider/index.d.ts +6 -6
- package/es/src/design-token/index.d.ts +4 -0
- package/es/src/design-token/index.mjs +59 -0
- package/es/src/hooks/useControllableValue.mjs +9 -9
- package/es/src/index.d.ts +2 -0
- package/es/src/index.mjs +104 -83
- package/es/src/modal/basic.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +3 -3
- package/es/src/modal/style/index.css +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-events.mjs +22 -22
- package/es/src/pro-form/hooks/use-form-values.mjs +12 -12
- package/es/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/es/src/pro-form/pro-form.vue.mjs +23 -23
- package/es/src/pro-table/hooks/use-columns.mjs +24 -24
- package/es/src/theme/ap-field/number.css +6 -0
- package/es/src/theme/ap-field/text-area.css +5 -0
- package/es/src/theme/modal/index.css +2 -2
- package/es/src/type.d.ts +3 -1
- package/es/src/utils/index.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/helper.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-field/date/constant.d.ts +11 -1
- package/lib/src/ap-field/date/constant.js +1 -0
- package/lib/src/ap-field/date/helper.d.ts +5 -0
- package/lib/src/ap-field/date/helper.js +1 -0
- package/lib/src/ap-field/date/index.vue.d.ts +57 -0
- package/lib/src/ap-field/date/index.vue.js +1 -0
- package/lib/src/ap-field/date/index.vue2.js +1 -0
- package/lib/src/ap-field/date/interface.d.ts +1 -0
- package/lib/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/lib/src/ap-field/date-range/index.vue.js +1 -0
- package/lib/src/ap-field/date-range/index.vue2.js +1 -0
- package/lib/src/ap-field/index.d.ts +9 -2
- package/lib/src/ap-field/interface.d.ts +66 -7
- package/lib/src/ap-field/number/helper.d.ts +1 -0
- package/lib/src/ap-field/number/helper.js +1 -0
- package/lib/src/ap-field/number/index.vue.d.ts +72 -0
- package/lib/src/ap-field/number/index.vue.js +1 -0
- package/lib/src/ap-field/number/index.vue2.js +1 -0
- package/lib/src/ap-field/number/style.css +6 -0
- package/lib/src/ap-field/radio/helper.d.ts +4 -0
- package/lib/src/ap-field/radio/helper.js +1 -0
- package/lib/src/ap-field/radio/index.vue.d.ts +40 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -0
- package/lib/src/ap-field/radio/index.vue2.js +1 -0
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-field/select/index.vue.js +1 -0
- package/lib/src/ap-field/select/index.vue2.js +1 -0
- package/lib/src/ap-field/switch/index.vue.d.ts +54 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -0
- package/lib/src/ap-field/switch/index.vue2.js +1 -0
- package/lib/src/ap-field/text/index.vue.d.ts +63 -0
- package/lib/src/ap-field/text/index.vue.js +1 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -0
- package/lib/src/ap-field/text-area/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/style.css +5 -0
- package/lib/src/ap-form/index.d.ts +12 -12
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/config-provider/config-provider.d.ts +2 -2
- package/lib/src/config-provider/index.d.ts +6 -6
- package/lib/src/design-token/index.d.ts +4 -0
- package/lib/src/design-token/index.js +1 -0
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +3 -3
- package/lib/src/modal/style/index.css +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-events.js +1 -1
- package/lib/src/pro-form/hooks/use-form-values.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +3 -3
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.js +1 -1
- package/lib/src/theme/ap-field/number.css +6 -0
- package/lib/src/theme/ap-field/text-area.css +5 -0
- package/lib/src/theme/modal/index.css +2 -2
- package/lib/src/type.d.ts +3 -1
- package/lib/src/utils/index.d.ts +7 -0
- package/package.json +3 -3
package/es/src/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Icon as r, SvgIcon as t } from "./icon/index.mjs";
|
|
2
2
|
import { APConfigProvider as p } from "./config-provider/index.mjs";
|
|
3
|
-
import { Scrollbar as
|
|
4
|
-
import { CollapseContainer as
|
|
5
|
-
import { IconPicker as
|
|
3
|
+
import { Scrollbar as l } from "./scroll-bar/index.mjs";
|
|
4
|
+
import { CollapseContainer as n, ScrollContainer as m } from "./container/index.mjs";
|
|
5
|
+
import { IconPicker as d } from "./icon-picker/index.mjs";
|
|
6
6
|
import { default as u } from "./locale/lang/zh-cn.mjs";
|
|
7
7
|
import { default as T } from "./locale/lang/en.mjs";
|
|
8
|
-
import { BasicArrow as
|
|
9
|
-
import { ExpandTransition as g, ExpandXTransition as
|
|
10
|
-
import { Description as
|
|
11
|
-
import { Field as
|
|
8
|
+
import { BasicArrow as C, BasicHelp as S, BasicTitle as F } from "./basic/index.mjs";
|
|
9
|
+
import { ExpandTransition as g, ExpandXTransition as v, FadeTransition as P, ScaleRotateTransition as B, ScaleTransition as I, ScrollXReverseTransition as R, ScrollXTransition as D, ScrollYReverseTransition as h, ScrollYTransition as G, SlideXReverseTransition as M, SlideXTransition as k, SlideYReverseTransition as w, SlideYTransition as X } from "./transition/index.mjs";
|
|
10
|
+
import { Description as N } from "./description/index.mjs";
|
|
11
|
+
import { Field as E } from "./pro-form/index.mjs";
|
|
12
12
|
import { BaseButton as H } from "./base-button/index.mjs";
|
|
13
13
|
import { StrengthMeter as z } from "./strength-meter/index.mjs";
|
|
14
14
|
import { BaseModal as j } from "./modal/index.mjs";
|
|
@@ -18,109 +18,130 @@ import { createPrompt as _ } from "./prompt/index.mjs";
|
|
|
18
18
|
import { Dropdown as oo } from "./dropdown/index.mjs";
|
|
19
19
|
import { default as ro } from "./pro-table/pro-table.vue.mjs";
|
|
20
20
|
import { default as ao } from "./pro-table/components/table-action.vue.mjs";
|
|
21
|
-
import { default as
|
|
21
|
+
import { default as fo } from "./pro-table/components/edit-table-header-icon.vue.mjs";
|
|
22
22
|
import { default as io } from "./pro-table/components/table-image.vue.mjs";
|
|
23
23
|
import { useTable as mo } from "./pro-table/hooks/use-table.mjs";
|
|
24
24
|
import { ApForm as xo, ApFormItem as uo, ApFormItemGroup as co } from "./ap-form/index.mjs";
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as bo } from "./
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { default as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
25
|
+
import { default as Ao } from "./ap-field/text/index.vue.mjs";
|
|
26
|
+
import { default as So } from "./ap-field/checkbox/index.vue.mjs";
|
|
27
|
+
import { default as bo } from "./ap-field/date/index.vue.mjs";
|
|
28
|
+
import { default as vo } from "./ap-field/number/index.vue.mjs";
|
|
29
|
+
import { default as Bo } from "./ap-field/radio/index.vue.mjs";
|
|
30
|
+
import { default as Ro } from "./ap-field/switch/index.vue.mjs";
|
|
31
|
+
import { default as ho } from "./ap-field/text-area/index.vue.mjs";
|
|
32
|
+
import { default as Mo } from "./ap-field/date-range/index.vue.mjs";
|
|
33
|
+
import { default as wo } from "./ap-field/select/index.vue.mjs";
|
|
34
|
+
import { adminToken as yo, aplusToken as No } from "./design-token/index.mjs";
|
|
35
|
+
import { default as Eo } from "./pro-form/pro-form.vue.mjs";
|
|
36
|
+
import { default as Ho } from "./base-button/modal-button.vue.mjs";
|
|
37
|
+
import { default as zo } from "./base-button/pop-confirm-button.vue.mjs";
|
|
38
|
+
import { configProviderProps as jo } from "./config-provider/config-provider-props.mjs";
|
|
39
|
+
import { configProviderContextKey as Jo, tableDefaultConfig as Qo } from "./config-provider/constants.mjs";
|
|
40
|
+
import { keysOf as Vo, provideGlobalConfig as Wo, useGlobalConfig as Zo } from "./config-provider/hooks/use-global-config.mjs";
|
|
41
|
+
import { buildLocaleContext as $o, buildTranslator as oe, localeContextKey as ee, translate as re, useLocale as te } from "./config-provider/hooks/use-locale.mjs";
|
|
42
|
+
import { defaultNamespace as pe, namespaceContextKey as fe, useGetDerivedNamespace as le, useNamespace as ie } from "./config-provider/hooks/use-namespace.mjs";
|
|
43
|
+
import { ConfigProvider as me } from "./config-provider/config-provider.mjs";
|
|
44
|
+
import { default as de } from "./transition/collapse-transition.vue.mjs";
|
|
45
|
+
import { useDescription as ue } from "./description/use-description.mjs";
|
|
46
|
+
import { useForm as Te } from "./pro-form/hooks/use-form.mjs";
|
|
47
|
+
import { isComponentFormSchema as Ce, isSlotFormSchema as Se } from "./pro-form/types/form.mjs";
|
|
48
|
+
import { default as be } from "./pro-form/components/api-cascader.vue.mjs";
|
|
49
|
+
import { default as ve } from "./pro-form/components/api-radio-group.vue.mjs";
|
|
50
|
+
import { default as Be } from "./pro-form/components/api-select.vue.mjs";
|
|
51
|
+
import { default as Re } from "./pro-form/components/api-transfer.vue.mjs";
|
|
52
|
+
import { default as he } from "./pro-form/components/api-tree.vue.mjs";
|
|
53
|
+
import { default as Me } from "./pro-form/components/radio-button-group.vue.mjs";
|
|
54
|
+
import { default as we } from "./pro-form/components/api-tree-select.vue.mjs";
|
|
55
|
+
import { useModalContext as ye } from "./modal/hooks/use-modal-context.mjs";
|
|
56
|
+
import { useModal as Ye, useModalInner as Ee } from "./modal/hooks/use-modal.mjs";
|
|
47
57
|
export {
|
|
48
58
|
p as APConfigProvider,
|
|
59
|
+
So as ApFieldCheckbox,
|
|
60
|
+
bo as ApFieldDate,
|
|
61
|
+
Mo as ApFieldDateRange,
|
|
62
|
+
vo as ApFieldNumber,
|
|
63
|
+
Bo as ApFieldRadio,
|
|
64
|
+
wo as ApFieldSelect,
|
|
65
|
+
Ro as ApFieldSwitch,
|
|
66
|
+
Ao as ApFieldText,
|
|
67
|
+
ho as ApFieldTextArea,
|
|
49
68
|
xo as ApForm,
|
|
50
69
|
uo as ApFormItem,
|
|
51
70
|
co as ApFormItemGroup,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
71
|
+
be as ApiCascader,
|
|
72
|
+
ve as ApiRadioGroup,
|
|
73
|
+
Be as ApiSelect,
|
|
74
|
+
Re as ApiTransfer,
|
|
75
|
+
he as ApiTree,
|
|
76
|
+
we as ApiTreeSelect,
|
|
58
77
|
H as BaseButton,
|
|
59
78
|
j as BaseModal,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
C as BasicArrow,
|
|
80
|
+
S as BasicHelp,
|
|
81
|
+
F as BasicTitle,
|
|
82
|
+
n as CollapseContainer,
|
|
83
|
+
de as CollapseTransition,
|
|
84
|
+
me as ConfigProvider,
|
|
66
85
|
V as CountdownButton,
|
|
67
86
|
W as CountdownInput,
|
|
68
87
|
J as CropperAvatar,
|
|
69
88
|
Q as CropperImage,
|
|
70
|
-
|
|
89
|
+
N as Description,
|
|
71
90
|
oo as Dropdown,
|
|
72
|
-
|
|
91
|
+
fo as EditTableHeaderIcon,
|
|
73
92
|
g as ExpandTransition,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
v as ExpandXTransition,
|
|
94
|
+
P as FadeTransition,
|
|
95
|
+
E as Field,
|
|
77
96
|
r as Icon,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
d as IconPicker,
|
|
98
|
+
Ho as ModalButton,
|
|
99
|
+
zo as PopConfirmButton,
|
|
100
|
+
Eo as ProForm,
|
|
82
101
|
ro as ProTable,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
Me as RadioButtonGroup,
|
|
103
|
+
B as ScaleRotateTransition,
|
|
104
|
+
I as ScaleTransition,
|
|
86
105
|
m as ScrollContainer,
|
|
87
106
|
R as ScrollXReverseTransition,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
107
|
+
D as ScrollXTransition,
|
|
108
|
+
h as ScrollYReverseTransition,
|
|
109
|
+
G as ScrollYTransition,
|
|
110
|
+
l as Scrollbar,
|
|
111
|
+
M as SlideXReverseTransition,
|
|
112
|
+
k as SlideXTransition,
|
|
94
113
|
w as SlideYReverseTransition,
|
|
95
|
-
|
|
114
|
+
X as SlideYTransition,
|
|
96
115
|
z as StrengthMeter,
|
|
97
116
|
t as SvgIcon,
|
|
98
117
|
ao as TableAction,
|
|
99
118
|
io as TableImg,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
yo as adminToken,
|
|
120
|
+
No as aplusToken,
|
|
121
|
+
$o as buildLocaleContext,
|
|
122
|
+
oe as buildTranslator,
|
|
123
|
+
Jo as configProviderContextKey,
|
|
124
|
+
jo as configProviderProps,
|
|
104
125
|
_ as createPrompt,
|
|
105
|
-
|
|
126
|
+
pe as defaultNamespace,
|
|
106
127
|
T as en,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
Ce as isComponentFormSchema,
|
|
129
|
+
Se as isSlotFormSchema,
|
|
130
|
+
Vo as keysOf,
|
|
131
|
+
ee as localeContextKey,
|
|
132
|
+
fe as namespaceContextKey,
|
|
133
|
+
Wo as provideGlobalConfig,
|
|
134
|
+
Qo as tableDefaultConfig,
|
|
135
|
+
re as translate,
|
|
136
|
+
ue as useDescription,
|
|
137
|
+
Te as useForm,
|
|
138
|
+
le as useGetDerivedNamespace,
|
|
139
|
+
Zo as useGlobalConfig,
|
|
140
|
+
te as useLocale,
|
|
141
|
+
Ye as useModal,
|
|
142
|
+
ye as useModalContext,
|
|
143
|
+
Ee as useModalInner,
|
|
144
|
+
ie as useNamespace,
|
|
124
145
|
mo as useTable,
|
|
125
146
|
u as zhCn
|
|
126
147
|
};
|
|
@@ -437,12 +437,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
437
437
|
}, {
|
|
438
438
|
loading: boolean;
|
|
439
439
|
open: boolean;
|
|
440
|
+
keyboard: boolean;
|
|
440
441
|
mask: boolean;
|
|
441
442
|
closable: boolean;
|
|
442
443
|
centered: boolean;
|
|
443
444
|
okType: "danger" | ButtonType;
|
|
444
445
|
maskClosable: boolean;
|
|
445
|
-
keyboard: boolean;
|
|
446
446
|
confirmLoading: boolean;
|
|
447
447
|
destroyOnClose: boolean;
|
|
448
448
|
draggable: boolean;
|
|
@@ -428,12 +428,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
428
428
|
}, {
|
|
429
429
|
loading: boolean;
|
|
430
430
|
open: boolean;
|
|
431
|
+
keyboard: boolean;
|
|
431
432
|
mask: boolean;
|
|
432
433
|
closable: boolean;
|
|
433
434
|
centered: boolean;
|
|
434
435
|
okType: "danger" | ButtonType;
|
|
435
436
|
maskClosable: boolean;
|
|
436
|
-
keyboard: boolean;
|
|
437
437
|
confirmLoading: boolean;
|
|
438
438
|
destroyOnClose: boolean;
|
|
439
439
|
draggable: boolean;
|
|
@@ -423,12 +423,12 @@ declare const _default: DefineComponent<{
|
|
|
423
423
|
}, {
|
|
424
424
|
loading: boolean;
|
|
425
425
|
open: boolean;
|
|
426
|
+
keyboard: boolean;
|
|
426
427
|
mask: boolean;
|
|
427
428
|
closable: boolean;
|
|
428
429
|
centered: boolean;
|
|
429
430
|
okType: "danger" | ButtonType;
|
|
430
431
|
maskClosable: boolean;
|
|
431
|
-
keyboard: boolean;
|
|
432
432
|
confirmLoading: boolean;
|
|
433
433
|
destroyOnClose: boolean;
|
|
434
434
|
draggable: boolean;
|
package/es/src/modal/index.d.ts
CHANGED
|
@@ -447,12 +447,12 @@ export declare const BaseModal: {
|
|
|
447
447
|
}, {
|
|
448
448
|
loading: boolean;
|
|
449
449
|
open: boolean;
|
|
450
|
+
keyboard: boolean;
|
|
450
451
|
mask: boolean;
|
|
451
452
|
closable: boolean;
|
|
452
453
|
centered: boolean;
|
|
453
454
|
okType: "danger" | ButtonType;
|
|
454
455
|
maskClosable: boolean;
|
|
455
|
-
keyboard: boolean;
|
|
456
456
|
confirmLoading: boolean;
|
|
457
457
|
destroyOnClose: boolean;
|
|
458
458
|
draggable: boolean;
|
|
@@ -688,12 +688,12 @@ export declare const BaseModal: {
|
|
|
688
688
|
}, {}, {}, {}, {}, {
|
|
689
689
|
loading: boolean;
|
|
690
690
|
open: boolean;
|
|
691
|
+
keyboard: boolean;
|
|
691
692
|
mask: boolean;
|
|
692
693
|
closable: boolean;
|
|
693
694
|
centered: boolean;
|
|
694
695
|
okType: "danger" | ButtonType;
|
|
695
696
|
maskClosable: boolean;
|
|
696
|
-
keyboard: boolean;
|
|
697
697
|
confirmLoading: boolean;
|
|
698
698
|
destroyOnClose: boolean;
|
|
699
699
|
draggable: boolean;
|
|
@@ -934,12 +934,12 @@ export declare const BaseModal: {
|
|
|
934
934
|
}, string, {
|
|
935
935
|
loading: boolean;
|
|
936
936
|
open: boolean;
|
|
937
|
+
keyboard: boolean;
|
|
937
938
|
mask: boolean;
|
|
938
939
|
closable: boolean;
|
|
939
940
|
centered: boolean;
|
|
940
941
|
okType: "danger" | ButtonType;
|
|
941
942
|
maskClosable: boolean;
|
|
942
|
-
keyboard: boolean;
|
|
943
943
|
confirmLoading: boolean;
|
|
944
944
|
destroyOnClose: boolean;
|
|
945
945
|
draggable: boolean;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
width: 520px;
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
|
-
.ant-modal .ant-modal-body > .scrollbar {
|
|
21
|
+
.ant-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
22
|
padding: 14px;
|
|
23
23
|
}
|
|
24
24
|
.ant-modal-title {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.ant-modal .ant-modal-body {
|
|
32
32
|
padding: 0;
|
|
33
33
|
}
|
|
34
|
-
.ant-modal .ant-modal-body > .scrollbar > .scrollbar__bar.is-horizontal {
|
|
34
|
+
.ant-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
35
35
|
display: none;
|
|
36
36
|
}
|
|
37
37
|
.ant-modal-large {
|
|
@@ -27,12 +27,12 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
27
27
|
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
disabled: boolean;
|
|
30
|
+
showSearch: boolean;
|
|
30
31
|
immediate: boolean;
|
|
31
32
|
resultField: string;
|
|
32
33
|
labelField: string;
|
|
33
34
|
valueField: string;
|
|
34
35
|
alwaysLoad: boolean;
|
|
35
|
-
showSearch: boolean;
|
|
36
36
|
showSelectAll: boolean;
|
|
37
37
|
}, {}>;
|
|
38
38
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { unref as o, nextTick as tt, toRaw as
|
|
2
|
-
import { isFunction as
|
|
1
|
+
import { unref as o, nextTick as tt, toRaw as J } from "vue";
|
|
2
|
+
import { isFunction as Q, get as nt, cloneDeep as I, isString as D, isObject as A, isArray as T, uniqBy as et, isNil as U, set as Y } from "lodash-unified";
|
|
3
3
|
import { isDef as W } from "../../utils/index.mjs";
|
|
4
4
|
import { deepMerge as it } from "@aplus-frontend/utils";
|
|
5
5
|
import { handleInputNumberValue as ot, isIncludeSimpleComponents as B, dateItemType as ct, defaultValueComponents as rt } from "../helper.mjs";
|
|
@@ -46,12 +46,12 @@ function bt({
|
|
|
46
46
|
}) {
|
|
47
47
|
async function x() {
|
|
48
48
|
const { resetFunc: t, submitOnReset: n } = o(F);
|
|
49
|
-
t &&
|
|
49
|
+
t && Q(t) && await t(), o(f) && (Object.keys(u).forEach((e) => {
|
|
50
50
|
const l = o(s).find((a) => a.field === e), i = l == null ? void 0 : l.defaultValueObj, p = Object.keys(i || {});
|
|
51
51
|
p.length && p.map((a) => {
|
|
52
52
|
u[a] = i[a];
|
|
53
53
|
}), u[e] = ut(l, y, e);
|
|
54
|
-
}), tt(() =>
|
|
54
|
+
}), tt(() => j()), r("reset", J(u)), n && S());
|
|
55
55
|
}
|
|
56
56
|
const C = () => o(s).map((t) => [...t.fields || [], t.field]).flat(1).filter(Boolean);
|
|
57
57
|
async function V(t) {
|
|
@@ -65,15 +65,15 @@ function bt({
|
|
|
65
65
|
let a = nt(t, i);
|
|
66
66
|
const R = Reflect.has(t, i);
|
|
67
67
|
a = ot(p == null ? void 0 : p.component, a);
|
|
68
|
-
const { componentProps:
|
|
69
|
-
let h =
|
|
70
|
-
typeof
|
|
68
|
+
const { componentProps: G } = p || {};
|
|
69
|
+
let h = G;
|
|
70
|
+
typeof G == "function" && (h = h({
|
|
71
71
|
formModel: o(u),
|
|
72
72
|
formActionType: k
|
|
73
73
|
}));
|
|
74
|
-
const
|
|
75
|
-
if (R ||
|
|
76
|
-
const d =
|
|
74
|
+
const H = st(i, t) || lt(i, t);
|
|
75
|
+
if (R || H) {
|
|
76
|
+
const d = H || a;
|
|
77
77
|
if (_(i))
|
|
78
78
|
if (Array.isArray(d)) {
|
|
79
79
|
const b = [];
|
|
@@ -157,11 +157,11 @@ function bt({
|
|
|
157
157
|
A(t) && n.push(t), T(t) && (n = [...t]);
|
|
158
158
|
const c = {}, e = E();
|
|
159
159
|
n.forEach((l) => {
|
|
160
|
-
!B(l.component) && Reflect.has(l, "field") && l.field && !
|
|
160
|
+
!B(l.component) && Reflect.has(l, "field") && l.field && !U(l.defaultValue) && (!(l.field in e) || U(e[l.field])) && (c[l.field] = l.defaultValue);
|
|
161
161
|
}), V(c);
|
|
162
162
|
}
|
|
163
163
|
function E() {
|
|
164
|
-
return o(f) ? w(
|
|
164
|
+
return o(f) ? w(J(o(u))) : {};
|
|
165
165
|
}
|
|
166
166
|
function _(t) {
|
|
167
167
|
return o(s).some((n) => n.field === t && n.component ? ct.includes(n.component) : !1);
|
|
@@ -182,18 +182,18 @@ function bt({
|
|
|
182
182
|
const c = await ((e = o(f)) == null ? void 0 : e.validate(n));
|
|
183
183
|
return w(c);
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
185
|
+
async function j(t) {
|
|
186
186
|
var n;
|
|
187
187
|
await ((n = o(f)) == null ? void 0 : n.clearValidate(t));
|
|
188
188
|
}
|
|
189
|
-
async function
|
|
189
|
+
async function z(t, n) {
|
|
190
190
|
var c;
|
|
191
191
|
await ((c = o(f)) == null ? void 0 : c.scrollToField(t, n));
|
|
192
192
|
}
|
|
193
|
-
async function
|
|
193
|
+
async function S(t) {
|
|
194
194
|
t && t.preventDefault();
|
|
195
195
|
const { submitFunc: n } = o(F);
|
|
196
|
-
if (n &&
|
|
196
|
+
if (n && Q(n)) {
|
|
197
197
|
await n();
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
@@ -216,15 +216,15 @@ function bt({
|
|
|
216
216
|
setProps: K,
|
|
217
217
|
removeSchemaByField: P,
|
|
218
218
|
appendSchemaByField: N,
|
|
219
|
-
clearValidate:
|
|
219
|
+
clearValidate: j,
|
|
220
220
|
validateFields: O,
|
|
221
221
|
validate: g,
|
|
222
|
-
submit:
|
|
223
|
-
scrollToField:
|
|
222
|
+
submit: S,
|
|
223
|
+
scrollToField: z
|
|
224
224
|
};
|
|
225
225
|
return {
|
|
226
|
-
handleSubmit:
|
|
227
|
-
clearValidate:
|
|
226
|
+
handleSubmit: S,
|
|
227
|
+
clearValidate: j,
|
|
228
228
|
validate: g,
|
|
229
229
|
validateFields: O,
|
|
230
230
|
getFieldsValue: E,
|
|
@@ -234,7 +234,7 @@ function bt({
|
|
|
234
234
|
removeSchemaByField: P,
|
|
235
235
|
resetFields: x,
|
|
236
236
|
setFieldsValue: V,
|
|
237
|
-
scrollToField:
|
|
237
|
+
scrollToField: z
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
function ut(r, F, u) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
import
|
|
3
|
-
import { unref as
|
|
1
|
+
import { isObject as l, isArray as D, isFunction as x, isString as F, set as T, get as V, unset as g, isNil as j, isEmpty as E, cloneDeep as K } from "lodash-unified";
|
|
2
|
+
import b from "dayjs";
|
|
3
|
+
import { unref as O } from "vue";
|
|
4
4
|
function S(y, o, m) {
|
|
5
5
|
const u = /^\[(.+)\]$/;
|
|
6
6
|
if (u.test(y)) {
|
|
@@ -19,7 +19,7 @@ function $(y, o, m) {
|
|
|
19
19
|
const f = y.match(u);
|
|
20
20
|
if (f && f[1]) {
|
|
21
21
|
const h = f[1].split(",");
|
|
22
|
-
return o =
|
|
22
|
+
return o = l(o) ? o : {}, h.forEach((p) => {
|
|
23
23
|
T(m, p.trim(), o[p.trim()]);
|
|
24
24
|
}), !0;
|
|
25
25
|
}
|
|
@@ -33,7 +33,7 @@ function R({
|
|
|
33
33
|
}) {
|
|
34
34
|
function f(i) {
|
|
35
35
|
var e, s;
|
|
36
|
-
if (!
|
|
36
|
+
if (!l(i))
|
|
37
37
|
return {};
|
|
38
38
|
const r = {};
|
|
39
39
|
for (const a of Object.entries(i)) {
|
|
@@ -41,13 +41,13 @@ function R({
|
|
|
41
41
|
const [n] = a;
|
|
42
42
|
if (!n || D(t) && t.length === 0 || x(t))
|
|
43
43
|
continue;
|
|
44
|
-
const c =
|
|
45
|
-
|
|
44
|
+
const c = O(u).transformDateFunc;
|
|
45
|
+
l(t) && (t = c == null ? void 0 : c(t)), D(t) && ((e = t[0]) != null && e.format) && ((s = t[1]) != null && s.format) && (t = t.map((A) => c == null ? void 0 : c(A))), F(t) && (t = t.trim()), !S(n, t, r) && !$(n, t, r) && T(r, n, t);
|
|
46
46
|
}
|
|
47
47
|
return h(r);
|
|
48
48
|
}
|
|
49
49
|
function h(i) {
|
|
50
|
-
const r =
|
|
50
|
+
const r = O(u).fieldMapToTime;
|
|
51
51
|
if (!r || !Array.isArray(r))
|
|
52
52
|
return i;
|
|
53
53
|
for (const [
|
|
@@ -62,20 +62,20 @@ function R({
|
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
64
|
const [n, c] = V(i, e), [A, Y] = Array.isArray(t) ? t : [t, t];
|
|
65
|
-
!
|
|
65
|
+
!j(n) && !E(n) && T(i, s, p(n, A)), !j(c) && !E(c) && T(i, a, p(c, Y)), g(i, e);
|
|
66
66
|
}
|
|
67
67
|
return i;
|
|
68
68
|
}
|
|
69
69
|
function p(i, r) {
|
|
70
|
-
return r === "timestamp" ?
|
|
70
|
+
return r === "timestamp" ? b(i).unix() : r === "timestampStartDay" ? b(i).startOf("day").unix() : b(i).format(r);
|
|
71
71
|
}
|
|
72
72
|
function d() {
|
|
73
|
-
const i =
|
|
73
|
+
const i = O(o), r = {};
|
|
74
74
|
i.forEach((e) => {
|
|
75
75
|
const { defaultValue: s, defaultValueObj: a } = e, t = Object.keys(a || {});
|
|
76
76
|
t.length && t.map((n) => {
|
|
77
77
|
r[n] = a[n], m[n] === void 0 && (m[n] = a[n]);
|
|
78
|
-
}),
|
|
78
|
+
}), j(s) || (r[e.field] = s, m[e.field] === void 0 && (m[e.field] = s));
|
|
79
79
|
}), y.value = K(r);
|
|
80
80
|
}
|
|
81
81
|
return { handleFormValues: f, initDefault: d };
|
|
@@ -96,10 +96,10 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
96
96
|
offset: string | number;
|
|
97
97
|
} | ColSize | undefined;
|
|
98
98
|
prefixCls?: string | undefined;
|
|
99
|
+
order?: (string | number) | undefined;
|
|
99
100
|
span?: (string | number) | undefined;
|
|
100
101
|
push?: (string | number) | undefined;
|
|
101
102
|
flex?: (string | number) | undefined;
|
|
102
|
-
order?: (string | number) | undefined;
|
|
103
103
|
offset?: (string | number) | undefined;
|
|
104
104
|
pull?: (string | number) | undefined;
|
|
105
105
|
innerHTML?: string | undefined;
|
|
@@ -152,7 +152,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
152
152
|
'aria-colindex'?: (string | number) | undefined;
|
|
153
153
|
'aria-colspan'?: (string | number) | undefined;
|
|
154
154
|
'aria-controls'?: string | undefined;
|
|
155
|
-
'aria-current'?: "time" | "date" | (boolean | "true" | "false") | "page" | "
|
|
155
|
+
'aria-current'?: "time" | "date" | "step" | (boolean | "true" | "false") | "page" | "location" | undefined;
|
|
156
156
|
'aria-describedby'?: string | undefined;
|
|
157
157
|
'aria-details'?: string | undefined;
|
|
158
158
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -301,10 +301,10 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
301
301
|
offset: string | number;
|
|
302
302
|
} | ColSize | undefined;
|
|
303
303
|
prefixCls?: string | undefined;
|
|
304
|
+
order?: (string | number) | undefined;
|
|
304
305
|
span?: (string | number) | undefined;
|
|
305
306
|
push?: (string | number) | undefined;
|
|
306
307
|
flex?: (string | number) | undefined;
|
|
307
|
-
order?: (string | number) | undefined;
|
|
308
308
|
offset?: (string | number) | undefined;
|
|
309
309
|
pull?: (string | number) | undefined;
|
|
310
310
|
style: any;
|