import {PropType} from "@peryl/react-compose"; import {PlTabComponent} from "../Tab"; export enum TabHeadType { text = 'text', card = 'card', shadow = 'shadow', } export enum TabHeadPosition { top = 'top', bottom = 'bottom', left = 'left', right = 'right', } export const TabCommonProps = { headType: { type: String as PropType, default: TabHeadType.text }, // 页签样式 headPosition: { type: String as PropType, default: TabHeadPosition.top }, // 页签位置 }; export type TabData = { item: PlTabComponent, index: number, active: boolean }