/** * @aspect/lynx-mui 类型定义 */ // Lynx 基础类型 export interface LynxViewProps { className?: string style?: Record bindtap?: () => void children?: any } export interface LynxTextProps { className?: string style?: Record bindtap?: () => void children?: any } export interface LynxImageProps { className?: string style?: Record src?: string bindtap?: () => void } export interface LynxInputProps { className?: string style?: Record placeholder?: string defaultValue?: string bindinput?: (e: { detail: { value: string } }) => void bindfocus?: () => void bindblur?: () => void } // 通用组件属性 export interface CommonProps { className?: string style?: Record children?: any bindtap?: () => void } // 颜色类型 export type Color = | 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' // 尺寸类型 export type Size = 'small' | 'medium' | 'large' // 变体类型 export type ButtonVariant = 'text' | 'outlined' | 'contained' export type TextFieldVariant = 'outlined' | 'filled' | 'standard' // sx 属性类型 export type SxProps = Record