@cyberpunk-vue/components 1.14.4 → 1.14.5

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.
@@ -46,6 +46,10 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
46
46
  readonly type: StringConstructor;
47
47
  readonly default: "";
48
48
  };
49
+ readonly shape: {
50
+ readonly type: import('vue').PropType<import('.').ImagePreviewShape>;
51
+ readonly default: "clip";
52
+ };
49
53
  readonly download: {
50
54
  readonly type: BooleanConstructor;
51
55
  readonly default: false;
@@ -76,6 +80,7 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
76
80
  readonly stackPriority: number;
77
81
  readonly type: "error" | "primary" | "success" | "warning" | "info" | "default";
78
82
  readonly color: string;
83
+ readonly shape: import('.').ImagePreviewShape;
79
84
  readonly modelValue: boolean;
80
85
  readonly infinite: boolean;
81
86
  readonly urlList: string[];
@@ -127,6 +132,10 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
127
132
  readonly type: StringConstructor;
128
133
  readonly default: "";
129
134
  };
135
+ readonly shape: {
136
+ readonly type: import('vue').PropType<import('.').ImagePreviewShape>;
137
+ readonly default: "clip";
138
+ };
130
139
  readonly download: {
131
140
  readonly type: BooleanConstructor;
132
141
  readonly default: false;
@@ -153,6 +162,7 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
153
162
  readonly stackPriority: number;
154
163
  readonly type: "error" | "primary" | "success" | "warning" | "info" | "default";
155
164
  readonly color: string;
165
+ readonly shape: import('.').ImagePreviewShape;
156
166
  readonly modelValue: boolean;
157
167
  readonly infinite: boolean;
158
168
  readonly urlList: string[];
@@ -201,6 +211,10 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
201
211
  readonly type: StringConstructor;
202
212
  readonly default: "";
203
213
  };
214
+ readonly shape: {
215
+ readonly type: import('vue').PropType<import('.').ImagePreviewShape>;
216
+ readonly default: "clip";
217
+ };
204
218
  readonly download: {
205
219
  readonly type: BooleanConstructor;
206
220
  readonly default: false;
@@ -231,6 +245,7 @@ export declare const CpImagePreview: import('../utils').SFCWithInstall<{
231
245
  readonly stackPriority: number;
232
246
  readonly type: "error" | "primary" | "success" | "warning" | "info" | "default";
233
247
  readonly color: string;
248
+ readonly shape: import('.').ImagePreviewShape;
234
249
  readonly modelValue: boolean;
235
250
  readonly infinite: boolean;
236
251
  readonly urlList: string[];
@@ -6,6 +6,13 @@ export interface ImagePreviewPayload {
6
6
  }
7
7
  export type ImagePreviewClosePayload = ImagePreviewPayload;
8
8
  export type ImagePreviewSwitchPayload = ImagePreviewPayload;
9
+ /**
10
+ * ImagePreview 工具栏形状
11
+ * - `clip` - 机甲切角(默认)
12
+ * - `no-clip` - 标准直角
13
+ * - `round` - 圆角
14
+ */
15
+ export type ImagePreviewShape = 'clip' | 'no-clip' | 'round';
9
16
  export interface ImagePreviewToolbarSlotProps {
10
17
  scale: number;
11
18
  rotate: number;
@@ -150,6 +157,14 @@ export declare const imagePreviewProps: {
150
157
  readonly type: StringConstructor;
151
158
  readonly default: "";
152
159
  };
160
+ /**
161
+ * 预览工具栏形状
162
+ * @default 'clip'
163
+ */
164
+ readonly shape: {
165
+ readonly type: PropType<ImagePreviewShape>;
166
+ readonly default: "clip";
167
+ };
153
168
  /**
154
169
  * 是否允许下载图片,开启后工具栏会显示下载按钮
155
170
  * @default false
@@ -61,6 +61,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
61
61
  readonly type: StringConstructor;
62
62
  readonly default: "";
63
63
  };
64
+ readonly shape: {
65
+ readonly type: import('vue').PropType<import('./image-preview').ImagePreviewShape>;
66
+ readonly default: "clip";
67
+ };
64
68
  readonly download: {
65
69
  readonly type: BooleanConstructor;
66
70
  readonly default: false;
@@ -127,6 +131,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
127
131
  readonly type: StringConstructor;
128
132
  readonly default: "";
129
133
  };
134
+ readonly shape: {
135
+ readonly type: import('vue').PropType<import('./image-preview').ImagePreviewShape>;
136
+ readonly default: "clip";
137
+ };
130
138
  readonly download: {
131
139
  readonly type: BooleanConstructor;
132
140
  readonly default: false;
@@ -144,6 +152,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
144
152
  readonly stackPriority: number;
145
153
  readonly type: "error" | "primary" | "success" | "warning" | "info" | "default";
146
154
  readonly color: string;
155
+ readonly shape: import('./image-preview').ImagePreviewShape;
147
156
  readonly modelValue: boolean;
148
157
  readonly infinite: boolean;
149
158
  readonly urlList: string[];