iview/types/card.d.ts
yangdan8 1011bd411a 1.update all d.ts to version3.3.1
2.change time.ts to time.d.ts
2019-03-18 16:34:34 +08:00

53 lines
No EOL
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Type definitions for iview 3.3.1
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Card extends Vue {
/**
* 是否显示边框,建议在灰色背景下使用
* @default true
*/
'bordered'?: boolean;
/**
* 禁用鼠标悬停显示阴影
* @default false
*/
'dis-hover'?: boolean;
/**
* 卡片阴影,建议在灰色背景下使用
* @default false
*/
'shadow'?: boolean;
/**
* 卡片内部间距,单位 px
* @default 16
*/
'padding'?: number;
/**
* 标题2.12.0 新增
*/
title?: string;
/**
* 标题前的图标2.12.0 新增
*/
icon?: string;
/**
* slot插槽对象
*/
$slots: {
/**
* 自定义卡片标题,如果是简单文字,可以使用<p>标签包裹
*/
title: VNode[];
/**
* 额外显示的内容,默认位置在右上角
*/
extra: VNode[];
/**
* 卡片主体内容
*/
'': VNode[];
};
}