@cyberpunk-vue/components 1.14.3 → 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.
- package/dist/image-preview/index.d.ts +15 -0
- package/dist/image-preview/src/image-preview.d.ts +15 -0
- package/dist/image-preview/src/image-preview.vue.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1693 -1645
- package/dist/text/index.d.ts +15 -0
- package/dist/text/src/text.d.ts +18 -0
- package/dist/text/src/text.vue.d.ts +9 -0
- package/package.json +4 -4
package/dist/text/index.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
41
41
|
readonly type: BooleanConstructor;
|
|
42
42
|
readonly default: false;
|
|
43
43
|
};
|
|
44
|
+
readonly ellipsisPosition: {
|
|
45
|
+
readonly type: import('vue').PropType<import('.').TextEllipsisPosition>;
|
|
46
|
+
readonly default: "end";
|
|
47
|
+
};
|
|
44
48
|
readonly lineClamp: {
|
|
45
49
|
readonly type: import('vue').PropType<number | string>;
|
|
46
50
|
readonly default: undefined;
|
|
@@ -143,6 +147,7 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
143
147
|
readonly lineClamp: string | number;
|
|
144
148
|
readonly level: import('.').TextLevel;
|
|
145
149
|
readonly align: import('.').TextAlign;
|
|
150
|
+
readonly ellipsisPosition: import('.').TextEllipsisPosition;
|
|
146
151
|
readonly contentClass: import('.').TextContentClassValue;
|
|
147
152
|
readonly contentStyle: import('vue').StyleValue;
|
|
148
153
|
readonly boxed: boolean;
|
|
@@ -195,6 +200,10 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
195
200
|
readonly type: BooleanConstructor;
|
|
196
201
|
readonly default: false;
|
|
197
202
|
};
|
|
203
|
+
readonly ellipsisPosition: {
|
|
204
|
+
readonly type: import('vue').PropType<import('.').TextEllipsisPosition>;
|
|
205
|
+
readonly default: "end";
|
|
206
|
+
};
|
|
198
207
|
readonly lineClamp: {
|
|
199
208
|
readonly type: import('vue').PropType<number | string>;
|
|
200
209
|
readonly default: undefined;
|
|
@@ -297,6 +306,7 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
297
306
|
readonly lineClamp: string | number;
|
|
298
307
|
readonly level: import('.').TextLevel;
|
|
299
308
|
readonly align: import('.').TextAlign;
|
|
309
|
+
readonly ellipsisPosition: import('.').TextEllipsisPosition;
|
|
300
310
|
readonly contentClass: import('.').TextContentClassValue;
|
|
301
311
|
readonly contentStyle: import('vue').StyleValue;
|
|
302
312
|
readonly boxed: boolean;
|
|
@@ -346,6 +356,10 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
346
356
|
readonly type: BooleanConstructor;
|
|
347
357
|
readonly default: false;
|
|
348
358
|
};
|
|
359
|
+
readonly ellipsisPosition: {
|
|
360
|
+
readonly type: import('vue').PropType<import('.').TextEllipsisPosition>;
|
|
361
|
+
readonly default: "end";
|
|
362
|
+
};
|
|
349
363
|
readonly lineClamp: {
|
|
350
364
|
readonly type: import('vue').PropType<number | string>;
|
|
351
365
|
readonly default: undefined;
|
|
@@ -448,6 +462,7 @@ export declare const CpText: import('../utils').SFCWithInstall<{
|
|
|
448
462
|
readonly lineClamp: string | number;
|
|
449
463
|
readonly level: import('.').TextLevel;
|
|
450
464
|
readonly align: import('.').TextAlign;
|
|
465
|
+
readonly ellipsisPosition: import('.').TextEllipsisPosition;
|
|
451
466
|
readonly contentClass: import('.').TextContentClassValue;
|
|
452
467
|
readonly contentStyle: import('vue').StyleValue;
|
|
453
468
|
readonly boxed: boolean;
|
package/dist/text/src/text.d.ts
CHANGED
|
@@ -35,6 +35,13 @@ export type TextLevel = 'heading' | 'subheading' | 'body' | 'secondary' | 'capti
|
|
|
35
35
|
* - `bottom` - 底部对齐
|
|
36
36
|
*/
|
|
37
37
|
export type TextAlign = 'top' | 'middle' | 'bottom';
|
|
38
|
+
/**
|
|
39
|
+
* 单行省略位置
|
|
40
|
+
* - `end` - 末尾省略,默认行为
|
|
41
|
+
* - `start` - 开头省略,保留末尾内容
|
|
42
|
+
* - `middle` - 中间省略,保留开头和末尾内容
|
|
43
|
+
*/
|
|
44
|
+
export type TextEllipsisPosition = 'start' | 'middle' | 'end';
|
|
38
45
|
/**
|
|
39
46
|
* 渲染标签
|
|
40
47
|
*/
|
|
@@ -135,6 +142,17 @@ export declare const textProps: {
|
|
|
135
142
|
readonly type: BooleanConstructor;
|
|
136
143
|
readonly default: false;
|
|
137
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* 单行省略位置
|
|
147
|
+
* 仅在 ellipsis 开启且未设置 lineClamp 时生效;middle 会对默认插槽中的纯文本进行中间分段显示
|
|
148
|
+
* @default 'end'
|
|
149
|
+
* @example `<CpText ellipsis ellipsis-position="start">很长的文字</CpText>`
|
|
150
|
+
* @example `<CpText ellipsis ellipsis-position="middle">很长的文件名或路径</CpText>`
|
|
151
|
+
*/
|
|
152
|
+
readonly ellipsisPosition: {
|
|
153
|
+
readonly type: PropType<TextEllipsisPosition>;
|
|
154
|
+
readonly default: "end";
|
|
155
|
+
};
|
|
138
156
|
/**
|
|
139
157
|
* 多行省略行数
|
|
140
158
|
* 传入数字或数字字符串后,文字本体会在指定行数后裁剪;优先级高于 ellipsis
|
|
@@ -39,6 +39,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
39
39
|
readonly type: BooleanConstructor;
|
|
40
40
|
readonly default: false;
|
|
41
41
|
};
|
|
42
|
+
readonly ellipsisPosition: {
|
|
43
|
+
readonly type: import('vue').PropType<import('./text').TextEllipsisPosition>;
|
|
44
|
+
readonly default: "end";
|
|
45
|
+
};
|
|
42
46
|
readonly lineClamp: {
|
|
43
47
|
readonly type: import('vue').PropType<number | string>;
|
|
44
48
|
readonly default: undefined;
|
|
@@ -156,6 +160,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
156
160
|
readonly type: BooleanConstructor;
|
|
157
161
|
readonly default: false;
|
|
158
162
|
};
|
|
163
|
+
readonly ellipsisPosition: {
|
|
164
|
+
readonly type: import('vue').PropType<import('./text').TextEllipsisPosition>;
|
|
165
|
+
readonly default: "end";
|
|
166
|
+
};
|
|
159
167
|
readonly lineClamp: {
|
|
160
168
|
readonly type: import('vue').PropType<number | string>;
|
|
161
169
|
readonly default: undefined;
|
|
@@ -258,6 +266,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
258
266
|
readonly lineClamp: string | number;
|
|
259
267
|
readonly level: import('./text').TextLevel;
|
|
260
268
|
readonly align: import('./text').TextAlign;
|
|
269
|
+
readonly ellipsisPosition: import('./text').TextEllipsisPosition;
|
|
261
270
|
readonly contentClass: import('./text').TextContentClassValue;
|
|
262
271
|
readonly contentStyle: StyleValue;
|
|
263
272
|
readonly boxed: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@floating-ui/dom": "^1.7.6",
|
|
27
27
|
"dayjs": "^1.11.20",
|
|
28
|
-
"@cyberpunk-vue/
|
|
29
|
-
"@cyberpunk-vue/
|
|
30
|
-
"@cyberpunk-vue/theme-chalk": "1.14.
|
|
28
|
+
"@cyberpunk-vue/hooks": "1.14.5",
|
|
29
|
+
"@cyberpunk-vue/constants": "1.14.5",
|
|
30
|
+
"@cyberpunk-vue/theme-chalk": "1.14.5"
|
|
31
31
|
},
|
|
32
32
|
"author": "Juxest",
|
|
33
33
|
"license": "MIT",
|