straw-ui-vue 0.1.15 → 0.1.16
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/st-image/index.d.ts +2 -66
- package/dist/components/st-image/st-image.d.ts +2 -18
- package/dist/components/st-image/types.d.ts +4 -40
- package/dist/global.d.ts +0 -1
- package/dist/index.d.ts +1 -3
- package/dist/straw-ui.js +254 -372
- package/package.json +1 -1
- package/dist/components/st-image/st-image-preview.d.ts +0 -16
|
@@ -12,22 +12,11 @@ export declare const StImage: {
|
|
|
12
12
|
height: number;
|
|
13
13
|
}>) => any;
|
|
14
14
|
}, import('vue').PublicProps, {
|
|
15
|
-
height: string | number;
|
|
16
|
-
width: string | number;
|
|
17
|
-
imageClass: string;
|
|
18
|
-
imageStyle: import('vue').StyleValue;
|
|
19
15
|
alt: string;
|
|
20
16
|
src: string;
|
|
21
|
-
initialIndex: number;
|
|
22
17
|
fit: import('./types.d.ts').StImageFit;
|
|
23
|
-
preview: boolean;
|
|
24
|
-
previewSrcList: string[];
|
|
25
18
|
showLoading: boolean;
|
|
26
19
|
showError: boolean;
|
|
27
|
-
loadingClass: string;
|
|
28
|
-
errorClass: string;
|
|
29
|
-
containerClass: string;
|
|
30
|
-
containerStyle: import('vue').StyleValue;
|
|
31
20
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
32
21
|
P: {};
|
|
33
22
|
B: {};
|
|
@@ -42,22 +31,11 @@ export declare const StImage: {
|
|
|
42
31
|
height: number;
|
|
43
32
|
}>) => any;
|
|
44
33
|
}>, {}, {}, {}, {}, {
|
|
45
|
-
height: string | number;
|
|
46
|
-
width: string | number;
|
|
47
|
-
imageClass: string;
|
|
48
|
-
imageStyle: import('vue').StyleValue;
|
|
49
34
|
alt: string;
|
|
50
35
|
src: string;
|
|
51
|
-
initialIndex: number;
|
|
52
36
|
fit: import('./types.d.ts').StImageFit;
|
|
53
|
-
preview: boolean;
|
|
54
|
-
previewSrcList: string[];
|
|
55
37
|
showLoading: boolean;
|
|
56
38
|
showError: boolean;
|
|
57
|
-
loadingClass: string;
|
|
58
|
-
errorClass: string;
|
|
59
|
-
containerClass: string;
|
|
60
|
-
containerStyle: import('vue').StyleValue;
|
|
61
39
|
}>;
|
|
62
40
|
__isFragment?: never;
|
|
63
41
|
__isTeleport?: never;
|
|
@@ -75,55 +53,13 @@ export declare const StImage: {
|
|
|
75
53
|
height: number;
|
|
76
54
|
}>) => any;
|
|
77
55
|
}, string, {
|
|
78
|
-
height: string | number;
|
|
79
|
-
width: string | number;
|
|
80
|
-
imageClass: string;
|
|
81
|
-
imageStyle: import('vue').StyleValue;
|
|
82
56
|
alt: string;
|
|
83
57
|
src: string;
|
|
84
|
-
initialIndex: number;
|
|
85
58
|
fit: import('./types.d.ts').StImageFit;
|
|
86
|
-
preview: boolean;
|
|
87
|
-
previewSrcList: string[];
|
|
88
59
|
showLoading: boolean;
|
|
89
60
|
showError: boolean;
|
|
90
|
-
loadingClass: string;
|
|
91
|
-
errorClass: string;
|
|
92
|
-
containerClass: string;
|
|
93
|
-
containerStyle: import('vue').StyleValue;
|
|
94
61
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
95
|
-
$slots:
|
|
96
|
-
|
|
97
|
-
} & {
|
|
98
|
-
error?: (props: {}) => any;
|
|
99
|
-
};
|
|
100
|
-
}) & {
|
|
101
|
-
StImagePreview: import('vue').DefineComponent<import('./types.d.ts').StImagePreviewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
102
|
-
switch: (index: number) => any;
|
|
103
|
-
"update:modelValue": (value: boolean) => any;
|
|
104
|
-
}, string, import('vue').PublicProps, Readonly<import('./types.d.ts').StImagePreviewProps> & Readonly<{
|
|
105
|
-
onSwitch?: (index: number) => any;
|
|
106
|
-
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
107
|
-
}>, {
|
|
108
|
-
modelValue: boolean;
|
|
109
|
-
modal: boolean;
|
|
110
|
-
closeOnClickModal: boolean;
|
|
111
|
-
srcList: string[];
|
|
112
|
-
initialIndex: number;
|
|
113
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
114
|
-
};
|
|
115
|
-
export declare const StImagePreview: import('vue').DefineComponent<import('./types.d.ts').StImagePreviewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
116
|
-
switch: (index: number) => any;
|
|
117
|
-
"update:modelValue": (value: boolean) => any;
|
|
118
|
-
}, string, import('vue').PublicProps, Readonly<import('./types.d.ts').StImagePreviewProps> & Readonly<{
|
|
119
|
-
onSwitch?: (index: number) => any;
|
|
120
|
-
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
121
|
-
}>, {
|
|
122
|
-
modelValue: boolean;
|
|
123
|
-
modal: boolean;
|
|
124
|
-
closeOnClickModal: boolean;
|
|
125
|
-
srcList: string[];
|
|
126
|
-
initialIndex: number;
|
|
127
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
62
|
+
$slots: import('./types.d.ts').StImageSlots;
|
|
63
|
+
}) & Record<string, any>;
|
|
128
64
|
export default StImage;
|
|
129
65
|
export type * from './types.d.ts';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { StImageProps } from './types.d.ts';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
loading?: (props: typeof __VLS_1) => any;
|
|
5
|
-
} & {
|
|
6
|
-
error?: (props: typeof __VLS_3) => any;
|
|
7
|
-
};
|
|
1
|
+
import { StImageProps, StImageSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StImageSlots;
|
|
8
3
|
declare const __VLS_base: import('vue').DefineComponent<StImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
4
|
error: (event: Event) => any;
|
|
10
5
|
load: (event: CustomEvent<{
|
|
@@ -18,22 +13,11 @@ declare const __VLS_base: import('vue').DefineComponent<StImageProps, {}, {}, {}
|
|
|
18
13
|
height: number;
|
|
19
14
|
}>) => any;
|
|
20
15
|
}>, {
|
|
21
|
-
height: string | number;
|
|
22
|
-
width: string | number;
|
|
23
|
-
imageClass: string;
|
|
24
|
-
imageStyle: import('vue').StyleValue;
|
|
25
16
|
alt: string;
|
|
26
17
|
src: string;
|
|
27
|
-
initialIndex: number;
|
|
28
18
|
fit: import('./types.d.ts').StImageFit;
|
|
29
|
-
preview: boolean;
|
|
30
|
-
previewSrcList: string[];
|
|
31
19
|
showLoading: boolean;
|
|
32
20
|
showError: boolean;
|
|
33
|
-
loadingClass: string;
|
|
34
|
-
errorClass: string;
|
|
35
|
-
containerClass: string;
|
|
36
|
-
containerStyle: import('vue').StyleValue;
|
|
37
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,34 +13,24 @@ export interface StImageProps {
|
|
|
13
13
|
src?: string;
|
|
14
14
|
/** 图片描述 */
|
|
15
15
|
alt?: string;
|
|
16
|
-
/** 图片宽度 */
|
|
17
|
-
width?: string | number;
|
|
18
|
-
/** 图片高度 */
|
|
19
|
-
height?: string | number;
|
|
20
16
|
/** 图片适配模式 */
|
|
21
17
|
fit?: StImageFit;
|
|
22
|
-
/** 是否开启预览 */
|
|
23
|
-
preview?: boolean;
|
|
24
|
-
/** 预览图片列表 */
|
|
25
|
-
previewSrcList?: string[];
|
|
26
|
-
/** 初始预览图片索引 */
|
|
27
|
-
initialIndex?: number;
|
|
28
18
|
/** 是否显示加载占位 */
|
|
29
19
|
showLoading?: boolean;
|
|
30
20
|
/** 是否显示错误占位 */
|
|
31
21
|
showError?: boolean;
|
|
32
22
|
/** 自定义加载占位类名 */
|
|
33
23
|
loadingClass?: ClassValue;
|
|
24
|
+
/** 自定义加载占位样式 */
|
|
25
|
+
loadingStyle?: StyleValue;
|
|
34
26
|
/** 自定义错误占位类名 */
|
|
35
27
|
errorClass?: ClassValue;
|
|
28
|
+
/** 自定义错误占位样式 */
|
|
29
|
+
errorStyle?: StyleValue;
|
|
36
30
|
/** 自定义图片类名 */
|
|
37
31
|
imageClass?: ClassValue;
|
|
38
32
|
/** 自定义图片样式 */
|
|
39
33
|
imageStyle?: StyleValue;
|
|
40
|
-
/** 自定义容器类名 */
|
|
41
|
-
containerClass?: ClassValue;
|
|
42
|
-
/** 自定义容器样式 */
|
|
43
|
-
containerStyle?: StyleValue;
|
|
44
34
|
}
|
|
45
35
|
|
|
46
36
|
/**
|
|
@@ -65,30 +55,4 @@ export interface StImageSlots {
|
|
|
65
55
|
default?: () => unknown;
|
|
66
56
|
}
|
|
67
57
|
|
|
68
|
-
/**
|
|
69
|
-
* 图片预览组件属性
|
|
70
|
-
* */
|
|
71
|
-
export interface StImagePreviewProps {
|
|
72
|
-
/** 是否显示预览 */
|
|
73
|
-
modelValue: boolean;
|
|
74
|
-
/** 预览图片列表 */
|
|
75
|
-
srcList: string[];
|
|
76
|
-
/** 初始预览图片索引 */
|
|
77
|
-
initialIndex?: number;
|
|
78
|
-
/** 是否显示遮罩层 */
|
|
79
|
-
modal?: boolean;
|
|
80
|
-
/** 点击遮罩层是否关闭 */
|
|
81
|
-
closeOnClickModal?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* 图片预览组件事件类型
|
|
86
|
-
* */
|
|
87
|
-
export interface StImagePreviewEmits {
|
|
88
|
-
/** 更新可见状态事件 */
|
|
89
|
-
'update:modelValue': [value: boolean];
|
|
90
|
-
/** 切换图片事件 */
|
|
91
|
-
switch: [index: number];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
58
|
export {};
|
package/dist/global.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ declare module 'vue' {
|
|
|
33
33
|
StFormLabel: typeof Components.StFormLabel;
|
|
34
34
|
StFormMessage: typeof Components.StFormMessage;
|
|
35
35
|
StImage: typeof Components.StImage;
|
|
36
|
-
StImagePreview: typeof Components.StImagePreview;
|
|
37
36
|
StInput: typeof Components.StInput;
|
|
38
37
|
StInputGroup: typeof Components.StInputGroup;
|
|
39
38
|
StInputGroupAddon: typeof Components.StInputGroupAddon;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { StFormField } from './components/st-form-field';
|
|
|
15
15
|
export { StFormItem } from './components/st-form-item';
|
|
16
16
|
export { StFormLabel } from './components/st-form-label';
|
|
17
17
|
export { StFormMessage } from './components/st-form-message';
|
|
18
|
-
export { StImage
|
|
18
|
+
export { StImage } from './components/st-image';
|
|
19
19
|
export { StInput, StInputGroup, StInputGroupAddon, StInputGroupButton, StInputGroupInput, StInputGroupText, StInputGroupTextarea, StInputNumber, StTextarea, } from './components/st-input';
|
|
20
20
|
export { StLabel } from './components/st-label';
|
|
21
21
|
export { StMenu, StMenuContainer, StMenuContent, StMenuDivider, StMenuGroup, StMenuItem, StMenuNode, StMenuTrigger, } from './components/st-menu';
|
|
@@ -118,7 +118,6 @@ import type { StFormItem as _StFormItem } from './components/st-form-item';
|
|
|
118
118
|
import type { StFormLabel as _StFormLabel } from './components/st-form-label';
|
|
119
119
|
import type { StFormMessage as _StFormMessage } from './components/st-form-message';
|
|
120
120
|
import type { StImage as _StImage } from './components/st-image';
|
|
121
|
-
import type { StImagePreview as _StImagePreview } from './components/st-image';
|
|
122
121
|
import type { StInput as _StInput } from './components/st-input';
|
|
123
122
|
import type { StInputGroup as _StInputGroup } from './components/st-input';
|
|
124
123
|
import type { StInputGroupAddon as _StInputGroupAddon } from './components/st-input';
|
|
@@ -208,7 +207,6 @@ declare module 'vue' {
|
|
|
208
207
|
StFormLabel: typeof _StFormLabel;
|
|
209
208
|
StFormMessage: typeof _StFormMessage;
|
|
210
209
|
StImage: typeof _StImage;
|
|
211
|
-
StImagePreview: typeof _StImagePreview;
|
|
212
210
|
StInput: typeof _StInput;
|
|
213
211
|
StInputGroup: typeof _StInputGroup;
|
|
214
212
|
StInputGroupAddon: typeof _StInputGroupAddon;
|