import type { ExtractPropTypes, PropType } from 'vue'; /** * u-gap 组件 Props 类型定义 * @description 间隔槽组件属性 */ export const GapProps = { /** 自定义根节点样式 */ customStyle: { type: [String, Object] as PropType>, default: () => ({}) }, /** 自定义根节点样式类 */ customClass: { type: String as unknown as PropType, default: '' }, /** 背景颜色 */ bgColor: { type: String, default: 'transparent' }, /** 高度 */ height: { type: [String, Number] as PropType, default: 30 }, /** 与上一个组件的距离 */ marginTop: { type: [String, Number] as PropType, default: 0 }, /** 与下一个组件的距离 */ marginBottom: { type: [String, Number] as PropType, default: 0 } }; export type GapProps = ExtractPropTypes;