@squirrel-cloud/ui-vue 0.3.5 → 0.3.6
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/image/image-viewer.d.ts +18 -0
- package/dist/components/image/image.d.ts +1 -0
- package/dist/components/image/index.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +20 -0
- package/dist/props/image/image-viewer.d.ts +29 -0
- package/dist/props/image/image.d.ts +4 -0
- package/dist/props/image/index.d.ts +1 -0
- package/dist/props/index.d.ts +1 -0
- package/dist/props/tooltip/index.d.ts +1 -0
- package/dist/props/tooltip/tooltip.d.ts +30 -0
- package/dist/squirrel-cloud-ui-vue.js +2305 -1928
- package/dist/squirrel-cloud-ui-vue.umd.cjs +30 -25
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ImageViewerProps } from '../../props';
|
|
2
|
+
type __VLS_Props = ImageViewerProps;
|
|
3
|
+
declare const visible: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'visible'?: typeof visible['value'];
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:visible": (value: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
toolbar: boolean;
|
|
13
|
+
minScale: number;
|
|
14
|
+
maxScale: number;
|
|
15
|
+
scaleStep: number;
|
|
16
|
+
moveable: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -13,6 +13,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
13
13
|
declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageProps> & Readonly<{}>, {
|
|
14
14
|
objectFit: import('../..').ImageObjectFit;
|
|
15
15
|
aspectRatio: string;
|
|
16
|
+
preview: boolean;
|
|
16
17
|
lazy: boolean;
|
|
17
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
19
|
imgRef: HTMLDivElement;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
34
34
|
}>, {
|
|
35
35
|
transition: string;
|
|
36
36
|
placement: import('../..').PopoverPlacement;
|
|
37
|
-
offset: number;
|
|
38
37
|
teleported: boolean;
|
|
38
|
+
offset: number;
|
|
39
39
|
trigger: import('../..').PopoverTrigger;
|
|
40
40
|
showAfter: number;
|
|
41
41
|
hideAfter: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TooltipProps } 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<TooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
|
|
12
|
+
teleported: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 图片查看器属性
|
|
3
|
+
*/
|
|
4
|
+
export interface ImageViewerProps {
|
|
5
|
+
/**
|
|
6
|
+
* 图片地址列表
|
|
7
|
+
*/
|
|
8
|
+
srcList: string[];
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示工具条
|
|
11
|
+
*/
|
|
12
|
+
toolbar?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 最小缩放
|
|
15
|
+
*/
|
|
16
|
+
minScale?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 最大缩放
|
|
19
|
+
*/
|
|
20
|
+
maxScale?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 缩放步长
|
|
23
|
+
*/
|
|
24
|
+
scaleStep?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否可移动
|
|
27
|
+
*/
|
|
28
|
+
moveable?: boolean;
|
|
29
|
+
}
|
package/dist/props/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PopoverPlacement } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 文字提示属性
|
|
4
|
+
*/
|
|
5
|
+
export interface TooltipProps {
|
|
6
|
+
/**
|
|
7
|
+
* 文字提示位置
|
|
8
|
+
*/
|
|
9
|
+
placement?: PopoverPlacement;
|
|
10
|
+
/**
|
|
11
|
+
* 是否插入 body
|
|
12
|
+
*/
|
|
13
|
+
teleported?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 是否禁用
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 过渡动画
|
|
20
|
+
*/
|
|
21
|
+
transition?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 文字提示内容
|
|
24
|
+
*/
|
|
25
|
+
tip: string;
|
|
26
|
+
/**
|
|
27
|
+
* 文字提示类名
|
|
28
|
+
*/
|
|
29
|
+
popoverClass?: string | string[];
|
|
30
|
+
}
|