import { ImageSizeEnum } from '../../components/Image/Image.type'; import { SingleTextFieldProps } from '../../composites/SingleTextField/SingleTextField.type'; import { StyleValue } from 'vue'; export interface GoodsBlockProps { /** * 商品图片 */ img?: string; /** * 商品标题 */ title?: string; /** * 商品标题样式 */ titleStyle?: StyleValue; /** * 商品标签名 */ icon?: string; /** * 标签的样式 */ iconClass?: string; /** * 图片大小 */ imageSize?: keyof typeof ImageSizeEnum; /** * 是否开启图片预览 */ preview?: boolean; /** * 内容标签 */ tag?: string | Array; /** * 商品的描述信息 */ options?: string | Array; /** * 文本大小 */ size?: number; } export type GoodsBlockSlots = { /** * 尾部插槽 */ after: () => any; /** * 底部插槽 */ bottom: () => any; /** * 商品详情插槽 */ desc: () => any; /** * 标题插槽 */ header: () => any; };