@antdv-next1/pro-card 2.0.8 → 2.0.11

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.d.ts ADDED
@@ -0,0 +1,54 @@
1
+ import { CollapsibleType } from "./typing.js";
2
+ import { ProCardProps } from "./ProCard.js";
3
+ import * as _$vue from "vue";
4
+ import { CSSProperties, VNode } from "vue";
5
+ import { VueNode } from "@antdv-next1/pro-utils";
6
+ import * as _$antdv_next0 from "antdv-next";
7
+ import { ColProps } from "antdv-next";
8
+ import * as _$antdv_next_dist_form_FormItemLabel0 from "antdv-next/dist/form/FormItemLabel";
9
+ import { CustomSlotsType } from "@v-c/util/dist/type";
10
+ import { Gutter } from "antdv-next/dist/grid/row";
11
+
12
+ //#region src/Card.d.ts
13
+ declare const InternalProCard: _$vue.DefineSetupFnComponent<ProCardProps, {}, CustomSlotsType<{
14
+ default?: () => VNode[];
15
+ extra?: () => VueNode;
16
+ title?: () => VueNode;
17
+ }>, _$antdv_next0.CardProps & _$antdv_next0.RowProps & {
18
+ tooltip?: _$antdv_next_dist_form_FormItemLabel0.FormItemTooltipType;
19
+ split?: "vertical" | "horizontal";
20
+ direction?: "column" | "row";
21
+ gutter?: Gutter | [Gutter, Gutter];
22
+ colStyle?: CSSProperties;
23
+ borderBeam?: _$antdv_next0.BorderBeamProps | boolean;
24
+ layout?: "default" | "center";
25
+ boxShadow?: boolean;
26
+ disabled?: boolean;
27
+ headerBordered?: boolean;
28
+ ghost?: boolean;
29
+ collapsible?: CollapsibleType;
30
+ collapsibleIconRender?: ({
31
+ collapsed
32
+ }: {
33
+ collapsed: boolean;
34
+ }) => VueNode;
35
+ defaultCollapsed?: boolean;
36
+ onCollapse?: (collapsed: boolean) => void;
37
+ checked?: boolean;
38
+ onChecked?: (e: MouseEvent) => void;
39
+ colSpan?: ColProps["span"];
40
+ colOffset?: ColProps["offset"];
41
+ colFlex?: ColProps["flex"];
42
+ colOrder?: ColProps["order"];
43
+ colPull?: ColProps["pull"];
44
+ colPush?: ColProps["push"];
45
+ colXs?: ColProps["xs"];
46
+ colSm?: ColProps["sm"];
47
+ colMd?: ColProps["md"];
48
+ colLg?: ColProps["lg"];
49
+ colXl?: ColProps["xl"];
50
+ colXxl?: ColProps["xxl"];
51
+ onClick?: (e: MouseEvent) => void;
52
+ } & {}, _$vue.PublicProps>;
53
+ //#endregion
54
+ export { InternalProCard as default };
package/dist/Card.js ADDED
@@ -0,0 +1,474 @@
1
+ import useStyle from "./style/index.js";
2
+ import { Fragment, cloneVNode, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
3
+ import { LabelIconTip, childrenToArray, isSpecialNode } from "@antdv-next1/pro-utils";
4
+ import { classNames } from "@v-c/util";
5
+ import { BorderBeam, Card, Col, Collapse, Row, useBreakpoint } from "antdv-next";
6
+ import { responsiveArray } from "antdv-next/dist/_util/responsiveObserver";
7
+ import { useConfig } from "antdv-next/dist/config-provider/context";
8
+ //#region src/Card.tsx
9
+ function _isSlot(s) {
10
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
11
+ }
12
+ const breakpointKeyList = [
13
+ "span",
14
+ "flex",
15
+ "offset",
16
+ "order",
17
+ "pull",
18
+ "push",
19
+ "xs",
20
+ "sm",
21
+ "md",
22
+ "lg",
23
+ "xl",
24
+ "xxl"
25
+ ];
26
+ const InternalProCard = /* @__PURE__ */ defineComponent((props, { slots, expose, attrs }) => {
27
+ const config = useConfig();
28
+ const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
29
+ const baseClassName = computed(() => `${prefixCls.value}-card`);
30
+ const { wrapSSR, hashId } = useStyle(baseClassName);
31
+ const screens = useBreakpoint();
32
+ const collapsed = shallowRef(props.defaultCollapsed || false);
33
+ /**
34
+ * 根据响应式获取 gutter, 参考 antd 实现
35
+ * @param gut
36
+ */
37
+ const getNormalizedGutter = (gut) => {
38
+ const results = [0, 0];
39
+ (Array.isArray(gut) ? gut : [gut, 0]).forEach((g, index) => {
40
+ if (typeof g === "object") for (let i = 0; i < responsiveArray.length; i += 1) {
41
+ const breakpoint = responsiveArray[i];
42
+ if (screens.value?.[breakpoint] && g[breakpoint] !== void 0) {
43
+ results[index] = g[breakpoint];
44
+ break;
45
+ }
46
+ }
47
+ else results[index] = g || 0;
48
+ });
49
+ return results;
50
+ };
51
+ /**
52
+ * 根据条件返回 style 负责返回空对象
53
+ *
54
+ * @param withStyle 是否符合条件
55
+ * @param appendStyle 如果符合条件要返回的 style.ts 属性
56
+ */
57
+ const getStyle = (withStyle, appendStyle) => {
58
+ return withStyle ? appendStyle : {};
59
+ };
60
+ let containProCard = false;
61
+ expose({});
62
+ return () => {
63
+ const { ghost = false, direction, boxShadow, colSpan, split, align, borderBeam, colStyle, headerBordered = false, collapsible = false, collapsibleIconRender, defaultCollapsed = false, onChecked, checked, onCollapse, justify, colLg, colFlex, colMd, colXl, colXxl, colSm, colPush, colPull, colOrder, colOffset, colXs, disabled, bordered, gutter = 0, onClick, title, type, tooltip, layout, wrap, ...rest } = props;
64
+ const hasBorderBeamDom = rest.variant !== "borderless" && borderBeam && !disabled;
65
+ const [horizontalGutter, verticalGutter] = getNormalizedGutter(gutter);
66
+ const { default: children, title: slotTitle, ...restSlots } = slots;
67
+ const childrenArray = childrenToArray(children?.());
68
+ const childrenDom = childrenArray.map((element, index) => {
69
+ if (isVNode(element) && !isSpecialNode(element) && element.props && element.type.isProCard) {
70
+ let _slot;
71
+ containProCard = true;
72
+ if (direction === "column" || split === "horizontal") {
73
+ const colPropsClass = Object.entries(element.props).reduce((prev, [key, value]) => {
74
+ const keys = key.split("-");
75
+ if (breakpointKeyList.includes(keys[keys.length - 1])) if (["span", "flex"].includes(keys[keys.length - 1])) prev[`${baseClassName.value}-${keys[keys.length - 2]}-${value}`] = true;
76
+ else prev[`${baseClassName.value}-${key}-${value}`] = true;
77
+ return prev;
78
+ }, {});
79
+ return createVNode("div", {
80
+ "style": {
81
+ ...getStyle(horizontalGutter > 0, {
82
+ paddingInlineEnd: `${horizontalGutter / 2}px`,
83
+ paddingInlineStart: `${horizontalGutter / 2}px`
84
+ }),
85
+ ...getStyle(verticalGutter > 0, {
86
+ paddingBlockStart: `${verticalGutter / 2}px`,
87
+ paddingBlockEnd: `${verticalGutter / 2}px`
88
+ }),
89
+ ...colStyle
90
+ },
91
+ "key": index,
92
+ "class": classNames([`${baseClassName.value}-col`], colPropsClass, hashId.value, {
93
+ [`${baseClassName.value}-split-horizontal`]: split === "horizontal" && index !== childrenArray.length - 1,
94
+ [`${baseClassName.value}-split-vertical`]: split === "vertical" && index !== childrenArray.length - 1
95
+ })
96
+ }, [cloneVNode(element, {
97
+ size: rest.size,
98
+ type,
99
+ ...element.props
100
+ })]);
101
+ }
102
+ const colProps = breakpointKeyList.reduce((prev, key) => {
103
+ if (element.props?.[`col-${key}`] !== void 0) {
104
+ const value = element.props?.[`col-${key}`];
105
+ prev[key] = !Number.isNaN(Number(value)) ? Number(value) : value;
106
+ }
107
+ return prev;
108
+ }, {});
109
+ return createVNode(Col, mergeProps(Object.keys(colProps).length ? colProps : wrap ? {} : { flex: 1 }, {
110
+ "style": { ...colStyle },
111
+ "class": classNames({ [`${baseClassName.value}-split-vertical`]: split === "vertical" && index !== childrenArray.length - 1 }, hashId.value),
112
+ "key": index
113
+ }), _isSlot(_slot = cloneVNode(element, {
114
+ size: rest.size,
115
+ type,
116
+ ...element.props
117
+ })) ? _slot : { default: () => [_slot] });
118
+ }
119
+ containProCard = false;
120
+ return element;
121
+ });
122
+ const collapseCardDom = createVNode(Collapse, mergeProps({
123
+ "bordered": rest.variant !== "borderless",
124
+ "size": rest.size === "small" ? "small" : "large",
125
+ "ghost": ghost
126
+ }, collapsibleIconRender ? { expandIcon: (panelProps) => collapsibleIconRender({ collapsed: panelProps.isActive || false }) } : {}, {
127
+ "collapsible": typeof collapsible !== "boolean" && collapsible !== "header" ? collapsible : void 0,
128
+ "defaultActiveKey": defaultCollapsed ? void 0 : ["collapseCard"],
129
+ "class": classNames(baseClassName.value, attrs.class, hashId.value, {
130
+ [`${baseClassName.value}-headerBordered`]: headerBordered,
131
+ [`${baseClassName.value}-type-inner`]: type === "inner",
132
+ [`${baseClassName.value}-ghost`]: ghost,
133
+ [`${baseClassName.value}-split`]: split,
134
+ [`${baseClassName.value}-split`]: collapsible,
135
+ [`${baseClassName.value}-disabled`]: disabled,
136
+ [`${baseClassName.value}-box-shadow`]: boxShadow,
137
+ [`${baseClassName.value}-contain-card`]: containProCard
138
+ }),
139
+ "style": attrs.style,
140
+ "classes": {
141
+ body: classNames({
142
+ [`${baseClassName.value}-body-direction-column`]: direction === "column",
143
+ [`${baseClassName.value}-body-layout-center`]: layout === "center"
144
+ }, hashId.value),
145
+ ...rest.classes
146
+ },
147
+ "styles": {
148
+ header: type !== "inner" && rest.size !== "small" ? { paddingBlockEnd: 0 } : {},
149
+ body: { ...containProCard && split && rest.size !== "small" ? { padding: 0 } : split !== void 0 && containProCard && rest.size !== "small" && type !== "inner" || !headerBordered && (slotTitle?.() || props.title) && rest.size !== "small" && split !== void 0 && type !== "inner" ? { paddingBlockStart: 0 } : {} },
150
+ ...rest.styles
151
+ },
152
+ "activeKey": collapsed.value ? void 0 : ["collapseCard"],
153
+ "items": [{
154
+ key: "collapseCard",
155
+ label: createVNode(LabelIconTip, {
156
+ "label": slotTitle?.() || props.title,
157
+ "tooltip": props.tooltip
158
+ }, null),
159
+ content: containProCard ? direction !== "column" && split !== "horizontal" ? createVNode(Row, { "gutter": gutter }, _isSlot(childrenDom) ? childrenDom : { default: () => [childrenDom] }) : createVNode("div", {
160
+ "class": classNames(`${baseClassName.value}-col`, hashId.value, {}),
161
+ "style": {
162
+ ...getStyle(horizontalGutter > 0, {
163
+ marginInlineEnd: `-${horizontalGutter / 2}px`,
164
+ marginInlineStart: `-${horizontalGutter / 2}px`
165
+ }),
166
+ ...getStyle(verticalGutter > 0, {
167
+ marginBlockStart: `-${verticalGutter / 2}px`,
168
+ marginBlockEnd: `-${verticalGutter / 2}px`
169
+ })
170
+ }
171
+ }, [childrenDom]) : childrenDom,
172
+ extra: rest.extra
173
+ }]
174
+ }), null);
175
+ const cardDom = createVNode(Card, mergeProps(attrs, rest, {
176
+ "type": containProCard ? void 0 : type,
177
+ "class": classNames(baseClassName.value, attrs.class, hashId.value, {
178
+ [`${baseClassName.value}-ghost`]: ghost,
179
+ [`${baseClassName.value}-split`]: split,
180
+ [`${baseClassName.value}-disabled`]: disabled,
181
+ [`${baseClassName.value}-box-shadow`]: boxShadow,
182
+ [`${baseClassName.value}-contain-card`]: containProCard
183
+ })
184
+ }, { onClick: (e) => onClick?.(e) }, {
185
+ "style": attrs.style,
186
+ "classes": {
187
+ body: classNames(`${baseClassName.value}-body`, {
188
+ [`${baseClassName.value}-body-direction-column`]: direction === "column",
189
+ [`${baseClassName.value}-body-layout-center`]: layout === "center"
190
+ }, hashId.value),
191
+ ...rest.classes
192
+ }
193
+ }, title && !tooltip && !slotTitle ? { title } : {}, { "styles": {
194
+ header: headerBordered || type ? {} : {
195
+ borderBlockEnd: "none",
196
+ ...type !== "inner" && split === "horizontal" || split === "vertical" ? { paddingBlockEnd: 0 } : {}
197
+ },
198
+ body: {
199
+ ...containProCard && split && rest.size !== "small" ? { padding: 0 } : !split && containProCard && rest.size !== "small" && type !== "inner" || !headerBordered && (slotTitle?.() || props.title) && type !== "inner" ? { paddingBlockStart: 0 } : {},
200
+ ...!containProCard && layout === "center" ? {
201
+ display: "flex",
202
+ justifyContent: "center",
203
+ alignItems: "center"
204
+ } : {}
205
+ },
206
+ ...rest.styles
207
+ } }), {
208
+ default: () => [containProCard ? direction !== "column" && split !== "horizontal" ? createVNode(Row, { "gutter": gutter }, _isSlot(childrenDom) ? childrenDom : { default: () => [childrenDom] }) : createVNode("div", { "class": classNames(`${baseClassName.value}-row`, hashId.value) }, [childrenDom]) : childrenDom],
209
+ ...restSlots,
210
+ ...slotTitle || tooltip ? { title: () => createVNode(LabelIconTip, {
211
+ "label": slotTitle?.() || props.title,
212
+ "tooltip": props.tooltip
213
+ }, null) } : {}
214
+ });
215
+ return wrapSSR(createVNode(Fragment, null, [typeof collapsible !== "boolean" ? hasBorderBeamDom ? createVNode(BorderBeam, typeof borderBeam === "boolean" ? {} : borderBeam, _isSlot(collapseCardDom) ? collapseCardDom : { default: () => [collapseCardDom] }) : collapseCardDom : hasBorderBeamDom ? createVNode(BorderBeam, typeof borderBeam === "boolean" ? {} : borderBeam, _isSlot(cardDom) ? cardDom : { default: () => [cardDom] }) : cardDom]));
216
+ };
217
+ }, {
218
+ props: {
219
+ title: {
220
+ type: [
221
+ Function,
222
+ String,
223
+ Number,
224
+ null,
225
+ Object,
226
+ Boolean
227
+ ],
228
+ required: false,
229
+ default: void 0
230
+ },
231
+ extra: {
232
+ type: [
233
+ Function,
234
+ String,
235
+ Number,
236
+ null,
237
+ Object,
238
+ Boolean
239
+ ],
240
+ required: false,
241
+ default: void 0
242
+ },
243
+ bordered: {
244
+ type: Boolean,
245
+ required: false,
246
+ default: false
247
+ },
248
+ headStyle: {
249
+ type: Object,
250
+ required: false
251
+ },
252
+ bodyStyle: {
253
+ type: Object,
254
+ required: false
255
+ },
256
+ loading: {
257
+ type: Boolean,
258
+ required: false,
259
+ default: void 0
260
+ },
261
+ hoverable: {
262
+ type: Boolean,
263
+ required: false,
264
+ default: false
265
+ },
266
+ id: {
267
+ type: String,
268
+ required: false
269
+ },
270
+ size: {
271
+ type: String,
272
+ required: false
273
+ },
274
+ type: {
275
+ type: String,
276
+ required: false
277
+ },
278
+ cover: {
279
+ type: [
280
+ Function,
281
+ String,
282
+ Number,
283
+ null,
284
+ Object,
285
+ Boolean
286
+ ],
287
+ required: false,
288
+ default: void 0
289
+ },
290
+ actions: {
291
+ type: Array,
292
+ required: false
293
+ },
294
+ tabList: {
295
+ type: Array,
296
+ required: false
297
+ },
298
+ tabBarExtraContent: {
299
+ type: [
300
+ Function,
301
+ String,
302
+ Number,
303
+ null,
304
+ Object,
305
+ Boolean
306
+ ],
307
+ required: false,
308
+ default: void 0
309
+ },
310
+ activeTabKey: {
311
+ type: String,
312
+ required: false
313
+ },
314
+ defaultActiveTabKey: {
315
+ type: String,
316
+ required: false
317
+ },
318
+ tabProps: {
319
+ type: Object,
320
+ required: false
321
+ },
322
+ classes: {
323
+ type: [Object, Function],
324
+ required: false
325
+ },
326
+ styles: {
327
+ type: [Object, Function],
328
+ required: false
329
+ },
330
+ variant: {
331
+ type: String,
332
+ required: false
333
+ },
334
+ rootClass: {
335
+ type: String,
336
+ required: false
337
+ },
338
+ prefixCls: {
339
+ type: String,
340
+ required: false
341
+ },
342
+ onTabChange: {
343
+ type: Function,
344
+ required: false
345
+ },
346
+ "onUpdate:activeTabKey": {
347
+ type: Function,
348
+ required: false
349
+ },
350
+ gutter: {
351
+ type: [
352
+ Number,
353
+ null,
354
+ Object,
355
+ Array
356
+ ],
357
+ required: false,
358
+ default: 0
359
+ },
360
+ align: {
361
+ type: [String, Object],
362
+ required: false
363
+ },
364
+ justify: {
365
+ type: [String, Object],
366
+ required: false
367
+ },
368
+ wrap: {
369
+ type: Boolean,
370
+ required: false,
371
+ default: false
372
+ },
373
+ tooltip: {
374
+ type: [
375
+ Object,
376
+ Function,
377
+ String,
378
+ Number,
379
+ null,
380
+ Boolean
381
+ ],
382
+ required: false,
383
+ default: void 0
384
+ },
385
+ split: {
386
+ type: String,
387
+ required: false
388
+ },
389
+ direction: {
390
+ type: String,
391
+ required: false
392
+ },
393
+ colStyle: {
394
+ type: Object,
395
+ required: false
396
+ },
397
+ borderBeam: {
398
+ type: [Object, Boolean],
399
+ required: false,
400
+ default: void 0
401
+ },
402
+ layout: {
403
+ type: String,
404
+ required: false
405
+ },
406
+ boxShadow: {
407
+ type: Boolean,
408
+ required: false,
409
+ default: false
410
+ },
411
+ disabled: {
412
+ type: Boolean,
413
+ required: false,
414
+ default: void 0
415
+ },
416
+ headerBordered: {
417
+ type: Boolean,
418
+ required: false,
419
+ default: false
420
+ },
421
+ ghost: {
422
+ type: Boolean,
423
+ required: false,
424
+ default: false
425
+ },
426
+ collapsible: {
427
+ type: [String, Boolean],
428
+ required: false,
429
+ default: void 0
430
+ },
431
+ collapsibleIconRender: {
432
+ type: Function,
433
+ required: false
434
+ },
435
+ defaultCollapsed: {
436
+ type: Boolean,
437
+ required: false,
438
+ default: false
439
+ },
440
+ onCollapse: {
441
+ type: Function,
442
+ required: false
443
+ },
444
+ checked: {
445
+ type: Boolean,
446
+ required: false,
447
+ default: void 0
448
+ },
449
+ onChecked: {
450
+ type: Function,
451
+ required: false
452
+ },
453
+ colSpan: { required: false },
454
+ colOffset: { required: false },
455
+ colFlex: { required: false },
456
+ colOrder: { required: false },
457
+ colPull: { required: false },
458
+ colPush: { required: false },
459
+ colXs: { required: false },
460
+ colSm: { required: false },
461
+ colMd: { required: false },
462
+ colLg: { required: false },
463
+ colXl: { required: false },
464
+ colXxl: { required: false },
465
+ onClick: {
466
+ type: Function,
467
+ required: false
468
+ }
469
+ },
470
+ name: "InternalProCard",
471
+ inheritAttrs: false
472
+ });
473
+ //#endregion
474
+ export { InternalProCard as default };
package/dist/ProCard.d.ts CHANGED
@@ -1,82 +1,97 @@
1
1
  import { CollapsibleType } from "./typing.js";
2
2
  import * as _$vue from "vue";
3
- import { CSSProperties, Plugin, VNode } from "vue";
3
+ import { CSSProperties, Plugin } from "vue";
4
4
  import { VueNode } from "@antdv-next1/pro-utils";
5
- import { BorderBeamProps, CardProps, ColProps, RowProps } from "antdv-next";
5
+ import { BorderBeamProps, CardGrid, CardMeta, CardProps, ColProps, RowProps } from "antdv-next";
6
+ import { FormItemTooltipType } from "antdv-next/dist/form/FormItemLabel";
6
7
  import { CustomSlotsType } from "@v-c/util/dist/type";
7
8
  import { Gutter } from "antdv-next/dist/grid/row";
8
9
 
9
10
  //#region src/ProCard.d.ts
10
- interface ProCardProps extends CardProps, RowProps {
11
- /** 标题说明 */
12
- tooltip?: VueNode;
13
- /** 拆分卡片方式 */
14
- split?: 'vertical' | 'horizontal';
15
- /** 指定 Flex 方向,仅在嵌套子卡片时有效 */
16
- direction?: 'column' | 'row';
17
- /** 栅格间距 */
11
+ type ProCardProps = CardProps & RowProps & {
12
+ /** 标题说明 */tooltip?: FormItemTooltipType; /** 拆分卡片方式 */
13
+ split?: 'vertical' | 'horizontal'; /** 指定 Flex 方向,仅在嵌套子卡片时有效 */
14
+ direction?: 'column' | 'row'; /** 栅格间距 */
18
15
  gutter?: Gutter | [Gutter, Gutter];
19
- colStyle?: CSSProperties;
20
- /** 边框流光 */
21
- borderBeam?: BorderBeamProps | boolean;
22
- /** 布局,center 代表垂直居中 */
23
- layout?: 'default' | 'center';
24
- /** 是否有卡片阴影 */
16
+ colStyle?: CSSProperties; /** 边框流光 */
17
+ borderBeam?: BorderBeamProps | boolean; /** 布局,center 代表垂直居中 */
18
+ layout?: 'default' | 'center'; /** 是否有卡片阴影 */
25
19
  boxShadow?: boolean;
26
- disabled?: boolean;
27
- /** 头部是否有分割线 */
28
- headerBordered?: boolean;
29
- /** 幽灵模式,即是否取消卡片内容区域的 padding 和 背景颜色。 */
20
+ disabled?: boolean; /** 头部是否有分割线 */
21
+ headerBordered?: boolean; /** 幽灵模式,即是否取消卡片内容区域的 padding 和 背景颜色。 */
30
22
  ghost?: boolean;
31
23
  collapsible?: CollapsibleType;
32
24
  /** 受控 collapsed 属性 */
33
- collapsed?: boolean;
34
25
  /** 折叠按钮自定义节点 */
35
26
  collapsibleIconRender?: ({
36
27
  collapsed
37
28
  }: {
38
29
  collapsed: boolean;
39
- }) => VueNode;
40
- /** 配置默认是否折叠 */
41
- defaultCollapsed?: boolean;
42
- /** 收起卡片的事件 */
43
- onCollapse?: (collapsed: boolean) => void;
44
- /** 是否展示选中样式 */
45
- checked?: boolean;
46
- /** 选中改变 */
47
- onChecked?: (e: MouseEvent) => void;
48
- /** 栅格占位格数,24 栅格,colSpan={6} */
49
- colSpan?: ColProps['span'];
50
- /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
51
- colOffset?: ColProps['offset'];
52
- /** flex 布局填充 */
53
- colFlex?: ColProps['flex'];
54
- /** 栅格顺序,flex 布局模式下有效 */
55
- colOrder?: ColProps['order'];
56
- /** 栅格向左移动格数 */
30
+ }) => VueNode; /** 配置默认是否折叠 */
31
+ defaultCollapsed?: boolean; /** 收起卡片的事件 */
32
+ onCollapse?: (collapsed: boolean) => void; /** 是否展示选中样式 */
33
+ checked?: boolean; /** 选中改变 */
34
+ onChecked?: (e: MouseEvent) => void; /** 栅格占位格数,24 栅格,colSpan={6} */
35
+ colSpan?: ColProps['span']; /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
36
+ colOffset?: ColProps['offset']; /** flex 布局填充 */
37
+ colFlex?: ColProps['flex']; /** 栅格顺序,flex 布局模式下有效 */
38
+ colOrder?: ColProps['order']; /** 栅格向左移动格数 */
57
39
  colPull?: ColProps['pull'];
58
- colPush?: ColProps['push'];
59
- /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
60
- colXs?: ColProps['xs'];
61
- /** 576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
62
- colSm?: ColProps['sm'];
63
- /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
64
- colMd?: ColProps['md'];
65
- /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
66
- colLg?: ColProps['lg'];
67
- /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
68
- colXl?: ColProps['xl'];
69
- /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
40
+ colPush?: ColProps['push']; /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
41
+ colXs?: ColProps['xs']; /**576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
42
+ colSm?: ColProps['sm']; /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
43
+ colMd?: ColProps['md']; /** 992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
44
+ colLg?: ColProps['lg']; /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
45
+ colXl?: ColProps['xl']; /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
70
46
  colXxl?: ColProps['xxl'];
71
47
  onClick?: (e: MouseEvent) => void;
72
- }
48
+ };
73
49
  declare const _ProCard: _$vue.DefineSetupFnComponent<ProCardProps, {}, CustomSlotsType<{
74
- default?: () => VNode[];
50
+ default?: () => VueNode;
75
51
  extra?: () => VueNode;
76
52
  title?: () => VueNode;
77
- }>, ProCardProps & {}, _$vue.PublicProps>;
53
+ }>, CardProps & RowProps & {
54
+ /** 标题说明 */tooltip?: FormItemTooltipType; /** 拆分卡片方式 */
55
+ split?: "vertical" | "horizontal"; /** 指定 Flex 方向,仅在嵌套子卡片时有效 */
56
+ direction?: "column" | "row"; /** 栅格间距 */
57
+ gutter?: Gutter | [Gutter, Gutter];
58
+ colStyle?: CSSProperties; /** 边框流光 */
59
+ borderBeam?: BorderBeamProps | boolean; /** 布局,center 代表垂直居中 */
60
+ layout?: "default" | "center"; /** 是否有卡片阴影 */
61
+ boxShadow?: boolean;
62
+ disabled?: boolean; /** 头部是否有分割线 */
63
+ headerBordered?: boolean; /** 幽灵模式,即是否取消卡片内容区域的 padding 和 背景颜色。 */
64
+ ghost?: boolean;
65
+ collapsible?: CollapsibleType;
66
+ /** 受控 collapsed 属性 */
67
+ /** 折叠按钮自定义节点 */
68
+ collapsibleIconRender?: ({
69
+ collapsed
70
+ }: {
71
+ collapsed: boolean;
72
+ }) => VueNode; /** 配置默认是否折叠 */
73
+ defaultCollapsed?: boolean; /** 收起卡片的事件 */
74
+ onCollapse?: (collapsed: boolean) => void; /** 是否展示选中样式 */
75
+ checked?: boolean; /** 选中改变 */
76
+ onChecked?: (e: MouseEvent) => void; /** 栅格占位格数,24 栅格,colSpan={6} */
77
+ colSpan?: ColProps["span"]; /** 栅格左侧的间隔格数,间隔内不可以有栅格 */
78
+ colOffset?: ColProps["offset"]; /** flex 布局填充 */
79
+ colFlex?: ColProps["flex"]; /** 栅格顺序,flex 布局模式下有效 */
80
+ colOrder?: ColProps["order"]; /** 栅格向左移动格数 */
81
+ colPull?: ColProps["pull"];
82
+ colPush?: ColProps["push"]; /** <576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
83
+ colXs?: ColProps["xs"]; /** ≥576px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
84
+ colSm?: ColProps["sm"]; /** ≥768px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
85
+ colMd?: ColProps["md"]; /** ≥992px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
86
+ colLg?: ColProps["lg"]; /** ≥1200px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
87
+ colXl?: ColProps["xl"]; /** ≥1600px 响应式栅格,可为栅格数或一个包含其他属性的对象 */
88
+ colXxl?: ColProps["xxl"];
89
+ onClick?: (e: MouseEvent) => void;
90
+ } & {}, _$vue.PublicProps>;
78
91
  declare const ProCard: typeof _ProCard & Plugin & {
79
92
  isProCard?: boolean;
93
+ CardGrid: typeof CardGrid;
94
+ CardMeta: typeof CardMeta;
80
95
  };
81
96
  //#endregion
82
97
  export { ProCardProps, ProCard as default };