UNPKG

im-ui-mobile

Version:

A Vue3.0 + Typescript instant messaging component library for Uniapp

31 lines (26 loc) 899 B
import { AllowedComponentProps, VNodeProps } from 'vue' import { ImCellProps } from './im-cell' export interface ImCellSwitchProps extends Omit<ImCellProps, 'arrow'> { // 必须的属性 checked?: boolean // Switch 特有属性 switchDisabled?: boolean switchColor?: string switchBackgroundColor?: string loading?: boolean async?: boolean beforeChange?: (newValue: boolean) => Promise<boolean> | boolean } export interface ImCellSwitchEmits { (e: 'update:checked', value: boolean): void (e: 'change', value: boolean): void (e: 'click', event: TouchEvent): void (e: 'longpress', event: TouchEvent): void } declare interface _ImCellSwitch { new(): { $props: AllowedComponentProps & VNodeProps & ImCellSwitchProps $emit: ImCellSwitchEmits } } export declare const ImCellSwitch: _ImCellSwitch