UNPKG

veui

Version:

Baidu Enterprise UI for Vue.js.

38 lines (30 loc) 639 B
import { VeuiDefineComponent, VeuiDefineInstance, UiMixin, InputMixin } from '../common' type Props = { loading?: boolean trueValue?: unknown falseValue?: unknown model?: unknown checked?: boolean /** @deprecated */ onLabel?: string /** @deprecated */ offLabel?: string } type Emits = { input(value: unknown): void change(checked: boolean): void } type Mixins = [UiMixin, InputMixin] type Slots = { default(): unknown content(slotProps: { on: boolean }): unknown } type Switch = VeuiDefineComponent<{ new (...args: any[]): VeuiDefineInstance<Props, Emits, Slots, Mixins> }> export default Switch