import { IconProps } from '../../components/Icon'; import { Component } from 'vue'; export interface TextBlockProps { /** * 文本块标题 */ title: string; /** * 文本块描述信息 */ description?: string | Component; /** * 图标或者自定义图标组件 */ icon?: IconProps['name']; /** * 文本块大小 */ size?: 'small' | 'default' | 'medium' | 'large' | 'huge'; /** * 提示信息 */ tooltip?: string; /*** * 图标位置,默认在标题左边,top是在标题上方居中 */ top?: boolean; } export type TextBlockSlots = { /** * 作用域插槽 */ 'footer': () => any; /** * 标题后置插槽 */ 'title-suffix': () => any; /** * 标题前置插槽 */ 'title-prefix': () => any; };