@squirrel-cloud/ui-vue 0.2.19 → 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.
@@ -0,0 +1,5 @@
1
+ import { AlertProps } from '../../props';
2
+ declare const _default: import('vue').DefineComponent<AlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlertProps> & Readonly<{}>, {
3
+ type: import('../..').ComponentType;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as SqAlert } from './alert';
2
+ export { SqAlert };
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { default as SqAvatar } from './avatar';
2
+ export { SqAvatar };
@@ -9,10 +9,10 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<BacktopProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BacktopProps> & Readonly<{}>, {
12
- progress: boolean;
13
- target: string;
14
12
  icon: import('vue').Component;
15
13
  transition: string;
14
+ target: string;
15
+ progress: boolean;
16
16
  visibilityHeight: number;
17
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -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, {}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
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,8 +1,11 @@
1
+ export * from './alert';
1
2
  export * from './article';
3
+ export * from './avatar';
2
4
  export * from './backtop';
3
5
  export * from './button';
4
6
  export * from './card';
5
7
  export * from './input';
8
+ export * from './pagination';
6
9
  export * from './popover';
7
10
  export * from './progress';
8
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'?: typeof value['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: (...args: any[]) => void;
26
- blur: (...args: any[]) => void;
27
- change: (...args: any[]) => void;
28
- focus: (...args: any[]) => void;
29
- "update:value": (value: string) => void;
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?: ((...args: any[]) => any) | undefined;
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- onFocus?: ((...args: any[]) => any) | undefined;
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,2 @@
1
+ import { default as SqPagination } from './pagination';
2
+ export { SqPagination };
@@ -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;
@@ -13,12 +13,12 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
16
- type: import('../..').ComponentType;
17
- label: boolean;
18
16
  stroke: number;
17
+ type: import('../..').ComponentType;
19
18
  min: number;
20
19
  max: number;
21
20
  theme: import('../..').ProgressTheme;
21
+ label: boolean;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
23
23
  progressRef: HTMLDivElement;
24
24
  }, HTMLDivElement>;
@@ -9,14 +9,14 @@ 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: (...args: any[]) => void;
12
+ change: (newVal: boolean) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<CheckTagProps> & Readonly<{
14
- onChange?: ((...args: any[]) => any) | undefined;
14
+ onChange?: ((newVal: boolean) => any) | undefined;
15
15
  }>, {
16
16
  type: import('../..').ComponentType;
17
- checked: boolean;
18
- size: import('../..').ComponentSize;
19
17
  theme: import('../..').TagThemeBase;
18
+ size: import('../..').ComponentSize;
19
+ checked: boolean;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -9,8 +9,8 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{}>, {
12
- size: import('../..').ComponentSize;
13
12
  theme: import('../..').TagTheme;
13
+ size: import('../..').ComponentSize;
14
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
15
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
16
  export default _default;
@@ -0,0 +1,23 @@
1
+ import { Component } from 'vue';
2
+ import { ComponentType } from '../../../typings';
3
+ /**
4
+ * 提示属性
5
+ */
6
+ export interface AlertProps {
7
+ /**
8
+ * 提示类型
9
+ */
10
+ type?: ComponentType;
11
+ /**
12
+ * 是否显示图标
13
+ */
14
+ showIcon?: boolean;
15
+ /**
16
+ * 提示图标
17
+ */
18
+ icon?: Component;
19
+ /**
20
+ * 提示内容
21
+ */
22
+ text: string;
23
+ }
@@ -0,0 +1 @@
1
+ export * from './alert';
@@ -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';
@@ -1,7 +1,10 @@
1
+ export * from './alert';
2
+ export * from './avatar';
1
3
  export * from './backtop';
2
4
  export * from './button';
3
5
  export * from './card';
4
- export * from './input/input';
6
+ export * from './input';
7
+ export * from './pagination';
5
8
  export * from './popover';
6
9
  export * from './progress';
7
10
  export * from './tag';
@@ -0,0 +1 @@
1
+ export * from './pagination';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 分页器属性
3
+ */
4
+ export interface PaginationProps {
5
+ /**
6
+ * 总数
7
+ */
8
+ total?: number;
9
+ /**
10
+ * 是否禁用
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * 最大按钮数量
15
+ */
16
+ pagerCount?: number;
17
+ }