@cyberpunk-vue/components 1.6.1 → 1.7.1
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/button/index.d.ts +30 -0
- package/dist/button/index.d.ts.map +1 -1
- package/dist/button/src/button.d.ts +17 -0
- package/dist/button/src/button.d.ts.map +1 -1
- package/dist/button/src/button.vue.d.ts +18 -0
- package/dist/button/src/button.vue.d.ts.map +1 -1
- package/dist/card/index.d.ts +3 -3
- package/dist/card/src/card.vue.d.ts +1 -1
- package/dist/container/index.d.ts +45 -0
- package/dist/container/index.d.ts.map +1 -1
- package/dist/container/src/aside.vue.d.ts +9 -0
- package/dist/container/src/aside.vue.d.ts.map +1 -1
- package/dist/container/src/container.d.ts +24 -0
- package/dist/container/src/container.d.ts.map +1 -1
- package/dist/container/src/footer.vue.d.ts +9 -0
- package/dist/container/src/footer.vue.d.ts.map +1 -1
- package/dist/container/src/header.vue.d.ts +9 -0
- package/dist/container/src/header.vue.d.ts.map +1 -1
- package/dist/dropdown/index.d.ts +3 -3
- package/dist/dropdown/src/dropdown.vue.d.ts +1 -1
- package/dist/empty/index.d.ts +137 -0
- package/dist/empty/index.d.ts.map +1 -0
- package/dist/empty/src/empty.d.ts +63 -0
- package/dist/empty/src/empty.d.ts.map +1 -0
- package/dist/empty/src/empty.vue.d.ts +78 -0
- package/dist/empty/src/empty.vue.d.ts.map +1 -0
- package/dist/empty/src/instance.d.ts +3 -0
- package/dist/empty/src/instance.d.ts.map +1 -0
- package/dist/image/index.d.ts +60 -0
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/src/image.d.ts +36 -1
- package/dist/image/src/image.d.ts.map +1 -1
- package/dist/image/src/image.vue.d.ts +36 -0
- package/dist/image/src/image.vue.d.ts.map +1 -1
- package/dist/image-preview/index.d.ts +116 -0
- package/dist/image-preview/index.d.ts.map +1 -0
- package/dist/image-preview/src/image-preview.d.ts +99 -0
- package/dist/image-preview/src/image-preview.d.ts.map +1 -0
- package/dist/image-preview/src/image-preview.vue.d.ts +112 -0
- package/dist/image-preview/src/image-preview.vue.d.ts.map +1 -0
- package/dist/image-preview/src/instance.d.ts +3 -0
- package/dist/image-preview/src/instance.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +4681 -3714
- package/dist/loading/index.d.ts +9 -0
- package/dist/loading/index.d.ts.map +1 -1
- package/dist/loading/src/loading.d.ts +17 -0
- package/dist/loading/src/loading.d.ts.map +1 -1
- package/dist/loading/src/loading.vue.d.ts +9 -0
- package/dist/loading/src/loading.vue.d.ts.map +1 -1
- package/dist/popover/src/popover.vue.d.ts +1 -1
- package/dist/upload/index.d.ts +61 -1
- package/dist/upload/index.d.ts.map +1 -1
- package/dist/upload/src/upload.d.ts +37 -0
- package/dist/upload/src/upload.d.ts.map +1 -1
- package/dist/upload/src/upload.vue.d.ts +38 -2
- package/dist/upload/src/upload.vue.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/dropdown/index.d.ts
CHANGED
|
@@ -136,8 +136,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
136
136
|
readonly maxHeight: number;
|
|
137
137
|
readonly inline: boolean;
|
|
138
138
|
readonly inactiveColor: string;
|
|
139
|
-
readonly placement: import('.').DropdownPlacement;
|
|
140
139
|
readonly teleportTo: string | HTMLElement;
|
|
140
|
+
readonly placement: import('.').DropdownPlacement;
|
|
141
141
|
readonly options: import('.').DropdownOption[];
|
|
142
142
|
readonly filterPlaceholder: string;
|
|
143
143
|
readonly filterable: boolean;
|
|
@@ -268,8 +268,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
268
268
|
readonly maxHeight: number;
|
|
269
269
|
readonly inline: boolean;
|
|
270
270
|
readonly inactiveColor: string;
|
|
271
|
-
readonly placement: import('.').DropdownPlacement;
|
|
272
271
|
readonly teleportTo: string | HTMLElement;
|
|
272
|
+
readonly placement: import('.').DropdownPlacement;
|
|
273
273
|
readonly options: import('.').DropdownOption[];
|
|
274
274
|
readonly filterPlaceholder: string;
|
|
275
275
|
readonly filterable: boolean;
|
|
@@ -399,8 +399,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
|
|
|
399
399
|
readonly maxHeight: number;
|
|
400
400
|
readonly inline: boolean;
|
|
401
401
|
readonly inactiveColor: string;
|
|
402
|
-
readonly placement: import('.').DropdownPlacement;
|
|
403
402
|
readonly teleportTo: string | HTMLElement;
|
|
403
|
+
readonly placement: import('.').DropdownPlacement;
|
|
404
404
|
readonly options: import('.').DropdownOption[];
|
|
405
405
|
readonly filterPlaceholder: string;
|
|
406
406
|
readonly filterable: boolean;
|
|
@@ -227,8 +227,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
227
227
|
readonly maxHeight: number;
|
|
228
228
|
readonly inline: boolean;
|
|
229
229
|
readonly inactiveColor: string;
|
|
230
|
-
readonly placement: import('./dropdown').DropdownPlacement;
|
|
231
230
|
readonly teleportTo: string | HTMLElement;
|
|
231
|
+
readonly placement: import('./dropdown').DropdownPlacement;
|
|
232
232
|
readonly options: DropdownOption[];
|
|
233
233
|
readonly filterPlaceholder: string;
|
|
234
234
|
readonly filterable: boolean;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CpEmpty 赛博朋克风格空状态组件
|
|
3
|
+
*
|
|
4
|
+
* 用于无数据、无搜索结果、网络错误等场景的占位展示。
|
|
5
|
+
* 组件始终撑满父容器,水平+垂直居中。
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```vue
|
|
9
|
+
* <CpEmpty />
|
|
10
|
+
* <CpEmpty title="无搜索结果" description="请尝试不同的关键词" />
|
|
11
|
+
* <CpEmpty type="primary">
|
|
12
|
+
* <CpButton type="primary">刷新</CpButton>
|
|
13
|
+
* </CpEmpty>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @see {@link EmptyProps} 查看所有可用属性
|
|
17
|
+
*/
|
|
18
|
+
export declare const CpEmpty: import('../utils').SFCWithInstall<{
|
|
19
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
readonly title: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: "暂无数据";
|
|
23
|
+
};
|
|
24
|
+
readonly description: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
readonly icon: {
|
|
29
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
30
|
+
readonly default: "";
|
|
31
|
+
};
|
|
32
|
+
readonly imageSize: {
|
|
33
|
+
readonly type: NumberConstructor;
|
|
34
|
+
readonly default: 64;
|
|
35
|
+
};
|
|
36
|
+
readonly type: {
|
|
37
|
+
readonly type: import('vue').PropType<import('.').EmptyType>;
|
|
38
|
+
readonly default: "default";
|
|
39
|
+
};
|
|
40
|
+
readonly color: {
|
|
41
|
+
readonly type: StringConstructor;
|
|
42
|
+
readonly default: "";
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
45
|
+
readonly type: import('.').EmptyType;
|
|
46
|
+
readonly color: string;
|
|
47
|
+
readonly icon: string | import('vue').Component;
|
|
48
|
+
readonly title: string;
|
|
49
|
+
readonly description: string;
|
|
50
|
+
readonly imageSize: number;
|
|
51
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
52
|
+
P: {};
|
|
53
|
+
B: {};
|
|
54
|
+
D: {};
|
|
55
|
+
C: {};
|
|
56
|
+
M: {};
|
|
57
|
+
Defaults: {};
|
|
58
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
readonly title: {
|
|
60
|
+
readonly type: StringConstructor;
|
|
61
|
+
readonly default: "暂无数据";
|
|
62
|
+
};
|
|
63
|
+
readonly description: {
|
|
64
|
+
readonly type: StringConstructor;
|
|
65
|
+
readonly default: "";
|
|
66
|
+
};
|
|
67
|
+
readonly icon: {
|
|
68
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
69
|
+
readonly default: "";
|
|
70
|
+
};
|
|
71
|
+
readonly imageSize: {
|
|
72
|
+
readonly type: NumberConstructor;
|
|
73
|
+
readonly default: 64;
|
|
74
|
+
};
|
|
75
|
+
readonly type: {
|
|
76
|
+
readonly type: import('vue').PropType<import('.').EmptyType>;
|
|
77
|
+
readonly default: "default";
|
|
78
|
+
};
|
|
79
|
+
readonly color: {
|
|
80
|
+
readonly type: StringConstructor;
|
|
81
|
+
readonly default: "";
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
84
|
+
readonly type: import('.').EmptyType;
|
|
85
|
+
readonly color: string;
|
|
86
|
+
readonly icon: string | import('vue').Component;
|
|
87
|
+
readonly title: string;
|
|
88
|
+
readonly description: string;
|
|
89
|
+
readonly imageSize: number;
|
|
90
|
+
}>;
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
95
|
+
readonly title: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "暂无数据";
|
|
98
|
+
};
|
|
99
|
+
readonly description: {
|
|
100
|
+
readonly type: StringConstructor;
|
|
101
|
+
readonly default: "";
|
|
102
|
+
};
|
|
103
|
+
readonly icon: {
|
|
104
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
105
|
+
readonly default: "";
|
|
106
|
+
};
|
|
107
|
+
readonly imageSize: {
|
|
108
|
+
readonly type: NumberConstructor;
|
|
109
|
+
readonly default: 64;
|
|
110
|
+
};
|
|
111
|
+
readonly type: {
|
|
112
|
+
readonly type: import('vue').PropType<import('.').EmptyType>;
|
|
113
|
+
readonly default: "default";
|
|
114
|
+
};
|
|
115
|
+
readonly color: {
|
|
116
|
+
readonly type: StringConstructor;
|
|
117
|
+
readonly default: "";
|
|
118
|
+
};
|
|
119
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
120
|
+
readonly type: import('.').EmptyType;
|
|
121
|
+
readonly color: string;
|
|
122
|
+
readonly icon: string | import('vue').Component;
|
|
123
|
+
readonly title: string;
|
|
124
|
+
readonly description: string;
|
|
125
|
+
readonly imageSize: number;
|
|
126
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
127
|
+
$slots: {
|
|
128
|
+
icon?(_: {}): any;
|
|
129
|
+
title?(_: {}): any;
|
|
130
|
+
description?(_: {}): any;
|
|
131
|
+
default?(_: {}): any;
|
|
132
|
+
};
|
|
133
|
+
})>;
|
|
134
|
+
export default CpEmpty;
|
|
135
|
+
export * from './src/empty';
|
|
136
|
+
export type { CpEmptyInstance } from './src/instance';
|
|
137
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../empty/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqB,CAAA;AACzC,eAAe,OAAO,CAAA;AAEtB,cAAc,aAAa,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 空状态颜色类型
|
|
4
|
+
*/
|
|
5
|
+
export type EmptyType = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'default';
|
|
6
|
+
/**
|
|
7
|
+
* CpEmpty 组件 Props 定义
|
|
8
|
+
*
|
|
9
|
+
* @description 赛博朋克风格空状态组件,用于无数据、无搜索结果等场景。
|
|
10
|
+
* 组件始终撑满父容器,水平+垂直居中展示。
|
|
11
|
+
*/
|
|
12
|
+
export declare const emptyProps: {
|
|
13
|
+
/**
|
|
14
|
+
* 标题文本(粗体大字)
|
|
15
|
+
* @default '暂无数据'
|
|
16
|
+
*/
|
|
17
|
+
readonly title: {
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly default: "暂无数据";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 描述/副标题文本(次要灰色小字)
|
|
23
|
+
* @default ''
|
|
24
|
+
*/
|
|
25
|
+
readonly description: {
|
|
26
|
+
readonly type: StringConstructor;
|
|
27
|
+
readonly default: "";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* 自定义图标名称(使用 CpIcon)
|
|
31
|
+
* @default ''
|
|
32
|
+
*/
|
|
33
|
+
readonly icon: {
|
|
34
|
+
readonly type: PropType<string | Component>;
|
|
35
|
+
readonly default: "";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 图标尺寸 (px)
|
|
39
|
+
* @default 64
|
|
40
|
+
*/
|
|
41
|
+
readonly imageSize: {
|
|
42
|
+
readonly type: NumberConstructor;
|
|
43
|
+
readonly default: 64;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 颜色类型
|
|
47
|
+
* @default 'default'
|
|
48
|
+
*/
|
|
49
|
+
readonly type: {
|
|
50
|
+
readonly type: PropType<EmptyType>;
|
|
51
|
+
readonly default: "default";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 自定义颜色(覆盖 type)
|
|
55
|
+
* @default ''
|
|
56
|
+
*/
|
|
57
|
+
readonly color: {
|
|
58
|
+
readonly type: StringConstructor;
|
|
59
|
+
readonly default: "";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
|
|
63
|
+
//# sourceMappingURL=empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../empty/src/empty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAExF;;;;;GAKG;AACH,eAAO,MAAM,UAAU;IACnB;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;uBAE2B,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAI1D;;;OAGG;;;;;IAMH;;;OAGG;;uBAEiB,QAAQ,CAAC,SAAS,CAAC;;;IAIvC;;;OAGG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
icon?(_: {}): any;
|
|
5
|
+
title?(_: {}): any;
|
|
6
|
+
description?(_: {}): any;
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
readonly title: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "暂无数据";
|
|
17
|
+
};
|
|
18
|
+
readonly description: {
|
|
19
|
+
readonly type: StringConstructor;
|
|
20
|
+
readonly default: "";
|
|
21
|
+
};
|
|
22
|
+
readonly icon: {
|
|
23
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly imageSize: {
|
|
27
|
+
readonly type: NumberConstructor;
|
|
28
|
+
readonly default: 64;
|
|
29
|
+
};
|
|
30
|
+
readonly type: {
|
|
31
|
+
readonly type: import('vue').PropType<import('./empty').EmptyType>;
|
|
32
|
+
readonly default: "default";
|
|
33
|
+
};
|
|
34
|
+
readonly color: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "";
|
|
37
|
+
};
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
39
|
+
readonly title: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly default: "暂无数据";
|
|
42
|
+
};
|
|
43
|
+
readonly description: {
|
|
44
|
+
readonly type: StringConstructor;
|
|
45
|
+
readonly default: "";
|
|
46
|
+
};
|
|
47
|
+
readonly icon: {
|
|
48
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
49
|
+
readonly default: "";
|
|
50
|
+
};
|
|
51
|
+
readonly imageSize: {
|
|
52
|
+
readonly type: NumberConstructor;
|
|
53
|
+
readonly default: 64;
|
|
54
|
+
};
|
|
55
|
+
readonly type: {
|
|
56
|
+
readonly type: import('vue').PropType<import('./empty').EmptyType>;
|
|
57
|
+
readonly default: "default";
|
|
58
|
+
};
|
|
59
|
+
readonly color: {
|
|
60
|
+
readonly type: StringConstructor;
|
|
61
|
+
readonly default: "";
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{}>, {
|
|
64
|
+
readonly type: import('./empty').EmptyType;
|
|
65
|
+
readonly color: string;
|
|
66
|
+
readonly icon: string | import('vue').Component;
|
|
67
|
+
readonly title: string;
|
|
68
|
+
readonly description: string;
|
|
69
|
+
readonly imageSize: number;
|
|
70
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
71
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
72
|
+
export default _default;
|
|
73
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
74
|
+
new (): {
|
|
75
|
+
$slots: S;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=empty.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.vue.d.ts","sourceRoot":"","sources":["../../../empty/src/empty.vue"],"names":[],"mappings":"AAoIA,iBAAS,cAAc;WAoIT,OAAO,IAA6B;;sBAbxB,GAAG;uBACF,GAAG;6BACG,GAAG;yBACP,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../empty/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,GAAG,OAAO,CAAA"}
|
package/dist/image/index.d.ts
CHANGED
|
@@ -32,10 +32,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
32
32
|
readonly type: BooleanConstructor;
|
|
33
33
|
readonly default: false;
|
|
34
34
|
};
|
|
35
|
+
readonly preview: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
35
39
|
readonly previewSrc: {
|
|
36
40
|
readonly type: StringConstructor;
|
|
37
41
|
readonly default: "";
|
|
38
42
|
};
|
|
43
|
+
readonly previewSrcList: {
|
|
44
|
+
readonly type: import('vue').PropType<string[]>;
|
|
45
|
+
readonly default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
readonly initialIndex: {
|
|
48
|
+
readonly type: NumberConstructor;
|
|
49
|
+
readonly default: 0;
|
|
50
|
+
};
|
|
51
|
+
readonly download: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
39
55
|
readonly fallbackSrc: {
|
|
40
56
|
readonly type: StringConstructor;
|
|
41
57
|
readonly default: "";
|
|
@@ -104,7 +120,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
104
120
|
readonly src: string;
|
|
105
121
|
readonly alt: string;
|
|
106
122
|
readonly lazy: boolean;
|
|
123
|
+
readonly preview: boolean;
|
|
107
124
|
readonly previewSrc: string;
|
|
125
|
+
readonly previewSrcList: string[];
|
|
126
|
+
readonly initialIndex: number;
|
|
127
|
+
readonly download: boolean;
|
|
108
128
|
readonly fallbackSrc: string;
|
|
109
129
|
readonly showDecor: boolean;
|
|
110
130
|
readonly decorPosition: import('.').ImageDecorPosition;
|
|
@@ -145,10 +165,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
145
165
|
readonly type: BooleanConstructor;
|
|
146
166
|
readonly default: false;
|
|
147
167
|
};
|
|
168
|
+
readonly preview: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly default: false;
|
|
171
|
+
};
|
|
148
172
|
readonly previewSrc: {
|
|
149
173
|
readonly type: StringConstructor;
|
|
150
174
|
readonly default: "";
|
|
151
175
|
};
|
|
176
|
+
readonly previewSrcList: {
|
|
177
|
+
readonly type: import('vue').PropType<string[]>;
|
|
178
|
+
readonly default: () => never[];
|
|
179
|
+
};
|
|
180
|
+
readonly initialIndex: {
|
|
181
|
+
readonly type: NumberConstructor;
|
|
182
|
+
readonly default: 0;
|
|
183
|
+
};
|
|
184
|
+
readonly download: {
|
|
185
|
+
readonly type: BooleanConstructor;
|
|
186
|
+
readonly default: false;
|
|
187
|
+
};
|
|
152
188
|
readonly fallbackSrc: {
|
|
153
189
|
readonly type: StringConstructor;
|
|
154
190
|
readonly default: "";
|
|
@@ -214,7 +250,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
214
250
|
readonly src: string;
|
|
215
251
|
readonly alt: string;
|
|
216
252
|
readonly lazy: boolean;
|
|
253
|
+
readonly preview: boolean;
|
|
217
254
|
readonly previewSrc: string;
|
|
255
|
+
readonly previewSrcList: string[];
|
|
256
|
+
readonly initialIndex: number;
|
|
257
|
+
readonly download: boolean;
|
|
218
258
|
readonly fallbackSrc: string;
|
|
219
259
|
readonly showDecor: boolean;
|
|
220
260
|
readonly decorPosition: import('.').ImageDecorPosition;
|
|
@@ -249,10 +289,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
249
289
|
readonly type: BooleanConstructor;
|
|
250
290
|
readonly default: false;
|
|
251
291
|
};
|
|
292
|
+
readonly preview: {
|
|
293
|
+
readonly type: BooleanConstructor;
|
|
294
|
+
readonly default: false;
|
|
295
|
+
};
|
|
252
296
|
readonly previewSrc: {
|
|
253
297
|
readonly type: StringConstructor;
|
|
254
298
|
readonly default: "";
|
|
255
299
|
};
|
|
300
|
+
readonly previewSrcList: {
|
|
301
|
+
readonly type: import('vue').PropType<string[]>;
|
|
302
|
+
readonly default: () => never[];
|
|
303
|
+
};
|
|
304
|
+
readonly initialIndex: {
|
|
305
|
+
readonly type: NumberConstructor;
|
|
306
|
+
readonly default: 0;
|
|
307
|
+
};
|
|
308
|
+
readonly download: {
|
|
309
|
+
readonly type: BooleanConstructor;
|
|
310
|
+
readonly default: false;
|
|
311
|
+
};
|
|
256
312
|
readonly fallbackSrc: {
|
|
257
313
|
readonly type: StringConstructor;
|
|
258
314
|
readonly default: "";
|
|
@@ -321,7 +377,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
|
|
|
321
377
|
readonly src: string;
|
|
322
378
|
readonly alt: string;
|
|
323
379
|
readonly lazy: boolean;
|
|
380
|
+
readonly preview: boolean;
|
|
324
381
|
readonly previewSrc: string;
|
|
382
|
+
readonly previewSrcList: string[];
|
|
383
|
+
readonly initialIndex: number;
|
|
384
|
+
readonly download: boolean;
|
|
325
385
|
readonly fallbackSrc: string;
|
|
326
386
|
readonly showDecor: boolean;
|
|
327
387
|
readonly decorPosition: import('.').ImageDecorPosition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../image/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../image/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAKwqJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GALppJ,CAAA;AAEzC,eAAe,OAAO,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -92,15 +92,50 @@ export declare const imageProps: {
|
|
|
92
92
|
readonly type: BooleanConstructor;
|
|
93
93
|
readonly default: false;
|
|
94
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* 是否开启点击预览
|
|
97
|
+
* 开启后点击图片会弹出全屏大图预览
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
readonly preview: {
|
|
101
|
+
readonly type: BooleanConstructor;
|
|
102
|
+
readonly default: false;
|
|
103
|
+
};
|
|
95
104
|
/**
|
|
96
105
|
* 预览大图地址
|
|
97
|
-
*
|
|
106
|
+
* 在预览中使用的高清图片地址,不指定则使用 src
|
|
98
107
|
* @default ''
|
|
99
108
|
*/
|
|
100
109
|
readonly previewSrc: {
|
|
101
110
|
readonly type: StringConstructor;
|
|
102
111
|
readonly default: "";
|
|
103
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* 多图预览列表
|
|
115
|
+
* 传入后自动启用预览,点击图片可查看整个图片列表
|
|
116
|
+
* @default []
|
|
117
|
+
*/
|
|
118
|
+
readonly previewSrcList: {
|
|
119
|
+
readonly type: PropType<string[]>;
|
|
120
|
+
readonly default: () => never[];
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* 初始预览索引,在 previewSrcList 模式下有效
|
|
124
|
+
* @default 0
|
|
125
|
+
* @example `<CpImage :preview-src-list="[...]" :initial-index="1" />`
|
|
126
|
+
*/
|
|
127
|
+
readonly initialIndex: {
|
|
128
|
+
readonly type: NumberConstructor;
|
|
129
|
+
readonly default: 0;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* 是否允许在预览时下载图片
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
readonly download: {
|
|
136
|
+
readonly type: BooleanConstructor;
|
|
137
|
+
readonly default: false;
|
|
138
|
+
};
|
|
104
139
|
/**
|
|
105
140
|
* 加载失败时的回退图片地址
|
|
106
141
|
* @default ''
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../image/src/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAA;AAE3E;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAA;AAE1F;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;IACnB;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;uBAEiB,QAAQ,CAAC,QAAQ,CAAC;;;IAGtC;;;;;;;OAOG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;uBAE2B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AE,MAAM,CAAC,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC;;;IAG9F;;;;OAIG;;uBAEkC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;;;IAG3F;;;;OAIG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,UAAU;IACnB;;;OAGG;kBACW,KAAK;IAEnB;;;OAGG;mBACY,KAAK;CACvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA"}
|
|
@@ -32,10 +32,26 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
32
32
|
readonly type: BooleanConstructor;
|
|
33
33
|
readonly default: false;
|
|
34
34
|
};
|
|
35
|
+
readonly preview: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
35
39
|
readonly previewSrc: {
|
|
36
40
|
readonly type: StringConstructor;
|
|
37
41
|
readonly default: "";
|
|
38
42
|
};
|
|
43
|
+
readonly previewSrcList: {
|
|
44
|
+
readonly type: import('vue').PropType<string[]>;
|
|
45
|
+
readonly default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
readonly initialIndex: {
|
|
48
|
+
readonly type: NumberConstructor;
|
|
49
|
+
readonly default: 0;
|
|
50
|
+
};
|
|
51
|
+
readonly download: {
|
|
52
|
+
readonly type: BooleanConstructor;
|
|
53
|
+
readonly default: false;
|
|
54
|
+
};
|
|
39
55
|
readonly fallbackSrc: {
|
|
40
56
|
readonly type: StringConstructor;
|
|
41
57
|
readonly default: "";
|
|
@@ -117,10 +133,26 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
117
133
|
readonly type: BooleanConstructor;
|
|
118
134
|
readonly default: false;
|
|
119
135
|
};
|
|
136
|
+
readonly preview: {
|
|
137
|
+
readonly type: BooleanConstructor;
|
|
138
|
+
readonly default: false;
|
|
139
|
+
};
|
|
120
140
|
readonly previewSrc: {
|
|
121
141
|
readonly type: StringConstructor;
|
|
122
142
|
readonly default: "";
|
|
123
143
|
};
|
|
144
|
+
readonly previewSrcList: {
|
|
145
|
+
readonly type: import('vue').PropType<string[]>;
|
|
146
|
+
readonly default: () => never[];
|
|
147
|
+
};
|
|
148
|
+
readonly initialIndex: {
|
|
149
|
+
readonly type: NumberConstructor;
|
|
150
|
+
readonly default: 0;
|
|
151
|
+
};
|
|
152
|
+
readonly download: {
|
|
153
|
+
readonly type: BooleanConstructor;
|
|
154
|
+
readonly default: false;
|
|
155
|
+
};
|
|
124
156
|
readonly fallbackSrc: {
|
|
125
157
|
readonly type: StringConstructor;
|
|
126
158
|
readonly default: "";
|
|
@@ -191,7 +223,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
191
223
|
readonly src: string;
|
|
192
224
|
readonly alt: string;
|
|
193
225
|
readonly lazy: boolean;
|
|
226
|
+
readonly preview: boolean;
|
|
194
227
|
readonly previewSrc: string;
|
|
228
|
+
readonly previewSrcList: string[];
|
|
229
|
+
readonly initialIndex: number;
|
|
230
|
+
readonly download: boolean;
|
|
195
231
|
readonly fallbackSrc: string;
|
|
196
232
|
readonly showDecor: boolean;
|
|
197
233
|
readonly decorPosition: import('./image').ImageDecorPosition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.vue.d.ts","sourceRoot":"","sources":["../../../image/src/image.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.vue.d.ts","sourceRoot":"","sources":["../../../image/src/image.vue"],"names":[],"mappings":"AAwcA,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;6BAbjB,GAAG;uBACT,GAAG;;;;;;;EAiB7B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAhWrB;;;WAGG;QACH,CAjEsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6DtC;;;WAGG;QACH,CAjEsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsapC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|