@squirrel-cloud/ui-vue 0.4.2 → 0.4.3
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/dialog/dialog.d.ts +34 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/image/image-viewer.d.ts +2 -0
- package/dist/components/image-crop/image-crop.d.ts +11 -0
- package/dist/components/image-crop/index.d.ts +2 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/mask/index.d.ts +2 -0
- package/dist/components/mask/mask.d.ts +28 -0
- package/dist/components/upload/index.d.ts +2 -0
- package/dist/components/upload/upload.d.ts +26 -0
- package/dist/props/alert/alert.d.ts +4 -4
- package/dist/props/dialog/dialog.d.ts +35 -0
- package/dist/props/dialog/index.d.ts +1 -0
- package/dist/props/image/image-viewer.d.ts +2 -1
- package/dist/props/image-crop/image-crop.d.ts +13 -0
- package/dist/props/image-crop/index.d.ts +1 -0
- package/dist/props/index.d.ts +4 -0
- package/dist/props/mask/index.d.ts +1 -0
- package/dist/props/mask/mask.d.ts +18 -0
- package/dist/props/upload/index.d.ts +1 -0
- package/dist/props/upload/upload.d.ts +33 -0
- package/dist/squirrel-cloud-ui-vue.js +2443 -2094
- package/dist/squirrel-cloud-ui-vue.umd.cjs +34 -34
- package/dist/style.css +1 -1
- package/license +220 -220
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DialogProps } from '../../props';
|
|
2
|
+
type __VLS_Props = DialogProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
footer?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:visible": (value: boolean) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
okText: string;
|
|
23
|
+
cancelText: string;
|
|
24
|
+
footer: boolean;
|
|
25
|
+
keyboard: boolean;
|
|
26
|
+
maskCloseable: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -8,6 +8,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
9
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
+
keyboard: boolean;
|
|
12
|
+
maskCloseable: boolean;
|
|
11
13
|
toolbar: boolean;
|
|
12
14
|
minScale: number;
|
|
13
15
|
maxScale: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageCropProps } from '../../props';
|
|
2
|
+
declare function cropImage(): string | undefined;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<ImageCropProps, {
|
|
4
|
+
cropImage: typeof cropImage;
|
|
5
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageCropProps> & Readonly<{}>, {
|
|
6
|
+
aspectRatio: number;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
cropperRef: HTMLDivElement;
|
|
9
|
+
imgRef: HTMLImageElement;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -7,10 +7,12 @@ export * from './blur';
|
|
|
7
7
|
export * from './button';
|
|
8
8
|
export * from './card';
|
|
9
9
|
export * from './checkbox';
|
|
10
|
+
export * from './dialog';
|
|
10
11
|
export * from './divider';
|
|
11
12
|
export * from './editor';
|
|
12
13
|
export * from './form';
|
|
13
14
|
export * from './image';
|
|
15
|
+
export * from './image-crop';
|
|
14
16
|
export * from './input';
|
|
15
17
|
export * from './message';
|
|
16
18
|
export * from './pagination';
|
|
@@ -23,3 +25,4 @@ export * from './tag';
|
|
|
23
25
|
export * from './text';
|
|
24
26
|
export * from './timeline';
|
|
25
27
|
export * from './tooltip';
|
|
28
|
+
export * from './upload';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MaskProps } from '../../props';
|
|
2
|
+
type __VLS_Props = MaskProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'visible'?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:visible": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
keyboard: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UploadProps } from '../../props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
inputRef: HTMLInputElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<UploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
change: (list: File[]) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<UploadProps> & Readonly<{
|
|
16
|
+
onChange?: ((list: File[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
inputRef: HTMLInputElement;
|
|
19
|
+
}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { ComponentType } from '../../typings';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 警告属性
|
|
5
5
|
*/
|
|
6
6
|
export interface AlertProps {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 警告类型
|
|
9
9
|
*/
|
|
10
10
|
type?: ComponentType;
|
|
11
11
|
/**
|
|
@@ -13,11 +13,11 @@ export interface AlertProps {
|
|
|
13
13
|
*/
|
|
14
14
|
showIcon?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 警告图标
|
|
17
17
|
*/
|
|
18
18
|
icon?: Component;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* 警告内容
|
|
21
21
|
*/
|
|
22
22
|
text: string;
|
|
23
23
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentType, Promiseable } from '../../typings';
|
|
2
|
+
import { MaskProps } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* 弹出框属性
|
|
5
|
+
*/
|
|
6
|
+
export interface DialogProps extends MaskProps {
|
|
7
|
+
/**
|
|
8
|
+
* 按钮类型
|
|
9
|
+
*/
|
|
10
|
+
type?: ComponentType;
|
|
11
|
+
/**
|
|
12
|
+
* 弹出框标题
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 确认按钮文本
|
|
17
|
+
*/
|
|
18
|
+
okText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 取消按钮文本
|
|
21
|
+
*/
|
|
22
|
+
cancelText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 是否显示底栏
|
|
25
|
+
*/
|
|
26
|
+
footer?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 是否可关闭
|
|
29
|
+
*/
|
|
30
|
+
closeable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 确认回调
|
|
33
|
+
*/
|
|
34
|
+
onOk?: () => Promiseable<boolean>;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './image-crop';
|
package/dist/props/index.d.ts
CHANGED
|
@@ -5,11 +5,14 @@ export * from './badge';
|
|
|
5
5
|
export * from './button';
|
|
6
6
|
export * from './card';
|
|
7
7
|
export * from './checkbox';
|
|
8
|
+
export * from './dialog';
|
|
8
9
|
export * from './divider';
|
|
9
10
|
export * from './editor';
|
|
10
11
|
export * from './form';
|
|
11
12
|
export * from './image';
|
|
13
|
+
export * from './image-crop';
|
|
12
14
|
export * from './input';
|
|
15
|
+
export * from './mask';
|
|
13
16
|
export * from './message';
|
|
14
17
|
export * from './pagination';
|
|
15
18
|
export * from './popover';
|
|
@@ -21,3 +24,4 @@ export * from './tag';
|
|
|
21
24
|
export * from './text';
|
|
22
25
|
export * from './timeline';
|
|
23
26
|
export * from './tooltip';
|
|
27
|
+
export * from './upload';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mask';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Promiseable } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 遮罩属性
|
|
4
|
+
*/
|
|
5
|
+
export interface MaskProps {
|
|
6
|
+
/**
|
|
7
|
+
* 按下ESC时是否关闭
|
|
8
|
+
*/
|
|
9
|
+
keyboard?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 点击遮罩时是否关闭
|
|
12
|
+
*/
|
|
13
|
+
maskCloseable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 关闭回调
|
|
16
|
+
*/
|
|
17
|
+
onClose?: () => Promiseable<boolean>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './upload';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 上传属性
|
|
3
|
+
*/
|
|
4
|
+
export interface UploadProps {
|
|
5
|
+
/**
|
|
6
|
+
* 关联表单
|
|
7
|
+
*/
|
|
8
|
+
form?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 名称
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 是否禁用
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 允许的文件类型
|
|
19
|
+
*/
|
|
20
|
+
accept?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 最大允许文件数量
|
|
23
|
+
*/
|
|
24
|
+
max?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否允许上传多个文件
|
|
27
|
+
*/
|
|
28
|
+
multiple?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 是否允许拖拽上传
|
|
31
|
+
*/
|
|
32
|
+
allowDrop?: boolean;
|
|
33
|
+
}
|