@squirrel-cloud/ui-vue 0.2.15 → 0.2.17

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,23 @@
1
+ import { BacktopProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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
+ icon: import('vue').Component;
14
+ transition: string;
15
+ visibilityHeight: number;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ import { default as SqBacktop } from './backtop';
2
+ export { SqBacktop };
@@ -1,4 +1,5 @@
1
1
  export * from './article';
2
+ export * from './backtop';
2
3
  export * from './button';
3
4
  export * from './card';
4
5
  export * from './input';
@@ -1,7 +1,31 @@
1
1
  import { ProgressProps } from '../../props';
2
- declare const _default: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {
6
+ percentage: number;
7
+ }): any;
8
+ };
9
+ refs: {
10
+ progressRef: HTMLDivElement;
11
+ };
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
3
16
  type: import('../..').ComponentType;
17
+ label: boolean;
18
+ stroke: number;
4
19
  min: number;
5
20
  max: number;
6
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ theme: import('../..').ProgressTheme;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
23
+ progressRef: HTMLDivElement;
24
+ }, HTMLDivElement>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
26
  export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,27 @@
1
+ import { Component } from 'vue';
2
+ import { ProgressProps } from '../';
3
+ /**
4
+ * 回到顶部属性
5
+ */
6
+ export interface BacktopProps {
7
+ /**
8
+ * 是否显示进度条
9
+ */
10
+ progress?: boolean;
11
+ /**
12
+ * 图标
13
+ */
14
+ icon?: Component;
15
+ /**
16
+ * 过渡动画
17
+ */
18
+ transition?: string;
19
+ /**
20
+ * 出现时最小滚动高度
21
+ */
22
+ visibilityHeight?: number;
23
+ /**
24
+ * 进度条配置
25
+ */
26
+ progressProps?: Pick<ProgressProps, 'stroke' | 'color' | 'type'>;
27
+ }
@@ -0,0 +1 @@
1
+ export * from './backtop';
@@ -1,2 +1,2 @@
1
- export type { ButtonProps } from './button';
2
- export type { ButtonGroupProps } from './button-group';
1
+ export * from './button';
2
+ export * from './button-group';
@@ -1 +1 @@
1
- export type { CardProps } from './card';
1
+ export * from './card';
@@ -1,3 +1,4 @@
1
+ export * from './backtop';
1
2
  export * from './button';
2
3
  export * from './card';
3
4
  export * from './input/input';
@@ -1 +1 @@
1
- export type { InputProps } from './input';
1
+ export * from './input';
@@ -1 +1 @@
1
- export type { PopoverProps } from './popover';
1
+ export * from './popover';
@@ -1 +1 @@
1
- export type { ProgressProps } from './progress';
1
+ export * from './progress';
@@ -1,4 +1,4 @@
1
- import { ComponentType } from '../../../typings';
1
+ import { ComponentType, ProgressTheme } from '../../../typings';
2
2
  /**
3
3
  * 进度条属性
4
4
  */
@@ -15,6 +15,10 @@ export interface ProgressProps {
15
15
  * 最大值
16
16
  */
17
17
  max?: number;
18
+ /**
19
+ * 进度条宽度
20
+ */
21
+ stroke?: number;
18
22
  /**
19
23
  * 进度条颜色
20
24
  */
@@ -23,4 +27,12 @@ export interface ProgressProps {
23
27
  * 类型
24
28
  */
25
29
  type?: ComponentType;
30
+ /**
31
+ * 主题
32
+ */
33
+ theme?: ProgressTheme;
34
+ /**
35
+ * 是否显示标签
36
+ */
37
+ label?: boolean;
26
38
  }
@@ -1,2 +1,2 @@
1
- export type { TagProps } from './tag';
2
- export type { CheckTagProps } from './check-tag';
1
+ export * from './tag';
2
+ export * from './check-tag';
@@ -1 +1 @@
1
- export type { TextProps } from './text';
1
+ export * from './text';
@@ -1,2 +1,2 @@
1
- export type { TimelineProps } from './timeline';
2
- export type { TimelineItemProps } from './timeline-item';
1
+ export * from './timeline';
2
+ export * from './timeline-item';