@cyberpunk-vue/components 1.9.10 → 1.9.12
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/card/index.d.ts +79 -7
- package/dist/card/index.d.ts.map +1 -1
- package/dist/card/src/card.d.ts +43 -2
- package/dist/card/src/card.d.ts.map +1 -1
- package/dist/card/src/card.vue.d.ts +50 -6
- package/dist/card/src/card.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +9376 -13707
- package/dist/loading/src/loading.vue.d.ts.map +1 -1
- package/dist/segmented/src/segmented.vue.d.ts.map +1 -1
- package/dist/sub-menu/src/sub-menu.vue.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/card/index.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
117
117
|
};
|
|
118
118
|
readonly collapse: {
|
|
119
119
|
readonly type: BooleanConstructor;
|
|
120
|
-
readonly default:
|
|
120
|
+
readonly default: undefined;
|
|
121
121
|
};
|
|
122
122
|
readonly halfCollapse: {
|
|
123
123
|
readonly type: BooleanConstructor;
|
|
@@ -127,6 +127,18 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
127
127
|
readonly type: import('vue').PropType<number | string>;
|
|
128
128
|
readonly default: 80;
|
|
129
129
|
};
|
|
130
|
+
readonly showCollapseAction: {
|
|
131
|
+
readonly type: BooleanConstructor;
|
|
132
|
+
readonly default: false;
|
|
133
|
+
};
|
|
134
|
+
readonly collapseActionExpandText: {
|
|
135
|
+
readonly type: StringConstructor;
|
|
136
|
+
readonly default: "查看更多";
|
|
137
|
+
};
|
|
138
|
+
readonly collapseActionCollapseText: {
|
|
139
|
+
readonly type: StringConstructor;
|
|
140
|
+
readonly default: "收起";
|
|
141
|
+
};
|
|
130
142
|
readonly borderColor: StringConstructor;
|
|
131
143
|
readonly dividerColor: StringConstructor;
|
|
132
144
|
readonly headerDividerColor: StringConstructor;
|
|
@@ -151,7 +163,15 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
151
163
|
readonly type: BooleanConstructor;
|
|
152
164
|
readonly default: false;
|
|
153
165
|
};
|
|
154
|
-
}>> & Readonly<{
|
|
166
|
+
}>> & Readonly<{
|
|
167
|
+
"onCollapse-change"?: ((payload: {
|
|
168
|
+
needed: boolean;
|
|
169
|
+
}) => any) | undefined;
|
|
170
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
171
|
+
"collapse-change": (payload: {
|
|
172
|
+
needed: boolean;
|
|
173
|
+
}) => void;
|
|
174
|
+
}, import('vue').PublicProps, {
|
|
155
175
|
readonly type: import('.').CardType;
|
|
156
176
|
readonly color: string;
|
|
157
177
|
readonly variant: import('.').CardVariant;
|
|
@@ -180,8 +200,13 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
180
200
|
readonly hoverScale: boolean;
|
|
181
201
|
readonly halfCollapse: boolean;
|
|
182
202
|
readonly peekHeight: string | number;
|
|
203
|
+
readonly showCollapseAction: boolean;
|
|
204
|
+
readonly collapseActionExpandText: string;
|
|
205
|
+
readonly collapseActionCollapseText: string;
|
|
183
206
|
readonly loadingText: string;
|
|
184
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
207
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
208
|
+
collapseInnerRef: HTMLDivElement;
|
|
209
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
185
210
|
P: {};
|
|
186
211
|
B: {};
|
|
187
212
|
D: {};
|
|
@@ -284,7 +309,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
284
309
|
};
|
|
285
310
|
readonly collapse: {
|
|
286
311
|
readonly type: BooleanConstructor;
|
|
287
|
-
readonly default:
|
|
312
|
+
readonly default: undefined;
|
|
288
313
|
};
|
|
289
314
|
readonly halfCollapse: {
|
|
290
315
|
readonly type: BooleanConstructor;
|
|
@@ -294,6 +319,18 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
294
319
|
readonly type: import('vue').PropType<number | string>;
|
|
295
320
|
readonly default: 80;
|
|
296
321
|
};
|
|
322
|
+
readonly showCollapseAction: {
|
|
323
|
+
readonly type: BooleanConstructor;
|
|
324
|
+
readonly default: false;
|
|
325
|
+
};
|
|
326
|
+
readonly collapseActionExpandText: {
|
|
327
|
+
readonly type: StringConstructor;
|
|
328
|
+
readonly default: "查看更多";
|
|
329
|
+
};
|
|
330
|
+
readonly collapseActionCollapseText: {
|
|
331
|
+
readonly type: StringConstructor;
|
|
332
|
+
readonly default: "收起";
|
|
333
|
+
};
|
|
297
334
|
readonly borderColor: StringConstructor;
|
|
298
335
|
readonly dividerColor: StringConstructor;
|
|
299
336
|
readonly headerDividerColor: StringConstructor;
|
|
@@ -318,7 +355,11 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
318
355
|
readonly type: BooleanConstructor;
|
|
319
356
|
readonly default: false;
|
|
320
357
|
};
|
|
321
|
-
}>> & Readonly<{
|
|
358
|
+
}>> & Readonly<{
|
|
359
|
+
"onCollapse-change"?: ((payload: {
|
|
360
|
+
needed: boolean;
|
|
361
|
+
}) => any) | undefined;
|
|
362
|
+
}>, {}, {}, {}, {}, {
|
|
322
363
|
readonly type: import('.').CardType;
|
|
323
364
|
readonly color: string;
|
|
324
365
|
readonly variant: import('.').CardVariant;
|
|
@@ -347,6 +388,9 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
347
388
|
readonly hoverScale: boolean;
|
|
348
389
|
readonly halfCollapse: boolean;
|
|
349
390
|
readonly peekHeight: string | number;
|
|
391
|
+
readonly showCollapseAction: boolean;
|
|
392
|
+
readonly collapseActionExpandText: string;
|
|
393
|
+
readonly collapseActionCollapseText: string;
|
|
350
394
|
readonly loadingText: string;
|
|
351
395
|
}>;
|
|
352
396
|
__isFragment?: never;
|
|
@@ -448,7 +492,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
448
492
|
};
|
|
449
493
|
readonly collapse: {
|
|
450
494
|
readonly type: BooleanConstructor;
|
|
451
|
-
readonly default:
|
|
495
|
+
readonly default: undefined;
|
|
452
496
|
};
|
|
453
497
|
readonly halfCollapse: {
|
|
454
498
|
readonly type: BooleanConstructor;
|
|
@@ -458,6 +502,18 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
458
502
|
readonly type: import('vue').PropType<number | string>;
|
|
459
503
|
readonly default: 80;
|
|
460
504
|
};
|
|
505
|
+
readonly showCollapseAction: {
|
|
506
|
+
readonly type: BooleanConstructor;
|
|
507
|
+
readonly default: false;
|
|
508
|
+
};
|
|
509
|
+
readonly collapseActionExpandText: {
|
|
510
|
+
readonly type: StringConstructor;
|
|
511
|
+
readonly default: "查看更多";
|
|
512
|
+
};
|
|
513
|
+
readonly collapseActionCollapseText: {
|
|
514
|
+
readonly type: StringConstructor;
|
|
515
|
+
readonly default: "收起";
|
|
516
|
+
};
|
|
461
517
|
readonly borderColor: StringConstructor;
|
|
462
518
|
readonly dividerColor: StringConstructor;
|
|
463
519
|
readonly headerDividerColor: StringConstructor;
|
|
@@ -482,7 +538,15 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
482
538
|
readonly type: BooleanConstructor;
|
|
483
539
|
readonly default: false;
|
|
484
540
|
};
|
|
485
|
-
}>> & Readonly<{
|
|
541
|
+
}>> & Readonly<{
|
|
542
|
+
"onCollapse-change"?: ((payload: {
|
|
543
|
+
needed: boolean;
|
|
544
|
+
}) => any) | undefined;
|
|
545
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
546
|
+
"collapse-change": (payload: {
|
|
547
|
+
needed: boolean;
|
|
548
|
+
}) => void;
|
|
549
|
+
}, string, {
|
|
486
550
|
readonly type: import('.').CardType;
|
|
487
551
|
readonly color: string;
|
|
488
552
|
readonly variant: import('.').CardVariant;
|
|
@@ -511,6 +575,9 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
511
575
|
readonly hoverScale: boolean;
|
|
512
576
|
readonly halfCollapse: boolean;
|
|
513
577
|
readonly peekHeight: string | number;
|
|
578
|
+
readonly showCollapseAction: boolean;
|
|
579
|
+
readonly collapseActionExpandText: string;
|
|
580
|
+
readonly collapseActionCollapseText: string;
|
|
514
581
|
readonly loadingText: string;
|
|
515
582
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
516
583
|
$slots: {
|
|
@@ -520,6 +587,11 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
|
|
|
520
587
|
extra?(_: {}): any;
|
|
521
588
|
default?(_: {}): any;
|
|
522
589
|
footer?(_: {}): any;
|
|
590
|
+
'collapse-action'?(_: {
|
|
591
|
+
collapsed: boolean;
|
|
592
|
+
needed: boolean;
|
|
593
|
+
toggle: () => void;
|
|
594
|
+
}): any;
|
|
523
595
|
overlay?(_: {}): any;
|
|
524
596
|
loading?(_: {}): any;
|
|
525
597
|
};
|
package/dist/card/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../card/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../card/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAA;AACvC,eAAe,MAAM,CAAA;AAErB,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/card/src/card.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export type CardCustomClass = string | Record<string, boolean> | Array<string |
|
|
|
95
95
|
* - `cover` - 卡片封面区域(位于头部前)
|
|
96
96
|
* - `overlay` - 卡片悬停操作层
|
|
97
97
|
* - `loading` - 自定义加载中内容
|
|
98
|
+
* - `collapse-action` - 自定义折叠控制器内容,作用域:`{ collapsed: boolean, needed: boolean, toggle: () => void }`
|
|
98
99
|
* @category 展示组件
|
|
99
100
|
* @displayName CpCard 卡片
|
|
100
101
|
*/
|
|
@@ -306,11 +307,12 @@ export declare const cardProps: {
|
|
|
306
307
|
};
|
|
307
308
|
/**
|
|
308
309
|
* 是否折叠卡片(仅显示头部)
|
|
309
|
-
*
|
|
310
|
+
* 不传时若 showCollapseAction 开启则由组件内部自治
|
|
311
|
+
* @default undefined
|
|
310
312
|
*/
|
|
311
313
|
readonly collapse: {
|
|
312
314
|
readonly type: BooleanConstructor;
|
|
313
|
-
readonly default:
|
|
315
|
+
readonly default: undefined;
|
|
314
316
|
};
|
|
315
317
|
/**
|
|
316
318
|
* 半折叠模式 — 仅在 collapse=true 时生效
|
|
@@ -331,6 +333,33 @@ export declare const cardProps: {
|
|
|
331
333
|
readonly type: PropType<number | string>;
|
|
332
334
|
readonly default: 80;
|
|
333
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* 是否显示内置折叠控制器("查看更多" / "收起")
|
|
338
|
+
* 开启后组件在半折叠 body 底部渲染操作条,点击自动切换展开/半折叠。
|
|
339
|
+
* 仅在 halfCollapse=true 时生效。
|
|
340
|
+
* 当内容不足 peekHeight 时控制器自动隐藏。
|
|
341
|
+
* @default false
|
|
342
|
+
*/
|
|
343
|
+
readonly showCollapseAction: {
|
|
344
|
+
readonly type: BooleanConstructor;
|
|
345
|
+
readonly default: false;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* 内置控制器展开文案
|
|
349
|
+
* @default '查看更多'
|
|
350
|
+
*/
|
|
351
|
+
readonly collapseActionExpandText: {
|
|
352
|
+
readonly type: StringConstructor;
|
|
353
|
+
readonly default: "查看更多";
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* 内置控制器收起文案
|
|
357
|
+
* @default '收起'
|
|
358
|
+
*/
|
|
359
|
+
readonly collapseActionCollapseText: {
|
|
360
|
+
readonly type: StringConstructor;
|
|
361
|
+
readonly default: "收起";
|
|
362
|
+
};
|
|
334
363
|
/**
|
|
335
364
|
* 自定义边框颜色
|
|
336
365
|
*/
|
|
@@ -407,4 +436,16 @@ export declare const cardProps: {
|
|
|
407
436
|
};
|
|
408
437
|
};
|
|
409
438
|
export type CardProps = ExtractPropTypes<typeof cardProps>;
|
|
439
|
+
/**
|
|
440
|
+
* CpCard 组件事件定义
|
|
441
|
+
*/
|
|
442
|
+
export declare const cardEmits: {
|
|
443
|
+
/**
|
|
444
|
+
* 半折叠模式下,内容高度变化时触发
|
|
445
|
+
* @param payload.needed - true: 内容超出 peekHeight,需要折叠;false: 内容不足,不需要折叠
|
|
446
|
+
*/
|
|
447
|
+
'collapse-change': (payload: {
|
|
448
|
+
needed: boolean;
|
|
449
|
+
}) => boolean;
|
|
450
|
+
};
|
|
410
451
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../card/src/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;AAErD;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEnF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpD;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9G;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAA;AAExE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AACvF,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,OAA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BACkC,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC;IACrE;;OAEG;0BACqC,QAAQ,CAAC,eAAe,CAAC;IACjE;;OAEG;0BAC8B,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC;IACjE;;OAEG;wBACmC,QAAQ,CAAC,eAAe,CAAC;IAC/D;;OAEG;wBAC4B,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC;IAC/D;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;2BACsC,QAAQ,CAAC,eAAe,CAAC;IAClE;;OAEG;2BAC+B,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC;IAClE;;;;OAIG;;;;;CAKK,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,SAAS,CAAC,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS;IACpB;;;OAGG;iCAC0B;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE;CACjD,CAAA"}
|
|
@@ -7,10 +7,17 @@ declare function __VLS_template(): {
|
|
|
7
7
|
extra?(_: {}): any;
|
|
8
8
|
default?(_: {}): any;
|
|
9
9
|
footer?(_: {}): any;
|
|
10
|
+
'collapse-action'?(_: {
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
needed: boolean;
|
|
13
|
+
toggle: () => void;
|
|
14
|
+
}): any;
|
|
10
15
|
overlay?(_: {}): any;
|
|
11
16
|
loading?(_: {}): any;
|
|
12
17
|
};
|
|
13
|
-
refs: {
|
|
18
|
+
refs: {
|
|
19
|
+
collapseInnerRef: HTMLDivElement;
|
|
20
|
+
};
|
|
14
21
|
rootEl: HTMLDivElement;
|
|
15
22
|
};
|
|
16
23
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -110,7 +117,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
110
117
|
};
|
|
111
118
|
readonly collapse: {
|
|
112
119
|
readonly type: BooleanConstructor;
|
|
113
|
-
readonly default:
|
|
120
|
+
readonly default: undefined;
|
|
114
121
|
};
|
|
115
122
|
readonly halfCollapse: {
|
|
116
123
|
readonly type: BooleanConstructor;
|
|
@@ -120,6 +127,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
120
127
|
readonly type: import('vue').PropType<number | string>;
|
|
121
128
|
readonly default: 80;
|
|
122
129
|
};
|
|
130
|
+
readonly showCollapseAction: {
|
|
131
|
+
readonly type: BooleanConstructor;
|
|
132
|
+
readonly default: false;
|
|
133
|
+
};
|
|
134
|
+
readonly collapseActionExpandText: {
|
|
135
|
+
readonly type: StringConstructor;
|
|
136
|
+
readonly default: "查看更多";
|
|
137
|
+
};
|
|
138
|
+
readonly collapseActionCollapseText: {
|
|
139
|
+
readonly type: StringConstructor;
|
|
140
|
+
readonly default: "收起";
|
|
141
|
+
};
|
|
123
142
|
readonly borderColor: StringConstructor;
|
|
124
143
|
readonly dividerColor: StringConstructor;
|
|
125
144
|
readonly headerDividerColor: StringConstructor;
|
|
@@ -144,7 +163,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
144
163
|
readonly type: BooleanConstructor;
|
|
145
164
|
readonly default: false;
|
|
146
165
|
};
|
|
147
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
166
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
167
|
+
"collapse-change": (payload: {
|
|
168
|
+
needed: boolean;
|
|
169
|
+
}) => void;
|
|
170
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
148
171
|
readonly title: {
|
|
149
172
|
readonly type: StringConstructor;
|
|
150
173
|
readonly default: "";
|
|
@@ -240,7 +263,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
240
263
|
};
|
|
241
264
|
readonly collapse: {
|
|
242
265
|
readonly type: BooleanConstructor;
|
|
243
|
-
readonly default:
|
|
266
|
+
readonly default: undefined;
|
|
244
267
|
};
|
|
245
268
|
readonly halfCollapse: {
|
|
246
269
|
readonly type: BooleanConstructor;
|
|
@@ -250,6 +273,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
250
273
|
readonly type: import('vue').PropType<number | string>;
|
|
251
274
|
readonly default: 80;
|
|
252
275
|
};
|
|
276
|
+
readonly showCollapseAction: {
|
|
277
|
+
readonly type: BooleanConstructor;
|
|
278
|
+
readonly default: false;
|
|
279
|
+
};
|
|
280
|
+
readonly collapseActionExpandText: {
|
|
281
|
+
readonly type: StringConstructor;
|
|
282
|
+
readonly default: "查看更多";
|
|
283
|
+
};
|
|
284
|
+
readonly collapseActionCollapseText: {
|
|
285
|
+
readonly type: StringConstructor;
|
|
286
|
+
readonly default: "收起";
|
|
287
|
+
};
|
|
253
288
|
readonly borderColor: StringConstructor;
|
|
254
289
|
readonly dividerColor: StringConstructor;
|
|
255
290
|
readonly headerDividerColor: StringConstructor;
|
|
@@ -274,7 +309,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
274
309
|
readonly type: BooleanConstructor;
|
|
275
310
|
readonly default: false;
|
|
276
311
|
};
|
|
277
|
-
}>> & Readonly<{
|
|
312
|
+
}>> & Readonly<{
|
|
313
|
+
"onCollapse-change"?: ((payload: {
|
|
314
|
+
needed: boolean;
|
|
315
|
+
}) => any) | undefined;
|
|
316
|
+
}>, {
|
|
278
317
|
readonly type: import('./card').CardType;
|
|
279
318
|
readonly color: string;
|
|
280
319
|
readonly variant: import('./card').CardVariant;
|
|
@@ -303,8 +342,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
303
342
|
readonly hoverScale: boolean;
|
|
304
343
|
readonly halfCollapse: boolean;
|
|
305
344
|
readonly peekHeight: string | number;
|
|
345
|
+
readonly showCollapseAction: boolean;
|
|
346
|
+
readonly collapseActionExpandText: string;
|
|
347
|
+
readonly collapseActionCollapseText: string;
|
|
306
348
|
readonly loadingText: string;
|
|
307
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
349
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
350
|
+
collapseInnerRef: HTMLDivElement;
|
|
351
|
+
}, HTMLDivElement>;
|
|
308
352
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
309
353
|
export default _default;
|
|
310
354
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.vue.d.ts","sourceRoot":"","sources":["../../../card/src/card.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.vue.d.ts","sourceRoot":"","sources":["../../../card/src/card.vue"],"names":[],"mappings":"AAuqBA,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;uBAnBvB,GAAG;wBACF,GAAG;uBACJ,GAAG;uBACH,GAAG;yBACD,GAAG;wBACJ,GAAG;;;;;YACQ,GAAG;yBACb,GAAG;yBACF,GAAG;;;;;;EAgBhC;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASnB,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"}
|