UNPKG

@aplus-frontend/ui

Version:

54 lines (53 loc) 1.24 kB
import { SpaceProps } from '@aplus-frontend/antdv'; import { LinkProps } from '@aplus-frontend/antdv/es/typography/Link'; import { TextProps as TypographyTextProps } from '@aplus-frontend/antdv/es/typography/Text'; import { CSSProperties, VNode } from 'vue'; export type ApTextProps = TypographyTextProps & { /** * 左侧label */ label?: string | VNode; /** * 存在label时是否显示冒号 */ colon?: boolean; /** * 是否垂直布局 */ vertical?: boolean; /** * 自定义label样式 */ labelStyle?: CSSProperties; /** * 是否渲染链接,为字符串时表示链接指向的url */ link?: boolean | string; /** * type为link时指定的类型 */ linkProps?: LinkProps; /** * 点击内容时触发 * @param e * @returns */ onClickContent?: (e: MouseEvent) => void; } & { class?: unknown; style?: unknown; }; export type ApTextGroupProps = { /** * 设置是否显示冒号 */ colon?: boolean; /** * 设置label和value是否竖直排列 */ vertical?: boolean; /** * 设置label的style */ labelStyle?: CSSProperties; } & SpaceProps;