import type { ExtractPropTypes, PropType } from 'vue'; import { getColor } from '../../'; /** * u-link 组件 props 类型定义 * @description 超链接组件,支持多端跳转/复制/提示 */ export const LinkProps = { /** 文字颜色 */ color: { type: String, default: () => getColor('primary') }, /** 字体大小,单位rpx */ fontSize: { type: [String, Number] as PropType, default: 28 }, /** 是否显示下划线 */ underLine: { type: Boolean, default: false }, /** 要跳转的链接 */ href: { type: String, default: '' }, /** 小程序中复制到粘贴板的提示语 */ mpTips: { type: String, default: '' }, /** 下划线颜色 */ lineColor: { type: String, default: '' }, /** 是否默认点击跳转 */ defaultClick: { type: Boolean, default: true } }; /** * u-link 组件 props 类型 */ export type LinkProps = ExtractPropTypes;