x-next 0.0.0-alpha.12 → 0.0.0-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_utils/icon.d.ts +1 -1
- package/dist/_utils/vue-eco.d.ts +4 -1
- package/dist/{componets/button/index.vue.d.ts → components/button/Button.d.ts} +4 -69
- package/dist/components/button/index.d.ts +181 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/icons/animation/animation-loading.d.ts +2 -0
- package/dist/icons/animation/animation-loading.vue.d.ts +1 -1
- package/dist/icons/default/check-circle-fill.vue.d.ts +1 -1
- package/dist/icons/default/close-circle-fill.vue.d.ts +1 -1
- package/dist/icons/default/exclamation-circle-fill.vue.d.ts +1 -1
- package/dist/icons/default/info-circle-fill.vue.d.ts +1 -1
- package/dist/icons/default/minus-circle-fill.vue.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.es.js +569 -621
- package/dist/index.umd.js +1 -1
- package/package.json +8 -6
- package/volar.d.ts +7 -0
- package/dist/components.d.ts +0 -1
- package/dist/componets/button/install.d.ts +0 -4
- package/global.d.ts +0 -8
- package/dist/{componets → components}/button/props.d.ts +0 -0
- package/dist/{componets → components}/dialog/index.vue.d.ts +4 -4
- package/dist/{componets → components}/dialog/props.d.ts +0 -0
- package/dist/{componets → components}/dialog/use-props.d.ts +0 -0
- package/dist/{componets → components}/dialog/use.d.ts +0 -0
- package/dist/{componets → components}/dialog/warp.d.ts +0 -0
- package/dist/{componets → components}/message/index.vue.d.ts +5 -5
- package/dist/{componets → components}/message/props.d.ts +0 -0
- package/dist/{componets → components}/message/warp.d.ts +0 -0
- package/dist/{componets → components}/message-box/index.d.ts +0 -0
- package/dist/{componets → components}/message-box/props.d.ts +0 -0
- package/dist/{componets → components}/message-box/warp.d.ts +0 -0
- package/dist/{componets → components}/notification/index.vue.d.ts +2 -2
- /package/dist/{componets → components}/notification/props.d.ts +0 -0
- /package/dist/{componets → components}/notification/warp.d.ts +0 -0
- /package/dist/{componets → components}/space/index.d.ts +0 -0
- /package/dist/{componets → components}/tag-cloud/index.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/components/trend-chart-curve.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/components/trend-chart-grid.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/components/trend-chart-labels.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/components/trend-chart.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/helpers/genPath.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/helpers/genPoints.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/helpers/getPadding.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/helpers/validatePadding.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/index.d.ts +0 -0
- /package/dist/{componets → components}/trend-chart/props.d.ts +0 -0
package/dist/_utils/icon.d.ts
CHANGED
@@ -52,8 +52,8 @@ export declare function createIconComponent(name: string): import('vue').DefineC
|
|
52
52
|
};
|
53
53
|
}>> & Readonly<{}>, {
|
54
54
|
size: string | number;
|
55
|
+
color: string;
|
55
56
|
rotate: number;
|
56
57
|
spin: boolean;
|
57
|
-
color: string;
|
58
58
|
fillColor: unknown[];
|
59
59
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/dist/_utils/vue-eco.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { VNodeTypes, VNode, PropType, Component, Slots, Plugin } from 'vue';
|
1
|
+
import { VNodeTypes, VNode, PropType, Component, Slots, App, Plugin, DefineComponent } from 'vue';
|
2
2
|
export type SFCWithInstall<T> = T & Plugin;
|
3
3
|
/**
|
4
4
|
* @description Vue生态操作封装
|
@@ -26,3 +26,6 @@ export declare const getAllElements: (children: VNode[] | undefined, includeText
|
|
26
26
|
[key: string]: any;
|
27
27
|
}>[];
|
28
28
|
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
|
29
|
+
export declare const generateComponent: <T extends Component | DefineComponent>(name: string, component: T) => T & {
|
30
|
+
install: (app: App) => void;
|
31
|
+
};
|
@@ -38,17 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
38
38
|
type: BooleanConstructor;
|
39
39
|
default: boolean;
|
40
40
|
};
|
41
|
-
}>, {
|
42
|
-
cn: {
|
43
|
-
block: string;
|
44
|
-
element: (className: string) => string;
|
45
|
-
modifier: (className: string) => string;
|
46
|
-
is: (className: string) => string;
|
47
|
-
};
|
48
|
-
cls: import('vue').ComputedRef<(string | false | undefined)[]>;
|
49
|
-
handleClick: (event: MouseEvent) => Promise<void>;
|
50
|
-
isLoading: import('vue').ComputedRef<boolean>;
|
51
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
41
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
52
42
|
disabled: BooleanConstructor;
|
53
43
|
block: BooleanConstructor;
|
54
44
|
loading: BooleanConstructor;
|
@@ -92,71 +82,16 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
92
82
|
onClick?: ((...args: any[]) => any) | undefined;
|
93
83
|
}>, {
|
94
84
|
size: import('./props').ButtonSize;
|
95
|
-
type: import('./props').ButtonType;
|
96
|
-
link: boolean;
|
97
85
|
disabled: boolean;
|
98
86
|
block: boolean;
|
99
87
|
loading: boolean;
|
100
88
|
loadingFill: boolean;
|
101
89
|
debounce: number;
|
102
90
|
shape: import('./props').ButtonShape;
|
91
|
+
link: boolean;
|
92
|
+
type: import('./props').ButtonType;
|
103
93
|
status: import('./props').ButtonStatus;
|
104
94
|
plain: boolean;
|
105
95
|
border: boolean;
|
106
|
-
}, {}, {
|
107
|
-
AnimationLoading: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
108
|
-
size: {
|
109
|
-
type: (NumberConstructor | StringConstructor)[];
|
110
|
-
default: undefined;
|
111
|
-
};
|
112
|
-
rotate: {
|
113
|
-
type: NumberConstructor;
|
114
|
-
default: undefined;
|
115
|
-
};
|
116
|
-
spin: {
|
117
|
-
type: BooleanConstructor;
|
118
|
-
default: boolean;
|
119
|
-
};
|
120
|
-
color: {
|
121
|
-
type: StringConstructor;
|
122
|
-
default: undefined;
|
123
|
-
};
|
124
|
-
fillColor: {
|
125
|
-
type: ArrayConstructor;
|
126
|
-
default: undefined;
|
127
|
-
};
|
128
|
-
}>, {
|
129
|
-
cls: import('vue').ComputedRef<(string | {
|
130
|
-
"x-icon-loading": boolean;
|
131
|
-
})[]>;
|
132
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
133
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
134
|
-
size: {
|
135
|
-
type: (NumberConstructor | StringConstructor)[];
|
136
|
-
default: undefined;
|
137
|
-
};
|
138
|
-
rotate: {
|
139
|
-
type: NumberConstructor;
|
140
|
-
default: undefined;
|
141
|
-
};
|
142
|
-
spin: {
|
143
|
-
type: BooleanConstructor;
|
144
|
-
default: boolean;
|
145
|
-
};
|
146
|
-
color: {
|
147
|
-
type: StringConstructor;
|
148
|
-
default: undefined;
|
149
|
-
};
|
150
|
-
fillColor: {
|
151
|
-
type: ArrayConstructor;
|
152
|
-
default: undefined;
|
153
|
-
};
|
154
|
-
}>> & Readonly<{}>, {
|
155
|
-
size: string | number;
|
156
|
-
rotate: number;
|
157
|
-
spin: boolean;
|
158
|
-
color: string;
|
159
|
-
fillColor: unknown[];
|
160
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
161
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
96
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
162
97
|
export default _default;
|
@@ -0,0 +1,181 @@
|
|
1
|
+
export declare const XButton: {
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
3
|
+
disabled: BooleanConstructor;
|
4
|
+
block: BooleanConstructor;
|
5
|
+
loading: BooleanConstructor;
|
6
|
+
loadingFill: {
|
7
|
+
type: BooleanConstructor;
|
8
|
+
default: boolean;
|
9
|
+
};
|
10
|
+
debounce: {
|
11
|
+
type: NumberConstructor;
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
shape: {
|
15
|
+
type: import('vue').PropType<import('./props').ButtonShape>;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
link: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
default: boolean;
|
21
|
+
};
|
22
|
+
type: {
|
23
|
+
type: import('vue').PropType<import('./props').ButtonType>;
|
24
|
+
default: undefined;
|
25
|
+
};
|
26
|
+
status: {
|
27
|
+
type: import('vue').PropType<import('./props').ButtonStatus>;
|
28
|
+
default: undefined;
|
29
|
+
};
|
30
|
+
plain: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
size: {
|
35
|
+
type: import('vue').PropType<import('./props').ButtonSize>;
|
36
|
+
default: string;
|
37
|
+
};
|
38
|
+
border: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
}>> & Readonly<{
|
43
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
44
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], import('vue').PublicProps, {
|
45
|
+
size: import('./props').ButtonSize;
|
46
|
+
disabled: boolean;
|
47
|
+
block: boolean;
|
48
|
+
loading: boolean;
|
49
|
+
loadingFill: boolean;
|
50
|
+
debounce: number;
|
51
|
+
shape: import('./props').ButtonShape;
|
52
|
+
link: boolean;
|
53
|
+
type: import('./props').ButtonType;
|
54
|
+
status: import('./props').ButtonStatus;
|
55
|
+
plain: boolean;
|
56
|
+
border: boolean;
|
57
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
58
|
+
P: {};
|
59
|
+
B: {};
|
60
|
+
D: {};
|
61
|
+
C: {};
|
62
|
+
M: {};
|
63
|
+
Defaults: {};
|
64
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
65
|
+
disabled: BooleanConstructor;
|
66
|
+
block: BooleanConstructor;
|
67
|
+
loading: BooleanConstructor;
|
68
|
+
loadingFill: {
|
69
|
+
type: BooleanConstructor;
|
70
|
+
default: boolean;
|
71
|
+
};
|
72
|
+
debounce: {
|
73
|
+
type: NumberConstructor;
|
74
|
+
default: number;
|
75
|
+
};
|
76
|
+
shape: {
|
77
|
+
type: import('vue').PropType<import('./props').ButtonShape>;
|
78
|
+
default: undefined;
|
79
|
+
};
|
80
|
+
link: {
|
81
|
+
type: BooleanConstructor;
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
type: {
|
85
|
+
type: import('vue').PropType<import('./props').ButtonType>;
|
86
|
+
default: undefined;
|
87
|
+
};
|
88
|
+
status: {
|
89
|
+
type: import('vue').PropType<import('./props').ButtonStatus>;
|
90
|
+
default: undefined;
|
91
|
+
};
|
92
|
+
plain: {
|
93
|
+
type: BooleanConstructor;
|
94
|
+
default: boolean;
|
95
|
+
};
|
96
|
+
size: {
|
97
|
+
type: import('vue').PropType<import('./props').ButtonSize>;
|
98
|
+
default: string;
|
99
|
+
};
|
100
|
+
border: {
|
101
|
+
type: BooleanConstructor;
|
102
|
+
default: boolean;
|
103
|
+
};
|
104
|
+
}>> & Readonly<{
|
105
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
106
|
+
}>, () => any, {}, {}, {}, {
|
107
|
+
size: import('./props').ButtonSize;
|
108
|
+
disabled: boolean;
|
109
|
+
block: boolean;
|
110
|
+
loading: boolean;
|
111
|
+
loadingFill: boolean;
|
112
|
+
debounce: number;
|
113
|
+
shape: import('./props').ButtonShape;
|
114
|
+
link: boolean;
|
115
|
+
type: import('./props').ButtonType;
|
116
|
+
status: import('./props').ButtonStatus;
|
117
|
+
plain: boolean;
|
118
|
+
border: boolean;
|
119
|
+
}>;
|
120
|
+
__isFragment?: never;
|
121
|
+
__isTeleport?: never;
|
122
|
+
__isSuspense?: never;
|
123
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
124
|
+
disabled: BooleanConstructor;
|
125
|
+
block: BooleanConstructor;
|
126
|
+
loading: BooleanConstructor;
|
127
|
+
loadingFill: {
|
128
|
+
type: BooleanConstructor;
|
129
|
+
default: boolean;
|
130
|
+
};
|
131
|
+
debounce: {
|
132
|
+
type: NumberConstructor;
|
133
|
+
default: number;
|
134
|
+
};
|
135
|
+
shape: {
|
136
|
+
type: import('vue').PropType<import('./props').ButtonShape>;
|
137
|
+
default: undefined;
|
138
|
+
};
|
139
|
+
link: {
|
140
|
+
type: BooleanConstructor;
|
141
|
+
default: boolean;
|
142
|
+
};
|
143
|
+
type: {
|
144
|
+
type: import('vue').PropType<import('./props').ButtonType>;
|
145
|
+
default: undefined;
|
146
|
+
};
|
147
|
+
status: {
|
148
|
+
type: import('vue').PropType<import('./props').ButtonStatus>;
|
149
|
+
default: undefined;
|
150
|
+
};
|
151
|
+
plain: {
|
152
|
+
type: BooleanConstructor;
|
153
|
+
default: boolean;
|
154
|
+
};
|
155
|
+
size: {
|
156
|
+
type: import('vue').PropType<import('./props').ButtonSize>;
|
157
|
+
default: string;
|
158
|
+
};
|
159
|
+
border: {
|
160
|
+
type: BooleanConstructor;
|
161
|
+
default: boolean;
|
162
|
+
};
|
163
|
+
}>> & Readonly<{
|
164
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
165
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", {
|
166
|
+
size: import('./props').ButtonSize;
|
167
|
+
disabled: boolean;
|
168
|
+
block: boolean;
|
169
|
+
loading: boolean;
|
170
|
+
loadingFill: boolean;
|
171
|
+
debounce: number;
|
172
|
+
shape: import('./props').ButtonShape;
|
173
|
+
link: boolean;
|
174
|
+
type: import('./props').ButtonType;
|
175
|
+
status: import('./props').ButtonStatus;
|
176
|
+
plain: boolean;
|
177
|
+
border: boolean;
|
178
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
179
|
+
install: (app: import('vue').App) => void;
|
180
|
+
};
|
181
|
+
export { XButton as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './button';
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
47
47
|
};
|
48
48
|
}>> & Readonly<{}>, {
|
49
49
|
size: string | number;
|
50
|
+
color: string;
|
50
51
|
rotate: number;
|
51
52
|
spin: boolean;
|
52
|
-
color: string;
|
53
53
|
fillColor: unknown[];
|
54
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
55
55
|
export default _default;
|
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { App } from 'vue';
|
2
|
-
import { default as Dialog } from './
|
3
|
-
import { default as Message } from './
|
4
|
-
import { default as MessageBox } from './
|
5
|
-
import { default as Notification } from './
|
2
|
+
import { default as Dialog } from './components/dialog/warp';
|
3
|
+
import { default as Message } from './components/message/warp';
|
4
|
+
import { default as MessageBox } from './components/message-box/warp';
|
5
|
+
import { default as Notification } from './components/notification/warp';
|
6
6
|
export * from './components';
|
7
7
|
export { Dialog, Message, MessageBox, Notification };
|
8
|
-
export declare const install: (
|
8
|
+
export declare const install: (app: App) => void;
|
9
9
|
declare const _default: {
|
10
|
-
install: (
|
10
|
+
install: (app: App) => void;
|
11
11
|
};
|
12
12
|
export default _default;
|