x-runtime-lib 0.5.11 → 0.5.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/dist/components/element/dialog/v1/index.vue.d.ts +16 -1
- package/dist/element/_common/keys.d.ts +1 -0
- package/dist/element/basic/package/v1/index.d.ts +3 -0
- package/dist/{i18n-en-chxvg9av.js → i18n-en-or78iu3w.js} +1 -0
- package/dist/{i18n-zhHans-irh3vhql.js → i18n-zhHans-gsf2tqo3.js} +1 -0
- package/dist/index.js +1080 -1019
- package/dist/types/element.d.ts +18 -2
- package/package.json +1 -1
package/dist/types/element.d.ts
CHANGED
|
@@ -18,6 +18,14 @@ type ZTypeInput = {
|
|
|
18
18
|
step: number;
|
|
19
19
|
} & ZTypeBase;
|
|
20
20
|
export type ZType = ZTypeWord | ZTypeInput;
|
|
21
|
+
export type ZSlot = {
|
|
22
|
+
key: string;
|
|
23
|
+
name: string;
|
|
24
|
+
params: {
|
|
25
|
+
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
21
29
|
export type ZEvent = {
|
|
22
30
|
key: string;
|
|
23
31
|
name: string;
|
|
@@ -97,6 +105,11 @@ type ZPropCompSelect = {
|
|
|
97
105
|
readonly?: boolean;
|
|
98
106
|
default: string;
|
|
99
107
|
} & ZPropBase;
|
|
108
|
+
type ZPropSlotSelect = {
|
|
109
|
+
ui: 'slotSelect';
|
|
110
|
+
readonly?: boolean;
|
|
111
|
+
default: string;
|
|
112
|
+
} & ZPropBase;
|
|
100
113
|
export type ZProp = ({
|
|
101
114
|
array?: false;
|
|
102
115
|
} & ZPropBranch) | ({
|
|
@@ -142,7 +155,9 @@ export type ZProp = ({
|
|
|
142
155
|
} & ZPropCompSelect) | ({
|
|
143
156
|
array: true;
|
|
144
157
|
defaultArray: string[];
|
|
145
|
-
} & ZPropCompSelect)
|
|
158
|
+
} & ZPropCompSelect) | ({
|
|
159
|
+
array?: undefined;
|
|
160
|
+
} & ZPropSlotSelect);
|
|
146
161
|
export type ZProps = {
|
|
147
162
|
[key: string]: ZProp[];
|
|
148
163
|
};
|
|
@@ -150,7 +165,7 @@ export type ZElement = {
|
|
|
150
165
|
key: string;
|
|
151
166
|
name: string;
|
|
152
167
|
comp: any;
|
|
153
|
-
|
|
168
|
+
slots: ZSlot[];
|
|
154
169
|
events: ZEvent[];
|
|
155
170
|
methods: ZMethod[];
|
|
156
171
|
props: ZProps;
|
|
@@ -169,6 +184,7 @@ export type ZPkg = {
|
|
|
169
184
|
elements: Set<string>;
|
|
170
185
|
globalityKey: string;
|
|
171
186
|
refKey: string;
|
|
187
|
+
packageKey: string;
|
|
172
188
|
groups: ZGroup[];
|
|
173
189
|
};
|
|
174
190
|
export type ZPkgs = {
|