ep-craft 0.1.29 → 0.1.30
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/dist/components/form/src/hooks/use-form-common-props.js +15 -13
- package/dist/ep-craft.js +142 -131
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as a, inject as r, computed as n, unref as d } from "vue";
|
|
2
2
|
import { useGlobalSize as f } from "../../../../hooks/use-size/index.js";
|
|
3
|
-
import { useProp as
|
|
4
|
-
import { formContextKey as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
-
() => u.value ||
|
|
3
|
+
import { useProp as l } from "../../../../hooks/use-prop/index.js";
|
|
4
|
+
import { formContextKey as m, formItemContextKey as p } from "../constants.js";
|
|
5
|
+
const v = (s, e = {}) => {
|
|
6
|
+
const o = a(void 0), u = e.prop ? o : l("size"), c = e.global ? o : f(), t = e.form ? { size: void 0 } : r(m, void 0), i = e.formItem ? { size: void 0 } : r(p, void 0);
|
|
7
|
+
return n(
|
|
8
|
+
() => u.value || d(s) || (i == null ? void 0 : i.size) || (t == null ? void 0 : t.size) || c.value || ""
|
|
9
9
|
);
|
|
10
|
-
},
|
|
11
|
-
const
|
|
12
|
-
return
|
|
13
|
-
};
|
|
10
|
+
}, z = (s) => {
|
|
11
|
+
const e = l("disabled"), o = r(m, void 0);
|
|
12
|
+
return n(() => e.value ?? d(s) ?? (o == null ? void 0 : o.disabled) ?? !1);
|
|
13
|
+
}, S = v, D = z;
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
D as useDisabled,
|
|
16
|
+
z as useFormDisabled,
|
|
17
|
+
v as useFormSize,
|
|
18
|
+
S as useSize
|
|
17
19
|
};
|
package/dist/ep-craft.js
CHANGED
|
@@ -1,229 +1,240 @@
|
|
|
1
1
|
import * as p from "./components/index.js";
|
|
2
|
-
import { withInstall as
|
|
2
|
+
import { withInstall as E } from "./utils/with-install.js";
|
|
3
3
|
import { EpCraftResolver as i } from "./resolver.js";
|
|
4
4
|
export * from "element-plus";
|
|
5
|
-
import { ElInfiniteScroll as s, ElLoading as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
5
|
+
import { ElInfiniteScroll as s, ElLoading as u, ElMessage as c, ElMessageBox as d, ElNotification as C } from "element-plus";
|
|
6
|
+
import { EpForm as S } from "./components/form/index.js";
|
|
7
|
+
import { EpAffix as b } from "./components/affix/index.js";
|
|
8
|
+
import { EpAlert as k } from "./components/alert/index.js";
|
|
9
|
+
import { EpAnchor as D } from "./components/anchor/index.js";
|
|
10
|
+
import { EpAnchorLink as B } from "./components/anchor-link/index.js";
|
|
11
|
+
import { EpAside as w } from "./components/aside/index.js";
|
|
12
|
+
import { EpAutocomplete as F } from "./components/autocomplete/index.js";
|
|
13
|
+
import { EpAvatar as v } from "./components/avatar/index.js";
|
|
13
14
|
import { EpBacktop as G } from "./components/backtop/index.js";
|
|
14
15
|
import { EpBadge as V } from "./components/badge/index.js";
|
|
15
|
-
import { EpBreadcrumb as
|
|
16
|
-
import { EpBreadcrumbItem as
|
|
17
|
-
import { EpButton as
|
|
16
|
+
import { EpBreadcrumb as O } from "./components/breadcrumb/index.js";
|
|
17
|
+
import { EpBreadcrumbItem as z } from "./components/breadcrumb-item/index.js";
|
|
18
|
+
import { EpButton as K } from "./components/button/index.js";
|
|
18
19
|
import { EpButtonGroup as W } from "./components/button-group/index.js";
|
|
19
20
|
import { EpCalendar as q } from "./components/calendar/index.js";
|
|
20
|
-
import { EpCard as
|
|
21
|
-
import { EpCarousel as
|
|
22
|
-
import { EpCarouselItem as
|
|
23
|
-
import { EpCascader as
|
|
24
|
-
import { EpCascaderPanel as
|
|
25
|
-
import { EpCheckTag as
|
|
26
|
-
import { EpCheckbox as
|
|
27
|
-
import { EpCheckboxButton as
|
|
28
|
-
import { EpCheckboxGroup as
|
|
29
|
-
import { EpCol as
|
|
30
|
-
import { EpCollapse as
|
|
31
|
-
import { EpCollapseItem as
|
|
21
|
+
import { EpCard as Q } from "./components/card/index.js";
|
|
22
|
+
import { EpCarousel as Y } from "./components/carousel/index.js";
|
|
23
|
+
import { EpCarouselItem as $ } from "./components/carousel-item/index.js";
|
|
24
|
+
import { EpCascader as ro } from "./components/cascader/index.js";
|
|
25
|
+
import { EpCascaderPanel as eo } from "./components/cascader-panel/index.js";
|
|
26
|
+
import { EpCheckTag as mo } from "./components/check-tag/index.js";
|
|
27
|
+
import { EpCheckbox as xo } from "./components/checkbox/index.js";
|
|
28
|
+
import { EpCheckboxButton as ao } from "./components/checkbox-button/index.js";
|
|
29
|
+
import { EpCheckboxGroup as no } from "./components/checkbox-group/index.js";
|
|
30
|
+
import { EpCol as so } from "./components/col/index.js";
|
|
31
|
+
import { EpCollapse as co } from "./components/collapse/index.js";
|
|
32
|
+
import { EpCollapseItem as Io } from "./components/collapse-item/index.js";
|
|
32
33
|
import { EpCollapseTransition as To } from "./components/collapse-transition/index.js";
|
|
33
|
-
import { EpColorPicker as
|
|
34
|
-
import { EpConfigProvider as
|
|
35
|
-
import { EpContainer as
|
|
36
|
-
import { EpCountdown as
|
|
37
|
-
import { EpDatePicker as
|
|
38
|
-
import { EpDatePickerPanel as
|
|
39
|
-
import { EpDescriptions as
|
|
34
|
+
import { EpColorPicker as go } from "./components/color-picker/index.js";
|
|
35
|
+
import { EpConfigProvider as Po } from "./components/config-provider/index.js";
|
|
36
|
+
import { EpContainer as Mo } from "./components/container/index.js";
|
|
37
|
+
import { EpCountdown as ho } from "./components/countdown/index.js";
|
|
38
|
+
import { EpDatePicker as Ao } from "./components/date-picker/index.js";
|
|
39
|
+
import { EpDatePickerPanel as Ro } from "./components/date-picker-panel/index.js";
|
|
40
|
+
import { EpDescriptions as yo } from "./components/descriptions/index.js";
|
|
40
41
|
import { EpDescriptionsItem as Lo } from "./components/descriptions-item/index.js";
|
|
41
|
-
import { EpDialog as
|
|
42
|
-
import { EpDivider as
|
|
43
|
-
import { EpDrawer as
|
|
42
|
+
import { EpDialog as No } from "./components/dialog/index.js";
|
|
43
|
+
import { EpDivider as jo } from "./components/divider/index.js";
|
|
44
|
+
import { EpDrawer as Ho } from "./components/drawer/index.js";
|
|
44
45
|
import { EpDropdown as Uo } from "./components/dropdown/index.js";
|
|
45
46
|
import { EpDropdownItem as _o } from "./components/dropdown-item/index.js";
|
|
46
|
-
import { EpDropdownMenu as
|
|
47
|
-
import { EpEmpty as
|
|
48
|
-
import { EpFooter as
|
|
49
|
-
import { EpForm as Zo } from "./components/form/index.js";
|
|
47
|
+
import { EpDropdownMenu as Jo } from "./components/dropdown-menu/index.js";
|
|
48
|
+
import { EpEmpty as Xo } from "./components/empty/index.js";
|
|
49
|
+
import { EpFooter as Zo } from "./components/footer/index.js";
|
|
50
50
|
import { EpFormItem as or } from "./components/form-item/index.js";
|
|
51
51
|
import { EpHeader as pr } from "./components/header/index.js";
|
|
52
52
|
import { EpIcon as tr } from "./components/icon/index.js";
|
|
53
53
|
import { EpImage as fr } from "./components/image/index.js";
|
|
54
|
-
import { EpImageViewer as
|
|
54
|
+
import { EpImageViewer as Er } from "./components/image-viewer/index.js";
|
|
55
55
|
import { EpInput as ir } from "./components/input/index.js";
|
|
56
56
|
import { EpInputNumber as lr } from "./components/input-number/index.js";
|
|
57
|
-
import { EpLink as
|
|
57
|
+
import { EpLink as ur } from "./components/link/index.js";
|
|
58
58
|
import { EpMain as dr } from "./components/main/index.js";
|
|
59
|
-
import { EpMention as
|
|
60
|
-
import { EpMenu as
|
|
61
|
-
import { EpMenuItem as
|
|
59
|
+
import { EpMention as Ir } from "./components/mention/index.js";
|
|
60
|
+
import { EpMenu as Tr } from "./components/menu/index.js";
|
|
61
|
+
import { EpMenuItem as gr } from "./components/menu-item/index.js";
|
|
62
62
|
import { EpMenuItemGroup as Pr } from "./components/menu-item-group/index.js";
|
|
63
|
-
import { EpOption as
|
|
63
|
+
import { EpOption as Mr } from "./components/option/index.js";
|
|
64
64
|
import { EpOptionGroup as hr } from "./components/option-group/index.js";
|
|
65
65
|
import { EpPageHeader as Ar } from "./components/page-header/index.js";
|
|
66
|
-
import { EpPagination as
|
|
67
|
-
import { EpPopconfirm as
|
|
68
|
-
import { EpPopover as
|
|
66
|
+
import { EpPagination as Rr } from "./components/pagination/index.js";
|
|
67
|
+
import { EpPopconfirm as yr } from "./components/popconfirm/index.js";
|
|
68
|
+
import { EpPopover as Lr } from "./components/popover/index.js";
|
|
69
69
|
import { EpPopper as Nr } from "./components/popper/index.js";
|
|
70
70
|
import { EpProgress as jr } from "./components/progress/index.js";
|
|
71
|
-
import { EpRadio as
|
|
72
|
-
import { EpRadioButton as
|
|
73
|
-
import { EpRadioGroup as
|
|
74
|
-
import { EpRate as
|
|
71
|
+
import { EpRadio as Hr } from "./components/radio/index.js";
|
|
72
|
+
import { EpRadioButton as Ur } from "./components/radio-button/index.js";
|
|
73
|
+
import { EpRadioGroup as _r } from "./components/radio-group/index.js";
|
|
74
|
+
import { EpRate as Jr } from "./components/rate/index.js";
|
|
75
75
|
import { EpResult as Xr } from "./components/result/index.js";
|
|
76
76
|
import { EpRow as Zr } from "./components/row/index.js";
|
|
77
77
|
import { EpScrollbar as op } from "./components/scrollbar/index.js";
|
|
78
78
|
import { EpSegmented as pp } from "./components/segmented/index.js";
|
|
79
79
|
import { EpSelect as tp } from "./components/select/index.js";
|
|
80
80
|
import { EpSelectV2 as fp } from "./components/select-v2/index.js";
|
|
81
|
-
import { EpSkeleton as
|
|
81
|
+
import { EpSkeleton as Ep } from "./components/skeleton/index.js";
|
|
82
82
|
import { EpSkeletonItem as ip } from "./components/skeleton-item/index.js";
|
|
83
83
|
import { EpSlider as lp } from "./components/slider/index.js";
|
|
84
|
-
import { EpSpace as
|
|
84
|
+
import { EpSpace as up } from "./components/space/index.js";
|
|
85
85
|
import { EpStatistic as dp } from "./components/statistic/index.js";
|
|
86
|
-
import { EpStep as
|
|
87
|
-
import { EpSteps as
|
|
88
|
-
import { EpSubMenu as
|
|
86
|
+
import { EpStep as Ip } from "./components/step/index.js";
|
|
87
|
+
import { EpSteps as Tp } from "./components/steps/index.js";
|
|
88
|
+
import { EpSubMenu as gp } from "./components/sub-menu/index.js";
|
|
89
89
|
import { EpSwitch as Pp } from "./components/switch/index.js";
|
|
90
|
-
import { EpTabPane as
|
|
90
|
+
import { EpTabPane as Mp } from "./components/tab-pane/index.js";
|
|
91
91
|
import { EpTable as hp } from "./components/table/index.js";
|
|
92
92
|
import { EpTableColumn as Ap } from "./components/table-column/index.js";
|
|
93
|
-
import { EpTableV2 as
|
|
94
|
-
import { EpTabs as
|
|
95
|
-
import { EpTag as
|
|
93
|
+
import { EpTableV2 as Rp } from "./components/table-v2/index.js";
|
|
94
|
+
import { EpTabs as yp } from "./components/tabs/index.js";
|
|
95
|
+
import { EpTag as Lp } from "./components/tag/index.js";
|
|
96
96
|
import { EpText as Np } from "./components/text/index.js";
|
|
97
97
|
import { EpTimePicker as jp } from "./components/time-picker/index.js";
|
|
98
|
-
import { EpTimeSelect as
|
|
99
|
-
import { EpTimeline as
|
|
100
|
-
import { EpTimelineItem as
|
|
101
|
-
import { EpTooltip as
|
|
98
|
+
import { EpTimeSelect as Hp } from "./components/time-select/index.js";
|
|
99
|
+
import { EpTimeline as Up } from "./components/timeline/index.js";
|
|
100
|
+
import { EpTimelineItem as _p } from "./components/timeline-item/index.js";
|
|
101
|
+
import { EpTooltip as Jp } from "./components/tooltip/index.js";
|
|
102
102
|
import { EpTour as Xp } from "./components/tour/index.js";
|
|
103
103
|
import { EpTourStep as Zp } from "./components/tour-step/index.js";
|
|
104
104
|
import { EpTransfer as oe } from "./components/transfer/index.js";
|
|
105
105
|
import { EpTree as pe } from "./components/tree/index.js";
|
|
106
106
|
import { EpTreeSelect as te } from "./components/tree-select/index.js";
|
|
107
107
|
import { EpTreeV2 as fe } from "./components/tree-v2/index.js";
|
|
108
|
-
import { EpUpload as
|
|
108
|
+
import { EpUpload as Ee } from "./components/upload/index.js";
|
|
109
109
|
import { EpWatermark as ie } from "./components/watermark/index.js";
|
|
110
|
+
import { formContextKey as le, formItemContextKey as se } from "./components/form/src/constants.js";
|
|
111
|
+
import { useDisabled as ce, useFormDisabled as de, useFormSize as Ce, useSize as Ie } from "./components/form/src/hooks/use-form-common-props.js";
|
|
112
|
+
import { useFormItem as Te, useFormItemInputId as be } from "./components/form/src/hooks/use-form-item.js";
|
|
110
113
|
const e = (r) => {
|
|
111
114
|
Object.entries(p).forEach(([t, o]) => {
|
|
112
115
|
o && typeof o == "object" && "install" in o && r.use(o);
|
|
113
116
|
});
|
|
114
117
|
}, m = { install: e };
|
|
115
118
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
b as EpAffix,
|
|
120
|
+
k as EpAlert,
|
|
121
|
+
D as EpAnchor,
|
|
122
|
+
B as EpAnchorLink,
|
|
123
|
+
w as EpAside,
|
|
124
|
+
F as EpAutocomplete,
|
|
125
|
+
v as EpAvatar,
|
|
123
126
|
G as EpBacktop,
|
|
124
127
|
V as EpBadge,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
O as EpBreadcrumb,
|
|
129
|
+
z as EpBreadcrumbItem,
|
|
130
|
+
K as EpButton,
|
|
128
131
|
W as EpButtonGroup,
|
|
129
132
|
q as EpCalendar,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
Q as EpCard,
|
|
134
|
+
Y as EpCarousel,
|
|
135
|
+
$ as EpCarouselItem,
|
|
136
|
+
ro as EpCascader,
|
|
137
|
+
eo as EpCascaderPanel,
|
|
138
|
+
mo as EpCheckTag,
|
|
139
|
+
xo as EpCheckbox,
|
|
140
|
+
ao as EpCheckboxButton,
|
|
141
|
+
no as EpCheckboxGroup,
|
|
142
|
+
so as EpCol,
|
|
143
|
+
co as EpCollapse,
|
|
144
|
+
Io as EpCollapseItem,
|
|
142
145
|
To as EpCollapseTransition,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
go as EpColorPicker,
|
|
147
|
+
Po as EpConfigProvider,
|
|
148
|
+
Mo as EpContainer,
|
|
149
|
+
ho as EpCountdown,
|
|
147
150
|
m as EpCraft,
|
|
148
151
|
i as EpCraftResolver,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
Ao as EpDatePicker,
|
|
153
|
+
Ro as EpDatePickerPanel,
|
|
154
|
+
yo as EpDescriptions,
|
|
152
155
|
Lo as EpDescriptionsItem,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
No as EpDialog,
|
|
157
|
+
jo as EpDivider,
|
|
158
|
+
Ho as EpDrawer,
|
|
156
159
|
Uo as EpDropdown,
|
|
157
160
|
_o as EpDropdownItem,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
161
|
+
Jo as EpDropdownMenu,
|
|
162
|
+
Xo as EpEmpty,
|
|
163
|
+
Zo as EpFooter,
|
|
164
|
+
S as EpForm,
|
|
162
165
|
or as EpFormItem,
|
|
163
166
|
pr as EpHeader,
|
|
164
167
|
tr as EpIcon,
|
|
165
168
|
fr as EpImage,
|
|
166
|
-
|
|
169
|
+
Er as EpImageViewer,
|
|
167
170
|
s as EpInfiniteScroll,
|
|
168
171
|
ir as EpInput,
|
|
169
172
|
lr as EpInputNumber,
|
|
170
|
-
|
|
171
|
-
|
|
173
|
+
ur as EpLink,
|
|
174
|
+
u as EpLoading,
|
|
172
175
|
dr as EpMain,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
Ir as EpMention,
|
|
177
|
+
Tr as EpMenu,
|
|
178
|
+
gr as EpMenuItem,
|
|
176
179
|
Pr as EpMenuItemGroup,
|
|
177
|
-
|
|
180
|
+
c as EpMessage,
|
|
178
181
|
d as EpMessageBox,
|
|
179
182
|
C as EpNotification,
|
|
180
|
-
|
|
183
|
+
Mr as EpOption,
|
|
181
184
|
hr as EpOptionGroup,
|
|
182
185
|
Ar as EpPageHeader,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
Rr as EpPagination,
|
|
187
|
+
yr as EpPopconfirm,
|
|
188
|
+
Lr as EpPopover,
|
|
186
189
|
Nr as EpPopper,
|
|
187
190
|
jr as EpProgress,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
Hr as EpRadio,
|
|
192
|
+
Ur as EpRadioButton,
|
|
193
|
+
_r as EpRadioGroup,
|
|
194
|
+
Jr as EpRate,
|
|
192
195
|
Xr as EpResult,
|
|
193
196
|
Zr as EpRow,
|
|
194
197
|
op as EpScrollbar,
|
|
195
198
|
pp as EpSegmented,
|
|
196
199
|
tp as EpSelect,
|
|
197
200
|
fp as EpSelectV2,
|
|
198
|
-
|
|
201
|
+
Ep as EpSkeleton,
|
|
199
202
|
ip as EpSkeletonItem,
|
|
200
203
|
lp as EpSlider,
|
|
201
|
-
|
|
204
|
+
up as EpSpace,
|
|
202
205
|
dp as EpStatistic,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
+
Ip as EpStep,
|
|
207
|
+
Tp as EpSteps,
|
|
208
|
+
gp as EpSubMenu,
|
|
206
209
|
Pp as EpSwitch,
|
|
207
|
-
|
|
210
|
+
Mp as EpTabPane,
|
|
208
211
|
hp as EpTable,
|
|
209
212
|
Ap as EpTableColumn,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
Rp as EpTableV2,
|
|
214
|
+
yp as EpTabs,
|
|
215
|
+
Lp as EpTag,
|
|
213
216
|
Np as EpText,
|
|
214
217
|
jp as EpTimePicker,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
Hp as EpTimeSelect,
|
|
219
|
+
Up as EpTimeline,
|
|
220
|
+
_p as EpTimelineItem,
|
|
221
|
+
Jp as EpTooltip,
|
|
219
222
|
Xp as EpTour,
|
|
220
223
|
Zp as EpTourStep,
|
|
221
224
|
oe as EpTransfer,
|
|
222
225
|
pe as EpTree,
|
|
223
226
|
te as EpTreeSelect,
|
|
224
227
|
fe as EpTreeV2,
|
|
225
|
-
|
|
228
|
+
Ee as EpUpload,
|
|
226
229
|
ie as EpWatermark,
|
|
227
230
|
m as default,
|
|
228
|
-
|
|
231
|
+
le as formContextKey,
|
|
232
|
+
se as formItemContextKey,
|
|
233
|
+
ce as useDisabled,
|
|
234
|
+
de as useFormDisabled,
|
|
235
|
+
Te as useFormItem,
|
|
236
|
+
be as useFormItemInputId,
|
|
237
|
+
Ce as useFormSize,
|
|
238
|
+
Ie as useSize,
|
|
239
|
+
E as withInstall
|
|
229
240
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,25 @@ export * from './components';
|
|
|
3
3
|
export { withInstall } from './utils/with-install';
|
|
4
4
|
export { EpCraftResolver } from './resolver';
|
|
5
5
|
export * from 'element-plus';
|
|
6
|
+
/**
|
|
7
|
+
* 表单上下文相关的 hooks 与 InjectionKey,必须覆盖 element-plus 的同名导出。
|
|
8
|
+
*
|
|
9
|
+
* 背景:源码化(vendored)的表单类组件在构建时被 alias 到本地 src/,
|
|
10
|
+
* 其 provide/inject 用的是本库 src/components/form/src/constants.ts 定义的
|
|
11
|
+
* Symbol;而 `export * from 'element-plus'` 带出的同名成员来自 element-plus
|
|
12
|
+
* 自己的包实例,两者是不同的 Symbol(Symbol 每次求值都会产生新值)。
|
|
13
|
+
*
|
|
14
|
+
* 后果:使用方从 `ep-craft` 根入口导入 useFormDisabled 等 hooks 时,
|
|
15
|
+
* 实际拿到的是 element-plus 版本,其 inject(formContextKey) 找不到
|
|
16
|
+
* <ep-form> provide 的上下文,`form?.disabled` 恒为 undefined,最终兜底为
|
|
17
|
+
* false——表单级 disabled 无法传播到自定义包装组件(表现为只读态下下拉框
|
|
18
|
+
* 已置灰、数字输入框仍可编辑)。
|
|
19
|
+
*
|
|
20
|
+
* 故此处显式再导出本库自身的实现。必须写在 `export * from 'element-plus'`
|
|
21
|
+
* 之后:若写在其前面,同名导出会因 export * 的歧义消除规则被静默丢弃,
|
|
22
|
+
* 使用方又会拿到 element-plus 版本,问题复现。
|
|
23
|
+
*/
|
|
24
|
+
export { formContextKey, formItemContextKey, useDisabled, useFormDisabled, useFormItem, useFormItemInputId, useFormSize, useSize, } from './components/form';
|
|
6
25
|
export { ElMessage as EpMessage, ElMessageBox as EpMessageBox, ElNotification as EpNotification, ElLoading as EpLoading, ElInfiniteScroll as EpInfiniteScroll, } from 'element-plus';
|
|
7
26
|
export declare const EpCraft: Plugin;
|
|
8
27
|
export default EpCraft;
|