import type { ExtractPropTypes, PropType } from 'vue'; /** * u-index-anchor 组件 Props 类型定义 * @description 索引锚点属性 */ export const IndexAnchorProps = { /** 自定义根节点样式 */ customStyle: { type: [String, Object] as PropType>, default: () => ({}) }, /** 自定义根节点样式类 */ customClass: { type: String as unknown as PropType, default: '' }, /** 是否使用自定义内容的插槽 */ useSlot: { type: Boolean, default: false }, /** 索引字符,如果定义了use-slot,此参数自动失效 */ index: { type: String, default: '' } }; export type IndexAnchorProps = ExtractPropTypes;