@squirrel-cloud/ui-vue 0.2.20 → 0.2.21
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/avatar/avatar.d.ts +7 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +5 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/input/input.d.ts +10 -11
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +18 -0
- package/dist/components/tag/check-tag.d.ts +2 -2
- package/dist/props/avatar/avatar.d.ts +26 -0
- package/dist/props/avatar/index.d.ts +1 -0
- package/dist/props/index.d.ts +3 -1
- package/dist/props/pagination/index.d.ts +1 -0
- package/dist/props/pagination/pagination.d.ts +17 -0
- package/dist/squirrel-cloud-ui-vue.js +1936 -1729
- package/dist/squirrel-cloud-ui-vue.umd.cjs +19 -17
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AvatarProps } from '../../props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
3
|
+
size: import('../..').ComponentSize;
|
|
4
|
+
round: boolean;
|
|
5
|
+
randomColor: boolean;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -8,7 +8,11 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: HTMLButtonElement;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
click: (e: MouseEvent) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
14
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
15
|
+
}>, {
|
|
12
16
|
size: import('../..').ComponentSize;
|
|
13
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
14
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './alert';
|
|
2
2
|
export * from './article';
|
|
3
|
+
export * from './avatar';
|
|
3
4
|
export * from './backtop';
|
|
4
5
|
export * from './button';
|
|
5
6
|
export * from './card';
|
|
6
7
|
export * from './input';
|
|
8
|
+
export * from './pagination';
|
|
7
9
|
export * from './popover';
|
|
8
10
|
export * from './progress';
|
|
9
11
|
export * from './tag';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { InputProps } from '../../props';
|
|
2
2
|
type __VLS_Props = InputProps;
|
|
3
|
-
declare const value: import('vue').ModelRef<string, string, string, string>;
|
|
4
3
|
declare function focus(): void;
|
|
5
4
|
declare function blur(): void;
|
|
6
5
|
type __VLS_PublicProps = {
|
|
7
|
-
'value'?:
|
|
6
|
+
'value'?: string;
|
|
8
7
|
} & __VLS_Props;
|
|
9
8
|
declare function __VLS_template(): {
|
|
10
9
|
attrs: Partial<{}>;
|
|
@@ -22,16 +21,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
22
21
|
focus: typeof focus;
|
|
23
22
|
blur: typeof blur;
|
|
24
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
input: (
|
|
26
|
-
blur: (
|
|
27
|
-
change: (
|
|
28
|
-
focus: (
|
|
29
|
-
"update:value": (value: string) =>
|
|
24
|
+
input: (e: Event) => any;
|
|
25
|
+
blur: (e: FocusEvent) => any;
|
|
26
|
+
change: (e: Event) => any;
|
|
27
|
+
focus: (e: FocusEvent) => any;
|
|
28
|
+
"update:value": (value: string) => any;
|
|
30
29
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
-
onInput?: ((
|
|
32
|
-
onBlur?: ((
|
|
33
|
-
onChange?: ((
|
|
34
|
-
onFocus?: ((
|
|
30
|
+
onInput?: ((e: Event) => any) | undefined;
|
|
31
|
+
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
32
|
+
onChange?: ((e: Event) => any) | undefined;
|
|
33
|
+
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
35
34
|
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
36
35
|
}>, {
|
|
37
36
|
size: import('../..').ComponentSize;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaginationProps } from '../../props';
|
|
2
|
+
type __VLS_Props = PaginationProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'current'?: number;
|
|
5
|
+
'page-size'?: number;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:current": (value: number) => any;
|
|
9
|
+
"update:page-size": (value: number) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:current"?: ((value: number) => any) | undefined;
|
|
12
|
+
"onUpdate:page-size"?: ((value: number) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
total: number;
|
|
16
|
+
pagerCount: number;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -9,9 +9,9 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<CheckTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
change: (
|
|
12
|
+
change: (newVal: boolean) => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<CheckTagProps> & Readonly<{
|
|
14
|
-
onChange?: ((
|
|
14
|
+
onChange?: ((newVal: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
type: import('../..').ComponentType;
|
|
17
17
|
theme: import('../..').TagThemeBase;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentSize } from '../../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 头像属性
|
|
4
|
+
*/
|
|
5
|
+
export interface AvatarProps {
|
|
6
|
+
/**
|
|
7
|
+
* 头像图片
|
|
8
|
+
*/
|
|
9
|
+
img?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 头像描述
|
|
12
|
+
*/
|
|
13
|
+
alt: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否随机背景色
|
|
16
|
+
*/
|
|
17
|
+
randomColor?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 是否圆角头像
|
|
20
|
+
*/
|
|
21
|
+
round?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* 头像大小
|
|
24
|
+
*/
|
|
25
|
+
size?: ComponentSize;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './avatar';
|
package/dist/props/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './alert';
|
|
2
|
+
export * from './avatar';
|
|
2
3
|
export * from './backtop';
|
|
3
4
|
export * from './button';
|
|
4
5
|
export * from './card';
|
|
5
|
-
export * from './input
|
|
6
|
+
export * from './input';
|
|
7
|
+
export * from './pagination';
|
|
6
8
|
export * from './popover';
|
|
7
9
|
export * from './progress';
|
|
8
10
|
export * from './tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pagination';
|