x-next 0.0.0-alpha.13 → 0.0.0-alpha.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_utils/config.d.ts +1 -1
- package/dist/_utils/is.d.ts +2 -0
- package/dist/_utils/vue-eco.d.ts +1 -1
- package/dist/components/button/index.d.ts +25 -25
- package/dist/icons/animation/animation-loading.d.ts +5 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +172 -158
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +2 -2
package/dist/_utils/config.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const COMPONENT_INSTALLED_KEY: unique symbol;
|
2
2
|
export declare const getClassPrefix: (name?: string) => string;
|
3
|
-
export declare const getComponentPrefix: (name: string) => string
|
3
|
+
export declare const getComponentPrefix: (name: string) => `X${string}`;
|
4
4
|
export declare const getClassNameMixin: (name: string) => {
|
5
5
|
block: string;
|
6
6
|
element: (className: string) => string;
|
package/dist/_utils/is.d.ts
CHANGED
@@ -5,6 +5,8 @@ export declare function isNull(obj: any): obj is null;
|
|
5
5
|
export declare function isBoolean(obj: unknown): obj is boolean;
|
6
6
|
export declare function isObject<T>(obj: T): obj is Extract<T, Record<string, any>>;
|
7
7
|
export declare const isPromise: <T>(obj: unknown) => obj is Promise<T>;
|
8
|
+
export declare const isAsync: (fn: unknown) => boolean;
|
9
|
+
export declare const isAsyncOrPromise: (fn: unknown) => boolean;
|
8
10
|
export declare function isString(obj: any): obj is string;
|
9
11
|
export declare function isNumber(obj: any): obj is number;
|
10
12
|
export declare function isRegExp(obj: any): boolean;
|
package/dist/_utils/vue-eco.d.ts
CHANGED
@@ -27,5 +27,5 @@ export declare const getAllElements: (children: VNode[] | undefined, includeText
|
|
27
27
|
}>[];
|
28
28
|
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
|
29
29
|
export declare const generateComponent: <T extends Component | DefineComponent>(name: string, component: T) => T & {
|
30
|
-
install
|
30
|
+
install(app: App): void;
|
31
31
|
};
|
@@ -12,7 +12,7 @@ export declare const XButton: {
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
shape: {
|
15
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
15
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
16
16
|
default: undefined;
|
17
17
|
};
|
18
18
|
link: {
|
@@ -20,11 +20,11 @@ export declare const XButton: {
|
|
20
20
|
default: boolean;
|
21
21
|
};
|
22
22
|
type: {
|
23
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
23
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
24
24
|
default: undefined;
|
25
25
|
};
|
26
26
|
status: {
|
27
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
27
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
28
28
|
default: undefined;
|
29
29
|
};
|
30
30
|
plain: {
|
@@ -32,7 +32,7 @@ export declare const XButton: {
|
|
32
32
|
default: boolean;
|
33
33
|
};
|
34
34
|
size: {
|
35
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
35
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
36
36
|
default: string;
|
37
37
|
};
|
38
38
|
border: {
|
@@ -42,16 +42,16 @@ export declare const XButton: {
|
|
42
42
|
}>> & Readonly<{
|
43
43
|
onClick?: ((...args: any[]) => any) | undefined;
|
44
44
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
|
45
|
-
size: import('./props').ButtonSize;
|
45
|
+
size: import('./props.ts').ButtonSize;
|
46
46
|
disabled: boolean;
|
47
47
|
block: boolean;
|
48
48
|
loading: boolean;
|
49
49
|
loadingFill: boolean;
|
50
50
|
debounce: number;
|
51
|
-
shape: import('./props').ButtonShape;
|
51
|
+
shape: import('./props.ts').ButtonShape;
|
52
52
|
link: boolean;
|
53
|
-
type: import('./props').ButtonType;
|
54
|
-
status: import('./props').ButtonStatus;
|
53
|
+
type: import('./props.ts').ButtonType;
|
54
|
+
status: import('./props.ts').ButtonStatus;
|
55
55
|
plain: boolean;
|
56
56
|
border: boolean;
|
57
57
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
@@ -74,7 +74,7 @@ export declare const XButton: {
|
|
74
74
|
default: number;
|
75
75
|
};
|
76
76
|
shape: {
|
77
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
77
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
78
78
|
default: undefined;
|
79
79
|
};
|
80
80
|
link: {
|
@@ -82,11 +82,11 @@ export declare const XButton: {
|
|
82
82
|
default: boolean;
|
83
83
|
};
|
84
84
|
type: {
|
85
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
85
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
86
86
|
default: undefined;
|
87
87
|
};
|
88
88
|
status: {
|
89
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
89
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
90
90
|
default: undefined;
|
91
91
|
};
|
92
92
|
plain: {
|
@@ -94,7 +94,7 @@ export declare const XButton: {
|
|
94
94
|
default: boolean;
|
95
95
|
};
|
96
96
|
size: {
|
97
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
97
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
98
98
|
default: string;
|
99
99
|
};
|
100
100
|
border: {
|
@@ -104,16 +104,16 @@ export declare const XButton: {
|
|
104
104
|
}>> & Readonly<{
|
105
105
|
onClick?: ((...args: any[]) => any) | undefined;
|
106
106
|
}>, () => any, {}, {}, {}, {
|
107
|
-
size: import('./props').ButtonSize;
|
107
|
+
size: import('./props.ts').ButtonSize;
|
108
108
|
disabled: boolean;
|
109
109
|
block: boolean;
|
110
110
|
loading: boolean;
|
111
111
|
loadingFill: boolean;
|
112
112
|
debounce: number;
|
113
|
-
shape: import('./props').ButtonShape;
|
113
|
+
shape: import('./props.ts').ButtonShape;
|
114
114
|
link: boolean;
|
115
|
-
type: import('./props').ButtonType;
|
116
|
-
status: import('./props').ButtonStatus;
|
115
|
+
type: import('./props.ts').ButtonType;
|
116
|
+
status: import('./props.ts').ButtonStatus;
|
117
117
|
plain: boolean;
|
118
118
|
border: boolean;
|
119
119
|
}>;
|
@@ -133,7 +133,7 @@ export declare const XButton: {
|
|
133
133
|
default: number;
|
134
134
|
};
|
135
135
|
shape: {
|
136
|
-
type: import('vue').PropType<import('./props').ButtonShape>;
|
136
|
+
type: import('vue').PropType<import('./props.ts').ButtonShape>;
|
137
137
|
default: undefined;
|
138
138
|
};
|
139
139
|
link: {
|
@@ -141,11 +141,11 @@ export declare const XButton: {
|
|
141
141
|
default: boolean;
|
142
142
|
};
|
143
143
|
type: {
|
144
|
-
type: import('vue').PropType<import('./props').ButtonType>;
|
144
|
+
type: import('vue').PropType<import('./props.ts').ButtonType>;
|
145
145
|
default: undefined;
|
146
146
|
};
|
147
147
|
status: {
|
148
|
-
type: import('vue').PropType<import('./props').ButtonStatus>;
|
148
|
+
type: import('vue').PropType<import('./props.ts').ButtonStatus>;
|
149
149
|
default: undefined;
|
150
150
|
};
|
151
151
|
plain: {
|
@@ -153,7 +153,7 @@ export declare const XButton: {
|
|
153
153
|
default: boolean;
|
154
154
|
};
|
155
155
|
size: {
|
156
|
-
type: import('vue').PropType<import('./props').ButtonSize>;
|
156
|
+
type: import('vue').PropType<import('./props.ts').ButtonSize>;
|
157
157
|
default: string;
|
158
158
|
};
|
159
159
|
border: {
|
@@ -163,19 +163,19 @@ export declare const XButton: {
|
|
163
163
|
}>> & Readonly<{
|
164
164
|
onClick?: ((...args: any[]) => any) | undefined;
|
165
165
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
|
166
|
-
size: import('./props').ButtonSize;
|
166
|
+
size: import('./props.ts').ButtonSize;
|
167
167
|
disabled: boolean;
|
168
168
|
block: boolean;
|
169
169
|
loading: boolean;
|
170
170
|
loadingFill: boolean;
|
171
171
|
debounce: number;
|
172
|
-
shape: import('./props').ButtonShape;
|
172
|
+
shape: import('./props.ts').ButtonShape;
|
173
173
|
link: boolean;
|
174
|
-
type: import('./props').ButtonType;
|
175
|
-
status: import('./props').ButtonStatus;
|
174
|
+
type: import('./props.ts').ButtonType;
|
175
|
+
status: import('./props.ts').ButtonStatus;
|
176
176
|
plain: boolean;
|
177
177
|
border: boolean;
|
178
178
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
179
|
-
install
|
179
|
+
install(app: import('vue').App): void;
|
180
180
|
};
|
181
181
|
export { XButton as default };
|
@@ -1,2 +1,6 @@
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
2
|
+
cls: StringConstructor;
|
3
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
4
|
+
cls: StringConstructor;
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
6
|
export default _default;
|
package/dist/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ import { default as MessageBox } from './components/message-box/warp';
|
|
5
5
|
import { default as Notification } from './components/notification/warp';
|
6
6
|
export * from './components';
|
7
7
|
export { Dialog, Message, MessageBox, Notification };
|
8
|
-
|
9
|
-
declare const _default: {
|
8
|
+
declare const XNext: {
|
10
9
|
install: (app: App) => void;
|
11
10
|
};
|
12
|
-
export default
|
11
|
+
export default XNext;
|
12
|
+
export type {} from './types';
|